blob: c53199d92a7845e69eb9de54fe52de3b278b51d9 [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
cristy3ed852e2009-09-05 21:47:34 +0000736WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000737WMF_DELEGATE_FALSE
738WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000739WEBP_LIBS
740WEBP_DELEGATE_FALSE
741WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000742TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000743TIFF_DELEGATE_FALSE
744TIFF_DELEGATE_TRUE
745CAIRO_DELEGATE_FALSE
746CAIRO_DELEGATE_TRUE
747RSVG_DELEGATE_FALSE
748RSVG_DELEGATE_TRUE
749CAIRO_SVG_LIBS
750CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000751RSVG_LIBS
752RSVG_CFLAGS
753PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000754PNG_DELEGATE_FALSE
755PNG_DELEGATE_TRUE
756OPENEXR_DELEGATE_FALSE
757OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000758OPENEXR_LIBS
759OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000760LZMA_LIBS
761LZMA_DELEGATE_FALSE
762LZMA_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000763LQR_DELEGATE_FALSE
764LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000765LQR_LIBS
766LQR_CFLAGS
767LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000768LCMS_DELEGATE_FALSE
769LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000770JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000771JP2_DELEGATE_FALSE
772JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000773JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000774JPEG_DELEGATE_FALSE
775JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000776JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000777JBIG_DELEGATE_FALSE
778JBIG_DELEGATE_TRUE
779GVC_DELEGATE_FALSE
780GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000781GVC_LIBS
782GVC_CFLAGS
783GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000784GS_DELEGATE_FALSE
785GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000786FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000787FREETYPE_DELEGATE_FALSE
788FREETYPE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000789freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000790FONTCONFIG_DELEGATE_FALSE
791FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000792FONTCONFIG_LIBS
793FONTCONFIG_CFLAGS
794FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000795FPX_DELEGATE_FALSE
796FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000797FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000798FFTW_DELEGATE_FALSE
799FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000800DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000801DJVU_DELEGATE_FALSE
802DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000803DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804DPS_DELEGATE_FALSE
805DPS_DELEGATE_TRUE
806AUTOTRACE_DELEGATE_FALSE
807AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000808AUTOTRACE_LIBS
809AUTOTRACE_CFLAGS
810LIB_DL
811ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000812ZLIB_DELEGATE_FALSE
813ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000814XEXT_LIBS
815X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000816X11_DELEGATE_FALSE
817X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000818X_EXTRA_LIBS
819X_LIBS
820X_PRE_LIBS
821X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000822XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000823BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000824BZLIB_DELEGATE_FALSE
825BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000826CCMALLOCDelegate
827UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000828HasUMEM_FALSE
829HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000830THREAD_LIBS
831GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000832WITH_MAGICK_PLUS_PLUS_FALSE
833WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000834OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000835MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000836POW_LIB
837LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000838UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000839UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000840UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000841UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000842UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000843UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000844INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000845INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000846UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000847UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000848INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000849INT32_T
850UINT16_T
851INT16_T
852UINT8_T
853INT8_T
854LIBRARY_EXTRA_CPPFLAGS
855MODULE_EXTRA_CPPFLAGS
856LIBSTDCLDFLAGS
857PERL_MAKE_OPTIONS
858QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000859MAINT
860MAINTAINER_MODE_FALSE
861MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000862MAGICK_HDRI
863DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000864WITH_LTDL_FALSE
865WITH_LTDL_TRUE
866WITH_MODULES_FALSE
867WITH_MODULES_TRUE
868WITH_SHARED_LIBS_FALSE
869WITH_SHARED_LIBS_TRUE
870LTDLOPEN
871LT_CONFIG_H
872CONVENIENCE_LTDL_FALSE
873CONVENIENCE_LTDL_TRUE
874INSTALL_LTDL_FALSE
875INSTALL_LTDL_TRUE
876ARGZ_H
877sys_symbol_underscore
878LIBADD_DL
879LT_DLPREOPEN
880LIBADD_DLD_LINK
881LIBADD_SHL_LOAD
882LIBADD_DLOPEN
883LT_DLLOADERS
884INCLTDL
885LTDLINCL
886LTDLDEPS
887LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000888LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000889CXXCPP
890OTOOL64
891OTOOL
892LIPO
893NMEDIT
894DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000895MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000896RANLIB
cristyda16f162011-02-19 23:52:17 +0000897ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000898AR
899NM
900ac_ct_DUMPBIN
901DUMPBIN
902LIBTOOL
903OBJDUMP
904DLLTOOL
905AS
cristy3ed852e2009-09-05 21:47:34 +0000906LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000907CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000908CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000909OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000910PTHREAD_CFLAGS
911PTHREAD_LIBS
912PTHREAD_CC
913ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000914WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000915USING_CL_FALSE
916USING_CL_TRUE
917CYGWIN_BUILD_FALSE
918CYGWIN_BUILD_TRUE
919WIN32_NATIVE_BUILD_FALSE
920WIN32_NATIVE_BUILD_TRUE
921WINGDI32_DELEGATE_FALSE
922WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000923GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000924PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000925LN_S
cristy3ed852e2009-09-05 21:47:34 +0000926LD
cristy73bd4a52010-10-05 11:24:23 +0000927FGREP
928SED
929am__fastdepCXX_FALSE
930am__fastdepCXX_TRUE
931CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000932ac_ct_CXX
933CXXFLAGS
934CXX
cristya0b81c32010-01-22 02:54:33 +0000935EGREP
936GREP
937CPP
cristy73bd4a52010-10-05 11:24:23 +0000938am__fastdepCC_FALSE
939am__fastdepCC_TRUE
940CCDEPMODE
941AMDEPBACKSLASH
942AMDEP_FALSE
943AMDEP_TRUE
944am__quote
945am__include
946DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000947OBJEXT
948EXEEXT
949ac_ct_CC
950CPPFLAGS
951LDFLAGS
952CFLAGS
953CC
954DIRSEP
955MAGICK_FILTER_MODULE_PATH
956MAGICK_CONFIGURE_BUILD_PATH
957MAGICK_CONFIGURE_SRC_PATH
958MAGICK_CODER_MODULE_PATH
959MAN_DIR
960INFO_DIR
961PERSISTINCLUDE_DIR
962INCLUDE_DIR
963LIB_DIR
964LOCALSTATE_DIR
965SHAREDSTATE_DIR
966SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000967DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000968DATA_DIR
969LIBEXEC_DIR
970SBIN_DIR
971BIN_DIR
972EXEC_PREFIX_DIR
973PREFIX_DIR
974CONFIG_STATUS_DEPENDENCIES
975MAGICK_LIB_VERSION_NUMBER
976MAGICK_LIB_VERSION_TEXT
977MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000978AM_BACKSLASH
979AM_DEFAULT_VERBOSITY
980am__untar
981am__tar
982AMTAR
983am__leading_dot
984SET_MAKE
985AWK
986mkdir_p
987MKDIR_P
988INSTALL_STRIP_PROGRAM
989STRIP
990install_sh
991MAKEINFO
992AUTOHEADER
993AUTOMAKE
994AUTOCONF
995ACLOCAL
996VERSION
997PACKAGE
998CYGPATH_W
999am__isrc
1000INSTALL_DATA
1001INSTALL_SCRIPT
1002INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001003PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001004PACKAGE_RELEASE_DATE
1005PACKAGE_LIB_VERSION_NUMBER
1006PACKAGE_LIB_VERSION
1007PACKAGE_CHANGE_DATE
1008PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001009PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001010MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001011MAGICK_LIBRARY_VERSION_INFO
1012MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001013MAGICK_LIBRARY_AGE
1014MAGICK_LIBRARY_REVISION
1015MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001016MAGICK_TARGET_OS
1017MAGICK_TARGET_VENDOR
1018MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001019target_os
1020target_vendor
1021target_cpu
1022target
1023host_os
1024host_vendor
1025host_cpu
1026host
1027build_os
1028build_vendor
1029build_cpu
1030build
1031CONFIGURE_ARGS
1032DISTCHECK_CONFIG_FLAGS
1033target_alias
1034host_alias
1035build_alias
1036LIBS
1037ECHO_T
1038ECHO_N
1039ECHO_C
1040DEFS
1041mandir
1042localedir
1043libdir
1044psdir
1045pdfdir
1046dvidir
1047htmldir
1048infodir
1049docdir
1050oldincludedir
1051includedir
1052localstatedir
1053sharedstatedir
1054sysconfdir
1055datadir
1056datarootdir
1057libexecdir
1058sbindir
1059bindir
1060program_transform_name
1061prefix
1062exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001063PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001064PACKAGE_BUGREPORT
1065PACKAGE_STRING
1066PACKAGE_VERSION
1067PACKAGE_TARNAME
1068PACKAGE_NAME
1069PATH_SEPARATOR
1070SHELL'
1071ac_subst_files=''
1072ac_user_opts='
1073enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001074enable_silent_rules
1075enable_dependency_tracking
1076with_gnu_ld
1077with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001078enable_bounds_checking
1079enable_osx_universal_binary
1080with_threads
1081enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001082enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001083enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001084enable_shared
1085enable_static
1086with_pic
1087enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001088with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001089enable_libtool_lock
1090with_included_ltdl
1091with_ltdl_include
1092with_ltdl_lib
1093enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001094with_modules
1095enable_delegate_build
1096enable_deprecated
1097enable_installed
1098enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001099enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001100enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001101enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001102enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001103enable_ccmalloc
1104enable_efence
1105enable_prof
1106enable_gprof
1107enable_gcov
1108with_method_prefix
1109with_quantum_depth
1110with_cache
1111with_frozenpaths
1112with_magick_plus_plus
1113with_perl
1114with_perl_options
1115with_umem
1116with_libstdc
1117with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001118with_x
cristy3ed852e2009-09-05 21:47:34 +00001119with_zlib
1120with_autotrace
1121with_dps
1122with_djvu
cristy430a7312010-01-21 20:44:04 +00001123with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001124with_fftw
1125with_fpx
1126with_fontconfig
1127with_freetype
1128with_gslib
1129with_fontpath
1130with_gs_font_dir
1131with_gvc
1132with_jbig
1133with_jpeg
1134with_jp2
1135with_lcms
cristy71203402010-06-18 13:12:03 +00001136with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001137with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001138with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001139with_openexr
1140with_png
1141with_rsvg
1142with_tiff
cristyb1860752011-03-14 00:27:46 +00001143with_webp
cristy3ed852e2009-09-05 21:47:34 +00001144with_windows_font_dir
1145with_wmf
1146with_xml
1147'
1148 ac_precious_vars='build_alias
1149host_alias
1150target_alias
1151CC
1152CFLAGS
1153LDFLAGS
1154LIBS
1155CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001156CPP
cristy3ed852e2009-09-05 21:47:34 +00001157CXX
1158CXXFLAGS
1159CCC
cristy73bd4a52010-10-05 11:24:23 +00001160PKG_CONFIG
1161CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001162XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001163AUTOTRACE_CFLAGS
1164AUTOTRACE_LIBS
1165FONTCONFIG_CFLAGS
1166FONTCONFIG_LIBS
1167GVC_CFLAGS
1168GVC_LIBS
1169LQR_CFLAGS
1170LQR_LIBS
1171OPENEXR_CFLAGS
1172OPENEXR_LIBS
1173RSVG_CFLAGS
1174RSVG_LIBS
1175CAIRO_SVG_CFLAGS
1176CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001177
1178
1179# Initialize some variables set by options.
1180ac_init_help=
1181ac_init_version=false
1182ac_unrecognized_opts=
1183ac_unrecognized_sep=
1184# The variables have the same names as the options, with
1185# dashes changed to underlines.
1186cache_file=/dev/null
1187exec_prefix=NONE
1188no_create=
1189no_recursion=
1190prefix=NONE
1191program_prefix=NONE
1192program_suffix=NONE
1193program_transform_name=s,x,x,
1194silent=
1195site=
1196srcdir=
1197verbose=
1198x_includes=NONE
1199x_libraries=NONE
1200
1201# Installation directory options.
1202# These are left unexpanded so users can "make install exec_prefix=/foo"
1203# and all the variables that are supposed to be based on exec_prefix
1204# by default will actually change.
1205# Use braces instead of parens because sh, perl, etc. also accept them.
1206# (The list follows the same order as the GNU Coding Standards.)
1207bindir='${exec_prefix}/bin'
1208sbindir='${exec_prefix}/sbin'
1209libexecdir='${exec_prefix}/libexec'
1210datarootdir='${prefix}/share'
1211datadir='${datarootdir}'
1212sysconfdir='${prefix}/etc'
1213sharedstatedir='${prefix}/com'
1214localstatedir='${prefix}/var'
1215includedir='${prefix}/include'
1216oldincludedir='/usr/include'
1217docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1218infodir='${datarootdir}/info'
1219htmldir='${docdir}'
1220dvidir='${docdir}'
1221pdfdir='${docdir}'
1222psdir='${docdir}'
1223libdir='${exec_prefix}/lib'
1224localedir='${datarootdir}/locale'
1225mandir='${datarootdir}/man'
1226
1227ac_prev=
1228ac_dashdash=
1229for ac_option
1230do
1231 # If the previous option needs an argument, assign it.
1232 if test -n "$ac_prev"; then
1233 eval $ac_prev=\$ac_option
1234 ac_prev=
1235 continue
1236 fi
1237
1238 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001239 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1240 *=) ac_optarg= ;;
1241 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001242 esac
1243
1244 # Accept the important Cygnus configure options, so we can diagnose typos.
1245
1246 case $ac_dashdash$ac_option in
1247 --)
1248 ac_dashdash=yes ;;
1249
1250 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1251 ac_prev=bindir ;;
1252 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1253 bindir=$ac_optarg ;;
1254
1255 -build | --build | --buil | --bui | --bu)
1256 ac_prev=build_alias ;;
1257 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1258 build_alias=$ac_optarg ;;
1259
1260 -cache-file | --cache-file | --cache-fil | --cache-fi \
1261 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1262 ac_prev=cache_file ;;
1263 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1264 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1265 cache_file=$ac_optarg ;;
1266
1267 --config-cache | -C)
1268 cache_file=config.cache ;;
1269
1270 -datadir | --datadir | --datadi | --datad)
1271 ac_prev=datadir ;;
1272 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1273 datadir=$ac_optarg ;;
1274
1275 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1276 | --dataroo | --dataro | --datar)
1277 ac_prev=datarootdir ;;
1278 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1279 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1280 datarootdir=$ac_optarg ;;
1281
1282 -disable-* | --disable-*)
1283 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001286 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1290 *"
1291"enable_$ac_useropt"
1292"*) ;;
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1295 esac
1296 eval enable_$ac_useropt=no ;;
1297
1298 -docdir | --docdir | --docdi | --doc | --do)
1299 ac_prev=docdir ;;
1300 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1301 docdir=$ac_optarg ;;
1302
1303 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1304 ac_prev=dvidir ;;
1305 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1306 dvidir=$ac_optarg ;;
1307
1308 -enable-* | --enable-*)
1309 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001312 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001313 ac_useropt_orig=$ac_useropt
1314 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1316 *"
1317"enable_$ac_useropt"
1318"*) ;;
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1321 esac
1322 eval enable_$ac_useropt=\$ac_optarg ;;
1323
1324 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1325 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1326 | --exec | --exe | --ex)
1327 ac_prev=exec_prefix ;;
1328 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1329 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1330 | --exec=* | --exe=* | --ex=*)
1331 exec_prefix=$ac_optarg ;;
1332
1333 -gas | --gas | --ga | --g)
1334 # Obsolete; use --with-gas.
1335 with_gas=yes ;;
1336
1337 -help | --help | --hel | --he | -h)
1338 ac_init_help=long ;;
1339 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1340 ac_init_help=recursive ;;
1341 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1342 ac_init_help=short ;;
1343
1344 -host | --host | --hos | --ho)
1345 ac_prev=host_alias ;;
1346 -host=* | --host=* | --hos=* | --ho=*)
1347 host_alias=$ac_optarg ;;
1348
1349 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1350 ac_prev=htmldir ;;
1351 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1352 | --ht=*)
1353 htmldir=$ac_optarg ;;
1354
1355 -includedir | --includedir | --includedi | --included | --include \
1356 | --includ | --inclu | --incl | --inc)
1357 ac_prev=includedir ;;
1358 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1359 | --includ=* | --inclu=* | --incl=* | --inc=*)
1360 includedir=$ac_optarg ;;
1361
1362 -infodir | --infodir | --infodi | --infod | --info | --inf)
1363 ac_prev=infodir ;;
1364 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1365 infodir=$ac_optarg ;;
1366
1367 -libdir | --libdir | --libdi | --libd)
1368 ac_prev=libdir ;;
1369 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1370 libdir=$ac_optarg ;;
1371
1372 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1373 | --libexe | --libex | --libe)
1374 ac_prev=libexecdir ;;
1375 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1376 | --libexe=* | --libex=* | --libe=*)
1377 libexecdir=$ac_optarg ;;
1378
1379 -localedir | --localedir | --localedi | --localed | --locale)
1380 ac_prev=localedir ;;
1381 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1382 localedir=$ac_optarg ;;
1383
1384 -localstatedir | --localstatedir | --localstatedi | --localstated \
1385 | --localstate | --localstat | --localsta | --localst | --locals)
1386 ac_prev=localstatedir ;;
1387 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1388 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1389 localstatedir=$ac_optarg ;;
1390
1391 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1392 ac_prev=mandir ;;
1393 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1394 mandir=$ac_optarg ;;
1395
1396 -nfp | --nfp | --nf)
1397 # Obsolete; use --without-fp.
1398 with_fp=no ;;
1399
1400 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1401 | --no-cr | --no-c | -n)
1402 no_create=yes ;;
1403
1404 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1405 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1406 no_recursion=yes ;;
1407
1408 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1409 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1410 | --oldin | --oldi | --old | --ol | --o)
1411 ac_prev=oldincludedir ;;
1412 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1413 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1414 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1415 oldincludedir=$ac_optarg ;;
1416
1417 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1418 ac_prev=prefix ;;
1419 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1420 prefix=$ac_optarg ;;
1421
1422 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1423 | --program-pre | --program-pr | --program-p)
1424 ac_prev=program_prefix ;;
1425 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1426 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1427 program_prefix=$ac_optarg ;;
1428
1429 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1430 | --program-suf | --program-su | --program-s)
1431 ac_prev=program_suffix ;;
1432 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1433 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1434 program_suffix=$ac_optarg ;;
1435
1436 -program-transform-name | --program-transform-name \
1437 | --program-transform-nam | --program-transform-na \
1438 | --program-transform-n | --program-transform- \
1439 | --program-transform | --program-transfor \
1440 | --program-transfo | --program-transf \
1441 | --program-trans | --program-tran \
1442 | --progr-tra | --program-tr | --program-t)
1443 ac_prev=program_transform_name ;;
1444 -program-transform-name=* | --program-transform-name=* \
1445 | --program-transform-nam=* | --program-transform-na=* \
1446 | --program-transform-n=* | --program-transform-=* \
1447 | --program-transform=* | --program-transfor=* \
1448 | --program-transfo=* | --program-transf=* \
1449 | --program-trans=* | --program-tran=* \
1450 | --progr-tra=* | --program-tr=* | --program-t=*)
1451 program_transform_name=$ac_optarg ;;
1452
1453 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1454 ac_prev=pdfdir ;;
1455 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1456 pdfdir=$ac_optarg ;;
1457
1458 -psdir | --psdir | --psdi | --psd | --ps)
1459 ac_prev=psdir ;;
1460 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1461 psdir=$ac_optarg ;;
1462
1463 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1464 | -silent | --silent | --silen | --sile | --sil)
1465 silent=yes ;;
1466
1467 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1468 ac_prev=sbindir ;;
1469 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1470 | --sbi=* | --sb=*)
1471 sbindir=$ac_optarg ;;
1472
1473 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1474 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1475 | --sharedst | --shareds | --shared | --share | --shar \
1476 | --sha | --sh)
1477 ac_prev=sharedstatedir ;;
1478 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1479 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1480 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1481 | --sha=* | --sh=*)
1482 sharedstatedir=$ac_optarg ;;
1483
1484 -site | --site | --sit)
1485 ac_prev=site ;;
1486 -site=* | --site=* | --sit=*)
1487 site=$ac_optarg ;;
1488
1489 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1490 ac_prev=srcdir ;;
1491 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1492 srcdir=$ac_optarg ;;
1493
1494 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1495 | --syscon | --sysco | --sysc | --sys | --sy)
1496 ac_prev=sysconfdir ;;
1497 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1498 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1499 sysconfdir=$ac_optarg ;;
1500
1501 -target | --target | --targe | --targ | --tar | --ta | --t)
1502 ac_prev=target_alias ;;
1503 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1504 target_alias=$ac_optarg ;;
1505
1506 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1507 verbose=yes ;;
1508
1509 -version | --version | --versio | --versi | --vers | -V)
1510 ac_init_version=: ;;
1511
1512 -with-* | --with-*)
1513 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1514 # Reject names that are not valid shell variable names.
1515 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001516 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001517 ac_useropt_orig=$ac_useropt
1518 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1519 case $ac_user_opts in
1520 *"
1521"with_$ac_useropt"
1522"*) ;;
1523 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1524 ac_unrecognized_sep=', ';;
1525 esac
1526 eval with_$ac_useropt=\$ac_optarg ;;
1527
1528 -without-* | --without-*)
1529 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1530 # Reject names that are not valid shell variable names.
1531 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001532 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001533 ac_useropt_orig=$ac_useropt
1534 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1535 case $ac_user_opts in
1536 *"
1537"with_$ac_useropt"
1538"*) ;;
1539 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1540 ac_unrecognized_sep=', ';;
1541 esac
1542 eval with_$ac_useropt=no ;;
1543
1544 --x)
1545 # Obsolete; use --with-x.
1546 with_x=yes ;;
1547
1548 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1549 | --x-incl | --x-inc | --x-in | --x-i)
1550 ac_prev=x_includes ;;
1551 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1552 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1553 x_includes=$ac_optarg ;;
1554
1555 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1556 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1557 ac_prev=x_libraries ;;
1558 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1559 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1560 x_libraries=$ac_optarg ;;
1561
cristy98dddb52010-11-04 00:30:15 +00001562 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1563Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001564 ;;
1565
1566 *=*)
1567 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1568 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001569 case $ac_envvar in #(
1570 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001571 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001572 esac
cristy3ed852e2009-09-05 21:47:34 +00001573 eval $ac_envvar=\$ac_optarg
1574 export $ac_envvar ;;
1575
1576 *)
1577 # FIXME: should be removed in autoconf 3.0.
1578 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1579 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1580 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001581 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001582 ;;
1583
1584 esac
1585done
1586
1587if test -n "$ac_prev"; then
1588 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001589 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001590fi
1591
1592if test -n "$ac_unrecognized_opts"; then
1593 case $enable_option_checking in
1594 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001595 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001596 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1597 esac
1598fi
1599
1600# Check all directory arguments for consistency.
1601for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1602 datadir sysconfdir sharedstatedir localstatedir includedir \
1603 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1604 libdir localedir mandir
1605do
1606 eval ac_val=\$$ac_var
1607 # Remove trailing slashes.
1608 case $ac_val in
1609 */ )
1610 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1611 eval $ac_var=\$ac_val;;
1612 esac
1613 # Be sure to have absolute directory names.
1614 case $ac_val in
1615 [\\/$]* | ?:[\\/]* ) continue;;
1616 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1617 esac
cristy98dddb52010-11-04 00:30:15 +00001618 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001619done
1620
1621# There might be people who depend on the old broken behavior: `$host'
1622# used to hold the argument of --host etc.
1623# FIXME: To remove some day.
1624build=$build_alias
1625host=$host_alias
1626target=$target_alias
1627
1628# FIXME: To remove some day.
1629if test "x$host_alias" != x; then
1630 if test "x$build_alias" = x; then
1631 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001632 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1633 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001634 elif test "x$build_alias" != "x$host_alias"; then
1635 cross_compiling=yes
1636 fi
1637fi
1638
1639ac_tool_prefix=
1640test -n "$host_alias" && ac_tool_prefix=$host_alias-
1641
1642test "$silent" = yes && exec 6>/dev/null
1643
1644
1645ac_pwd=`pwd` && test -n "$ac_pwd" &&
1646ac_ls_di=`ls -di .` &&
1647ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001648 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001649test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001650 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001651
1652
1653# Find the source files, if location was not specified.
1654if test -z "$srcdir"; then
1655 ac_srcdir_defaulted=yes
1656 # Try the directory containing this script, then the parent directory.
1657 ac_confdir=`$as_dirname -- "$as_myself" ||
1658$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1659 X"$as_myself" : 'X\(//\)[^/]' \| \
1660 X"$as_myself" : 'X\(//\)$' \| \
1661 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1662$as_echo X"$as_myself" |
1663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1664 s//\1/
1665 q
1666 }
1667 /^X\(\/\/\)[^/].*/{
1668 s//\1/
1669 q
1670 }
1671 /^X\(\/\/\)$/{
1672 s//\1/
1673 q
1674 }
1675 /^X\(\/\).*/{
1676 s//\1/
1677 q
1678 }
1679 s/.*/./; q'`
1680 srcdir=$ac_confdir
1681 if test ! -r "$srcdir/$ac_unique_file"; then
1682 srcdir=..
1683 fi
1684else
1685 ac_srcdir_defaulted=no
1686fi
1687if test ! -r "$srcdir/$ac_unique_file"; then
1688 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001689 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001690fi
1691ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1692ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001693 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001694 pwd)`
1695# When building in place, set srcdir=.
1696if test "$ac_abs_confdir" = "$ac_pwd"; then
1697 srcdir=.
1698fi
1699# Remove unnecessary trailing slashes from srcdir.
1700# Double slashes in file names in object file debugging info
1701# mess up M-x gdb in Emacs.
1702case $srcdir in
1703*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1704esac
1705for ac_var in $ac_precious_vars; do
1706 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1707 eval ac_env_${ac_var}_value=\$${ac_var}
1708 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1709 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1710done
1711
1712#
1713# Report the --help message.
1714#
1715if test "$ac_init_help" = "long"; then
1716 # Omit some internal or obsolete options to make the list less imposing.
1717 # This message is too long to be a string in the A/UX 3.1 sh.
1718 cat <<_ACEOF
cristy4c08aed2011-07-01 19:47:50 +00001719\`configure' configures ImageMagick 7.0.0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001720
1721Usage: $0 [OPTION]... [VAR=VALUE]...
1722
1723To assign environment variables (e.g., CC, CFLAGS...), specify them as
1724VAR=VALUE. See below for descriptions of some of the useful variables.
1725
1726Defaults for the options are specified in brackets.
1727
1728Configuration:
1729 -h, --help display this help and exit
1730 --help=short display options specific to this package
1731 --help=recursive display the short help of all the included packages
1732 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001733 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001734 --cache-file=FILE cache test results in FILE [disabled]
1735 -C, --config-cache alias for \`--cache-file=config.cache'
1736 -n, --no-create do not create output files
1737 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1738
1739Installation directories:
1740 --prefix=PREFIX install architecture-independent files in PREFIX
1741 [$ac_default_prefix]
1742 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1743 [PREFIX]
1744
1745By default, \`make install' will install all the files in
1746\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1747an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1748for instance \`--prefix=\$HOME'.
1749
1750For better control, use the options below.
1751
1752Fine tuning of the installation directories:
1753 --bindir=DIR user executables [EPREFIX/bin]
1754 --sbindir=DIR system admin executables [EPREFIX/sbin]
1755 --libexecdir=DIR program executables [EPREFIX/libexec]
1756 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1757 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1758 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1759 --libdir=DIR object code libraries [EPREFIX/lib]
1760 --includedir=DIR C header files [PREFIX/include]
1761 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1762 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1763 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1764 --infodir=DIR info documentation [DATAROOTDIR/info]
1765 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1766 --mandir=DIR man documentation [DATAROOTDIR/man]
cristyd55889c2011-03-27 00:50:24 +00001767 --docdir=DIR documentation root
cristy4c08aed2011-07-01 19:47:50 +00001768 [DATAROOTDIR/doc/ImageMagick-7.0.0]
cristy3ed852e2009-09-05 21:47:34 +00001769 --htmldir=DIR html documentation [DOCDIR]
1770 --dvidir=DIR dvi documentation [DOCDIR]
1771 --pdfdir=DIR pdf documentation [DOCDIR]
1772 --psdir=DIR ps documentation [DOCDIR]
1773_ACEOF
1774
1775 cat <<\_ACEOF
1776
cristy73bd4a52010-10-05 11:24:23 +00001777Program names:
1778 --program-prefix=PREFIX prepend PREFIX to installed program names
1779 --program-suffix=SUFFIX append SUFFIX to installed program names
1780 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1781
cristy3ed852e2009-09-05 21:47:34 +00001782X features:
1783 --x-includes=DIR X include files are in DIR
1784 --x-libraries=DIR X library files are in DIR
1785
1786System types:
1787 --build=BUILD configure for building on BUILD [guessed]
1788 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1789 --target=TARGET configure for building compilers for TARGET [HOST]
1790_ACEOF
1791fi
1792
1793if test -n "$ac_init_help"; then
1794 case $ac_init_help in
cristy4c08aed2011-07-01 19:47:50 +00001795 short | recursive ) echo "Configuration of ImageMagick 7.0.0:";;
cristy3ed852e2009-09-05 21:47:34 +00001796 esac
1797 cat <<\_ACEOF
1798
1799Optional Features:
1800 --disable-option-checking ignore unrecognized --enable/--with options
1801 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1802 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001803 --enable-silent-rules less verbose build output (undo: `make V=1')
1804 --disable-silent-rules verbose build output (undo: `make V=0')
1805 --disable-dependency-tracking speeds up one-time build
1806 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001807 --bounds-checking enable run-time bounds-checking
1808 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001809 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001810 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001811 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001812 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001813 --enable-shared[=PKGS] build shared libraries [default=yes]
1814 --enable-static[=PKGS] build static libraries [default=yes]
1815 --enable-fast-install[=PKGS]
1816 optimize for fast installation [default=yes]
1817 --disable-libtool-lock avoid locking (might break parallel builds)
1818 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001819 --enable-delegate-build look for delegate libraries in build directory
1820 --disable-deprecated exclude deprecated methods in MagickCore and
1821 MagickWand API's
1822 --disable-installed Formally install ImageMagick under PREFIX
1823 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001824 --enable-zero-configuration
1825 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001826 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
cristy6e3607c2011-09-13 13:59:17 +00003587MAGICK_SVN_REVISION=5290
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
cristy6e3607c2011-09-13 13:59:17 +00009282 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +00009283 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
cristy6e3607c2011-09-13 13:59:17 +000021044# Build a zero-configuration version of ImageMagick.
21045# Check whether --enable-zero-configuration was given.
21046if test "${enable_zero_configuration+set}" = set; then :
21047 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021048else
cristy6e3607c2011-09-13 13:59:17 +000021049 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021050fi
21051
21052
cristy6e3607c2011-09-13 13:59:17 +000021053if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021054
cristy6e3607c2011-09-13 13:59:17 +000021055$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021056
cristy81af5702011-09-13 14:20:58 +000021057 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021058fi
21059
21060# Build a high dynamic range version of ImageMagick.
21061# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021062if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021063 enableval=$enable_hdri; enable_hdri=$enableval
21064else
21065 enable_hdri='no'
21066fi
21067
21068
21069MAGICK_HDRI=""
21070if test "$enable_hdri" = 'yes'; then
21071 MAGICK_HDRI="HDRI"
21072
cristy8b350f62009-11-15 23:12:43 +000021073$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021074
cristyfd9dcd42010-08-08 18:07:02 +000021075 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021076fi
21077
cristy3ed852e2009-09-05 21:47:34 +000021078# Build a version of ImageMagick with assert statements.
21079# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021080if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021081 enableval=$enable_assert; enable_assert=$enableval
21082else
21083 enable_assert='yes'
21084fi
21085
21086
21087if test "$enable_assert" = 'no'; then
21088
cristy8b350f62009-11-15 23:12:43 +000021089$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021090
21091fi
21092
21093# Add configure option --enable-maintainer-mode which enables dependency
21094# checking and generation useful to package maintainers. This is made an
21095# option to avoid confusing end users.
cristy73bd4a52010-10-05 11:24:23 +000021096
21097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21098$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21099 # Check whether --enable-maintainer-mode was given.
21100if test "${enable_maintainer_mode+set}" = set; then :
21101 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21102else
21103 USE_MAINTAINER_MODE=no
21104fi
21105
21106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21107$as_echo "$USE_MAINTAINER_MODE" >&6; }
21108 if test $USE_MAINTAINER_MODE = yes; then
21109 MAINTAINER_MODE_TRUE=
21110 MAINTAINER_MODE_FALSE='#'
21111else
21112 MAINTAINER_MODE_TRUE='#'
21113 MAINTAINER_MODE_FALSE=
21114fi
21115
21116 MAINT=$MAINTAINER_MODE_TRUE
21117
21118
cristy3ed852e2009-09-05 21:47:34 +000021119
21120
21121# Enable ccmalloc memory debugging support
21122# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021123if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021124 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21125else
21126 enable_ccmalloc='no'
21127fi
21128
21129
21130# Enable Electric Fence memory debugging support
21131# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021132if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021133 enableval=$enable_efence; enable_efence=$enableval
21134else
21135 enable_efence='no'
21136fi
21137
21138
21139# Enable prof-based profiling support
21140# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021141if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021142 enableval=$enable_prof; enable_prof=$enableval
21143else
21144 enable_prof='no'
21145fi
21146
21147
21148# Enable gprof-based profiling support
21149# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021150if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021151 enableval=$enable_gprof; enable_gprof=$enableval
21152else
21153 enable_gprof='no'
21154fi
21155
21156
21157# Enable gcov-based profiling support
21158# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021159if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021160 enableval=$enable_gcov; enable_gcov=$enableval
21161else
21162 enable_gcov='no'
21163fi
21164
21165
21166enable_profiling='no'
21167if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21168 enable_profiling='yes'
21169 if test "$libtool_build_shared_libs" = 'yes'; then
21170 echo "Warning: Can not profile code using shared libraries"
21171 fi
21172fi
21173
21174# Magick API method prefix
21175
21176# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021177if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021178 withval=$with_method_prefix; with_method_prefix=$enableval
21179else
21180 with_method_prefix=''
21181fi
21182
21183
21184if test "$with_method_prefix" != ''; then
21185
21186cat >>confdefs.h <<_ACEOF
21187#define NAMESPACE_PREFIX $with_method_prefix
21188_ACEOF
21189
21190fi
21191
21192# Number of bits in a Quantum
21193
21194# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021195if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021196 withval=$with_quantum_depth; with_quantum_depth=$withval
21197else
21198 with_quantum_depth=16
21199fi
21200
21201
21202if test "$with_quantum_depth" != '8'; then
21203 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21204fi
21205
21206case "${with_quantum_depth}" in
21207 8 ) ;;
21208 16 ) ;;
21209 32 ) ;;
21210 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021211 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021212esac
21213QUANTUM_DEPTH="$with_quantum_depth"
21214
21215cat >>confdefs.h <<_ACEOF
21216#define QUANTUM_DEPTH $QUANTUM_DEPTH
21217_ACEOF
21218
21219
21220# Set pixel cache threshold
21221
21222# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021223if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021224 withval=$with_cache; with_cache=$withval
21225else
21226 with_cache=''
21227fi
21228
21229
21230if test "$with_cache" != ''; then
21231
21232cat >>confdefs.h <<_ACEOF
21233#define PixelCacheThreshold $with_cache
21234_ACEOF
21235
21236 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21237fi
21238
21239# Disable/Enable support for full delegate paths
21240
21241# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021242if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021243 withval=$with_frozenpaths; with_frozenpaths=$withval
21244else
21245 with_frozenpaths='no'
21246fi
21247
21248
21249# Enable build/install of Magick++
21250
21251# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021252if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021253 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21254else
21255 with_magick_plus_plus='yes'
21256fi
21257
21258
21259# Disable build/install of PerlMagick.
21260
21261# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021262if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021263 withval=$with_perl; with_perl=$withval
21264else
cristyb5f4e2f2010-04-25 00:49:11 +000021265 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021266fi
21267
21268
21269# Options to pass when configuring PerlMagick
21270
21271# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021272if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021273 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021274fi
21275
21276
cristy3ed852e2009-09-05 21:47:34 +000021277
21278# Enable umem, object-caching memory allocation library.
21279
21280# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021281if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021282 withval=$with_umem; with_umem=$withval
21283else
21284 with_umem='no'
21285fi
21286
21287if test "$with_umem" != 'yes' ; then
21288 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21289fi
21290
21291#
21292# Specify path to shared libstdc++ if not in normal location
21293#
21294
21295# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021296if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021297 withval=$with_libstdc; with_libstdc=$withval
21298else
21299 with_libstdc=''
21300fi
21301
21302
21303if test "$with_libstdc" != ''; then
21304 if test -d "$with_libstdc"; then
21305 LIBSTDCLDFLAGS="-L$with_libstdc"
21306 fi
21307fi
21308
21309
21310# Does gcc required -traditional?
21311if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021313$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021314if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021315 $as_echo_n "(cached) " >&6
21316else
21317 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021319/* end confdefs.h. */
21320#include <sgtty.h>
21321Autoconf TIOCGETP
21322_ACEOF
21323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021324 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021325 ac_cv_prog_gcc_traditional=yes
21326else
21327 ac_cv_prog_gcc_traditional=no
21328fi
21329rm -f conftest*
21330
21331
21332 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021334/* end confdefs.h. */
21335#include <termio.h>
21336Autoconf TCGETA
21337_ACEOF
21338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021339 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021340 ac_cv_prog_gcc_traditional=yes
21341fi
21342rm -f conftest*
21343
21344 fi
21345fi
cristy8b350f62009-11-15 23:12:43 +000021346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021347$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21348 if test $ac_cv_prog_gcc_traditional = yes; then
21349 CC="$CC -traditional"
21350 fi
21351fi
21352
21353
21354########
21355#
21356# Set defines required to build DLLs and modules using MinGW
21357#
21358########
21359# These options are set for multi-thread DLL module build
21360# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21361# module: _DLL
21362# executable/Magick++: _DLL _MAGICKMOD_
21363MODULE_EXTRA_CPPFLAGS=''
21364LIBRARY_EXTRA_CPPFLAGS=''
21365if test "${native_win32_build}" = 'yes'; then
21366 if test "${libtool_build_shared_libs}" = 'yes'; then
21367 CPPFLAGS="$CPPFLAGS -D_DLL"
21368 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21369 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21370 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21371 if test "$with_modules" = 'yes'; then
21372 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21373 else
21374 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21375 fi
21376 else
21377 CPPFLAGS="$CPPFLAGS -D_LIB"
21378 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21379 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21380 fi
21381 if test "$with_threads" = 'yes'; then
21382 CPPFLAGS="$CPPFLAGS -D_MT"
21383 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21384 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21385 fi
21386fi
21387
21388
21389
21390# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021392$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021393if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021394 $as_echo_n "(cached) " >&6
21395else
cristy8b350f62009-11-15 23:12:43 +000021396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021397/* end confdefs.h. */
21398#include <stdlib.h>
21399#include <stdarg.h>
21400#include <string.h>
21401#include <float.h>
21402
21403int
21404main ()
21405{
21406
21407 ;
21408 return 0;
21409}
21410_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021411if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021412 ac_cv_header_stdc=yes
21413else
cristy8b350f62009-11-15 23:12:43 +000021414 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021415fi
cristy3ed852e2009-09-05 21:47:34 +000021416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21417
21418if test $ac_cv_header_stdc = yes; then
21419 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021421/* end confdefs.h. */
21422#include <string.h>
21423
21424_ACEOF
21425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021426 $EGREP "memchr" >/dev/null 2>&1; then :
21427
cristy3ed852e2009-09-05 21:47:34 +000021428else
21429 ac_cv_header_stdc=no
21430fi
21431rm -f conftest*
21432
21433fi
21434
21435if test $ac_cv_header_stdc = yes; then
21436 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021438/* end confdefs.h. */
21439#include <stdlib.h>
21440
21441_ACEOF
21442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021443 $EGREP "free" >/dev/null 2>&1; then :
21444
cristy3ed852e2009-09-05 21:47:34 +000021445else
21446 ac_cv_header_stdc=no
21447fi
21448rm -f conftest*
21449
21450fi
21451
21452if test $ac_cv_header_stdc = yes; then
21453 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021454 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021455 :
21456else
cristy8b350f62009-11-15 23:12:43 +000021457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021458/* end confdefs.h. */
21459#include <ctype.h>
21460#include <stdlib.h>
21461#if ((' ' & 0x0FF) == 0x020)
21462# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21463# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21464#else
21465# define ISLOWER(c) \
21466 (('a' <= (c) && (c) <= 'i') \
21467 || ('j' <= (c) && (c) <= 'r') \
21468 || ('s' <= (c) && (c) <= 'z'))
21469# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21470#endif
21471
21472#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21473int
21474main ()
21475{
21476 int i;
21477 for (i = 0; i < 256; i++)
21478 if (XOR (islower (i), ISLOWER (i))
21479 || toupper (i) != TOUPPER (i))
21480 return 2;
21481 return 0;
21482}
21483_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021484if ac_fn_c_try_run "$LINENO"; then :
21485
cristy3ed852e2009-09-05 21:47:34 +000021486else
cristy8b350f62009-11-15 23:12:43 +000021487 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021488fi
cristy8b350f62009-11-15 23:12:43 +000021489rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21490 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021491fi
21492
cristy3ed852e2009-09-05 21:47:34 +000021493fi
21494fi
cristy8b350f62009-11-15 23:12:43 +000021495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021496$as_echo "$ac_cv_header_stdc" >&6; }
21497if test $ac_cv_header_stdc = yes; then
21498
cristy8b350f62009-11-15 23:12:43 +000021499$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021500
21501fi
21502
21503if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021504 { $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 +000021505 header files. Compilation cannot proceed. Please install the ANSI C
21506 headers and rerun this script." >&5
21507$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21508 header files. Compilation cannot proceed. Please install the ANSI C
21509 headers and rerun this script." >&2;};
21510fi
cristya0b81c32010-01-22 02:54:33 +000021511
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21513$as_echo_n "checking whether to enable assertions... " >&6; }
21514 # Check whether --enable-assert was given.
21515if test "${enable_assert+set}" = set; then :
21516 enableval=$enable_assert; ac_enable_assert=$enableval
21517 if test "x$enableval" = xno; then :
21518
21519$as_echo "#define NDEBUG 1" >>confdefs.h
21520
21521elif test "x$enableval" != xyes; then :
21522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21523$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21524 ac_enable_assert=yes
21525fi
21526else
21527 ac_enable_assert=yes
21528fi
21529
21530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21531$as_echo "$ac_enable_assert" >&6; }
21532
cristy3ed852e2009-09-05 21:47:34 +000021533ac_header_dirent=no
21534for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21535 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021537$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021538if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021539 $as_echo_n "(cached) " >&6
21540else
cristy8b350f62009-11-15 23:12:43 +000021541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021542/* end confdefs.h. */
21543#include <sys/types.h>
21544#include <$ac_hdr>
21545
21546int
21547main ()
21548{
21549if ((DIR *) 0)
21550return 0;
21551 ;
21552 return 0;
21553}
21554_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021555if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021556 eval "$as_ac_Header=yes"
21557else
cristy8b350f62009-11-15 23:12:43 +000021558 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021559fi
cristy3ed852e2009-09-05 21:47:34 +000021560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21561fi
cristy8b350f62009-11-15 23:12:43 +000021562eval ac_res=\$$as_ac_Header
21563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021564$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021565if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021566 cat >>confdefs.h <<_ACEOF
21567#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21568_ACEOF
21569
21570ac_header_dirent=$ac_hdr; break
21571fi
21572
21573done
21574# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21575if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021577$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021578if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021579 $as_echo_n "(cached) " >&6
21580else
21581 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021583/* end confdefs.h. */
21584
21585/* Override any GCC internal prototype to avoid an error.
21586 Use char because int might match the return type of a GCC
21587 builtin and then its argument prototype would still apply. */
21588#ifdef __cplusplus
21589extern "C"
21590#endif
21591char opendir ();
21592int
21593main ()
21594{
21595return opendir ();
21596 ;
21597 return 0;
21598}
21599_ACEOF
21600for ac_lib in '' dir; do
21601 if test -z "$ac_lib"; then
21602 ac_res="none required"
21603 else
21604 ac_res=-l$ac_lib
21605 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21606 fi
cristy8b350f62009-11-15 23:12:43 +000021607 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021608 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021609fi
cristy8b350f62009-11-15 23:12:43 +000021610rm -f core conftest.err conftest.$ac_objext \
21611 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021612 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021613 break
21614fi
21615done
cristyda16f162011-02-19 23:52:17 +000021616if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021617
cristy3ed852e2009-09-05 21:47:34 +000021618else
21619 ac_cv_search_opendir=no
21620fi
21621rm conftest.$ac_ext
21622LIBS=$ac_func_search_save_LIBS
21623fi
cristy8b350f62009-11-15 23:12:43 +000021624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021625$as_echo "$ac_cv_search_opendir" >&6; }
21626ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021627if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021628 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21629
21630fi
21631
21632else
cristy8b350f62009-11-15 23:12:43 +000021633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021634$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021635if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021636 $as_echo_n "(cached) " >&6
21637else
21638 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021640/* end confdefs.h. */
21641
21642/* Override any GCC internal prototype to avoid an error.
21643 Use char because int might match the return type of a GCC
21644 builtin and then its argument prototype would still apply. */
21645#ifdef __cplusplus
21646extern "C"
21647#endif
21648char opendir ();
21649int
21650main ()
21651{
21652return opendir ();
21653 ;
21654 return 0;
21655}
21656_ACEOF
21657for ac_lib in '' x; do
21658 if test -z "$ac_lib"; then
21659 ac_res="none required"
21660 else
21661 ac_res=-l$ac_lib
21662 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21663 fi
cristy8b350f62009-11-15 23:12:43 +000021664 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021665 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021666fi
cristy8b350f62009-11-15 23:12:43 +000021667rm -f core conftest.err conftest.$ac_objext \
21668 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021669 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021670 break
21671fi
21672done
cristyda16f162011-02-19 23:52:17 +000021673if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021674
cristy3ed852e2009-09-05 21:47:34 +000021675else
21676 ac_cv_search_opendir=no
21677fi
21678rm conftest.$ac_ext
21679LIBS=$ac_func_search_save_LIBS
21680fi
cristy8b350f62009-11-15 23:12:43 +000021681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021682$as_echo "$ac_cv_search_opendir" >&6; }
21683ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021684if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21686
21687fi
21688
21689fi
21690
21691
21692# Check additional headers
cristya8549b12011-05-18 19:05:08 +000021693for 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 +000021694do :
21695 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21696ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021697if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021698 cat >>confdefs.h <<_ACEOF
21699#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21700_ACEOF
21701
21702fi
21703
21704done
21705
21706
21707########
21708#
21709# Checks for typedefs, structures, and compiler characteristics.
21710#
21711########
21712
cristy8b350f62009-11-15 23:12:43 +000021713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021714$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021715if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021716 $as_echo_n "(cached) " >&6
21717else
cristy8b350f62009-11-15 23:12:43 +000021718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021719/* end confdefs.h. */
21720
21721#include <stdbool.h>
21722#ifndef bool
21723 "error: bool is not defined"
21724#endif
21725#ifndef false
21726 "error: false is not defined"
21727#endif
21728#if false
21729 "error: false is not 0"
21730#endif
21731#ifndef true
21732 "error: true is not defined"
21733#endif
21734#if true != 1
21735 "error: true is not 1"
21736#endif
21737#ifndef __bool_true_false_are_defined
21738 "error: __bool_true_false_are_defined is not defined"
21739#endif
21740
21741 struct s { _Bool s: 1; _Bool t; } s;
21742
21743 char a[true == 1 ? 1 : -1];
21744 char b[false == 0 ? 1 : -1];
21745 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21746 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021747 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021748 char f[(_Bool) 0.0 == false ? 1 : -1];
21749 char g[true];
21750 char h[sizeof (_Bool)];
21751 char i[sizeof s.t];
21752 enum { j = false, k = true, l = false * true, m = true * 256 };
21753 /* The following fails for
21754 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21755 _Bool n[m];
21756 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21757 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021758 /* Catch a bug in an HP-UX C compiler. See
21759 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21760 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21761 */
21762 _Bool q = true;
21763 _Bool *pq = &q;
21764
21765int
21766main ()
21767{
21768
cristyda16f162011-02-19 23:52:17 +000021769 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021770 *pq |= q;
21771 *pq |= ! q;
21772 /* Refer to every declared value, to avoid compiler optimizations. */
21773 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21774 + !m + !n + !o + !p + !q + !pq);
21775
21776 ;
21777 return 0;
21778}
21779_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021780if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021781 ac_cv_header_stdbool_h=yes
21782else
cristy8b350f62009-11-15 23:12:43 +000021783 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021784fi
cristy3ed852e2009-09-05 21:47:34 +000021785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21786fi
cristy8b350f62009-11-15 23:12:43 +000021787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021788$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021789ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021790if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021791
21792cat >>confdefs.h <<_ACEOF
21793#define HAVE__BOOL 1
21794_ACEOF
21795
21796
21797fi
21798
21799if test $ac_cv_header_stdbool_h = yes; then
21800
cristy8b350f62009-11-15 23:12:43 +000021801$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021802
21803fi
21804
cristy8b350f62009-11-15 23:12:43 +000021805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021806$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021807if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021808 $as_echo_n "(cached) " >&6
21809else
cristy8b350f62009-11-15 23:12:43 +000021810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021811/* end confdefs.h. */
21812
21813int
21814main ()
21815{
21816
21817volatile int x;
21818int * volatile y = (int *) 0;
21819return !x && !y;
21820 ;
21821 return 0;
21822}
21823_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021824if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021825 ac_cv_c_volatile=yes
21826else
cristy8b350f62009-11-15 23:12:43 +000021827 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021828fi
cristy3ed852e2009-09-05 21:47:34 +000021829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21830fi
cristy8b350f62009-11-15 23:12:43 +000021831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021832$as_echo "$ac_cv_c_volatile" >&6; }
21833if test $ac_cv_c_volatile = no; then
21834
cristy8b350f62009-11-15 23:12:43 +000021835$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021836
21837fi
21838
cristy8b350f62009-11-15 23:12:43 +000021839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021840$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021841if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021842 $as_echo_n "(cached) " >&6
21843else
cristy8b350f62009-11-15 23:12:43 +000021844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021845/* end confdefs.h. */
21846#define x(y) #y
21847
21848char *s = x(teststring);
21849_ACEOF
21850if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021851 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021852 ac_cv_c_stringize=no
21853else
21854 ac_cv_c_stringize=yes
21855fi
21856rm -f conftest*
21857
21858fi
cristy8b350f62009-11-15 23:12:43 +000021859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021860$as_echo "$ac_cv_c_stringize" >&6; }
21861if test $ac_cv_c_stringize = yes; then
21862
cristy8b350f62009-11-15 23:12:43 +000021863$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021864
21865fi
21866
cristy8b350f62009-11-15 23:12:43 +000021867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021868$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021869if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021870 $as_echo_n "(cached) " >&6
21871else
cristy8b350f62009-11-15 23:12:43 +000021872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021873/* end confdefs.h. */
21874#include <sys/types.h>
21875#include <sys/stat.h>
21876
21877#if defined S_ISBLK && defined S_IFDIR
21878extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21879#endif
21880
21881#if defined S_ISBLK && defined S_IFCHR
21882extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21883#endif
21884
21885#if defined S_ISLNK && defined S_IFREG
21886extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21887#endif
21888
21889#if defined S_ISSOCK && defined S_IFREG
21890extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21891#endif
21892
21893_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021894if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021895 ac_cv_header_stat_broken=no
21896else
cristy8b350f62009-11-15 23:12:43 +000021897 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021898fi
cristy3ed852e2009-09-05 21:47:34 +000021899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21900fi
cristy8b350f62009-11-15 23:12:43 +000021901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021902$as_echo "$ac_cv_header_stat_broken" >&6; }
21903if test $ac_cv_header_stat_broken = yes; then
21904
cristy8b350f62009-11-15 23:12:43 +000021905$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021906
21907fi
21908
cristy8b350f62009-11-15 23:12:43 +000021909{ $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 +000021910$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021911if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021912 $as_echo_n "(cached) " >&6
21913else
cristy8b350f62009-11-15 23:12:43 +000021914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021915/* end confdefs.h. */
21916#include <sys/types.h>
21917#include <sys/time.h>
21918#include <time.h>
21919
21920int
21921main ()
21922{
21923if ((struct tm *) 0)
21924return 0;
21925 ;
21926 return 0;
21927}
21928_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021929if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021930 ac_cv_header_time=yes
21931else
cristy8b350f62009-11-15 23:12:43 +000021932 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021933fi
cristy3ed852e2009-09-05 21:47:34 +000021934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21935fi
cristy8b350f62009-11-15 23:12:43 +000021936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021937$as_echo "$ac_cv_header_time" >&6; }
21938if test $ac_cv_header_time = yes; then
21939
cristy8b350f62009-11-15 23:12:43 +000021940$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021941
21942fi
21943
cristy8b350f62009-11-15 23:12:43 +000021944{ $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 +000021945$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021946if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021947 $as_echo_n "(cached) " >&6
21948else
cristy8b350f62009-11-15 23:12:43 +000021949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021950/* end confdefs.h. */
21951#include <sys/types.h>
21952#include <time.h>
21953
21954int
21955main ()
21956{
21957struct tm tm;
21958 int *p = &tm.tm_sec;
21959 return !p;
21960 ;
21961 return 0;
21962}
21963_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021964if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021965 ac_cv_struct_tm=time.h
21966else
cristy8b350f62009-11-15 23:12:43 +000021967 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021968fi
cristy3ed852e2009-09-05 21:47:34 +000021969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21970fi
cristy8b350f62009-11-15 23:12:43 +000021971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021972$as_echo "$ac_cv_struct_tm" >&6; }
21973if test $ac_cv_struct_tm = sys/time.h; then
21974
cristy8b350f62009-11-15 23:12:43 +000021975$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021976
21977fi
21978
cristy92703d82010-04-26 00:18:18 +000021979ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21980#include <$ac_cv_struct_tm>
21981
21982"
cristyda16f162011-02-19 23:52:17 +000021983if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021984
21985cat >>confdefs.h <<_ACEOF
21986#define HAVE_STRUCT_TM_TM_ZONE 1
21987_ACEOF
21988
21989
21990fi
21991
21992if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21993
21994$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21995
21996else
21997 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21998"
cristyda16f162011-02-19 23:52:17 +000021999if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022000 ac_have_decl=1
22001else
22002 ac_have_decl=0
22003fi
22004
22005cat >>confdefs.h <<_ACEOF
22006#define HAVE_DECL_TZNAME $ac_have_decl
22007_ACEOF
22008
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22010$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022011if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022012 $as_echo_n "(cached) " >&6
22013else
22014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22015/* end confdefs.h. */
22016#include <time.h>
22017#if !HAVE_DECL_TZNAME
22018extern char *tzname[];
22019#endif
22020
22021int
22022main ()
22023{
22024return tzname[0][0];
22025 ;
22026 return 0;
22027}
22028_ACEOF
22029if ac_fn_c_try_link "$LINENO"; then :
22030 ac_cv_var_tzname=yes
22031else
22032 ac_cv_var_tzname=no
22033fi
22034rm -f core conftest.err conftest.$ac_objext \
22035 conftest$ac_exeext conftest.$ac_ext
22036fi
22037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22038$as_echo "$ac_cv_var_tzname" >&6; }
22039 if test $ac_cv_var_tzname = yes; then
22040
22041$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22042
22043 fi
22044fi
22045
cristy8b350f62009-11-15 23:12:43 +000022046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022047$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022048if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022049 $as_echo_n "(cached) " >&6
22050else
22051 echo '#! /bin/cat
22052exit 69
22053' >conftest
22054chmod u+x conftest
22055(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22056if test $? -ne 69; then
22057 ac_cv_sys_interpreter=yes
22058else
22059 ac_cv_sys_interpreter=no
22060fi
22061rm -f conftest
22062fi
cristy8b350f62009-11-15 23:12:43 +000022063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022064$as_echo "$ac_cv_sys_interpreter" >&6; }
22065interpval=$ac_cv_sys_interpreter
22066
22067
cristy3ed852e2009-09-05 21:47:34 +000022068# If the C compiler supports the keyword inline, do nothing. Otherwise
22069# define inline to __inline__ or __inline if it accepts one of those,
22070# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022072$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022073if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022074 $as_echo_n "(cached) " >&6
22075else
22076 ac_cv_c_inline=no
22077for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022079/* end confdefs.h. */
22080#ifndef __cplusplus
22081typedef int foo_t;
22082static $ac_kw foo_t static_foo () {return 0; }
22083$ac_kw foo_t foo () {return 0; }
22084#endif
22085
22086_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022087if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022088 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022089fi
cristy3ed852e2009-09-05 21:47:34 +000022090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22091 test "$ac_cv_c_inline" != no && break
22092done
22093
22094fi
cristy8b350f62009-11-15 23:12:43 +000022095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022096$as_echo "$ac_cv_c_inline" >&6; }
22097
cristy3ed852e2009-09-05 21:47:34 +000022098case $ac_cv_c_inline in
22099 inline | yes) ;;
22100 *)
22101 case $ac_cv_c_inline in
22102 no) ac_val=;;
22103 *) ac_val=$ac_cv_c_inline;;
22104 esac
22105 cat >>confdefs.h <<_ACEOF
22106#ifndef __cplusplus
22107#define inline $ac_val
22108#endif
22109_ACEOF
22110 ;;
22111esac
22112
22113
22114# If the C compiler supports the keyword restrict, do nothing. Otherwise
22115# define restrict to __restrict__ or __restrict if it accepts one of those,
22116# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022118$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022119if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022120 $as_echo_n "(cached) " >&6
22121else
22122 ac_cv_c_restrict=no
22123 # The order here caters to the fact that C++ does not require restrict.
22124 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022126/* end confdefs.h. */
22127typedef int * int_ptr;
22128 int foo (int_ptr $ac_kw ip) {
22129 return ip[0];
22130 }
22131int
22132main ()
22133{
22134int s[1];
22135 int * $ac_kw t = s;
22136 t[0] = 0;
22137 return foo(t)
22138 ;
22139 return 0;
22140}
22141_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022142if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022143 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022144fi
cristy3ed852e2009-09-05 21:47:34 +000022145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22146 test "$ac_cv_c_restrict" != no && break
22147 done
22148
22149fi
cristy8b350f62009-11-15 23:12:43 +000022150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022151$as_echo "$ac_cv_c_restrict" >&6; }
22152
cristy3ed852e2009-09-05 21:47:34 +000022153 case $ac_cv_c_restrict in
22154 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022155 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022156 ;;
22157 *) cat >>confdefs.h <<_ACEOF
22158#define restrict $ac_cv_c_restrict
22159_ACEOF
22160 ;;
22161 esac
22162
22163
22164# If words are stored with the most significant byte first (like
22165# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022167$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022168if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022169 $as_echo_n "(cached) " >&6
22170else
22171 ac_cv_c_bigendian=unknown
22172 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022174/* end confdefs.h. */
22175#ifndef __APPLE_CC__
22176 not a universal capable compiler
22177 #endif
22178 typedef int dummy;
22179
22180_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022181if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022182
22183 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022184 # there are at least two -arch flags with different values.
22185 ac_arch=
22186 ac_prev=
22187 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22188 if test -n "$ac_prev"; then
22189 case $ac_word in
22190 i?86 | x86_64 | ppc | ppc64)
22191 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22192 ac_arch=$ac_word
22193 else
22194 ac_cv_c_bigendian=universal
22195 break
22196 fi
22197 ;;
22198 esac
22199 ac_prev=
22200 elif test "x$ac_word" = "x-arch"; then
22201 ac_prev=arch
22202 fi
22203 done
cristy3ed852e2009-09-05 21:47:34 +000022204fi
cristy3ed852e2009-09-05 21:47:34 +000022205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22206 if test $ac_cv_c_bigendian = unknown; then
22207 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022209/* end confdefs.h. */
22210#include <sys/types.h>
22211 #include <sys/param.h>
22212
22213int
22214main ()
22215{
22216#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22217 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22218 && LITTLE_ENDIAN)
22219 bogus endian macros
22220 #endif
22221
22222 ;
22223 return 0;
22224}
22225_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022226if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022227 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022229/* end confdefs.h. */
22230#include <sys/types.h>
22231 #include <sys/param.h>
22232
22233int
22234main ()
22235{
22236#if BYTE_ORDER != BIG_ENDIAN
22237 not big endian
22238 #endif
22239
22240 ;
22241 return 0;
22242}
22243_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022244if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022245 ac_cv_c_bigendian=yes
22246else
cristy8b350f62009-11-15 23:12:43 +000022247 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022248fi
cristy3ed852e2009-09-05 21:47:34 +000022249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022250fi
cristy3ed852e2009-09-05 21:47:34 +000022251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22252 fi
22253 if test $ac_cv_c_bigendian = unknown; then
22254 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022256/* end confdefs.h. */
22257#include <limits.h>
22258
22259int
22260main ()
22261{
22262#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22263 bogus endian macros
22264 #endif
22265
22266 ;
22267 return 0;
22268}
22269_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022270if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022271 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022273/* end confdefs.h. */
22274#include <limits.h>
22275
22276int
22277main ()
22278{
22279#ifndef _BIG_ENDIAN
22280 not big endian
22281 #endif
22282
22283 ;
22284 return 0;
22285}
22286_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022287if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022288 ac_cv_c_bigendian=yes
22289else
cristy8b350f62009-11-15 23:12:43 +000022290 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022291fi
cristy3ed852e2009-09-05 21:47:34 +000022292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022293fi
cristy3ed852e2009-09-05 21:47:34 +000022294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22295 fi
22296 if test $ac_cv_c_bigendian = unknown; then
22297 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022298 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022299 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022301/* end confdefs.h. */
22302short int ascii_mm[] =
22303 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22304 short int ascii_ii[] =
22305 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22306 int use_ascii (int i) {
22307 return ascii_mm[i] + ascii_ii[i];
22308 }
22309 short int ebcdic_ii[] =
22310 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22311 short int ebcdic_mm[] =
22312 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22313 int use_ebcdic (int i) {
22314 return ebcdic_mm[i] + ebcdic_ii[i];
22315 }
22316 extern int foo;
22317
22318int
22319main ()
22320{
22321return use_ascii (foo) == use_ebcdic (foo);
22322 ;
22323 return 0;
22324}
22325_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022326if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022327 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22328 ac_cv_c_bigendian=yes
22329 fi
22330 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22331 if test "$ac_cv_c_bigendian" = unknown; then
22332 ac_cv_c_bigendian=no
22333 else
22334 # finding both strings is unlikely to happen, but who knows?
22335 ac_cv_c_bigendian=unknown
22336 fi
22337 fi
cristy3ed852e2009-09-05 21:47:34 +000022338fi
cristy3ed852e2009-09-05 21:47:34 +000022339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22340else
cristy8b350f62009-11-15 23:12:43 +000022341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022342/* end confdefs.h. */
22343$ac_includes_default
22344int
22345main ()
22346{
22347
22348 /* Are we little or big endian? From Harbison&Steele. */
22349 union
22350 {
22351 long int l;
22352 char c[sizeof (long int)];
22353 } u;
22354 u.l = 1;
22355 return u.c[sizeof (long int) - 1] == 1;
22356
22357 ;
22358 return 0;
22359}
22360_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022361if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022362 ac_cv_c_bigendian=no
22363else
cristy8b350f62009-11-15 23:12:43 +000022364 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022365fi
cristy8b350f62009-11-15 23:12:43 +000022366rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22367 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022368fi
22369
cristy3ed852e2009-09-05 21:47:34 +000022370 fi
22371fi
cristy8b350f62009-11-15 23:12:43 +000022372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022373$as_echo "$ac_cv_c_bigendian" >&6; }
22374 case $ac_cv_c_bigendian in #(
22375 yes)
cristy8b350f62009-11-15 23:12:43 +000022376 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022377;; #(
22378 no)
22379 ;; #(
22380 universal)
22381
cristy8b350f62009-11-15 23:12:43 +000022382$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022383
22384 ;; #(
22385 *)
cristy98dddb52010-11-04 00:30:15 +000022386 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022387 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022388 esac
22389
22390
cristy501c8042011-05-26 17:46:28 +000022391# Define to a suitable type, if standard headers do not define it.
22392ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22393case $ac_cv_c_int8_t in #(
22394 no|yes) ;; #(
22395 *)
cristy3ed852e2009-09-05 21:47:34 +000022396
22397cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022398#define int8_t $ac_cv_c_int8_t
22399_ACEOF
22400;;
22401esac
22402
22403ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22404case $ac_cv_c_int16_t in #(
22405 no|yes) ;; #(
22406 *)
22407
22408cat >>confdefs.h <<_ACEOF
22409#define int16_t $ac_cv_c_int16_t
22410_ACEOF
22411;;
22412esac
22413
22414ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22415case $ac_cv_c_int32_t in #(
22416 no|yes) ;; #(
22417 *)
22418
22419cat >>confdefs.h <<_ACEOF
22420#define int32_t $ac_cv_c_int32_t
22421_ACEOF
22422;;
22423esac
22424
22425ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22426case $ac_cv_c_int64_t in #(
22427 no|yes) ;; #(
22428 *)
22429
22430cat >>confdefs.h <<_ACEOF
22431#define int64_t $ac_cv_c_int64_t
22432_ACEOF
22433;;
22434esac
22435
22436
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22438$as_echo_n "checking for long long int... " >&6; }
22439if ${ac_cv_type_long_long_int+:} false; then :
22440 $as_echo_n "(cached) " >&6
22441else
22442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22443/* end confdefs.h. */
22444
22445 /* For now, do not test the preprocessor; as of 2007 there are too many
22446 implementations with broken preprocessors. Perhaps this can
22447 be revisited in 2012. In the meantime, code should not expect
22448 #if to work with literals wider than 32 bits. */
22449 /* Test literals. */
22450 long long int ll = 9223372036854775807ll;
22451 long long int nll = -9223372036854775807LL;
22452 unsigned long long int ull = 18446744073709551615ULL;
22453 /* Test constant expressions. */
22454 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22455 ? 1 : -1)];
22456 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22457 ? 1 : -1)];
22458 int i = 63;
22459int
22460main ()
22461{
22462/* Test availability of runtime routines for shift and division. */
22463 long long int llmax = 9223372036854775807ll;
22464 unsigned long long int ullmax = 18446744073709551615ull;
22465 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22466 | (llmax / ll) | (llmax % ll)
22467 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22468 | (ullmax / ull) | (ullmax % ull));
22469 ;
22470 return 0;
22471}
22472
22473_ACEOF
22474if ac_fn_c_try_link "$LINENO"; then :
22475 if test "$cross_compiling" = yes; then :
22476 ac_cv_type_long_long_int=yes
22477else
22478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22479/* end confdefs.h. */
22480#include <limits.h>
22481 #ifndef LLONG_MAX
22482 # define HALF \
22483 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22484 # define LLONG_MAX (HALF - 1 + HALF)
22485 #endif
22486int
22487main ()
22488{
22489long long int n = 1;
22490 int i;
22491 for (i = 0; ; i++)
22492 {
22493 long long int m = n << i;
22494 if (m >> i != n)
22495 return 1;
22496 if (LLONG_MAX / 2 < m)
22497 break;
22498 }
22499 return 0;
22500 ;
22501 return 0;
22502}
22503_ACEOF
22504if ac_fn_c_try_run "$LINENO"; then :
22505 ac_cv_type_long_long_int=yes
22506else
22507 ac_cv_type_long_long_int=no
22508fi
22509rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22510 conftest.$ac_objext conftest.beam conftest.$ac_ext
22511fi
22512
22513else
22514 ac_cv_type_long_long_int=no
22515fi
22516rm -f core conftest.err conftest.$ac_objext \
22517 conftest$ac_exeext conftest.$ac_ext
22518fi
22519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22520$as_echo "$ac_cv_type_long_long_int" >&6; }
22521 if test $ac_cv_type_long_long_int = yes; then
22522
22523$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22524
22525 fi
22526
22527
22528
22529 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22530if test "x$ac_cv_type_intmax_t" = xyes; then :
22531
22532$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22533
22534else
22535 test $ac_cv_type_long_long_int = yes \
22536 && ac_type='long long int' \
22537 || ac_type='long int'
22538
22539cat >>confdefs.h <<_ACEOF
22540#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022541_ACEOF
22542
22543fi
22544
22545
cristy501c8042011-05-26 17:46:28 +000022546
22547 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22548if test "x$ac_cv_type_intptr_t" = xyes; then :
22549
22550$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022551
cristy3ed852e2009-09-05 21:47:34 +000022552else
cristy501c8042011-05-26 17:46:28 +000022553 for ac_type in 'int' 'long int' 'long long int'; do
22554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22555/* end confdefs.h. */
22556$ac_includes_default
22557int
22558main ()
22559{
22560static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22561test_array [0] = 0
22562
22563 ;
22564 return 0;
22565}
22566_ACEOF
22567if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022568
22569cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022570#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022571_ACEOF
22572
cristy501c8042011-05-26 17:46:28 +000022573 ac_type=
22574fi
22575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22576 test -z "$ac_type" && break
22577 done
cristy3ed852e2009-09-05 21:47:34 +000022578fi
22579
22580
cristy3ed852e2009-09-05 21:47:34 +000022581
cristy501c8042011-05-26 17:46:28 +000022582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22583$as_echo_n "checking for long double... " >&6; }
22584if ${ac_cv_type_long_double+:} false; then :
22585 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022586else
cristy501c8042011-05-26 17:46:28 +000022587 if test "$GCC" = yes; then
22588 ac_cv_type_long_double=yes
22589 else
22590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22591/* end confdefs.h. */
22592/* The Stardent Vistra knows sizeof (long double), but does
22593 not support it. */
22594 long double foo = 0.0L;
22595int
22596main ()
22597{
22598static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22599 sizeof (double) <= sizeof (long double))];
22600test_array [0] = 0
cristy3ed852e2009-09-05 21:47:34 +000022601
cristy501c8042011-05-26 17:46:28 +000022602 ;
22603 return 0;
22604}
cristy3ed852e2009-09-05 21:47:34 +000022605_ACEOF
cristy501c8042011-05-26 17:46:28 +000022606if ac_fn_c_try_compile "$LINENO"; then :
22607 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022608else
cristy501c8042011-05-26 17:46:28 +000022609 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022610fi
cristy501c8042011-05-26 17:46:28 +000022611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22612 fi
cristy3ed852e2009-09-05 21:47:34 +000022613fi
cristy501c8042011-05-26 17:46:28 +000022614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22615$as_echo "$ac_cv_type_long_double" >&6; }
22616 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022617
cristy501c8042011-05-26 17:46:28 +000022618$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022619
cristy501c8042011-05-26 17:46:28 +000022620 fi
22621
cristy3ed852e2009-09-05 21:47:34 +000022622
cristy8b350f62009-11-15 23:12:43 +000022623 { $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 +000022624$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022625if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022626 $as_echo_n "(cached) " >&6
22627else
cristy8b350f62009-11-15 23:12:43 +000022628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022629/* end confdefs.h. */
22630#include <float.h>
22631 long double const a[] =
22632 {
22633 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22634 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22635 };
22636 long double
22637 f (long double x)
22638 {
22639 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22640 + (x ? f (x) : 'c'));
22641 }
22642
22643int
22644main ()
22645{
22646static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22647 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22648 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22649 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22650 && (int) LDBL_EPSILON == 0
22651 )];
22652test_array [0] = 0
22653
22654 ;
22655 return 0;
22656}
22657_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022658if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022659 ac_cv_type_long_double_wider=yes
22660else
cristy8b350f62009-11-15 23:12:43 +000022661 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022662fi
cristy3ed852e2009-09-05 21:47:34 +000022663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22664fi
cristy8b350f62009-11-15 23:12:43 +000022665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022666$as_echo "$ac_cv_type_long_double_wider" >&6; }
22667 if test $ac_cv_type_long_double_wider = yes; then
22668
cristy8b350f62009-11-15 23:12:43 +000022669$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022670
22671 fi
22672
22673
cristy501c8042011-05-26 17:46:28 +000022674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22675$as_echo_n "checking for long long int... " >&6; }
22676if ${ac_cv_type_long_long_int+:} false; then :
22677 $as_echo_n "(cached) " >&6
22678else
22679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22680/* end confdefs.h. */
22681
22682 /* For now, do not test the preprocessor; as of 2007 there are too many
22683 implementations with broken preprocessors. Perhaps this can
22684 be revisited in 2012. In the meantime, code should not expect
22685 #if to work with literals wider than 32 bits. */
22686 /* Test literals. */
22687 long long int ll = 9223372036854775807ll;
22688 long long int nll = -9223372036854775807LL;
22689 unsigned long long int ull = 18446744073709551615ULL;
22690 /* Test constant expressions. */
22691 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22692 ? 1 : -1)];
22693 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22694 ? 1 : -1)];
22695 int i = 63;
22696int
22697main ()
22698{
22699/* Test availability of runtime routines for shift and division. */
22700 long long int llmax = 9223372036854775807ll;
22701 unsigned long long int ullmax = 18446744073709551615ull;
22702 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22703 | (llmax / ll) | (llmax % ll)
22704 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22705 | (ullmax / ull) | (ullmax % ull));
22706 ;
22707 return 0;
22708}
22709
22710_ACEOF
22711if ac_fn_c_try_link "$LINENO"; then :
22712 if test "$cross_compiling" = yes; then :
22713 ac_cv_type_long_long_int=yes
22714else
22715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22716/* end confdefs.h. */
22717#include <limits.h>
22718 #ifndef LLONG_MAX
22719 # define HALF \
22720 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22721 # define LLONG_MAX (HALF - 1 + HALF)
22722 #endif
22723int
22724main ()
22725{
22726long long int n = 1;
22727 int i;
22728 for (i = 0; ; i++)
22729 {
22730 long long int m = n << i;
22731 if (m >> i != n)
22732 return 1;
22733 if (LLONG_MAX / 2 < m)
22734 break;
22735 }
22736 return 0;
22737 ;
22738 return 0;
22739}
22740_ACEOF
22741if ac_fn_c_try_run "$LINENO"; then :
22742 ac_cv_type_long_long_int=yes
22743else
22744 ac_cv_type_long_long_int=no
22745fi
22746rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22747 conftest.$ac_objext conftest.beam conftest.$ac_ext
22748fi
22749
22750else
22751 ac_cv_type_long_long_int=no
22752fi
22753rm -f core conftest.err conftest.$ac_objext \
22754 conftest$ac_exeext conftest.$ac_ext
22755fi
22756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22757$as_echo "$ac_cv_type_long_long_int" >&6; }
22758 if test $ac_cv_type_long_long_int = yes; then
22759
22760$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22761
22762 fi
22763
22764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22765$as_echo_n "checking for mbstate_t... " >&6; }
22766if ${ac_cv_type_mbstate_t+:} false; then :
22767 $as_echo_n "(cached) " >&6
22768else
22769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22770/* end confdefs.h. */
22771$ac_includes_default
22772# include <wchar.h>
22773int
22774main ()
22775{
22776mbstate_t x; return sizeof x;
22777 ;
22778 return 0;
22779}
22780_ACEOF
22781if ac_fn_c_try_compile "$LINENO"; then :
22782 ac_cv_type_mbstate_t=yes
22783else
22784 ac_cv_type_mbstate_t=no
22785fi
22786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22787fi
22788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22789$as_echo "$ac_cv_type_mbstate_t" >&6; }
22790 if test $ac_cv_type_mbstate_t = yes; then
22791
22792$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22793
22794 else
22795
22796$as_echo "#define mbstate_t int" >>confdefs.h
22797
22798 fi
22799ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22800if test "x$ac_cv_type_mode_t" = xyes; then :
22801
22802else
22803
22804cat >>confdefs.h <<_ACEOF
22805#define mode_t int
22806_ACEOF
22807
22808fi
22809
22810ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22811if test "x$ac_cv_type_off_t" = xyes; then :
22812
22813else
22814
22815cat >>confdefs.h <<_ACEOF
22816#define off_t long int
22817_ACEOF
22818
22819fi
22820
22821ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22822if test "x$ac_cv_type_pid_t" = xyes; then :
22823
22824else
22825
22826cat >>confdefs.h <<_ACEOF
22827#define pid_t int
22828_ACEOF
22829
22830fi
22831
22832ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22833if test "x$ac_cv_type_size_t" = xyes; then :
22834
22835else
22836
22837cat >>confdefs.h <<_ACEOF
22838#define size_t unsigned int
22839_ACEOF
22840
22841fi
22842
22843ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22844if test "x$ac_cv_type_ssize_t" = xyes; then :
22845
22846else
22847
22848cat >>confdefs.h <<_ACEOF
22849#define ssize_t int
22850_ACEOF
22851
22852fi
22853
22854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22855$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22856if ${ac_cv_type_uid_t+:} false; then :
22857 $as_echo_n "(cached) " >&6
22858else
22859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22860/* end confdefs.h. */
22861#include <sys/types.h>
22862
22863_ACEOF
22864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22865 $EGREP "uid_t" >/dev/null 2>&1; then :
22866 ac_cv_type_uid_t=yes
22867else
22868 ac_cv_type_uid_t=no
22869fi
22870rm -f conftest*
22871
22872fi
22873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22874$as_echo "$ac_cv_type_uid_t" >&6; }
22875if test $ac_cv_type_uid_t = no; then
22876
22877$as_echo "#define uid_t int" >>confdefs.h
22878
22879
22880$as_echo "#define gid_t int" >>confdefs.h
22881
22882fi
22883
22884ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22885case $ac_cv_c_uint8_t in #(
22886 no|yes) ;; #(
22887 *)
22888
22889$as_echo "#define _UINT8_T 1" >>confdefs.h
22890
22891
22892cat >>confdefs.h <<_ACEOF
22893#define uint8_t $ac_cv_c_uint8_t
22894_ACEOF
22895;;
22896 esac
22897
22898ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
22899case $ac_cv_c_uint16_t in #(
22900 no|yes) ;; #(
22901 *)
22902
22903
22904cat >>confdefs.h <<_ACEOF
22905#define uint16_t $ac_cv_c_uint16_t
22906_ACEOF
22907;;
22908 esac
22909
22910ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
22911case $ac_cv_c_uint32_t in #(
22912 no|yes) ;; #(
22913 *)
22914
22915$as_echo "#define _UINT32_T 1" >>confdefs.h
22916
22917
22918cat >>confdefs.h <<_ACEOF
22919#define uint32_t $ac_cv_c_uint32_t
22920_ACEOF
22921;;
22922 esac
22923
22924ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
22925case $ac_cv_c_uint64_t in #(
22926 no|yes) ;; #(
22927 *)
22928
22929$as_echo "#define _UINT64_T 1" >>confdefs.h
22930
22931
22932cat >>confdefs.h <<_ACEOF
22933#define uint64_t $ac_cv_c_uint64_t
22934_ACEOF
22935;;
22936 esac
22937
22938
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22940$as_echo_n "checking for unsigned long long int... " >&6; }
22941if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22942 $as_echo_n "(cached) " >&6
22943else
22944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22945/* end confdefs.h. */
22946
22947 /* For now, do not test the preprocessor; as of 2007 there are too many
22948 implementations with broken preprocessors. Perhaps this can
22949 be revisited in 2012. In the meantime, code should not expect
22950 #if to work with literals wider than 32 bits. */
22951 /* Test literals. */
22952 long long int ll = 9223372036854775807ll;
22953 long long int nll = -9223372036854775807LL;
22954 unsigned long long int ull = 18446744073709551615ULL;
22955 /* Test constant expressions. */
22956 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22957 ? 1 : -1)];
22958 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22959 ? 1 : -1)];
22960 int i = 63;
22961int
22962main ()
22963{
22964/* Test availability of runtime routines for shift and division. */
22965 long long int llmax = 9223372036854775807ll;
22966 unsigned long long int ullmax = 18446744073709551615ull;
22967 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22968 | (llmax / ll) | (llmax % ll)
22969 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22970 | (ullmax / ull) | (ullmax % ull));
22971 ;
22972 return 0;
22973}
22974
22975_ACEOF
22976if ac_fn_c_try_link "$LINENO"; then :
22977 ac_cv_type_unsigned_long_long_int=yes
22978else
22979 ac_cv_type_unsigned_long_long_int=no
22980fi
22981rm -f core conftest.err conftest.$ac_objext \
22982 conftest$ac_exeext conftest.$ac_ext
22983fi
22984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22985$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22986 if test $ac_cv_type_unsigned_long_long_int = yes; then
22987
22988$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22989
22990 fi
22991
22992
22993
22994 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
22995if test "x$ac_cv_type_uintmax_t" = xyes; then :
22996
22997$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
22998
22999else
23000 test $ac_cv_type_unsigned_long_long_int = yes \
23001 && ac_type='unsigned long long int' \
23002 || ac_type='unsigned long int'
23003
23004cat >>confdefs.h <<_ACEOF
23005#define uintmax_t $ac_type
23006_ACEOF
23007
23008fi
23009
23010
23011
23012 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23013if test "x$ac_cv_type_uintptr_t" = xyes; then :
23014
23015$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23016
23017else
23018 for ac_type in 'unsigned int' 'unsigned long int' \
23019 'unsigned long long int'; do
23020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23021/* end confdefs.h. */
23022$ac_includes_default
23023int
23024main ()
23025{
23026static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23027test_array [0] = 0
23028
23029 ;
23030 return 0;
23031}
23032_ACEOF
23033if ac_fn_c_try_compile "$LINENO"; then :
23034
23035cat >>confdefs.h <<_ACEOF
23036#define uintptr_t $ac_type
23037_ACEOF
23038
23039 ac_type=
23040fi
23041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23042 test -z "$ac_type" && break
23043 done
23044fi
23045
23046
23047
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23049$as_echo_n "checking for unsigned long long int... " >&6; }
23050if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23051 $as_echo_n "(cached) " >&6
23052else
23053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23054/* end confdefs.h. */
23055
23056 /* For now, do not test the preprocessor; as of 2007 there are too many
23057 implementations with broken preprocessors. Perhaps this can
23058 be revisited in 2012. In the meantime, code should not expect
23059 #if to work with literals wider than 32 bits. */
23060 /* Test literals. */
23061 long long int ll = 9223372036854775807ll;
23062 long long int nll = -9223372036854775807LL;
23063 unsigned long long int ull = 18446744073709551615ULL;
23064 /* Test constant expressions. */
23065 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23066 ? 1 : -1)];
23067 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23068 ? 1 : -1)];
23069 int i = 63;
23070int
23071main ()
23072{
23073/* Test availability of runtime routines for shift and division. */
23074 long long int llmax = 9223372036854775807ll;
23075 unsigned long long int ullmax = 18446744073709551615ull;
23076 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23077 | (llmax / ll) | (llmax % ll)
23078 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23079 | (ullmax / ull) | (ullmax % ull));
23080 ;
23081 return 0;
23082}
23083
23084_ACEOF
23085if ac_fn_c_try_link "$LINENO"; then :
23086 ac_cv_type_unsigned_long_long_int=yes
23087else
23088 ac_cv_type_unsigned_long_long_int=no
23089fi
23090rm -f core conftest.err conftest.$ac_objext \
23091 conftest$ac_exeext conftest.$ac_ext
23092fi
23093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23094$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23095 if test $ac_cv_type_unsigned_long_long_int = yes; then
23096
23097$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23098
23099 fi
23100
23101
cristy3ed852e2009-09-05 21:47:34 +000023102# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23103# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023105$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023106if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023107 $as_echo_n "(cached) " >&6
23108else
cristy8b350f62009-11-15 23:12:43 +000023109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023110/* end confdefs.h. */
23111$ac_includes_default
23112int
23113main ()
23114{
23115static int test_array [1 - 2 * !(((char) -1) < 0)];
23116test_array [0] = 0
23117
23118 ;
23119 return 0;
23120}
23121_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023122if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023123 ac_cv_c_char_unsigned=no
23124else
cristy8b350f62009-11-15 23:12:43 +000023125 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023126fi
cristy3ed852e2009-09-05 21:47:34 +000023127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23128fi
cristy8b350f62009-11-15 23:12:43 +000023129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023130$as_echo "$ac_cv_c_char_unsigned" >&6; }
23131if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023132 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023133
23134fi
23135
23136
23137# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23138# The cast to long int works around a bug in the HP C Compiler
23139# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23140# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23141# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023143$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023144if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023145 $as_echo_n "(cached) " >&6
23146else
cristy8b350f62009-11-15 23:12:43 +000023147 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 +000023148
cristy3ed852e2009-09-05 21:47:34 +000023149else
cristy8b350f62009-11-15 23:12:43 +000023150 if test "$ac_cv_type_signed_short" = yes; then
23151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023153as_fn_error 77 "cannot compute sizeof (signed short)
23154See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023155 else
23156 ac_cv_sizeof_signed_short=0
23157 fi
23158fi
cristy8b350f62009-11-15 23:12:43 +000023159
cristy3ed852e2009-09-05 21:47:34 +000023160fi
cristy8b350f62009-11-15 23:12:43 +000023161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023162$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23163
23164
23165
23166cat >>confdefs.h <<_ACEOF
23167#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23168_ACEOF
23169
23170
23171
23172# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23173# The cast to long int works around a bug in the HP C Compiler
23174# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23175# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23176# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023178$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023179if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023180 $as_echo_n "(cached) " >&6
23181else
cristy8b350f62009-11-15 23:12:43 +000023182 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 +000023183
cristy3ed852e2009-09-05 21:47:34 +000023184else
cristy8b350f62009-11-15 23:12:43 +000023185 if test "$ac_cv_type_unsigned_short" = yes; then
23186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023188as_fn_error 77 "cannot compute sizeof (unsigned short)
23189See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023190 else
23191 ac_cv_sizeof_unsigned_short=0
23192 fi
23193fi
cristy8b350f62009-11-15 23:12:43 +000023194
cristy3ed852e2009-09-05 21:47:34 +000023195fi
cristy8b350f62009-11-15 23:12:43 +000023196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023197$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23198
23199
23200
23201cat >>confdefs.h <<_ACEOF
23202#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23203_ACEOF
23204
23205
23206
23207# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23208# The cast to long int works around a bug in the HP C Compiler
23209# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23210# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23211# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023213$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023214if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023215 $as_echo_n "(cached) " >&6
23216else
cristy8b350f62009-11-15 23:12:43 +000023217 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 +000023218
cristy3ed852e2009-09-05 21:47:34 +000023219else
cristy8b350f62009-11-15 23:12:43 +000023220 if test "$ac_cv_type_signed_int" = yes; then
23221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023223as_fn_error 77 "cannot compute sizeof (signed int)
23224See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023225 else
23226 ac_cv_sizeof_signed_int=0
23227 fi
23228fi
cristy8b350f62009-11-15 23:12:43 +000023229
cristy3ed852e2009-09-05 21:47:34 +000023230fi
cristy8b350f62009-11-15 23:12:43 +000023231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023232$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23233
23234
23235
23236cat >>confdefs.h <<_ACEOF
23237#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23238_ACEOF
23239
23240
23241
23242# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23243# The cast to long int works around a bug in the HP C Compiler
23244# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23245# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23246# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023248$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023249if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023250 $as_echo_n "(cached) " >&6
23251else
cristy8b350f62009-11-15 23:12:43 +000023252 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 +000023253
cristy3ed852e2009-09-05 21:47:34 +000023254else
cristy8b350f62009-11-15 23:12:43 +000023255 if test "$ac_cv_type_unsigned_int" = yes; then
23256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023258as_fn_error 77 "cannot compute sizeof (unsigned int)
23259See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023260 else
23261 ac_cv_sizeof_unsigned_int=0
23262 fi
23263fi
cristy8b350f62009-11-15 23:12:43 +000023264
cristy3ed852e2009-09-05 21:47:34 +000023265fi
cristy8b350f62009-11-15 23:12:43 +000023266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023267$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23268
23269
23270
23271cat >>confdefs.h <<_ACEOF
23272#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23273_ACEOF
23274
23275
23276
23277# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23278# The cast to long int works around a bug in the HP C Compiler
23279# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23280# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23281# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023283$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023284if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023285 $as_echo_n "(cached) " >&6
23286else
cristy8b350f62009-11-15 23:12:43 +000023287 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 +000023288
cristy3ed852e2009-09-05 21:47:34 +000023289else
cristy8b350f62009-11-15 23:12:43 +000023290 if test "$ac_cv_type_signed_long" = yes; then
23291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023293as_fn_error 77 "cannot compute sizeof (signed long)
23294See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023295 else
23296 ac_cv_sizeof_signed_long=0
23297 fi
23298fi
cristy8b350f62009-11-15 23:12:43 +000023299
cristy3ed852e2009-09-05 21:47:34 +000023300fi
cristy8b350f62009-11-15 23:12:43 +000023301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023302$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23303
23304
23305
23306cat >>confdefs.h <<_ACEOF
23307#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23308_ACEOF
23309
23310
23311
23312# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23313# The cast to long int works around a bug in the HP C Compiler
23314# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23315# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23316# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023318$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023319if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023320 $as_echo_n "(cached) " >&6
23321else
cristy8b350f62009-11-15 23:12:43 +000023322 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 +000023323
cristy3ed852e2009-09-05 21:47:34 +000023324else
cristy8b350f62009-11-15 23:12:43 +000023325 if test "$ac_cv_type_unsigned_long" = yes; then
23326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023328as_fn_error 77 "cannot compute sizeof (unsigned long)
23329See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023330 else
23331 ac_cv_sizeof_unsigned_long=0
23332 fi
23333fi
cristy8b350f62009-11-15 23:12:43 +000023334
cristy3ed852e2009-09-05 21:47:34 +000023335fi
cristy8b350f62009-11-15 23:12:43 +000023336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023337$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23338
23339
23340
23341cat >>confdefs.h <<_ACEOF
23342#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23343_ACEOF
23344
23345
23346
23347# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23348# 'signed long long' is not supported then the value defined is zero.
23349# The cast to long int works around a bug in the HP C Compiler
23350# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23351# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23352# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023354$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023355if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023356 $as_echo_n "(cached) " >&6
23357else
cristy8b350f62009-11-15 23:12:43 +000023358 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 +000023359
cristy3ed852e2009-09-05 21:47:34 +000023360else
cristy8b350f62009-11-15 23:12:43 +000023361 if test "$ac_cv_type_signed_long_long" = yes; then
23362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023364as_fn_error 77 "cannot compute sizeof (signed long long)
23365See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023366 else
23367 ac_cv_sizeof_signed_long_long=0
23368 fi
23369fi
cristy8b350f62009-11-15 23:12:43 +000023370
cristy3ed852e2009-09-05 21:47:34 +000023371fi
cristy8b350f62009-11-15 23:12:43 +000023372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023373$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23374
23375
23376
23377cat >>confdefs.h <<_ACEOF
23378#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23379_ACEOF
23380
23381
23382
23383# Obtain size of a 'unsigned long long' and define as
23384# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23385# supported then the value defined is zero.
23386# The cast to long int works around a bug in the HP C Compiler
23387# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23388# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23389# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023391$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023392if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023393 $as_echo_n "(cached) " >&6
23394else
cristy8b350f62009-11-15 23:12:43 +000023395 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 +000023396
cristy3ed852e2009-09-05 21:47:34 +000023397else
cristy8b350f62009-11-15 23:12:43 +000023398 if test "$ac_cv_type_unsigned_long_long" = yes; then
23399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023401as_fn_error 77 "cannot compute sizeof (unsigned long long)
23402See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023403 else
23404 ac_cv_sizeof_unsigned_long_long=0
23405 fi
23406fi
cristy8b350f62009-11-15 23:12:43 +000023407
cristy3ed852e2009-09-05 21:47:34 +000023408fi
cristy8b350f62009-11-15 23:12:43 +000023409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023410$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23411
23412
23413
23414cat >>confdefs.h <<_ACEOF
23415#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23416_ACEOF
23417
23418
23419
23420# Obtain size of off_t and define as SIZEOF_OFF_T
23421# The cast to long int works around a bug in the HP C Compiler
23422# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23423# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23424# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023426$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023427if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023428 $as_echo_n "(cached) " >&6
23429else
cristy8b350f62009-11-15 23:12:43 +000023430 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 +000023431
cristy3ed852e2009-09-05 21:47:34 +000023432else
cristy8b350f62009-11-15 23:12:43 +000023433 if test "$ac_cv_type_off_t" = yes; then
23434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023436as_fn_error 77 "cannot compute sizeof (off_t)
23437See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023438 else
23439 ac_cv_sizeof_off_t=0
23440 fi
23441fi
cristy8b350f62009-11-15 23:12:43 +000023442
cristy3ed852e2009-09-05 21:47:34 +000023443fi
cristy8b350f62009-11-15 23:12:43 +000023444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023445$as_echo "$ac_cv_sizeof_off_t" >&6; }
23446
23447
23448
23449cat >>confdefs.h <<_ACEOF
23450#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23451_ACEOF
23452
23453
23454
23455# Obtain size of size_t and define as SIZEOF_SIZE_T
23456# The cast to long int works around a bug in the HP C Compiler
23457# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23458# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23459# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023461$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023462if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023463 $as_echo_n "(cached) " >&6
23464else
cristy8b350f62009-11-15 23:12:43 +000023465 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 +000023466
cristy3ed852e2009-09-05 21:47:34 +000023467else
cristy8b350f62009-11-15 23:12:43 +000023468 if test "$ac_cv_type_size_t" = yes; then
23469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023471as_fn_error 77 "cannot compute sizeof (size_t)
23472See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023473 else
23474 ac_cv_sizeof_size_t=0
23475 fi
23476fi
cristy8b350f62009-11-15 23:12:43 +000023477
cristy3ed852e2009-09-05 21:47:34 +000023478fi
cristy8b350f62009-11-15 23:12:43 +000023479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023480$as_echo "$ac_cv_sizeof_size_t" >&6; }
23481
23482
23483
23484cat >>confdefs.h <<_ACEOF
23485#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23486_ACEOF
23487
23488
23489
cristy330e9352010-06-01 18:42:49 +000023490# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23491# The cast to long int works around a bug in the HP C Compiler
23492# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23493# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23494# This bug is HP SR number 8606223364.
23495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23496$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023497if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023498 $as_echo_n "(cached) " >&6
23499else
23500 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23501
23502else
23503 if test "$ac_cv_type_ssize_t" = yes; then
23504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023506as_fn_error 77 "cannot compute sizeof (ssize_t)
23507See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023508 else
23509 ac_cv_sizeof_ssize_t=0
23510 fi
23511fi
23512
23513fi
23514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23515$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23516
23517
23518
23519cat >>confdefs.h <<_ACEOF
23520#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23521_ACEOF
23522
23523
23524
cristy3ed852e2009-09-05 21:47:34 +000023525# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23526# The cast to long int works around a bug in the HP C Compiler
23527# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23528# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23529# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023531$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023532if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023533 $as_echo_n "(cached) " >&6
23534else
cristy8b350f62009-11-15 23:12:43 +000023535 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 +000023536
cristy3ed852e2009-09-05 21:47:34 +000023537else
cristy8b350f62009-11-15 23:12:43 +000023538 if test "$ac_cv_type_unsigned_intp" = yes; then
23539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023541as_fn_error 77 "cannot compute sizeof (unsigned int*)
23542See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023543 else
23544 ac_cv_sizeof_unsigned_intp=0
23545 fi
23546fi
cristy8b350f62009-11-15 23:12:43 +000023547
cristy3ed852e2009-09-05 21:47:34 +000023548fi
cristy8b350f62009-11-15 23:12:43 +000023549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023550$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23551
23552
23553
23554cat >>confdefs.h <<_ACEOF
23555#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23556_ACEOF
23557
23558
23559
23560#
23561# Compute sized types for current CPU and compiler options.
23562#
23563
cristy8b350f62009-11-15 23:12:43 +000023564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023565$as_echo_n "checking for signed 8-bit type... " >&6; }
23566INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000023567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023568$as_echo "$INT8_T" >&6; }
23569
23570
cristy8b350f62009-11-15 23:12:43 +000023571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023572$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23573UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000023574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023575$as_echo "$UINT8_T" >&6; }
23576
23577
cristy8b350f62009-11-15 23:12:43 +000023578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023579$as_echo_n "checking for signed 16-bit type... " >&6; }
23580INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000023581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023582$as_echo "$INT16_T" >&6; }
23583
23584
cristy8b350f62009-11-15 23:12:43 +000023585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023586$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23587UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000023588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023589$as_echo "$UINT16_T" >&6; }
23590
23591
cristy8b350f62009-11-15 23:12:43 +000023592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023593$as_echo_n "checking for signed 32-bit type... " >&6; }
23594INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023595INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023596if test $ac_cv_sizeof_signed_int -eq 4; then
23597 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023598 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023599elif test $ac_cv_sizeof_signed_long -eq 4; then
23600 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023601 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023602fi
cristy8b350f62009-11-15 23:12:43 +000023603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023604$as_echo "$INT32_T" >&6; }
23605
23606
cristy6d5e20f2011-04-25 13:48:54 +000023607
cristy8b350f62009-11-15 23:12:43 +000023608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023609$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23610UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023611UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023612if test $ac_cv_sizeof_unsigned_int -eq 4; then
23613 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023614 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023615elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23616 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023617 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023618fi
cristy8b350f62009-11-15 23:12:43 +000023619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023620$as_echo "$UINT32_T" >&6; }
23621
23622
cristy6d5e20f2011-04-25 13:48:54 +000023623
cristy8b350f62009-11-15 23:12:43 +000023624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023625$as_echo_n "checking for signed 64-bit type... " >&6; }
23626INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023627INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023628if test $ac_cv_sizeof_signed_long -eq 8; then
23629 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023630 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023631elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23632 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023633 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023634fi
cristy6d5e20f2011-04-25 13:48:54 +000023635case "${build_os}" in
23636 mingw* )
23637 INT64_F='"I64"'
23638 ;;
23639esac
cristy8b350f62009-11-15 23:12:43 +000023640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023641$as_echo "$INT64_T" >&6; }
23642
23643
cristy6d5e20f2011-04-25 13:48:54 +000023644
cristy8b350f62009-11-15 23:12:43 +000023645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023646$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23647UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023648UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023649if test $ac_cv_sizeof_unsigned_long -eq 8; then
23650 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023651 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023652elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23653 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023654 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023655fi
cristy6d5e20f2011-04-25 13:48:54 +000023656case "${build_os}" in
23657 mingw* )
23658 UINT64_F='"I64"'
23659 ;;
23660esac
cristy8b350f62009-11-15 23:12:43 +000023661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023662$as_echo "$UINT64_T" >&6; }
23663
23664
cristy6d5e20f2011-04-25 13:48:54 +000023665
cristy8b350f62009-11-15 23:12:43 +000023666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023667$as_echo_n "checking for unsigned maximum type... " >&6; }
23668UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023669UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023670if test "$UINT64_T" != 'none'; then
23671 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023672 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023673elif test "$UINT32_T" != 'none'; then
23674 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023675 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023676fi
cristy8b350f62009-11-15 23:12:43 +000023677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023678$as_echo "$UINTMAX_T" >&6; }
23679
23680
cristy6d5e20f2011-04-25 13:48:54 +000023681
cristy8b350f62009-11-15 23:12:43 +000023682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023683$as_echo_n "checking for pointer difference type... " >&6; }
23684UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023685UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023686if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23687 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023688 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023689elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23690 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023691 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023692fi
cristy8b350f62009-11-15 23:12:43 +000023693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023694$as_echo "$UINTPTR_T" >&6; }
23695
23696
cristy6d5e20f2011-04-25 13:48:54 +000023697
cristy8b350f62009-11-15 23:12:43 +000023698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023699$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023701/* end confdefs.h. */
23702
23703int
23704main ()
23705{
23706{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23707 ;
23708 return 0;
23709}
23710_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023711if ac_fn_c_try_compile "$LINENO"; then :
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023713$as_echo "yes" >&6; }
23714else
cristy8b350f62009-11-15 23:12:43 +000023715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023716$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023718$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023720/* end confdefs.h. */
23721
23722int
23723main ()
23724{
23725{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23726 ;
23727 return 0;
23728}
23729_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023730if ac_fn_c_try_compile "$LINENO"; then :
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023732$as_echo "yes" >&6; }
23733
cristy8b350f62009-11-15 23:12:43 +000023734$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023735
23736else
cristy8b350f62009-11-15 23:12:43 +000023737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023738$as_echo "no" >&6; }
23739
cristy8b350f62009-11-15 23:12:43 +000023740$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023741
23742fi
cristy3ed852e2009-09-05 21:47:34 +000023743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23744fi
cristy3ed852e2009-09-05 21:47:34 +000023745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23746
23747########
23748#
23749# Check for functions
23750#
23751########
cristy73bd4a52010-10-05 11:24:23 +000023752for ac_header in stdlib.h unistd.h
23753do :
23754 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23755ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023756if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023757 cat >>confdefs.h <<_ACEOF
23758#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23759_ACEOF
23760
23761fi
23762
23763done
23764
23765for ac_func in getpagesize
23766do :
23767 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023768if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023769 cat >>confdefs.h <<_ACEOF
23770#define HAVE_GETPAGESIZE 1
23771_ACEOF
23772
23773fi
23774done
23775
23776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23777$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023778if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023779 $as_echo_n "(cached) " >&6
23780else
23781 if test "$cross_compiling" = yes; then :
23782 magick_cv_func_mmap_fileio=no
23783else
23784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23785/* end confdefs.h. */
23786$ac_includes_default
23787/* malloc might have been renamed as rpl_malloc. */
23788#undef malloc
23789
23790/*
23791 This test is derived from GNU Autoconf's similar macro.
23792 The purpose of this test is to verify that files may be memory
23793 mapped, and that memory mapping and file I/O are coherent.
23794
23795 The test creates a test file, memory maps the file, updates
23796 the file using the memory map, and then reads the file using
23797 file I/O to verify that the file contains the updates.
23798*/
23799
23800#include <fcntl.h>
23801#include <sys/mman.h>
23802
23803#if !STDC_HEADERS && !HAVE_STDLIB_H
23804char *malloc ();
23805#endif
23806
23807/* This mess was copied from the GNU getpagesize.h. */
23808#if !HAVE_GETPAGESIZE
23809/* Assume that all systems that can run configure have sys/param.h. */
23810# if !HAVE_SYS_PARAM_H
23811# define HAVE_SYS_PARAM_H 1
23812# endif
23813
23814# ifdef _SC_PAGESIZE
23815# define getpagesize() sysconf(_SC_PAGESIZE)
23816# else /* no _SC_PAGESIZE */
23817# if HAVE_SYS_PARAM_H
23818# include <sys/param.h>
23819# ifdef EXEC_PAGESIZE
23820# define getpagesize() EXEC_PAGESIZE
23821# else /* no EXEC_PAGESIZE */
23822# ifdef NBPG
23823# define getpagesize() NBPG * CLSIZE
23824# ifndef CLSIZE
23825# define CLSIZE 1
23826# endif /* no CLSIZE */
23827# else /* no NBPG */
23828# ifdef NBPC
23829# define getpagesize() NBPC
23830# else /* no NBPC */
23831# ifdef PAGESIZE
23832# define getpagesize() PAGESIZE
23833# endif /* PAGESIZE */
23834# endif /* no NBPC */
23835# endif /* no NBPG */
23836# endif /* no EXEC_PAGESIZE */
23837# else /* no HAVE_SYS_PARAM_H */
23838# define getpagesize() 8192 /* punt totally */
23839# endif /* no HAVE_SYS_PARAM_H */
23840# endif /* no _SC_PAGESIZE */
23841
23842#endif /* no HAVE_GETPAGESIZE */
23843
23844int
23845main ()
23846{
23847 char *data, *data2, *data3;
23848 int i, pagesize;
23849 int fd;
23850
23851 pagesize = getpagesize ();
23852
23853 /* First, make a file with some known garbage in it. */
23854 data = (char *) malloc (pagesize);
23855 if (!data)
23856 exit (1);
23857 for (i = 0; i < pagesize; ++i)
23858 *(data + i) = rand ();
23859 umask (0);
23860 fd = creat ("conftest.mmap", 0600);
23861 if (fd < 0)
23862 exit (1);
23863 if (write (fd, data, pagesize) != pagesize)
23864 exit (1);
23865 close (fd);
23866
23867 /* Mmap the file as read/write/shared and verify that we see the
23868 same garbage. */
23869 fd = open ("conftest.mmap", O_RDWR);
23870 if (fd < 0)
23871 exit (1);
23872 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23873 if (data2 == 0)
23874 exit (1);
23875 for (i = 0; i < pagesize; ++i)
23876 if (*(data + i) != *(data2 + i))
23877 exit (1);
23878
23879 /* Finally, make sure that changes to the mapped area
23880 percolate back to the file as seen by read(). */
23881 for (i = 0; i < pagesize; ++i)
23882 *(data2 + i) = *(data2 + i) + 1;
23883 data3 = (char *) malloc (pagesize);
23884 if (!data3)
23885 exit (1);
23886 if (read (fd, data3, pagesize) != pagesize)
23887 exit (1);
23888 for (i = 0; i < pagesize; ++i)
23889 if (*(data2 + i) != *(data3 + i))
23890 exit (1);
23891 close (fd);
23892 exit (0);
23893}
23894_ACEOF
23895if ac_fn_c_try_run "$LINENO"; then :
23896 magick_cv_func_mmap_fileio=yes
23897else
23898 magick_cv_func_mmap_fileio=no
23899fi
23900rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23901 conftest.$ac_objext conftest.beam conftest.$ac_ext
23902fi
23903
23904fi
23905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23906$as_echo "$magick_cv_func_mmap_fileio" >&6; }
23907if test $magick_cv_func_mmap_fileio = yes; then
23908
23909$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23910
23911fi
23912rm -f conftest.mmap
23913
cristy8b350f62009-11-15 23:12:43 +000023914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023915$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023916if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023917 $as_echo_n "(cached) " >&6
23918else
cristy8b350f62009-11-15 23:12:43 +000023919 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023920 ac_cv_func_closedir_void=yes
23921else
cristy8b350f62009-11-15 23:12:43 +000023922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023923/* end confdefs.h. */
23924$ac_includes_default
23925#include <$ac_header_dirent>
23926#ifndef __cplusplus
23927int closedir ();
23928#endif
23929
23930int
23931main ()
23932{
23933return closedir (opendir (".")) != 0;
23934 ;
23935 return 0;
23936}
23937_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023938if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023939 ac_cv_func_closedir_void=no
23940else
cristy8b350f62009-11-15 23:12:43 +000023941 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000023942fi
cristy8b350f62009-11-15 23:12:43 +000023943rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23944 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023945fi
23946
cristy3ed852e2009-09-05 21:47:34 +000023947fi
cristy8b350f62009-11-15 23:12:43 +000023948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023949$as_echo "$ac_cv_func_closedir_void" >&6; }
23950if test $ac_cv_func_closedir_void = yes; then
23951
cristy8b350f62009-11-15 23:12:43 +000023952$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023953
23954fi
23955
cristycd4c5312009-11-22 01:19:08 +000023956
23957
23958
23959 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000023960do :
23961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000023962ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23963"
cristy98dddb52010-11-04 00:30:15 +000023964if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023965 cat >>confdefs.h <<_ACEOF
23966#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23967_ACEOF
23968
23969fi
23970
23971done
23972
cristycd4c5312009-11-22 01:19:08 +000023973
23974
23975
23976
23977
23978
23979
cristy3ed852e2009-09-05 21:47:34 +000023980for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000023981do :
23982 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023983if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023984 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023985#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000023986_ACEOF
23987
23988fi
23989done
23990
cristy8b350f62009-11-15 23:12:43 +000023991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000023992$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023993if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023994 $as_echo_n "(cached) " >&6
23995else
cristy8b350f62009-11-15 23:12:43 +000023996 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023997 ac_cv_func_mmap_fixed_mapped=no
23998else
cristy8b350f62009-11-15 23:12:43 +000023999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024000/* end confdefs.h. */
24001$ac_includes_default
24002/* malloc might have been renamed as rpl_malloc. */
24003#undef malloc
24004
24005/* Thanks to Mike Haertel and Jim Avera for this test.
24006 Here is a matrix of mmap possibilities:
24007 mmap private not fixed
24008 mmap private fixed at somewhere currently unmapped
24009 mmap private fixed at somewhere already mapped
24010 mmap shared not fixed
24011 mmap shared fixed at somewhere currently unmapped
24012 mmap shared fixed at somewhere already mapped
24013 For private mappings, we should verify that changes cannot be read()
24014 back from the file, nor mmap's back from the file at a different
24015 address. (There have been systems where private was not correctly
24016 implemented like the infamous i386 svr4.0, and systems where the
24017 VM page cache was not coherent with the file system buffer cache
24018 like early versions of FreeBSD and possibly contemporary NetBSD.)
24019 For shared mappings, we should conversely verify that changes get
24020 propagated back to all the places they're supposed to be.
24021
24022 Grep wants private fixed already mapped.
24023 The main things grep needs to know about mmap are:
24024 * does it exist and is it safe to write into the mmap'd area
24025 * how to use it (BSD variants) */
24026
24027#include <fcntl.h>
24028#include <sys/mman.h>
24029
24030#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24031char *malloc ();
24032#endif
24033
24034/* This mess was copied from the GNU getpagesize.h. */
24035#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024036# ifdef _SC_PAGESIZE
24037# define getpagesize() sysconf(_SC_PAGESIZE)
24038# else /* no _SC_PAGESIZE */
24039# ifdef HAVE_SYS_PARAM_H
24040# include <sys/param.h>
24041# ifdef EXEC_PAGESIZE
24042# define getpagesize() EXEC_PAGESIZE
24043# else /* no EXEC_PAGESIZE */
24044# ifdef NBPG
24045# define getpagesize() NBPG * CLSIZE
24046# ifndef CLSIZE
24047# define CLSIZE 1
24048# endif /* no CLSIZE */
24049# else /* no NBPG */
24050# ifdef NBPC
24051# define getpagesize() NBPC
24052# else /* no NBPC */
24053# ifdef PAGESIZE
24054# define getpagesize() PAGESIZE
24055# endif /* PAGESIZE */
24056# endif /* no NBPC */
24057# endif /* no NBPG */
24058# endif /* no EXEC_PAGESIZE */
24059# else /* no HAVE_SYS_PARAM_H */
24060# define getpagesize() 8192 /* punt totally */
24061# endif /* no HAVE_SYS_PARAM_H */
24062# endif /* no _SC_PAGESIZE */
24063
24064#endif /* no HAVE_GETPAGESIZE */
24065
24066int
24067main ()
24068{
24069 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024070 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024071 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024072 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024073
24074 pagesize = getpagesize ();
24075
24076 /* First, make a file with some known garbage in it. */
24077 data = (char *) malloc (pagesize);
24078 if (!data)
24079 return 1;
24080 for (i = 0; i < pagesize; ++i)
24081 *(data + i) = rand ();
24082 umask (0);
24083 fd = creat ("conftest.mmap", 0600);
24084 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024085 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024086 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024087 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024088 close (fd);
24089
cristycd4c5312009-11-22 01:19:08 +000024090 /* Next, check that the tail of a page is zero-filled. File must have
24091 non-zero length, otherwise we risk SIGBUS for entire page. */
24092 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24093 if (fd2 < 0)
24094 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024095 cdata2 = "";
24096 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024097 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024098 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024099 if (data2 == MAP_FAILED)
24100 return 6;
24101 for (i = 0; i < pagesize; ++i)
24102 if (*(data2 + i))
24103 return 7;
24104 close (fd2);
24105 if (munmap (data2, pagesize))
24106 return 8;
24107
cristy3ed852e2009-09-05 21:47:34 +000024108 /* Next, try to mmap the file at a fixed address which already has
24109 something else allocated at it. If we can, also make sure that
24110 we see the same garbage. */
24111 fd = open ("conftest.mmap", O_RDWR);
24112 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024113 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024114 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24115 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024116 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024117 for (i = 0; i < pagesize; ++i)
24118 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024119 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024120
24121 /* Finally, make sure that changes to the mapped area do not
24122 percolate back to the file as seen by read(). (This is a bug on
24123 some variants of i386 svr4.0.) */
24124 for (i = 0; i < pagesize; ++i)
24125 *(data2 + i) = *(data2 + i) + 1;
24126 data3 = (char *) malloc (pagesize);
24127 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024128 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024129 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024130 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024131 for (i = 0; i < pagesize; ++i)
24132 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024133 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024134 close (fd);
24135 return 0;
24136}
24137_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024138if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024139 ac_cv_func_mmap_fixed_mapped=yes
24140else
cristy8b350f62009-11-15 23:12:43 +000024141 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024142fi
cristy8b350f62009-11-15 23:12:43 +000024143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24144 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024145fi
24146
cristy3ed852e2009-09-05 21:47:34 +000024147fi
cristy8b350f62009-11-15 23:12:43 +000024148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024149$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24150if test $ac_cv_func_mmap_fixed_mapped = yes; then
24151
cristy8b350f62009-11-15 23:12:43 +000024152$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024153
24154fi
cristycd4c5312009-11-22 01:19:08 +000024155rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024156
cristy3ed852e2009-09-05 21:47:34 +000024157for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024158do :
24159 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024160if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024161 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024162#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024163_ACEOF
24164
24165fi
24166
24167done
24168
cristy3ed852e2009-09-05 21:47:34 +000024169for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024170do :
24171 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24172ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024173if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024174 cat >>confdefs.h <<_ACEOF
24175#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24176_ACEOF
24177
24178fi
24179done
24180
24181if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024183$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024184if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024185 $as_echo_n "(cached) " >&6
24186else
cristy8b350f62009-11-15 23:12:43 +000024187 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024188 ac_cv_func_fork_works=cross
24189else
cristy8b350f62009-11-15 23:12:43 +000024190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024191/* end confdefs.h. */
24192$ac_includes_default
24193int
24194main ()
24195{
24196
24197 /* By Ruediger Kuhlmann. */
24198 return fork () < 0;
24199
24200 ;
24201 return 0;
24202}
24203_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024204if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024205 ac_cv_func_fork_works=yes
24206else
cristy8b350f62009-11-15 23:12:43 +000024207 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024208fi
cristy8b350f62009-11-15 23:12:43 +000024209rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24210 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024211fi
24212
cristy3ed852e2009-09-05 21:47:34 +000024213fi
cristy8b350f62009-11-15 23:12:43 +000024214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024215$as_echo "$ac_cv_func_fork_works" >&6; }
24216
24217else
24218 ac_cv_func_fork_works=$ac_cv_func_fork
24219fi
24220if test "x$ac_cv_func_fork_works" = xcross; then
24221 case $host in
24222 *-*-amigaos* | *-*-msdosdjgpp*)
24223 # Override, as these systems have only a dummy fork() stub
24224 ac_cv_func_fork_works=no
24225 ;;
24226 *)
24227 ac_cv_func_fork_works=yes
24228 ;;
24229 esac
cristy8b350f62009-11-15 23:12:43 +000024230 { $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 +000024231$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24232fi
24233ac_cv_func_vfork_works=$ac_cv_func_vfork
24234if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024236$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024237if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024238 $as_echo_n "(cached) " >&6
24239else
cristy8b350f62009-11-15 23:12:43 +000024240 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024241 ac_cv_func_vfork_works=cross
24242else
cristy8b350f62009-11-15 23:12:43 +000024243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024244/* end confdefs.h. */
24245/* Thanks to Paul Eggert for this test. */
24246$ac_includes_default
24247#include <sys/wait.h>
24248#ifdef HAVE_VFORK_H
24249# include <vfork.h>
24250#endif
24251/* On some sparc systems, changes by the child to local and incoming
24252 argument registers are propagated back to the parent. The compiler
24253 is told about this with #include <vfork.h>, but some compilers
24254 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24255 static variable whose address is put into a register that is
24256 clobbered by the vfork. */
24257static void
24258#ifdef __cplusplus
24259sparc_address_test (int arg)
24260# else
24261sparc_address_test (arg) int arg;
24262#endif
24263{
24264 static pid_t child;
24265 if (!child) {
24266 child = vfork ();
24267 if (child < 0) {
24268 perror ("vfork");
24269 _exit(2);
24270 }
24271 if (!child) {
24272 arg = getpid();
24273 write(-1, "", 0);
24274 _exit (arg);
24275 }
24276 }
24277}
24278
24279int
24280main ()
24281{
24282 pid_t parent = getpid ();
24283 pid_t child;
24284
24285 sparc_address_test (0);
24286
24287 child = vfork ();
24288
24289 if (child == 0) {
24290 /* Here is another test for sparc vfork register problems. This
24291 test uses lots of local variables, at least as many local
24292 variables as main has allocated so far including compiler
24293 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24294 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24295 reuse the register of parent for one of the local variables,
24296 since it will think that parent can't possibly be used any more
24297 in this routine. Assigning to the local variable will thus
24298 munge parent in the parent process. */
24299 pid_t
24300 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24301 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24302 /* Convince the compiler that p..p7 are live; otherwise, it might
24303 use the same hardware register for all 8 local variables. */
24304 if (p != p1 || p != p2 || p != p3 || p != p4
24305 || p != p5 || p != p6 || p != p7)
24306 _exit(1);
24307
24308 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24309 from child file descriptors. If the child closes a descriptor
24310 before it execs or exits, this munges the parent's descriptor
24311 as well. Test for this by closing stdout in the child. */
24312 _exit(close(fileno(stdout)) != 0);
24313 } else {
24314 int status;
24315 struct stat st;
24316
24317 while (wait(&status) != child)
24318 ;
24319 return (
24320 /* Was there some problem with vforking? */
24321 child < 0
24322
24323 /* Did the child fail? (This shouldn't happen.) */
24324 || status
24325
24326 /* Did the vfork/compiler bug occur? */
24327 || parent != getpid()
24328
24329 /* Did the file descriptor bug occur? */
24330 || fstat(fileno(stdout), &st) != 0
24331 );
24332 }
24333}
24334_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024335if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024336 ac_cv_func_vfork_works=yes
24337else
cristy8b350f62009-11-15 23:12:43 +000024338 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024339fi
cristy8b350f62009-11-15 23:12:43 +000024340rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24341 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024342fi
24343
cristy3ed852e2009-09-05 21:47:34 +000024344fi
cristy8b350f62009-11-15 23:12:43 +000024345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024346$as_echo "$ac_cv_func_vfork_works" >&6; }
24347
24348fi;
24349if test "x$ac_cv_func_fork_works" = xcross; then
24350 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024351 { $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 +000024352$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24353fi
24354
24355if test "x$ac_cv_func_vfork_works" = xyes; then
24356
cristy8b350f62009-11-15 23:12:43 +000024357$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024358
24359else
24360
cristy8b350f62009-11-15 23:12:43 +000024361$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024362
24363fi
24364if test "x$ac_cv_func_fork_works" = xyes; then
24365
cristy8b350f62009-11-15 23:12:43 +000024366$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024367
24368fi
24369
cristy8b350f62009-11-15 23:12:43 +000024370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024371$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024372if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024373 $as_echo_n "(cached) " >&6
24374else
cristy8b350f62009-11-15 23:12:43 +000024375 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024376 ac_cv_func_memcmp_working=no
24377else
cristy8b350f62009-11-15 23:12:43 +000024378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024379/* end confdefs.h. */
24380$ac_includes_default
24381int
24382main ()
24383{
24384
24385 /* Some versions of memcmp are not 8-bit clean. */
24386 char c0 = '\100', c1 = '\200', c2 = '\201';
24387 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24388 return 1;
24389
24390 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24391 or more and with at least one buffer not starting on a 4-byte boundary.
24392 William Lewis provided this test program. */
24393 {
24394 char foo[21];
24395 char bar[21];
24396 int i;
24397 for (i = 0; i < 4; i++)
24398 {
24399 char *a = foo + i;
24400 char *b = bar + i;
24401 strcpy (a, "--------01111111");
24402 strcpy (b, "--------10000000");
24403 if (memcmp (a, b, 16) >= 0)
24404 return 1;
24405 }
24406 return 0;
24407 }
24408
24409 ;
24410 return 0;
24411}
24412_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024413if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024414 ac_cv_func_memcmp_working=yes
24415else
cristy8b350f62009-11-15 23:12:43 +000024416 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024417fi
cristy8b350f62009-11-15 23:12:43 +000024418rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24419 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024420fi
24421
cristy3ed852e2009-09-05 21:47:34 +000024422fi
cristy8b350f62009-11-15 23:12:43 +000024423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024424$as_echo "$ac_cv_func_memcmp_working" >&6; }
24425test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24426 *" memcmp.$ac_objext "* ) ;;
24427 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24428 ;;
24429esac
24430
24431
cristy3ed852e2009-09-05 21:47:34 +000024432for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024433do :
24434 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24435ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024436if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024437 cat >>confdefs.h <<_ACEOF
24438#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24439_ACEOF
24440
24441fi
24442
24443done
24444
cristy8b350f62009-11-15 23:12:43 +000024445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024446$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024447if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024448 $as_echo_n "(cached) " >&6
24449else
24450 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24451 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24452 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024454/* end confdefs.h. */
24455$ac_includes_default
24456#ifdef HAVE_SYS_SELECT_H
24457# include <sys/select.h>
24458#endif
24459#ifdef HAVE_SYS_SOCKET_H
24460# include <sys/socket.h>
24461#endif
24462
24463int
24464main ()
24465{
24466extern int select ($ac_arg1,
24467 $ac_arg234, $ac_arg234, $ac_arg234,
24468 $ac_arg5);
24469 ;
24470 return 0;
24471}
24472_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024473if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024474 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024475fi
cristy3ed852e2009-09-05 21:47:34 +000024476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24477 done
24478 done
24479done
24480# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024481: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024482
24483fi
cristy8b350f62009-11-15 23:12:43 +000024484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024485$as_echo "$ac_cv_func_select_args" >&6; }
24486ac_save_IFS=$IFS; IFS=','
24487set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24488IFS=$ac_save_IFS
24489shift
24490
24491cat >>confdefs.h <<_ACEOF
24492#define SELECT_TYPE_ARG1 $1
24493_ACEOF
24494
24495
24496cat >>confdefs.h <<_ACEOF
24497#define SELECT_TYPE_ARG234 ($2)
24498_ACEOF
24499
24500
24501cat >>confdefs.h <<_ACEOF
24502#define SELECT_TYPE_ARG5 ($3)
24503_ACEOF
24504
24505rm -f conftest*
24506
cristyda16f162011-02-19 23:52:17 +000024507if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024508 $as_echo_n "(cached) " >&6
24509else
24510 ac_cv_func_setvbuf_reversed=no
24511fi
24512
24513
cristy8b350f62009-11-15 23:12:43 +000024514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024515$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024516if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024517 $as_echo_n "(cached) " >&6
24518else
cristy8b350f62009-11-15 23:12:43 +000024519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024520/* end confdefs.h. */
24521#include <sys/types.h>
24522#include <signal.h>
24523
24524int
24525main ()
24526{
24527return *(signal (0, 0)) (0) == 1;
24528 ;
24529 return 0;
24530}
24531_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024532if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024533 ac_cv_type_signal=int
24534else
cristy8b350f62009-11-15 23:12:43 +000024535 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024536fi
cristy3ed852e2009-09-05 21:47:34 +000024537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24538fi
cristy8b350f62009-11-15 23:12:43 +000024539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024540$as_echo "$ac_cv_type_signal" >&6; }
24541
24542cat >>confdefs.h <<_ACEOF
24543#define RETSIGTYPE $ac_cv_type_signal
24544_ACEOF
24545
24546
cristy8b350f62009-11-15 23:12:43 +000024547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024548$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024549if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024550 $as_echo_n "(cached) " >&6
24551else
cristy8b350f62009-11-15 23:12:43 +000024552 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024553 ac_cv_func_strtod=no
24554else
cristy8b350f62009-11-15 23:12:43 +000024555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024556/* end confdefs.h. */
24557
24558$ac_includes_default
24559#ifndef strtod
24560double strtod ();
24561#endif
24562int
24563main()
24564{
24565 {
24566 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24567 char *string = " +69";
24568 char *term;
24569 double value;
24570 value = strtod (string, &term);
24571 if (value != 69 || term != (string + 4))
24572 return 1;
24573 }
24574
24575 {
24576 /* Under Solaris 2.4, strtod returns the wrong value for the
24577 terminating character under some conditions. */
24578 char *string = "NaN";
24579 char *term;
24580 strtod (string, &term);
24581 if (term != string && *(term - 1) == 0)
24582 return 1;
24583 }
24584 return 0;
24585}
24586
24587_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024588if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024589 ac_cv_func_strtod=yes
24590else
cristy8b350f62009-11-15 23:12:43 +000024591 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024592fi
cristy8b350f62009-11-15 23:12:43 +000024593rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24594 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024595fi
24596
cristy3ed852e2009-09-05 21:47:34 +000024597fi
cristy8b350f62009-11-15 23:12:43 +000024598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024599$as_echo "$ac_cv_func_strtod" >&6; }
24600if test $ac_cv_func_strtod = no; then
24601 case " $LIBOBJS " in
24602 *" strtod.$ac_objext "* ) ;;
24603 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24604 ;;
24605esac
24606
cristy8b350f62009-11-15 23:12:43 +000024607ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024608if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024609
cristy3ed852e2009-09-05 21:47:34 +000024610fi
24611
cristy3ed852e2009-09-05 21:47:34 +000024612if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024614$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024615if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024616 $as_echo_n "(cached) " >&6
24617else
24618 ac_check_lib_save_LIBS=$LIBS
24619LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024621/* end confdefs.h. */
24622
24623/* Override any GCC internal prototype to avoid an error.
24624 Use char because int might match the return type of a GCC
24625 builtin and then its argument prototype would still apply. */
24626#ifdef __cplusplus
24627extern "C"
24628#endif
24629char pow ();
24630int
24631main ()
24632{
24633return pow ();
24634 ;
24635 return 0;
24636}
24637_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024638if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024639 ac_cv_lib_m_pow=yes
24640else
cristy8b350f62009-11-15 23:12:43 +000024641 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024642fi
cristy8b350f62009-11-15 23:12:43 +000024643rm -f core conftest.err conftest.$ac_objext \
24644 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024645LIBS=$ac_check_lib_save_LIBS
24646fi
cristy8b350f62009-11-15 23:12:43 +000024647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024648$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024649if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024650 POW_LIB=-lm
24651else
cristy8b350f62009-11-15 23:12:43 +000024652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024653$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24654fi
24655
24656fi
24657
24658fi
24659
cristy3ed852e2009-09-05 21:47:34 +000024660for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024661do :
24662 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024663if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024664 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024665#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024666_ACEOF
24667
cristy8b350f62009-11-15 23:12:43 +000024668ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024669if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024670
cristy8b350f62009-11-15 23:12:43 +000024671$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024672
24673fi
24674
24675fi
24676done
24677
24678
24679
cristy161b9262010-03-20 19:34:32 +000024680#
24681# Find math library
24682#
24683MATH_LIBS=''
24684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24685$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024686if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024687 $as_echo_n "(cached) " >&6
24688else
24689 ac_check_lib_save_LIBS=$LIBS
24690LIBS="-lm $LIBS"
24691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24692/* end confdefs.h. */
24693
24694/* Override any GCC internal prototype to avoid an error.
24695 Use char because int might match the return type of a GCC
24696 builtin and then its argument prototype would still apply. */
24697#ifdef __cplusplus
24698extern "C"
24699#endif
24700char sqrt ();
24701int
24702main ()
24703{
24704return sqrt ();
24705 ;
24706 return 0;
24707}
24708_ACEOF
24709if ac_fn_c_try_link "$LINENO"; then :
24710 ac_cv_lib_m_sqrt=yes
24711else
24712 ac_cv_lib_m_sqrt=no
24713fi
24714rm -f core conftest.err conftest.$ac_objext \
24715 conftest$ac_exeext conftest.$ac_ext
24716LIBS=$ac_check_lib_save_LIBS
24717fi
24718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24719$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024720if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024721 MATH_LIBS="-lm"
24722fi
24723
24724LIBS="$MATH_LIBS $LIBS"
24725
24726
cristyb33454f2011-08-03 02:10:45 +000024727for 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 +000024728do :
24729 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24730ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024731if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024732 cat >>confdefs.h <<_ACEOF
24733#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24734_ACEOF
24735
24736fi
24737done
24738
24739
cristye43a45e2009-09-28 14:49:00 +000024740#
24741# Check for clock_gettime().
24742#
cristy8b350f62009-11-15 23:12:43 +000024743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024744$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024745if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024746 $as_echo_n "(cached) " >&6
24747else
24748 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000024749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024750/* end confdefs.h. */
24751
24752/* Override any GCC internal prototype to avoid an error.
24753 Use char because int might match the return type of a GCC
24754 builtin and then its argument prototype would still apply. */
24755#ifdef __cplusplus
24756extern "C"
24757#endif
24758char clock_gettime ();
24759int
24760main ()
24761{
24762return clock_gettime ();
24763 ;
24764 return 0;
24765}
24766_ACEOF
24767for ac_lib in '' rt; do
24768 if test -z "$ac_lib"; then
24769 ac_res="none required"
24770 else
24771 ac_res=-l$ac_lib
24772 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24773 fi
cristy8b350f62009-11-15 23:12:43 +000024774 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024775 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024776fi
cristy8b350f62009-11-15 23:12:43 +000024777rm -f core conftest.err conftest.$ac_objext \
24778 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024779 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024780 break
24781fi
24782done
cristyda16f162011-02-19 23:52:17 +000024783if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024784
cristye43a45e2009-09-28 14:49:00 +000024785else
24786 ac_cv_search_clock_gettime=no
24787fi
24788rm conftest.$ac_ext
24789LIBS=$ac_func_search_save_LIBS
24790fi
cristy8b350f62009-11-15 23:12:43 +000024791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024792$as_echo "$ac_cv_search_clock_gettime" >&6; }
24793ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024794if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024795 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24796
24797
cristy8b350f62009-11-15 23:12:43 +000024798$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024799
cristy8b350f62009-11-15 23:12:43 +000024800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024801$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024803/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000024804
24805 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000024806int
24807main ()
24808{
24809clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000024810 ;
24811 return 0;
24812}
24813_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024814if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024815
cristy8b350f62009-11-15 23:12:43 +000024816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000024817$as_echo "yes" >&6; }
24818
cristy8b350f62009-11-15 23:12:43 +000024819$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024820
24821
24822else
cristy8b350f62009-11-15 23:12:43 +000024823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000024824$as_echo "no" >&6; }
24825
24826fi
cristye43a45e2009-09-28 14:49:00 +000024827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24828
24829else
24830
cristy8b350f62009-11-15 23:12:43 +000024831 for ac_func in gettimeofday ftime
24832do :
24833 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24834ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024835if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000024836 cat >>confdefs.h <<_ACEOF
24837#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24838_ACEOF
24839 break
24840fi
24841done
24842
24843
24844
24845fi
24846
24847
cristy3ed852e2009-09-05 21:47:34 +000024848########
24849#
24850# Check for function prototypes
24851#
24852########
24853
cristy8b350f62009-11-15 23:12:43 +000024854ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000024855#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024856"
cristyda16f162011-02-19 23:52:17 +000024857if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024858 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024859else
cristy8b350f62009-11-15 23:12:43 +000024860 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024861fi
24862
cristy3ed852e2009-09-05 21:47:34 +000024863cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024864#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024865_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024866ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000024867#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024868"
cristyda16f162011-02-19 23:52:17 +000024869if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024870 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024871else
cristy8b350f62009-11-15 23:12:43 +000024872 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024873fi
24874
cristy3ed852e2009-09-05 21:47:34 +000024875cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024876#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024877_ACEOF
24878
24879
cristy8b350f62009-11-15 23:12:43 +000024880ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000024881#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000024882"
cristyda16f162011-02-19 23:52:17 +000024883if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024884 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024885else
cristy8b350f62009-11-15 23:12:43 +000024886 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024887fi
24888
cristy3ed852e2009-09-05 21:47:34 +000024889cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024890#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024891_ACEOF
24892
24893
cristy8b350f62009-11-15 23:12:43 +000024894ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000024895#include <stdio.h>
24896#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000024897"
cristyda16f162011-02-19 23:52:17 +000024898if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024899 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024900else
cristy8b350f62009-11-15 23:12:43 +000024901 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024902fi
24903
cristy3ed852e2009-09-05 21:47:34 +000024904cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024905#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024906_ACEOF
24907
24908
cristy3ed852e2009-09-05 21:47:34 +000024909########
24910#
24911# C++ Support Tests (For Magick++)
24912#
24913########
24914have_magick_plus_plus='no'
24915if test "$with_magick_plus_plus" = 'yes'; then
24916 OLIBS="$LIBS"
24917 LIBS=''
24918 ac_ext=cpp
24919ac_cpp='$CXXCPP $CPPFLAGS'
24920ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24921ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24922ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24923
24924
24925 # Full set of headers used...
24926 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
24927 # functional iomanip iosfwd iostream iterator list string strstream utility
24928 ac_ext=cpp
24929ac_cpp='$CXXCPP $CPPFLAGS'
24930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24933
24934 ac_ext=cpp
24935ac_cpp='$CXXCPP $CPPFLAGS'
24936ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24937ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24938ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24939if test -z "$CXX"; then
24940 if test -n "$CCC"; then
24941 CXX=$CCC
24942 else
24943 if test -n "$ac_tool_prefix"; then
24944 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24945 do
24946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24947set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024949$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024950if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024951 $as_echo_n "(cached) " >&6
24952else
24953 if test -n "$CXX"; then
24954 ac_cv_prog_CXX="$CXX" # Let the user override the test.
24955else
24956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24957for as_dir in $PATH
24958do
24959 IFS=$as_save_IFS
24960 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024961 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24963 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024965 break 2
24966 fi
24967done
cristy8b350f62009-11-15 23:12:43 +000024968 done
cristy3ed852e2009-09-05 21:47:34 +000024969IFS=$as_save_IFS
24970
24971fi
24972fi
24973CXX=$ac_cv_prog_CXX
24974if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000024975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000024976$as_echo "$CXX" >&6; }
24977else
cristy8b350f62009-11-15 23:12:43 +000024978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024979$as_echo "no" >&6; }
24980fi
24981
24982
24983 test -n "$CXX" && break
24984 done
24985fi
24986if test -z "$CXX"; then
24987 ac_ct_CXX=$CXX
24988 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24989do
24990 # Extract the first word of "$ac_prog", so it can be a program name with args.
24991set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024993$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024994if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024995 $as_echo_n "(cached) " >&6
24996else
24997 if test -n "$ac_ct_CXX"; then
24998 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
24999else
25000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25001for as_dir in $PATH
25002do
25003 IFS=$as_save_IFS
25004 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025005 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25007 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025009 break 2
25010 fi
25011done
cristy8b350f62009-11-15 23:12:43 +000025012 done
cristy3ed852e2009-09-05 21:47:34 +000025013IFS=$as_save_IFS
25014
25015fi
25016fi
25017ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25018if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025020$as_echo "$ac_ct_CXX" >&6; }
25021else
cristy8b350f62009-11-15 23:12:43 +000025022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025023$as_echo "no" >&6; }
25024fi
25025
25026
25027 test -n "$ac_ct_CXX" && break
25028done
25029
25030 if test "x$ac_ct_CXX" = x; then
25031 CXX="g++"
25032 else
25033 case $cross_compiling:$ac_tool_warned in
25034yes:)
cristy8b350f62009-11-15 23:12:43 +000025035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25037ac_tool_warned=yes ;;
25038esac
25039 CXX=$ac_ct_CXX
25040 fi
25041fi
25042
25043 fi
25044fi
25045# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025046$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025047set X $ac_compile
25048ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025049for ac_option in --version -v -V -qversion; do
25050 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025051case "(($ac_try" in
25052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25053 *) ac_try_echo=$ac_try;;
25054esac
cristy8b350f62009-11-15 23:12:43 +000025055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25056$as_echo "$ac_try_echo"; } >&5
25057 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025058 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025059 if test -s conftest.err; then
25060 sed '10a\
25061... rest of stderr output deleted ...
25062 10q' conftest.err >conftest.er1
25063 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025064 fi
cristycd4c5312009-11-22 01:19:08 +000025065 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25067 test $ac_status = 0; }
25068done
cristy3ed852e2009-09-05 21:47:34 +000025069
cristy8b350f62009-11-15 23:12:43 +000025070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025071$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025072if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025073 $as_echo_n "(cached) " >&6
25074else
cristy8b350f62009-11-15 23:12:43 +000025075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025076/* end confdefs.h. */
25077
25078int
25079main ()
25080{
25081#ifndef __GNUC__
25082 choke me
25083#endif
25084
25085 ;
25086 return 0;
25087}
25088_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025089if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025090 ac_compiler_gnu=yes
25091else
cristy8b350f62009-11-15 23:12:43 +000025092 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025093fi
cristy3ed852e2009-09-05 21:47:34 +000025094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25095ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25096
25097fi
cristy8b350f62009-11-15 23:12:43 +000025098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025099$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25100if test $ac_compiler_gnu = yes; then
25101 GXX=yes
25102else
25103 GXX=
25104fi
25105ac_test_CXXFLAGS=${CXXFLAGS+set}
25106ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025108$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025109if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025110 $as_echo_n "(cached) " >&6
25111else
25112 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25113 ac_cxx_werror_flag=yes
25114 ac_cv_prog_cxx_g=no
25115 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025117/* end confdefs.h. */
25118
25119int
25120main ()
25121{
25122
25123 ;
25124 return 0;
25125}
25126_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025127if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025128 ac_cv_prog_cxx_g=yes
25129else
cristy8b350f62009-11-15 23:12:43 +000025130 CXXFLAGS=""
25131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025132/* end confdefs.h. */
25133
25134int
25135main ()
25136{
25137
25138 ;
25139 return 0;
25140}
25141_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025142if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025143
cristy8b350f62009-11-15 23:12:43 +000025144else
25145 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025146 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025148/* end confdefs.h. */
25149
25150int
25151main ()
25152{
25153
25154 ;
25155 return 0;
25156}
25157_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025158if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025159 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025160fi
cristy3ed852e2009-09-05 21:47:34 +000025161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25162fi
cristy3ed852e2009-09-05 21:47:34 +000025163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25164fi
cristy3ed852e2009-09-05 21:47:34 +000025165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25166 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25167fi
cristy8b350f62009-11-15 23:12:43 +000025168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025169$as_echo "$ac_cv_prog_cxx_g" >&6; }
25170if test "$ac_test_CXXFLAGS" = set; then
25171 CXXFLAGS=$ac_save_CXXFLAGS
25172elif test $ac_cv_prog_cxx_g = yes; then
25173 if test "$GXX" = yes; then
25174 CXXFLAGS="-g -O2"
25175 else
25176 CXXFLAGS="-g"
25177 fi
25178else
25179 if test "$GXX" = yes; then
25180 CXXFLAGS="-O2"
25181 else
25182 CXXFLAGS=
25183 fi
25184fi
25185ac_ext=cpp
25186ac_cpp='$CXXCPP $CPPFLAGS'
25187ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25188ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25189ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25190
cristy73bd4a52010-10-05 11:24:23 +000025191depcc="$CXX" am_compiler_list=
25192
25193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25194$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025195if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025196 $as_echo_n "(cached) " >&6
25197else
25198 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25199 # We make a subdir and do the tests there. Otherwise we can end up
25200 # making bogus files that we don't know about and never remove. For
25201 # instance it was reported that on HP-UX the gcc test will end up
25202 # making a dummy file named `D' -- because `-MD' means `put the output
25203 # in D'.
25204 mkdir conftest.dir
25205 # Copy depcomp to subdir because otherwise we won't find it if we're
25206 # using a relative directory.
25207 cp "$am_depcomp" conftest.dir
25208 cd conftest.dir
25209 # We will build objects and dependencies in a subdirectory because
25210 # it helps to detect inapplicable dependency modes. For instance
25211 # both Tru64's cc and ICC support -MD to output dependencies as a
25212 # side effect of compilation, but ICC will put the dependencies in
25213 # the current directory while Tru64 will put them in the object
25214 # directory.
25215 mkdir sub
25216
25217 am_cv_CXX_dependencies_compiler_type=none
25218 if test "$am_compiler_list" = ""; then
25219 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25220 fi
25221 am__universal=false
25222 case " $depcc " in #(
25223 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25224 esac
25225
25226 for depmode in $am_compiler_list; do
25227 # Setup a source with many dependencies, because some compilers
25228 # like to wrap large dependency lists on column 80 (with \), and
25229 # we should not choose a depcomp mode which is confused by this.
25230 #
25231 # We need to recreate these files for each test, as the compiler may
25232 # overwrite some of them when testing with obscure command lines.
25233 # This happens at least with the AIX C compiler.
25234 : > sub/conftest.c
25235 for i in 1 2 3 4 5 6; do
25236 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25237 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25238 # Solaris 8's {/usr,}/bin/sh.
25239 touch sub/conftst$i.h
25240 done
25241 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25242
25243 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25244 # mode. It turns out that the SunPro C++ compiler does not properly
25245 # handle `-M -o', and we need to detect this. Also, some Intel
25246 # versions had trouble with output in subdirs
25247 am__obj=sub/conftest.${OBJEXT-o}
25248 am__minus_obj="-o $am__obj"
25249 case $depmode in
25250 gcc)
25251 # This depmode causes a compiler race in universal mode.
25252 test "$am__universal" = false || continue
25253 ;;
25254 nosideeffect)
25255 # after this tag, mechanisms are not by side-effect, so they'll
25256 # only be used when explicitly requested
25257 if test "x$enable_dependency_tracking" = xyes; then
25258 continue
25259 else
25260 break
25261 fi
25262 ;;
25263 msvisualcpp | msvcmsys)
25264 # This compiler won't grok `-c -o', but also, the minuso test has
25265 # not run yet. These depmodes are late enough in the game, and
25266 # so weak that their functioning should not be impacted.
25267 am__obj=conftest.${OBJEXT-o}
25268 am__minus_obj=
25269 ;;
25270 none) break ;;
25271 esac
25272 if depmode=$depmode \
25273 source=sub/conftest.c object=$am__obj \
25274 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25275 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25276 >/dev/null 2>conftest.err &&
25277 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25278 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25279 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25280 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25281 # icc doesn't choke on unknown options, it will just issue warnings
25282 # or remarks (even with -Werror). So we grep stderr for any message
25283 # that says an option was ignored or not supported.
25284 # When given -MP, icc 7.0 and 7.1 complain thusly:
25285 # icc: Command line warning: ignoring option '-M'; no argument required
25286 # The diagnosis changed in icc 8.0:
25287 # icc: Command line remark: option '-MP' not supported
25288 if (grep 'ignoring option' conftest.err ||
25289 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25290 am_cv_CXX_dependencies_compiler_type=$depmode
25291 break
25292 fi
25293 fi
25294 done
25295
25296 cd ..
25297 rm -rf conftest.dir
25298else
25299 am_cv_CXX_dependencies_compiler_type=none
25300fi
25301
25302fi
25303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25304$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25305CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25306
25307 if
25308 test "x$enable_dependency_tracking" != xno \
25309 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25310 am__fastdepCXX_TRUE=
25311 am__fastdepCXX_FALSE='#'
25312else
25313 am__fastdepCXX_TRUE='#'
25314 am__fastdepCXX_FALSE=
25315fi
25316
25317
25318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25319$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025320if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025321 $as_echo_n "(cached) " >&6
25322else
25323
25324 ac_ext=cpp
25325ac_cpp='$CXXCPP $CPPFLAGS'
25326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25329
25330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25331/* end confdefs.h. */
25332
25333int f(int x){return 1;}
25334int f(char x){return 1;}
25335int f(bool x){return 1;}
25336
25337int
25338main ()
25339{
25340bool b = true; return f(b);
25341 ;
25342 return 0;
25343}
25344_ACEOF
25345if ac_fn_cxx_try_compile "$LINENO"; then :
25346 ax_cv_cxx_bool=yes
25347else
25348 ax_cv_cxx_bool=no
25349fi
25350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25351 ac_ext=cpp
25352ac_cpp='$CXXCPP $CPPFLAGS'
25353ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25354ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25355ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25356
25357
25358fi
25359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25360$as_echo "$ax_cv_cxx_bool" >&6; }
25361if test "$ax_cv_cxx_bool" = yes; then
25362
25363$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25364
25365fi
25366
25367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25368$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025369if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025370 $as_echo_n "(cached) " >&6
25371else
25372
25373 ac_ext=cpp
25374ac_cpp='$CXXCPP $CPPFLAGS'
25375ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25376ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25377ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25378
25379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25380/* end confdefs.h. */
25381namespace Outer { namespace Inner { int i = 0; }}
25382int
25383main ()
25384{
25385using namespace Outer::Inner; return i;
25386 ;
25387 return 0;
25388}
25389_ACEOF
25390if ac_fn_cxx_try_compile "$LINENO"; then :
25391 ax_cv_cxx_namespaces=yes
25392else
25393 ax_cv_cxx_namespaces=no
25394fi
25395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25396 ac_ext=cpp
25397ac_cpp='$CXXCPP $CPPFLAGS'
25398ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25399ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25400ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25401
25402
25403fi
25404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25405$as_echo "$ax_cv_cxx_namespaces" >&6; }
25406if test "$ax_cv_cxx_namespaces" = yes; then
25407
25408$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25409
25410fi
25411
25412
25413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25414$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025415if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025416 $as_echo_n "(cached) " >&6
25417else
25418
25419 ac_ext=cpp
25420ac_cpp='$CXXCPP $CPPFLAGS'
25421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25424
25425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25426/* end confdefs.h. */
25427#include <iostream>
25428 std::istream& is = std::cin;
25429int
25430main ()
25431{
25432
25433 ;
25434 return 0;
25435}
25436_ACEOF
25437if ac_fn_cxx_try_compile "$LINENO"; then :
25438 ax_cv_cxx_have_std_namespace=yes
25439else
25440 ax_cv_cxx_have_std_namespace=no
25441fi
25442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25443 ac_ext=cpp
25444ac_cpp='$CXXCPP $CPPFLAGS'
25445ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25446ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25447ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25448
25449
25450fi
25451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25452$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25453 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25454
25455$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25456
25457 fi
25458
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25460$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025461if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025462 $as_echo_n "(cached) " >&6
25463else
25464
25465
25466 ac_ext=cpp
25467ac_cpp='$CXXCPP $CPPFLAGS'
25468ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25469ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25470ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25471
25472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25473/* end confdefs.h. */
25474#include <iostream>
25475#include <map>
25476#include <iomanip>
25477#include <cmath>
25478#ifdef HAVE_NAMESPACES
25479using namespace std;
25480#endif
25481int
25482main ()
25483{
25484return 0;
25485 ;
25486 return 0;
25487}
25488_ACEOF
25489if ac_fn_cxx_try_compile "$LINENO"; then :
25490 ac_cv_cxx_have_std_libs=yes
25491else
25492 ac_cv_cxx_have_std_libs=no
25493fi
25494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25495 ac_ext=cpp
25496ac_cpp='$CXXCPP $CPPFLAGS'
25497ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25498ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25499ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25500
25501
25502fi
25503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25504$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25505if test "$ac_cv_cxx_have_std_libs" = yes; then
25506
25507$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25508
25509fi
25510
cristy3ed852e2009-09-05 21:47:34 +000025511
25512 OPENMP_CXXFLAGS=
25513 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025514if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025515 enableval=$enable_openmp;
25516fi
25517
25518 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25520$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025521if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025522 $as_echo_n "(cached) " >&6
25523else
cristy8b350f62009-11-15 23:12:43 +000025524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25525/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025526
25527#ifndef _OPENMP
25528 choke me
25529#endif
25530#include <omp.h>
25531int main () { return omp_get_num_threads (); }
25532
25533_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025534if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025535 ac_cv_prog_cxx_openmp='none needed'
25536else
cristy8b350f62009-11-15 23:12:43 +000025537 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000025538 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25539 ac_save_CXXFLAGS=$CXXFLAGS
25540 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25542/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025543
25544#ifndef _OPENMP
25545 choke me
25546#endif
25547#include <omp.h>
25548int main () { return omp_get_num_threads (); }
25549
25550_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025551if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025552 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025553fi
cristy8b350f62009-11-15 23:12:43 +000025554rm -f core conftest.err conftest.$ac_objext \
25555 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025556 CXXFLAGS=$ac_save_CXXFLAGS
25557 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25558 break
25559 fi
25560 done
25561fi
cristy8b350f62009-11-15 23:12:43 +000025562rm -f core conftest.err conftest.$ac_objext \
25563 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025564fi
cristy8b350f62009-11-15 23:12:43 +000025565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025566$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25567 case $ac_cv_prog_cxx_openmp in #(
25568 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025569 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025570 *)
cristy8b350f62009-11-15 23:12:43 +000025571 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025572 esac
25573 fi
25574
25575
25576 ac_ext=c
25577ac_cpp='$CPP $CPPFLAGS'
25578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25580ac_compiler_gnu=$ac_cv_c_compiler_gnu
25581
25582
cristy8b350f62009-11-15 23:12:43 +000025583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025584$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25585 if \
cristy964cb7f2010-04-25 23:18:00 +000025586 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025587 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025588 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025589 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025590 have_magick_plus_plus='yes'
25591 else
25592 have_magick_plus_plus='no (failed tests)'
25593 fi
cristy8b350f62009-11-15 23:12:43 +000025594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000025595$as_echo "$have_magick_plus_plus" >&6; }
25596 LIBS="$OLIBS"
25597fi
cristy73bd4a52010-10-05 11:24:23 +000025598 if test "$have_magick_plus_plus" = 'yes'; then
25599 WITH_MAGICK_PLUS_PLUS_TRUE=
25600 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25601else
25602 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25603 WITH_MAGICK_PLUS_PLUS_FALSE=
25604fi
25605
cristy3ed852e2009-09-05 21:47:34 +000025606
25607# Only check for delegate libraries in subdirectories if requested.
25608if test "$enable_delegate_build" != 'no'; then
25609 # Check for delegate sub-directories and add -I & -L options as required.
25610 # This presumes that delegates are installed as detailed in the ImageMagick
25611 # README. If delegates are installed in a standard location where the
25612 # compiler will automatically find them then these options should not be
25613 # required.
25614
25615 #
25616 # Most delegates have includes in the same directory as the library, but not all...
25617 #
25618 # Includes
cristyfbb0ef02010-12-19 02:32:11 +000025619 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 +000025620 if test -d "$builddir/$dir"; then
25621 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25622 else
25623 if test -d "$srcdirfull/$dir"; then
25624 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25625 fi
25626 fi
25627 done
25628
25629 # Libraries
cristyfbb0ef02010-12-19 02:32:11 +000025630 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 +000025631 if test -d "$builddir/$dir/.libs"; then
25632 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25633 else
25634 if test -d "$srcdirfull/$dir/.libs"; then
25635 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25636 fi
25637 fi
25638 if test -d "$builddir/$dir"; then
25639 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25640 else
25641 if test -d "$srcdirfull/$dir"; then
25642 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25643 fi
25644 fi
25645 done
25646fi
25647
25648# Assume that delegate headers reside under same directory as ImageMagick
25649# installation prefix.
25650MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25651
25652#
25653# Find the X11 RGB database
25654#
cristy8b350f62009-11-15 23:12:43 +000025655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025656$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025657if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025658 $as_echo_n "(cached) " >&6
25659else
25660 # Look for the header file in a standard set of common directories.
25661# Check X11 before X11Rn because it is often a symlink to the current release.
25662 for ac_dir in \
25663 /lib/usr/lib/X11 \
25664 /usr/X11/lib \
25665 /usr/X11R4/lib \
25666 /usr/X11R5/lib \
25667 /usr/X11R6/lib \
25668 /usr/X11R7/lib \
25669 /usr/X386/lib \
25670 /usr/XFree86/lib/X11 \
25671 /usr/athena/lib \
25672 /usr/lib \
25673 /usr/lib/X11 \
25674 /usr/lib/X11R4 \
25675 /usr/lib/X11R5 \
25676 /usr/lib/X11R6 \
25677 /usr/lib/X11R7 \
25678 /usr/local/X11/lib \
25679 /usr/local/X11R4/lib \
25680 /usr/local/X11R5/lib \
25681 /usr/local/X11R6/lib \
25682 /usr/local/lib \
25683 /usr/local/lib/X11 \
25684 /usr/local/lib/X11R4 \
25685 /usr/local/lib/X11R5 \
25686 /usr/local/lib/X11R6 \
25687 /usr/local/lib/X11R7 \
25688 /usr/local/x11r5/lib \
25689 /usr/lpp/Xamples/lib \
25690 /usr/openwin/lib \
25691 /usr/openwin/share/lib \
25692 /usr/unsupported/lib \
25693 /usr/x386/lib \
25694 ; do
25695 if test -f "$ac_dir/X11/rgb.txt"; then
25696 im_cv_x_configure="$ac_dir/X11/"
25697 break
25698 elif test -f "$ac_dir/rgb.txt"; then
25699 im_cv_x_configure="$ac_dir/"
25700 break
25701 fi
25702
25703 done
25704fi
cristy8b350f62009-11-15 23:12:43 +000025705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000025706$as_echo "$im_cv_x_configure" >&6; }
25707X11_CONFIGURE_PATH="$im_cv_x_configure"
25708case "${build_os}" in
25709 mingw* )
25710 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25711 ;;
25712esac
25713
25714cat >>confdefs.h <<_ACEOF
25715#define X11_CONFIGURE_PATH "$X11ConfigurePath"
25716_ACEOF
25717
25718
25719#
25720# Find OpenMP library
25721#
25722GOMP_LIBS=''
25723if test "$enable_openmp" != 'no'; then
25724 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000025725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025726$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025727if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025728 $as_echo_n "(cached) " >&6
25729else
25730 ac_check_lib_save_LIBS=$LIBS
25731LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025733/* end confdefs.h. */
25734
25735/* Override any GCC internal prototype to avoid an error.
25736 Use char because int might match the return type of a GCC
25737 builtin and then its argument prototype would still apply. */
25738#ifdef __cplusplus
25739extern "C"
25740#endif
25741char GOMP_parallel_start ();
25742int
25743main ()
25744{
25745return GOMP_parallel_start ();
25746 ;
25747 return 0;
25748}
25749_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025750if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025751 ac_cv_lib_gomp_GOMP_parallel_start=yes
25752else
cristy8b350f62009-11-15 23:12:43 +000025753 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000025754fi
cristy8b350f62009-11-15 23:12:43 +000025755rm -f core conftest.err conftest.$ac_objext \
25756 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025757LIBS=$ac_check_lib_save_LIBS
25758fi
cristy8b350f62009-11-15 23:12:43 +000025759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025760$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025761if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025762 GOMP_LIBS="-lgomp"
25763fi
25764 # gcc
25765 else
cristy8b350f62009-11-15 23:12:43 +000025766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025767$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025768if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025769 $as_echo_n "(cached) " >&6
25770else
25771 ac_check_lib_save_LIBS=$LIBS
25772LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025774/* end confdefs.h. */
25775
25776/* Override any GCC internal prototype to avoid an error.
25777 Use char because int might match the return type of a GCC
25778 builtin and then its argument prototype would still apply. */
25779#ifdef __cplusplus
25780extern "C"
25781#endif
25782char sunw_mp_register_warn ();
25783int
25784main ()
25785{
25786return sunw_mp_register_warn ();
25787 ;
25788 return 0;
25789}
25790_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025791if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025792 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25793else
cristy8b350f62009-11-15 23:12:43 +000025794 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025795fi
cristy8b350f62009-11-15 23:12:43 +000025796rm -f core conftest.err conftest.$ac_objext \
25797 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025798LIBS=$ac_check_lib_save_LIBS
25799fi
cristy8b350f62009-11-15 23:12:43 +000025800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000025801$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000025802if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025803 GOMP_LIBS="-lmtsk"
25804fi
25805 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000025806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025807$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025808if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025809 $as_echo_n "(cached) " >&6
25810else
25811 ac_check_lib_save_LIBS=$LIBS
25812LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025814/* end confdefs.h. */
25815
25816/* Override any GCC internal prototype to avoid an error.
25817 Use char because int might match the return type of a GCC
25818 builtin and then its argument prototype would still apply. */
25819#ifdef __cplusplus
25820extern "C"
25821#endif
25822char _xlsmpFlush ();
25823int
25824main ()
25825{
25826return _xlsmpFlush ();
25827 ;
25828 return 0;
25829}
25830_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025831if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025832 ac_cv_lib_xlsmp__xlsmpFlush=yes
25833else
cristy8b350f62009-11-15 23:12:43 +000025834 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000025835fi
cristy8b350f62009-11-15 23:12:43 +000025836rm -f core conftest.err conftest.$ac_objext \
25837 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025838LIBS=$ac_check_lib_save_LIBS
25839fi
cristy8b350f62009-11-15 23:12:43 +000025840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000025841$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000025842if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025843 GOMP_LIBS="-lxlsmp"
25844fi
25845 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000025846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025847$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025848if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025849 $as_echo_n "(cached) " >&6
25850else
25851 ac_check_lib_save_LIBS=$LIBS
25852LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025854/* end confdefs.h. */
25855
25856/* Override any GCC internal prototype to avoid an error.
25857 Use char because int might match the return type of a GCC
25858 builtin and then its argument prototype would still apply. */
25859#ifdef __cplusplus
25860extern "C"
25861#endif
25862char mp_destroy ();
25863int
25864main ()
25865{
25866return mp_destroy ();
25867 ;
25868 return 0;
25869}
25870_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025871if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025872 ac_cv_lib_mp_mp_destroy=yes
25873else
cristy8b350f62009-11-15 23:12:43 +000025874 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000025875fi
cristy8b350f62009-11-15 23:12:43 +000025876rm -f core conftest.err conftest.$ac_objext \
25877 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025878LIBS=$ac_check_lib_save_LIBS
25879fi
cristy8b350f62009-11-15 23:12:43 +000025880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000025881$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000025882if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025883 GOMP_LIBS="-lmp"
25884fi
25885 # SGI IRIX 6.5 MIPSpro C/C++
25886 fi
25887 LIBS="$GOMP_LIBS $LIBS"
25888fi
25889
25890
25891#
25892# Find Posix threads library
25893#
25894THREAD_LIBS=''
25895if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
25896
25897 if test "x$PTHREAD_LIBS" = "x"; then
25898 case "${host_cpu}-${host_os}" in
25899 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000025900
25901
25902
25903ac_ext=c
25904ac_cpp='$CPP $CPPFLAGS'
25905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25907ac_compiler_gnu=$ac_cv_c_compiler_gnu
25908
25909magick_pthread_lib_ok=no
25910
25911LIB=-lc_r
25912save_LIBS="$LIBS"
25913LIBS="$LIBS $LIB"
25914
25915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25916$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25918/* end confdefs.h. */
25919#include <pthread.h>
25920int
25921main ()
25922{
25923 pthread_t th;
25924 pthread_join(th, 0);
25925 pthread_attr_init(0);
25926 pthread_cleanup_push(0, 0);
25927 pthread_create(0,0,0,0);
25928 pthread_cleanup_pop(0);
25929 ;
25930 return 0;
25931}
25932_ACEOF
25933if ac_fn_c_try_link "$LINENO"; then :
25934 magick_pthread_lib_ok=yes
25935fi
25936rm -f core conftest.err conftest.$ac_objext \
25937 conftest$ac_exeext conftest.$ac_ext
25938
25939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25940$as_echo "${magick_pthread_lib_ok}" >&6; }
25941if test "$magick_pthread_lib_ok" = yes
25942then
25943 PTHREAD_LIBS=-lc_r
25944 :
25945else
25946
25947 :
25948fi
25949
25950LIBS="$save_LIBS"
25951
25952ac_ext=c
25953ac_cpp='$CPP $CPPFLAGS'
25954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25956ac_compiler_gnu=$ac_cv_c_compiler_gnu
25957
25958 ;;
cristy3ed852e2009-09-05 21:47:34 +000025959 esac
25960 fi
25961
25962 for lib in pthread pthreads; do
25963 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000025964
25965
25966
25967ac_ext=c
25968ac_cpp='$CPP $CPPFLAGS'
25969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25971ac_compiler_gnu=$ac_cv_c_compiler_gnu
25972
25973magick_pthread_lib_ok=no
25974
25975LIB=-l$lib
25976save_LIBS="$LIBS"
25977LIBS="$LIBS $LIB"
25978
25979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25980$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25982/* end confdefs.h. */
25983#include <pthread.h>
25984int
25985main ()
25986{
25987 pthread_t th;
25988 pthread_join(th, 0);
25989 pthread_attr_init(0);
25990 pthread_cleanup_push(0, 0);
25991 pthread_create(0,0,0,0);
25992 pthread_cleanup_pop(0);
25993 ;
25994 return 0;
25995}
25996_ACEOF
25997if ac_fn_c_try_link "$LINENO"; then :
25998 magick_pthread_lib_ok=yes
25999fi
26000rm -f core conftest.err conftest.$ac_objext \
26001 conftest$ac_exeext conftest.$ac_ext
26002
26003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26004$as_echo "${magick_pthread_lib_ok}" >&6; }
26005if test "$magick_pthread_lib_ok" = yes
26006then
26007 PTHREAD_LIBS=-l$lib
26008 :
26009else
26010
26011 :
26012fi
26013
26014LIBS="$save_LIBS"
26015
26016ac_ext=c
26017ac_cpp='$CPP $CPPFLAGS'
26018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26020ac_compiler_gnu=$ac_cv_c_compiler_gnu
26021
26022
cristy3ed852e2009-09-05 21:47:34 +000026023 fi
26024 done
26025
26026 THREAD_LIBS="$PTHREAD_LIBS"
26027 LIBS="$LIBS $THREAD_LIBS"
26028fi
26029
26030
26031#
26032# Check for umem.
26033#
26034have_umem='no'
26035UMEM_LIBS=''
26036if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026038$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026040$as_echo "" >&6; }
26041 failed=0
26042 passed=0
cristy8b350f62009-11-15 23:12:43 +000026043 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026044if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026045 passed=`expr $passed + 1`
26046else
26047 failed=`expr $failed + 1`
26048fi
26049
26050
cristy8b350f62009-11-15 23:12:43 +000026051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026052$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026053if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026054 $as_echo_n "(cached) " >&6
26055else
26056 ac_check_lib_save_LIBS=$LIBS
26057LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026059/* end confdefs.h. */
26060
26061/* Override any GCC internal prototype to avoid an error.
26062 Use char because int might match the return type of a GCC
26063 builtin and then its argument prototype would still apply. */
26064#ifdef __cplusplus
26065extern "C"
26066#endif
26067char umem_alloc ();
26068int
26069main ()
26070{
26071return umem_alloc ();
26072 ;
26073 return 0;
26074}
26075_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026076if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026077 ac_cv_lib_umem_umem_alloc=yes
26078else
cristy8b350f62009-11-15 23:12:43 +000026079 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026080fi
cristy8b350f62009-11-15 23:12:43 +000026081rm -f core conftest.err conftest.$ac_objext \
26082 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026083LIBS=$ac_check_lib_save_LIBS
26084fi
cristy8b350f62009-11-15 23:12:43 +000026085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026086$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026087if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026088 passed=`expr $passed + 1`
26089else
26090 failed=`expr $failed + 1`
26091fi
26092
cristy8b350f62009-11-15 23:12:43 +000026093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026094$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026095if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026096 $as_echo_n "(cached) " >&6
26097else
26098 ac_check_lib_save_LIBS=$LIBS
26099LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026101/* end confdefs.h. */
26102
26103/* Override any GCC internal prototype to avoid an error.
26104 Use char because int might match the return type of a GCC
26105 builtin and then its argument prototype would still apply. */
26106#ifdef __cplusplus
26107extern "C"
26108#endif
26109char umem_free ();
26110int
26111main ()
26112{
26113return umem_free ();
26114 ;
26115 return 0;
26116}
26117_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026118if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026119 ac_cv_lib_umem_umem_free=yes
26120else
cristy8b350f62009-11-15 23:12:43 +000026121 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026122fi
cristy8b350f62009-11-15 23:12:43 +000026123rm -f core conftest.err conftest.$ac_objext \
26124 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026125LIBS=$ac_check_lib_save_LIBS
26126fi
cristy8b350f62009-11-15 23:12:43 +000026127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026128$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026129if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026130 passed=`expr $passed + 1`
26131else
26132 failed=`expr $failed + 1`
26133fi
26134
cristy8b350f62009-11-15 23:12:43 +000026135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026136$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26137 if test $passed -gt 0; then
26138 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026140$as_echo "no -- some components failed test" >&6; }
26141 have_umem='no (failed tests)'
26142 else
26143 UMEM_LIBS='-lumem'
26144 LIBS="$UMEM_LIBS $LIBS"
26145
cristy8b350f62009-11-15 23:12:43 +000026146$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026147
cristy8b350f62009-11-15 23:12:43 +000026148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026149$as_echo "yes" >&6; }
26150 have_umem='yes'
26151 fi
26152 else
cristy8b350f62009-11-15 23:12:43 +000026153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026154$as_echo "no" >&6; }
26155 fi
26156fi
cristy73bd4a52010-10-05 11:24:23 +000026157 if test "$have_umem" = 'yes'; then
26158 HasUMEM_TRUE=
26159 HasUMEM_FALSE='#'
26160else
26161 HasUMEM_TRUE='#'
26162 HasUMEM_FALSE=
26163fi
26164
cristy3ed852e2009-09-05 21:47:34 +000026165
26166
26167#
26168# Add support for ccmalloc memory debugging library if requested
26169#
26170have_ccmalloc='no'
26171CCMALLOC_LIBS=''
26172if test "$enable_ccmalloc" = 'yes'; then
26173 # Extract the first word of "ccmalloc", so it can be a program name with args.
26174set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026176$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026177if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026178 $as_echo_n "(cached) " >&6
26179else
26180 case $CCMALLOCDelegate in
26181 [\\/]* | ?:[\\/]*)
26182 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26183 ;;
26184 *)
26185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26186for as_dir in $PATH
26187do
26188 IFS=$as_save_IFS
26189 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026190 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26192 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026194 break 2
26195 fi
26196done
cristy8b350f62009-11-15 23:12:43 +000026197 done
cristy3ed852e2009-09-05 21:47:34 +000026198IFS=$as_save_IFS
26199
26200 ;;
26201esac
26202fi
26203CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26204if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026206$as_echo "$CCMALLOCDelegate" >&6; }
26207else
cristy8b350f62009-11-15 23:12:43 +000026208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026209$as_echo "no" >&6; }
26210fi
26211
26212
26213 if test -n "$CCMALLOCDelegate"; then
26214 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26215 OLIBS="$LIBS"
26216 # Assume that gcc is used with ccmalloc.
26217 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026219$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026220if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026221 $as_echo_n "(cached) " >&6
26222else
26223 ac_check_lib_save_LIBS=$LIBS
26224LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026226/* end confdefs.h. */
26227
26228/* Override any GCC internal prototype to avoid an error.
26229 Use char because int might match the return type of a GCC
26230 builtin and then its argument prototype would still apply. */
26231#ifdef __cplusplus
26232extern "C"
26233#endif
26234char ccmalloc_malloc ();
26235int
26236main ()
26237{
26238return ccmalloc_malloc ();
26239 ;
26240 return 0;
26241}
26242_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026243if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026244 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26245else
cristy8b350f62009-11-15 23:12:43 +000026246 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026247fi
cristy8b350f62009-11-15 23:12:43 +000026248rm -f core conftest.err conftest.$ac_objext \
26249 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026250LIBS=$ac_check_lib_save_LIBS
26251fi
cristy8b350f62009-11-15 23:12:43 +000026252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026253$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026254if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026255 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26256fi
26257
26258 if test -n "$CCMALLOC_LIBS"; then
26259 LIBS="$OLIBS"
26260 LIBS="$LIBS $CCMALLOC_LIBS"
26261 have_ccmalloc='yes'
26262 else
26263 LIBS="$OLIBS"
26264 fi
26265 fi
26266fi
26267
26268#
26269# Add support for efence memory debugging library if requested
26270#
26271if test "$enable_efence" = 'yes'; then
26272 EFENCE_LIBS='-lefence'
26273 LIBS="$EFENCE_LIBS $LIBS"
26274fi
26275
cristy3ed852e2009-09-05 21:47:34 +000026276
26277#
26278# Check for BZLIB
26279#
26280
26281
26282# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026283if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026284 withval=$with_bzlib; with_bzlib=$withval
26285else
26286 with_bzlib='yes'
26287fi
26288
26289
26290if test "$with_bzlib" != 'yes'; then
26291 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26292fi
26293
26294have_bzlib='no'
26295if test "$with_bzlib" != 'no'; then
26296 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026298$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026300$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026302$as_echo "" >&6; }
26303 failed=0
26304 passed=0
26305 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026306 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026307if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026308 passed=`expr $passed + 1`
26309else
26310 failed=`expr $failed + 1`
26311fi
26312
26313
cristy8b350f62009-11-15 23:12:43 +000026314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026315$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026316if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026317 $as_echo_n "(cached) " >&6
26318else
26319 ac_check_lib_save_LIBS=$LIBS
26320LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026322/* end confdefs.h. */
26323
26324/* Override any GCC internal prototype to avoid an error.
26325 Use char because int might match the return type of a GCC
26326 builtin and then its argument prototype would still apply. */
26327#ifdef __cplusplus
26328extern "C"
26329#endif
26330char BZ2_bzDecompress ();
26331int
26332main ()
26333{
26334return BZ2_bzDecompress ();
26335 ;
26336 return 0;
26337}
26338_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026339if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026340 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26341else
cristy8b350f62009-11-15 23:12:43 +000026342 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026343fi
cristy8b350f62009-11-15 23:12:43 +000026344rm -f core conftest.err conftest.$ac_objext \
26345 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026346LIBS=$ac_check_lib_save_LIBS
26347fi
cristy8b350f62009-11-15 23:12:43 +000026348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026349$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026350if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026351 found_libbz=`expr $found_libbz + 1`
26352fi
26353
26354 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026356$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026357if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026358 $as_echo_n "(cached) " >&6
26359else
26360 ac_check_lib_save_LIBS=$LIBS
26361LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026363/* end confdefs.h. */
26364
26365/* Override any GCC internal prototype to avoid an error.
26366 Use char because int might match the return type of a GCC
26367 builtin and then its argument prototype would still apply. */
26368#ifdef __cplusplus
26369extern "C"
26370#endif
26371char _imp__BZ2_decompress ();
26372int
26373main ()
26374{
26375return _imp__BZ2_decompress ();
26376 ;
26377 return 0;
26378}
26379_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026380if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026381 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26382else
cristy8b350f62009-11-15 23:12:43 +000026383 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026384fi
cristy8b350f62009-11-15 23:12:43 +000026385rm -f core conftest.err conftest.$ac_objext \
26386 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026387LIBS=$ac_check_lib_save_LIBS
26388fi
cristy8b350f62009-11-15 23:12:43 +000026389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026390$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026391if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026392 found_libbz=`expr $found_libbz + 1`
26393fi
26394
26395 fi
26396 if test $found_libbz -gt 0; then
26397 passed=`expr $passed + 1`
26398 else
26399 failed=`expr $failed + 1`
26400 fi
cristy8b350f62009-11-15 23:12:43 +000026401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026402$as_echo_n "checking if BZLIB package is complete... " >&6; }
26403 if test $passed -gt 0; then
26404 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026406$as_echo "no -- some components failed test" >&6; }
26407 have_bzlib='no (failed tests)'
26408 else
26409 BZLIB_LIBS='-lbz2'
26410 LIBS="$BZLIB_LIBS $LIBS"
26411
cristy8b350f62009-11-15 23:12:43 +000026412$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026413
cristy8b350f62009-11-15 23:12:43 +000026414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026415$as_echo "yes" >&6; }
26416 have_bzlib='yes'
26417 fi
26418 else
cristy8b350f62009-11-15 23:12:43 +000026419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026420$as_echo "no" >&6; }
26421 fi
26422fi
cristy73bd4a52010-10-05 11:24:23 +000026423 if test "$have_bzlib" = 'yes'; then
26424 BZLIB_DELEGATE_TRUE=
26425 BZLIB_DELEGATE_FALSE='#'
26426else
26427 BZLIB_DELEGATE_TRUE='#'
26428 BZLIB_DELEGATE_FALSE=
26429fi
26430
cristy3ed852e2009-09-05 21:47:34 +000026431
26432
26433#
26434# Find the X11 include and library directories.
26435#
26436IPC_LIBS=''
26437X11_LIBS=''
26438XEXT_LIBS=''
26439XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026441$as_echo_n "checking for X... " >&6; }
26442
26443
26444# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026445if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026446 withval=$with_x;
26447fi
26448
26449# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26450if test "x$with_x" = xno; then
26451 # The user explicitly disabled X.
26452 have_x=disabled
26453else
26454 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026455 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026456 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026457 $as_echo_n "(cached) " >&6
26458else
26459 # One or both of the vars are not set, and there is no cached value.
26460ac_x_includes=no ac_x_libraries=no
26461rm -f -r conftest.dir
26462if mkdir conftest.dir; then
26463 cd conftest.dir
26464 cat >Imakefile <<'_ACEOF'
26465incroot:
26466 @echo incroot='${INCROOT}'
26467usrlibdir:
26468 @echo usrlibdir='${USRLIBDIR}'
26469libdir:
26470 @echo libdir='${LIBDIR}'
26471_ACEOF
26472 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026473 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026474 for ac_var in incroot usrlibdir libdir; do
26475 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26476 done
26477 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26478 for ac_extension in a so sl dylib la dll; do
26479 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26480 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26481 ac_im_usrlibdir=$ac_im_libdir; break
26482 fi
26483 done
26484 # Screen out bogus values from the imake configuration. They are
26485 # bogus both because they are the default anyway, and because
26486 # using them would break gcc on systems where it needs fixed includes.
26487 case $ac_im_incroot in
26488 /usr/include) ac_x_includes= ;;
26489 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26490 esac
26491 case $ac_im_usrlibdir in
26492 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26493 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26494 esac
26495 fi
26496 cd ..
26497 rm -f -r conftest.dir
26498fi
26499
26500# Standard set of common directories for X headers.
26501# Check X11 before X11Rn because it is often a symlink to the current release.
26502ac_x_header_dirs='
26503/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026504/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026505/usr/X11R6/include
26506/usr/X11R5/include
26507/usr/X11R4/include
26508
26509/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026510/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026511/usr/include/X11R6
26512/usr/include/X11R5
26513/usr/include/X11R4
26514
26515/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026516/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026517/usr/local/X11R6/include
26518/usr/local/X11R5/include
26519/usr/local/X11R4/include
26520
26521/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026522/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026523/usr/local/include/X11R6
26524/usr/local/include/X11R5
26525/usr/local/include/X11R4
26526
26527/usr/X386/include
26528/usr/x386/include
26529/usr/XFree86/include/X11
26530
26531/usr/include
26532/usr/local/include
26533/usr/unsupported/include
26534/usr/athena/include
26535/usr/local/x11r5/include
26536/usr/lpp/Xamples/include
26537
26538/usr/openwin/include
26539/usr/openwin/share/include'
26540
26541if test "$ac_x_includes" = no; then
26542 # Guess where to find include files, by looking for Xlib.h.
26543 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026545/* end confdefs.h. */
26546#include <X11/Xlib.h>
26547_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026548if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026549 # We can compile using X headers with no special include directory.
26550ac_x_includes=
26551else
cristyc7083c12009-10-14 03:16:55 +000026552 for ac_dir in $ac_x_header_dirs; do
26553 if test -r "$ac_dir/X11/Xlib.h"; then
26554 ac_x_includes=$ac_dir
26555 break
26556 fi
26557done
26558fi
cristyda16f162011-02-19 23:52:17 +000026559rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026560fi # $ac_x_includes = no
26561
26562if test "$ac_x_libraries" = no; then
26563 # Check for the libraries.
26564 # See if we find them without any special options.
26565 # Don't add to $LIBS permanently.
26566 ac_save_LIBS=$LIBS
26567 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026569/* end confdefs.h. */
26570#include <X11/Xlib.h>
26571int
26572main ()
26573{
26574XrmInitialize ()
26575 ;
26576 return 0;
26577}
26578_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026579if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026580 LIBS=$ac_save_LIBS
26581# We can link X programs with no special library path.
26582ac_x_libraries=
26583else
cristy8b350f62009-11-15 23:12:43 +000026584 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026585for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26586do
26587 # Don't even attempt the hair of trying to link an X program!
26588 for ac_extension in a so sl dylib la dll; do
26589 if test -r "$ac_dir/libX11.$ac_extension"; then
26590 ac_x_libraries=$ac_dir
26591 break 2
26592 fi
26593 done
26594done
26595fi
cristy8b350f62009-11-15 23:12:43 +000026596rm -f core conftest.err conftest.$ac_objext \
26597 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026598fi # $ac_x_libraries = no
26599
26600case $ac_x_includes,$ac_x_libraries in #(
26601 no,* | *,no | *\'*)
26602 # Didn't find X, or a directory has "'" in its name.
26603 ac_cv_have_x="have_x=no";; #(
26604 *)
26605 # Record where we found X for the cache.
26606 ac_cv_have_x="have_x=yes\
26607 ac_x_includes='$ac_x_includes'\
26608 ac_x_libraries='$ac_x_libraries'"
26609esac
26610fi
26611;; #(
26612 *) have_x=yes;;
26613 esac
26614 eval "$ac_cv_have_x"
26615fi # $with_x != no
26616
26617if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026619$as_echo "$have_x" >&6; }
26620 no_x=yes
26621else
26622 # If each of the values was on the command line, it overrides each guess.
26623 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26624 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26625 # Update the cache value to reflect the command line values.
26626 ac_cv_have_x="have_x=yes\
26627 ac_x_includes='$x_includes'\
26628 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026630$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26631fi
26632
cristy3ed852e2009-09-05 21:47:34 +000026633if test "$no_x" = yes; then
26634 # Not all programs may use this symbol, but it does not hurt to define it.
26635
cristy8b350f62009-11-15 23:12:43 +000026636$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026637
26638 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26639else
26640 if test -n "$x_includes"; then
26641 X_CFLAGS="$X_CFLAGS -I$x_includes"
26642 fi
26643
26644 # It would also be nice to do this for all -L options, not just this one.
26645 if test -n "$x_libraries"; then
26646 X_LIBS="$X_LIBS -L$x_libraries"
26647 # For Solaris; some versions of Sun CC require a space after -R and
26648 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026650$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26651 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26652 ac_xsave_c_werror_flag=$ac_c_werror_flag
26653 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026655/* end confdefs.h. */
26656
26657int
26658main ()
26659{
26660
26661 ;
26662 return 0;
26663}
26664_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026665if ac_fn_c_try_link "$LINENO"; then :
26666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026667$as_echo "no" >&6; }
26668 X_LIBS="$X_LIBS -R$x_libraries"
26669else
cristy8b350f62009-11-15 23:12:43 +000026670 LIBS="$ac_xsave_LIBS -R $x_libraries"
26671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026672/* end confdefs.h. */
26673
26674int
26675main ()
26676{
26677
26678 ;
26679 return 0;
26680}
26681_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026682if ac_fn_c_try_link "$LINENO"; then :
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026684$as_echo "yes" >&6; }
26685 X_LIBS="$X_LIBS -R $x_libraries"
26686else
cristy8b350f62009-11-15 23:12:43 +000026687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026688$as_echo "neither works" >&6; }
26689fi
cristy8b350f62009-11-15 23:12:43 +000026690rm -f core conftest.err conftest.$ac_objext \
26691 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026692fi
cristy8b350f62009-11-15 23:12:43 +000026693rm -f core conftest.err conftest.$ac_objext \
26694 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026695 ac_c_werror_flag=$ac_xsave_c_werror_flag
26696 LIBS=$ac_xsave_LIBS
26697 fi
26698
26699 # Check for system-dependent libraries X programs must link with.
26700 # Do this before checking for the system-independent R6 libraries
26701 # (-lICE), since we may need -lsocket or whatever for X linking.
26702
26703 if test "$ISC" = yes; then
26704 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26705 else
26706 # Martyn Johnson says this is needed for Ultrix, if the X
26707 # libraries were built with DECnet support. And Karl Berry says
26708 # the Alpha needs dnet_stub (dnet does not exist).
26709 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000026710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026711/* end confdefs.h. */
26712
26713/* Override any GCC internal prototype to avoid an error.
26714 Use char because int might match the return type of a GCC
26715 builtin and then its argument prototype would still apply. */
26716#ifdef __cplusplus
26717extern "C"
26718#endif
26719char XOpenDisplay ();
26720int
26721main ()
26722{
26723return XOpenDisplay ();
26724 ;
26725 return 0;
26726}
26727_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026728if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026729
cristy8b350f62009-11-15 23:12:43 +000026730else
26731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026732$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026733if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026734 $as_echo_n "(cached) " >&6
26735else
26736 ac_check_lib_save_LIBS=$LIBS
26737LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026739/* end confdefs.h. */
26740
26741/* Override any GCC internal prototype to avoid an error.
26742 Use char because int might match the return type of a GCC
26743 builtin and then its argument prototype would still apply. */
26744#ifdef __cplusplus
26745extern "C"
26746#endif
26747char dnet_ntoa ();
26748int
26749main ()
26750{
26751return dnet_ntoa ();
26752 ;
26753 return 0;
26754}
26755_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026756if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026757 ac_cv_lib_dnet_dnet_ntoa=yes
26758else
cristy8b350f62009-11-15 23:12:43 +000026759 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026760fi
cristy8b350f62009-11-15 23:12:43 +000026761rm -f core conftest.err conftest.$ac_objext \
26762 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026763LIBS=$ac_check_lib_save_LIBS
26764fi
cristy8b350f62009-11-15 23:12:43 +000026765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026766$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026767if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026768 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26769fi
26770
26771 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026773$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026774if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026775 $as_echo_n "(cached) " >&6
26776else
26777 ac_check_lib_save_LIBS=$LIBS
26778LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026780/* end confdefs.h. */
26781
26782/* Override any GCC internal prototype to avoid an error.
26783 Use char because int might match the return type of a GCC
26784 builtin and then its argument prototype would still apply. */
26785#ifdef __cplusplus
26786extern "C"
26787#endif
26788char dnet_ntoa ();
26789int
26790main ()
26791{
26792return dnet_ntoa ();
26793 ;
26794 return 0;
26795}
26796_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026797if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026798 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26799else
cristy8b350f62009-11-15 23:12:43 +000026800 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026801fi
cristy8b350f62009-11-15 23:12:43 +000026802rm -f core conftest.err conftest.$ac_objext \
26803 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026804LIBS=$ac_check_lib_save_LIBS
26805fi
cristy8b350f62009-11-15 23:12:43 +000026806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026807$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026808if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026809 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26810fi
26811
26812 fi
26813fi
cristy8b350f62009-11-15 23:12:43 +000026814rm -f core conftest.err conftest.$ac_objext \
26815 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026816 LIBS="$ac_xsave_LIBS"
26817
26818 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26819 # to get the SysV transport functions.
26820 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26821 # needs -lnsl.
26822 # The nsl library prevents programs from opening the X display
26823 # on Irix 5.2, according to T.E. Dickey.
26824 # The functions gethostbyname, getservbyname, and inet_addr are
26825 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000026826 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000026827if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026828
cristy3ed852e2009-09-05 21:47:34 +000026829fi
26830
cristy3ed852e2009-09-05 21:47:34 +000026831 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026833$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026834if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026835 $as_echo_n "(cached) " >&6
26836else
26837 ac_check_lib_save_LIBS=$LIBS
26838LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026840/* end confdefs.h. */
26841
26842/* Override any GCC internal prototype to avoid an error.
26843 Use char because int might match the return type of a GCC
26844 builtin and then its argument prototype would still apply. */
26845#ifdef __cplusplus
26846extern "C"
26847#endif
26848char gethostbyname ();
26849int
26850main ()
26851{
26852return gethostbyname ();
26853 ;
26854 return 0;
26855}
26856_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026857if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026858 ac_cv_lib_nsl_gethostbyname=yes
26859else
cristy8b350f62009-11-15 23:12:43 +000026860 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026861fi
cristy8b350f62009-11-15 23:12:43 +000026862rm -f core conftest.err conftest.$ac_objext \
26863 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026864LIBS=$ac_check_lib_save_LIBS
26865fi
cristy8b350f62009-11-15 23:12:43 +000026866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026867$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026868if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026869 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26870fi
26871
26872 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000026874$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026875if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026876 $as_echo_n "(cached) " >&6
26877else
26878 ac_check_lib_save_LIBS=$LIBS
26879LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026881/* end confdefs.h. */
26882
26883/* Override any GCC internal prototype to avoid an error.
26884 Use char because int might match the return type of a GCC
26885 builtin and then its argument prototype would still apply. */
26886#ifdef __cplusplus
26887extern "C"
26888#endif
26889char gethostbyname ();
26890int
26891main ()
26892{
26893return gethostbyname ();
26894 ;
26895 return 0;
26896}
26897_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026898if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026899 ac_cv_lib_bsd_gethostbyname=yes
26900else
cristy8b350f62009-11-15 23:12:43 +000026901 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026902fi
cristy8b350f62009-11-15 23:12:43 +000026903rm -f core conftest.err conftest.$ac_objext \
26904 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026905LIBS=$ac_check_lib_save_LIBS
26906fi
cristy8b350f62009-11-15 23:12:43 +000026907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026908$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026909if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026910 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26911fi
26912
26913 fi
26914 fi
26915
26916 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26917 # socket/setsockopt and other routines are undefined under SCO ODT
26918 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26919 # on later versions), says Simon Leinen: it contains gethostby*
26920 # variants that don't use the name server (or something). -lsocket
26921 # must be given before -lnsl if both are needed. We assume that
26922 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000026923 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000026924if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026925
cristy3ed852e2009-09-05 21:47:34 +000026926fi
26927
cristy3ed852e2009-09-05 21:47:34 +000026928 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000026929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000026930$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026931if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026932 $as_echo_n "(cached) " >&6
26933else
26934 ac_check_lib_save_LIBS=$LIBS
26935LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026937/* end confdefs.h. */
26938
26939/* Override any GCC internal prototype to avoid an error.
26940 Use char because int might match the return type of a GCC
26941 builtin and then its argument prototype would still apply. */
26942#ifdef __cplusplus
26943extern "C"
26944#endif
26945char connect ();
26946int
26947main ()
26948{
26949return connect ();
26950 ;
26951 return 0;
26952}
26953_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026954if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026955 ac_cv_lib_socket_connect=yes
26956else
cristy8b350f62009-11-15 23:12:43 +000026957 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000026958fi
cristy8b350f62009-11-15 23:12:43 +000026959rm -f core conftest.err conftest.$ac_objext \
26960 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026961LIBS=$ac_check_lib_save_LIBS
26962fi
cristy8b350f62009-11-15 23:12:43 +000026963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000026964$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000026965if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026966 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26967fi
26968
26969 fi
26970
26971 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000026972 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000026973if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026974
cristy3ed852e2009-09-05 21:47:34 +000026975fi
26976
cristy3ed852e2009-09-05 21:47:34 +000026977 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000026978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000026979$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026980if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026981 $as_echo_n "(cached) " >&6
26982else
26983 ac_check_lib_save_LIBS=$LIBS
26984LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026986/* end confdefs.h. */
26987
26988/* Override any GCC internal prototype to avoid an error.
26989 Use char because int might match the return type of a GCC
26990 builtin and then its argument prototype would still apply. */
26991#ifdef __cplusplus
26992extern "C"
26993#endif
26994char remove ();
26995int
26996main ()
26997{
26998return remove ();
26999 ;
27000 return 0;
27001}
27002_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027003if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027004 ac_cv_lib_posix_remove=yes
27005else
cristy8b350f62009-11-15 23:12:43 +000027006 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027007fi
cristy8b350f62009-11-15 23:12:43 +000027008rm -f core conftest.err conftest.$ac_objext \
27009 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027010LIBS=$ac_check_lib_save_LIBS
27011fi
cristy8b350f62009-11-15 23:12:43 +000027012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027013$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027014if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027015 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27016fi
27017
27018 fi
27019
27020 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027021 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027022if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027023
cristy3ed852e2009-09-05 21:47:34 +000027024fi
27025
cristy3ed852e2009-09-05 21:47:34 +000027026 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027028$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027029if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027030 $as_echo_n "(cached) " >&6
27031else
27032 ac_check_lib_save_LIBS=$LIBS
27033LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027035/* end confdefs.h. */
27036
27037/* Override any GCC internal prototype to avoid an error.
27038 Use char because int might match the return type of a GCC
27039 builtin and then its argument prototype would still apply. */
27040#ifdef __cplusplus
27041extern "C"
27042#endif
27043char shmat ();
27044int
27045main ()
27046{
27047return shmat ();
27048 ;
27049 return 0;
27050}
27051_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027052if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027053 ac_cv_lib_ipc_shmat=yes
27054else
cristy8b350f62009-11-15 23:12:43 +000027055 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027056fi
cristy8b350f62009-11-15 23:12:43 +000027057rm -f core conftest.err conftest.$ac_objext \
27058 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027059LIBS=$ac_check_lib_save_LIBS
27060fi
cristy8b350f62009-11-15 23:12:43 +000027061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027062$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027063if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027064 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27065fi
27066
27067 fi
27068 fi
27069
27070 # Check for libraries that X11R6 Xt/Xaw programs need.
27071 ac_save_LDFLAGS=$LDFLAGS
27072 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27073 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27074 # check for ICE first), but we must link in the order -lSM -lICE or
27075 # we get undefined symbols. So assume we have SM if we have ICE.
27076 # These have to be linked with before -lX11, unlike the other
27077 # libraries we check for below, so use a different variable.
27078 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027080$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027081if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027082 $as_echo_n "(cached) " >&6
27083else
27084 ac_check_lib_save_LIBS=$LIBS
27085LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027087/* end confdefs.h. */
27088
27089/* Override any GCC internal prototype to avoid an error.
27090 Use char because int might match the return type of a GCC
27091 builtin and then its argument prototype would still apply. */
27092#ifdef __cplusplus
27093extern "C"
27094#endif
27095char IceConnectionNumber ();
27096int
27097main ()
27098{
27099return IceConnectionNumber ();
27100 ;
27101 return 0;
27102}
27103_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027104if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027105 ac_cv_lib_ICE_IceConnectionNumber=yes
27106else
cristy8b350f62009-11-15 23:12:43 +000027107 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027108fi
cristy8b350f62009-11-15 23:12:43 +000027109rm -f core conftest.err conftest.$ac_objext \
27110 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027111LIBS=$ac_check_lib_save_LIBS
27112fi
cristy8b350f62009-11-15 23:12:43 +000027113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027114$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027115if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027116 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27117fi
27118
27119 LDFLAGS=$ac_save_LDFLAGS
27120
27121fi
27122
27123if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027125$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027127$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027129$as_echo "" >&6; }
27130 LDFLAGS="$LDFLAGS $X_LIBS"
27131 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27132 LIBS="$X11_LIBS $LIBS"
27133 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27134
27135
cristy8b350f62009-11-15 23:12:43 +000027136$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027137
27138 #
27139 # Check for X11 shared memory extension
27140 #
27141 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027142 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027143if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027144 have_shmctl='yes'
27145fi
27146
27147 if test "$have_shmctl" != 'yes'; then
27148 PERSIST_LIBS=$LIBS
27149 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027151/* end confdefs.h. */
27152
27153/* Override any GCC internal prototype to avoid an error.
27154 Use char because int might match the return type of a GCC
27155 builtin and then its argument prototype would still apply. */
27156#ifdef __cplusplus
27157extern "C"
27158#endif
27159char shmctl ();
27160int
27161main ()
27162{
27163return shmctl ();
27164 ;
27165 return 0;
27166}
27167_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027168if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027169 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027170fi
cristy8b350f62009-11-15 23:12:43 +000027171rm -f core conftest.err conftest.$ac_objext \
27172 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027173 LIBS=$PERSIST_LIBS
27174 fi
27175
27176 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027178$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027179if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027180 $as_echo_n "(cached) " >&6
27181else
27182 ac_check_lib_save_LIBS=$LIBS
27183LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027185/* end confdefs.h. */
27186
27187/* Override any GCC internal prototype to avoid an error.
27188 Use char because int might match the return type of a GCC
27189 builtin and then its argument prototype would still apply. */
27190#ifdef __cplusplus
27191extern "C"
27192#endif
27193char XShmAttach ();
27194int
27195main ()
27196{
27197return XShmAttach ();
27198 ;
27199 return 0;
27200}
27201_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027202if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027203 ac_cv_lib_Xext_XShmAttach=yes
27204else
cristy8b350f62009-11-15 23:12:43 +000027205 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027206fi
cristy8b350f62009-11-15 23:12:43 +000027207rm -f core conftest.err conftest.$ac_objext \
27208 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027209LIBS=$ac_check_lib_save_LIBS
27210fi
cristy8b350f62009-11-15 23:12:43 +000027211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027212$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027213if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027214 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027215$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027216
27217fi
27218
27219 fi
27220
27221 #
27222 # Check for X11 shape extension
27223 #
cristy8b350f62009-11-15 23:12:43 +000027224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027225$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027226if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027227 $as_echo_n "(cached) " >&6
27228else
27229 ac_check_lib_save_LIBS=$LIBS
27230LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027232/* end confdefs.h. */
27233
27234/* Override any GCC internal prototype to avoid an error.
27235 Use char because int might match the return type of a GCC
27236 builtin and then its argument prototype would still apply. */
27237#ifdef __cplusplus
27238extern "C"
27239#endif
27240char XShapeCombineMask ();
27241int
27242main ()
27243{
27244return XShapeCombineMask ();
27245 ;
27246 return 0;
27247}
27248_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027249if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027250 ac_cv_lib_Xext_XShapeCombineMask=yes
27251else
cristy8b350f62009-11-15 23:12:43 +000027252 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027253fi
cristy8b350f62009-11-15 23:12:43 +000027254rm -f core conftest.err conftest.$ac_objext \
27255 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027256LIBS=$ac_check_lib_save_LIBS
27257fi
cristy8b350f62009-11-15 23:12:43 +000027258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027259$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027260if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027261 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027262$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027263
27264fi
27265
cristy8b350f62009-11-15 23:12:43 +000027266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027267$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027268if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027269 $as_echo_n "(cached) " >&6
27270else
27271 ac_check_lib_save_LIBS=$LIBS
27272LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027274/* end confdefs.h. */
27275
27276/* Override any GCC internal prototype to avoid an error.
27277 Use char because int might match the return type of a GCC
27278 builtin and then its argument prototype would still apply. */
27279#ifdef __cplusplus
27280extern "C"
27281#endif
27282char XtSetEventDispatcher ();
27283int
27284main ()
27285{
27286return XtSetEventDispatcher ();
27287 ;
27288 return 0;
27289}
27290_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027291if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027292 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27293else
cristy8b350f62009-11-15 23:12:43 +000027294 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027295fi
cristy8b350f62009-11-15 23:12:43 +000027296rm -f core conftest.err conftest.$ac_objext \
27297 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027298LIBS=$ac_check_lib_save_LIBS
27299fi
cristy8b350f62009-11-15 23:12:43 +000027300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027301$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027302if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027303 XT_LIBS='-lXt'
27304fi
27305
27306 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27307fi
27308if test "$no_x" != 'yes'; then
27309 have_x='yes'
27310else
27311 have_x='no'
27312fi
cristy73bd4a52010-10-05 11:24:23 +000027313 if test "$have_x" = 'yes'; then
27314 X11_DELEGATE_TRUE=
27315 X11_DELEGATE_FALSE='#'
27316else
27317 X11_DELEGATE_TRUE='#'
27318 X11_DELEGATE_FALSE=
27319fi
27320
cristy3ed852e2009-09-05 21:47:34 +000027321
27322
27323
27324
27325#
27326# Check for ZLIB
27327#
27328
27329# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027330if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027331 withval=$with_zlib; with_zlib=$withval
27332else
27333 with_zlib='yes'
27334fi
27335
27336
27337if test "$with_zlib" != 'yes'; then
27338 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27339fi
27340
27341have_zlib='no'
27342ZLIB_LIBS=''
27343if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027345$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027347$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027349$as_echo "" >&6; }
27350 ZLIB_LIBS=''
27351 failed=0
27352 passed=0
cristy8b350f62009-11-15 23:12:43 +000027353 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027354if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027355 passed=`expr $passed + 1`
27356else
27357 failed=`expr $failed + 1`
27358fi
27359
27360
cristy8b350f62009-11-15 23:12:43 +000027361 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027362if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027363 passed=`expr $passed + 1`
27364else
27365 failed=`expr $failed + 1`
27366fi
27367
27368
cristy8b350f62009-11-15 23:12:43 +000027369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027370$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027371if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027372 $as_echo_n "(cached) " >&6
27373else
27374 ac_check_lib_save_LIBS=$LIBS
27375LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027377/* end confdefs.h. */
27378
27379/* Override any GCC internal prototype to avoid an error.
27380 Use char because int might match the return type of a GCC
27381 builtin and then its argument prototype would still apply. */
27382#ifdef __cplusplus
27383extern "C"
27384#endif
27385char compress ();
27386int
27387main ()
27388{
27389return compress ();
27390 ;
27391 return 0;
27392}
27393_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027394if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027395 ac_cv_lib_z_compress=yes
27396else
cristy8b350f62009-11-15 23:12:43 +000027397 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027398fi
cristy8b350f62009-11-15 23:12:43 +000027399rm -f core conftest.err conftest.$ac_objext \
27400 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027401LIBS=$ac_check_lib_save_LIBS
27402fi
cristy8b350f62009-11-15 23:12:43 +000027403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027404$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027405if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027406 passed=`expr $passed + 1`
27407else
27408 failed=`expr $failed + 1`
27409fi
27410
cristy8b350f62009-11-15 23:12:43 +000027411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027412$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027413if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027414 $as_echo_n "(cached) " >&6
27415else
27416 ac_check_lib_save_LIBS=$LIBS
27417LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027419/* end confdefs.h. */
27420
27421/* Override any GCC internal prototype to avoid an error.
27422 Use char because int might match the return type of a GCC
27423 builtin and then its argument prototype would still apply. */
27424#ifdef __cplusplus
27425extern "C"
27426#endif
27427char uncompress ();
27428int
27429main ()
27430{
27431return uncompress ();
27432 ;
27433 return 0;
27434}
27435_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027436if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027437 ac_cv_lib_z_uncompress=yes
27438else
cristy8b350f62009-11-15 23:12:43 +000027439 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027440fi
cristy8b350f62009-11-15 23:12:43 +000027441rm -f core conftest.err conftest.$ac_objext \
27442 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027443LIBS=$ac_check_lib_save_LIBS
27444fi
cristy8b350f62009-11-15 23:12:43 +000027445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027446$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027447if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027448 passed=`expr $passed + 1`
27449else
27450 failed=`expr $failed + 1`
27451fi
27452
cristy8b350f62009-11-15 23:12:43 +000027453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027454$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027455if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027456 $as_echo_n "(cached) " >&6
27457else
27458 ac_check_lib_save_LIBS=$LIBS
27459LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027461/* end confdefs.h. */
27462
27463/* Override any GCC internal prototype to avoid an error.
27464 Use char because int might match the return type of a GCC
27465 builtin and then its argument prototype would still apply. */
27466#ifdef __cplusplus
27467extern "C"
27468#endif
27469char deflate ();
27470int
27471main ()
27472{
27473return deflate ();
27474 ;
27475 return 0;
27476}
27477_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027478if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027479 ac_cv_lib_z_deflate=yes
27480else
cristy8b350f62009-11-15 23:12:43 +000027481 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027482fi
cristy8b350f62009-11-15 23:12:43 +000027483rm -f core conftest.err conftest.$ac_objext \
27484 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027485LIBS=$ac_check_lib_save_LIBS
27486fi
cristy8b350f62009-11-15 23:12:43 +000027487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027488$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027489if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027490 passed=`expr $passed + 1`
27491else
27492 failed=`expr $failed + 1`
27493fi
27494
cristy8b350f62009-11-15 23:12:43 +000027495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027496$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027497if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027498 $as_echo_n "(cached) " >&6
27499else
27500 ac_check_lib_save_LIBS=$LIBS
27501LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027503/* end confdefs.h. */
27504
27505/* Override any GCC internal prototype to avoid an error.
27506 Use char because int might match the return type of a GCC
27507 builtin and then its argument prototype would still apply. */
27508#ifdef __cplusplus
27509extern "C"
27510#endif
27511char inflate ();
27512int
27513main ()
27514{
27515return inflate ();
27516 ;
27517 return 0;
27518}
27519_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027520if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027521 ac_cv_lib_z_inflate=yes
27522else
cristy8b350f62009-11-15 23:12:43 +000027523 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027524fi
cristy8b350f62009-11-15 23:12:43 +000027525rm -f core conftest.err conftest.$ac_objext \
27526 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027527LIBS=$ac_check_lib_save_LIBS
27528fi
cristy8b350f62009-11-15 23:12:43 +000027529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027530$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027531if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027532 passed=`expr $passed + 1`
27533else
27534 failed=`expr $failed + 1`
27535fi
27536
cristy8b350f62009-11-15 23:12:43 +000027537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027538$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027539if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027540 $as_echo_n "(cached) " >&6
27541else
27542 ac_check_lib_save_LIBS=$LIBS
27543LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027545/* end confdefs.h. */
27546
27547/* Override any GCC internal prototype to avoid an error.
27548 Use char because int might match the return type of a GCC
27549 builtin and then its argument prototype would still apply. */
27550#ifdef __cplusplus
27551extern "C"
27552#endif
27553char gzseek ();
27554int
27555main ()
27556{
27557return gzseek ();
27558 ;
27559 return 0;
27560}
27561_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027562if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027563 ac_cv_lib_z_gzseek=yes
27564else
cristy8b350f62009-11-15 23:12:43 +000027565 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027566fi
cristy8b350f62009-11-15 23:12:43 +000027567rm -f core conftest.err conftest.$ac_objext \
27568 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027569LIBS=$ac_check_lib_save_LIBS
27570fi
cristy8b350f62009-11-15 23:12:43 +000027571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027572$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027573if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027574 passed=`expr $passed + 1`
27575else
27576 failed=`expr $failed + 1`
27577fi
27578
cristy8b350f62009-11-15 23:12:43 +000027579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027580$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027581if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027582 $as_echo_n "(cached) " >&6
27583else
27584 ac_check_lib_save_LIBS=$LIBS
27585LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027587/* end confdefs.h. */
27588
27589/* Override any GCC internal prototype to avoid an error.
27590 Use char because int might match the return type of a GCC
27591 builtin and then its argument prototype would still apply. */
27592#ifdef __cplusplus
27593extern "C"
27594#endif
27595char gztell ();
27596int
27597main ()
27598{
27599return gztell ();
27600 ;
27601 return 0;
27602}
27603_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027604if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027605 ac_cv_lib_z_gztell=yes
27606else
cristy8b350f62009-11-15 23:12:43 +000027607 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027608fi
cristy8b350f62009-11-15 23:12:43 +000027609rm -f core conftest.err conftest.$ac_objext \
27610 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027611LIBS=$ac_check_lib_save_LIBS
27612fi
cristy8b350f62009-11-15 23:12:43 +000027613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027614$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027615if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027616 passed=`expr $passed + 1`
27617else
27618 failed=`expr $failed + 1`
27619fi
27620
cristy8b350f62009-11-15 23:12:43 +000027621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027622$as_echo_n "checking if ZLIB package is complete... " >&6; }
27623 if test $passed -gt 0; then
27624 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027626$as_echo "no -- some components failed test" >&6; }
27627 have_zlib='no (failed tests)'
27628 else
27629 ZLIB_LIBS='-lz'
27630 LIBS="$ZLIB_LIBS $LIBS"
27631
cristy8b350f62009-11-15 23:12:43 +000027632$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027633
cristy8b350f62009-11-15 23:12:43 +000027634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027635$as_echo "yes" >&6; }
27636 have_zlib='yes'
27637 fi
27638 else
cristy8b350f62009-11-15 23:12:43 +000027639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027640$as_echo "no" >&6; }
27641 fi
27642fi
cristy73bd4a52010-10-05 11:24:23 +000027643 if test "$have_zlib" = 'yes'; then
27644 ZLIB_DELEGATE_TRUE=
27645 ZLIB_DELEGATE_FALSE='#'
27646else
27647 ZLIB_DELEGATE_TRUE='#'
27648 ZLIB_DELEGATE_FALSE=
27649fi
27650
cristy3ed852e2009-09-05 21:47:34 +000027651
27652
27653#
27654# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27655#
27656LIB_DL=''
27657if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027659$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027660if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027661 $as_echo_n "(cached) " >&6
27662else
27663 ac_check_lib_save_LIBS=$LIBS
27664LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027666/* end confdefs.h. */
27667
27668/* Override any GCC internal prototype to avoid an error.
27669 Use char because int might match the return type of a GCC
27670 builtin and then its argument prototype would still apply. */
27671#ifdef __cplusplus
27672extern "C"
27673#endif
27674char dlopen ();
27675int
27676main ()
27677{
27678return dlopen ();
27679 ;
27680 return 0;
27681}
27682_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027683if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027684 ac_cv_lib_dl_dlopen=yes
27685else
cristy8b350f62009-11-15 23:12:43 +000027686 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000027687fi
cristy8b350f62009-11-15 23:12:43 +000027688rm -f core conftest.err conftest.$ac_objext \
27689 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027690LIBS=$ac_check_lib_save_LIBS
27691fi
cristy8b350f62009-11-15 23:12:43 +000027692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027693$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000027694if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027695 LIB_DL='-ldl'
27696fi
27697
27698 LIBS="$LIB_DL $LIBS"
27699fi
27700
27701
27702
27703#
27704# Check for Autotrace delegate library.
27705#
27706
27707# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000027708if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027709 withval=$with_autotrace; with_autotrace=$withval
27710else
27711 with_autotrace='no'
27712fi
27713
27714
27715if test "$with_autotrace" != 'yes'; then
27716 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27717fi
27718
27719have_autotrace='no'
27720AUTOTRACE_CFLAGS=""
27721AUTOTRACE_LIBS=""
27722AUTOTRACE_PKG=""
27723if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027725$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027726
27727pkg_failed=no
27728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27729$as_echo_n "checking for AUTOTRACE... " >&6; }
27730
27731if test -n "$AUTOTRACE_CFLAGS"; then
27732 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27733 elif test -n "$PKG_CONFIG"; then
27734 if test -n "$PKG_CONFIG" && \
27735 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27736 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27737 ac_status=$?
27738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27739 test $ac_status = 0; }; then
27740 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27741else
27742 pkg_failed=yes
27743fi
27744 else
27745 pkg_failed=untried
27746fi
27747if test -n "$AUTOTRACE_LIBS"; then
27748 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27749 elif test -n "$PKG_CONFIG"; then
27750 if test -n "$PKG_CONFIG" && \
27751 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27752 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27753 ac_status=$?
27754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27755 test $ac_status = 0; }; then
27756 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27757else
27758 pkg_failed=yes
27759fi
27760 else
27761 pkg_failed=untried
27762fi
27763
27764
27765
27766if test $pkg_failed = yes; then
27767
27768if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27769 _pkg_short_errors_supported=yes
27770else
27771 _pkg_short_errors_supported=no
27772fi
27773 if test $_pkg_short_errors_supported = yes; then
27774 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27775 else
27776 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27777 fi
27778 # Put the nasty error message in config.log where it belongs
27779 echo "$AUTOTRACE_PKG_ERRORS" >&5
27780
27781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27782$as_echo "no" >&6; }
27783 have_autotrace=no
27784elif test $pkg_failed = untried; then
27785 have_autotrace=no
27786else
27787 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27788 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27790$as_echo "yes" >&6; }
27791 have_autotrace=yes
27792fi
cristy8b350f62009-11-15 23:12:43 +000027793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027794$as_echo "" >&6; }
27795fi
27796
27797if test "$have_autotrace" = 'yes'; then
27798 failed=0
27799
cristy8b350f62009-11-15 23:12:43 +000027800$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027801
27802 if test "$with_modules" = 'no'; then
27803 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27804 fi
27805fi
27806
cristy73bd4a52010-10-05 11:24:23 +000027807 if test "$have_autotrace" = 'yes'; then
27808 AUTOTRACE_DELEGATE_TRUE=
27809 AUTOTRACE_DELEGATE_FALSE='#'
27810else
27811 AUTOTRACE_DELEGATE_TRUE='#'
27812 AUTOTRACE_DELEGATE_FALSE=
27813fi
27814
cristy3ed852e2009-09-05 21:47:34 +000027815
27816
27817
27818
27819#
27820# Check for Display Postscript delegate library.
27821#
27822
27823# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000027824if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027825 withval=$with_dps; with_dps=$withval
27826else
27827 with_dps='yes'
27828fi
27829
27830
27831if test "$with_dps" != 'yes'; then
27832 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27833fi
27834
27835have_dps='no'
27836DPS_LIBS=''
27837if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027839$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027841$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027843$as_echo "" >&6; }
27844 failed=0
27845 passed=0
27846 PERSIST_CPPFLAGS="$CPPFLAGS"
27847 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000027848 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 +000027849if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027850 passed=`expr $passed + 1`
27851else
27852 failed=`expr $failed + 1`
27853fi
27854
27855
27856 # DPS issues:
27857 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
27858 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
27859 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
27860 # ImageMagick itself doesn't use -lXt.
27861 have_libdps='no'
27862 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000027863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027864$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027865if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027866 $as_echo_n "(cached) " >&6
27867else
27868 ac_check_lib_save_LIBS=$LIBS
27869LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027871/* end confdefs.h. */
27872
27873/* Override any GCC internal prototype to avoid an error.
27874 Use char because int might match the return type of a GCC
27875 builtin and then its argument prototype would still apply. */
27876#ifdef __cplusplus
27877extern "C"
27878#endif
27879char DPSInitialize ();
27880int
27881main ()
27882{
27883return DPSInitialize ();
27884 ;
27885 return 0;
27886}
27887_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027888if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027889 ac_cv_lib_dps_DPSInitialize=yes
27890else
cristy8b350f62009-11-15 23:12:43 +000027891 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027892fi
cristy8b350f62009-11-15 23:12:43 +000027893rm -f core conftest.err conftest.$ac_objext \
27894 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027895LIBS=$ac_check_lib_save_LIBS
27896fi
cristy8b350f62009-11-15 23:12:43 +000027897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027898$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027899if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027900 have_libdps='yes'
27901else
27902 have_libdps='no'
27903fi
27904
27905 if test "$have_libdps" != 'yes'; then
27906 # Unset cache variable so we can try again.
27907 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000027908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027909$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027910if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027911 $as_echo_n "(cached) " >&6
27912else
27913 ac_check_lib_save_LIBS=$LIBS
27914LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027916/* end confdefs.h. */
27917
27918/* Override any GCC internal prototype to avoid an error.
27919 Use char because int might match the return type of a GCC
27920 builtin and then its argument prototype would still apply. */
27921#ifdef __cplusplus
27922extern "C"
27923#endif
27924char DPSInitialize ();
27925int
27926main ()
27927{
27928return DPSInitialize ();
27929 ;
27930 return 0;
27931}
27932_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027933if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027934 ac_cv_lib_dps_DPSInitialize=yes
27935else
cristy8b350f62009-11-15 23:12:43 +000027936 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027937fi
cristy8b350f62009-11-15 23:12:43 +000027938rm -f core conftest.err conftest.$ac_objext \
27939 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027940LIBS=$ac_check_lib_save_LIBS
27941fi
cristy8b350f62009-11-15 23:12:43 +000027942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027943$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027944if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027945 have_libdps='yes'
27946else
27947 have_libdps='no'
27948fi
27949
27950 if test "$have_libdps" = 'yes'; then
27951 LIBDPS_XT='-lXt'
27952 fi
27953 fi
27954 if test "$have_libdps" = 'yes'; then
27955 passed=`expr $passed + 1`
27956 else
27957 failed=`expr $failed + 1`
27958 fi
cristy8b350f62009-11-15 23:12:43 +000027959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000027960$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027961if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027962 $as_echo_n "(cached) " >&6
27963else
27964 ac_check_lib_save_LIBS=$LIBS
27965LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027967/* end confdefs.h. */
27968
27969/* Override any GCC internal prototype to avoid an error.
27970 Use char because int might match the return type of a GCC
27971 builtin and then its argument prototype would still apply. */
27972#ifdef __cplusplus
27973extern "C"
27974#endif
27975char XDPSPixelsPerPoint ();
27976int
27977main ()
27978{
27979return XDPSPixelsPerPoint ();
27980 ;
27981 return 0;
27982}
27983_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027984if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027985 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
27986else
cristy8b350f62009-11-15 23:12:43 +000027987 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000027988fi
cristy8b350f62009-11-15 23:12:43 +000027989rm -f core conftest.err conftest.$ac_objext \
27990 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027991LIBS=$ac_check_lib_save_LIBS
27992fi
cristy8b350f62009-11-15 23:12:43 +000027993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000027994$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000027995if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027996 passed=`expr $passed + 1`
27997else
27998 failed=`expr $failed + 1`
27999fi
28000
cristy8b350f62009-11-15 23:12:43 +000028001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028002$as_echo_n "checking if DPS package is complete... " >&6; }
28003 if test $passed -gt 0; then
28004 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028006$as_echo "no -- some components failed test" >&6; }
28007 have_dps='no (failed tests)'
28008 CPPFLAGS="$PERSIST_CPPFLAGS"
28009 else
28010 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28011 LIBS="$DPS_LIBS $LIBS"
28012
cristy8b350f62009-11-15 23:12:43 +000028013$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028014
cristy8b350f62009-11-15 23:12:43 +000028015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028016$as_echo "yes" >&6; }
28017 have_dps='yes'
28018 fi
28019 else
cristy8b350f62009-11-15 23:12:43 +000028020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028021$as_echo "no" >&6; }
28022 CPPFLAGS=$PERSIST_CPPFLAGS
28023 fi
28024fi
cristy73bd4a52010-10-05 11:24:23 +000028025 if test "$have_dps" = 'yes'; then
28026 DPS_DELEGATE_TRUE=
28027 DPS_DELEGATE_FALSE='#'
28028else
28029 DPS_DELEGATE_TRUE='#'
28030 DPS_DELEGATE_FALSE=
28031fi
28032
cristy3ed852e2009-09-05 21:47:34 +000028033
28034
28035
28036#
28037# Check for DJVU delegate library.
28038#
28039
28040# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028041if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028042 withval=$with_djvu; with_djvu=$withval
28043else
28044 with_djvu='yes'
28045fi
28046
28047
28048if test "$with_djvu" != 'yes'; then
28049 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28050fi
28051
28052have_djvu='no'
28053DJVU_LIBS=''
28054if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028056$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028058$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028060$as_echo "" >&6; }
28061 failed=0
28062 passed=0
cristy8b350f62009-11-15 23:12:43 +000028063 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 +000028064if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028065 passed=`expr $passed + 1`
28066else
28067 failed=`expr $failed + 1`
28068fi
28069
28070
cristy8b350f62009-11-15 23:12:43 +000028071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028072$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028073if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028074 $as_echo_n "(cached) " >&6
28075else
28076 ac_check_lib_save_LIBS=$LIBS
28077LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028079/* end confdefs.h. */
28080
28081/* Override any GCC internal prototype to avoid an error.
28082 Use char because int might match the return type of a GCC
28083 builtin and then its argument prototype would still apply. */
28084#ifdef __cplusplus
28085extern "C"
28086#endif
28087char ddjvu_context_create ();
28088int
28089main ()
28090{
28091return ddjvu_context_create ();
28092 ;
28093 return 0;
28094}
28095_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028096if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028097 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28098else
cristy8b350f62009-11-15 23:12:43 +000028099 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028100fi
cristy8b350f62009-11-15 23:12:43 +000028101rm -f core conftest.err conftest.$ac_objext \
28102 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028103LIBS=$ac_check_lib_save_LIBS
28104fi
cristy8b350f62009-11-15 23:12:43 +000028105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028106$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028107if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028108 passed=`expr $passed + 1`
28109else
28110 failed=`expr $failed + 1`
28111fi
28112
cristy8b350f62009-11-15 23:12:43 +000028113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028114$as_echo_n "checking if DJVU package is complete... " >&6; }
28115 if test $passed -gt 0; then
28116 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028118$as_echo "no -- some components failed test" >&6; }
28119 have_djvu='no (failed tests)'
28120 else
28121 DJVU_LIBS='-ldjvulibre'
28122 LIBS="$DJVU_LIBS $LIBS"
28123
cristy8b350f62009-11-15 23:12:43 +000028124$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028125
cristy8b350f62009-11-15 23:12:43 +000028126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028127$as_echo "yes" >&6; }
28128 have_djvu='yes'
28129 fi
28130 else
cristy8b350f62009-11-15 23:12:43 +000028131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028132$as_echo "no" >&6; }
28133 fi
28134fi
cristy73bd4a52010-10-05 11:24:23 +000028135 if test "$have_djvu" = 'yes'; then
28136 DJVU_DELEGATE_TRUE=
28137 DJVU_DELEGATE_FALSE='#'
28138else
28139 DJVU_DELEGATE_TRUE='#'
28140 DJVU_DELEGATE_FALSE=
28141fi
28142
cristy3ed852e2009-09-05 21:47:34 +000028143
28144
28145
28146#
cristy430a7312010-01-21 20:44:04 +000028147# Set DejaVu font directory.
28148#
28149
28150# Check whether --with-dejavu-font-dir was given.
28151if test "${with_dejavu_font_dir+set}" = set; then :
28152 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28153else
28154 with_dejavu_font_dir='default'
28155fi
28156
28157
28158if test "$with_dejavu_font_dir" != 'default'; then
28159 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28160fi
28161
28162
28163#
cristy3ed852e2009-09-05 21:47:34 +000028164# Check for FFTW delegate library.
28165#
28166
28167# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028168if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028169 withval=$with_fftw; with_fftw=$withval
28170else
28171 with_fftw='yes'
28172fi
28173
28174
28175if test "$with_fftw" != 'yes'; then
28176 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28177fi
28178
28179have_fftw='no'
28180FFTW_LIBS=''
28181if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028183$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000028185$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028187$as_echo "" >&6; }
28188 failed=0
28189 passed=0
cristy8b350f62009-11-15 23:12:43 +000028190 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028191if test "x$ac_cv_header_fftw3_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028192 passed=`expr $passed + 1`
28193else
28194 failed=`expr $failed + 1`
28195fi
28196
28197
cristy8b350f62009-11-15 23:12:43 +000028198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000028199$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028200if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028201 $as_echo_n "(cached) " >&6
28202else
28203 ac_check_lib_save_LIBS=$LIBS
28204LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028206/* end confdefs.h. */
28207
28208/* Override any GCC internal prototype to avoid an error.
28209 Use char because int might match the return type of a GCC
28210 builtin and then its argument prototype would still apply. */
28211#ifdef __cplusplus
28212extern "C"
28213#endif
28214char fftw_execute ();
28215int
28216main ()
28217{
28218return fftw_execute ();
28219 ;
28220 return 0;
28221}
28222_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028223if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028224 ac_cv_lib_fftw3_fftw_execute=yes
28225else
cristy8b350f62009-11-15 23:12:43 +000028226 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000028227fi
cristy8b350f62009-11-15 23:12:43 +000028228rm -f core conftest.err conftest.$ac_objext \
28229 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028230LIBS=$ac_check_lib_save_LIBS
28231fi
cristy8b350f62009-11-15 23:12:43 +000028232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000028233$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristyda16f162011-02-19 23:52:17 +000028234if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028235 passed=`expr $passed + 1`
28236else
28237 failed=`expr $failed + 1`
28238fi
28239
cristy8b350f62009-11-15 23:12:43 +000028240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028241$as_echo_n "checking if FFTW package is complete... " >&6; }
28242 if test $passed -gt 0; then
28243 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028245$as_echo "no -- some components failed test" >&6; }
28246 have_fftw='no (failed tests)'
28247 else
28248 FFTW_LIBS='-lfftw3'
28249 LIBS="$FFTW_LIBS $LIBS"
28250
cristy8b350f62009-11-15 23:12:43 +000028251$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028252
cristy8b350f62009-11-15 23:12:43 +000028253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028254$as_echo "yes" >&6; }
28255 have_fftw='yes'
28256 fi
28257 else
cristy8b350f62009-11-15 23:12:43 +000028258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028259$as_echo "no" >&6; }
28260 fi
28261fi
cristy73bd4a52010-10-05 11:24:23 +000028262 if test "$have_fftw" = 'yes'; then
28263 FFTW_DELEGATE_TRUE=
28264 FFTW_DELEGATE_FALSE='#'
28265else
28266 FFTW_DELEGATE_TRUE='#'
28267 FFTW_DELEGATE_FALSE=
28268fi
28269
cristy3ed852e2009-09-05 21:47:34 +000028270
28271
28272
28273#
28274# Check for FlashPIX delegate library.
28275#
28276
28277# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028278if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028279 withval=$with_fpx; with_fpx=$withval
28280else
28281 with_fpx='yes'
28282fi
28283
28284
28285if test "$with_fpx" != 'yes'; then
28286 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28287fi
28288
28289have_fpx='no'
28290FPX_LIBS=''
28291if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028293$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028295$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028297$as_echo "" >&6; }
28298 failed=0
28299 passed=0
28300 ac_ext=cpp
28301ac_cpp='$CXXCPP $CPPFLAGS'
28302ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28303ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28304ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28305
28306
cristy8b350f62009-11-15 23:12:43 +000028307ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028308if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028309 passed=`expr $passed + 1`
28310else
28311 failed=`expr $failed + 1`
28312fi
28313
28314
cristy8b350f62009-11-15 23:12:43 +000028315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028316$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028317if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028318 $as_echo_n "(cached) " >&6
28319else
28320 ac_check_lib_save_LIBS=$LIBS
28321LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028323/* end confdefs.h. */
28324
28325/* Override any GCC internal prototype to avoid an error.
28326 Use char because int might match the return type of a GCC
28327 builtin and then its argument prototype would still apply. */
28328#ifdef __cplusplus
28329extern "C"
28330#endif
28331char FPX_OpenImageByFilename ();
28332int
28333main ()
28334{
28335return FPX_OpenImageByFilename ();
28336 ;
28337 return 0;
28338}
28339_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028340if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028341 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28342else
cristy8b350f62009-11-15 23:12:43 +000028343 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028344fi
cristy8b350f62009-11-15 23:12:43 +000028345rm -f core conftest.err conftest.$ac_objext \
28346 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028347LIBS=$ac_check_lib_save_LIBS
28348fi
cristy8b350f62009-11-15 23:12:43 +000028349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028350$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028351if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028352 passed=`expr $passed + 1`
28353else
28354 failed=`expr $failed + 1`
28355fi
28356
28357 ac_ext=c
28358ac_cpp='$CPP $CPPFLAGS'
28359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28361ac_compiler_gnu=$ac_cv_c_compiler_gnu
28362
cristy8b350f62009-11-15 23:12:43 +000028363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028364$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28365 if test $passed -gt 0; then
28366 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028368$as_echo "no -- some components failed test" >&6; }
28369 have_fpx='no (failed tests)'
28370 else
28371 FPX_LIBS='-lfpx'
28372
cristy8b350f62009-11-15 23:12:43 +000028373$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028374
cristy8b350f62009-11-15 23:12:43 +000028375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028376$as_echo "yes" >&6; }
28377 have_fpx='yes'
28378 PERLMAINCC="$CXX"
28379 fi
28380 else
cristy8b350f62009-11-15 23:12:43 +000028381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028382$as_echo "no" >&6; }
28383 fi
28384fi
cristy73bd4a52010-10-05 11:24:23 +000028385 if test "$have_fpx" = 'yes'; then
28386 FPX_DELEGATE_TRUE=
28387 FPX_DELEGATE_FALSE='#'
28388else
28389 FPX_DELEGATE_TRUE='#'
28390 FPX_DELEGATE_FALSE=
28391fi
28392
cristy3ed852e2009-09-05 21:47:34 +000028393
28394
28395
28396#
28397# Check for fontconfig delegate library.
28398#
28399
28400# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028401if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028402 withval=$with_fontconfig; with_fontconfig=$withval
28403else
28404 with_fontconfig=$have_x
28405fi
28406
28407
28408if test "$with_fontconfig" != 'yes'; then
28409 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28410fi
28411
28412have_fontconfig='no'
28413FONTCONFIG_CFLAGS=""
28414FONTCONFIG_LIBS=""
28415FONTCONFIG_PKG=""
28416if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028418$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028419
28420pkg_failed=no
28421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28422$as_echo_n "checking for FONTCONFIG... " >&6; }
28423
28424if test -n "$FONTCONFIG_CFLAGS"; then
28425 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28426 elif test -n "$PKG_CONFIG"; then
28427 if test -n "$PKG_CONFIG" && \
28428 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28429 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28430 ac_status=$?
28431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28432 test $ac_status = 0; }; then
28433 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28434else
28435 pkg_failed=yes
28436fi
28437 else
28438 pkg_failed=untried
28439fi
28440if test -n "$FONTCONFIG_LIBS"; then
28441 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28442 elif test -n "$PKG_CONFIG"; then
28443 if test -n "$PKG_CONFIG" && \
28444 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28445 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28446 ac_status=$?
28447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28448 test $ac_status = 0; }; then
28449 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28450else
28451 pkg_failed=yes
28452fi
28453 else
28454 pkg_failed=untried
28455fi
28456
28457
28458
28459if test $pkg_failed = yes; then
28460
28461if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28462 _pkg_short_errors_supported=yes
28463else
28464 _pkg_short_errors_supported=no
28465fi
28466 if test $_pkg_short_errors_supported = yes; then
28467 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28468 else
28469 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28470 fi
28471 # Put the nasty error message in config.log where it belongs
28472 echo "$FONTCONFIG_PKG_ERRORS" >&5
28473
28474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28475$as_echo "no" >&6; }
28476 have_fontconfig=no
28477elif test $pkg_failed = untried; then
28478 have_fontconfig=no
28479else
28480 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28481 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28483$as_echo "yes" >&6; }
28484 have_fontconfig=yes
28485fi
cristy8b350f62009-11-15 23:12:43 +000028486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028487$as_echo "" >&6; }
28488fi
28489
28490if test "$have_fontconfig" = 'yes'; then
28491
cristy8b350f62009-11-15 23:12:43 +000028492$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028493
cristyd09bcf92010-03-25 03:04:45 +000028494 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028495 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028496 fi
cristy3ed852e2009-09-05 21:47:34 +000028497fi
28498
cristy73bd4a52010-10-05 11:24:23 +000028499 if test "$have_fontconfig" = 'yes'; then
28500 FONTCONFIG_DELEGATE_TRUE=
28501 FONTCONFIG_DELEGATE_FALSE='#'
28502else
28503 FONTCONFIG_DELEGATE_TRUE='#'
28504 FONTCONFIG_DELEGATE_FALSE=
28505fi
28506
cristy3ed852e2009-09-05 21:47:34 +000028507
28508
28509
28510
28511#
28512# Check for freetype delegate library.
28513#
28514
28515# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028516if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028517 withval=$with_freetype; with_freetype=$withval
28518else
28519 with_freetype='yes'
28520fi
28521
28522
28523
28524if test "$with_freetype" != 'yes'; then
28525 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28526fi
28527
28528have_freetype='no'
28529FREETYPE_LIBS=''
28530if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028532$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000028534$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028536$as_echo "" >&6; }
28537 failed=0
28538 passed=0
cristy66291112009-10-03 22:44:36 +000028539 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028540 PERSIST_CPPFLAGS="$CPPFLAGS"
28541 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
28542 :
28543 else
28544 freetype_config=''
28545 for ac_prog in freetype-config
28546do
28547 # Extract the first word of "$ac_prog", so it can be a program name with args.
28548set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028550$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028551if ${ac_cv_prog_freetype_config+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028552 $as_echo_n "(cached) " >&6
28553else
28554 if test -n "$freetype_config"; then
28555 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
28556else
28557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28558for as_dir in $PATH
28559do
28560 IFS=$as_save_IFS
28561 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028562 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28564 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000028565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028566 break 2
28567 fi
28568done
cristy8b350f62009-11-15 23:12:43 +000028569 done
cristy3ed852e2009-09-05 21:47:34 +000028570IFS=$as_save_IFS
28571
28572fi
28573fi
28574freetype_config=$ac_cv_prog_freetype_config
28575if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000028576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000028577$as_echo "$freetype_config" >&6; }
28578else
cristy8b350f62009-11-15 23:12:43 +000028579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028580$as_echo "no" >&6; }
28581fi
28582
28583
28584 test -n "$freetype_config" && break
28585done
28586 if test -n "$freetype_config"; then
28587 freetype_cflags=`$freetype_config --cflags`
28588 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000028589 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000028590 CPPFLAGS="$freetype_cflags $CPPFLAGS"
28591 fi
28592 fi
28593
28594 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000028595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000028596$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028597if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028598 $as_echo_n "(cached) " >&6
28599else
28600 ac_check_lib_save_LIBS=$LIBS
28601LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028603/* end confdefs.h. */
28604
28605/* Override any GCC internal prototype to avoid an error.
28606 Use char because int might match the return type of a GCC
28607 builtin and then its argument prototype would still apply. */
28608#ifdef __cplusplus
28609extern "C"
28610#endif
28611char FT_Init_FreeType ();
28612int
28613main ()
28614{
28615return FT_Init_FreeType ();
28616 ;
28617 return 0;
28618}
28619_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028620if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028621 ac_cv_lib_freetype_FT_Init_FreeType=yes
28622else
cristy8b350f62009-11-15 23:12:43 +000028623 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000028624fi
cristy8b350f62009-11-15 23:12:43 +000028625rm -f core conftest.err conftest.$ac_objext \
28626 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028627LIBS=$ac_check_lib_save_LIBS
28628fi
cristy8b350f62009-11-15 23:12:43 +000028629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000028630$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristyda16f162011-02-19 23:52:17 +000028631if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028632 FREETYPE_LIBS='-lfreetype'
28633fi
28634
28635 if test "$FREETYPE_LIBS" != ''; then
28636 passed=`expr $passed + 1`
28637 else
28638 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000028639 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028640 fi
28641 fi
28642
cristy8b350f62009-11-15 23:12:43 +000028643 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028644if test "x$ac_cv_header_ft2build_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028645 FT2BUILD_H='#include <ft2build.h>'
28646else
28647 ft2build=''
28648fi
28649
28650
cristy8b350f62009-11-15 23:12:43 +000028651 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28652"
cristyda16f162011-02-19 23:52:17 +000028653if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028654 have_freetype_h='yes'
28655else
28656 have_freetype_h='no'
28657fi
28658
28659
28660 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
28661 passed=`expr $passed + 1`
28662 else
28663 failed=`expr $failed + 1`
28664 CPPFLAGS="$PERSIST_CPPFLAGS"
28665 fi
28666
cristy8b350f62009-11-15 23:12:43 +000028667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028668$as_echo_n "checking if FreeType package is complete... " >&6; }
28669 if test $passed -gt 0; then
28670 if test $failed -gt 0; then
28671 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000028672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028673$as_echo "no -- some components failed test" >&6; }
28674 have_freetype='no (failed tests)'
28675 else
28676 LIBS="$FREETYPE_LIBS $LIBS"
28677
cristy8b350f62009-11-15 23:12:43 +000028678$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028679
28680 if test "$ac_cv_header_ft2build_h" = 'yes'; then
28681
cristy8b350f62009-11-15 23:12:43 +000028682$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028683
28684 fi
cristy8b350f62009-11-15 23:12:43 +000028685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028686$as_echo "yes" >&6; }
28687 have_freetype='yes'
28688 fi
28689 else
cristy8b350f62009-11-15 23:12:43 +000028690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028691$as_echo "no" >&6; }
28692 fi
28693fi
cristy73bd4a52010-10-05 11:24:23 +000028694 if test "$have_freetype" = 'yes'; then
28695 FREETYPE_DELEGATE_TRUE=
28696 FREETYPE_DELEGATE_FALSE='#'
28697else
28698 FREETYPE_DELEGATE_TRUE='#'
28699 FREETYPE_DELEGATE_FALSE=
28700fi
28701
cristy3ed852e2009-09-05 21:47:34 +000028702
28703
28704
28705
28706#
28707# Check for Ghostscript library or framework.
28708#
28709# Test for iapi.h & test for gsapi_new_instance in -lgs
28710# or -framework Ghostscript
28711
28712
28713# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000028714if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028715 withval=$with_gslib; with_gslib=$withval
28716else
28717 with_gslib='no'
28718fi
28719
28720
cristyb7931f12009-09-25 10:22:21 +000028721gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000028722if test "$with_gslib" != 'yes'; then
28723 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28724fi
28725
28726have_gslib='no'
28727GS_LIBS=''
28728if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028730$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000028732$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028734$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000028735 framework=0
cristy3ed852e2009-09-05 21:47:34 +000028736 failed=0
28737 passed=0
cristy8b350f62009-11-15 23:12:43 +000028738 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 +000028739if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028740 passed=`expr $passed + 1`
28741else
28742 failed=`expr $failed + 1`
28743fi
28744
28745
cristy8b350f62009-11-15 23:12:43 +000028746 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 +000028747if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028748 passed=`expr $passed + 1`
28749else
28750 failed=`expr $failed + 1`
28751fi
28752
28753
cristy73bd4a52010-10-05 11:24:23 +000028754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28755$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028756if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028757 $as_echo_n "(cached) " >&6
28758else
28759 ac_check_framework_save_LIBS=$LIBS
28760LIBS="-framework Ghostscript $LIBS"
28761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28762/* end confdefs.h. */
28763
28764/* Override any GCC internal prototype to avoid an error.
28765 Use char because int might match the return type of a GCC
28766 builtin and then its argument prototype would still apply. */
28767#ifdef __cplusplus
28768extern "C"
28769#endif
28770char gsapi_new_instance ();
28771int
28772main ()
28773{
28774return gsapi_new_instance ();
28775 ;
28776 return 0;
28777}
28778_ACEOF
28779if ac_fn_c_try_link "$LINENO"; then :
28780 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28781else
28782 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28783fi
28784rm -f core conftest.err conftest.$ac_objext \
28785 conftest$ac_exeext conftest.$ac_ext
28786LIBS=$ac_check_framework_save_LIBS
28787fi
28788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28789$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28790if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28791 framework=`expr $framework + 1`
28792else
28793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028794$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028795if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028796 $as_echo_n "(cached) " >&6
28797else
28798 ac_check_lib_save_LIBS=$LIBS
28799LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028801/* end confdefs.h. */
28802
28803/* Override any GCC internal prototype to avoid an error.
28804 Use char because int might match the return type of a GCC
28805 builtin and then its argument prototype would still apply. */
28806#ifdef __cplusplus
28807extern "C"
28808#endif
28809char gsapi_new_instance ();
28810int
28811main ()
28812{
28813return gsapi_new_instance ();
28814 ;
28815 return 0;
28816}
28817_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028818if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028819 ac_cv_lib_gs_gsapi_new_instance=yes
28820else
cristy8b350f62009-11-15 23:12:43 +000028821 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000028822fi
cristy8b350f62009-11-15 23:12:43 +000028823rm -f core conftest.err conftest.$ac_objext \
28824 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028825LIBS=$ac_check_lib_save_LIBS
28826fi
cristy8b350f62009-11-15 23:12:43 +000028827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000028828$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000028829if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028830 passed=`expr $passed + 1`
28831else
28832 failed=`expr $failed + 1`
28833fi
cristy73bd4a52010-10-05 11:24:23 +000028834
28835fi
cristy8b350f62009-11-15 23:12:43 +000028836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028837$as_echo_n "checking if Ghostscript package is complete... " >&6; }
28838 if test $passed -gt 0; then
28839 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028841$as_echo "no -- some components failed test" >&6; }
28842 have_gslib='no (failed tests)'
28843 else
28844 if test $framework -gt 0; then
28845 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000028846 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000028847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000028848$as_echo "yes, using framework." >&6; }
28849 else
cristy8b350f62009-11-15 23:12:43 +000028850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000028851$as_echo "yes, using library." >&6; }
28852 GS_LIBS='-lgs'
28853 fi
28854 LIBS="$GS_LIBS $LIBS"
28855
cristy8b350f62009-11-15 23:12:43 +000028856$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028857
28858 have_gslib='yes'
28859 fi
28860 else
cristy8b350f62009-11-15 23:12:43 +000028861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028862$as_echo "no" >&6; }
28863 fi
28864fi
cristy73bd4a52010-10-05 11:24:23 +000028865 if test "$have_gslib" = 'yes'; then
28866 GS_DELEGATE_TRUE=
28867 GS_DELEGATE_FALSE='#'
28868else
28869 GS_DELEGATE_TRUE='#'
28870 GS_DELEGATE_FALSE=
28871fi
28872
cristy3ed852e2009-09-05 21:47:34 +000028873
28874
28875# Set default font search path
28876
28877# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000028878if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028879 withval=$with_fontpath; with_fontpath=$withval
28880else
28881 with_fontpath=''
28882fi
28883
28884
28885if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
28886 with_fontpath=''
28887else
28888
28889cat >>confdefs.h <<_ACEOF
28890#define MAGICK_FONT_PATH "$with_fontpath"
28891_ACEOF
28892
28893fi
28894if test "$with_fontpath=" != ''; then
28895 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
28896fi
28897
28898# Set Ghostscript font directory
28899
28900# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028901if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028902 withval=$with_gs_font_dir; with_gs_font_dir=$withval
28903else
28904 with_gs_font_dir='default'
28905fi
28906
28907
28908if test "$with_gs_font_dir" != 'default'; then
28909 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
28910fi
28911
28912
28913#
28914# Check for GVC delegate library.
28915#
28916
28917# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000028918if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028919 withval=$with_gvc; with_gvc=$withval
28920else
28921 with_gvc='yes'
28922fi
28923
28924
28925if test "$with_gvc" != 'yes'; then
28926 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
28927fi
28928
28929GVC_PKG=""
28930if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028932$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028933
28934pkg_failed=no
28935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
28936$as_echo_n "checking for GVC... " >&6; }
28937
28938if test -n "$GVC_CFLAGS"; then
28939 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
28940 elif test -n "$PKG_CONFIG"; then
28941 if test -n "$PKG_CONFIG" && \
28942 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28943 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28944 ac_status=$?
28945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28946 test $ac_status = 0; }; then
28947 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
28948else
28949 pkg_failed=yes
28950fi
28951 else
28952 pkg_failed=untried
28953fi
28954if test -n "$GVC_LIBS"; then
28955 pkg_cv_GVC_LIBS="$GVC_LIBS"
28956 elif test -n "$PKG_CONFIG"; then
28957 if test -n "$PKG_CONFIG" && \
28958 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28959 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28960 ac_status=$?
28961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28962 test $ac_status = 0; }; then
28963 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
28964else
28965 pkg_failed=yes
28966fi
28967 else
28968 pkg_failed=untried
28969fi
28970
28971
28972
28973if test $pkg_failed = yes; then
28974
28975if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28976 _pkg_short_errors_supported=yes
28977else
28978 _pkg_short_errors_supported=no
28979fi
28980 if test $_pkg_short_errors_supported = yes; then
28981 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
28982 else
28983 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
28984 fi
28985 # Put the nasty error message in config.log where it belongs
28986 echo "$GVC_PKG_ERRORS" >&5
28987
28988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28989$as_echo "no" >&6; }
28990 have_gvc=no
28991elif test $pkg_failed = untried; then
28992 have_gvc=no
28993else
28994 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
28995 GVC_LIBS=$pkg_cv_GVC_LIBS
28996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28997$as_echo "yes" >&6; }
28998 have_gvc=yes
28999fi
cristy8b350f62009-11-15 23:12:43 +000029000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029001$as_echo "" >&6; }
29002fi
29003
29004if test "$have_gvc" = 'yes'; then
29005
cristy8b350f62009-11-15 23:12:43 +000029006$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029007
29008 if test "$with_modules" = 'no'; then
29009 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29010 fi
29011fi
29012
cristy73bd4a52010-10-05 11:24:23 +000029013 if test "$have_gvc" = 'yes'; then
29014 GVC_DELEGATE_TRUE=
29015 GVC_DELEGATE_FALSE='#'
29016else
29017 GVC_DELEGATE_TRUE='#'
29018 GVC_DELEGATE_FALSE=
29019fi
29020
cristy3ed852e2009-09-05 21:47:34 +000029021
29022
29023
29024
29025#
29026# Check for JBIG delegate library.
29027#
29028
29029
29030# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029031if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029032 withval=$with_jbig; with_jbig=$withval
29033else
29034 with_jbig='yes'
29035fi
29036
29037
29038have_jbig='no'
29039JBIG_LIBS=''
29040if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029042$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029044$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029046$as_echo "" >&6; }
29047 failed=0
29048 passed=0
cristy8b350f62009-11-15 23:12:43 +000029049 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029050if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029051 passed=`expr $passed + 1`
29052else
29053 failed=`expr $failed + 1`
29054fi
29055
29056
cristy8b350f62009-11-15 23:12:43 +000029057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029058$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029059if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029060 $as_echo_n "(cached) " >&6
29061else
29062 ac_check_lib_save_LIBS=$LIBS
29063LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029065/* end confdefs.h. */
29066
29067/* Override any GCC internal prototype to avoid an error.
29068 Use char because int might match the return type of a GCC
29069 builtin and then its argument prototype would still apply. */
29070#ifdef __cplusplus
29071extern "C"
29072#endif
29073char jbg_dec_init ();
29074int
29075main ()
29076{
29077return jbg_dec_init ();
29078 ;
29079 return 0;
29080}
29081_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029082if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029083 ac_cv_lib_jbig_jbg_dec_init=yes
29084else
cristy8b350f62009-11-15 23:12:43 +000029085 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029086fi
cristy8b350f62009-11-15 23:12:43 +000029087rm -f core conftest.err conftest.$ac_objext \
29088 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029089LIBS=$ac_check_lib_save_LIBS
29090fi
cristy8b350f62009-11-15 23:12:43 +000029091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029092$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029093if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029094 passed=`expr $passed + 1`
29095else
29096 failed=`expr $failed + 1`
29097fi
29098
cristy8b350f62009-11-15 23:12:43 +000029099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029100$as_echo_n "checking if JBIG package is complete... " >&6; }
29101 if test $passed -gt 0; then
29102 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029104$as_echo "no -- some components failed test" >&6; }
29105 have_jbig='no (failed tests)'
29106 else
29107 JBIG_LIBS='-ljbig'
29108 LIBS="$JBIG_LIBS $LIBS"
29109
cristy8b350f62009-11-15 23:12:43 +000029110$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029111
cristy8b350f62009-11-15 23:12:43 +000029112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029113$as_echo "yes" >&6; }
29114 have_jbig='yes'
29115 fi
29116 else
cristy8b350f62009-11-15 23:12:43 +000029117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029118$as_echo "no" >&6; }
29119 fi
29120fi
cristy73bd4a52010-10-05 11:24:23 +000029121 if test "$have_jbig" = 'yes'; then
29122 JBIG_DELEGATE_TRUE=
29123 JBIG_DELEGATE_FALSE='#'
29124else
29125 JBIG_DELEGATE_TRUE='#'
29126 JBIG_DELEGATE_FALSE=
29127fi
29128
cristy3ed852e2009-09-05 21:47:34 +000029129
29130
29131
29132#
29133# Check for JPEG delegate library.
29134#
29135
29136# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029137if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029138 withval=$with_jpeg; with_jpeg=$withval
29139else
29140 with_jpeg='yes'
29141fi
29142
29143
29144if test "$with_jpeg" != 'yes'; then
29145 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29146fi
29147
29148have_jpeg='no'
29149JPEG_LIBS=''
29150if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029152$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029154$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029156$as_echo "" >&6; }
29157 failed=0
29158 passed=0
cristy8b350f62009-11-15 23:12:43 +000029159 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029160if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029161 passed=`expr $passed + 1`
29162else
29163 failed=`expr $failed + 1`
29164fi
29165
29166
cristy8b350f62009-11-15 23:12:43 +000029167 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029168if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029169 passed=`expr $passed + 1`
29170else
29171 failed=`expr $failed + 1`
29172fi
29173
29174
cristy8b350f62009-11-15 23:12:43 +000029175 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029176if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029177 passed=`expr $passed + 1`
29178else
29179 failed=`expr $failed + 1`
29180fi
29181
29182
cristy8b350f62009-11-15 23:12:43 +000029183 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029184if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029185 passed=`expr $passed + 1`
29186else
29187 failed=`expr $failed + 1`
29188fi
29189
29190
cristy8b350f62009-11-15 23:12:43 +000029191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029192$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029193if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029194 $as_echo_n "(cached) " >&6
29195else
29196 ac_check_lib_save_LIBS=$LIBS
29197LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029199/* end confdefs.h. */
29200
29201/* Override any GCC internal prototype to avoid an error.
29202 Use char because int might match the return type of a GCC
29203 builtin and then its argument prototype would still apply. */
29204#ifdef __cplusplus
29205extern "C"
29206#endif
29207char jpeg_read_header ();
29208int
29209main ()
29210{
29211return jpeg_read_header ();
29212 ;
29213 return 0;
29214}
29215_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029216if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029217 ac_cv_lib_jpeg_jpeg_read_header=yes
29218else
cristy8b350f62009-11-15 23:12:43 +000029219 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029220fi
cristy8b350f62009-11-15 23:12:43 +000029221rm -f core conftest.err conftest.$ac_objext \
29222 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029223LIBS=$ac_check_lib_save_LIBS
29224fi
cristy8b350f62009-11-15 23:12:43 +000029225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029226$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029227if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029228 passed=`expr $passed + 1`
29229else
29230 failed=`expr $failed + 1`
29231fi
29232
29233
29234# Test for compatible JPEG library
29235if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029237$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029238if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029239 $as_echo_n "(cached) " >&6
29240else
cristy8b350f62009-11-15 23:12:43 +000029241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029242/* end confdefs.h. */
29243#include <stdio.h>
29244#include <stdlib.h>
29245#include <jpeglib.h>
29246
29247int
29248main ()
29249{
29250
29251#if JPEG_LIB_VERSION < 62
29252#error IJG JPEG library must be version 6b or newer!
29253#endif
29254return 0;
29255
29256 ;
29257 return 0;
29258}
29259_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029260if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029261 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29262else
cristy8b350f62009-11-15 23:12:43 +000029263 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029264fi
cristy3ed852e2009-09-05 21:47:34 +000029265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29266fi
cristy8b350f62009-11-15 23:12:43 +000029267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029268$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29269fi
cristy8b350f62009-11-15 23:12:43 +000029270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029271$as_echo_n "checking if JPEG package is complete... " >&6; }
29272 if test $passed -gt 0; then
29273 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029275$as_echo "no -- some components failed test" >&6; }
29276 have_jpeg='no (failed tests)'
29277 else
29278 JPEG_LIBS='-ljpeg'
29279 LIBS="$JPEG_LIBS $LIBS"
29280
cristy8b350f62009-11-15 23:12:43 +000029281$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029282
cristy8b350f62009-11-15 23:12:43 +000029283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029284$as_echo "yes" >&6; }
29285 have_jpeg='yes'
29286 fi
29287 else
cristy8b350f62009-11-15 23:12:43 +000029288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029289$as_echo "no" >&6; }
29290 fi
29291fi
cristy73bd4a52010-10-05 11:24:23 +000029292 if test "$have_jpeg" = 'yes'; then
29293 JPEG_DELEGATE_TRUE=
29294 JPEG_DELEGATE_FALSE='#'
29295else
29296 JPEG_DELEGATE_TRUE='#'
29297 JPEG_DELEGATE_FALSE=
29298fi
29299
cristy3ed852e2009-09-05 21:47:34 +000029300
29301
29302
29303#
29304# Check for JPEG Version 2 delegate library.
29305#
29306
29307# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029308if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029309 withval=$with_jp2; with_jp2=$withval
29310else
29311 with_jp2='yes'
29312fi
29313
29314
29315if test "$with_jp2" != 'yes'; then
29316 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29317fi
29318
29319have_jp2='no'
29320JP2_LIBS=''
29321if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029323$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029325$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029327$as_echo "" >&6; }
29328 failed=0
29329 passed=0
cristy8b350f62009-11-15 23:12:43 +000029330 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 +000029331if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029332 passed=`expr $passed + 1`
29333else
29334 failed=`expr $failed + 1`
29335fi
29336
29337
cristy8b350f62009-11-15 23:12:43 +000029338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029339$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029340if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029341 $as_echo_n "(cached) " >&6
29342else
29343 ac_check_lib_save_LIBS=$LIBS
29344LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029346/* end confdefs.h. */
29347
29348/* Override any GCC internal prototype to avoid an error.
29349 Use char because int might match the return type of a GCC
29350 builtin and then its argument prototype would still apply. */
29351#ifdef __cplusplus
29352extern "C"
29353#endif
29354char jas_stream_fopen ();
29355int
29356main ()
29357{
29358return jas_stream_fopen ();
29359 ;
29360 return 0;
29361}
29362_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029363if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029364 ac_cv_lib_jasper_jas_stream_fopen=yes
29365else
cristy8b350f62009-11-15 23:12:43 +000029366 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029367fi
cristy8b350f62009-11-15 23:12:43 +000029368rm -f core conftest.err conftest.$ac_objext \
29369 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029370LIBS=$ac_check_lib_save_LIBS
29371fi
cristy8b350f62009-11-15 23:12:43 +000029372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029373$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029374if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029375 passed=`expr $passed + 1`
29376else
29377 failed=`expr $failed + 1`
29378fi
29379
cristy8b350f62009-11-15 23:12:43 +000029380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029381$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29382 if test $passed -gt 0; then
29383 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029385$as_echo "no -- some components failed test" >&6; }
29386 have_jp2='no (failed tests)'
29387 else
29388 JP2_LIBS='-ljasper'
29389 LIBS="$JP2_LIBS $LIBS"
29390
cristy8b350f62009-11-15 23:12:43 +000029391$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029392
cristy8b350f62009-11-15 23:12:43 +000029393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029394$as_echo "yes" >&6; }
29395 have_jp2='yes'
29396 fi
29397 else
cristy8b350f62009-11-15 23:12:43 +000029398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029399$as_echo "no" >&6; }
29400 fi
29401fi
cristy73bd4a52010-10-05 11:24:23 +000029402 if test "$have_jp2" = 'yes'; then
29403 JP2_DELEGATE_TRUE=
29404 JP2_DELEGATE_FALSE='#'
29405else
29406 JP2_DELEGATE_TRUE='#'
29407 JP2_DELEGATE_FALSE=
29408fi
29409
cristy3ed852e2009-09-05 21:47:34 +000029410
29411
29412
29413#
29414# Check for LCMS delegate library.
29415#
cristy71203402010-06-18 13:12:03 +000029416# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029417
29418# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029419if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029420 withval=$with_lcms; with_lcms=$withval
29421else
29422 with_lcms='yes'
29423fi
29424
cristy71203402010-06-18 13:12:03 +000029425if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029426 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29427fi
29428
cristy71203402010-06-18 13:12:03 +000029429# Disable LCMS2.
29430
29431# Check whether --with-lcms2 was given.
29432if test "${with_lcms2+set}" = set; then :
29433 withval=$with_lcms2; with_lcms2=$withval
29434else
29435 with_lcms2='yes'
29436fi
29437
29438if test "$with_lcms2" != 'yes' ; then
29439 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29440fi
29441
29442have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029443LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029444if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029446$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29448$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029450$as_echo "" >&6; }
29451 failed=0
29452 passed=0
29453 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029454
29455 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029456 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029457if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029458 have_lcms_header='yes'
29459fi
29460
29461
29462 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029463
29464$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29465
cristy71203402010-06-18 13:12:03 +000029466 passed=`expr $passed + 1`
29467 fi
29468
29469 # Check for <lcms2/lcms2.h)
29470 if test "$have_lcms_header" != 'yes'; then
29471 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 +000029472if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029473 have_lcms_header='yes'
29474fi
29475
29476
cristy71203402010-06-18 13:12:03 +000029477 if test "$have_lcms_header" = 'yes'; then
29478 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029479
cristy71203402010-06-18 13:12:03 +000029480$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029481
cristy71203402010-06-18 13:12:03 +000029482 fi
cristyd09bcf92010-03-25 03:04:45 +000029483 fi
cristy71203402010-06-18 13:12:03 +000029484
29485 # Failed to find lcms header?
29486 if test "$have_lcms_header" != 'yes'; then
29487 failed=`expr $failed + 1`
29488 fi
29489
29490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29491$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029492if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029493 $as_echo_n "(cached) " >&6
29494else
29495 ac_check_lib_save_LIBS=$LIBS
29496LIBS="-llcms2 $LIBS"
29497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29498/* end confdefs.h. */
29499
29500/* Override any GCC internal prototype to avoid an error.
29501 Use char because int might match the return type of a GCC
29502 builtin and then its argument prototype would still apply. */
29503#ifdef __cplusplus
29504extern "C"
29505#endif
cristy71203402010-06-18 13:12:03 +000029506char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029507int
29508main ()
29509{
cristy71203402010-06-18 13:12:03 +000029510return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029511 ;
29512 return 0;
29513}
29514_ACEOF
29515if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029516 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029517else
cristy71203402010-06-18 13:12:03 +000029518 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029519fi
29520rm -f core conftest.err conftest.$ac_objext \
29521 conftest$ac_exeext conftest.$ac_ext
29522LIBS=$ac_check_lib_save_LIBS
29523fi
cristy71203402010-06-18 13:12:03 +000029524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29525$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029526if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029527 passed=`expr $passed + 1`
29528else
29529 failed=`expr $failed + 1`
29530fi
29531
cristy71203402010-06-18 13:12:03 +000029532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29533$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029534 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029535 if test $failed -gt 0; then
29536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000029537$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029538 have_lcms2='no (failed tests)'
29539 else
29540 LCMS_LIBS='-llcms2'
29541 LIBS="$LCMS_LIBS $LIBS"
29542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000029543$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029544 have_lcms2='yes'
29545 fi
cristyd09bcf92010-03-25 03:04:45 +000029546 else
cristy71203402010-06-18 13:12:03 +000029547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000029548$as_echo "no" >&6; }
29549 fi
29550fi
29551
cristy71203402010-06-18 13:12:03 +000029552#
29553# Check for LCMS v1 (1.11 or later)
29554#
29555if test $have_lcms2 = 'yes'; then
29556 with_lcms='no'
29557fi
29558
29559have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029560if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000029561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29562$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29564$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29566$as_echo "" >&6; }
29567 failed=0
29568 passed=0
29569 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029570
29571 # Check for <lcms.h>
29572 if test "$have_lcms_header" != 'yes'; then
29573 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029574if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029575 have_lcms_header='yes'
29576fi
29577
29578
cristy71203402010-06-18 13:12:03 +000029579 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029580 passed=`expr $passed + 1`
29581
cristy8b350f62009-11-15 23:12:43 +000029582$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029583
cristy71203402010-06-18 13:12:03 +000029584 fi
29585 fi
29586
29587 # Check for <lcms/lcms.h>
29588 if test "$have_lcms_header" != 'yes'; then
29589 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 +000029590if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029591 have_lcms_header='yes'
29592fi
29593
29594
cristy71203402010-06-18 13:12:03 +000029595 if test "$have_lcms_header" = 'yes'; then
29596 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029597
cristy8b350f62009-11-15 23:12:43 +000029598$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029599
cristy71203402010-06-18 13:12:03 +000029600 fi
cristy3ed852e2009-09-05 21:47:34 +000029601 fi
cristy71203402010-06-18 13:12:03 +000029602
29603 # Failed to find lcms header?
29604 if test "$have_lcms_header" != 'yes'; then
29605 failed=`expr $failed + 1`
29606 fi
29607
29608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29609$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029610if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029611 $as_echo_n "(cached) " >&6
29612else
29613 ac_check_lib_save_LIBS=$LIBS
29614LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029616/* end confdefs.h. */
29617
29618/* Override any GCC internal prototype to avoid an error.
29619 Use char because int might match the return type of a GCC
29620 builtin and then its argument prototype would still apply. */
29621#ifdef __cplusplus
29622extern "C"
29623#endif
cristy71203402010-06-18 13:12:03 +000029624char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029625int
29626main ()
29627{
cristy71203402010-06-18 13:12:03 +000029628return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029629 ;
29630 return 0;
29631}
29632_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029633if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029634 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029635else
cristy71203402010-06-18 13:12:03 +000029636 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029637fi
cristy8b350f62009-11-15 23:12:43 +000029638rm -f core conftest.err conftest.$ac_objext \
29639 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029640LIBS=$ac_check_lib_save_LIBS
29641fi
cristy71203402010-06-18 13:12:03 +000029642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29643$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029644if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029645 passed=`expr $passed + 1`
29646else
29647 failed=`expr $failed + 1`
29648fi
29649
cristy8b350f62009-11-15 23:12:43 +000029650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029651$as_echo_n "checking if LCMS package is complete... " >&6; }
29652 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029653 if test $failed -gt 0; then
29654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029655$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029656 have_lcms='no (failed tests)'
29657 else
29658 LCMS_LIBS='-llcms'
29659 LIBS="$LCMS_LIBS $LIBS"
29660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029661$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029662 have_lcms='yes'
29663 fi
cristy3ed852e2009-09-05 21:47:34 +000029664 else
cristy71203402010-06-18 13:12:03 +000029665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029666$as_echo "no" >&6; }
29667 fi
29668fi
cristy71203402010-06-18 13:12:03 +000029669
cristy73bd4a52010-10-05 11:24:23 +000029670 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29671 LCMS_DELEGATE_TRUE=
29672 LCMS_DELEGATE_FALSE='#'
29673else
29674 LCMS_DELEGATE_TRUE='#'
29675 LCMS_DELEGATE_FALSE=
29676fi
29677
cristy71203402010-06-18 13:12:03 +000029678if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29679
29680$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29681
29682fi
29683
cristy3ed852e2009-09-05 21:47:34 +000029684
29685
29686
29687#
29688# Check for the LQR (Liquid Rescale) delegate library.
29689#
29690
29691# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029692if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029693 withval=$with_lqr; with_lqr=$withval
29694else
29695 with_lqr='yes'
29696fi
29697
29698
29699if test "$with_lqr" != 'yes'; then
29700 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29701fi
29702
29703have_lqr='no'
29704LQR_CFLAGS=""
29705LQR_LIBS=""
29706LQR_PKG=""
29707if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029709$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029710
29711pkg_failed=no
29712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29713$as_echo_n "checking for LQR... " >&6; }
29714
29715if test -n "$LQR_CFLAGS"; then
29716 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29717 elif test -n "$PKG_CONFIG"; then
29718 if test -n "$PKG_CONFIG" && \
29719 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29720 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29721 ac_status=$?
29722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29723 test $ac_status = 0; }; then
29724 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29725else
29726 pkg_failed=yes
29727fi
29728 else
29729 pkg_failed=untried
29730fi
29731if test -n "$LQR_LIBS"; then
29732 pkg_cv_LQR_LIBS="$LQR_LIBS"
29733 elif test -n "$PKG_CONFIG"; then
29734 if test -n "$PKG_CONFIG" && \
29735 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29736 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29737 ac_status=$?
29738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29739 test $ac_status = 0; }; then
29740 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29741else
29742 pkg_failed=yes
29743fi
29744 else
29745 pkg_failed=untried
29746fi
29747
29748
29749
29750if test $pkg_failed = yes; then
29751
29752if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29753 _pkg_short_errors_supported=yes
29754else
29755 _pkg_short_errors_supported=no
29756fi
29757 if test $_pkg_short_errors_supported = yes; then
29758 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29759 else
29760 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29761 fi
29762 # Put the nasty error message in config.log where it belongs
29763 echo "$LQR_PKG_ERRORS" >&5
29764
29765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29766$as_echo "no" >&6; }
29767 have_lqr=no
29768elif test $pkg_failed = untried; then
29769 have_lqr=no
29770else
29771 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29772 LQR_LIBS=$pkg_cv_LQR_LIBS
29773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29774$as_echo "yes" >&6; }
29775 have_lqr=yes
29776fi
cristy8b350f62009-11-15 23:12:43 +000029777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029778$as_echo "" >&6; }
29779fi
29780
29781if test "$have_lqr" = 'yes'; then
29782
cristy8b350f62009-11-15 23:12:43 +000029783$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029784
29785 CFLAGS="$LQR_CFLAGS $CFLAGS"
29786fi
29787
cristy73bd4a52010-10-05 11:24:23 +000029788 if test "$have_lqr" = 'yes'; then
29789 LQR_DELEGATE_TRUE=
29790 LQR_DELEGATE_FALSE='#'
29791else
29792 LQR_DELEGATE_TRUE='#'
29793 LQR_DELEGATE_FALSE=
29794fi
29795
cristy3ed852e2009-09-05 21:47:34 +000029796
29797
29798
29799
cristyfbb0ef02010-12-19 02:32:11 +000029800# Disable LZMA (lzma library)
29801
29802# Check whether --with-lzma was given.
29803if test "${with_lzma+set}" = set; then :
29804 withval=$with_lzma; with_lzma=$withval
29805else
29806 with_lzma='yes'
29807fi
29808
29809if test "$with_lzma" != 'yes' ; then
29810 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29811fi
29812
29813#
29814# Check for LZMA
29815#
29816have_lzma='no'
29817LZMA_LIBS=''
29818if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
29819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29820$as_echo "-------------------------------------------------------------" >&6; }
29821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
29822$as_echo_n "checking for LZMA... " >&6; }
29823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29824$as_echo "" >&6; }
29825 failed=0
29826 passed=0
29827 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029828if test "x$ac_cv_header_lzma_h" = xyes; then :
cristyfbb0ef02010-12-19 02:32:11 +000029829 passed=`expr $passed + 1`
29830else
29831 failed=`expr $failed + 1`
29832fi
29833
29834
29835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
29836$as_echo_n "checking for lzma_code in -llzma... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029837if ${ac_cv_lib_lzma_lzma_code+:} false; then :
cristyfbb0ef02010-12-19 02:32:11 +000029838 $as_echo_n "(cached) " >&6
29839else
29840 ac_check_lib_save_LIBS=$LIBS
29841LIBS="-llzma $LIBS"
29842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29843/* end confdefs.h. */
29844
29845/* Override any GCC internal prototype to avoid an error.
29846 Use char because int might match the return type of a GCC
29847 builtin and then its argument prototype would still apply. */
29848#ifdef __cplusplus
29849extern "C"
29850#endif
29851char lzma_code ();
29852int
29853main ()
29854{
29855return lzma_code ();
29856 ;
29857 return 0;
29858}
29859_ACEOF
29860if ac_fn_c_try_link "$LINENO"; then :
29861 ac_cv_lib_lzma_lzma_code=yes
29862else
29863 ac_cv_lib_lzma_lzma_code=no
29864fi
29865rm -f core conftest.err conftest.$ac_objext \
29866 conftest$ac_exeext conftest.$ac_ext
29867LIBS=$ac_check_lib_save_LIBS
29868fi
29869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
29870$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
cristyda16f162011-02-19 23:52:17 +000029871if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
cristyfbb0ef02010-12-19 02:32:11 +000029872 passed=`expr $passed + 1`
29873else
29874 failed=`expr $failed + 1`
29875fi
29876
29877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
29878$as_echo_n "checking if LZMA package is complete... " >&6; }
29879 if test $passed -gt 0; then
29880 if test $failed -gt 0; then
29881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29882$as_echo "no -- some components failed test" >&6; }
29883 have_lzma='no (failed tests)'
29884 else
29885 LZMA_LIBS='-llzma'
29886 LIBS="$LZMA_LIBS $LIBS"
29887
29888$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
29889
29890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29891$as_echo "yes" >&6; }
29892 have_lzma='yes'
29893 fi
29894 else
29895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29896$as_echo "no" >&6; }
29897 fi
29898fi
29899 if test "$have_lzma" = 'yes'; then
29900 LZMA_DELEGATE_TRUE=
29901 LZMA_DELEGATE_FALSE='#'
29902else
29903 LZMA_DELEGATE_TRUE='#'
29904 LZMA_DELEGATE_FALSE=
29905fi
29906
29907
29908
29909
cristy3ed852e2009-09-05 21:47:34 +000029910#
29911# Check for the OpenEXR delegate library.
29912#
29913
29914# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000029915if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029916 withval=$with_openexr; with_openexr=$withval
29917else
29918 with_openexr='yes'
29919fi
29920
29921
29922if test "$with_openexr" != 'yes'; then
29923 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
29924fi
29925
29926have_openexr='no'
29927OPENEXR_CFLAGS=""
29928OPENEXR_LIBS=""
29929OPENEXR_PKG=""
29930if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029932$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029933
29934pkg_failed=no
29935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
29936$as_echo_n "checking for OPENEXR... " >&6; }
29937
29938if test -n "$OPENEXR_CFLAGS"; then
29939 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
29940 elif test -n "$PKG_CONFIG"; then
29941 if test -n "$PKG_CONFIG" && \
29942 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29943 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29944 ac_status=$?
29945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29946 test $ac_status = 0; }; then
29947 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
29948else
29949 pkg_failed=yes
29950fi
29951 else
29952 pkg_failed=untried
29953fi
29954if test -n "$OPENEXR_LIBS"; then
29955 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
29956 elif test -n "$PKG_CONFIG"; then
29957 if test -n "$PKG_CONFIG" && \
29958 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29959 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29960 ac_status=$?
29961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29962 test $ac_status = 0; }; then
29963 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
29964else
29965 pkg_failed=yes
29966fi
29967 else
29968 pkg_failed=untried
29969fi
29970
29971
29972
29973if test $pkg_failed = yes; then
29974
29975if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29976 _pkg_short_errors_supported=yes
29977else
29978 _pkg_short_errors_supported=no
29979fi
29980 if test $_pkg_short_errors_supported = yes; then
29981 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
29982 else
29983 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
29984 fi
29985 # Put the nasty error message in config.log where it belongs
29986 echo "$OPENEXR_PKG_ERRORS" >&5
29987
29988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29989$as_echo "no" >&6; }
29990 have_openexr=no
29991elif test $pkg_failed = untried; then
29992 have_openexr=no
29993else
29994 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
29995 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
29996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29997$as_echo "yes" >&6; }
29998 have_openexr=yes
29999fi
cristy8b350f62009-11-15 23:12:43 +000030000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030001$as_echo "" >&6; }
30002fi
30003
30004if test "$have_openexr" = 'yes'; then
30005
cristy8b350f62009-11-15 23:12:43 +000030006$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030007
30008 if test "$with_modules" = 'no'; then
30009 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30010 fi
30011fi
30012
cristy73bd4a52010-10-05 11:24:23 +000030013 if test "$have_openexr" = 'yes'; then
30014 OPENEXR_DELEGATE_TRUE=
30015 OPENEXR_DELEGATE_FALSE='#'
30016else
30017 OPENEXR_DELEGATE_TRUE='#'
30018 OPENEXR_DELEGATE_FALSE=
30019fi
30020
cristy3ed852e2009-09-05 21:47:34 +000030021
30022
30023
30024
30025#
30026# Check for PNG delegate library.
30027#
30028
30029# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030030if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030031 withval=$with_png; with_png=$withval
30032else
30033 with_png='yes'
30034fi
30035
30036
30037if test "$with_png" != 'yes'; then
30038 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30039fi
30040
30041have_png='no'
30042PNG_LIBS=''
cristy64877302011-08-23 19:10:31 +000030043
cristy50d3f5c2011-09-10 20:09:06 +000030044if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy64877302011-08-23 19:10:31 +000030045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030046$as_echo "-------------------------------------------------------------" >&6; }
cristy64877302011-08-23 19:10:31 +000030047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30048$as_echo_n "checking for PNG support ... " >&6; }
30049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030050$as_echo "" >&6; }
cristy64877302011-08-23 19:10:31 +000030051 failed=0
30052 passed=0
30053 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030054if test "x$ac_cv_header_png_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030055 passed=`expr $passed + 1`
30056else
30057 failed=`expr $failed + 1`
30058fi
30059
30060
cristy64877302011-08-23 19:10:31 +000030061
30062 if test $passed -gt 0; then
30063 for var in 5 4 2 '' ; do
cristy64877302011-08-23 19:10:31 +000030064 if test "$have_png" == 'no' ; then
cristy50d3f5c2011-09-10 20:09:06 +000030065 if test "x${var}" == 'x' ; then
30066 pnglib='png'
30067 else
30068 pnglib="png1${var}"
30069 fi
cristy64877302011-08-23 19:10:31 +000030070
30071# Test for compatible LIBPNG library
30072 failed=0
30073 passed=0
30074 if test "$with_png" == 'yes' -o "$with_png" == "libpng1${var}" ; then
30075 if test "${pnglib}" != 'png' ; then
30076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30077$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30079/* end confdefs.h. */
30080#include <stdio.h>
30081#include <stdlib.h>
30082#include <png.h>
30083
30084int
30085main ()
30086{
30087
30088#if PNG_LIBPNG_VER_MINOR != ${var}
30089#error LIBPNG library must be version 1${var}!
30090Kaboom, Kaboom
30091#endif
30092return 0;
30093
30094 ;
30095 return 0;
30096}
30097_ACEOF
30098if ac_fn_c_try_compile "$LINENO"; then :
30099 ac_cv_libpng_ok='yes'
30100else
30101 ac_cv_libpng_ok='no'
30102fi
30103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30104 if test "$ac_cv_libpng_ok" = 'yes' ; then
30105 passed=`expr $passed + 1`
30106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30107$as_echo "yes" >&6; }
30108 else
30109 failed=`expr $failed + 1`
30110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30111$as_echo "no" >&6; }
30112 fi
30113 else
30114 passed=`expr $passed + 1`
30115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30116$as_echo "yes" >&6; }
30117 fi
30118 fi
30119
cristy47f21b02011-08-24 18:40:43 +000030120 if test $passed -gt 0 -a $failed -le 0; then
cristy64877302011-08-23 19:10:31 +000030121 if test "1${var}" = '15' ; then
30122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30123$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30124if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30125 $as_echo_n "(cached) " >&6
30126else
30127 ac_check_lib_save_LIBS=$LIBS
30128LIBS="-lpng15 $LIBS"
30129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30130/* end confdefs.h. */
30131
30132/* Override any GCC internal prototype to avoid an error.
30133 Use char because int might match the return type of a GCC
30134 builtin and then its argument prototype would still apply. */
30135#ifdef __cplusplus
30136extern "C"
30137#endif
30138char png_get_io_ptr ();
30139int
30140main ()
30141{
30142return png_get_io_ptr ();
30143 ;
30144 return 0;
30145}
30146_ACEOF
30147if ac_fn_c_try_link "$LINENO"; then :
30148 ac_cv_lib_png15_png_get_io_ptr=yes
30149else
30150 ac_cv_lib_png15_png_get_io_ptr=no
30151fi
30152rm -f core conftest.err conftest.$ac_objext \
30153 conftest$ac_exeext conftest.$ac_ext
30154LIBS=$ac_check_lib_save_LIBS
30155fi
30156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30157$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30158if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30159 passed=`expr $passed + 1`
30160else
30161 failed=`expr $failed + 1`
30162fi
30163
30164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30165$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30166if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30167 $as_echo_n "(cached) " >&6
30168else
30169 ac_check_lib_save_LIBS=$LIBS
30170LIBS="-lpng15 $LIBS"
30171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30172/* end confdefs.h. */
30173
30174/* Override any GCC internal prototype to avoid an error.
30175 Use char because int might match the return type of a GCC
30176 builtin and then its argument prototype would still apply. */
30177#ifdef __cplusplus
30178extern "C"
30179#endif
30180char png_longjmp ();
30181int
30182main ()
30183{
30184return png_longjmp ();
30185 ;
30186 return 0;
30187}
30188_ACEOF
30189if ac_fn_c_try_link "$LINENO"; then :
30190 ac_cv_lib_png15_png_longjmp=yes
30191else
30192 ac_cv_lib_png15_png_longjmp=no
30193fi
30194rm -f core conftest.err conftest.$ac_objext \
30195 conftest$ac_exeext conftest.$ac_ext
30196LIBS=$ac_check_lib_save_LIBS
30197fi
30198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30199$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30200if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30201 passed=`expr $passed + 1`
30202else
30203 failed=`expr $failed + 1`
30204fi
30205
30206 fi
30207 if test "1${var}" = '14' ; then
30208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30209$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30210if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30211 $as_echo_n "(cached) " >&6
30212else
30213 ac_check_lib_save_LIBS=$LIBS
30214LIBS="-lpng14 $LIBS"
30215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30216/* end confdefs.h. */
30217
30218/* Override any GCC internal prototype to avoid an error.
30219 Use char because int might match the return type of a GCC
30220 builtin and then its argument prototype would still apply. */
30221#ifdef __cplusplus
30222extern "C"
30223#endif
30224char png_get_io_ptr ();
30225int
30226main ()
30227{
30228return png_get_io_ptr ();
30229 ;
30230 return 0;
30231}
30232_ACEOF
30233if ac_fn_c_try_link "$LINENO"; then :
30234 ac_cv_lib_png14_png_get_io_ptr=yes
30235else
30236 ac_cv_lib_png14_png_get_io_ptr=no
30237fi
30238rm -f core conftest.err conftest.$ac_objext \
30239 conftest$ac_exeext conftest.$ac_ext
30240LIBS=$ac_check_lib_save_LIBS
30241fi
30242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30243$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30244if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30245 passed=`expr $passed + 1`
30246else
30247 failed=`expr $failed + 1`
30248fi
30249
30250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30251$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30252if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30253 $as_echo_n "(cached) " >&6
30254else
30255 ac_check_lib_save_LIBS=$LIBS
30256LIBS="-lpng14 $LIBS"
30257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30258/* end confdefs.h. */
30259
30260/* Override any GCC internal prototype to avoid an error.
30261 Use char because int might match the return type of a GCC
30262 builtin and then its argument prototype would still apply. */
30263#ifdef __cplusplus
30264extern "C"
30265#endif
30266char png_get_io_state ();
30267int
30268main ()
30269{
30270return png_get_io_state ();
30271 ;
30272 return 0;
30273}
30274_ACEOF
30275if ac_fn_c_try_link "$LINENO"; then :
30276 ac_cv_lib_png14_png_get_io_state=yes
30277else
30278 ac_cv_lib_png14_png_get_io_state=no
30279fi
30280rm -f core conftest.err conftest.$ac_objext \
30281 conftest$ac_exeext conftest.$ac_ext
30282LIBS=$ac_check_lib_save_LIBS
30283fi
30284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30285$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30286if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30287 passed=`expr $passed + 1`
30288else
30289 failed=`expr $failed + 1`
30290fi
30291
30292 fi
30293 if test "1${var}" = '12' ; then
30294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30295$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30296if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30297 $as_echo_n "(cached) " >&6
30298else
30299 ac_check_lib_save_LIBS=$LIBS
30300LIBS="-lpng12 $LIBS"
30301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30302/* end confdefs.h. */
30303
30304/* Override any GCC internal prototype to avoid an error.
30305 Use char because int might match the return type of a GCC
30306 builtin and then its argument prototype would still apply. */
30307#ifdef __cplusplus
30308extern "C"
30309#endif
30310char png_get_io_ptr ();
30311int
30312main ()
30313{
30314return png_get_io_ptr ();
30315 ;
30316 return 0;
30317}
30318_ACEOF
30319if ac_fn_c_try_link "$LINENO"; then :
30320 ac_cv_lib_png12_png_get_io_ptr=yes
30321else
30322 ac_cv_lib_png12_png_get_io_ptr=no
30323fi
30324rm -f core conftest.err conftest.$ac_objext \
30325 conftest$ac_exeext conftest.$ac_ext
30326LIBS=$ac_check_lib_save_LIBS
30327fi
30328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30329$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30330if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30331 passed=`expr $passed + 1`
30332else
30333 failed=`expr $failed + 1`
30334fi
30335
30336 fi
30337 if test "1${var}" = '1' ; then
30338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000030339$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030340if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030341 $as_echo_n "(cached) " >&6
30342else
30343 ac_check_lib_save_LIBS=$LIBS
30344LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030346/* end confdefs.h. */
30347
30348/* Override any GCC internal prototype to avoid an error.
30349 Use char because int might match the return type of a GCC
30350 builtin and then its argument prototype would still apply. */
30351#ifdef __cplusplus
30352extern "C"
30353#endif
30354char png_get_io_ptr ();
30355int
30356main ()
30357{
30358return png_get_io_ptr ();
30359 ;
30360 return 0;
30361}
30362_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030363if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030364 ac_cv_lib_png_png_get_io_ptr=yes
30365else
cristy8b350f62009-11-15 23:12:43 +000030366 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000030367fi
cristy8b350f62009-11-15 23:12:43 +000030368rm -f core conftest.err conftest.$ac_objext \
30369 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030370LIBS=$ac_check_lib_save_LIBS
30371fi
cristy8b350f62009-11-15 23:12:43 +000030372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000030373$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristyda16f162011-02-19 23:52:17 +000030374if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030375 passed=`expr $passed + 1`
30376else
30377 failed=`expr $failed + 1`
30378fi
30379
cristy64877302011-08-23 19:10:31 +000030380 fi
30381 if test $passed -gt 0 -a $failed -le 0 ; then
30382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30383$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30384 if test $passed -gt 0 ; then
30385 if test $failed -gt 0 ; then
cristy50d3f5c2011-09-10 20:09:06 +000030386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000030387$as_echo "no -- some components failed test" >&6; }
cristy50d3f5c2011-09-10 20:09:06 +000030388 have_png='no (failed tests)'
cristy64877302011-08-23 19:10:31 +000030389 else
cristy50d3f5c2011-09-10 20:09:06 +000030390 PNG_LIBS="-l${pnglib}"
30391 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030392
cristy8b350f62009-11-15 23:12:43 +000030393$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030394
cristy50d3f5c2011-09-10 20:09:06 +000030395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030396$as_echo "yes" >&6; }
cristy50d3f5c2011-09-10 20:09:06 +000030397 have_png='yes'
cristy64877302011-08-23 19:10:31 +000030398 fi
30399 fi
30400 fi
cristy3ed852e2009-09-05 21:47:34 +000030401 fi
cristy64877302011-08-23 19:10:31 +000030402 fi
30403 done
30404 fi
cristy3ed852e2009-09-05 21:47:34 +000030405fi
cristy64877302011-08-23 19:10:31 +000030406
cristy73bd4a52010-10-05 11:24:23 +000030407 if test "$have_png" = 'yes'; then
30408 PNG_DELEGATE_TRUE=
30409 PNG_DELEGATE_FALSE='#'
30410else
30411 PNG_DELEGATE_TRUE='#'
30412 PNG_DELEGATE_FALSE=
30413fi
30414
cristy3ed852e2009-09-05 21:47:34 +000030415
cristy50d3f5c2011-09-10 20:09:06 +000030416
cristy3ed852e2009-09-05 21:47:34 +000030417
30418
30419#
30420# Check for RSVG delegate library.
30421#
30422
30423# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030424if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030425 withval=$with_rsvg; with_rsvg=$withval
30426else
30427 with_rsvg=$have_x
30428fi
30429
30430
30431if test "$with_rsvg" != 'yes'; then
30432 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30433fi
30434
30435have_rsvg='no'
30436have_cairo='no'
30437RSVG_CFLAGS=""
30438RSVG_LIBS=""
30439RSVG_PKG=""
30440if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000030441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030442$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030443
30444pkg_failed=no
30445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30446$as_echo_n "checking for RSVG... " >&6; }
30447
30448if test -n "$RSVG_CFLAGS"; then
30449 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30450 elif test -n "$PKG_CONFIG"; then
30451 if test -n "$PKG_CONFIG" && \
30452 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30453 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30454 ac_status=$?
30455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30456 test $ac_status = 0; }; then
30457 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30458else
30459 pkg_failed=yes
30460fi
30461 else
30462 pkg_failed=untried
30463fi
30464if test -n "$RSVG_LIBS"; then
30465 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30466 elif test -n "$PKG_CONFIG"; then
30467 if test -n "$PKG_CONFIG" && \
30468 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30469 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30470 ac_status=$?
30471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30472 test $ac_status = 0; }; then
30473 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30474else
30475 pkg_failed=yes
30476fi
30477 else
30478 pkg_failed=untried
30479fi
30480
30481
30482
30483if test $pkg_failed = yes; then
30484
30485if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30486 _pkg_short_errors_supported=yes
30487else
30488 _pkg_short_errors_supported=no
30489fi
30490 if test $_pkg_short_errors_supported = yes; then
30491 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30492 else
30493 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30494 fi
30495 # Put the nasty error message in config.log where it belongs
30496 echo "$RSVG_PKG_ERRORS" >&5
30497
30498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30499$as_echo "no" >&6; }
30500 have_rsvg=no
30501elif test $pkg_failed = untried; then
30502 have_rsvg=no
30503else
30504 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30505 RSVG_LIBS=$pkg_cv_RSVG_LIBS
30506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30507$as_echo "yes" >&6; }
30508 have_rsvg=yes
30509fi
cristy8b350f62009-11-15 23:12:43 +000030510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030511$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030512
30513pkg_failed=no
30514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30515$as_echo_n "checking for CAIRO_SVG... " >&6; }
30516
30517if test -n "$CAIRO_SVG_CFLAGS"; then
30518 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30519 elif test -n "$PKG_CONFIG"; then
30520 if test -n "$PKG_CONFIG" && \
30521 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30522 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30523 ac_status=$?
30524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30525 test $ac_status = 0; }; then
30526 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30527else
30528 pkg_failed=yes
30529fi
30530 else
30531 pkg_failed=untried
30532fi
30533if test -n "$CAIRO_SVG_LIBS"; then
30534 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30535 elif test -n "$PKG_CONFIG"; then
30536 if test -n "$PKG_CONFIG" && \
30537 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30538 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30539 ac_status=$?
30540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30541 test $ac_status = 0; }; then
30542 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30543else
30544 pkg_failed=yes
30545fi
30546 else
30547 pkg_failed=untried
30548fi
30549
30550
30551
30552if test $pkg_failed = yes; then
30553
30554if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30555 _pkg_short_errors_supported=yes
30556else
30557 _pkg_short_errors_supported=no
30558fi
30559 if test $_pkg_short_errors_supported = yes; then
30560 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
30561 else
30562 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
30563 fi
30564 # Put the nasty error message in config.log where it belongs
30565 echo "$CAIRO_SVG_PKG_ERRORS" >&5
30566
30567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30568$as_echo "no" >&6; }
30569 have_cairo=no
30570elif test $pkg_failed = untried; then
30571 have_cairo=no
30572else
30573 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
30574 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
30575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30576$as_echo "yes" >&6; }
30577 have_cairo=yes
30578fi
cristy8b350f62009-11-15 23:12:43 +000030579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030580$as_echo "" >&6; }
30581fi
30582
30583if test "$have_rsvg" = 'yes'; then
30584
cristy8b350f62009-11-15 23:12:43 +000030585$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030586
30587 if test "$with_modules" = 'no'; then
30588 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
30589 fi
30590fi
30591
30592if test "$have_cairo" = 'yes'; then
30593
cristy8b350f62009-11-15 23:12:43 +000030594$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030595
30596 if test "$with_modules" = 'no'; then
30597 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
30598 fi
30599fi
30600
cristy73bd4a52010-10-05 11:24:23 +000030601 if test "$have_rsvg" = 'yes'; then
30602 RSVG_DELEGATE_TRUE=
30603 RSVG_DELEGATE_FALSE='#'
30604else
30605 RSVG_DELEGATE_TRUE='#'
30606 RSVG_DELEGATE_FALSE=
30607fi
30608
30609 if test "$have_cairo" = 'yes'; then
30610 CAIRO_DELEGATE_TRUE=
30611 CAIRO_DELEGATE_FALSE='#'
30612else
30613 CAIRO_DELEGATE_TRUE='#'
30614 CAIRO_DELEGATE_FALSE=
30615fi
30616
cristy3ed852e2009-09-05 21:47:34 +000030617
30618
30619
30620
30621#
30622# Check for TIFF delegate library.
30623#
30624
30625# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000030626if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030627 withval=$with_tiff; with_tiff=$withval
30628else
30629 with_tiff='yes'
30630fi
30631
30632
30633if test "$with_tiff" != 'yes'; then
30634 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
30635fi
30636
30637have_tiff='no'
30638TIFF_LIBS=''
30639if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030641$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000030643$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030645$as_echo "" >&6; }
30646 failed=0
30647 passed=0
cristy8b350f62009-11-15 23:12:43 +000030648 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030649if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030650 passed=`expr $passed + 1`
30651else
30652 failed=`expr $failed + 1`
30653fi
30654
30655
cristy8b350f62009-11-15 23:12:43 +000030656 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030657if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030658 passed=`expr $passed + 1`
30659else
30660 failed=`expr $failed + 1`
30661fi
30662
30663
cristy8b350f62009-11-15 23:12:43 +000030664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030665$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030666if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030667 $as_echo_n "(cached) " >&6
30668else
30669 ac_check_lib_save_LIBS=$LIBS
30670LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030672/* end confdefs.h. */
30673
30674/* Override any GCC internal prototype to avoid an error.
30675 Use char because int might match the return type of a GCC
30676 builtin and then its argument prototype would still apply. */
30677#ifdef __cplusplus
30678extern "C"
30679#endif
30680char TIFFOpen ();
30681int
30682main ()
30683{
30684return TIFFOpen ();
30685 ;
30686 return 0;
30687}
30688_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030689if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030690 ac_cv_lib_tiff_TIFFOpen=yes
30691else
cristy8b350f62009-11-15 23:12:43 +000030692 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000030693fi
cristy8b350f62009-11-15 23:12:43 +000030694rm -f core conftest.err conftest.$ac_objext \
30695 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030696LIBS=$ac_check_lib_save_LIBS
30697fi
cristy8b350f62009-11-15 23:12:43 +000030698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030699$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030700if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030701 passed=`expr $passed + 1`
30702else
30703 failed=`expr $failed + 1`
30704fi
30705
cristy8b350f62009-11-15 23:12:43 +000030706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030707$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030708if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030709 $as_echo_n "(cached) " >&6
30710else
30711 ac_check_lib_save_LIBS=$LIBS
30712LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030714/* end confdefs.h. */
30715
30716/* Override any GCC internal prototype to avoid an error.
30717 Use char because int might match the return type of a GCC
30718 builtin and then its argument prototype would still apply. */
30719#ifdef __cplusplus
30720extern "C"
30721#endif
30722char TIFFClientOpen ();
30723int
30724main ()
30725{
30726return TIFFClientOpen ();
30727 ;
30728 return 0;
30729}
30730_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030731if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030732 ac_cv_lib_tiff_TIFFClientOpen=yes
30733else
cristy8b350f62009-11-15 23:12:43 +000030734 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000030735fi
cristy8b350f62009-11-15 23:12:43 +000030736rm -f core conftest.err conftest.$ac_objext \
30737 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030738LIBS=$ac_check_lib_save_LIBS
30739fi
cristy8b350f62009-11-15 23:12:43 +000030740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030741$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030742if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030743 passed=`expr $passed + 1`
30744else
30745 failed=`expr $failed + 1`
30746fi
30747
cristyb97f1002010-07-26 14:02:57 +000030748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
30749$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030750if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
cristyb97f1002010-07-26 14:02:57 +000030751 $as_echo_n "(cached) " >&6
30752else
30753 ac_check_lib_save_LIBS=$LIBS
30754LIBS="-ltiff $LIBS"
30755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30756/* end confdefs.h. */
30757
30758/* Override any GCC internal prototype to avoid an error.
30759 Use char because int might match the return type of a GCC
30760 builtin and then its argument prototype would still apply. */
30761#ifdef __cplusplus
30762extern "C"
30763#endif
30764char TIFFIsBigEndian ();
30765int
30766main ()
30767{
30768return TIFFIsBigEndian ();
30769 ;
30770 return 0;
30771}
30772_ACEOF
30773if ac_fn_c_try_link "$LINENO"; then :
30774 ac_cv_lib_tiff_TIFFIsBigEndian=yes
30775else
30776 ac_cv_lib_tiff_TIFFIsBigEndian=no
30777fi
30778rm -f core conftest.err conftest.$ac_objext \
30779 conftest$ac_exeext conftest.$ac_ext
30780LIBS=$ac_check_lib_save_LIBS
30781fi
30782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
30783$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
cristyda16f162011-02-19 23:52:17 +000030784if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
cristyb97f1002010-07-26 14:02:57 +000030785 passed=`expr $passed + 1`
30786else
30787 failed=`expr $failed + 1`
30788fi
30789
cristy8b350f62009-11-15 23:12:43 +000030790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030791$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030792if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030793 $as_echo_n "(cached) " >&6
30794else
30795 ac_check_lib_save_LIBS=$LIBS
30796LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030798/* end confdefs.h. */
30799
30800/* Override any GCC internal prototype to avoid an error.
30801 Use char because int might match the return type of a GCC
30802 builtin and then its argument prototype would still apply. */
30803#ifdef __cplusplus
30804extern "C"
30805#endif
30806char TIFFIsByteSwapped ();
30807int
30808main ()
30809{
30810return TIFFIsByteSwapped ();
30811 ;
30812 return 0;
30813}
30814_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030815if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030816 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
30817else
cristy8b350f62009-11-15 23:12:43 +000030818 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000030819fi
cristy8b350f62009-11-15 23:12:43 +000030820rm -f core conftest.err conftest.$ac_objext \
30821 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030822LIBS=$ac_check_lib_save_LIBS
30823fi
cristy8b350f62009-11-15 23:12:43 +000030824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000030825$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000030826if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030827 passed=`expr $passed + 1`
30828else
30829 failed=`expr $failed + 1`
30830fi
30831
cristy8b350f62009-11-15 23:12:43 +000030832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030833$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030834if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030835 $as_echo_n "(cached) " >&6
30836else
30837 ac_check_lib_save_LIBS=$LIBS
30838LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030840/* end confdefs.h. */
30841
30842/* Override any GCC internal prototype to avoid an error.
30843 Use char because int might match the return type of a GCC
30844 builtin and then its argument prototype would still apply. */
30845#ifdef __cplusplus
30846extern "C"
30847#endif
30848char TIFFReadRGBATile ();
30849int
30850main ()
30851{
30852return TIFFReadRGBATile ();
30853 ;
30854 return 0;
30855}
30856_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030857if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030858 ac_cv_lib_tiff_TIFFReadRGBATile=yes
30859else
cristy8b350f62009-11-15 23:12:43 +000030860 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000030861fi
cristy8b350f62009-11-15 23:12:43 +000030862rm -f core conftest.err conftest.$ac_objext \
30863 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030864LIBS=$ac_check_lib_save_LIBS
30865fi
cristy8b350f62009-11-15 23:12:43 +000030866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000030867$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000030868if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030869 passed=`expr $passed + 1`
30870else
30871 failed=`expr $failed + 1`
30872fi
30873
cristy8b350f62009-11-15 23:12:43 +000030874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030875$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030876if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030877 $as_echo_n "(cached) " >&6
30878else
30879 ac_check_lib_save_LIBS=$LIBS
30880LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030882/* end confdefs.h. */
30883
30884/* Override any GCC internal prototype to avoid an error.
30885 Use char because int might match the return type of a GCC
30886 builtin and then its argument prototype would still apply. */
30887#ifdef __cplusplus
30888extern "C"
30889#endif
30890char TIFFReadRGBAStrip ();
30891int
30892main ()
30893{
30894return TIFFReadRGBAStrip ();
30895 ;
30896 return 0;
30897}
30898_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030899if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030900 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
30901else
cristy8b350f62009-11-15 23:12:43 +000030902 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000030903fi
cristy8b350f62009-11-15 23:12:43 +000030904rm -f core conftest.err conftest.$ac_objext \
30905 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030906LIBS=$ac_check_lib_save_LIBS
30907fi
cristy8b350f62009-11-15 23:12:43 +000030908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000030909$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000030910if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030911 passed=`expr $passed + 1`
30912else
30913 failed=`expr $failed + 1`
30914fi
30915
cristy8b350f62009-11-15 23:12:43 +000030916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030917$as_echo_n "checking if TIFF package is complete... " >&6; }
30918 if test $passed -gt 0; then
30919 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000030920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000030921$as_echo "no -- some components failed test" >&6; }
30922 have_tiff='no (failed tests)'
30923 else
30924 TIFF_LIBS='-ltiff'
30925 LIBS="$TIFF_LIBS $LIBS"
30926
cristy8b350f62009-11-15 23:12:43 +000030927$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030928
cristy8b350f62009-11-15 23:12:43 +000030929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030930$as_echo "yes" >&6; }
30931 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000030932 for ac_header in tiffconf.h
30933do :
30934 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030935if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030936 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030937#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000030938_ACEOF
30939
30940fi
30941
30942done
30943
cristy8b350f62009-11-15 23:12:43 +000030944 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000030945 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
30946 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000030947do :
30948 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30949ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000030950if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000030951 cat >>confdefs.h <<_ACEOF
30952#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30953_ACEOF
30954
30955fi
30956done
30957
30958 fi
30959 else
cristy8b350f62009-11-15 23:12:43 +000030960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030961$as_echo "no" >&6; }
30962 fi
30963fi
cristy73bd4a52010-10-05 11:24:23 +000030964 if test "$have_tiff" = 'yes'; then
30965 TIFF_DELEGATE_TRUE=
30966 TIFF_DELEGATE_FALSE='#'
30967else
30968 TIFF_DELEGATE_TRUE='#'
30969 TIFF_DELEGATE_FALSE=
30970fi
30971
cristy3ed852e2009-09-05 21:47:34 +000030972
30973
30974
30975#
cristyb1860752011-03-14 00:27:46 +000030976# Check for WEBP delegate library.
30977#
30978
30979# Check whether --with-webp was given.
30980if test "${with_webp+set}" = set; then :
30981 withval=$with_webp; with_webp=$withval
30982else
30983 with_webp='yes'
30984fi
30985
30986
30987if test "$with_webp" != 'yes'; then
30988 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
30989fi
30990
30991have_webp='no'
30992WEBP_LIBS=''
30993if test "$with_webp" != 'no'; then
30994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30995$as_echo "-------------------------------------------------------------" >&6; }
30996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
30997$as_echo_n "checking for WEBP... " >&6; }
30998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30999$as_echo "" >&6; }
31000 failed=0
31001 passed=0
31002 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31003if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31004 passed=`expr $passed + 1`
31005else
31006 failed=`expr $failed + 1`
31007fi
31008
31009
31010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31011$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31012if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31013 $as_echo_n "(cached) " >&6
31014else
31015 ac_check_lib_save_LIBS=$LIBS
31016LIBS="-lwebp $LIBS"
31017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31018/* end confdefs.h. */
31019
31020/* Override any GCC internal prototype to avoid an error.
31021 Use char because int might match the return type of a GCC
31022 builtin and then its argument prototype would still apply. */
31023#ifdef __cplusplus
31024extern "C"
31025#endif
31026char WebPDecodeRGB ();
31027int
31028main ()
31029{
31030return WebPDecodeRGB ();
31031 ;
31032 return 0;
31033}
31034_ACEOF
31035if ac_fn_c_try_link "$LINENO"; then :
31036 ac_cv_lib_webp_WebPDecodeRGB=yes
31037else
31038 ac_cv_lib_webp_WebPDecodeRGB=no
31039fi
31040rm -f core conftest.err conftest.$ac_objext \
31041 conftest$ac_exeext conftest.$ac_ext
31042LIBS=$ac_check_lib_save_LIBS
31043fi
31044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31045$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31046if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31047 passed=`expr $passed + 1`
31048else
31049 failed=`expr $failed + 1`
31050fi
31051
31052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31053$as_echo_n "checking if WEBP package is complete... " >&6; }
31054 if test $passed -gt 0; then
31055 if test $failed -gt 0; then
31056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31057$as_echo "no -- some components failed test" >&6; }
31058 have_webp='no (failed tests)'
31059 else
31060 WEBP_LIBS='-lwebp'
31061 LIBS="$WEBP_LIBS $LIBS"
31062
31063$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31064
31065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31066$as_echo "yes" >&6; }
31067 have_webp='yes'
31068 fi
31069 else
31070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31071$as_echo "no" >&6; }
31072 fi
31073fi
31074 if test "$have_webp" = 'yes'; then
31075 WEBP_DELEGATE_TRUE=
31076 WEBP_DELEGATE_FALSE='#'
31077else
31078 WEBP_DELEGATE_TRUE='#'
31079 WEBP_DELEGATE_FALSE=
31080fi
31081
31082
31083
31084
31085#
cristy3ed852e2009-09-05 21:47:34 +000031086# Set Windows font directory.
31087#
31088
31089# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031090if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031091 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31092else
31093 with_windows_font_dir=''
31094fi
31095
31096if test "$with_windows_font_dir" != '' ; then
31097 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31098fi
31099
31100
31101#
31102# Check for WMF delegate library.
31103#
31104
31105# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031106if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031107 withval=$with_wmf; with_wmf=$withval
31108else
cristy8d63d1d2010-01-06 20:38:37 +000031109 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000031110fi
31111
31112
31113if test "$with_wmf" != 'yes'; then
31114 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31115fi
31116
31117have_wmf='no'
31118WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000031119if test "$with_wmf" != 'no'; then
glennrp33e524b2011-08-24 17:41:57 +000031120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031121$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +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; }
glennrp33e524b2011-08-24 17:41:57 +000031124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031125$as_echo "" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031126 failed=0
31127 passed=0
31128 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
31129if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
31130 passed=`expr $passed + 1`
31131else
31132 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000031133fi
31134
31135
glennrp33e524b2011-08-24 17:41:57 +000031136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
31137$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
31138if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031139 $as_echo_n "(cached) " >&6
31140else
31141 ac_check_lib_save_LIBS=$LIBS
glennrp33e524b2011-08-24 17:41:57 +000031142LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031144/* end confdefs.h. */
31145
31146/* Override any GCC internal prototype to avoid an error.
31147 Use char because int might match the return type of a GCC
31148 builtin and then its argument prototype would still apply. */
31149#ifdef __cplusplus
31150extern "C"
31151#endif
glennrp33e524b2011-08-24 17:41:57 +000031152char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000031153int
31154main ()
31155{
glennrp33e524b2011-08-24 17:41:57 +000031156return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000031157 ;
31158 return 0;
31159}
31160_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031161if ac_fn_c_try_link "$LINENO"; then :
glennrp33e524b2011-08-24 17:41:57 +000031162 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000031163else
glennrp33e524b2011-08-24 17:41:57 +000031164 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000031165fi
cristy8b350f62009-11-15 23:12:43 +000031166rm -f core conftest.err conftest.$ac_objext \
31167 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031168LIBS=$ac_check_lib_save_LIBS
31169fi
glennrp33e524b2011-08-24 17:41:57 +000031170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
31171$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
31172if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
31173 passed=`expr $passed + 1`
cristy9243a2d2011-08-22 17:32:32 +000031174else
glennrp33e524b2011-08-24 17:41:57 +000031175 failed=`expr $failed + 1`
cristy9243a2d2011-08-22 17:32:32 +000031176fi
31177
glennrp33e524b2011-08-24 17:41:57 +000031178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31179$as_echo_n "checking if WMF package is complete... " >&6; }
31180 if test $passed -gt 0; then
31181 if test $failed -gt 0; then
31182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31183$as_echo "no -- some components failed test" >&6; }
31184 have_wmf='no (failed tests)'
31185 else
31186 WMF_LIBS='-lwmf -lwmflite'
31187 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031188
cristy8b350f62009-11-15 23:12:43 +000031189$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031190
glennrp33e524b2011-08-24 17:41:57 +000031191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy9243a2d2011-08-22 17:32:32 +000031192$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031193 have_wmf='yes'
31194 fi
31195 else
31196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy9243a2d2011-08-22 17:32:32 +000031197$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031198 fi
cristy3ed852e2009-09-05 21:47:34 +000031199fi
cristy73bd4a52010-10-05 11:24:23 +000031200 if test "$have_wmf" = 'yes'; then
31201 WMF_DELEGATE_TRUE=
31202 WMF_DELEGATE_FALSE='#'
31203else
31204 WMF_DELEGATE_TRUE='#'
31205 WMF_DELEGATE_FALSE=
31206fi
31207
cristy3ed852e2009-09-05 21:47:34 +000031208
31209
31210
31211
cristy735e8942010-04-02 20:32:57 +000031212
cristy3ed852e2009-09-05 21:47:34 +000031213#
31214# Check for XML delegate library.
31215#
31216
31217# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031218if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031219 withval=$with_xml; with_xml=$withval
31220else
31221 with_xml=$have_x
31222fi
31223
31224
31225if test "$with_xml" != 'yes' ; then
31226 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31227fi
31228
31229have_xml='no'
31230XML_LIBS=''
31231if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000031232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031233$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000031235$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031237$as_echo "" >&6; }
31238 PERSIST_LDFLAGS=$LDFLAGS
31239 PERSIST_CPPFLAGS=$CPPFLAGS
31240 xml2_config=''
31241 for ac_prog in xml2-config
31242do
31243 # Extract the first word of "$ac_prog", so it can be a program name with args.
31244set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031246$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031247if ${ac_cv_prog_xml2_config+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031248 $as_echo_n "(cached) " >&6
31249else
31250 if test -n "$xml2_config"; then
31251 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
31252else
31253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31254for as_dir in $PATH
31255do
31256 IFS=$as_save_IFS
31257 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031258 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31260 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031262 break 2
31263 fi
31264done
cristy8b350f62009-11-15 23:12:43 +000031265 done
cristy3ed852e2009-09-05 21:47:34 +000031266IFS=$as_save_IFS
31267
31268fi
31269fi
31270xml2_config=$ac_cv_prog_xml2_config
31271if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000031272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000031273$as_echo "$xml2_config" >&6; }
31274else
cristy8b350f62009-11-15 23:12:43 +000031275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031276$as_echo "no" >&6; }
31277fi
31278
31279
31280 test -n "$xml2_config" && break
31281done
31282 if test -n "$xml2_config"; then
31283 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31284 # the shared library installed under /usr/lib, whereas the package
31285 # installs itself under $prefix/libxml and $prefix/lib.
31286 xml2_prefix=`xml2-config --prefix`
31287 if test -d "${xml2_prefix}/include/libxml2"; then
31288 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31289 fi
31290 if test "${xml2_prefix}" != '/usr'; then
31291 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31292 fi
31293 fi
31294 failed=0
31295 passed=0
cristy8b350f62009-11-15 23:12:43 +000031296 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 +000031297if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031298 passed=`expr $passed + 1`
31299else
31300 failed=`expr $failed + 1`
31301fi
31302
31303
cristy8b350f62009-11-15 23:12:43 +000031304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000031305$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031306if ${ac_cv_lib_xml2_xmlParseExternalEntity+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031307 $as_echo_n "(cached) " >&6
31308else
31309 ac_check_lib_save_LIBS=$LIBS
31310LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031312/* end confdefs.h. */
31313
31314/* Override any GCC internal prototype to avoid an error.
31315 Use char because int might match the return type of a GCC
31316 builtin and then its argument prototype would still apply. */
31317#ifdef __cplusplus
31318extern "C"
31319#endif
31320char xmlParseExternalEntity ();
31321int
31322main ()
31323{
31324return xmlParseExternalEntity ();
31325 ;
31326 return 0;
31327}
31328_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031329if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031330 ac_cv_lib_xml2_xmlParseExternalEntity=yes
31331else
cristy8b350f62009-11-15 23:12:43 +000031332 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000031333fi
cristy8b350f62009-11-15 23:12:43 +000031334rm -f core conftest.err conftest.$ac_objext \
31335 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031336LIBS=$ac_check_lib_save_LIBS
31337fi
cristy8b350f62009-11-15 23:12:43 +000031338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000031339$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristyda16f162011-02-19 23:52:17 +000031340if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031341 passed=`expr $passed + 1`
31342else
31343 failed=`expr $failed + 1`
31344fi
31345
cristy8b350f62009-11-15 23:12:43 +000031346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031347$as_echo_n "checking if XML package is complete... " >&6; }
31348 if test $passed -gt 0; then
31349 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000031350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000031351$as_echo "no -- some components failed test" >&6; }
31352 have_xml='no (failed tests)'
31353 LDFLAGS="$PERSIST_LDFLAGS"
31354 CPPFLAGS="$PERSIST_CPPFLAGS"
31355 else
31356 XML_LIBS='-lxml2'
31357 LIBS="$XML_LIBS $LIBS"
31358
cristy8b350f62009-11-15 23:12:43 +000031359$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031360
cristy8b350f62009-11-15 23:12:43 +000031361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000031362$as_echo "yes" >&6; }
31363 have_xml='yes'
31364 fi
31365 else
cristy8b350f62009-11-15 23:12:43 +000031366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031367$as_echo "no" >&6; }
31368 fi
31369fi
cristy73bd4a52010-10-05 11:24:23 +000031370 if test "$have_xml" = 'yes'; then
31371 XML_DELEGATE_TRUE=
31372 XML_DELEGATE_FALSE='#'
31373else
31374 XML_DELEGATE_TRUE='#'
31375 XML_DELEGATE_FALSE=
31376fi
31377
cristy3ed852e2009-09-05 21:47:34 +000031378
31379
31380
31381# Substitute compiler name to build/link PerlMagick
31382#
31383
31384
31385#
31386# Configure install Paths
31387#
31388
31389# Subdirectory under lib to place ImageMagick lib files
31390LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31391
31392cat >>confdefs.h <<_ACEOF
31393#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31394_ACEOF
31395
31396
31397# Path to ImageMagick bin directory
31398EXECUTABLE_PATH="${BIN_DIR}"
31399DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31400case "${build_os}" in
31401 mingw* )
31402 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31403 ;;
31404esac
31405
31406cat >>confdefs.h <<_ACEOF
31407#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31408_ACEOF
31409
31410
31411
31412# Path to ImageMagick lib
31413LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31414DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31415case "${build_os}" in
31416 mingw* )
31417 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31418 ;;
31419esac
31420
31421cat >>confdefs.h <<_ACEOF
31422#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31423_ACEOF
31424
31425
31426
cristy3ed852e2009-09-05 21:47:34 +000031427#
31428# Subdirectory under lib to place ImageMagick coder module files
31429CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
31430
31431cat >>confdefs.h <<_ACEOF
31432#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
31433_ACEOF
31434
31435CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
31436DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
31437case "${build_os}" in
31438 mingw* )
31439 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
31440 ;;
31441esac
31442
31443cat >>confdefs.h <<_ACEOF
31444#define CODER_PATH "$DEFINE_CODER_PATH"
31445_ACEOF
31446
31447
31448
31449#
31450# Subdirectory under lib to place ImageMagick filter module files
31451FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
31452
31453cat >>confdefs.h <<_ACEOF
31454#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
31455_ACEOF
31456
31457FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
31458DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
31459case "${build_os}" in
31460 mingw* )
31461 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
31462 ;;
31463esac
31464
31465cat >>confdefs.h <<_ACEOF
31466#define FILTER_PATH "$DEFINE_FILTER_PATH"
31467_ACEOF
31468
31469
31470
31471#
31472# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000031473DOCUMENTATION_RELATIVE_PATH=""
31474DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
31475DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031476case "${build_os}" in
31477 mingw* )
31478 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
31479 ;;
31480esac
31481
31482cat >>confdefs.h <<_ACEOF
31483#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
31484_ACEOF
31485
31486
31487
cristy3cf8a722011-03-20 23:32:22 +000031488# Subdirectory to place ImageMagick configuration files
cristyba0f1972011-03-28 12:42:52 +000031489CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000031490
31491cat >>confdefs.h <<_ACEOF
31492#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
31493_ACEOF
31494
31495CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31496DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31497case "${build_os}" in
31498 mingw* )
31499 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
31500 ;;
31501esac
31502
31503cat >>confdefs.h <<_ACEOF
31504#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
31505_ACEOF
31506
31507
31508
31509# Subdirectory to place ImageMagick configuration files
cristy4f820712011-04-01 12:35:43 +000031510SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000031511
31512cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000031513#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000031514_ACEOF
31515
cristy4f820712011-04-01 12:35:43 +000031516SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
31517DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031518case "${build_os}" in
31519 mingw* )
cristy4f820712011-04-01 12:35:43 +000031520 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000031521 ;;
31522esac
31523
31524cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000031525#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000031526_ACEOF
31527
31528
31529
31530#
31531# program_transform_name is formed for use in a Makefile, so create a
31532# modified version for use in a shell script.
31533configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
31534
31535# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000031536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031537$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000031539$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031541$as_echo "" >&6; }
31542AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000031543BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000031544BZIPDelegateDefault='bzip2'
31545BrowseDelegateDefault='xdg-open'
31546CGMDecodeDelegateDefault='ralcgm'
31547CatDelegateDefault='cat'
31548DNGDecodeDelegateDefault='ufraw-batch'
31549GVCDecodeDelegateDefault='dot'
31550DVIDecodeDelegateDefault='dvips'
31551EchoDelegateDefault='echo'
31552EditorDelegateDefault='xterm'
31553FIGDecodeDelegateDefault='fig2dev'
31554ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
31555DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
31556MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
31557GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000031558HPGLDecodeDelegateDefault='hp2xx'
31559HTMLDecodeDelegateDefault='html2ps'
31560ILBMDecodeDelegateDefault='ilbmtoppm'
31561ILBMEncodeDelegateDefault='ppmtoilbm'
31562LPDelegateDefault='lp'
31563LPRDelegateDefault='lpr'
31564LZWDecodeDelegateDefault='uncompress'
31565LZWEncodeDelegateDefault='compress'
31566LaunchDelegateDefault='gimp'
31567MANDelegateDefault='groff'
31568MPEGDecodeDelegateDefault='ffmpeg'
31569MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000031570MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000031571MVDelegateDefault='mv'
31572PCLDelegateDefault='pcl6'
31573PGPDecodeDelegateDefault='pgpv'
31574POVDelegateDefault='povray'
31575if test "$native_win32_build" = 'yes'; then
31576 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000031577elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031578 PSDelegateDefault='gsc'
31579else
31580 PSDelegateDefault='gs'
31581fi
31582RLEEncodeDelegateDefault='rawtorle'
31583RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000031584RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000031585SCANDecodeDelegateDefault='scanimage'
31586TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000031587UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000031588WMFDecodeDelegateDefault='wmf2eps'
31589WWWDecodeDelegateDefault='curl'
31590XPSDelegateDefault='gxps'
31591ZipDelegateDefault='gzip'
31592
31593# Search for delegates
31594# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
31595set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031597$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031598if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031599 $as_echo_n "(cached) " >&6
31600else
31601 case $AutotraceDecodeDelegate in
31602 [\\/]* | ?:[\\/]*)
31603 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
31604 ;;
31605 *)
31606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31607for as_dir in $PATH
31608do
31609 IFS=$as_save_IFS
31610 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031611 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31613 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031615 break 2
31616 fi
31617done
cristy8b350f62009-11-15 23:12:43 +000031618 done
cristy3ed852e2009-09-05 21:47:34 +000031619IFS=$as_save_IFS
31620
31621 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
31622 ;;
31623esac
31624fi
31625AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
31626if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031628$as_echo "$AutotraceDecodeDelegate" >&6; }
31629else
cristy8b350f62009-11-15 23:12:43 +000031630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031631$as_echo "no" >&6; }
31632fi
31633
31634
cristy3ed852e2009-09-05 21:47:34 +000031635# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
31636set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031638$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031639if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031640 $as_echo_n "(cached) " >&6
31641else
31642 case $BlenderDecodeDelegate in
31643 [\\/]* | ?:[\\/]*)
31644 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
31645 ;;
31646 *)
31647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31648for as_dir in $PATH
31649do
31650 IFS=$as_save_IFS
31651 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031652 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31654 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031656 break 2
31657 fi
31658done
cristy8b350f62009-11-15 23:12:43 +000031659 done
cristy3ed852e2009-09-05 21:47:34 +000031660IFS=$as_save_IFS
31661
31662 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
31663 ;;
31664esac
31665fi
31666BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
31667if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031669$as_echo "$BlenderDecodeDelegate" >&6; }
31670else
cristy8b350f62009-11-15 23:12:43 +000031671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031672$as_echo "no" >&6; }
31673fi
31674
31675
31676# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
31677set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031679$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031680if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031681 $as_echo_n "(cached) " >&6
31682else
31683 case $BZIPDelegate in
31684 [\\/]* | ?:[\\/]*)
31685 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
31686 ;;
31687 *)
31688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31689for as_dir in $PATH
31690do
31691 IFS=$as_save_IFS
31692 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031693 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31695 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031697 break 2
31698 fi
31699done
cristy8b350f62009-11-15 23:12:43 +000031700 done
cristy3ed852e2009-09-05 21:47:34 +000031701IFS=$as_save_IFS
31702
31703 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
31704 ;;
31705esac
31706fi
31707BZIPDelegate=$ac_cv_path_BZIPDelegate
31708if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031710$as_echo "$BZIPDelegate" >&6; }
31711else
cristy8b350f62009-11-15 23:12:43 +000031712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031713$as_echo "no" >&6; }
31714fi
31715
31716
31717# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
31718set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031720$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031721if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031722 $as_echo_n "(cached) " >&6
31723else
31724 case $BrowseDelegate in
31725 [\\/]* | ?:[\\/]*)
31726 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
31727 ;;
31728 *)
31729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31730for as_dir in $PATH
31731do
31732 IFS=$as_save_IFS
31733 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031734 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31736 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031738 break 2
31739 fi
31740done
cristy8b350f62009-11-15 23:12:43 +000031741 done
cristy3ed852e2009-09-05 21:47:34 +000031742IFS=$as_save_IFS
31743
31744 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
31745 ;;
31746esac
31747fi
31748BrowseDelegate=$ac_cv_path_BrowseDelegate
31749if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031751$as_echo "$BrowseDelegate" >&6; }
31752else
cristy8b350f62009-11-15 23:12:43 +000031753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031754$as_echo "no" >&6; }
31755fi
31756
31757
31758# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
31759set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031761$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031762if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031763 $as_echo_n "(cached) " >&6
31764else
31765 case $CGMDecodeDelegate in
31766 [\\/]* | ?:[\\/]*)
31767 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
31768 ;;
31769 *)
31770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31771for as_dir in $PATH
31772do
31773 IFS=$as_save_IFS
31774 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031775 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31777 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031779 break 2
31780 fi
31781done
cristy8b350f62009-11-15 23:12:43 +000031782 done
cristy3ed852e2009-09-05 21:47:34 +000031783IFS=$as_save_IFS
31784
31785 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
31786 ;;
31787esac
31788fi
31789CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
31790if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031792$as_echo "$CGMDecodeDelegate" >&6; }
31793else
cristy8b350f62009-11-15 23:12:43 +000031794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031795$as_echo "no" >&6; }
31796fi
31797
31798
31799# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
31800set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031802$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031803if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031804 $as_echo_n "(cached) " >&6
31805else
31806 case $CatDelegate in
31807 [\\/]* | ?:[\\/]*)
31808 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
31809 ;;
31810 *)
31811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31812for as_dir in $PATH
31813do
31814 IFS=$as_save_IFS
31815 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031816 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31818 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031820 break 2
31821 fi
31822done
cristy8b350f62009-11-15 23:12:43 +000031823 done
cristy3ed852e2009-09-05 21:47:34 +000031824IFS=$as_save_IFS
31825
31826 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
31827 ;;
31828esac
31829fi
31830CatDelegate=$ac_cv_path_CatDelegate
31831if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031833$as_echo "$CatDelegate" >&6; }
31834else
cristy8b350f62009-11-15 23:12:43 +000031835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031836$as_echo "no" >&6; }
31837fi
31838
31839
31840# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
31841set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031843$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031844if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031845 $as_echo_n "(cached) " >&6
31846else
31847 case $DNGDecodeDelegate in
31848 [\\/]* | ?:[\\/]*)
31849 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
31850 ;;
31851 *)
31852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31853for as_dir in $PATH
31854do
31855 IFS=$as_save_IFS
31856 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031857 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31859 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031861 break 2
31862 fi
31863done
cristy8b350f62009-11-15 23:12:43 +000031864 done
cristy3ed852e2009-09-05 21:47:34 +000031865IFS=$as_save_IFS
31866
31867 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
31868 ;;
31869esac
31870fi
31871DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
31872if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031874$as_echo "$DNGDecodeDelegate" >&6; }
31875else
cristy8b350f62009-11-15 23:12:43 +000031876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031877$as_echo "no" >&6; }
31878fi
31879
31880
31881# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
31882set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031884$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031885if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031886 $as_echo_n "(cached) " >&6
31887else
31888 case $GVCDecodeDelegate in
31889 [\\/]* | ?:[\\/]*)
31890 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
31891 ;;
31892 *)
31893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31894for as_dir in $PATH
31895do
31896 IFS=$as_save_IFS
31897 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031898 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31900 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031902 break 2
31903 fi
31904done
cristy8b350f62009-11-15 23:12:43 +000031905 done
cristy3ed852e2009-09-05 21:47:34 +000031906IFS=$as_save_IFS
31907
31908 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
31909 ;;
31910esac
31911fi
31912GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
31913if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031915$as_echo "$GVCDecodeDelegate" >&6; }
31916else
cristy8b350f62009-11-15 23:12:43 +000031917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031918$as_echo "no" >&6; }
31919fi
31920
31921
31922# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
31923set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031925$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031926if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031927 $as_echo_n "(cached) " >&6
31928else
31929 case $DVIDecodeDelegate in
31930 [\\/]* | ?:[\\/]*)
31931 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
31932 ;;
31933 *)
31934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31935for as_dir in $PATH
31936do
31937 IFS=$as_save_IFS
31938 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031939 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31941 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031943 break 2
31944 fi
31945done
cristy8b350f62009-11-15 23:12:43 +000031946 done
cristy3ed852e2009-09-05 21:47:34 +000031947IFS=$as_save_IFS
31948
31949 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
31950 ;;
31951esac
31952fi
31953DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
31954if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031956$as_echo "$DVIDecodeDelegate" >&6; }
31957else
cristy8b350f62009-11-15 23:12:43 +000031958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031959$as_echo "no" >&6; }
31960fi
31961
31962
31963# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
31964set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031966$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031967if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031968 $as_echo_n "(cached) " >&6
31969else
31970 case $EchoDelegate in
31971 [\\/]* | ?:[\\/]*)
31972 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
31973 ;;
31974 *)
31975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31976for as_dir in $PATH
31977do
31978 IFS=$as_save_IFS
31979 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031980 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31982 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031984 break 2
31985 fi
31986done
cristy8b350f62009-11-15 23:12:43 +000031987 done
cristy3ed852e2009-09-05 21:47:34 +000031988IFS=$as_save_IFS
31989
31990 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
31991 ;;
31992esac
31993fi
31994EchoDelegate=$ac_cv_path_EchoDelegate
31995if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031997$as_echo "$EchoDelegate" >&6; }
31998else
cristy8b350f62009-11-15 23:12:43 +000031999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032000$as_echo "no" >&6; }
32001fi
32002
32003
32004# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32005set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032007$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032008if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032009 $as_echo_n "(cached) " >&6
32010else
32011 case $EditorDelegate in
32012 [\\/]* | ?:[\\/]*)
32013 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32014 ;;
32015 *)
32016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32017for as_dir in $PATH
32018do
32019 IFS=$as_save_IFS
32020 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032021 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32023 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032025 break 2
32026 fi
32027done
cristy8b350f62009-11-15 23:12:43 +000032028 done
cristy3ed852e2009-09-05 21:47:34 +000032029IFS=$as_save_IFS
32030
32031 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32032 ;;
32033esac
32034fi
32035EditorDelegate=$ac_cv_path_EditorDelegate
32036if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032038$as_echo "$EditorDelegate" >&6; }
32039else
cristy8b350f62009-11-15 23:12:43 +000032040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032041$as_echo "no" >&6; }
32042fi
32043
32044
32045# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32046set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032048$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032049if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032050 $as_echo_n "(cached) " >&6
32051else
32052 case $FIGDecodeDelegate in
32053 [\\/]* | ?:[\\/]*)
32054 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32055 ;;
32056 *)
32057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32058for as_dir in $PATH
32059do
32060 IFS=$as_save_IFS
32061 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032062 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32064 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032066 break 2
32067 fi
32068done
cristy8b350f62009-11-15 23:12:43 +000032069 done
cristy3ed852e2009-09-05 21:47:34 +000032070IFS=$as_save_IFS
32071
32072 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32073 ;;
32074esac
32075fi
32076FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32077if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032079$as_echo "$FIGDecodeDelegate" >&6; }
32080else
cristy8b350f62009-11-15 23:12:43 +000032081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032082$as_echo "no" >&6; }
32083fi
32084
32085
32086# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32087set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032089$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032090if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032091 $as_echo_n "(cached) " >&6
32092else
32093 case $ConvertDelegate in
32094 [\\/]* | ?:[\\/]*)
32095 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32096 ;;
32097 *)
32098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32099for as_dir in $PATH
32100do
32101 IFS=$as_save_IFS
32102 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032103 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32105 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032107 break 2
32108 fi
32109done
cristy8b350f62009-11-15 23:12:43 +000032110 done
cristy3ed852e2009-09-05 21:47:34 +000032111IFS=$as_save_IFS
32112
32113 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32114 ;;
32115esac
32116fi
32117ConvertDelegate=$ac_cv_path_ConvertDelegate
32118if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032120$as_echo "$ConvertDelegate" >&6; }
32121else
cristy8b350f62009-11-15 23:12:43 +000032122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032123$as_echo "no" >&6; }
32124fi
32125
32126
32127# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32128set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032130$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032131if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032132 $as_echo_n "(cached) " >&6
32133else
32134 case $DisplayDelegate in
32135 [\\/]* | ?:[\\/]*)
32136 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32137 ;;
32138 *)
32139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32140for as_dir in $PATH
32141do
32142 IFS=$as_save_IFS
32143 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032144 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32146 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032148 break 2
32149 fi
32150done
cristy8b350f62009-11-15 23:12:43 +000032151 done
cristy3ed852e2009-09-05 21:47:34 +000032152IFS=$as_save_IFS
32153
32154 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32155 ;;
32156esac
32157fi
32158DisplayDelegate=$ac_cv_path_DisplayDelegate
32159if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032161$as_echo "$DisplayDelegate" >&6; }
32162else
cristy8b350f62009-11-15 23:12:43 +000032163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032164$as_echo "no" >&6; }
32165fi
32166
32167
32168# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32169set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032171$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032172if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032173 $as_echo_n "(cached) " >&6
32174else
32175 case $MogrifyDelegate in
32176 [\\/]* | ?:[\\/]*)
32177 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32178 ;;
32179 *)
32180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32181for as_dir in $PATH
32182do
32183 IFS=$as_save_IFS
32184 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032185 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32187 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032189 break 2
32190 fi
32191done
cristy8b350f62009-11-15 23:12:43 +000032192 done
cristy3ed852e2009-09-05 21:47:34 +000032193IFS=$as_save_IFS
32194
32195 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32196 ;;
32197esac
32198fi
32199MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32200if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032202$as_echo "$MogrifyDelegate" >&6; }
32203else
cristy8b350f62009-11-15 23:12:43 +000032204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032205$as_echo "no" >&6; }
32206fi
32207
32208
32209# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32210set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032212$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032213if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032214 $as_echo_n "(cached) " >&6
32215else
32216 case $GnuplotDecodeDelegate in
32217 [\\/]* | ?:[\\/]*)
32218 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32219 ;;
32220 *)
32221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32222for as_dir in $PATH
32223do
32224 IFS=$as_save_IFS
32225 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032226 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32228 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032230 break 2
32231 fi
32232done
cristy8b350f62009-11-15 23:12:43 +000032233 done
cristy3ed852e2009-09-05 21:47:34 +000032234IFS=$as_save_IFS
32235
32236 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32237 ;;
32238esac
32239fi
32240GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32241if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032243$as_echo "$GnuplotDecodeDelegate" >&6; }
32244else
cristy8b350f62009-11-15 23:12:43 +000032245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032246$as_echo "no" >&6; }
32247fi
32248
32249
cristy3ed852e2009-09-05 21:47:34 +000032250# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32251set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032253$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032254if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032255 $as_echo_n "(cached) " >&6
32256else
32257 case $HPGLDecodeDelegate in
32258 [\\/]* | ?:[\\/]*)
32259 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32260 ;;
32261 *)
32262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32263for as_dir in $PATH
32264do
32265 IFS=$as_save_IFS
32266 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032267 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32269 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032271 break 2
32272 fi
32273done
cristy8b350f62009-11-15 23:12:43 +000032274 done
cristy3ed852e2009-09-05 21:47:34 +000032275IFS=$as_save_IFS
32276
32277 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32278 ;;
32279esac
32280fi
32281HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32282if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032284$as_echo "$HPGLDecodeDelegate" >&6; }
32285else
cristy8b350f62009-11-15 23:12:43 +000032286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032287$as_echo "no" >&6; }
32288fi
32289
32290
32291# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32292set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032294$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032295if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032296 $as_echo_n "(cached) " >&6
32297else
32298 case $HTMLDecodeDelegate in
32299 [\\/]* | ?:[\\/]*)
32300 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32301 ;;
32302 *)
32303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32304for as_dir in $PATH
32305do
32306 IFS=$as_save_IFS
32307 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032308 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32310 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032312 break 2
32313 fi
32314done
cristy8b350f62009-11-15 23:12:43 +000032315 done
cristy3ed852e2009-09-05 21:47:34 +000032316IFS=$as_save_IFS
32317
32318 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32319 ;;
32320esac
32321fi
32322HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32323if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032325$as_echo "$HTMLDecodeDelegate" >&6; }
32326else
cristy8b350f62009-11-15 23:12:43 +000032327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032328$as_echo "no" >&6; }
32329fi
32330
32331
32332# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32333set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032335$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032336if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032337 $as_echo_n "(cached) " >&6
32338else
32339 case $ILBMDecodeDelegate in
32340 [\\/]* | ?:[\\/]*)
32341 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32342 ;;
32343 *)
32344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32345for as_dir in $PATH
32346do
32347 IFS=$as_save_IFS
32348 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032349 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32351 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032353 break 2
32354 fi
32355done
cristy8b350f62009-11-15 23:12:43 +000032356 done
cristy3ed852e2009-09-05 21:47:34 +000032357IFS=$as_save_IFS
32358
32359 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32360 ;;
32361esac
32362fi
32363ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32364if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032366$as_echo "$ILBMDecodeDelegate" >&6; }
32367else
cristy8b350f62009-11-15 23:12:43 +000032368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032369$as_echo "no" >&6; }
32370fi
32371
32372
32373# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32374set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032376$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032377if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032378 $as_echo_n "(cached) " >&6
32379else
32380 case $ILBMEncodeDelegate in
32381 [\\/]* | ?:[\\/]*)
32382 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32383 ;;
32384 *)
32385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32386for as_dir in $PATH
32387do
32388 IFS=$as_save_IFS
32389 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032390 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32392 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032394 break 2
32395 fi
32396done
cristy8b350f62009-11-15 23:12:43 +000032397 done
cristy3ed852e2009-09-05 21:47:34 +000032398IFS=$as_save_IFS
32399
32400 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32401 ;;
32402esac
32403fi
32404ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32405if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032407$as_echo "$ILBMEncodeDelegate" >&6; }
32408else
cristy8b350f62009-11-15 23:12:43 +000032409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032410$as_echo "no" >&6; }
32411fi
32412
32413
32414# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32415set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032417$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032418if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032419 $as_echo_n "(cached) " >&6
32420else
32421 case $LPDelegate in
32422 [\\/]* | ?:[\\/]*)
32423 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
32424 ;;
32425 *)
32426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32427for as_dir in $PATH
32428do
32429 IFS=$as_save_IFS
32430 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032431 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32433 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032435 break 2
32436 fi
32437done
cristy8b350f62009-11-15 23:12:43 +000032438 done
cristy3ed852e2009-09-05 21:47:34 +000032439IFS=$as_save_IFS
32440
32441 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
32442 ;;
32443esac
32444fi
32445LPDelegate=$ac_cv_path_LPDelegate
32446if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032448$as_echo "$LPDelegate" >&6; }
32449else
cristy8b350f62009-11-15 23:12:43 +000032450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032451$as_echo "no" >&6; }
32452fi
32453
32454
32455# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
32456set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032458$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032459if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032460 $as_echo_n "(cached) " >&6
32461else
32462 case $LPRDelegate in
32463 [\\/]* | ?:[\\/]*)
32464 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
32465 ;;
32466 *)
32467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32468for as_dir in $PATH
32469do
32470 IFS=$as_save_IFS
32471 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032472 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32474 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032476 break 2
32477 fi
32478done
cristy8b350f62009-11-15 23:12:43 +000032479 done
cristy3ed852e2009-09-05 21:47:34 +000032480IFS=$as_save_IFS
32481
32482 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
32483 ;;
32484esac
32485fi
32486LPRDelegate=$ac_cv_path_LPRDelegate
32487if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032489$as_echo "$LPRDelegate" >&6; }
32490else
cristy8b350f62009-11-15 23:12:43 +000032491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032492$as_echo "no" >&6; }
32493fi
32494
32495
32496# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
32497set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032499$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032500if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032501 $as_echo_n "(cached) " >&6
32502else
32503 case $LZWDecodeDelegate in
32504 [\\/]* | ?:[\\/]*)
32505 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
32506 ;;
32507 *)
32508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32509for as_dir in $PATH
32510do
32511 IFS=$as_save_IFS
32512 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032513 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32515 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032517 break 2
32518 fi
32519done
cristy8b350f62009-11-15 23:12:43 +000032520 done
cristy3ed852e2009-09-05 21:47:34 +000032521IFS=$as_save_IFS
32522
32523 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
32524 ;;
32525esac
32526fi
32527LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
32528if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032530$as_echo "$LZWDecodeDelegate" >&6; }
32531else
cristy8b350f62009-11-15 23:12:43 +000032532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032533$as_echo "no" >&6; }
32534fi
32535
32536
32537# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
32538set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032540$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032541if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032542 $as_echo_n "(cached) " >&6
32543else
32544 case $LZWEncodeDelegate in
32545 [\\/]* | ?:[\\/]*)
32546 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
32547 ;;
32548 *)
32549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32550for as_dir in $PATH
32551do
32552 IFS=$as_save_IFS
32553 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032554 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32556 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032558 break 2
32559 fi
32560done
cristy8b350f62009-11-15 23:12:43 +000032561 done
cristy3ed852e2009-09-05 21:47:34 +000032562IFS=$as_save_IFS
32563
32564 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
32565 ;;
32566esac
32567fi
32568LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
32569if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032571$as_echo "$LZWEncodeDelegate" >&6; }
32572else
cristy8b350f62009-11-15 23:12:43 +000032573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032574$as_echo "no" >&6; }
32575fi
32576
32577
32578# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
32579set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032581$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032582if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032583 $as_echo_n "(cached) " >&6
32584else
32585 case $LaunchDelegate in
32586 [\\/]* | ?:[\\/]*)
32587 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
32588 ;;
32589 *)
32590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32591for as_dir in $PATH
32592do
32593 IFS=$as_save_IFS
32594 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032595 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32597 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032599 break 2
32600 fi
32601done
cristy8b350f62009-11-15 23:12:43 +000032602 done
cristy3ed852e2009-09-05 21:47:34 +000032603IFS=$as_save_IFS
32604
32605 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
32606 ;;
32607esac
32608fi
32609LaunchDelegate=$ac_cv_path_LaunchDelegate
32610if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032612$as_echo "$LaunchDelegate" >&6; }
32613else
cristy8b350f62009-11-15 23:12:43 +000032614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032615$as_echo "no" >&6; }
32616fi
32617
32618
32619# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
32620set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032622$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032623if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032624 $as_echo_n "(cached) " >&6
32625else
32626 case $MANDelegate in
32627 [\\/]* | ?:[\\/]*)
32628 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
32629 ;;
32630 *)
32631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32632for as_dir in $PATH
32633do
32634 IFS=$as_save_IFS
32635 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032636 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32638 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032640 break 2
32641 fi
32642done
cristy8b350f62009-11-15 23:12:43 +000032643 done
cristy3ed852e2009-09-05 21:47:34 +000032644IFS=$as_save_IFS
32645
32646 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
32647 ;;
32648esac
32649fi
32650MANDelegate=$ac_cv_path_MANDelegate
32651if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032653$as_echo "$MANDelegate" >&6; }
32654else
cristy8b350f62009-11-15 23:12:43 +000032655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032656$as_echo "no" >&6; }
32657fi
32658
32659
32660# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
32661set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032663$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032664if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032665 $as_echo_n "(cached) " >&6
32666else
32667 case $MPEGDecodeDelegate in
32668 [\\/]* | ?:[\\/]*)
32669 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
32670 ;;
32671 *)
32672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32673for as_dir in $PATH
32674do
32675 IFS=$as_save_IFS
32676 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032677 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32679 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032681 break 2
32682 fi
32683done
cristy8b350f62009-11-15 23:12:43 +000032684 done
cristy3ed852e2009-09-05 21:47:34 +000032685IFS=$as_save_IFS
32686
32687 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
32688 ;;
32689esac
32690fi
32691MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
32692if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032694$as_echo "$MPEGDecodeDelegate" >&6; }
32695else
cristy8b350f62009-11-15 23:12:43 +000032696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032697$as_echo "no" >&6; }
32698fi
32699
32700
32701# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
32702set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032704$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032705if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032706 $as_echo_n "(cached) " >&6
32707else
32708 case $MPEGEncodeDelegate in
32709 [\\/]* | ?:[\\/]*)
32710 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
32711 ;;
32712 *)
32713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32714for as_dir in $PATH
32715do
32716 IFS=$as_save_IFS
32717 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032718 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32720 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032722 break 2
32723 fi
32724done
cristy8b350f62009-11-15 23:12:43 +000032725 done
cristy3ed852e2009-09-05 21:47:34 +000032726IFS=$as_save_IFS
32727
32728 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
32729 ;;
32730esac
32731fi
32732MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
32733if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032735$as_echo "$MPEGEncodeDelegate" >&6; }
32736else
cristy8b350f62009-11-15 23:12:43 +000032737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032738$as_echo "no" >&6; }
32739fi
32740
32741
cristy935c86e2010-06-05 23:50:07 +000032742# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
32743set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
32744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32745$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032746if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000032747 $as_echo_n "(cached) " >&6
32748else
32749 case $MrSIDDecodeDelegate in
32750 [\\/]* | ?:[\\/]*)
32751 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
32752 ;;
32753 *)
32754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32755for as_dir in $PATH
32756do
32757 IFS=$as_save_IFS
32758 test -z "$as_dir" && as_dir=.
32759 for ac_exec_ext in '' $ac_executable_extensions; do
32760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32761 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32763 break 2
32764 fi
32765done
32766 done
32767IFS=$as_save_IFS
32768
32769 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
32770 ;;
32771esac
32772fi
32773MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
32774if test -n "$MrSIDDecodeDelegate"; then
32775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
32776$as_echo "$MrSIDDecodeDelegate" >&6; }
32777else
32778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32779$as_echo "no" >&6; }
32780fi
32781
32782
cristy3ed852e2009-09-05 21:47:34 +000032783# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
32784set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032786$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032787if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032788 $as_echo_n "(cached) " >&6
32789else
32790 case $MVDelegate in
32791 [\\/]* | ?:[\\/]*)
32792 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
32793 ;;
32794 *)
32795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32796for as_dir in $PATH
32797do
32798 IFS=$as_save_IFS
32799 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032800 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32802 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032804 break 2
32805 fi
32806done
cristy8b350f62009-11-15 23:12:43 +000032807 done
cristy3ed852e2009-09-05 21:47:34 +000032808IFS=$as_save_IFS
32809
32810 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
32811 ;;
32812esac
32813fi
32814MVDelegate=$ac_cv_path_MVDelegate
32815if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032817$as_echo "$MVDelegate" >&6; }
32818else
cristy8b350f62009-11-15 23:12:43 +000032819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032820$as_echo "no" >&6; }
32821fi
32822
32823
32824# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
32825set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032827$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032828if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032829 $as_echo_n "(cached) " >&6
32830else
32831 case $PCLDelegate in
32832 [\\/]* | ?:[\\/]*)
32833 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
32834 ;;
32835 *)
32836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32837for as_dir in $PATH
32838do
32839 IFS=$as_save_IFS
32840 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032841 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32843 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032845 break 2
32846 fi
32847done
cristy8b350f62009-11-15 23:12:43 +000032848 done
cristy3ed852e2009-09-05 21:47:34 +000032849IFS=$as_save_IFS
32850
32851 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
32852 ;;
32853esac
32854fi
32855PCLDelegate=$ac_cv_path_PCLDelegate
32856if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032858$as_echo "$PCLDelegate" >&6; }
32859else
cristy8b350f62009-11-15 23:12:43 +000032860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032861$as_echo "no" >&6; }
32862fi
32863
32864
32865# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
32866set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032868$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032869if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032870 $as_echo_n "(cached) " >&6
32871else
32872 case $PGPDecodeDelegate in
32873 [\\/]* | ?:[\\/]*)
32874 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
32875 ;;
32876 *)
32877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32878for as_dir in $PATH
32879do
32880 IFS=$as_save_IFS
32881 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032882 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32884 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032886 break 2
32887 fi
32888done
cristy8b350f62009-11-15 23:12:43 +000032889 done
cristy3ed852e2009-09-05 21:47:34 +000032890IFS=$as_save_IFS
32891
32892 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
32893 ;;
32894esac
32895fi
32896PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
32897if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032899$as_echo "$PGPDecodeDelegate" >&6; }
32900else
cristy8b350f62009-11-15 23:12:43 +000032901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032902$as_echo "no" >&6; }
32903fi
32904
32905
32906# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
32907set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032909$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032910if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032911 $as_echo_n "(cached) " >&6
32912else
32913 case $POVDelegate in
32914 [\\/]* | ?:[\\/]*)
32915 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
32916 ;;
32917 *)
32918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32919for as_dir in $PATH
32920do
32921 IFS=$as_save_IFS
32922 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032923 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32925 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032927 break 2
32928 fi
32929done
cristy8b350f62009-11-15 23:12:43 +000032930 done
cristy3ed852e2009-09-05 21:47:34 +000032931IFS=$as_save_IFS
32932
32933 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
32934 ;;
32935esac
32936fi
32937POVDelegate=$ac_cv_path_POVDelegate
32938if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032940$as_echo "$POVDelegate" >&6; }
32941else
cristy8b350f62009-11-15 23:12:43 +000032942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032943$as_echo "no" >&6; }
32944fi
32945
32946
32947for ac_prog in gsx gsc "$PSDelegateDefault"
32948do
32949 # Extract the first word of "$ac_prog", so it can be a program name with args.
32950set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032952$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032953if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032954 $as_echo_n "(cached) " >&6
32955else
32956 case $PSDelegate in
32957 [\\/]* | ?:[\\/]*)
32958 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
32959 ;;
32960 *)
32961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32962for as_dir in $PATH
32963do
32964 IFS=$as_save_IFS
32965 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032966 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32968 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032970 break 2
32971 fi
32972done
cristy8b350f62009-11-15 23:12:43 +000032973 done
cristy3ed852e2009-09-05 21:47:34 +000032974IFS=$as_save_IFS
32975
32976 ;;
32977esac
32978fi
32979PSDelegate=$ac_cv_path_PSDelegate
32980if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032982$as_echo "$PSDelegate" >&6; }
32983else
cristy8b350f62009-11-15 23:12:43 +000032984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032985$as_echo "no" >&6; }
32986fi
32987
32988
32989 test -n "$PSDelegate" && break
32990done
32991test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
32992
32993# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
32994set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032996$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032997if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032998 $as_echo_n "(cached) " >&6
32999else
33000 case $RLEEncodeDelegate in
33001 [\\/]* | ?:[\\/]*)
33002 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33003 ;;
33004 *)
33005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33006for as_dir in $PATH
33007do
33008 IFS=$as_save_IFS
33009 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033010 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33012 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033014 break 2
33015 fi
33016done
cristy8b350f62009-11-15 23:12:43 +000033017 done
cristy3ed852e2009-09-05 21:47:34 +000033018IFS=$as_save_IFS
33019
33020 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33021 ;;
33022esac
33023fi
33024RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33025if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033027$as_echo "$RLEEncodeDelegate" >&6; }
33028else
cristy8b350f62009-11-15 23:12:43 +000033029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033030$as_echo "no" >&6; }
33031fi
33032
33033
33034# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33035set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033037$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033038if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033039 $as_echo_n "(cached) " >&6
33040else
33041 case $RMDelegate in
33042 [\\/]* | ?:[\\/]*)
33043 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33044 ;;
33045 *)
33046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33047for as_dir in $PATH
33048do
33049 IFS=$as_save_IFS
33050 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033051 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33053 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033055 break 2
33056 fi
33057done
cristy8b350f62009-11-15 23:12:43 +000033058 done
cristy3ed852e2009-09-05 21:47:34 +000033059IFS=$as_save_IFS
33060
33061 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33062 ;;
33063esac
33064fi
33065RMDelegate=$ac_cv_path_RMDelegate
33066if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033068$as_echo "$RMDelegate" >&6; }
33069else
cristy8b350f62009-11-15 23:12:43 +000033070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033071$as_echo "no" >&6; }
33072fi
33073
33074
cristy4689cf02010-02-17 21:15:45 +000033075# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33076set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33078$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033079if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033080 $as_echo_n "(cached) " >&6
33081else
33082 case $RSVGDecodeDelegate in
33083 [\\/]* | ?:[\\/]*)
33084 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33085 ;;
33086 *)
33087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33088for as_dir in $PATH
33089do
33090 IFS=$as_save_IFS
33091 test -z "$as_dir" && as_dir=.
33092 for ac_exec_ext in '' $ac_executable_extensions; do
33093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33094 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33096 break 2
33097 fi
33098done
33099 done
33100IFS=$as_save_IFS
33101
33102 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33103 ;;
33104esac
33105fi
33106RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33107if test -n "$RSVGDecodeDelegate"; then
33108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33109$as_echo "$RSVGDecodeDelegate" >&6; }
33110else
33111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33112$as_echo "no" >&6; }
33113fi
33114
33115
cristy3ed852e2009-09-05 21:47:34 +000033116# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33117set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033119$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033120if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033121 $as_echo_n "(cached) " >&6
33122else
33123 case $SCANDecodeDelegate in
33124 [\\/]* | ?:[\\/]*)
33125 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33126 ;;
33127 *)
33128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33129for as_dir in $PATH
33130do
33131 IFS=$as_save_IFS
33132 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033133 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33135 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033137 break 2
33138 fi
33139done
cristy8b350f62009-11-15 23:12:43 +000033140 done
cristy3ed852e2009-09-05 21:47:34 +000033141IFS=$as_save_IFS
33142
33143 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33144 ;;
33145esac
33146fi
33147SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33148if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033150$as_echo "$SCANDecodeDelegate" >&6; }
33151else
cristy8b350f62009-11-15 23:12:43 +000033152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033153$as_echo "no" >&6; }
33154fi
33155
33156
33157# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33158set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033160$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033161if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033162 $as_echo_n "(cached) " >&6
33163else
33164 case $TXTDelegate in
33165 [\\/]* | ?:[\\/]*)
33166 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33167 ;;
33168 *)
33169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33170for as_dir in $PATH
33171do
33172 IFS=$as_save_IFS
33173 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033174 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33176 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033178 break 2
33179 fi
33180done
cristy8b350f62009-11-15 23:12:43 +000033181 done
cristy3ed852e2009-09-05 21:47:34 +000033182IFS=$as_save_IFS
33183
33184 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33185 ;;
33186esac
33187fi
33188TXTDelegate=$ac_cv_path_TXTDelegate
33189if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033191$as_echo "$TXTDelegate" >&6; }
33192else
cristy8b350f62009-11-15 23:12:43 +000033193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033194$as_echo "no" >&6; }
33195fi
33196
33197
cristy5ac9ac82010-07-29 13:24:24 +000033198# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33199set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33201$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033202if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000033203 $as_echo_n "(cached) " >&6
33204else
33205 case $UniconvertorDelegate in
33206 [\\/]* | ?:[\\/]*)
33207 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33208 ;;
33209 *)
33210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33211for as_dir in $PATH
33212do
33213 IFS=$as_save_IFS
33214 test -z "$as_dir" && as_dir=.
33215 for ac_exec_ext in '' $ac_executable_extensions; do
33216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33217 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33219 break 2
33220 fi
33221done
33222 done
33223IFS=$as_save_IFS
33224
33225 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33226 ;;
33227esac
33228fi
33229UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33230if test -n "$UniconvertorDelegate"; then
33231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33232$as_echo "$UniconvertorDelegate" >&6; }
33233else
33234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33235$as_echo "no" >&6; }
33236fi
33237
33238
cristy3ed852e2009-09-05 21:47:34 +000033239# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33240set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033242$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033243if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033244 $as_echo_n "(cached) " >&6
33245else
33246 case $WMFDecodeDelegate in
33247 [\\/]* | ?:[\\/]*)
33248 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33249 ;;
33250 *)
33251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33252for as_dir in $PATH
33253do
33254 IFS=$as_save_IFS
33255 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033256 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33258 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033260 break 2
33261 fi
33262done
cristy8b350f62009-11-15 23:12:43 +000033263 done
cristy3ed852e2009-09-05 21:47:34 +000033264IFS=$as_save_IFS
33265
33266 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33267 ;;
33268esac
33269fi
33270WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33271if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033273$as_echo "$WMFDecodeDelegate" >&6; }
33274else
cristy8b350f62009-11-15 23:12:43 +000033275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033276$as_echo "no" >&6; }
33277fi
33278
33279
33280# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33281set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033283$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033284if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033285 $as_echo_n "(cached) " >&6
33286else
33287 case $WWWDecodeDelegate in
33288 [\\/]* | ?:[\\/]*)
33289 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33290 ;;
33291 *)
33292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33293for as_dir in $PATH
33294do
33295 IFS=$as_save_IFS
33296 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033297 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33299 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033301 break 2
33302 fi
33303done
cristy8b350f62009-11-15 23:12:43 +000033304 done
cristy3ed852e2009-09-05 21:47:34 +000033305IFS=$as_save_IFS
33306
33307 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33308 ;;
33309esac
33310fi
33311WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33312if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033314$as_echo "$WWWDecodeDelegate" >&6; }
33315else
cristy8b350f62009-11-15 23:12:43 +000033316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033317$as_echo "no" >&6; }
33318fi
33319
33320
33321# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33322set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033324$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033325if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033326 $as_echo_n "(cached) " >&6
33327else
33328 case $XPSDelegate in
33329 [\\/]* | ?:[\\/]*)
33330 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33331 ;;
33332 *)
33333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33334for as_dir in $PATH
33335do
33336 IFS=$as_save_IFS
33337 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033338 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33340 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033342 break 2
33343 fi
33344done
cristy8b350f62009-11-15 23:12:43 +000033345 done
cristy3ed852e2009-09-05 21:47:34 +000033346IFS=$as_save_IFS
33347
33348 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33349 ;;
33350esac
33351fi
33352XPSDelegate=$ac_cv_path_XPSDelegate
33353if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033355$as_echo "$XPSDelegate" >&6; }
33356else
cristy8b350f62009-11-15 23:12:43 +000033357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033358$as_echo "no" >&6; }
33359fi
33360
33361
33362# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33363set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033365$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033366if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033367 $as_echo_n "(cached) " >&6
33368else
33369 case $ZipDelegate in
33370 [\\/]* | ?:[\\/]*)
33371 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33372 ;;
33373 *)
33374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33375for as_dir in $PATH
33376do
33377 IFS=$as_save_IFS
33378 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033379 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33381 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033383 break 2
33384 fi
33385done
cristy8b350f62009-11-15 23:12:43 +000033386 done
cristy3ed852e2009-09-05 21:47:34 +000033387IFS=$as_save_IFS
33388
33389 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33390 ;;
33391esac
33392fi
33393ZipDelegate=$ac_cv_path_ZipDelegate
33394if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033396$as_echo "$ZipDelegate" >&6; }
33397else
cristy8b350f62009-11-15 23:12:43 +000033398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033399$as_echo "no" >&6; }
33400fi
33401
33402
33403
33404# Prefer lpr to lp; lp needs options tacked on.
33405if test "$LPRDelegate" != no; then
33406 PrintDelegate="$LPRDelegate"
33407else
33408 PrintDelegate="$LPDelegate -c -s"
33409fi
33410
33411
33412# Installed ImageMagick utiltity paths
33413ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33414DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33415MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33416
33417# Set delegate booleans
33418have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33419have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33420have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33421have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33422have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000033423have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033424have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33425have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033426have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33427have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33428
33429#
33430# Test for font directories
33431#
33432type_include_files=''
33433
cristy430a7312010-01-21 20:44:04 +000033434# Dejavu fonts.
33435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33436$as_echo_n "checking for Dejavu fonts directory... " >&6; }
33437dejavu_font_dir=''
33438if test "${with_dejavu_font_dir}" != 'default'; then
33439 dejavu_font_dir="${with_dejavu_font_dir}/"
33440else
33441 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33442 if test -f "${font_dir}DejaVuSerif.ttf"; then
33443 dejavu_font_dir="${font_dir}"
33444 break 1
33445 fi
33446 done
33447fi
33448if test "${dejavu_font_dir}x" != 'x'; then
33449 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
33450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
33451$as_echo "$dejavu_font_dir" >&6; }
33452else
33453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
33454$as_echo "not found!" >&6; };
33455fi
33456
33457
cristy3ed852e2009-09-05 21:47:34 +000033458# Windows
33459windows_font_dir=''
33460if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
33461 windows_font_dir="${with_windows_font_dir}/"
33462fi
cristy430a7312010-01-21 20:44:04 +000033463if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033464 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
33465 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
33466 fi
33467 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
33468 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
33469 fi
33470 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
33471 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
33472 fi
33473fi
cristy430a7312010-01-21 20:44:04 +000033474if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033475 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
33476fi
33477
33478
33479# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000033480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000033481$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
33482ghostscript_font_dir=''
33483if test "${with_gs_font_dir}" != 'default'; then
33484 ghostscript_font_dir="${with_gs_font_dir}/"
33485else
33486 if test "${native_win32_build}" = 'yes'; then
33487 # Native Windows Build
33488 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
33489 if test -f "${font_dir}a010013l.pfb"; then
33490 ghostscript_font_dir="$font_dir"
33491 break 1
33492 fi
33493 done
33494 if test "${PSDelegate}" != 'gswin32c'; then
33495 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
33496 fi
33497 else
33498 # Linux / Mac OS X / Unix Build
33499 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
33500 if test -f "${font_dir}a010013l.pfb"; then
33501 ghostscript_font_dir="${font_dir}"
33502 break 1
33503 fi
33504 done
33505 if test "${ghostscript_font_dir}x" = 'x'; then
33506 if test "$PSDelegate" != 'gs'; then
33507 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
33508 fi
33509 fi
33510 fi
33511fi
33512if test "${ghostscript_font_dir}x" != 'x'; then
33513 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000033514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000033515$as_echo "$ghostscript_font_dir" >&6; }
33516else
cristy8b350f62009-11-15 23:12:43 +000033517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000033518$as_echo "not found!" >&6; };
33519fi
33520
33521case "${build_os}" in
33522 mingw* )
33523 PSDelegate=`$WinPathScript "$PSDelegate" 1`
33524 ;;
33525esac
33526
33527
33528
33529#
33530# Handle case where user doesn't want frozen paths
33531#
33532if test "$with_frozenpaths" != 'yes'; then
33533 # Re-set delegate definitions to default (no paths)
33534 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033535 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
33536 BZIPDelegate="$BZIPDelegateDefault"
33537 BrowseDelegate="$BrowseDelegateDefault"
33538 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
33539 CatDelegate="$CatDelegateDefault"
33540 ConvertDelegate="$ConvertDelegateDefault"
33541 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
33542 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
33543 EchoDelegate="$EchoDelegateDefault"
33544 EditorDelegate="$EditorDelegateDefault"
33545 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
33546 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
33547 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
33548 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
33549 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
33550 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
33551 LPDelegate="$LPDelegateDefault"
33552 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
33553 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
33554 LaunchDelegate="$LaunchDelegateDefault"
33555 MANDelegate="$MANDelegateDefault"
33556 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
33557 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033558 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000033559 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
33560 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033561 PCLDelegate="$PCLDelegateDefault"
33562 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
33563 POVDelegate="$POVDelegateDefault"
33564 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033565 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
33566 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000033567 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033568 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
33569 ShowImageDelegate="$ShowImageDelegateDefault"
33570 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000033571 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033572 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
33573 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
33574 XPSDelegate="$XPSDelegateDefault"
33575 ZipDelegate="$ZipDelegateDefault"
33576fi
33577
33578# Delegate substitutions
33579
33580
33581
33582
33583
33584
33585
33586
33587
33588
33589
33590
33591
33592
33593
33594
33595
33596
33597
33598
33599
33600
33601
33602
33603
33604
33605
33606
33607
33608
33609
33610
33611
33612
33613
33614
33615
33616
33617
33618
33619
33620
33621#
33622# RPM support.
33623#
33624RPM=''
33625for ac_prog in gnutar gtar tar
33626do
33627 # Extract the first word of "$ac_prog", so it can be a program name with args.
33628set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033630$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033631if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033632 $as_echo_n "(cached) " >&6
33633else
33634 if test -n "$TAR"; then
33635 ac_cv_prog_TAR="$TAR" # Let the user override the test.
33636else
33637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33638for as_dir in $PATH
33639do
33640 IFS=$as_save_IFS
33641 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033642 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33644 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033646 break 2
33647 fi
33648done
cristy8b350f62009-11-15 23:12:43 +000033649 done
cristy3ed852e2009-09-05 21:47:34 +000033650IFS=$as_save_IFS
33651
33652fi
33653fi
33654TAR=$ac_cv_prog_TAR
33655if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000033656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000033657$as_echo "$TAR" >&6; }
33658else
cristy8b350f62009-11-15 23:12:43 +000033659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033660$as_echo "no" >&6; }
33661fi
33662
33663
33664 test -n "$TAR" && break
33665done
33666
33667for ac_prog in perl
33668do
33669 # Extract the first word of "$ac_prog", so it can be a program name with args.
33670set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033672$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033673if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033674 $as_echo_n "(cached) " >&6
33675else
33676 if test -n "$PERL"; then
33677 ac_cv_prog_PERL="$PERL" # Let the user override the test.
33678else
33679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33680for as_dir in $PATH
33681do
33682 IFS=$as_save_IFS
33683 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033684 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33686 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033688 break 2
33689 fi
33690done
cristy8b350f62009-11-15 23:12:43 +000033691 done
cristy3ed852e2009-09-05 21:47:34 +000033692IFS=$as_save_IFS
33693
33694fi
33695fi
33696PERL=$ac_cv_prog_PERL
33697if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000033698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033699$as_echo "$PERL" >&6; }
33700else
cristy8b350f62009-11-15 23:12:43 +000033701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033702$as_echo "no" >&6; }
33703fi
33704
33705
33706 test -n "$PERL" && break
33707done
33708
33709for ac_prog in rpmbuild rpm
33710do
33711 # Extract the first word of "$ac_prog", so it can be a program name with args.
33712set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033714$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033715if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033716 $as_echo_n "(cached) " >&6
33717else
33718 if test -n "$RPM"; then
33719 ac_cv_prog_RPM="$RPM" # Let the user override the test.
33720else
33721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33722for as_dir in $PATH
33723do
33724 IFS=$as_save_IFS
33725 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033726 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33728 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033730 break 2
33731 fi
33732done
cristy8b350f62009-11-15 23:12:43 +000033733 done
cristy3ed852e2009-09-05 21:47:34 +000033734IFS=$as_save_IFS
33735
33736fi
33737fi
33738RPM=$ac_cv_prog_RPM
33739if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000033740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000033741$as_echo "$RPM" >&6; }
33742else
cristy8b350f62009-11-15 23:12:43 +000033743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033744$as_echo "no" >&6; }
33745fi
33746
33747
33748 test -n "$RPM" && break
33749done
33750
33751
cristy73bd4a52010-10-05 11:24:23 +000033752ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
33753
33754
33755AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
33756
33757
33758AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
33759
33760
33761AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
33762
33763
33764 if test "x$RPM" != "x" ; then
33765 RPM_DELEGATE_TRUE=
33766 RPM_DELEGATE_FALSE='#'
33767else
33768 RPM_DELEGATE_TRUE='#'
33769 RPM_DELEGATE_FALSE=
33770fi
33771
cristy3ed852e2009-09-05 21:47:34 +000033772
33773#
33774# 7ZIP support (http://p7zip.sourceforge.net/)
33775#
33776P7ZIP=''
33777for ac_prog in 7za
33778do
33779 # Extract the first word of "$ac_prog", so it can be a program name with args.
33780set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033782$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033783if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033784 $as_echo_n "(cached) " >&6
33785else
33786 if test -n "$P7ZIP"; then
33787 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
33788else
33789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33790for as_dir in $PATH
33791do
33792 IFS=$as_save_IFS
33793 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033794 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33796 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033798 break 2
33799 fi
33800done
cristy8b350f62009-11-15 23:12:43 +000033801 done
cristy3ed852e2009-09-05 21:47:34 +000033802IFS=$as_save_IFS
33803
33804fi
33805fi
33806P7ZIP=$ac_cv_prog_P7ZIP
33807if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000033808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000033809$as_echo "$P7ZIP" >&6; }
33810else
cristy8b350f62009-11-15 23:12:43 +000033811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033812$as_echo "no" >&6; }
33813fi
33814
33815
33816 test -n "$P7ZIP" && break
33817done
33818
33819
cristy73bd4a52010-10-05 11:24:23 +000033820 if test "x$P7ZIP" != "x" ; then
33821 P7ZIP_DELEGATE_TRUE=
33822 P7ZIP_DELEGATE_FALSE='#'
33823else
33824 P7ZIP_DELEGATE_TRUE='#'
33825 P7ZIP_DELEGATE_FALSE=
33826fi
33827
cristy3ed852e2009-09-05 21:47:34 +000033828
33829#
33830# ZIP support (http://www.info-zip.org/Zip.html)
33831#
33832ZIP=''
33833for ac_prog in zip
33834do
33835 # Extract the first word of "$ac_prog", so it can be a program name with args.
33836set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033838$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033839if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033840 $as_echo_n "(cached) " >&6
33841else
33842 if test -n "$ZIP"; then
33843 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
33844else
33845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33846for as_dir in $PATH
33847do
33848 IFS=$as_save_IFS
33849 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033850 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33852 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033854 break 2
33855 fi
33856done
cristy8b350f62009-11-15 23:12:43 +000033857 done
cristy3ed852e2009-09-05 21:47:34 +000033858IFS=$as_save_IFS
33859
33860fi
33861fi
33862ZIP=$ac_cv_prog_ZIP
33863if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000033864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000033865$as_echo "$ZIP" >&6; }
33866else
cristy8b350f62009-11-15 23:12:43 +000033867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033868$as_echo "no" >&6; }
33869fi
33870
33871
33872 test -n "$ZIP" && break
33873done
33874
33875
cristy73bd4a52010-10-05 11:24:23 +000033876 if test "x$ZIP" != "x" ; then
33877 ZIP_DELEGATE_TRUE=
33878 ZIP_DELEGATE_FALSE='#'
33879else
33880 ZIP_DELEGATE_TRUE='#'
33881 ZIP_DELEGATE_FALSE=
33882fi
33883
cristy3ed852e2009-09-05 21:47:34 +000033884
33885#
33886# GhostPCL related configuration.
33887#
33888PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000033889PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000033890PCLMonoDevice=pbmraw
33891if test -z "$PCLVersion"; then
33892 PCLVersion='unknown'
33893fi
33894if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033896$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033898$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000033899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000033900$as_echo "" >&6; }
33901 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000033902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033903$as_echo_n "checking for pcl color device... " >&6; }
33904 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33905 :
33906 else
33907 PCLColorDevice=ppmraw
33908 fi
cristy8b350f62009-11-15 23:12:43 +000033909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033910$as_echo "$PCLColorDevice" >&6; }
33911
33912 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000033913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033914$as_echo_n "checking for pcl CMYK device... " >&6; }
33915 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33916 :
33917 else
33918 PCLCMYKDevice=$PCLColorDevice
33919 fi
cristy8b350f62009-11-15 23:12:43 +000033920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033921$as_echo "$PCLCMYKDevice" >&6; }
33922
33923 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000033924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033925$as_echo_n "checking for pcl mono device... " >&6; }
33926 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33927 :
33928 else
33929 PCLMonoDevice=$PCLColorDevice
33930 fi
cristy8b350f62009-11-15 23:12:43 +000033931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033932$as_echo "$PCLMonoDevice" >&6; }
33933fi
33934
33935
33936
33937
33938
33939
33940#
33941# GhostXPS related configuration.
33942#
33943XPSColorDevice=ppmraw
33944XPSCMYKDevice=bmpsep8
33945XPSMonoDevice=pbmraw
33946if test -z "$XPSVersion"; then
33947 XPSVersion='unknown'
33948fi
33949if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033951$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000033953$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000033954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000033955$as_echo "" >&6; }
33956 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000033957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033958$as_echo_n "checking for xps color device... " >&6; }
33959 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33960 :
33961 else
33962 XPSColorDevice=ppmraw
33963 fi
cristy8b350f62009-11-15 23:12:43 +000033964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033965$as_echo "$XPSColorDevice" >&6; }
33966
33967 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000033968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033969$as_echo_n "checking for xps CMYK device... " >&6; }
33970 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33971 :
33972 else
33973 XPSCMYKDevice=$XPSColorDevice
33974 fi
cristy8b350f62009-11-15 23:12:43 +000033975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033976$as_echo "$XPSCMYKDevice" >&6; }
33977
33978 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000033979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033980$as_echo_n "checking for xps mono device... " >&6; }
33981 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33982 :
33983 else
33984 XPSMonoDevice=$XPSColorDevice
33985 fi
cristy8b350f62009-11-15 23:12:43 +000033986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033987$as_echo "$XPSMonoDevice" >&6; }
33988fi
33989
33990
33991
33992
33993
33994
33995#
33996# Ghostscript related configuration.
33997#
cristya97426c2011-02-04 01:41:27 +000033998GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000033999GSColorDevice=pnmraw
34000GSCMYKDevice=pam
34001GSMonoDevice=pbmraw
34002GSPDFDevice=pdfwrite
34003GSPSDevice=pswrite
34004GSEPSDevice=epswrite
34005GSVersion='unknown'
34006if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000034008$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034010$as_echo_n "checking for Ghostscript... " >&6; }
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 Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034014$as_echo_n "checking for Ghostscript version... " >&6; }
34015 if GSVersion=`$PSDelegate --version`; then
34016 :
34017 else
34018 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34019 fi
cristy8b350f62009-11-15 23:12:43 +000034020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000034021$as_echo "$GSVersion" >&6; }
34022
34023 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034025$as_echo_n "checking for gs alpha device... " >&6; }
34026 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34027 :
34028 else
34029 GSAlphaDevice=pnmraw
34030 fi
cristy8b350f62009-11-15 23:12:43 +000034031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034032$as_echo "$GSAlphaDevice" >&6; }
34033
34034 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034036$as_echo_n "checking for gs color device... " >&6; }
34037 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34038 :
34039 else
34040 GSColorDevice=pnmraw
34041 fi
cristy8b350f62009-11-15 23:12:43 +000034042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034043$as_echo "$GSColorDevice" >&6; }
34044
34045 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034047$as_echo_n "checking for gs CMYK device... " >&6; }
34048 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34049 :
34050 else
34051 GSCMYKDevice=bmpsep8
34052 fi
cristy8b350f62009-11-15 23:12:43 +000034053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034054$as_echo "$GSCMYKDevice" >&6; }
34055
34056 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034058$as_echo_n "checking for gs mono device... " >&6; }
34059 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34060 :
34061 else
34062 GSMonoDevice=$GSColorDevice
34063 fi
cristy8b350f62009-11-15 23:12:43 +000034064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034065$as_echo "$GSMonoDevice" >&6; }
34066
34067 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034069$as_echo_n "checking for gs PDF writing device... " >&6; }
34070 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34071 :
34072 else
34073 GSPDFDevice=nodevice
34074 fi
cristy8b350f62009-11-15 23:12:43 +000034075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034076$as_echo "$GSPDFDevice" >&6; }
34077
34078 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034080$as_echo_n "checking for gs PS writing device... " >&6; }
34081 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34082 :
34083 else
34084 GSPSDevice=nodevice
34085 fi
cristy8b350f62009-11-15 23:12:43 +000034086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034087$as_echo "$GSPSDevice" >&6; }
34088
34089 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034091$as_echo_n "checking for gs EPS writing device... " >&6; }
34092 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34093 :
34094 else
34095 GSEPSDevice=nodevice
34096 fi
cristy8b350f62009-11-15 23:12:43 +000034097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034098$as_echo "$GSEPSDevice" >&6; }
34099fi
34100
34101
34102
34103
34104
34105
34106
34107
34108
34109
34110#
34111# PerlMagick-related configuration
34112#
34113
34114# Look for PERL if PerlMagick requested
34115# If name/path of desired PERL interpreter is specified, look for that one first
34116have_perl='no'
34117if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000034118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000034119$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034121$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000034122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000034123$as_echo "" >&6; }
34124 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034126$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034127if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034128 $as_echo_n "(cached) " >&6
34129else
34130 ac_cv_path_PERL="$with_perl"
34131fi
cristy8b350f62009-11-15 23:12:43 +000034132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034133$as_echo "$ac_cv_path_PERL" >&6; };
34134 PERL=$ac_cv_path_PERL
34135 have_perl="$ac_cv_path_PERL"
34136 else
34137 for ac_prog in perl perl5
34138do
34139 # Extract the first word of "$ac_prog", so it can be a program name with args.
34140set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034142$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034143if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034144 $as_echo_n "(cached) " >&6
34145else
34146 case $PERL in
34147 [\\/]* | ?:[\\/]*)
34148 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34149 ;;
34150 *)
34151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34152for as_dir in $PATH
34153do
34154 IFS=$as_save_IFS
34155 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034156 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34158 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034160 break 2
34161 fi
34162done
cristy8b350f62009-11-15 23:12:43 +000034163 done
cristy3ed852e2009-09-05 21:47:34 +000034164IFS=$as_save_IFS
34165
34166 ;;
34167esac
34168fi
34169PERL=$ac_cv_path_PERL
34170if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034172$as_echo "$PERL" >&6; }
34173else
cristy8b350f62009-11-15 23:12:43 +000034174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034175$as_echo "no" >&6; }
34176fi
34177
34178
34179 test -n "$PERL" && break
34180done
34181 if test "$ac_cv_path_PERL"; then
34182 have_perl="$ac_cv_path_PERL"
34183 fi
34184 fi
34185fi
34186
cristy949301e2010-01-06 01:38:40 +000034187if test "$with_perl" != 'yes' ; then
34188 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34189fi
34190
34191PERL_SUPPORTS_DESTDIR='no'
34192
cristy3ed852e2009-09-05 21:47:34 +000034193with_perl_static='no'
34194with_perl_dynamic='no'
34195if test "$have_perl" != 'no'; then
34196 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34197 with_perl_static='yes'
34198 fi
34199 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34200 with_perl_dynamic='yes'
34201 fi
34202 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000034203
34204
34205
34206
34207 if test -n "$PERL"; then :
34208
34209 ax_perl_version="5.8.1"
34210
34211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34212$as_echo_n "checking for perl version... " >&6; }
34213
34214 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34215
34216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34217$as_echo "$perl_version" >&6; }
34218
34219 PERL_VERSION=$perl_version
34220
34221
34222
34223
34224
34225 # Used to indicate true or false condition
34226 ax_compare_version=false
34227
34228 # Convert the two version strings to be compared into a format that
34229 # allows a simple string comparison. The end result is that a version
34230 # string of the form 1.12.5-r617 will be converted to the form
34231 # 0001001200050617. In other words, each number is zero padded to four
34232 # digits, and non digits are removed.
34233
34234 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34235 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34236 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34237 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34238 -e 's/[^0-9]//g'`
34239
34240
34241 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34242 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34243 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34244 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34245 -e 's/[^0-9]//g'`
34246
34247
34248 ax_compare_version=`echo "x$ax_compare_version_A
34249x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34250
34251
34252
34253 if test "$ax_compare_version" = "true" ; then
34254
34255 :
34256 PERL_SUPPORTS_DESTDIR='yes'
34257
34258 else
34259 :
34260 PERL_SUPPORTS_DESTDIR='no'
34261
34262 fi
34263
34264
34265else
34266
34267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34268$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34269 PERL_SUPPORTS_DESTDIR='no'
34270
cristy3ed852e2009-09-05 21:47:34 +000034271fi
cristy73bd4a52010-10-05 11:24:23 +000034272
34273fi
34274 if test "$have_perl" != 'no'; then
34275 WITH_PERL_TRUE=
34276 WITH_PERL_FALSE='#'
34277else
34278 WITH_PERL_TRUE='#'
34279 WITH_PERL_FALSE=
34280fi
34281
34282 if test $with_perl_static = 'yes'; then
34283 WITH_PERL_STATIC_TRUE=
34284 WITH_PERL_STATIC_FALSE='#'
34285else
34286 WITH_PERL_STATIC_TRUE='#'
34287 WITH_PERL_STATIC_FALSE=
34288fi
34289
34290 if test $with_perl_dynamic = 'yes'; then
34291 WITH_PERL_DYNAMIC_TRUE=
34292 WITH_PERL_DYNAMIC_FALSE='#'
34293else
34294 WITH_PERL_DYNAMIC_TRUE='#'
34295 WITH_PERL_DYNAMIC_FALSE=
34296fi
34297
cristy3ed852e2009-09-05 21:47:34 +000034298
34299
34300# Determine path to pick up MagickCore library from for use with building PerlMagick
34301MAGICKCORE_PATH="${LIB_DIR}"
34302if test $with_perl_static = 'yes'; then
34303 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34304 libtool_objdir=$objdir
34305
34306 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000034307 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000034308fi
34309
34310
34311# Create a simple string containing format names for all delegate libraries
34312DELEGATES=''
34313if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34314if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34315if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34316if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34317if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34318if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34319if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34320if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34321if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34322if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34323if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34324if test "$have_jpeg" = 'yes'; then
34325 DELEGATES="$DELEGATES jpeg";
34326 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34327fi
34328if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000034329if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000034330if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34331if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000034332if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000034333if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34334if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
34335if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
34336if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34337if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34338if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34339if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34340if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34341if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34342
34343
34344
34345#
34346# Handle special compiler flags
34347#
34348
34349# Add '-p' if prof source profiling support enabled
34350if test "$enable_prof" = 'yes'; then
34351 CFLAGS="-p $CFLAGS"
34352 CXXFLAGS="-p $CXXFLAGS"
34353 LDFLAGS="-p $LDFLAGS"
34354fi
34355
34356# Add '-pg' if gprof source profiling support enabled
34357if test "$enable_gprof" = 'yes'; then
34358 CFLAGS="-pg $CFLAGS"
34359 CXXFLAGS="-pg $CXXFLAGS"
34360 LDFLAGS="-pg $LDFLAGS"
34361fi
34362
34363# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34364# This is a gcc-specific feature
34365if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034367$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034368if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034369 $as_echo_n "(cached) " >&6
34370else
34371 ac_check_lib_save_LIBS=$LIBS
34372LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034374/* end confdefs.h. */
34375
34376/* Override any GCC internal prototype to avoid an error.
34377 Use char because int might match the return type of a GCC
34378 builtin and then its argument prototype would still apply. */
34379#ifdef __cplusplus
34380extern "C"
34381#endif
34382char _gcov_init ();
34383int
34384main ()
34385{
34386return _gcov_init ();
34387 ;
34388 return 0;
34389}
34390_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034391if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034392 ac_cv_lib_gcov__gcov_init=yes
34393else
cristy8b350f62009-11-15 23:12:43 +000034394 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034395fi
cristy8b350f62009-11-15 23:12:43 +000034396rm -f core conftest.err conftest.$ac_objext \
34397 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034398LIBS=$ac_check_lib_save_LIBS
34399fi
cristy8b350f62009-11-15 23:12:43 +000034400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034401$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034402if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034403 cat >>confdefs.h <<_ACEOF
34404#define HAVE_LIBGCOV 1
34405_ACEOF
34406
34407 LIBS="-lgcov $LIBS"
34408
34409fi
34410
cristy8b350f62009-11-15 23:12:43 +000034411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034412$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034413if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034414 $as_echo_n "(cached) " >&6
34415else
34416 ac_check_lib_save_LIBS=$LIBS
34417LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034419/* end confdefs.h. */
34420
34421/* Override any GCC internal prototype to avoid an error.
34422 Use char because int might match the return type of a GCC
34423 builtin and then its argument prototype would still apply. */
34424#ifdef __cplusplus
34425extern "C"
34426#endif
34427char __gcov_init ();
34428int
34429main ()
34430{
34431return __gcov_init ();
34432 ;
34433 return 0;
34434}
34435_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034436if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034437 ac_cv_lib_gcov___gcov_init=yes
34438else
cristy8b350f62009-11-15 23:12:43 +000034439 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034440fi
cristy8b350f62009-11-15 23:12:43 +000034441rm -f core conftest.err conftest.$ac_objext \
34442 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034443LIBS=$ac_check_lib_save_LIBS
34444fi
cristy8b350f62009-11-15 23:12:43 +000034445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034446$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034447if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034448 cat >>confdefs.h <<_ACEOF
34449#define HAVE_LIBGCOV 1
34450_ACEOF
34451
34452 LIBS="-lgcov $LIBS"
34453
34454fi
34455
34456 case "$target_os" in
34457 darwin*)
34458 OSX_GCOV_LDFLAG="-Wl,-single_module"
34459 ;;
34460 *)
34461 OSX_GCOV_LDFLAG=""
34462 ;;
34463 esac
34464
34465 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
34466 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
34467 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
34468fi
34469
34470#
34471# Build library dependency list for libMagickCore
34472#
34473
34474MAGICK_LIBLTDL='' # Libltdl for build
34475MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
34476MAGICK_LTDLDEPS='' # extra libltdl dependencies
34477if test "$with_ltdl" != 'no'
34478then
34479 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
34480 MAGICK_API_LIBLTDL='-lltdl'
34481 fi
34482 MAGICK_LIBLTDL=${LIBLTDL}
34483 MAGICK_LTDLDEPS=${LTDLDEPS}
34484fi
34485
34486
34487
34488if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000034489 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 +000034490else
cristyb1860752011-03-14 00:27:46 +000034491 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 +000034492fi
34493
34494
34495#
34496# Remove extraneous spaces from output variables (asthetic)
34497#
34498X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
34499X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
34500X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
34501X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
34502
34503CC=`echo $CC | sed -e 's/ */ /g'`
34504CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
34505CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
34506CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
34507DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
34508DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
34509LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
34510TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34511MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
34512#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34513
34514# Pass only user-provided LIBS as "global" libraries
34515LIBS=$USER_LIBS
34516
34517#AC_SUBST(CPPFLAGS)
34518
34519#AC_SUBST(LDFLAGS)
34520#AC_SUBST(X_PRE_LIBS)
34521#AC_SUBST(X_LIBS)
34522#AC_SUBST(X_EXTRA_LIBS)
34523
34524MAGICK_CFLAGS=$CFLAGS
34525MAGICK_CXXFLAGS="$CXXFLAGS"
34526MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
34527MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
34528MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
34529MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
34530
34531
34532
34533
34534
34535
34536
34537
cristyfd9dcd42010-08-08 18:07:02 +000034538
cristy3ed852e2009-09-05 21:47:34 +000034539# Set configured scripts to executable.
34540ac_config_commands="$ac_config_commands default"
34541
34542ac_config_commands="$ac_config_commands MagickCore-config.in"
34543
cristy3ed852e2009-09-05 21:47:34 +000034544ac_config_commands="$ac_config_commands MagickWand-config.in"
34545
cristy3ed852e2009-09-05 21:47:34 +000034546ac_config_commands="$ac_config_commands Magick++-config.in"
34547
34548ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
34549
34550
cristy8b350f62009-11-15 23:12:43 +000034551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000034552$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000034554$as_echo "Update ImageMagick configuration" >&6; }
34555cat >confcache <<\_ACEOF
34556# This file is a shell script that caches the results of configure
34557# tests run on this system so they can be shared between configure
34558# scripts and configure runs, see configure's option --config-cache.
34559# It is not useful on other systems. If it contains results you don't
34560# want to keep, you may remove or edit it.
34561#
34562# config.status only pays attention to the cache file if you give it
34563# the --recheck option to rerun configure.
34564#
34565# `ac_cv_env_foo' variables (set or unset) will be overridden when
34566# loading this file, other *unset* `ac_cv_foo' will be assigned the
34567# following values.
34568
34569_ACEOF
34570
34571# The following way of writing the cache mishandles newlines in values,
34572# but we know of no workaround that is simple, portable, and efficient.
34573# So, we kill variables containing newlines.
34574# Ultrix sh set writes to stderr and can't be redirected directly,
34575# and sets the high bit in the cache file unless we assign to the vars.
34576(
34577 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34578 eval ac_val=\$$ac_var
34579 case $ac_val in #(
34580 *${as_nl}*)
34581 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000034582 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000034583$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34584 esac
34585 case $ac_var in #(
34586 _ | IFS | as_nl) ;; #(
34587 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000034588 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000034589 esac ;;
34590 esac
34591 done
34592
34593 (set) 2>&1 |
34594 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34595 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000034596 # `set' does not quote correctly, so add quotes: double-quote
34597 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000034598 sed -n \
34599 "s/'/'\\\\''/g;
34600 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34601 ;; #(
34602 *)
34603 # `set' quotes correctly as required by POSIX, so do not add quotes.
34604 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34605 ;;
34606 esac |
34607 sort
34608) |
34609 sed '
34610 /^ac_cv_env_/b end
34611 t clear
34612 :clear
34613 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34614 t end
34615 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34616 :end' >>confcache
34617if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34618 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000034619 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000034620 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034621$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000034622 if test ! -f "$cache_file" || test -h "$cache_file"; then
34623 cat confcache >"$cache_file"
34624 else
34625 case $cache_file in #(
34626 */* | ?:*)
34627 mv -f confcache "$cache_file"$$ &&
34628 mv -f "$cache_file"$$ "$cache_file" ;; #(
34629 *)
34630 mv -f confcache "$cache_file" ;;
34631 esac
34632 fi
34633 fi
cristy3ed852e2009-09-05 21:47:34 +000034634 else
cristy8b350f62009-11-15 23:12:43 +000034635 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034636$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34637 fi
34638fi
34639rm -f confcache
34640
34641test "x$prefix" = xNONE && prefix=$ac_default_prefix
34642# Let make expand exec_prefix.
34643test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34644
34645DEFS=-DHAVE_CONFIG_H
34646
34647ac_libobjs=
34648ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000034649U=
cristy3ed852e2009-09-05 21:47:34 +000034650for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34651 # 1. Remove the extension, and $U if already installed.
34652 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34653 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
34654 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34655 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000034656 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34657 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000034658done
34659LIBOBJS=$ac_libobjs
34660
34661LTLIBOBJS=$ac_ltlibobjs
34662
34663
cristy73bd4a52010-10-05 11:24:23 +000034664 if test -n "$EXEEXT"; then
34665 am__EXEEXT_TRUE=
34666 am__EXEEXT_FALSE='#'
34667else
34668 am__EXEEXT_TRUE='#'
34669 am__EXEEXT_FALSE=
34670fi
cristy3ed852e2009-09-05 21:47:34 +000034671
cristy73bd4a52010-10-05 11:24:23 +000034672if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034673 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034674Usually this means the macro was only invoked conditionally." "$LINENO" 5
34675fi
34676if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034677 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034678Usually this means the macro was only invoked conditionally." "$LINENO" 5
34679fi
34680if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034681 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034682Usually this means the macro was only invoked conditionally." "$LINENO" 5
34683fi
34684if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034685 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034686Usually this means the macro was only invoked conditionally." "$LINENO" 5
34687fi
34688if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034689 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034690Usually this means the macro was only invoked conditionally." "$LINENO" 5
34691fi
34692if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034693 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034694Usually this means the macro was only invoked conditionally." "$LINENO" 5
34695fi
34696if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034697 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034698Usually this means the macro was only invoked conditionally." "$LINENO" 5
34699fi
34700if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034701 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034702Usually this means the macro was only invoked conditionally." "$LINENO" 5
34703fi
cristy73bd4a52010-10-05 11:24:23 +000034704if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034705 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034706Usually this means the macro was only invoked conditionally." "$LINENO" 5
34707fi
34708if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034709 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034710Usually this means the macro was only invoked conditionally." "$LINENO" 5
34711fi
34712LT_CONFIG_H=config/config.h
34713
34714 _ltdl_libobjs=
34715 _ltdl_ltlibobjs=
34716 if test -n "$_LT_LIBOBJS"; then
34717 # Remove the extension.
34718 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
34719 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
34720 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
34721 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
34722 done
34723 fi
34724 ltdl_LIBOBJS=$_ltdl_libobjs
34725
34726 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
34727
34728
34729if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034730 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034731Usually this means the macro was only invoked conditionally." "$LINENO" 5
34732fi
34733if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034734 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034735Usually this means the macro was only invoked conditionally." "$LINENO" 5
34736fi
34737if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034738 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034739Usually this means the macro was only invoked conditionally." "$LINENO" 5
34740fi
34741if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034742 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034743Usually this means the macro was only invoked conditionally." "$LINENO" 5
34744fi
34745
34746if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034747 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034748Usually this means the macro was only invoked conditionally." "$LINENO" 5
34749fi
34750if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034751 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034752Usually this means the macro was only invoked conditionally." "$LINENO" 5
34753fi
34754if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034755 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034756Usually this means the macro was only invoked conditionally." "$LINENO" 5
34757fi
34758if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034759 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034760Usually this means the macro was only invoked conditionally." "$LINENO" 5
34761fi
34762if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034763 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034764Usually this means the macro was only invoked conditionally." "$LINENO" 5
34765fi
34766if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034767 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034768Usually this means the macro was only invoked conditionally." "$LINENO" 5
34769fi
34770if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034771 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034772Usually this means the macro was only invoked conditionally." "$LINENO" 5
34773fi
34774if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034775 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034776Usually this means the macro was only invoked conditionally." "$LINENO" 5
34777fi
34778if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034779 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034780Usually this means the macro was only invoked conditionally." "$LINENO" 5
34781fi
34782if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034783 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034784Usually this means the macro was only invoked conditionally." "$LINENO" 5
34785fi
34786if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034787 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034788Usually this means the macro was only invoked conditionally." "$LINENO" 5
34789fi
34790if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034791 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034792Usually this means the macro was only invoked conditionally." "$LINENO" 5
34793fi
34794if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034795 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034796Usually this means the macro was only invoked conditionally." "$LINENO" 5
34797fi
34798if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034799 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034800Usually this means the macro was only invoked conditionally." "$LINENO" 5
34801fi
34802if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034803 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034804Usually this means the macro was only invoked conditionally." "$LINENO" 5
34805fi
34806if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034807 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034808Usually this means the macro was only invoked conditionally." "$LINENO" 5
34809fi
34810if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034811 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034812Usually this means the macro was only invoked conditionally." "$LINENO" 5
34813fi
34814if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034815 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034816Usually this means the macro was only invoked conditionally." "$LINENO" 5
34817fi
34818if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034819 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034820Usually this means the macro was only invoked conditionally." "$LINENO" 5
34821fi
34822if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034823 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034824Usually this means the macro was only invoked conditionally." "$LINENO" 5
34825fi
cristyfbb0ef02010-12-19 02:32:11 +000034826if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
34827 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
34828Usually this means the macro was only invoked conditionally." "$LINENO" 5
34829fi
cristy73bd4a52010-10-05 11:24:23 +000034830if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034831 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034832Usually this means the macro was only invoked conditionally." "$LINENO" 5
34833fi
34834if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034835 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034836Usually this means the macro was only invoked conditionally." "$LINENO" 5
34837fi
34838if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034839 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034840Usually this means the macro was only invoked conditionally." "$LINENO" 5
34841fi
34842if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034843 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034844Usually this means the macro was only invoked conditionally." "$LINENO" 5
34845fi
34846if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034847 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034848Usually this means the macro was only invoked conditionally." "$LINENO" 5
34849fi
cristyb1860752011-03-14 00:27:46 +000034850if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
34851 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
34852Usually this means the macro was only invoked conditionally." "$LINENO" 5
34853fi
cristy73bd4a52010-10-05 11:24:23 +000034854if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034855 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034856Usually this means the macro was only invoked conditionally." "$LINENO" 5
34857fi
34858if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034859 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034860Usually this means the macro was only invoked conditionally." "$LINENO" 5
34861fi
34862if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034863 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034864Usually this means the macro was only invoked conditionally." "$LINENO" 5
34865fi
34866if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034867 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034868Usually this means the macro was only invoked conditionally." "$LINENO" 5
34869fi
34870if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034871 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034872Usually this means the macro was only invoked conditionally." "$LINENO" 5
34873fi
34874if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034875 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034876Usually this means the macro was only invoked conditionally." "$LINENO" 5
34877fi
34878if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034879 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034880Usually this means the macro was only invoked conditionally." "$LINENO" 5
34881fi
34882if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034883 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034884Usually this means the macro was only invoked conditionally." "$LINENO" 5
34885fi
cristy3ed852e2009-09-05 21:47:34 +000034886
cristyda16f162011-02-19 23:52:17 +000034887: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000034888ac_write_fail=0
34889ac_clean_files_save=$ac_clean_files
34890ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000034891{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034892$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034893as_write_fail=0
34894cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000034895#! $SHELL
34896# Generated by $as_me.
34897# Run this file to recreate the current configuration.
34898# Compiler output produced by configure, useful for debugging
34899# configure, is in config.log if it exists.
34900
34901debug=false
34902ac_cs_recheck=false
34903ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000034904
cristy8b350f62009-11-15 23:12:43 +000034905SHELL=\${CONFIG_SHELL-$SHELL}
34906export SHELL
34907_ASEOF
34908cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
34909## -------------------- ##
34910## M4sh Initialization. ##
34911## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000034912
34913# Be more Bourne compatible
34914DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000034915if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000034916 emulate sh
34917 NULLCMD=:
34918 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
34919 # is contrary to our usage. Disable this feature.
34920 alias -g '${1+"$@"}'='"$@"'
34921 setopt NO_GLOB_SUBST
34922else
cristy8b350f62009-11-15 23:12:43 +000034923 case `(set -o) 2>/dev/null` in #(
34924 *posix*) :
34925 set -o posix ;; #(
34926 *) :
34927 ;;
cristy3ed852e2009-09-05 21:47:34 +000034928esac
cristy3ed852e2009-09-05 21:47:34 +000034929fi
34930
34931
cristy3ed852e2009-09-05 21:47:34 +000034932as_nl='
34933'
34934export as_nl
34935# Printing a long string crashes Solaris 7 /usr/bin/printf.
34936as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
34937as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
34938as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000034939# Prefer a ksh shell builtin over an external printf program on Solaris,
34940# but without wasting forks for bash or zsh.
34941if test -z "$BASH_VERSION$ZSH_VERSION" \
34942 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
34943 as_echo='print -r --'
34944 as_echo_n='print -rn --'
34945elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000034946 as_echo='printf %s\n'
34947 as_echo_n='printf %s'
34948else
34949 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
34950 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
34951 as_echo_n='/usr/ucb/echo -n'
34952 else
34953 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
34954 as_echo_n_body='eval
34955 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000034956 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000034957 *"$as_nl"*)
34958 expr "X$arg" : "X\\(.*\\)$as_nl";
34959 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
34960 esac;
34961 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
34962 '
34963 export as_echo_n_body
34964 as_echo_n='sh -c $as_echo_n_body as_echo'
34965 fi
34966 export as_echo_body
34967 as_echo='sh -c $as_echo_body as_echo'
34968fi
34969
34970# The user is always right.
34971if test "${PATH_SEPARATOR+set}" != set; then
34972 PATH_SEPARATOR=:
34973 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
34974 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
34975 PATH_SEPARATOR=';'
34976 }
34977fi
34978
cristy3ed852e2009-09-05 21:47:34 +000034979
34980# IFS
34981# We need space, tab and new line, in precisely that order. Quoting is
34982# there to prevent editors from complaining about space-tab.
34983# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34984# splitting by setting IFS to empty value.)
34985IFS=" "" $as_nl"
34986
34987# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000034988as_myself=
cristy8b350f62009-11-15 23:12:43 +000034989case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000034990 *[\\/]* ) as_myself=$0 ;;
34991 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34992for as_dir in $PATH
34993do
34994 IFS=$as_save_IFS
34995 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034996 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34997 done
cristy3ed852e2009-09-05 21:47:34 +000034998IFS=$as_save_IFS
34999
35000 ;;
35001esac
35002# We did not find ourselves, most probably we were run as `sh COMMAND'
35003# in which case we are not to be found in the path.
35004if test "x$as_myself" = x; then
35005 as_myself=$0
35006fi
35007if test ! -f "$as_myself"; then
35008 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035009 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035010fi
35011
cristy8b350f62009-11-15 23:12:43 +000035012# Unset variables that we do not need and which cause bugs (e.g. in
35013# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35014# suppresses any "Segmentation fault" message there. '((' could
35015# trigger a bug in pdksh 5.2.14.
35016for as_var in BASH_ENV ENV MAIL MAILPATH
35017do eval test x\${$as_var+set} = xset \
35018 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035019done
35020PS1='$ '
35021PS2='> '
35022PS4='+ '
35023
35024# NLS nuisances.
35025LC_ALL=C
35026export LC_ALL
35027LANGUAGE=C
35028export LANGUAGE
35029
cristy8b350f62009-11-15 23:12:43 +000035030# CDPATH.
35031(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35032
35033
cristy98dddb52010-11-04 00:30:15 +000035034# as_fn_error STATUS ERROR [LINENO LOG_FD]
35035# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035036# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35037# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035038# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035039as_fn_error ()
35040{
cristy98dddb52010-11-04 00:30:15 +000035041 as_status=$1; test $as_status -eq 0 && as_status=1
35042 if test "$4"; then
35043 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35044 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035045 fi
cristy98dddb52010-11-04 00:30:15 +000035046 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035047 as_fn_exit $as_status
35048} # as_fn_error
35049
35050
35051# as_fn_set_status STATUS
35052# -----------------------
35053# Set $? to STATUS, without forking.
35054as_fn_set_status ()
35055{
35056 return $1
35057} # as_fn_set_status
35058
35059# as_fn_exit STATUS
35060# -----------------
35061# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35062as_fn_exit ()
35063{
35064 set +e
35065 as_fn_set_status $1
35066 exit $1
35067} # as_fn_exit
35068
35069# as_fn_unset VAR
35070# ---------------
35071# Portably unset VAR.
35072as_fn_unset ()
35073{
35074 { eval $1=; unset $1;}
35075}
35076as_unset=as_fn_unset
35077# as_fn_append VAR VALUE
35078# ----------------------
35079# Append the text in VALUE to the end of the definition contained in VAR. Take
35080# advantage of any shell optimizations that allow amortized linear growth over
35081# repeated appends, instead of the typical quadratic growth present in naive
35082# implementations.
35083if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35084 eval 'as_fn_append ()
35085 {
35086 eval $1+=\$2
35087 }'
35088else
35089 as_fn_append ()
35090 {
35091 eval $1=\$$1\$2
35092 }
35093fi # as_fn_append
35094
35095# as_fn_arith ARG...
35096# ------------------
35097# Perform arithmetic evaluation on the ARGs, and store the result in the
35098# global $as_val. Take advantage of shells that can avoid forks. The arguments
35099# must be portable across $(()) and expr.
35100if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35101 eval 'as_fn_arith ()
35102 {
35103 as_val=$(( $* ))
35104 }'
35105else
35106 as_fn_arith ()
35107 {
35108 as_val=`expr "$@" || test $? -eq 1`
35109 }
35110fi # as_fn_arith
35111
35112
cristy3ed852e2009-09-05 21:47:34 +000035113if expr a : '\(a\)' >/dev/null 2>&1 &&
35114 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35115 as_expr=expr
35116else
35117 as_expr=false
35118fi
35119
35120if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35121 as_basename=basename
35122else
35123 as_basename=false
35124fi
35125
cristy8b350f62009-11-15 23:12:43 +000035126if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35127 as_dirname=dirname
35128else
35129 as_dirname=false
35130fi
cristy3ed852e2009-09-05 21:47:34 +000035131
cristy3ed852e2009-09-05 21:47:34 +000035132as_me=`$as_basename -- "$0" ||
35133$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35134 X"$0" : 'X\(//\)$' \| \
35135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35136$as_echo X/"$0" |
35137 sed '/^.*\/\([^/][^/]*\)\/*$/{
35138 s//\1/
35139 q
35140 }
35141 /^X\/\(\/\/\)$/{
35142 s//\1/
35143 q
35144 }
35145 /^X\/\(\/\).*/{
35146 s//\1/
35147 q
35148 }
35149 s/.*/./; q'`
35150
cristy8b350f62009-11-15 23:12:43 +000035151# Avoid depending upon Character Ranges.
35152as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35153as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35154as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35155as_cr_digits='0123456789'
35156as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035157
35158ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000035159case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000035160-n*)
cristy8b350f62009-11-15 23:12:43 +000035161 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000035162 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000035163 xy) ECHO_C='\c';;
35164 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35165 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000035166 esac;;
35167*)
35168 ECHO_N='-n';;
35169esac
cristy3ed852e2009-09-05 21:47:34 +000035170
35171rm -f conf$$ conf$$.exe conf$$.file
35172if test -d conf$$.dir; then
35173 rm -f conf$$.dir/conf$$.file
35174else
35175 rm -f conf$$.dir
35176 mkdir conf$$.dir 2>/dev/null
35177fi
35178if (echo >conf$$.file) 2>/dev/null; then
35179 if ln -s conf$$.file conf$$ 2>/dev/null; then
35180 as_ln_s='ln -s'
35181 # ... but there are two gotchas:
35182 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35183 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35184 # In both cases, we have to default to `cp -p'.
35185 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35186 as_ln_s='cp -p'
35187 elif ln conf$$.file conf$$ 2>/dev/null; then
35188 as_ln_s=ln
35189 else
35190 as_ln_s='cp -p'
35191 fi
35192else
35193 as_ln_s='cp -p'
35194fi
35195rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35196rmdir conf$$.dir 2>/dev/null
35197
cristy8b350f62009-11-15 23:12:43 +000035198
35199# as_fn_mkdir_p
35200# -------------
35201# Create "$as_dir" as a directory, including parents if necessary.
35202as_fn_mkdir_p ()
35203{
35204
35205 case $as_dir in #(
35206 -*) as_dir=./$as_dir;;
35207 esac
35208 test -d "$as_dir" || eval $as_mkdir_p || {
35209 as_dirs=
35210 while :; do
35211 case $as_dir in #(
35212 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35213 *) as_qdir=$as_dir;;
35214 esac
35215 as_dirs="'$as_qdir' $as_dirs"
35216 as_dir=`$as_dirname -- "$as_dir" ||
35217$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35218 X"$as_dir" : 'X\(//\)[^/]' \| \
35219 X"$as_dir" : 'X\(//\)$' \| \
35220 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35221$as_echo X"$as_dir" |
35222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35223 s//\1/
35224 q
35225 }
35226 /^X\(\/\/\)[^/].*/{
35227 s//\1/
35228 q
35229 }
35230 /^X\(\/\/\)$/{
35231 s//\1/
35232 q
35233 }
35234 /^X\(\/\).*/{
35235 s//\1/
35236 q
35237 }
35238 s/.*/./; q'`
35239 test -d "$as_dir" && break
35240 done
35241 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000035242 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000035243
35244
35245} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035246if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000035247 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000035248else
35249 test -d ./-p && rmdir ./-p
35250 as_mkdir_p=false
35251fi
35252
35253if test -x / >/dev/null 2>&1; then
35254 as_test_x='test -x'
35255else
35256 if ls -dL / >/dev/null 2>&1; then
35257 as_ls_L_option=L
35258 else
35259 as_ls_L_option=
35260 fi
35261 as_test_x='
35262 eval sh -c '\''
35263 if test -d "$1"; then
35264 test -d "$1/.";
35265 else
cristy8b350f62009-11-15 23:12:43 +000035266 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000035267 -*)set "./$1";;
35268 esac;
cristy8b350f62009-11-15 23:12:43 +000035269 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000035270 ???[sx]*):;;*)false;;esac;fi
35271 '\'' sh
35272 '
35273fi
35274as_executable_p=$as_test_x
35275
35276# Sed expression to map a string onto a valid CPP name.
35277as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35278
35279# Sed expression to map a string onto a valid variable name.
35280as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35281
35282
35283exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000035284## ----------------------------------- ##
35285## Main body of $CONFIG_STATUS script. ##
35286## ----------------------------------- ##
35287_ASEOF
35288test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035289
cristy8b350f62009-11-15 23:12:43 +000035290cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35291# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000035292# report actual input values of CONFIG_FILES etc. instead of their
35293# values after options handling.
35294ac_log="
cristy4c08aed2011-07-01 19:47:50 +000035295This file was extended by ImageMagick $as_me 7.0.0, which was
cristyda16f162011-02-19 23:52:17 +000035296generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000035297
35298 CONFIG_FILES = $CONFIG_FILES
35299 CONFIG_HEADERS = $CONFIG_HEADERS
35300 CONFIG_LINKS = $CONFIG_LINKS
35301 CONFIG_COMMANDS = $CONFIG_COMMANDS
35302 $ $0 $@
35303
35304on `(hostname || uname -n) 2>/dev/null | sed 1q`
35305"
35306
35307_ACEOF
35308
35309case $ac_config_files in *"
35310"*) set x $ac_config_files; shift; ac_config_files=$*;;
35311esac
35312
35313case $ac_config_headers in *"
35314"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35315esac
35316
35317
35318cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35319# Files that config.status was made for.
35320config_files="$ac_config_files"
35321config_headers="$ac_config_headers"
35322config_commands="$ac_config_commands"
35323
35324_ACEOF
35325
35326cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35327ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000035328\`$as_me' instantiates files and other configuration actions
35329from templates according to the current configuration. Unless the files
35330and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000035331
cristy8b350f62009-11-15 23:12:43 +000035332Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000035333
35334 -h, --help print this help, then exit
35335 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000035336 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000035337 -q, --quiet, --silent
35338 do not print progress messages
35339 -d, --debug don't remove temporary files
35340 --recheck update $as_me by reconfiguring in the same conditions
35341 --file=FILE[:TEMPLATE]
35342 instantiate the configuration file FILE
35343 --header=FILE[:TEMPLATE]
35344 instantiate the configuration header FILE
35345
35346Configuration files:
35347$config_files
35348
35349Configuration headers:
35350$config_headers
35351
35352Configuration commands:
35353$config_commands
35354
cristy8b350f62009-11-15 23:12:43 +000035355Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000035356
35357_ACEOF
35358cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000035359ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000035360ac_cs_version="\\
cristy4c08aed2011-07-01 19:47:50 +000035361ImageMagick config.status 7.0.0
cristyda16f162011-02-19 23:52:17 +000035362configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000035363 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000035364
cristy98dddb52010-11-04 00:30:15 +000035365Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000035366This config.status script is free software; the Free Software Foundation
35367gives unlimited permission to copy, distribute and modify it."
35368
35369ac_pwd='$ac_pwd'
35370srcdir='$srcdir'
35371INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000035372MKDIR_P='$MKDIR_P'
35373AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000035374test -n "\$AWK" || AWK=awk
35375_ACEOF
35376
35377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35378# The default lists apply if the user does not specify any file.
35379ac_need_defaults=:
35380while test $# != 0
35381do
35382 case $1 in
cristyda16f162011-02-19 23:52:17 +000035383 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000035384 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35385 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35386 ac_shift=:
35387 ;;
cristyda16f162011-02-19 23:52:17 +000035388 --*=)
35389 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35390 ac_optarg=
35391 ac_shift=:
35392 ;;
cristy3ed852e2009-09-05 21:47:34 +000035393 *)
35394 ac_option=$1
35395 ac_optarg=$2
35396 ac_shift=shift
35397 ;;
35398 esac
35399
35400 case $ac_option in
35401 # Handling of the options.
35402 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35403 ac_cs_recheck=: ;;
35404 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35405 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000035406 --config | --confi | --conf | --con | --co | --c )
35407 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000035408 --debug | --debu | --deb | --de | --d | -d )
35409 debug=: ;;
35410 --file | --fil | --fi | --f )
35411 $ac_shift
35412 case $ac_optarg in
35413 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000035414 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000035415 esac
cristy8b350f62009-11-15 23:12:43 +000035416 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035417 ac_need_defaults=false;;
35418 --header | --heade | --head | --hea )
35419 $ac_shift
35420 case $ac_optarg in
35421 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35422 esac
cristy8b350f62009-11-15 23:12:43 +000035423 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035424 ac_need_defaults=false;;
35425 --he | --h)
35426 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000035427 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035428Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000035429 --help | --hel | -h )
35430 $as_echo "$ac_cs_usage"; exit ;;
35431 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35432 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35433 ac_cs_silent=: ;;
35434
35435 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000035436 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035437Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000035438
cristy8b350f62009-11-15 23:12:43 +000035439 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000035440 ac_need_defaults=false ;;
35441
35442 esac
35443 shift
35444done
35445
35446ac_configure_extra_args=
35447
35448if $ac_cs_silent; then
35449 exec 6>/dev/null
35450 ac_configure_extra_args="$ac_configure_extra_args --silent"
35451fi
35452
35453_ACEOF
35454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35455if \$ac_cs_recheck; then
35456 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35457 shift
35458 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35459 CONFIG_SHELL='$SHELL'
35460 export CONFIG_SHELL
35461 exec "\$@"
35462fi
35463
35464_ACEOF
35465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35466exec 5>>config.log
35467{
35468 echo
35469 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35470## Running $as_me. ##
35471_ASBOX
35472 $as_echo "$ac_log"
35473} >&5
35474
35475_ACEOF
35476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000035477#
35478# INIT-COMMANDS
35479#
35480PACKAGE="$PACKAGE"
35481AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
35482
35483
35484# The HP-UX ksh and POSIX shell print the target directory to stdout
35485# if CDPATH is set.
35486(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35487
35488sed_quote_subst='$sed_quote_subst'
35489double_quote_subst='$double_quote_subst'
35490delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000035491SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
35492Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
35493GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
35494EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
35495FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
35496SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
35497ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
35498LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
35499macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
35500macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
35501AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
35502DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
35503OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
35504enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
35505enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
35506pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
35507enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
35508host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
35509host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
35510host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
35511build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
35512build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
35513build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
35514NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
35515LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
35516max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
35517ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
35518exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
35519lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
35520lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
35521lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035522lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
35523lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035524reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
35525reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
35526deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
35527file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035528file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
35529want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
35530sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035531AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
35532AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035533archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035534STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
35535RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
35536old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35537old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35538old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
35539lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
35540CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
35541CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
35542compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
35543GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
35544lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
35545lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
35546lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
35547lt_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 +000035548nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
35549lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035550objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
35551MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
35552lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035553lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035554lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035555lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
35556lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
35557need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035558MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035559DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
35560NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
35561LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
35562OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
35563OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
35564libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
35565shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
35566extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35567archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
35568enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
35569export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
35570whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
35571compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
35572old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
35573old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35574archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
35575archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35576module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
35577module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35578with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
35579allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
35580no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
35581hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
35582hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
35583hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
35584hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
35585hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
35586hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
35587hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
35588hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
35589inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
35590link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035591always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
35592export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
35593exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
35594include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
35595prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035596postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035597file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
35598variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
35599need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
35600need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
35601version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
35602runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
35603shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
35604shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
35605libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
35606library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
35607soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
35608install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
35609postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35610postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35611finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
35612finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
35613hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
35614sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
35615sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
35616hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
35617enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
35618enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
35619enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
35620old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
35621striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
35622compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
35623predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
35624postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
35625predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
35626postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
35627compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
35628LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
35629reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
35630reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35631old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35632compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
35633GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
35634lt_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 +000035635lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035636lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035637lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
35638lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
35639archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
35640enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
35641export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35642whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35643compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
35644old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35645old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35646archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35647archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35648module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35649module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35650with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
35651allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35652no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35653hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35654hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
35655hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
35656hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
35657hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
35658hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
35659hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
35660hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
35661inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
35662link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035663always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
35664export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35665exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35666include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35667prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035668postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035669file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
35670hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
35671compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
35672predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35673postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35674predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
35675postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
35676compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000035677
35678LTCC='$LTCC'
35679LTCFLAGS='$LTCFLAGS'
35680compiler='$compiler_DEFAULT'
35681
cristy0c60a692010-11-04 01:09:47 +000035682# A function that is used when there is no print builtin or printf.
35683func_fallback_echo ()
35684{
35685 eval 'cat <<_LTECHO_EOF
35686\$1
35687_LTECHO_EOF'
35688}
35689
cristy73bd4a52010-10-05 11:24:23 +000035690# Quote evaled strings.
35691for var in SED \
35692GREP \
35693EGREP \
35694FGREP \
cristy0c60a692010-11-04 01:09:47 +000035695SHELL \
35696ECHO \
cristy73bd4a52010-10-05 11:24:23 +000035697LD \
cristy0c60a692010-11-04 01:09:47 +000035698AS \
35699DLLTOOL \
35700OBJDUMP \
cristy73bd4a52010-10-05 11:24:23 +000035701NM \
35702LN_S \
35703lt_SP2NL \
35704lt_NL2SP \
35705reload_flag \
35706deplibs_check_method \
35707file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000035708file_magic_glob \
35709want_nocaseglob \
35710sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000035711AR \
35712AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000035713archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000035714STRIP \
35715RANLIB \
35716CC \
35717CFLAGS \
35718compiler \
35719lt_cv_sys_global_symbol_pipe \
35720lt_cv_sys_global_symbol_to_cdecl \
35721lt_cv_sys_global_symbol_to_c_name_address \
35722lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000035723nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000035724lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000035725lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000035726lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000035727lt_prog_compiler_static \
35728lt_cv_prog_compiler_c_o \
35729need_locks \
cristyda16f162011-02-19 23:52:17 +000035730MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000035731DSYMUTIL \
35732NMEDIT \
35733LIPO \
35734OTOOL \
35735OTOOL64 \
35736shrext_cmds \
35737export_dynamic_flag_spec \
35738whole_archive_flag_spec \
35739compiler_needs_object \
35740with_gnu_ld \
35741allow_undefined_flag \
35742no_undefined_flag \
35743hardcode_libdir_flag_spec \
35744hardcode_libdir_flag_spec_ld \
35745hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000035746exclude_expsyms \
35747include_expsyms \
35748file_list_spec \
35749variables_saved_for_relink \
35750libname_spec \
35751library_names_spec \
35752soname_spec \
cristy0c60a692010-11-04 01:09:47 +000035753install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000035754finish_eval \
35755old_striplib \
35756striplib \
35757compiler_lib_search_dirs \
35758predep_objects \
35759postdep_objects \
35760predeps \
35761postdeps \
35762compiler_lib_search_path \
35763LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000035764reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035765compiler_CXX \
35766lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035767lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000035768lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035769lt_prog_compiler_static_CXX \
35770lt_cv_prog_compiler_c_o_CXX \
35771export_dynamic_flag_spec_CXX \
35772whole_archive_flag_spec_CXX \
35773compiler_needs_object_CXX \
35774with_gnu_ld_CXX \
35775allow_undefined_flag_CXX \
35776no_undefined_flag_CXX \
35777hardcode_libdir_flag_spec_CXX \
35778hardcode_libdir_flag_spec_ld_CXX \
35779hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035780exclude_expsyms_CXX \
35781include_expsyms_CXX \
35782file_list_spec_CXX \
35783compiler_lib_search_dirs_CXX \
35784predep_objects_CXX \
35785postdep_objects_CXX \
35786predeps_CXX \
35787postdeps_CXX \
35788compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000035789 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000035790 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000035791 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000035792 ;;
35793 *)
35794 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35795 ;;
35796 esac
35797done
35798
35799# Double-quote double-evaled strings.
35800for var in reload_cmds \
35801old_postinstall_cmds \
35802old_postuninstall_cmds \
35803old_archive_cmds \
35804extract_expsyms_cmds \
35805old_archive_from_new_cmds \
35806old_archive_from_expsyms_cmds \
35807archive_cmds \
35808archive_expsym_cmds \
35809module_cmds \
35810module_expsym_cmds \
35811export_symbols_cmds \
35812prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000035813postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000035814postinstall_cmds \
35815postuninstall_cmds \
35816finish_cmds \
35817sys_lib_search_path_spec \
35818sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000035819reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035820old_archive_cmds_CXX \
35821old_archive_from_new_cmds_CXX \
35822old_archive_from_expsyms_cmds_CXX \
35823archive_cmds_CXX \
35824archive_expsym_cmds_CXX \
35825module_cmds_CXX \
35826module_expsym_cmds_CXX \
35827export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000035828prelink_cmds_CXX \
35829postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000035830 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000035831 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000035832 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000035833 ;;
35834 *)
35835 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35836 ;;
35837 esac
35838done
35839
cristy73bd4a52010-10-05 11:24:23 +000035840ac_aux_dir='$ac_aux_dir'
35841xsi_shell='$xsi_shell'
35842lt_shell_append='$lt_shell_append'
35843
35844# See if we are running on zsh, and set the options which allow our
35845# commands through without removal of \ escapes INIT.
35846if test -n "\${ZSH_VERSION+set}" ; then
35847 setopt NO_GLOB_SUBST
35848fi
35849
35850
35851 PACKAGE='$PACKAGE'
35852 VERSION='$VERSION'
35853 TIMESTAMP='$TIMESTAMP'
35854 RM='$RM'
35855 ofile='$ofile'
35856
35857
35858
35859
35860
35861
cristy3ed852e2009-09-05 21:47:34 +000035862_ACEOF
35863
35864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35865
35866# Handling of arguments.
35867for ac_config_target in $ac_config_targets
35868do
35869 case $ac_config_target in
35870 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000035871 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000035872 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
35873 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
35874 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
35875 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
35876 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000035877 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000035878 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
35879 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
35880 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
35881 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
35882 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000035883 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000035884 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
35885 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000035886 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
35887 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
35888 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000035889 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35890 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
35891 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
35892 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
35893 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
35894 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
35895 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
35896 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
35897 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
35898 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
35899 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
35900 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
35901 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
35902 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
35903 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
35904 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
35905 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000035906 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
35907 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000035908 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
35909 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000035910 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35911 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000035912 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000035913 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
35914 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
35915
cristy98dddb52010-11-04 00:30:15 +000035916 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035917 esac
35918done
35919
35920
35921# If the user did not use the arguments to specify the items to instantiate,
35922# then the envvar interface is used. Set only those that are not.
35923# We use the long form for the default assignment because of an extremely
35924# bizarre bug on SunOS 4.1.3.
35925if $ac_need_defaults; then
35926 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35927 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35928 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35929fi
35930
35931# Have a temporary directory for convenience. Make it in the build tree
35932# simply because there is no reason against having it here, and in addition,
35933# creating and moving files from /tmp can sometimes cause problems.
35934# Hook for its removal unless debugging.
35935# Note that there is a small window in which the directory will not be cleaned:
35936# after its creation but before its name has been assigned to `$tmp'.
35937$debug ||
35938{
cristyda16f162011-02-19 23:52:17 +000035939 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000035940 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000035941 : "${ac_tmp:=$tmp}"
35942 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000035943' 0
cristy8b350f62009-11-15 23:12:43 +000035944 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000035945}
35946# Create a (secure) tmp directory for tmp files.
35947
35948{
35949 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000035950 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000035951} ||
35952{
35953 tmp=./conf$$-$RANDOM
35954 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000035955} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000035956ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000035957
35958# Set up the scripts for CONFIG_FILES section.
35959# No need to generate them if there are no CONFIG_FILES.
35960# This happens for instance with `./config.status config.h'.
35961if test -n "$CONFIG_FILES"; then
35962
35963
cristy8b350f62009-11-15 23:12:43 +000035964ac_cr=`echo X | tr X '\015'`
35965# On cygwin, bash can eat \r inside `` if the user requested igncr.
35966# But we know of no other shell where ac_cr would be empty at this
35967# point, so we can use a bashism as a fallback.
35968if test "x$ac_cr" = x; then
35969 eval ac_cr=\$\'\\r\'
35970fi
cristy3ed852e2009-09-05 21:47:34 +000035971ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35972if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000035973 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000035974else
35975 ac_cs_awk_cr=$ac_cr
35976fi
35977
cristyda16f162011-02-19 23:52:17 +000035978echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000035979_ACEOF
35980
35981
35982{
35983 echo "cat >conf$$subs.awk <<_ACEOF" &&
35984 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35985 echo "_ACEOF"
35986} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000035987 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35988ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000035989ac_delim='%!_!# '
35990for ac_last_try in false false false false false :; do
35991 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000035992 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035993
35994 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
35995 if test $ac_delim_n = $ac_delim_num; then
35996 break
35997 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000035998 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035999 else
36000 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36001 fi
36002done
36003rm -f conf$$subs.sh
36004
36005cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036006cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036007_ACEOF
36008sed -n '
36009h
36010s/^/S["/; s/!.*/"]=/
36011p
36012g
36013s/^[^!]*!//
36014:repl
36015t repl
36016s/'"$ac_delim"'$//
36017t delim
36018:nl
36019h
cristycd4c5312009-11-22 01:19:08 +000036020s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036021t more1
36022s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36023p
36024n
36025b repl
36026:more1
36027s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36028p
36029g
36030s/.\{148\}//
36031t nl
36032:delim
36033h
cristycd4c5312009-11-22 01:19:08 +000036034s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036035t more2
36036s/["\\]/\\&/g; s/^/"/; s/$/"/
36037p
36038b
36039:more2
36040s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36041p
36042g
36043s/.\{148\}//
36044t delim
36045' <conf$$subs.awk | sed '
36046/^[^""]/{
36047 N
36048 s/\n//
36049}
36050' >>$CONFIG_STATUS || ac_write_fail=1
36051rm -f conf$$subs.awk
36052cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36053_ACAWK
cristyda16f162011-02-19 23:52:17 +000036054cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036055 for (key in S) S_is_set[key] = 1
36056 FS = ""
36057
36058}
36059{
36060 line = $ 0
36061 nfields = split(line, field, "@")
36062 substed = 0
36063 len = length(field[1])
36064 for (i = 2; i < nfields; i++) {
36065 key = field[i]
36066 keylen = length(key)
36067 if (S_is_set[key]) {
36068 value = S[key]
36069 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36070 len += length(value) + length(field[++i])
36071 substed = 1
36072 } else
36073 len += 1 + keylen
36074 }
36075
36076 print line
36077}
36078
36079_ACAWK
36080_ACEOF
36081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36082if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36083 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36084else
36085 cat
cristyda16f162011-02-19 23:52:17 +000036086fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036087 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036088_ACEOF
36089
cristy98dddb52010-11-04 00:30:15 +000036090# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36091# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036092# trailing colons and then remove the whole line if VPATH becomes empty
36093# (actually we leave an empty line to preserve line numbers).
36094if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036095 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36096h
36097s///
36098s/^/:/
36099s/[ ]*$/:/
36100s/:\$(srcdir):/:/g
36101s/:\${srcdir}:/:/g
36102s/:@srcdir@:/:/g
36103s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036104s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036105x
36106s/\(=[ ]*\).*/\1/
36107G
36108s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036109s/^[^=]*=[ ]*$//
36110}'
36111fi
36112
36113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36114fi # test -n "$CONFIG_FILES"
36115
36116# Set up the scripts for CONFIG_HEADERS section.
36117# No need to generate them if there are no CONFIG_HEADERS.
36118# This happens for instance with `./config.status Makefile'.
36119if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036120cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036121BEGIN {
36122_ACEOF
36123
36124# Transform confdefs.h into an awk script `defines.awk', embedded as
36125# here-document in config.status, that substitutes the proper values into
36126# config.h.in to produce config.h.
36127
36128# Create a delimiter string that does not exist in confdefs.h, to ease
36129# handling of long lines.
36130ac_delim='%!_!# '
36131for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036132 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36133 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036134 break
36135 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036136 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036137 else
36138 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36139 fi
36140done
36141
36142# For the awk script, D is an array of macro values keyed by name,
36143# likewise P contains macro parameters if any. Preserve backslash
36144# newline sequences.
36145
36146ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36147sed -n '
36148s/.\{148\}/&'"$ac_delim"'/g
36149t rset
36150:rset
36151s/^[ ]*#[ ]*define[ ][ ]*/ /
36152t def
36153d
36154:def
36155s/\\$//
36156t bsnl
36157s/["\\]/\\&/g
36158s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36159D["\1"]=" \3"/p
36160s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36161d
36162:bsnl
36163s/["\\]/\\&/g
36164s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36165D["\1"]=" \3\\\\\\n"\\/p
36166t cont
36167s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36168t cont
36169d
36170:cont
36171n
36172s/.\{148\}/&'"$ac_delim"'/g
36173t clear
36174:clear
36175s/\\$//
36176t bsnlc
36177s/["\\]/\\&/g; s/^/"/; s/$/"/p
36178d
36179:bsnlc
36180s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36181b cont
36182' <confdefs.h | sed '
36183s/'"$ac_delim"'/"\\\
36184"/g' >>$CONFIG_STATUS || ac_write_fail=1
36185
36186cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36187 for (key in D) D_is_set[key] = 1
36188 FS = ""
36189}
36190/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36191 line = \$ 0
36192 split(line, arg, " ")
36193 if (arg[1] == "#") {
36194 defundef = arg[2]
36195 mac1 = arg[3]
36196 } else {
36197 defundef = substr(arg[1], 2)
36198 mac1 = arg[2]
36199 }
36200 split(mac1, mac2, "(") #)
36201 macro = mac2[1]
36202 prefix = substr(line, 1, index(line, defundef) - 1)
36203 if (D_is_set[macro]) {
36204 # Preserve the white space surrounding the "#".
36205 print prefix "define", macro P[macro] D[macro]
36206 next
36207 } else {
36208 # Replace #undef with comments. This is necessary, for example,
36209 # in the case of _POSIX_SOURCE, which is predefined and required
36210 # on some systems where configure will not decide to define it.
36211 if (defundef == "undef") {
36212 print "/*", prefix defundef, macro, "*/"
36213 next
36214 }
36215 }
36216}
36217{ print }
36218_ACAWK
36219_ACEOF
36220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000036221 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036222fi # test -n "$CONFIG_HEADERS"
36223
36224
36225eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36226shift
36227for ac_tag
36228do
36229 case $ac_tag in
36230 :[FHLC]) ac_mode=$ac_tag; continue;;
36231 esac
36232 case $ac_mode$ac_tag in
36233 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000036234 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036235 :[FH]-) ac_tag=-:-;;
36236 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36237 esac
36238 ac_save_IFS=$IFS
36239 IFS=:
36240 set x $ac_tag
36241 IFS=$ac_save_IFS
36242 shift
36243 ac_file=$1
36244 shift
36245
36246 case $ac_mode in
36247 :L) ac_source=$1;;
36248 :[FH])
36249 ac_file_inputs=
36250 for ac_f
36251 do
36252 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000036253 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000036254 *) # Look for the file first in the build tree, then in the source tree
36255 # (if the path is not absolute). The absolute path cannot be DOS-style,
36256 # because $ac_f cannot contain `:'.
36257 test -f "$ac_f" ||
36258 case $ac_f in
36259 [\\/$]*) false;;
36260 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36261 esac ||
cristy98dddb52010-11-04 00:30:15 +000036262 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036263 esac
36264 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000036265 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000036266 done
36267
36268 # Let's still pretend it is `configure' which instantiates (i.e., don't
36269 # use $as_me), people would be surprised to read:
36270 # /* config.h. Generated by config.status. */
36271 configure_input='Generated from '`
36272 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36273 `' by configure.'
36274 if test x"$ac_file" != x-; then
36275 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000036276 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036277$as_echo "$as_me: creating $ac_file" >&6;}
36278 fi
36279 # Neutralize special characters interpreted by sed in replacement strings.
36280 case $configure_input in #(
36281 *\&* | *\|* | *\\* )
36282 ac_sed_conf_input=`$as_echo "$configure_input" |
36283 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36284 *) ac_sed_conf_input=$configure_input;;
36285 esac
36286
36287 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000036288 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000036289 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000036290 esac
36291 ;;
36292 esac
36293
36294 ac_dir=`$as_dirname -- "$ac_file" ||
36295$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36296 X"$ac_file" : 'X\(//\)[^/]' \| \
36297 X"$ac_file" : 'X\(//\)$' \| \
36298 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36299$as_echo X"$ac_file" |
36300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36301 s//\1/
36302 q
36303 }
36304 /^X\(\/\/\)[^/].*/{
36305 s//\1/
36306 q
36307 }
36308 /^X\(\/\/\)$/{
36309 s//\1/
36310 q
36311 }
36312 /^X\(\/\).*/{
36313 s//\1/
36314 q
36315 }
36316 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000036317 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036318 ac_builddir=.
36319
36320case "$ac_dir" in
36321.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36322*)
36323 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36324 # A ".." for each directory in $ac_dir_suffix.
36325 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36326 case $ac_top_builddir_sub in
36327 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36328 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36329 esac ;;
36330esac
36331ac_abs_top_builddir=$ac_pwd
36332ac_abs_builddir=$ac_pwd$ac_dir_suffix
36333# for backward compatibility:
36334ac_top_builddir=$ac_top_build_prefix
36335
36336case $srcdir in
36337 .) # We are building in place.
36338 ac_srcdir=.
36339 ac_top_srcdir=$ac_top_builddir_sub
36340 ac_abs_top_srcdir=$ac_pwd ;;
36341 [\\/]* | ?:[\\/]* ) # Absolute name.
36342 ac_srcdir=$srcdir$ac_dir_suffix;
36343 ac_top_srcdir=$srcdir
36344 ac_abs_top_srcdir=$srcdir ;;
36345 *) # Relative name.
36346 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36347 ac_top_srcdir=$ac_top_build_prefix$srcdir
36348 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36349esac
36350ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36351
36352
36353 case $ac_mode in
36354 :F)
36355 #
36356 # CONFIG_FILE
36357 #
36358
36359 case $INSTALL in
36360 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36361 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36362 esac
cristy73bd4a52010-10-05 11:24:23 +000036363 ac_MKDIR_P=$MKDIR_P
36364 case $MKDIR_P in
36365 [\\/$]* | ?:[\\/]* ) ;;
36366 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36367 esac
cristy3ed852e2009-09-05 21:47:34 +000036368_ACEOF
36369
36370cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36371# If the template does not know about datarootdir, expand it.
36372# FIXME: This hack should be removed a few years after 2.60.
36373ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000036374ac_sed_dataroot='
36375/datarootdir/ {
36376 p
36377 q
36378}
36379/@datadir@/p
36380/@docdir@/p
36381/@infodir@/p
36382/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000036383/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000036384case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36385*datarootdir*) ac_datarootdir_seen=yes;;
36386*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000036387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000036388$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36389_ACEOF
36390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36391 ac_datarootdir_hack='
36392 s&@datadir@&$datadir&g
36393 s&@docdir@&$docdir&g
36394 s&@infodir@&$infodir&g
36395 s&@localedir@&$localedir&g
36396 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000036397 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000036398esac
36399_ACEOF
36400
36401# Neutralize VPATH when `$srcdir' = `.'.
36402# Shell code in configure.ac might set extrasub.
36403# FIXME: do we really want to maintain this feature?
36404cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36405ac_sed_extra="$ac_vpsub
36406$extrasub
36407_ACEOF
36408cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36409:t
36410/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36411s|@configure_input@|$ac_sed_conf_input|;t t
36412s&@top_builddir@&$ac_top_builddir_sub&;t t
36413s&@top_build_prefix@&$ac_top_build_prefix&;t t
36414s&@srcdir@&$ac_srcdir&;t t
36415s&@abs_srcdir@&$ac_abs_srcdir&;t t
36416s&@top_srcdir@&$ac_top_srcdir&;t t
36417s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36418s&@builddir@&$ac_builddir&;t t
36419s&@abs_builddir@&$ac_abs_builddir&;t t
36420s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36421s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000036422s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000036423$ac_datarootdir_hack
36424"
cristyda16f162011-02-19 23:52:17 +000036425eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36426 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036427
36428test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000036429 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36430 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36431 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000036432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036433which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000036434$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036435which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000036436
cristyda16f162011-02-19 23:52:17 +000036437 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000036438 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000036439 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36440 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000036441 esac \
cristy98dddb52010-11-04 00:30:15 +000036442 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036443 ;;
36444 :H)
36445 #
36446 # CONFIG_HEADER
36447 #
36448 if test x"$ac_file" != x-; then
36449 {
36450 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036451 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36452 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000036453 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036454 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000036455 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000036456$as_echo "$as_me: $ac_file is unchanged" >&6;}
36457 else
36458 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000036459 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000036460 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036461 fi
36462 else
36463 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036464 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000036465 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036466 fi
cristy73bd4a52010-10-05 11:24:23 +000036467# Compute "$ac_file"'s index in $config_headers.
36468_am_arg="$ac_file"
36469_am_stamp_count=1
36470for _am_header in $config_headers :; do
36471 case $_am_header in
36472 $_am_arg | $_am_arg:* )
36473 break ;;
36474 * )
36475 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36476 esac
36477done
36478echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
36479$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36480 X"$_am_arg" : 'X\(//\)[^/]' \| \
36481 X"$_am_arg" : 'X\(//\)$' \| \
36482 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
36483$as_echo X"$_am_arg" |
36484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36485 s//\1/
36486 q
36487 }
36488 /^X\(\/\/\)[^/].*/{
36489 s//\1/
36490 q
36491 }
36492 /^X\(\/\/\)$/{
36493 s//\1/
36494 q
36495 }
36496 /^X\(\/\).*/{
36497 s//\1/
36498 q
36499 }
36500 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000036501 ;;
36502
cristy8b350f62009-11-15 23:12:43 +000036503 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000036504$as_echo "$as_me: executing $ac_file commands" >&6;}
36505 ;;
36506 esac
36507
36508
36509 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000036510 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000036511ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
36512ac_prefix_conf_PKG=`echo MagickCore`
36513ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
36514ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
36515ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
36516if test ".$ac_prefix_conf_INP" = "."; then
36517 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
36518 case "$ac_file" in
36519 *.h) ac_prefix_conf_INP=$ac_file ;;
36520 *)
36521 esac
36522 test ".$ac_prefix_conf_INP" != "." && break
36523 done
36524fi
36525if test ".$ac_prefix_conf_INP" = "."; then
36526 case "$ac_prefix_conf_OUT" in
36527 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
36528 ;;
36529 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
36530 ;;
36531 *) ac_prefix_conf_INP=config.h
36532 ;;
36533 esac
36534fi
36535if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000036536 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000036537else
36538 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
36539 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
36540 fi fi
36541 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
36542$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
36543 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000036544 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
36545 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
36546 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
36547 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
36548 $as_echo "#endif/" >> conftest.prefix
36549 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
36550 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
36551 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000036552 # now executing _script on _DEF input to create _OUT output file
36553 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
36554 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
36555 echo ' ' >>$tmp/pconfig.h
36556 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
36557
36558 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
36559 echo ' ' >>$tmp/pconfig.h
36560 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
36561 echo "#endif" >>$tmp/pconfig.h
36562 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
36563 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
36564$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
36565 else
36566 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
36567$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36568 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
36569 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
36570 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
36571$as_echo X"$ac_prefix_conf_OUT" |
36572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36573 s//\1/
36574 q
36575 }
36576 /^X\(\/\/\)[^/].*/{
36577 s//\1/
36578 q
36579 }
36580 /^X\(\/\/\)$/{
36581 s//\1/
36582 q
36583 }
36584 /^X\(\/\).*/{
36585 s//\1/
36586 q
36587 }
36588 s/.*/./; q'`
36589 as_dir="$ac_dir"; as_fn_mkdir_p
36590 rm -f "$ac_prefix_conf_OUT"
36591 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
36592 fi
36593 cp conftest.prefix _configs.sed
36594 else
cristy98dddb52010-11-04 00:30:15 +000036595 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 +000036596 fi
36597 rm -f conftest.*
36598fi
36599 ;;
36600 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
36601 # Autoconf 2.62 quotes --file arguments for eval, but not when files
36602 # are listed without --file. Let's play safe and only enable the eval
36603 # if we detect the quoting.
36604 case $CONFIG_FILES in
36605 *\'*) eval set x "$CONFIG_FILES" ;;
36606 *) set x $CONFIG_FILES ;;
36607 esac
36608 shift
36609 for mf
36610 do
36611 # Strip MF so we end up with the name of the file.
36612 mf=`echo "$mf" | sed -e 's/:.*$//'`
36613 # Check whether this is an Automake generated Makefile or not.
36614 # We used to match only the files named `Makefile.in', but
36615 # some people rename them; so instead we look at the file content.
36616 # Grep'ing the first line is not enough: some people post-process
36617 # each Makefile.in and add a new line on top of each file to say so.
36618 # Grep'ing the whole file is not good either: AIX grep has a line
36619 # limit of 2048, but all sed's we know have understand at least 4000.
36620 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
36621 dirpart=`$as_dirname -- "$mf" ||
36622$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36623 X"$mf" : 'X\(//\)[^/]' \| \
36624 X"$mf" : 'X\(//\)$' \| \
36625 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
36626$as_echo X"$mf" |
36627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36628 s//\1/
36629 q
36630 }
36631 /^X\(\/\/\)[^/].*/{
36632 s//\1/
36633 q
36634 }
36635 /^X\(\/\/\)$/{
36636 s//\1/
36637 q
36638 }
36639 /^X\(\/\).*/{
36640 s//\1/
36641 q
36642 }
36643 s/.*/./; q'`
36644 else
36645 continue
36646 fi
36647 # Extract the definition of DEPDIR, am__include, and am__quote
36648 # from the Makefile without running `make'.
36649 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
36650 test -z "$DEPDIR" && continue
36651 am__include=`sed -n 's/^am__include = //p' < "$mf"`
36652 test -z "am__include" && continue
36653 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
36654 # When using ansi2knr, U may be empty or an underscore; expand it
36655 U=`sed -n 's/^U = //p' < "$mf"`
36656 # Find all dependency output files, they are included files with
36657 # $(DEPDIR) in their names. We invoke sed twice because it is the
36658 # simplest approach to changing $(DEPDIR) to its actual value in the
36659 # expansion.
36660 for file in `sed -n "
36661 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
36662 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
36663 # Make sure the directory exists.
36664 test -f "$dirpart/$file" && continue
36665 fdir=`$as_dirname -- "$file" ||
36666$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36667 X"$file" : 'X\(//\)[^/]' \| \
36668 X"$file" : 'X\(//\)$' \| \
36669 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
36670$as_echo X"$file" |
36671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36672 s//\1/
36673 q
36674 }
36675 /^X\(\/\/\)[^/].*/{
36676 s//\1/
36677 q
36678 }
36679 /^X\(\/\/\)$/{
36680 s//\1/
36681 q
36682 }
36683 /^X\(\/\).*/{
36684 s//\1/
36685 q
36686 }
36687 s/.*/./; q'`
36688 as_dir=$dirpart/$fdir; as_fn_mkdir_p
36689 # echo "creating $dirpart/$file"
36690 echo '# dummy' > "$dirpart/$file"
36691 done
36692 done
36693}
36694 ;;
36695 "libtool":C)
36696
36697 # See if we are running on zsh, and set the options which allow our
36698 # commands through without removal of \ escapes.
36699 if test -n "${ZSH_VERSION+set}" ; then
36700 setopt NO_GLOB_SUBST
36701 fi
36702
36703 cfgfile="${ofile}T"
36704 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
36705 $RM "$cfgfile"
36706
36707 cat <<_LT_EOF >> "$cfgfile"
36708#! $SHELL
36709
36710# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
36711# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
36712# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
36713# NOTE: Changes made to this file will be lost: look at ltmain.sh.
36714#
36715# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy0c60a692010-11-04 01:09:47 +000036716# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
36717# Inc.
cristy73bd4a52010-10-05 11:24:23 +000036718# Written by Gordon Matzigkeit, 1996
36719#
36720# This file is part of GNU Libtool.
36721#
36722# GNU Libtool is free software; you can redistribute it and/or
36723# modify it under the terms of the GNU General Public License as
36724# published by the Free Software Foundation; either version 2 of
36725# the License, or (at your option) any later version.
36726#
36727# As a special exception to the GNU General Public License,
36728# if you distribute this file as part of a program or library that
36729# is built using GNU Libtool, you may include this file under the
36730# same distribution terms that you use for the rest of that program.
36731#
36732# GNU Libtool is distributed in the hope that it will be useful,
36733# but WITHOUT ANY WARRANTY; without even the implied warranty of
36734# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36735# GNU General Public License for more details.
36736#
36737# You should have received a copy of the GNU General Public License
36738# along with GNU Libtool; see the file COPYING. If not, a copy
36739# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
36740# obtained by writing to the Free Software Foundation, Inc.,
36741# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
36742
36743
36744# The names of the tagged configurations supported by this script.
36745available_tags="CXX "
36746
36747# ### BEGIN LIBTOOL CONFIG
36748
36749# A sed program that does not truncate output.
36750SED=$lt_SED
36751
36752# Sed that helps us avoid accidentally triggering echo(1) options like -n.
36753Xsed="\$SED -e 1s/^X//"
36754
36755# A grep program that handles long lines.
36756GREP=$lt_GREP
36757
36758# An ERE matcher.
36759EGREP=$lt_EGREP
36760
36761# A literal string matcher.
36762FGREP=$lt_FGREP
36763
cristy0c60a692010-11-04 01:09:47 +000036764# Shell to use when invoking shell scripts.
36765SHELL=$lt_SHELL
36766
36767# An echo program that protects backslashes.
36768ECHO=$lt_ECHO
36769
cristy73bd4a52010-10-05 11:24:23 +000036770# Which release of libtool.m4 was used?
36771macro_version=$macro_version
36772macro_revision=$macro_revision
36773
36774# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000036775AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000036776
36777# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000036778DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000036779
36780# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000036781OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000036782
36783# Whether or not to build shared libraries.
36784build_libtool_libs=$enable_shared
36785
36786# Whether or not to build static libraries.
36787build_old_libs=$enable_static
36788
36789# What type of objects to build.
36790pic_mode=$pic_mode
36791
36792# Whether or not to optimize for fast installation.
36793fast_install=$enable_fast_install
36794
36795# The host system.
36796host_alias=$host_alias
36797host=$host
36798host_os=$host_os
36799
36800# The build system.
36801build_alias=$build_alias
36802build=$build
36803build_os=$build_os
36804
36805# A BSD- or MS-compatible name lister.
36806NM=$lt_NM
36807
36808# Whether we need soft or hard links.
36809LN_S=$lt_LN_S
36810
36811# What is the maximum length of a command?
36812max_cmd_len=$max_cmd_len
36813
36814# Object file suffix (normally "o").
36815objext=$ac_objext
36816
36817# Executable file suffix (normally "").
36818exeext=$exeext
36819
36820# whether the shell understands "unset".
36821lt_unset=$lt_unset
36822
36823# turn spaces into newlines.
36824SP2NL=$lt_lt_SP2NL
36825
36826# turn newlines into spaces.
36827NL2SP=$lt_lt_NL2SP
36828
cristyda16f162011-02-19 23:52:17 +000036829# convert \$build file names to \$host format.
36830to_host_file_cmd=$lt_cv_to_host_file_cmd
36831
36832# convert \$build files to toolchain format.
36833to_tool_file_cmd=$lt_cv_to_tool_file_cmd
36834
cristy73bd4a52010-10-05 11:24:23 +000036835# Method to check whether dependent libraries are shared objects.
36836deplibs_check_method=$lt_deplibs_check_method
36837
cristyda16f162011-02-19 23:52:17 +000036838# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000036839file_magic_cmd=$lt_file_magic_cmd
36840
cristyda16f162011-02-19 23:52:17 +000036841# How to find potential files when deplibs_check_method = "file_magic".
36842file_magic_glob=$lt_file_magic_glob
36843
36844# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
36845want_nocaseglob=$lt_want_nocaseglob
36846
36847# Command to associate shared and link libraries.
36848sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
36849
cristy73bd4a52010-10-05 11:24:23 +000036850# The archiver.
36851AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000036852
36853# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000036854AR_FLAGS=$lt_AR_FLAGS
36855
cristyda16f162011-02-19 23:52:17 +000036856# How to feed a file listing to the archiver.
36857archiver_list_spec=$lt_archiver_list_spec
36858
cristy73bd4a52010-10-05 11:24:23 +000036859# A symbol stripping program.
36860STRIP=$lt_STRIP
36861
36862# Commands used to install an old-style archive.
36863RANLIB=$lt_RANLIB
36864old_postinstall_cmds=$lt_old_postinstall_cmds
36865old_postuninstall_cmds=$lt_old_postuninstall_cmds
36866
cristy0c60a692010-11-04 01:09:47 +000036867# Whether to use a lock for old archive extraction.
36868lock_old_archive_extraction=$lock_old_archive_extraction
36869
cristy73bd4a52010-10-05 11:24:23 +000036870# A C compiler.
36871LTCC=$lt_CC
36872
36873# LTCC compiler flags.
36874LTCFLAGS=$lt_CFLAGS
36875
36876# Take the output of nm and produce a listing of raw symbols and C names.
36877global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
36878
36879# Transform the output of nm in a proper C declaration.
36880global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
36881
36882# Transform the output of nm in a C name address pair.
36883global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
36884
36885# Transform the output of nm in a C name address pair when lib prefix is needed.
36886global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
36887
cristyda16f162011-02-19 23:52:17 +000036888# Specify filename containing input files for \$NM.
36889nm_file_list_spec=$lt_nm_file_list_spec
36890
36891# The root where to search for dependent libraries,and in which our libraries should be installed.
36892lt_sysroot=$lt_sysroot
36893
cristy73bd4a52010-10-05 11:24:23 +000036894# The name of the directory that contains temporary libtool files.
36895objdir=$objdir
36896
cristy73bd4a52010-10-05 11:24:23 +000036897# Used to examine libraries when file_magic_cmd begins with "file".
36898MAGIC_CMD=$MAGIC_CMD
36899
36900# Must we lock files when doing compilation?
36901need_locks=$lt_need_locks
36902
cristyda16f162011-02-19 23:52:17 +000036903# Manifest tool.
36904MANIFEST_TOOL=$lt_MANIFEST_TOOL
36905
cristy73bd4a52010-10-05 11:24:23 +000036906# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
36907DSYMUTIL=$lt_DSYMUTIL
36908
36909# Tool to change global to local symbols on Mac OS X.
36910NMEDIT=$lt_NMEDIT
36911
36912# Tool to manipulate fat objects and archives on Mac OS X.
36913LIPO=$lt_LIPO
36914
36915# ldd/readelf like tool for Mach-O binaries on Mac OS X.
36916OTOOL=$lt_OTOOL
36917
36918# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
36919OTOOL64=$lt_OTOOL64
36920
36921# Old archive suffix (normally "a").
36922libext=$libext
36923
36924# Shared library suffix (normally ".so").
36925shrext_cmds=$lt_shrext_cmds
36926
36927# The commands to extract the exported symbol list from a shared archive.
36928extract_expsyms_cmds=$lt_extract_expsyms_cmds
36929
36930# Variables whose values should be saved in libtool wrapper scripts and
36931# restored at link time.
36932variables_saved_for_relink=$lt_variables_saved_for_relink
36933
36934# Do we need the "lib" prefix for modules?
36935need_lib_prefix=$need_lib_prefix
36936
36937# Do we need a version for libraries?
36938need_version=$need_version
36939
36940# Library versioning type.
36941version_type=$version_type
36942
36943# Shared library runtime path variable.
36944runpath_var=$runpath_var
36945
36946# Shared library path variable.
36947shlibpath_var=$shlibpath_var
36948
36949# Is shlibpath searched before the hard-coded library search path?
36950shlibpath_overrides_runpath=$shlibpath_overrides_runpath
36951
36952# Format of library name prefix.
36953libname_spec=$lt_libname_spec
36954
36955# List of archive names. First name is the real one, the rest are links.
36956# The last name is the one that the linker finds with -lNAME
36957library_names_spec=$lt_library_names_spec
36958
36959# The coded name of the library, if different from the real name.
36960soname_spec=$lt_soname_spec
36961
cristy0c60a692010-11-04 01:09:47 +000036962# Permission mode override for installation of shared libraries.
36963install_override_mode=$lt_install_override_mode
36964
cristy73bd4a52010-10-05 11:24:23 +000036965# Command to use after installation of a shared archive.
36966postinstall_cmds=$lt_postinstall_cmds
36967
36968# Command to use after uninstallation of a shared archive.
36969postuninstall_cmds=$lt_postuninstall_cmds
36970
36971# Commands used to finish a libtool library installation in a directory.
36972finish_cmds=$lt_finish_cmds
36973
36974# As "finish_cmds", except a single script fragment to be evaled but
36975# not shown.
36976finish_eval=$lt_finish_eval
36977
36978# Whether we should hardcode library paths into libraries.
36979hardcode_into_libs=$hardcode_into_libs
36980
36981# Compile-time system search path for libraries.
36982sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
36983
36984# Run-time system search path for libraries.
36985sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
36986
36987# Whether dlopen is supported.
36988dlopen_support=$enable_dlopen
36989
36990# Whether dlopen of programs is supported.
36991dlopen_self=$enable_dlopen_self
36992
36993# Whether dlopen of statically linked programs is supported.
36994dlopen_self_static=$enable_dlopen_self_static
36995
36996# Commands to strip libraries.
36997old_striplib=$lt_old_striplib
36998striplib=$lt_striplib
36999
37000
37001# The linker used to build libraries.
37002LD=$lt_LD
37003
cristy0c60a692010-11-04 01:09:47 +000037004# How to create reloadable object files.
37005reload_flag=$lt_reload_flag
37006reload_cmds=$lt_reload_cmds
37007
cristy73bd4a52010-10-05 11:24:23 +000037008# Commands used to build an old-style archive.
37009old_archive_cmds=$lt_old_archive_cmds
37010
37011# A language specific compiler.
37012CC=$lt_compiler
37013
37014# Is the compiler the GNU compiler?
37015with_gcc=$GCC
37016
37017# Compiler flag to turn off builtin functions.
37018no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37019
cristy73bd4a52010-10-05 11:24:23 +000037020# Additional compiler flags for building library objects.
37021pic_flag=$lt_lt_prog_compiler_pic
37022
cristyda16f162011-02-19 23:52:17 +000037023# How to pass a linker flag through the compiler.
37024wl=$lt_lt_prog_compiler_wl
37025
cristy73bd4a52010-10-05 11:24:23 +000037026# Compiler flag to prevent dynamic linking.
37027link_static_flag=$lt_lt_prog_compiler_static
37028
37029# Does compiler simultaneously support -c and -o options?
37030compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37031
37032# Whether or not to add -lc for building shared libraries.
37033build_libtool_need_lc=$archive_cmds_need_lc
37034
37035# Whether or not to disallow shared libs when runtime libs are static.
37036allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37037
37038# Compiler flag to allow reflexive dlopens.
37039export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37040
37041# Compiler flag to generate shared objects directly from archives.
37042whole_archive_flag_spec=$lt_whole_archive_flag_spec
37043
37044# Whether the compiler copes with passing no objects directly.
37045compiler_needs_object=$lt_compiler_needs_object
37046
37047# Create an old-style archive from a shared archive.
37048old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37049
37050# Create a temporary old-style archive to link instead of a shared archive.
37051old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37052
37053# Commands used to build a shared archive.
37054archive_cmds=$lt_archive_cmds
37055archive_expsym_cmds=$lt_archive_expsym_cmds
37056
37057# Commands used to build a loadable module if different from building
37058# a shared archive.
37059module_cmds=$lt_module_cmds
37060module_expsym_cmds=$lt_module_expsym_cmds
37061
37062# Whether we are building with GNU ld or not.
37063with_gnu_ld=$lt_with_gnu_ld
37064
37065# Flag that allows shared libraries with undefined symbols to be built.
37066allow_undefined_flag=$lt_allow_undefined_flag
37067
37068# Flag that enforces no undefined symbols.
37069no_undefined_flag=$lt_no_undefined_flag
37070
37071# Flag to hardcode \$libdir into a binary during linking.
37072# This must work even if \$libdir does not exist
37073hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37074
37075# If ld is used when linking, flag to hardcode \$libdir into a binary
37076# during linking. This must work even if \$libdir does not exist.
37077hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
37078
37079# Whether we need a single "-rpath" flag with a separated argument.
37080hardcode_libdir_separator=$lt_hardcode_libdir_separator
37081
37082# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37083# DIR into the resulting binary.
37084hardcode_direct=$hardcode_direct
37085
37086# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37087# DIR into the resulting binary and the resulting library dependency is
37088# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37089# library is relocated.
37090hardcode_direct_absolute=$hardcode_direct_absolute
37091
37092# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37093# into the resulting binary.
37094hardcode_minus_L=$hardcode_minus_L
37095
37096# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37097# into the resulting binary.
37098hardcode_shlibpath_var=$hardcode_shlibpath_var
37099
37100# Set to "yes" if building a shared library automatically hardcodes DIR
37101# into the library and all subsequent libraries and executables linked
37102# against it.
37103hardcode_automatic=$hardcode_automatic
37104
37105# Set to yes if linker adds runtime paths of dependent libraries
37106# to runtime path list.
37107inherit_rpath=$inherit_rpath
37108
37109# Whether libtool must link a program against all its dependency libraries.
37110link_all_deplibs=$link_all_deplibs
37111
cristy73bd4a52010-10-05 11:24:23 +000037112# Set to "yes" if exported symbols are required.
37113always_export_symbols=$always_export_symbols
37114
37115# The commands to list exported symbols.
37116export_symbols_cmds=$lt_export_symbols_cmds
37117
37118# Symbols that should not be listed in the preloaded symbols.
37119exclude_expsyms=$lt_exclude_expsyms
37120
37121# Symbols that must always be exported.
37122include_expsyms=$lt_include_expsyms
37123
37124# Commands necessary for linking programs (against libraries) with templates.
37125prelink_cmds=$lt_prelink_cmds
37126
cristyda16f162011-02-19 23:52:17 +000037127# Commands necessary for finishing linking programs.
37128postlink_cmds=$lt_postlink_cmds
37129
cristy73bd4a52010-10-05 11:24:23 +000037130# Specify filename containing input files.
37131file_list_spec=$lt_file_list_spec
37132
37133# How to hardcode a shared library path into an executable.
37134hardcode_action=$hardcode_action
37135
37136# The directories searched by this compiler when creating a shared library.
37137compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37138
37139# Dependencies to place before and after the objects being linked to
37140# create a shared library.
37141predep_objects=$lt_predep_objects
37142postdep_objects=$lt_postdep_objects
37143predeps=$lt_predeps
37144postdeps=$lt_postdeps
37145
37146# The library search path used internally by the compiler when linking
37147# a shared library.
37148compiler_lib_search_path=$lt_compiler_lib_search_path
37149
37150# ### END LIBTOOL CONFIG
37151
37152_LT_EOF
37153
37154 case $host_os in
37155 aix3*)
37156 cat <<\_LT_EOF >> "$cfgfile"
37157# AIX sometimes has problems with the GCC collect2 program. For some
37158# reason, if we set the COLLECT_NAMES environment variable, the problems
37159# vanish in a puff of smoke.
37160if test "X${COLLECT_NAMES+set}" != Xset; then
37161 COLLECT_NAMES=
37162 export COLLECT_NAMES
37163fi
37164_LT_EOF
37165 ;;
37166 esac
37167
37168
37169ltmain="$ac_aux_dir/ltmain.sh"
37170
37171
37172 # We use sed instead of cat because bash on DJGPP gets confused if
37173 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37174 # text mode, it properly converts lines to CR/LF. This bash problem
37175 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000037176 sed '$q' "$ltmain" >> "$cfgfile" \
37177 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000037178
cristyda16f162011-02-19 23:52:17 +000037179 if test x"$xsi_shell" = xyes; then
37180 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37181func_dirname ()\
37182{\
37183\ case ${1} in\
37184\ */*) func_dirname_result="${1%/*}${2}" ;;\
37185\ * ) func_dirname_result="${3}" ;;\
37186\ esac\
37187} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37188 && mv -f "$cfgfile.tmp" "$cfgfile" \
37189 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37190test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037191
37192
cristyda16f162011-02-19 23:52:17 +000037193 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37194func_basename ()\
37195{\
37196\ func_basename_result="${1##*/}"\
37197} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37198 && mv -f "$cfgfile.tmp" "$cfgfile" \
37199 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37200test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037201
37202
cristyda16f162011-02-19 23:52:17 +000037203 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37204func_dirname_and_basename ()\
37205{\
37206\ case ${1} in\
37207\ */*) func_dirname_result="${1%/*}${2}" ;;\
37208\ * ) func_dirname_result="${3}" ;;\
37209\ esac\
37210\ func_basename_result="${1##*/}"\
37211} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37212 && mv -f "$cfgfile.tmp" "$cfgfile" \
37213 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37214test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037215
cristyda16f162011-02-19 23:52:17 +000037216
37217 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37218func_stripname ()\
37219{\
37220\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37221\ # positional parameters, so assign one to ordinary parameter first.\
37222\ func_stripname_result=${3}\
37223\ func_stripname_result=${func_stripname_result#"${1}"}\
37224\ func_stripname_result=${func_stripname_result%"${2}"}\
37225} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37226 && mv -f "$cfgfile.tmp" "$cfgfile" \
37227 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37228test 0 -eq $? || _lt_function_replace_fail=:
37229
37230
37231 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37232func_split_long_opt ()\
37233{\
37234\ func_split_long_opt_name=${1%%=*}\
37235\ func_split_long_opt_arg=${1#*=}\
37236} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37237 && mv -f "$cfgfile.tmp" "$cfgfile" \
37238 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37239test 0 -eq $? || _lt_function_replace_fail=:
37240
37241
37242 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37243func_split_short_opt ()\
37244{\
37245\ func_split_short_opt_arg=${1#??}\
37246\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37247} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37248 && mv -f "$cfgfile.tmp" "$cfgfile" \
37249 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37250test 0 -eq $? || _lt_function_replace_fail=:
37251
37252
37253 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37254func_lo2o ()\
37255{\
37256\ case ${1} in\
37257\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37258\ *) func_lo2o_result=${1} ;;\
37259\ esac\
37260} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37261 && mv -f "$cfgfile.tmp" "$cfgfile" \
37262 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37263test 0 -eq $? || _lt_function_replace_fail=:
37264
37265
37266 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37267func_xform ()\
37268{\
37269 func_xform_result=${1%.*}.lo\
37270} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37271 && mv -f "$cfgfile.tmp" "$cfgfile" \
37272 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37273test 0 -eq $? || _lt_function_replace_fail=:
37274
37275
37276 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37277func_arith ()\
37278{\
37279 func_arith_result=$(( $* ))\
37280} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37281 && mv -f "$cfgfile.tmp" "$cfgfile" \
37282 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37283test 0 -eq $? || _lt_function_replace_fail=:
37284
37285
37286 sed -e '/^func_len ()$/,/^} # func_len /c\
37287func_len ()\
37288{\
37289 func_len_result=${#1}\
37290} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37291 && mv -f "$cfgfile.tmp" "$cfgfile" \
37292 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37293test 0 -eq $? || _lt_function_replace_fail=:
37294
37295fi
37296
37297if test x"$lt_shell_append" = xyes; then
37298 sed -e '/^func_append ()$/,/^} # func_append /c\
37299func_append ()\
37300{\
37301 eval "${1}+=\\${2}"\
37302} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37303 && mv -f "$cfgfile.tmp" "$cfgfile" \
37304 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37305test 0 -eq $? || _lt_function_replace_fail=:
37306
37307
37308 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37309func_append_quoted ()\
37310{\
37311\ func_quote_for_eval "${2}"\
37312\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37313} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37314 && mv -f "$cfgfile.tmp" "$cfgfile" \
37315 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37316test 0 -eq $? || _lt_function_replace_fail=:
37317
37318
37319 # Save a `func_append' function call where possible by direct use of '+='
37320 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37321 && mv -f "$cfgfile.tmp" "$cfgfile" \
37322 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37323 test 0 -eq $? || _lt_function_replace_fail=:
37324else
37325 # Save a `func_append' function call even when '+=' is not available
37326 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37327 && mv -f "$cfgfile.tmp" "$cfgfile" \
37328 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37329 test 0 -eq $? || _lt_function_replace_fail=:
37330fi
37331
37332if test x"$_lt_function_replace_fail" = x":"; then
37333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37334$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37335fi
37336
37337
37338 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000037339 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37340 chmod +x "$ofile"
37341
37342
37343 cat <<_LT_EOF >> "$ofile"
37344
37345# ### BEGIN LIBTOOL TAG CONFIG: CXX
37346
37347# The linker used to build libraries.
37348LD=$lt_LD_CXX
37349
cristy0c60a692010-11-04 01:09:47 +000037350# How to create reloadable object files.
37351reload_flag=$lt_reload_flag_CXX
37352reload_cmds=$lt_reload_cmds_CXX
37353
cristy73bd4a52010-10-05 11:24:23 +000037354# Commands used to build an old-style archive.
37355old_archive_cmds=$lt_old_archive_cmds_CXX
37356
37357# A language specific compiler.
37358CC=$lt_compiler_CXX
37359
37360# Is the compiler the GNU compiler?
37361with_gcc=$GCC_CXX
37362
37363# Compiler flag to turn off builtin functions.
37364no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37365
cristy73bd4a52010-10-05 11:24:23 +000037366# Additional compiler flags for building library objects.
37367pic_flag=$lt_lt_prog_compiler_pic_CXX
37368
cristyda16f162011-02-19 23:52:17 +000037369# How to pass a linker flag through the compiler.
37370wl=$lt_lt_prog_compiler_wl_CXX
37371
cristy73bd4a52010-10-05 11:24:23 +000037372# Compiler flag to prevent dynamic linking.
37373link_static_flag=$lt_lt_prog_compiler_static_CXX
37374
37375# Does compiler simultaneously support -c and -o options?
37376compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37377
37378# Whether or not to add -lc for building shared libraries.
37379build_libtool_need_lc=$archive_cmds_need_lc_CXX
37380
37381# Whether or not to disallow shared libs when runtime libs are static.
37382allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37383
37384# Compiler flag to allow reflexive dlopens.
37385export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37386
37387# Compiler flag to generate shared objects directly from archives.
37388whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37389
37390# Whether the compiler copes with passing no objects directly.
37391compiler_needs_object=$lt_compiler_needs_object_CXX
37392
37393# Create an old-style archive from a shared archive.
37394old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37395
37396# Create a temporary old-style archive to link instead of a shared archive.
37397old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37398
37399# Commands used to build a shared archive.
37400archive_cmds=$lt_archive_cmds_CXX
37401archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37402
37403# Commands used to build a loadable module if different from building
37404# a shared archive.
37405module_cmds=$lt_module_cmds_CXX
37406module_expsym_cmds=$lt_module_expsym_cmds_CXX
37407
37408# Whether we are building with GNU ld or not.
37409with_gnu_ld=$lt_with_gnu_ld_CXX
37410
37411# Flag that allows shared libraries with undefined symbols to be built.
37412allow_undefined_flag=$lt_allow_undefined_flag_CXX
37413
37414# Flag that enforces no undefined symbols.
37415no_undefined_flag=$lt_no_undefined_flag_CXX
37416
37417# Flag to hardcode \$libdir into a binary during linking.
37418# This must work even if \$libdir does not exist
37419hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37420
37421# If ld is used when linking, flag to hardcode \$libdir into a binary
37422# during linking. This must work even if \$libdir does not exist.
37423hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
37424
37425# Whether we need a single "-rpath" flag with a separated argument.
37426hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37427
37428# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37429# DIR into the resulting binary.
37430hardcode_direct=$hardcode_direct_CXX
37431
37432# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37433# DIR into the resulting binary and the resulting library dependency is
37434# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37435# library is relocated.
37436hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37437
37438# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37439# into the resulting binary.
37440hardcode_minus_L=$hardcode_minus_L_CXX
37441
37442# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37443# into the resulting binary.
37444hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37445
37446# Set to "yes" if building a shared library automatically hardcodes DIR
37447# into the library and all subsequent libraries and executables linked
37448# against it.
37449hardcode_automatic=$hardcode_automatic_CXX
37450
37451# Set to yes if linker adds runtime paths of dependent libraries
37452# to runtime path list.
37453inherit_rpath=$inherit_rpath_CXX
37454
37455# Whether libtool must link a program against all its dependency libraries.
37456link_all_deplibs=$link_all_deplibs_CXX
37457
cristy73bd4a52010-10-05 11:24:23 +000037458# Set to "yes" if exported symbols are required.
37459always_export_symbols=$always_export_symbols_CXX
37460
37461# The commands to list exported symbols.
37462export_symbols_cmds=$lt_export_symbols_cmds_CXX
37463
37464# Symbols that should not be listed in the preloaded symbols.
37465exclude_expsyms=$lt_exclude_expsyms_CXX
37466
37467# Symbols that must always be exported.
37468include_expsyms=$lt_include_expsyms_CXX
37469
37470# Commands necessary for linking programs (against libraries) with templates.
37471prelink_cmds=$lt_prelink_cmds_CXX
37472
cristyda16f162011-02-19 23:52:17 +000037473# Commands necessary for finishing linking programs.
37474postlink_cmds=$lt_postlink_cmds_CXX
37475
cristy73bd4a52010-10-05 11:24:23 +000037476# Specify filename containing input files.
37477file_list_spec=$lt_file_list_spec_CXX
37478
37479# How to hardcode a shared library path into an executable.
37480hardcode_action=$hardcode_action_CXX
37481
37482# The directories searched by this compiler when creating a shared library.
37483compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
37484
37485# Dependencies to place before and after the objects being linked to
37486# create a shared library.
37487predep_objects=$lt_predep_objects_CXX
37488postdep_objects=$lt_postdep_objects_CXX
37489predeps=$lt_predeps_CXX
37490postdeps=$lt_postdeps_CXX
37491
37492# The library search path used internally by the compiler when linking
37493# a shared library.
37494compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
37495
37496# ### END LIBTOOL TAG CONFIG: CXX
37497_LT_EOF
37498
37499 ;;
cristy4c08aed2011-07-01 19:47:50 +000037500 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000037501 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000037502 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
37503 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
37504
37505 esac
37506done # for ac_tag
37507
37508
cristy8b350f62009-11-15 23:12:43 +000037509as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000037510_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000037511ac_clean_files=$ac_clean_files_save
37512
37513test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000037514 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037515
37516
37517# configure is writing to config.log, and then calls config.status.
37518# config.status does its own redirection, appending to config.log.
37519# Unfortunately, on DOS this fails, as config.log is still kept open
37520# by configure, so config.status won't be able to write to it; its
37521# output is simply discarded. So we exec the FD to /dev/null,
37522# effectively closing config.log, so it can be properly (re)opened and
37523# appended to by config.status. When coming back to configure, we
37524# need to make the FD available again.
37525if test "$no_create" != yes; then
37526 ac_cs_success=:
37527 ac_config_status_args=
37528 test "$silent" = yes &&
37529 ac_config_status_args="$ac_config_status_args --quiet"
37530 exec 5>/dev/null
37531 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37532 exec 5>>config.log
37533 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37534 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000037535 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000037536fi
37537if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000037538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000037539$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
37540fi
37541
37542
37543rm -f magick-version
37544
cristy430a7312010-01-21 20:44:04 +000037545result_dejavu_font_dir='none'
37546if test "${dejavu_font_dir}x" != 'x'; then
37547 result_dejavu_font_dir=$dejavu_font_dir
37548fi
37549
cristy3ed852e2009-09-05 21:47:34 +000037550result_ghostscript_font_dir='none'
37551if test "${ghostscript_font_dir}x" != 'x'; then
37552 result_ghostscript_font_dir=$ghostscript_font_dir
37553fi
37554
37555result_windows_font_dir='none'
37556if test "${windows_font_dir}x" != 'x'; then
37557 result_windows_font_dir=${windows_font_dir}
37558fi
37559
cristy8b350f62009-11-15 23:12:43 +000037560{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000037561ImageMagick is configured as follows. Please verify that this configuration
37562matches your expectations.
37563
37564Host system type: $host
37565Build system type: $build
37566
37567 Option Value
37568-------------------------------------------------------------------------------
37569Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
37570Static libraries --enable-static=$enable_static $libtool_build_static_libs
37571Module support --with-modules=$with_modules $with_modules
37572GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
37573Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
37574High Dynamic Range Imagery
37575 --enable-hdri=$enable_hdri $enable_hdri
37576
37577Delegate Configuration:
37578BZLIB --with-bzlib=$with_bzlib $have_bzlib
37579Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000037580Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000037581DJVU --with-djvu=$with_djvu $have_djvu
37582DPS --with-dps=$with_dps $have_dps
37583FFTW --with-fftw=$with_fftw $have_fftw
37584FlashPIX --with-fpx=$with_fpx $have_fpx
37585FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
37586FreeType --with-freetype=$with_freetype $have_freetype
37587GhostPCL None $PCLDelegate ($PCLVersion)
37588GhostXPS None $XPSDelegate ($XPSVersion)
37589Ghostscript None $PSDelegate ($GSVersion)
37590Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
37591Ghostscript lib --with-gslib=$with_gslib $have_gslib
37592Graphviz --with-gvc=$with_gvc $have_gvc
37593JBIG --with-jbig=$with_jbig $have_jbig
37594JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
37595JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000037596LCMS v1 --with-lcms=$with_lcms $have_lcms
37597LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000037598LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000037599LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000037600Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
37601OpenEXR --with-openexr=$with_openexr $have_openexr
37602PERL --with-perl=$with_perl $have_perl
37603PNG --with-png=$with_png $have_png
37604RSVG --with-rsvg=$with_rsvg $have_rsvg
37605TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000037606WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000037607Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
37608WMF --with-wmf=$with_wmf $have_wmf
37609X11 --with-x=$with_x $have_x
37610XML --with-xml=$with_xml $have_xml
37611ZLIB --with-zlib=$with_zlib $have_zlib
37612
37613X11 Configuration:
37614 X_CFLAGS = $X_CFLAGS
37615 X_PRE_LIBS = $X_PRE_LIBS
37616 X_LIBS = $X_LIBS
37617 X_EXTRA_LIBS = $X_EXTRA_LIBS
37618
37619Options used to compile and link:
37620 PREFIX = $PREFIX_DIR
37621 EXEC-PREFIX = $EXEC_PREFIX_DIR
37622 VERSION = $PACKAGE_VERSION
37623 CC = $CC
37624 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000037625 CPPFLAGS = $MAGICK_CPPFLAGS
37626 PCFLAGS = $MAGICK_PCFLAGS
37627 DEFS = $DEFS
37628 LDFLAGS = $LDFLAGS
37629 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
37630 LIBS = $MAGICK_LIBS
37631 CXX = $CXX
37632 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000037633 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000037634" >&5
37635$as_echo "
37636ImageMagick is configured as follows. Please verify that this configuration
37637matches your expectations.
37638
37639Host system type: $host
37640Build system type: $build
37641
37642 Option Value
37643-------------------------------------------------------------------------------
37644Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
37645Static libraries --enable-static=$enable_static $libtool_build_static_libs
37646Module support --with-modules=$with_modules $with_modules
37647GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
37648Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
37649High Dynamic Range Imagery
37650 --enable-hdri=$enable_hdri $enable_hdri
37651
37652Delegate Configuration:
37653BZLIB --with-bzlib=$with_bzlib $have_bzlib
37654Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000037655Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000037656DJVU --with-djvu=$with_djvu $have_djvu
37657DPS --with-dps=$with_dps $have_dps
37658FFTW --with-fftw=$with_fftw $have_fftw
37659FlashPIX --with-fpx=$with_fpx $have_fpx
37660FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
37661FreeType --with-freetype=$with_freetype $have_freetype
37662GhostPCL None $PCLDelegate ($PCLVersion)
37663GhostXPS None $XPSDelegate ($XPSVersion)
37664Ghostscript None $PSDelegate ($GSVersion)
37665Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
37666Ghostscript lib --with-gslib=$with_gslib $have_gslib
37667Graphviz --with-gvc=$with_gvc $have_gvc
37668JBIG --with-jbig=$with_jbig $have_jbig
37669JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
37670JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000037671LCMS v1 --with-lcms=$with_lcms $have_lcms
37672LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000037673LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000037674LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000037675Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
37676OpenEXR --with-openexr=$with_openexr $have_openexr
37677PERL --with-perl=$with_perl $have_perl
37678PNG --with-png=$with_png $have_png
37679RSVG --with-rsvg=$with_rsvg $have_rsvg
37680TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000037681WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000037682Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
37683WMF --with-wmf=$with_wmf $have_wmf
37684X11 --with-x=$with_x $have_x
37685XML --with-xml=$with_xml $have_xml
37686ZLIB --with-zlib=$with_zlib $have_zlib
37687
37688X11 Configuration:
37689 X_CFLAGS = $X_CFLAGS
37690 X_PRE_LIBS = $X_PRE_LIBS
37691 X_LIBS = $X_LIBS
37692 X_EXTRA_LIBS = $X_EXTRA_LIBS
37693
37694Options used to compile and link:
37695 PREFIX = $PREFIX_DIR
37696 EXEC-PREFIX = $EXEC_PREFIX_DIR
37697 VERSION = $PACKAGE_VERSION
37698 CC = $CC
37699 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000037700 CPPFLAGS = $MAGICK_CPPFLAGS
37701 PCFLAGS = $MAGICK_PCFLAGS
37702 DEFS = $DEFS
37703 LDFLAGS = $LDFLAGS
37704 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
37705 LIBS = $MAGICK_LIBS
37706 CXX = $CXX
37707 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000037708 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000037709" >&6; }