blob: d93c6baf0c62c3bf76dd3acacb6bf703e4135983 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy98dddb52010-11-04 00:30:15 +00003# Generated by GNU Autoconf 2.66 for ImageMagick 6.6.4.
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.
cristy8b350f62009-11-15 23:12:43 +000094case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000095 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
cristy3ed852e2009-09-05 21:47:34 +0000103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000114 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000115fi
116
cristy8b350f62009-11-15 23:12:43 +0000117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
cristy8b350f62009-11-15 23:12:43 +0000135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000176test \$(( 1 + 1 )) = 2 || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000185 if (eval "$as_required") 2>/dev/null; then :
186 as_have_required=yes
187else
188 as_have_required=no
189fi
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192else
193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194as_found=false
195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196do
197 IFS=$as_save_IFS
198 test -z "$as_dir" && as_dir=.
199 as_found=:
200 case $as_dir in #(
201 /*)
202 for as_base in sh bash ksh sh5; do
203 # Try only shells that exist, to save several forks.
204 as_shell=$as_dir/$as_base
205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 CONFIG_SHELL=$as_shell as_have_required=yes
208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 break 2
210fi
211fi
212 done;;
213 esac
214 as_found=false
215done
216$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218 CONFIG_SHELL=$SHELL as_have_required=yes
219fi; }
220IFS=$as_save_IFS
221
222
223 if test "x$CONFIG_SHELL" != x; then :
224 # We cannot yet assume a decent shell, so we have to provide a
225 # neutralization value for shells without unset; and this also
226 # works around shells that cannot unset nonexistent variables.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: http://www.imagemagick.org about your system, including
243$0: any error possibly output before this message. Then
244$0: install a modern shell, or manually run the script
245$0: under such a shell if you do have one."
246 fi
247 exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265 { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274 return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282 set +e
283 as_fn_set_status $1
284 exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\).*/{
323 s//\1/
324 q
325 }
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
342 {
343 eval $1+=\$2
344 }'
345else
346 as_fn_append ()
347 {
348 eval $1=\$$1\$2
349 }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
359 {
360 as_val=$(( $* ))
361 }'
362else
363 as_fn_arith ()
364 {
365 as_val=`expr "$@" || test $? -eq 1`
366 }
367fi # as_fn_arith
368
369
cristy98dddb52010-11-04 00:30:15 +0000370# as_fn_error STATUS ERROR [LINENO LOG_FD]
371# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000374# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000375as_fn_error ()
376{
cristy98dddb52010-11-04 00:30:15 +0000377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000381 fi
cristy98dddb52010-11-04 00:30:15 +0000382 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000383 as_fn_exit $as_status
384} # as_fn_error
385
cristy3ed852e2009-09-05 21:47:34 +0000386if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389else
390 as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395else
396 as_basename=false
397fi
398
cristy8b350f62009-11-15 23:12:43 +0000399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401else
402 as_dirname=false
403fi
cristy3ed852e2009-09-05 21:47:34 +0000404
cristy3ed852e2009-09-05 21:47:34 +0000405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409$as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
412 q
413 }
414 /^X\/\(\/\/\)$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\).*/{
419 s//\1/
420 q
421 }
422 s/.*/./; q'`
423
cristy8b350f62009-11-15 23:12:43 +0000424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000430
431
cristy8b350f62009-11-15 23:12:43 +0000432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
446 N
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000453 { $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 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
461}
462
cristy3ed852e2009-09-05 21:47:34 +0000463ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000464case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000465-n*)
cristy8b350f62009-11-15 23:12:43 +0000466 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000471 esac;;
472*)
473 ECHO_N='-n';;
474esac
cristy3ed852e2009-09-05 21:47:34 +0000475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
482fi
483if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
496 fi
497else
498 as_ln_s='cp -p'
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000504 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000505else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
508fi
509
510if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
517 fi
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
cristy8b350f62009-11-15 23:12:43 +0000523 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000524 -*)set "./$1";;
525 esac;
cristy8b350f62009-11-15 23:12:43 +0000526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
529 '
530fi
531as_executable_p=$as_test_x
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
cristy73bd4a52010-10-05 11:24:23 +0000539SHELL=${CONFIG_SHELL-/bin/sh}
540
cristy73bd4a52010-10-05 11:24:23 +0000541lt_ltdl_dir='ltdl'
542
543lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
544
cristy0c60a692010-11-04 01:09:47 +0000545
cristycd4c5312009-11-22 01:19:08 +0000546test -n "$DJDIR" || exec 7<&0 </dev/null
547exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000548
549# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000550# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000551# so uname gets run too.
552ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
553
554#
555# Initializations.
556#
557ac_default_prefix=/usr/local
558ac_clean_files=
559ac_config_libobj_dir=.
560LIBOBJS=
561cross_compiling=no
562subdirs=
563MFLAGS=
564MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000565
566# Identity of this package.
567PACKAGE_NAME='ImageMagick'
568PACKAGE_TARNAME='ImageMagick'
cristy56225732010-09-04 23:44:25 +0000569PACKAGE_VERSION='6.6.4'
570PACKAGE_STRING='ImageMagick 6.6.4'
cristy3ed852e2009-09-05 21:47:34 +0000571PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000572PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000573
574ac_unique_file="magick/MagickCore.h"
575ac_config_libobj_dir=ltdl
576# Factoring default headers for most tests.
577ac_includes_default="\
578#include <stdio.h>
579#ifdef HAVE_SYS_TYPES_H
580# include <sys/types.h>
581#endif
582#ifdef HAVE_SYS_STAT_H
583# include <sys/stat.h>
584#endif
585#ifdef STDC_HEADERS
586# include <stdlib.h>
587# include <stddef.h>
588#else
589# ifdef HAVE_STDLIB_H
590# include <stdlib.h>
591# endif
592#endif
593#ifdef HAVE_STRING_H
594# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595# include <memory.h>
596# endif
597# include <string.h>
598#endif
599#ifdef HAVE_STRINGS_H
600# include <strings.h>
601#endif
602#ifdef HAVE_INTTYPES_H
603# include <inttypes.h>
604#endif
605#ifdef HAVE_STDINT_H
606# include <stdint.h>
607#endif
608#ifdef HAVE_UNISTD_H
609# include <unistd.h>
610#endif"
611
cristycd4c5312009-11-22 01:19:08 +0000612ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000613ac_subst_vars='ltdl_LTLIBOBJS
614ltdl_LIBOBJS
615am__EXEEXT_FALSE
616am__EXEEXT_TRUE
617LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000618MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000619MAGICK_LIBS
620MAGICK_LDFLAGS
621MAGICK_PCFLAGS
622MAGICK_CPPFLAGS
623MAGICK_CXXFLAGS
624MAGICK_CFLAGS
625MAGICK_DEP_LIBS
626MAGICK_LTDLDEPS
627MAGICK_LIBLTDL
628OSX_GCOV_LDFLAG
629DELEGATES
630MAGICKCORE_PATH
631PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000632WITH_PERL_DYNAMIC_FALSE
633WITH_PERL_DYNAMIC_TRUE
634WITH_PERL_STATIC_FALSE
635WITH_PERL_STATIC_TRUE
636WITH_PERL_FALSE
637WITH_PERL_TRUE
638PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000639GSVersion
640GSPSDevice
641GSPDFDevice
642GSMonoDevice
643GSEPSDevice
644GSColorDevice
645GSCMYKDevice
646GSAlphaDevice
647XPSVersion
648XPSCMYKDevice
649XPSColorDevice
650XPSMonoDevice
651PCLVersion
652PCLCMYKDevice
653PCLColorDevice
654PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000655ZIP_DELEGATE_FALSE
656ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000657ZIP
cristy73bd4a52010-10-05 11:24:23 +0000658P7ZIP_DELEGATE_FALSE
659P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000660P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000661RPM_DELEGATE_FALSE
662RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000663RPM
664PERL
665TAR
666ShowImageDelegate
667type_include_files
668ghostscript_font_dir
669windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000670dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000671PrintDelegate
672ZipDelegate
673XPSDelegate
674WWWDecodeDelegate
675WMFDecodeDelegate
cristy23f7a922010-10-11 00:27:48 +0000676WEBPDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000677UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000678TXTDelegate
679SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000680RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000681RMDelegate
682RLEEncodeDelegate
683PSDelegate
684POVDelegate
685PGPDecodeDelegate
686PCLDelegate
687MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000688MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000689MPEGEncodeDelegate
690MPEGDecodeDelegate
691MANDelegate
692LaunchDelegate
693LZWEncodeDelegate
694LZWDecodeDelegate
695LPRDelegate
696LPDelegate
697ILBMEncodeDelegate
698ILBMDecodeDelegate
699HTMLDecodeDelegate
700HPGLDecodeDelegate
701HDRDecodeDelegate
702GnuplotDecodeDelegate
703MogrifyDelegate
704DisplayDelegate
705ConvertDelegate
706FIGDecodeDelegate
707EditorDelegate
708EchoDelegate
709DVIDecodeDelegate
710GVCDecodeDelegate
711DNGDecodeDelegate
712CatDelegate
713CGMDecodeDelegate
714BrowseDelegate
715BZIPDelegate
716BlenderDecodeDelegate
717AVIDecodeDelegate
718AutotraceDecodeDelegate
719SHARE_CONFIGURE_PATH
720SHARE_PATH
721DOCUMENTATION_PATH
722FILTER_PATH
723CODER_PATH
724CONFIGURE_PATH
725LIBRARY_PATH
726EXECUTABLE_PATH
727PERLMAINCC
728XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000729XML_DELEGATE_FALSE
730XML_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000731xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000732WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000733WMF_DELEGATE_FALSE
734WMF_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000735TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000736TIFF_DELEGATE_FALSE
737TIFF_DELEGATE_TRUE
738CAIRO_DELEGATE_FALSE
739CAIRO_DELEGATE_TRUE
740RSVG_DELEGATE_FALSE
741RSVG_DELEGATE_TRUE
742CAIRO_SVG_LIBS
743CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000744RSVG_LIBS
745RSVG_CFLAGS
746PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000747PNG_DELEGATE_FALSE
748PNG_DELEGATE_TRUE
749OPENEXR_DELEGATE_FALSE
750OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000751OPENEXR_LIBS
752OPENEXR_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000753LQR_DELEGATE_FALSE
754LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000755LQR_LIBS
756LQR_CFLAGS
757LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000758LCMS_DELEGATE_FALSE
759LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000760JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000761JP2_DELEGATE_FALSE
762JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000763JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000764JPEG_DELEGATE_FALSE
765JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000766JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000767JBIG_DELEGATE_FALSE
768JBIG_DELEGATE_TRUE
769GVC_DELEGATE_FALSE
770GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000771GVC_LIBS
772GVC_CFLAGS
773GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000774GS_DELEGATE_FALSE
775GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000776FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000777FREETYPE_DELEGATE_FALSE
778FREETYPE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000779freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000780FONTCONFIG_DELEGATE_FALSE
781FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000782FONTCONFIG_LIBS
783FONTCONFIG_CFLAGS
784FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000785FPX_DELEGATE_FALSE
786FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000787FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000788FFTW_DELEGATE_FALSE
789FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000790DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000791DJVU_DELEGATE_FALSE
792DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000793DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000794DPS_DELEGATE_FALSE
795DPS_DELEGATE_TRUE
796AUTOTRACE_DELEGATE_FALSE
797AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000798AUTOTRACE_LIBS
799AUTOTRACE_CFLAGS
800LIB_DL
801ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000802ZLIB_DELEGATE_FALSE
803ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000804XEXT_LIBS
805X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000806X11_DELEGATE_FALSE
807X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000808X_EXTRA_LIBS
809X_LIBS
810X_PRE_LIBS
811X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000812XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000813BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000814BZLIB_DELEGATE_FALSE
815BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000816CCMALLOCDelegate
817UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000818HasUMEM_FALSE
819HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000820THREAD_LIBS
821GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000822WITH_MAGICK_PLUS_PLUS_FALSE
823WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000824OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000825MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000826POW_LIB
827LIBOBJS
828UINTPTR_T
829UINTMAX_T
830UINT64_T
831INT64_T
832UINT32_T
833INT32_T
834UINT16_T
835INT16_T
836UINT8_T
837INT8_T
838LIBRARY_EXTRA_CPPFLAGS
839MODULE_EXTRA_CPPFLAGS
840LIBSTDCLDFLAGS
841PERL_MAKE_OPTIONS
842QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000843MAINT
844MAINTAINER_MODE_FALSE
845MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000846MAGICK_HDRI
847DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000848WITH_LTDL_FALSE
849WITH_LTDL_TRUE
850WITH_MODULES_FALSE
851WITH_MODULES_TRUE
852WITH_SHARED_LIBS_FALSE
853WITH_SHARED_LIBS_TRUE
854LTDLOPEN
855LT_CONFIG_H
856CONVENIENCE_LTDL_FALSE
857CONVENIENCE_LTDL_TRUE
858INSTALL_LTDL_FALSE
859INSTALL_LTDL_TRUE
860ARGZ_H
861sys_symbol_underscore
862LIBADD_DL
863LT_DLPREOPEN
864LIBADD_DLD_LINK
865LIBADD_SHL_LOAD
866LIBADD_DLOPEN
867LT_DLLOADERS
868INCLTDL
869LTDLINCL
870LTDLDEPS
871LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000872LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000873CXXCPP
874OTOOL64
875OTOOL
876LIPO
877NMEDIT
878DSYMUTIL
cristy73bd4a52010-10-05 11:24:23 +0000879RANLIB
880AR
881NM
882ac_ct_DUMPBIN
883DUMPBIN
884LIBTOOL
885OBJDUMP
886DLLTOOL
887AS
cristy3ed852e2009-09-05 21:47:34 +0000888LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000889CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000890CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000891OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000892PTHREAD_CFLAGS
893PTHREAD_LIBS
894PTHREAD_CC
895ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000896WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000897USING_CL_FALSE
898USING_CL_TRUE
899CYGWIN_BUILD_FALSE
900CYGWIN_BUILD_TRUE
901WIN32_NATIVE_BUILD_FALSE
902WIN32_NATIVE_BUILD_TRUE
903WINGDI32_DELEGATE_FALSE
904WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000905GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000906PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000907LN_S
cristy3ed852e2009-09-05 21:47:34 +0000908LD
cristy73bd4a52010-10-05 11:24:23 +0000909FGREP
910SED
911am__fastdepCXX_FALSE
912am__fastdepCXX_TRUE
913CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000914ac_ct_CXX
915CXXFLAGS
916CXX
cristya0b81c32010-01-22 02:54:33 +0000917EGREP
918GREP
919CPP
cristy73bd4a52010-10-05 11:24:23 +0000920am__fastdepCC_FALSE
921am__fastdepCC_TRUE
922CCDEPMODE
923AMDEPBACKSLASH
924AMDEP_FALSE
925AMDEP_TRUE
926am__quote
927am__include
928DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000929OBJEXT
930EXEEXT
931ac_ct_CC
932CPPFLAGS
933LDFLAGS
934CFLAGS
935CC
936DIRSEP
937MAGICK_FILTER_MODULE_PATH
938MAGICK_CONFIGURE_BUILD_PATH
939MAGICK_CONFIGURE_SRC_PATH
940MAGICK_CODER_MODULE_PATH
941MAN_DIR
942INFO_DIR
943PERSISTINCLUDE_DIR
944INCLUDE_DIR
945LIB_DIR
946LOCALSTATE_DIR
947SHAREDSTATE_DIR
948SYSCONF_DIR
949DATA_DIR
950LIBEXEC_DIR
951SBIN_DIR
952BIN_DIR
953EXEC_PREFIX_DIR
954PREFIX_DIR
955CONFIG_STATUS_DEPENDENCIES
956MAGICK_LIB_VERSION_NUMBER
957MAGICK_LIB_VERSION_TEXT
958MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000959AM_BACKSLASH
960AM_DEFAULT_VERBOSITY
961am__untar
962am__tar
963AMTAR
964am__leading_dot
965SET_MAKE
966AWK
967mkdir_p
968MKDIR_P
969INSTALL_STRIP_PROGRAM
970STRIP
971install_sh
972MAKEINFO
973AUTOHEADER
974AUTOMAKE
975AUTOCONF
976ACLOCAL
977VERSION
978PACKAGE
979CYGPATH_W
980am__isrc
981INSTALL_DATA
982INSTALL_SCRIPT
983INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +0000984PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +0000985PACKAGE_RELEASE_DATE
986PACKAGE_LIB_VERSION_NUMBER
987PACKAGE_LIB_VERSION
988PACKAGE_CHANGE_DATE
989PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +0000990MAGICK_LIBRARY_VERSION_INFO
991MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +0000992MAGICK_LIBRARY_AGE
993MAGICK_LIBRARY_REVISION
994MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +0000995MAGICK_TARGET_OS
996MAGICK_TARGET_VENDOR
997MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +0000998target_os
999target_vendor
1000target_cpu
1001target
1002host_os
1003host_vendor
1004host_cpu
1005host
1006build_os
1007build_vendor
1008build_cpu
1009build
1010CONFIGURE_ARGS
1011DISTCHECK_CONFIG_FLAGS
1012target_alias
1013host_alias
1014build_alias
1015LIBS
1016ECHO_T
1017ECHO_N
1018ECHO_C
1019DEFS
1020mandir
1021localedir
1022libdir
1023psdir
1024pdfdir
1025dvidir
1026htmldir
1027infodir
1028docdir
1029oldincludedir
1030includedir
1031localstatedir
1032sharedstatedir
1033sysconfdir
1034datadir
1035datarootdir
1036libexecdir
1037sbindir
1038bindir
1039program_transform_name
1040prefix
1041exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001042PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001043PACKAGE_BUGREPORT
1044PACKAGE_STRING
1045PACKAGE_VERSION
1046PACKAGE_TARNAME
1047PACKAGE_NAME
1048PATH_SEPARATOR
1049SHELL'
1050ac_subst_files=''
1051ac_user_opts='
1052enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001053enable_silent_rules
1054enable_dependency_tracking
1055with_gnu_ld
1056with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001057enable_bounds_checking
1058enable_osx_universal_binary
1059with_threads
1060enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001061enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001062enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001063enable_shared
1064enable_static
1065with_pic
1066enable_fast_install
1067enable_libtool_lock
1068with_included_ltdl
1069with_ltdl_include
1070with_ltdl_lib
1071enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001072with_modules
1073enable_delegate_build
1074enable_deprecated
1075enable_installed
1076enable_cipher
1077enable_embeddable
1078enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001079enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001080enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001081enable_ccmalloc
1082enable_efence
1083enable_prof
1084enable_gprof
1085enable_gcov
1086with_method_prefix
1087with_quantum_depth
1088with_cache
1089with_frozenpaths
1090with_magick_plus_plus
1091with_perl
1092with_perl_options
1093with_umem
1094with_libstdc
1095with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001096with_x
cristy3ed852e2009-09-05 21:47:34 +00001097with_zlib
1098with_autotrace
1099with_dps
1100with_djvu
cristy430a7312010-01-21 20:44:04 +00001101with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001102with_fftw
1103with_fpx
1104with_fontconfig
1105with_freetype
1106with_gslib
1107with_fontpath
1108with_gs_font_dir
1109with_gvc
1110with_jbig
1111with_jpeg
1112with_jp2
1113with_lcms
cristy71203402010-06-18 13:12:03 +00001114with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001115with_lqr
1116with_openexr
1117with_png
1118with_rsvg
1119with_tiff
1120with_windows_font_dir
1121with_wmf
1122with_xml
1123'
1124 ac_precious_vars='build_alias
1125host_alias
1126target_alias
1127CC
1128CFLAGS
1129LDFLAGS
1130LIBS
1131CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001132CPP
cristy3ed852e2009-09-05 21:47:34 +00001133CXX
1134CXXFLAGS
1135CCC
cristy73bd4a52010-10-05 11:24:23 +00001136PKG_CONFIG
1137CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001138XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001139AUTOTRACE_CFLAGS
1140AUTOTRACE_LIBS
1141FONTCONFIG_CFLAGS
1142FONTCONFIG_LIBS
1143GVC_CFLAGS
1144GVC_LIBS
1145LQR_CFLAGS
1146LQR_LIBS
1147OPENEXR_CFLAGS
1148OPENEXR_LIBS
1149RSVG_CFLAGS
1150RSVG_LIBS
1151CAIRO_SVG_CFLAGS
1152CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001153
1154
1155# Initialize some variables set by options.
1156ac_init_help=
1157ac_init_version=false
1158ac_unrecognized_opts=
1159ac_unrecognized_sep=
1160# The variables have the same names as the options, with
1161# dashes changed to underlines.
1162cache_file=/dev/null
1163exec_prefix=NONE
1164no_create=
1165no_recursion=
1166prefix=NONE
1167program_prefix=NONE
1168program_suffix=NONE
1169program_transform_name=s,x,x,
1170silent=
1171site=
1172srcdir=
1173verbose=
1174x_includes=NONE
1175x_libraries=NONE
1176
1177# Installation directory options.
1178# These are left unexpanded so users can "make install exec_prefix=/foo"
1179# and all the variables that are supposed to be based on exec_prefix
1180# by default will actually change.
1181# Use braces instead of parens because sh, perl, etc. also accept them.
1182# (The list follows the same order as the GNU Coding Standards.)
1183bindir='${exec_prefix}/bin'
1184sbindir='${exec_prefix}/sbin'
1185libexecdir='${exec_prefix}/libexec'
1186datarootdir='${prefix}/share'
1187datadir='${datarootdir}'
1188sysconfdir='${prefix}/etc'
1189sharedstatedir='${prefix}/com'
1190localstatedir='${prefix}/var'
1191includedir='${prefix}/include'
1192oldincludedir='/usr/include'
1193docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1194infodir='${datarootdir}/info'
1195htmldir='${docdir}'
1196dvidir='${docdir}'
1197pdfdir='${docdir}'
1198psdir='${docdir}'
1199libdir='${exec_prefix}/lib'
1200localedir='${datarootdir}/locale'
1201mandir='${datarootdir}/man'
1202
1203ac_prev=
1204ac_dashdash=
1205for ac_option
1206do
1207 # If the previous option needs an argument, assign it.
1208 if test -n "$ac_prev"; then
1209 eval $ac_prev=\$ac_option
1210 ac_prev=
1211 continue
1212 fi
1213
1214 case $ac_option in
1215 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1216 *) ac_optarg=yes ;;
1217 esac
1218
1219 # Accept the important Cygnus configure options, so we can diagnose typos.
1220
1221 case $ac_dashdash$ac_option in
1222 --)
1223 ac_dashdash=yes ;;
1224
1225 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1226 ac_prev=bindir ;;
1227 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1228 bindir=$ac_optarg ;;
1229
1230 -build | --build | --buil | --bui | --bu)
1231 ac_prev=build_alias ;;
1232 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1233 build_alias=$ac_optarg ;;
1234
1235 -cache-file | --cache-file | --cache-fil | --cache-fi \
1236 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1237 ac_prev=cache_file ;;
1238 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1239 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1240 cache_file=$ac_optarg ;;
1241
1242 --config-cache | -C)
1243 cache_file=config.cache ;;
1244
1245 -datadir | --datadir | --datadi | --datad)
1246 ac_prev=datadir ;;
1247 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1248 datadir=$ac_optarg ;;
1249
1250 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1251 | --dataroo | --dataro | --datar)
1252 ac_prev=datarootdir ;;
1253 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1254 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1255 datarootdir=$ac_optarg ;;
1256
1257 -disable-* | --disable-*)
1258 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001261 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001262 ac_useropt_orig=$ac_useropt
1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1265 *"
1266"enable_$ac_useropt"
1267"*) ;;
1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1269 ac_unrecognized_sep=', ';;
1270 esac
1271 eval enable_$ac_useropt=no ;;
1272
1273 -docdir | --docdir | --docdi | --doc | --do)
1274 ac_prev=docdir ;;
1275 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1276 docdir=$ac_optarg ;;
1277
1278 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1279 ac_prev=dvidir ;;
1280 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1281 dvidir=$ac_optarg ;;
1282
1283 -enable-* | --enable-*)
1284 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001287 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001288 ac_useropt_orig=$ac_useropt
1289 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1290 case $ac_user_opts in
1291 *"
1292"enable_$ac_useropt"
1293"*) ;;
1294 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1295 ac_unrecognized_sep=', ';;
1296 esac
1297 eval enable_$ac_useropt=\$ac_optarg ;;
1298
1299 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1300 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1301 | --exec | --exe | --ex)
1302 ac_prev=exec_prefix ;;
1303 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1304 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1305 | --exec=* | --exe=* | --ex=*)
1306 exec_prefix=$ac_optarg ;;
1307
1308 -gas | --gas | --ga | --g)
1309 # Obsolete; use --with-gas.
1310 with_gas=yes ;;
1311
1312 -help | --help | --hel | --he | -h)
1313 ac_init_help=long ;;
1314 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1315 ac_init_help=recursive ;;
1316 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1317 ac_init_help=short ;;
1318
1319 -host | --host | --hos | --ho)
1320 ac_prev=host_alias ;;
1321 -host=* | --host=* | --hos=* | --ho=*)
1322 host_alias=$ac_optarg ;;
1323
1324 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1325 ac_prev=htmldir ;;
1326 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1327 | --ht=*)
1328 htmldir=$ac_optarg ;;
1329
1330 -includedir | --includedir | --includedi | --included | --include \
1331 | --includ | --inclu | --incl | --inc)
1332 ac_prev=includedir ;;
1333 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1334 | --includ=* | --inclu=* | --incl=* | --inc=*)
1335 includedir=$ac_optarg ;;
1336
1337 -infodir | --infodir | --infodi | --infod | --info | --inf)
1338 ac_prev=infodir ;;
1339 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1340 infodir=$ac_optarg ;;
1341
1342 -libdir | --libdir | --libdi | --libd)
1343 ac_prev=libdir ;;
1344 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1345 libdir=$ac_optarg ;;
1346
1347 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1348 | --libexe | --libex | --libe)
1349 ac_prev=libexecdir ;;
1350 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1351 | --libexe=* | --libex=* | --libe=*)
1352 libexecdir=$ac_optarg ;;
1353
1354 -localedir | --localedir | --localedi | --localed | --locale)
1355 ac_prev=localedir ;;
1356 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1357 localedir=$ac_optarg ;;
1358
1359 -localstatedir | --localstatedir | --localstatedi | --localstated \
1360 | --localstate | --localstat | --localsta | --localst | --locals)
1361 ac_prev=localstatedir ;;
1362 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1363 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1364 localstatedir=$ac_optarg ;;
1365
1366 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1367 ac_prev=mandir ;;
1368 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1369 mandir=$ac_optarg ;;
1370
1371 -nfp | --nfp | --nf)
1372 # Obsolete; use --without-fp.
1373 with_fp=no ;;
1374
1375 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1376 | --no-cr | --no-c | -n)
1377 no_create=yes ;;
1378
1379 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1380 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1381 no_recursion=yes ;;
1382
1383 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1384 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1385 | --oldin | --oldi | --old | --ol | --o)
1386 ac_prev=oldincludedir ;;
1387 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1388 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1389 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1390 oldincludedir=$ac_optarg ;;
1391
1392 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1393 ac_prev=prefix ;;
1394 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1395 prefix=$ac_optarg ;;
1396
1397 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1398 | --program-pre | --program-pr | --program-p)
1399 ac_prev=program_prefix ;;
1400 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1401 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1402 program_prefix=$ac_optarg ;;
1403
1404 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1405 | --program-suf | --program-su | --program-s)
1406 ac_prev=program_suffix ;;
1407 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1408 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1409 program_suffix=$ac_optarg ;;
1410
1411 -program-transform-name | --program-transform-name \
1412 | --program-transform-nam | --program-transform-na \
1413 | --program-transform-n | --program-transform- \
1414 | --program-transform | --program-transfor \
1415 | --program-transfo | --program-transf \
1416 | --program-trans | --program-tran \
1417 | --progr-tra | --program-tr | --program-t)
1418 ac_prev=program_transform_name ;;
1419 -program-transform-name=* | --program-transform-name=* \
1420 | --program-transform-nam=* | --program-transform-na=* \
1421 | --program-transform-n=* | --program-transform-=* \
1422 | --program-transform=* | --program-transfor=* \
1423 | --program-transfo=* | --program-transf=* \
1424 | --program-trans=* | --program-tran=* \
1425 | --progr-tra=* | --program-tr=* | --program-t=*)
1426 program_transform_name=$ac_optarg ;;
1427
1428 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1429 ac_prev=pdfdir ;;
1430 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1431 pdfdir=$ac_optarg ;;
1432
1433 -psdir | --psdir | --psdi | --psd | --ps)
1434 ac_prev=psdir ;;
1435 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1436 psdir=$ac_optarg ;;
1437
1438 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1439 | -silent | --silent | --silen | --sile | --sil)
1440 silent=yes ;;
1441
1442 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1443 ac_prev=sbindir ;;
1444 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1445 | --sbi=* | --sb=*)
1446 sbindir=$ac_optarg ;;
1447
1448 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1449 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1450 | --sharedst | --shareds | --shared | --share | --shar \
1451 | --sha | --sh)
1452 ac_prev=sharedstatedir ;;
1453 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1454 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1455 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1456 | --sha=* | --sh=*)
1457 sharedstatedir=$ac_optarg ;;
1458
1459 -site | --site | --sit)
1460 ac_prev=site ;;
1461 -site=* | --site=* | --sit=*)
1462 site=$ac_optarg ;;
1463
1464 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1465 ac_prev=srcdir ;;
1466 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1467 srcdir=$ac_optarg ;;
1468
1469 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1470 | --syscon | --sysco | --sysc | --sys | --sy)
1471 ac_prev=sysconfdir ;;
1472 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1473 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1474 sysconfdir=$ac_optarg ;;
1475
1476 -target | --target | --targe | --targ | --tar | --ta | --t)
1477 ac_prev=target_alias ;;
1478 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1479 target_alias=$ac_optarg ;;
1480
1481 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1482 verbose=yes ;;
1483
1484 -version | --version | --versio | --versi | --vers | -V)
1485 ac_init_version=: ;;
1486
1487 -with-* | --with-*)
1488 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1489 # Reject names that are not valid shell variable names.
1490 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001491 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001492 ac_useropt_orig=$ac_useropt
1493 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1494 case $ac_user_opts in
1495 *"
1496"with_$ac_useropt"
1497"*) ;;
1498 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1499 ac_unrecognized_sep=', ';;
1500 esac
1501 eval with_$ac_useropt=\$ac_optarg ;;
1502
1503 -without-* | --without-*)
1504 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1505 # Reject names that are not valid shell variable names.
1506 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001507 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001508 ac_useropt_orig=$ac_useropt
1509 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1510 case $ac_user_opts in
1511 *"
1512"with_$ac_useropt"
1513"*) ;;
1514 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1515 ac_unrecognized_sep=', ';;
1516 esac
1517 eval with_$ac_useropt=no ;;
1518
1519 --x)
1520 # Obsolete; use --with-x.
1521 with_x=yes ;;
1522
1523 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1524 | --x-incl | --x-inc | --x-in | --x-i)
1525 ac_prev=x_includes ;;
1526 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1527 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1528 x_includes=$ac_optarg ;;
1529
1530 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1531 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1532 ac_prev=x_libraries ;;
1533 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1534 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1535 x_libraries=$ac_optarg ;;
1536
cristy98dddb52010-11-04 00:30:15 +00001537 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1538Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001539 ;;
1540
1541 *=*)
1542 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1543 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001544 case $ac_envvar in #(
1545 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001546 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001547 esac
cristy3ed852e2009-09-05 21:47:34 +00001548 eval $ac_envvar=\$ac_optarg
1549 export $ac_envvar ;;
1550
1551 *)
1552 # FIXME: should be removed in autoconf 3.0.
1553 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1554 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1555 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1556 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1557 ;;
1558
1559 esac
1560done
1561
1562if test -n "$ac_prev"; then
1563 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001564 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001565fi
1566
1567if test -n "$ac_unrecognized_opts"; then
1568 case $enable_option_checking in
1569 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001570 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001571 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1572 esac
1573fi
1574
1575# Check all directory arguments for consistency.
1576for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1577 datadir sysconfdir sharedstatedir localstatedir includedir \
1578 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1579 libdir localedir mandir
1580do
1581 eval ac_val=\$$ac_var
1582 # Remove trailing slashes.
1583 case $ac_val in
1584 */ )
1585 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1586 eval $ac_var=\$ac_val;;
1587 esac
1588 # Be sure to have absolute directory names.
1589 case $ac_val in
1590 [\\/$]* | ?:[\\/]* ) continue;;
1591 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1592 esac
cristy98dddb52010-11-04 00:30:15 +00001593 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001594done
1595
1596# There might be people who depend on the old broken behavior: `$host'
1597# used to hold the argument of --host etc.
1598# FIXME: To remove some day.
1599build=$build_alias
1600host=$host_alias
1601target=$target_alias
1602
1603# FIXME: To remove some day.
1604if test "x$host_alias" != x; then
1605 if test "x$build_alias" = x; then
1606 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001607 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1608 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001609 elif test "x$build_alias" != "x$host_alias"; then
1610 cross_compiling=yes
1611 fi
1612fi
1613
1614ac_tool_prefix=
1615test -n "$host_alias" && ac_tool_prefix=$host_alias-
1616
1617test "$silent" = yes && exec 6>/dev/null
1618
1619
1620ac_pwd=`pwd` && test -n "$ac_pwd" &&
1621ac_ls_di=`ls -di .` &&
1622ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001623 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001624test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001625 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001626
1627
1628# Find the source files, if location was not specified.
1629if test -z "$srcdir"; then
1630 ac_srcdir_defaulted=yes
1631 # Try the directory containing this script, then the parent directory.
1632 ac_confdir=`$as_dirname -- "$as_myself" ||
1633$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1634 X"$as_myself" : 'X\(//\)[^/]' \| \
1635 X"$as_myself" : 'X\(//\)$' \| \
1636 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1637$as_echo X"$as_myself" |
1638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1639 s//\1/
1640 q
1641 }
1642 /^X\(\/\/\)[^/].*/{
1643 s//\1/
1644 q
1645 }
1646 /^X\(\/\/\)$/{
1647 s//\1/
1648 q
1649 }
1650 /^X\(\/\).*/{
1651 s//\1/
1652 q
1653 }
1654 s/.*/./; q'`
1655 srcdir=$ac_confdir
1656 if test ! -r "$srcdir/$ac_unique_file"; then
1657 srcdir=..
1658 fi
1659else
1660 ac_srcdir_defaulted=no
1661fi
1662if test ! -r "$srcdir/$ac_unique_file"; then
1663 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001664 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001665fi
1666ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1667ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001668 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001669 pwd)`
1670# When building in place, set srcdir=.
1671if test "$ac_abs_confdir" = "$ac_pwd"; then
1672 srcdir=.
1673fi
1674# Remove unnecessary trailing slashes from srcdir.
1675# Double slashes in file names in object file debugging info
1676# mess up M-x gdb in Emacs.
1677case $srcdir in
1678*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1679esac
1680for ac_var in $ac_precious_vars; do
1681 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1682 eval ac_env_${ac_var}_value=\$${ac_var}
1683 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1684 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1685done
1686
1687#
1688# Report the --help message.
1689#
1690if test "$ac_init_help" = "long"; then
1691 # Omit some internal or obsolete options to make the list less imposing.
1692 # This message is too long to be a string in the A/UX 3.1 sh.
1693 cat <<_ACEOF
cristy56225732010-09-04 23:44:25 +00001694\`configure' configures ImageMagick 6.6.4 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001695
1696Usage: $0 [OPTION]... [VAR=VALUE]...
1697
1698To assign environment variables (e.g., CC, CFLAGS...), specify them as
1699VAR=VALUE. See below for descriptions of some of the useful variables.
1700
1701Defaults for the options are specified in brackets.
1702
1703Configuration:
1704 -h, --help display this help and exit
1705 --help=short display options specific to this package
1706 --help=recursive display the short help of all the included packages
1707 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001708 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001709 --cache-file=FILE cache test results in FILE [disabled]
1710 -C, --config-cache alias for \`--cache-file=config.cache'
1711 -n, --no-create do not create output files
1712 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1713
1714Installation directories:
1715 --prefix=PREFIX install architecture-independent files in PREFIX
1716 [$ac_default_prefix]
1717 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1718 [PREFIX]
1719
1720By default, \`make install' will install all the files in
1721\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1722an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1723for instance \`--prefix=\$HOME'.
1724
1725For better control, use the options below.
1726
1727Fine tuning of the installation directories:
1728 --bindir=DIR user executables [EPREFIX/bin]
1729 --sbindir=DIR system admin executables [EPREFIX/sbin]
1730 --libexecdir=DIR program executables [EPREFIX/libexec]
1731 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1732 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1733 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1734 --libdir=DIR object code libraries [EPREFIX/lib]
1735 --includedir=DIR C header files [PREFIX/include]
1736 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1737 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1738 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1739 --infodir=DIR info documentation [DATAROOTDIR/info]
1740 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1741 --mandir=DIR man documentation [DATAROOTDIR/man]
1742 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1743 --htmldir=DIR html documentation [DOCDIR]
1744 --dvidir=DIR dvi documentation [DOCDIR]
1745 --pdfdir=DIR pdf documentation [DOCDIR]
1746 --psdir=DIR ps documentation [DOCDIR]
1747_ACEOF
1748
1749 cat <<\_ACEOF
1750
cristy73bd4a52010-10-05 11:24:23 +00001751Program names:
1752 --program-prefix=PREFIX prepend PREFIX to installed program names
1753 --program-suffix=SUFFIX append SUFFIX to installed program names
1754 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1755
cristy3ed852e2009-09-05 21:47:34 +00001756X features:
1757 --x-includes=DIR X include files are in DIR
1758 --x-libraries=DIR X library files are in DIR
1759
1760System types:
1761 --build=BUILD configure for building on BUILD [guessed]
1762 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1763 --target=TARGET configure for building compilers for TARGET [HOST]
1764_ACEOF
1765fi
1766
1767if test -n "$ac_init_help"; then
1768 case $ac_init_help in
cristy56225732010-09-04 23:44:25 +00001769 short | recursive ) echo "Configuration of ImageMagick 6.6.4:";;
cristy3ed852e2009-09-05 21:47:34 +00001770 esac
1771 cat <<\_ACEOF
1772
1773Optional Features:
1774 --disable-option-checking ignore unrecognized --enable/--with options
1775 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1776 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001777 --enable-silent-rules less verbose build output (undo: `make V=1')
1778 --disable-silent-rules verbose build output (undo: `make V=0')
1779 --disable-dependency-tracking speeds up one-time build
1780 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001781 --bounds-checking enable run-time bounds-checking
1782 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001783 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001784 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001785 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001786 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001787 --enable-shared[=PKGS] build shared libraries [default=yes]
1788 --enable-static[=PKGS] build static libraries [default=yes]
1789 --enable-fast-install[=PKGS]
1790 optimize for fast installation [default=yes]
1791 --disable-libtool-lock avoid locking (might break parallel builds)
1792 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001793 --enable-delegate-build look for delegate libraries in build directory
1794 --disable-deprecated exclude deprecated methods in MagickCore and
1795 MagickWand API's
1796 --disable-installed Formally install ImageMagick under PREFIX
1797 --disable-cipher disable enciphering and deciphering image pixels
1798 --enable-embeddable enable self-contained, embeddable,
1799 zero-configuration ImageMagick
1800 --enable-hdri accurately represent the wide range of intensity
1801 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001802 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001803 --enable-maintainer-mode enable make rules and dependencies not useful
1804 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001805 --enable-ccmalloc enable 'ccmalloc' memory debug support
1806 --enable-efence enable 'efence' memory debug support
1807 --enable-prof enable 'prof' profiling support
1808 --enable-gprof enable 'gprof' profiling support
1809 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001810 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001811
1812Optional Packages:
1813 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1814 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001815 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1816 --with-dmalloc use dmalloc, as in
1817 http://www.dmalloc.com/dmalloc.tar.gz
cristy3ed852e2009-09-05 21:47:34 +00001818 --without-threads disable threads support
cristy73bd4a52010-10-05 11:24:23 +00001819 --with-pic try to use only PIC/non-PIC objects [default=use
1820 both]
1821 --with-included-ltdl use the GNU ltdl sources included here
1822 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1823 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001824 --with-modules enable building dynamically loadable modules
1825 --with-method-prefix=PREFIX
1826 prefix MagickCore API methods
1827 --with-quantum-depth=DEPTH
1828 number of bits in a pixel quantum (default 16)
1829 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1830 memory)
1831 --with-frozenpaths freeze delegate paths
1832 --without-magick-plus-plus
1833 disable build/install of Magick++
1834 --with-perl enable build/install of PerlMagick
1835 --with-perl-options=OPTIONS
1836 options to pass on command-line when generating
1837 PerlMagick's build file
1838 --with-umem enable umem memory allocation library support
1839 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1840 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001841 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001842 --without-zlib disable ZLIB support
1843 --with-autotrace enable autotrace support
1844 --without-dps disable Display Postscript support
1845 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001846 --with-dejavu-font-dir=DIR
1847 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001848 --without-fftw disable FFTW support
1849 --without-fpx disable FlashPIX support
1850 --without-fontconfig disable fontconfig support
1851 --without-freetype disable Freetype support
1852 --without-gslib enable Ghostscript library support
1853 --with-fontpath=DIR prepend to default font search path
1854 --with-gs-font-dir=DIR Ghostscript font directory
1855 --without-gvc disable GVC support
1856 --without-jbig disable JBIG support
1857 --without-jpeg disable JPEG support
1858 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001859 --without-lcms disable lcms (v1.1X) support
1860 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001861 --without-lqr disable Liquid Rescale support
cristy3ed852e2009-09-05 21:47:34 +00001862 --without-openexr disable OpenEXR support
1863 --without-png disable PNG support
1864 --without-rsvg disable RSVG support
1865 --without-tiff disable TIFF support
1866 --with-windows-font-dir=DIR
1867 directory containing MS-Windows fonts
1868 --without-wmf disable WMF support
1869 --without-xml disable XML support
1870
1871Some influential environment variables:
1872 CC C compiler command
1873 CFLAGS C compiler flags
1874 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1875 nonstandard directory <lib dir>
1876 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001877 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001878 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001879 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001880 CXX C++ compiler command
1881 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001882 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001883 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001884 XMKMF Path to xmkmf, Makefile generator for X Window System
1885 AUTOTRACE_CFLAGS
1886 C compiler flags for AUTOTRACE, overriding pkg-config
1887 AUTOTRACE_LIBS
1888 linker flags for AUTOTRACE, overriding pkg-config
1889 FONTCONFIG_CFLAGS
1890 C compiler flags for FONTCONFIG, overriding pkg-config
1891 FONTCONFIG_LIBS
1892 linker flags for FONTCONFIG, overriding pkg-config
1893 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1894 GVC_LIBS linker flags for GVC, overriding pkg-config
1895 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1896 LQR_LIBS linker flags for LQR, overriding pkg-config
1897 OPENEXR_CFLAGS
1898 C compiler flags for OPENEXR, overriding pkg-config
1899 OPENEXR_LIBS
1900 linker flags for OPENEXR, overriding pkg-config
1901 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1902 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1903 CAIRO_SVG_CFLAGS
1904 C compiler flags for CAIRO_SVG, overriding pkg-config
1905 CAIRO_SVG_LIBS
1906 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001907
1908Use these variables to override the choices made by `configure' or to help
1909it to find libraries and programs with nonstandard names/locations.
1910
1911Report bugs to <http://www.imagemagick.org>.
1912_ACEOF
1913ac_status=$?
1914fi
1915
1916if test "$ac_init_help" = "recursive"; then
1917 # If there are subdirs, report their specific --help.
1918 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1919 test -d "$ac_dir" ||
1920 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1921 continue
1922 ac_builddir=.
1923
1924case "$ac_dir" in
1925.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1926*)
1927 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1928 # A ".." for each directory in $ac_dir_suffix.
1929 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1930 case $ac_top_builddir_sub in
1931 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1932 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1933 esac ;;
1934esac
1935ac_abs_top_builddir=$ac_pwd
1936ac_abs_builddir=$ac_pwd$ac_dir_suffix
1937# for backward compatibility:
1938ac_top_builddir=$ac_top_build_prefix
1939
1940case $srcdir in
1941 .) # We are building in place.
1942 ac_srcdir=.
1943 ac_top_srcdir=$ac_top_builddir_sub
1944 ac_abs_top_srcdir=$ac_pwd ;;
1945 [\\/]* | ?:[\\/]* ) # Absolute name.
1946 ac_srcdir=$srcdir$ac_dir_suffix;
1947 ac_top_srcdir=$srcdir
1948 ac_abs_top_srcdir=$srcdir ;;
1949 *) # Relative name.
1950 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1951 ac_top_srcdir=$ac_top_build_prefix$srcdir
1952 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1953esac
1954ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1955
1956 cd "$ac_dir" || { ac_status=$?; continue; }
1957 # Check for guested configure.
1958 if test -f "$ac_srcdir/configure.gnu"; then
1959 echo &&
1960 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1961 elif test -f "$ac_srcdir/configure"; then
1962 echo &&
1963 $SHELL "$ac_srcdir/configure" --help=recursive
1964 else
1965 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1966 fi || ac_status=$?
1967 cd "$ac_pwd" || { ac_status=$?; break; }
1968 done
1969fi
1970
1971test -n "$ac_init_help" && exit $ac_status
1972if $ac_init_version; then
1973 cat <<\_ACEOF
cristy56225732010-09-04 23:44:25 +00001974ImageMagick configure 6.6.4
cristy98dddb52010-11-04 00:30:15 +00001975generated by GNU Autoconf 2.66
cristy3ed852e2009-09-05 21:47:34 +00001976
cristy98dddb52010-11-04 00:30:15 +00001977Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00001978This configure script is free software; the Free Software Foundation
1979gives unlimited permission to copy, distribute and modify it.
1980_ACEOF
1981 exit
1982fi
cristy8b350f62009-11-15 23:12:43 +00001983
1984## ------------------------ ##
1985## Autoconf initialization. ##
1986## ------------------------ ##
1987
1988# ac_fn_c_try_compile LINENO
1989# --------------------------
1990# Try to compile conftest.$ac_ext, and return whether this succeeded.
1991ac_fn_c_try_compile ()
1992{
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 rm -f conftest.$ac_objext
1995 if { { ac_try="$ac_compile"
1996case "(($ac_try" in
1997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998 *) ac_try_echo=$ac_try;;
1999esac
2000eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001$as_echo "$ac_try_echo"; } >&5
2002 (eval "$ac_compile") 2>conftest.err
2003 ac_status=$?
2004 if test -s conftest.err; then
2005 grep -v '^ *+' conftest.err >conftest.er1
2006 cat conftest.er1 >&5
2007 mv -f conftest.er1 conftest.err
2008 fi
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; } && {
2011 test -z "$ac_c_werror_flag" ||
2012 test ! -s conftest.err
2013 } && test -s conftest.$ac_objext; then :
2014 ac_retval=0
2015else
2016 $as_echo "$as_me: failed program was:" >&5
2017sed 's/^/| /' conftest.$ac_ext >&5
2018
2019 ac_retval=1
2020fi
2021 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002022 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002023
2024} # ac_fn_c_try_compile
2025
cristy95646052009-11-28 23:05:30 +00002026# ac_fn_c_try_cpp LINENO
2027# ----------------------
2028# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2029ac_fn_c_try_cpp ()
2030{
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 if { { ac_try="$ac_cpp conftest.$ac_ext"
2033case "(($ac_try" in
2034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035 *) ac_try_echo=$ac_try;;
2036esac
2037eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038$as_echo "$ac_try_echo"; } >&5
2039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2040 ac_status=$?
2041 if test -s conftest.err; then
2042 grep -v '^ *+' conftest.err >conftest.er1
2043 cat conftest.er1 >&5
2044 mv -f conftest.er1 conftest.err
2045 fi
2046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2047 test $ac_status = 0; } >/dev/null && {
2048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2049 test ! -s conftest.err
2050 }; then :
2051 ac_retval=0
2052else
2053 $as_echo "$as_me: failed program was:" >&5
2054sed 's/^/| /' conftest.$ac_ext >&5
2055
2056 ac_retval=1
2057fi
2058 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2059 as_fn_set_status $ac_retval
2060
2061} # ac_fn_c_try_cpp
2062
cristy8b350f62009-11-15 23:12:43 +00002063# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2064# -------------------------------------------------------
2065# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2066# the include files in INCLUDES and setting the cache variable VAR
2067# accordingly.
2068ac_fn_c_check_header_mongrel ()
2069{
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002071 if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073$as_echo_n "checking for $2... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002074if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002075 $as_echo_n "(cached) " >&6
2076fi
2077eval ac_res=\$$3
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079$as_echo "$ac_res" >&6; }
2080else
2081 # Is the header compilable?
2082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2083$as_echo_n "checking $2 usability... " >&6; }
2084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085/* end confdefs.h. */
2086$4
2087#include <$2>
2088_ACEOF
2089if ac_fn_c_try_compile "$LINENO"; then :
2090 ac_header_compiler=yes
2091else
2092 ac_header_compiler=no
2093fi
2094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2096$as_echo "$ac_header_compiler" >&6; }
2097
2098# Is the header present?
2099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2100$as_echo_n "checking $2 presence... " >&6; }
2101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102/* end confdefs.h. */
2103#include <$2>
2104_ACEOF
2105if ac_fn_c_try_cpp "$LINENO"; then :
2106 ac_header_preproc=yes
2107else
2108 ac_header_preproc=no
2109fi
2110rm -f conftest.err conftest.$ac_ext
2111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2112$as_echo "$ac_header_preproc" >&6; }
2113
2114# So? What about this header?
2115case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2116 yes:no: )
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2118$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2120$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2121 ;;
2122 no:yes:* )
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2124$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2126$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2128$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2130$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2132$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002133( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002134## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002135## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002136 ) | sed "s/^/$as_me: WARNING: /" >&2
2137 ;;
2138esac
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2140$as_echo_n "checking for $2... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002141if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002142 $as_echo_n "(cached) " >&6
2143else
2144 eval "$3=\$ac_header_compiler"
2145fi
2146eval ac_res=\$$3
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2148$as_echo "$ac_res" >&6; }
2149fi
2150 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2151
2152} # ac_fn_c_check_header_mongrel
2153
2154# ac_fn_c_try_run LINENO
2155# ----------------------
2156# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2157# that executables *can* be run.
2158ac_fn_c_try_run ()
2159{
2160 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161 if { { ac_try="$ac_link"
2162case "(($ac_try" in
2163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2164 *) ac_try_echo=$ac_try;;
2165esac
2166eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2167$as_echo "$ac_try_echo"; } >&5
2168 (eval "$ac_link") 2>&5
2169 ac_status=$?
2170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2171 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2172 { { case "(($ac_try" in
2173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174 *) ac_try_echo=$ac_try;;
2175esac
2176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2177$as_echo "$ac_try_echo"; } >&5
2178 (eval "$ac_try") 2>&5
2179 ac_status=$?
2180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2181 test $ac_status = 0; }; }; then :
2182 ac_retval=0
2183else
2184 $as_echo "$as_me: program exited with status $ac_status" >&5
2185 $as_echo "$as_me: failed program was:" >&5
2186sed 's/^/| /' conftest.$ac_ext >&5
2187
2188 ac_retval=$ac_status
2189fi
2190 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2191 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002192 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002193
2194} # ac_fn_c_try_run
2195
2196# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2197# -------------------------------------------------------
2198# Tests whether HEADER exists and can be compiled using the include files in
2199# INCLUDES, setting the cache variable VAR accordingly.
2200ac_fn_c_check_header_compile ()
2201{
2202 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2204$as_echo_n "checking for $2... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002205if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002206 $as_echo_n "(cached) " >&6
2207else
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209/* end confdefs.h. */
2210$4
2211#include <$2>
2212_ACEOF
2213if ac_fn_c_try_compile "$LINENO"; then :
2214 eval "$3=yes"
2215else
2216 eval "$3=no"
2217fi
2218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2219fi
2220eval ac_res=\$$3
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2222$as_echo "$ac_res" >&6; }
2223 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2224
2225} # ac_fn_c_check_header_compile
2226
cristya0b81c32010-01-22 02:54:33 +00002227# ac_fn_cxx_try_compile LINENO
2228# ----------------------------
2229# Try to compile conftest.$ac_ext, and return whether this succeeded.
2230ac_fn_cxx_try_compile ()
2231{
2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233 rm -f conftest.$ac_objext
2234 if { { ac_try="$ac_compile"
2235case "(($ac_try" in
2236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2237 *) ac_try_echo=$ac_try;;
2238esac
2239eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2240$as_echo "$ac_try_echo"; } >&5
2241 (eval "$ac_compile") 2>conftest.err
2242 ac_status=$?
2243 if test -s conftest.err; then
2244 grep -v '^ *+' conftest.err >conftest.er1
2245 cat conftest.er1 >&5
2246 mv -f conftest.er1 conftest.err
2247 fi
2248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2249 test $ac_status = 0; } && {
2250 test -z "$ac_cxx_werror_flag" ||
2251 test ! -s conftest.err
2252 } && test -s conftest.$ac_objext; then :
2253 ac_retval=0
2254else
2255 $as_echo "$as_me: failed program was:" >&5
2256sed 's/^/| /' conftest.$ac_ext >&5
2257
2258 ac_retval=1
2259fi
2260 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2261 as_fn_set_status $ac_retval
2262
2263} # ac_fn_cxx_try_compile
2264
cristy8b350f62009-11-15 23:12:43 +00002265# ac_fn_c_try_link LINENO
2266# -----------------------
2267# Try to link conftest.$ac_ext, and return whether this succeeded.
2268ac_fn_c_try_link ()
2269{
2270 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2271 rm -f conftest.$ac_objext conftest$ac_exeext
2272 if { { ac_try="$ac_link"
2273case "(($ac_try" in
2274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2275 *) ac_try_echo=$ac_try;;
2276esac
2277eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2278$as_echo "$ac_try_echo"; } >&5
2279 (eval "$ac_link") 2>conftest.err
2280 ac_status=$?
2281 if test -s conftest.err; then
2282 grep -v '^ *+' conftest.err >conftest.er1
2283 cat conftest.er1 >&5
2284 mv -f conftest.er1 conftest.err
2285 fi
2286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2287 test $ac_status = 0; } && {
2288 test -z "$ac_c_werror_flag" ||
2289 test ! -s conftest.err
2290 } && test -s conftest$ac_exeext && {
2291 test "$cross_compiling" = yes ||
2292 $as_test_x conftest$ac_exeext
2293 }; then :
2294 ac_retval=0
2295else
2296 $as_echo "$as_me: failed program was:" >&5
2297sed 's/^/| /' conftest.$ac_ext >&5
2298
2299 ac_retval=1
2300fi
2301 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2302 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2303 # interfere with the next link command; also delete a directory that is
2304 # left behind by Apple's compiler. We do this before executing the actions.
2305 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2306 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002307 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002308
2309} # ac_fn_c_try_link
2310
cristy73bd4a52010-10-05 11:24:23 +00002311# ac_fn_c_check_func LINENO FUNC VAR
2312# ----------------------------------
2313# Tests whether FUNC exists, setting the cache variable VAR accordingly
2314ac_fn_c_check_func ()
2315{
2316 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2318$as_echo_n "checking for $2... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002319if eval "test \"\${$3+set}\"" = set; then :
cristy73bd4a52010-10-05 11:24:23 +00002320 $as_echo_n "(cached) " >&6
2321else
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323/* end confdefs.h. */
2324/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2326#define $2 innocuous_$2
2327
2328/* System header to define __stub macros and hopefully few prototypes,
2329 which can conflict with char $2 (); below.
2330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2331 <limits.h> exists even on freestanding compilers. */
2332
2333#ifdef __STDC__
2334# include <limits.h>
2335#else
2336# include <assert.h>
2337#endif
2338
2339#undef $2
2340
2341/* Override any GCC internal prototype to avoid an error.
2342 Use char because int might match the return type of a GCC
2343 builtin and then its argument prototype would still apply. */
2344#ifdef __cplusplus
2345extern "C"
2346#endif
2347char $2 ();
2348/* The GNU C library defines this for functions which it implements
2349 to always fail with ENOSYS. Some functions are actually named
2350 something starting with __ and the normal name is an alias. */
2351#if defined __stub_$2 || defined __stub___$2
2352choke me
2353#endif
2354
2355int
2356main ()
2357{
2358return $2 ();
2359 ;
2360 return 0;
2361}
2362_ACEOF
2363if ac_fn_c_try_link "$LINENO"; then :
2364 eval "$3=yes"
2365else
2366 eval "$3=no"
2367fi
2368rm -f core conftest.err conftest.$ac_objext \
2369 conftest$ac_exeext conftest.$ac_ext
2370fi
2371eval ac_res=\$$3
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2373$as_echo "$ac_res" >&6; }
2374 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2375
2376} # ac_fn_c_check_func
2377
2378# ac_fn_cxx_try_cpp LINENO
2379# ------------------------
2380# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2381ac_fn_cxx_try_cpp ()
2382{
2383 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384 if { { ac_try="$ac_cpp conftest.$ac_ext"
2385case "(($ac_try" in
2386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2387 *) ac_try_echo=$ac_try;;
2388esac
2389eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2390$as_echo "$ac_try_echo"; } >&5
2391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2392 ac_status=$?
2393 if test -s conftest.err; then
2394 grep -v '^ *+' conftest.err >conftest.er1
2395 cat conftest.er1 >&5
2396 mv -f conftest.er1 conftest.err
2397 fi
2398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2399 test $ac_status = 0; } >/dev/null && {
2400 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2401 test ! -s conftest.err
2402 }; then :
2403 ac_retval=0
2404else
2405 $as_echo "$as_me: failed program was:" >&5
2406sed 's/^/| /' conftest.$ac_ext >&5
2407
2408 ac_retval=1
2409fi
2410 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2411 as_fn_set_status $ac_retval
2412
2413} # ac_fn_cxx_try_cpp
2414
2415# ac_fn_cxx_try_link LINENO
2416# -------------------------
2417# Try to link conftest.$ac_ext, and return whether this succeeded.
2418ac_fn_cxx_try_link ()
2419{
2420 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2421 rm -f conftest.$ac_objext conftest$ac_exeext
2422 if { { ac_try="$ac_link"
2423case "(($ac_try" in
2424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425 *) ac_try_echo=$ac_try;;
2426esac
2427eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2428$as_echo "$ac_try_echo"; } >&5
2429 (eval "$ac_link") 2>conftest.err
2430 ac_status=$?
2431 if test -s conftest.err; then
2432 grep -v '^ *+' conftest.err >conftest.er1
2433 cat conftest.er1 >&5
2434 mv -f conftest.er1 conftest.err
2435 fi
2436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2437 test $ac_status = 0; } && {
2438 test -z "$ac_cxx_werror_flag" ||
2439 test ! -s conftest.err
2440 } && test -s conftest$ac_exeext && {
2441 test "$cross_compiling" = yes ||
2442 $as_test_x conftest$ac_exeext
2443 }; then :
2444 ac_retval=0
2445else
2446 $as_echo "$as_me: failed program was:" >&5
2447sed 's/^/| /' conftest.$ac_ext >&5
2448
2449 ac_retval=1
2450fi
2451 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2452 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2453 # interfere with the next link command; also delete a directory that is
2454 # left behind by Apple's compiler. We do this before executing the actions.
2455 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2456 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2457 as_fn_set_status $ac_retval
2458
2459} # ac_fn_cxx_try_link
2460
cristy98dddb52010-11-04 00:30:15 +00002461# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2462# ---------------------------------------------
2463# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2464# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002465ac_fn_c_check_decl ()
2466{
2467 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002468 as_decl_name=`echo $2|sed 's/ *(.*//'`
2469 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2471$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2472if eval "test \"\${$3+set}\"" = set; then :
cristy73bd4a52010-10-05 11:24:23 +00002473 $as_echo_n "(cached) " >&6
2474else
2475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476/* end confdefs.h. */
2477$4
2478int
2479main ()
2480{
cristy98dddb52010-11-04 00:30:15 +00002481#ifndef $as_decl_name
2482#ifdef __cplusplus
2483 (void) $as_decl_use;
2484#else
2485 (void) $as_decl_name;
2486#endif
cristy73bd4a52010-10-05 11:24:23 +00002487#endif
2488
2489 ;
2490 return 0;
2491}
2492_ACEOF
2493if ac_fn_c_try_compile "$LINENO"; then :
2494 eval "$3=yes"
2495else
2496 eval "$3=no"
2497fi
2498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2499fi
2500eval ac_res=\$$3
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2502$as_echo "$ac_res" >&6; }
2503 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2504
2505} # ac_fn_c_check_decl
2506
cristy8b350f62009-11-15 23:12:43 +00002507# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2508# -------------------------------------------
2509# Tests whether TYPE exists after having included INCLUDES, setting cache
2510# variable VAR accordingly.
2511ac_fn_c_check_type ()
2512{
2513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2515$as_echo_n "checking for $2... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002516if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002517 $as_echo_n "(cached) " >&6
2518else
2519 eval "$3=no"
2520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2521/* end confdefs.h. */
2522$4
2523int
2524main ()
2525{
2526if (sizeof ($2))
2527 return 0;
2528 ;
2529 return 0;
2530}
2531_ACEOF
2532if ac_fn_c_try_compile "$LINENO"; then :
2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534/* end confdefs.h. */
2535$4
2536int
2537main ()
2538{
2539if (sizeof (($2)))
2540 return 0;
2541 ;
2542 return 0;
2543}
2544_ACEOF
2545if ac_fn_c_try_compile "$LINENO"; then :
2546
2547else
2548 eval "$3=yes"
2549fi
2550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2551fi
2552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2553fi
2554eval ac_res=\$$3
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2556$as_echo "$ac_res" >&6; }
2557 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2558
2559} # ac_fn_c_check_type
2560
cristy92703d82010-04-26 00:18:18 +00002561# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2562# ----------------------------------------------------
2563# Tries to find if the field MEMBER exists in type AGGR, after including
2564# INCLUDES, setting cache variable VAR accordingly.
2565ac_fn_c_check_member ()
2566{
2567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2569$as_echo_n "checking for $2.$3... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002570if eval "test \"\${$4+set}\"" = set; then :
cristy92703d82010-04-26 00:18:18 +00002571 $as_echo_n "(cached) " >&6
2572else
2573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574/* end confdefs.h. */
2575$5
2576int
2577main ()
2578{
2579static $2 ac_aggr;
2580if (ac_aggr.$3)
2581return 0;
2582 ;
2583 return 0;
2584}
2585_ACEOF
2586if ac_fn_c_try_compile "$LINENO"; then :
2587 eval "$4=yes"
2588else
2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590/* end confdefs.h. */
2591$5
2592int
2593main ()
2594{
2595static $2 ac_aggr;
2596if (sizeof ac_aggr.$3)
2597return 0;
2598 ;
2599 return 0;
2600}
2601_ACEOF
2602if ac_fn_c_try_compile "$LINENO"; then :
2603 eval "$4=yes"
2604else
2605 eval "$4=no"
2606fi
2607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608fi
2609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610fi
2611eval ac_res=\$$4
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2613$as_echo "$ac_res" >&6; }
2614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2615
2616} # ac_fn_c_check_member
2617
cristy8b350f62009-11-15 23:12:43 +00002618# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2619# --------------------------------------------
2620# Tries to find the compile-time value of EXPR in a program that includes
2621# INCLUDES, setting VAR accordingly. Returns whether the value could be
2622# computed
2623ac_fn_c_compute_int ()
2624{
2625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2626 if test "$cross_compiling" = yes; then
2627 # Depending upon the size, compute the lo and hi bounds.
2628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2629/* end confdefs.h. */
2630$4
2631int
2632main ()
2633{
2634static int test_array [1 - 2 * !(($2) >= 0)];
2635test_array [0] = 0
2636
2637 ;
2638 return 0;
2639}
2640_ACEOF
2641if ac_fn_c_try_compile "$LINENO"; then :
2642 ac_lo=0 ac_mid=0
2643 while :; do
2644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2645/* end confdefs.h. */
2646$4
2647int
2648main ()
2649{
2650static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2651test_array [0] = 0
2652
2653 ;
2654 return 0;
2655}
2656_ACEOF
2657if ac_fn_c_try_compile "$LINENO"; then :
2658 ac_hi=$ac_mid; break
2659else
2660 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2661 if test $ac_lo -le $ac_mid; then
2662 ac_lo= ac_hi=
2663 break
2664 fi
2665 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2666fi
2667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2668 done
2669else
2670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2671/* end confdefs.h. */
2672$4
2673int
2674main ()
2675{
2676static int test_array [1 - 2 * !(($2) < 0)];
2677test_array [0] = 0
2678
2679 ;
2680 return 0;
2681}
2682_ACEOF
2683if ac_fn_c_try_compile "$LINENO"; then :
2684 ac_hi=-1 ac_mid=-1
2685 while :; do
2686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2687/* end confdefs.h. */
2688$4
2689int
2690main ()
2691{
2692static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2693test_array [0] = 0
2694
2695 ;
2696 return 0;
2697}
2698_ACEOF
2699if ac_fn_c_try_compile "$LINENO"; then :
2700 ac_lo=$ac_mid; break
2701else
2702 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2703 if test $ac_mid -le $ac_hi; then
2704 ac_lo= ac_hi=
2705 break
2706 fi
2707 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2708fi
2709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2710 done
2711else
2712 ac_lo= ac_hi=
2713fi
2714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2715fi
2716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2717# Binary search between lo and hi bounds.
2718while test "x$ac_lo" != "x$ac_hi"; do
2719 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2721/* end confdefs.h. */
2722$4
2723int
2724main ()
2725{
2726static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2727test_array [0] = 0
2728
2729 ;
2730 return 0;
2731}
2732_ACEOF
2733if ac_fn_c_try_compile "$LINENO"; then :
2734 ac_hi=$ac_mid
2735else
2736 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2737fi
2738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739done
2740case $ac_lo in #((
2741?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2742'') ac_retval=1 ;;
2743esac
2744 else
2745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2746/* end confdefs.h. */
2747$4
2748static long int longval () { return $2; }
2749static unsigned long int ulongval () { return $2; }
2750#include <stdio.h>
2751#include <stdlib.h>
2752int
2753main ()
2754{
2755
2756 FILE *f = fopen ("conftest.val", "w");
2757 if (! f)
2758 return 1;
2759 if (($2) < 0)
2760 {
2761 long int i = longval ();
2762 if (i != ($2))
2763 return 1;
2764 fprintf (f, "%ld", i);
2765 }
2766 else
2767 {
2768 unsigned long int i = ulongval ();
2769 if (i != ($2))
2770 return 1;
2771 fprintf (f, "%lu", i);
2772 }
2773 /* Do not output a trailing newline, as this causes \r\n confusion
2774 on some platforms. */
2775 return ferror (f) || fclose (f) != 0;
2776
2777 ;
2778 return 0;
2779}
2780_ACEOF
2781if ac_fn_c_try_run "$LINENO"; then :
2782 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2783else
2784 ac_retval=1
2785fi
2786rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2787 conftest.$ac_objext conftest.beam conftest.$ac_ext
2788rm -f conftest.val
2789
2790 fi
2791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002792 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002793
2794} # ac_fn_c_compute_int
2795
2796# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2797# ---------------------------------------------------------
2798# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2799# the include files in INCLUDES and setting the cache variable VAR
2800# accordingly.
2801ac_fn_cxx_check_header_mongrel ()
2802{
2803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002804 if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2806$as_echo_n "checking for $2... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002807if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002808 $as_echo_n "(cached) " >&6
2809fi
2810eval ac_res=\$$3
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2812$as_echo "$ac_res" >&6; }
2813else
2814 # Is the header compilable?
2815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2816$as_echo_n "checking $2 usability... " >&6; }
2817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2818/* end confdefs.h. */
2819$4
2820#include <$2>
2821_ACEOF
2822if ac_fn_cxx_try_compile "$LINENO"; then :
2823 ac_header_compiler=yes
2824else
2825 ac_header_compiler=no
2826fi
2827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2829$as_echo "$ac_header_compiler" >&6; }
2830
2831# Is the header present?
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2833$as_echo_n "checking $2 presence... " >&6; }
2834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2835/* end confdefs.h. */
2836#include <$2>
2837_ACEOF
2838if ac_fn_cxx_try_cpp "$LINENO"; then :
2839 ac_header_preproc=yes
2840else
2841 ac_header_preproc=no
2842fi
2843rm -f conftest.err conftest.$ac_ext
2844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2845$as_echo "$ac_header_preproc" >&6; }
2846
2847# So? What about this header?
2848case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2849 yes:no: )
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2851$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2853$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2854 ;;
2855 no:yes:* )
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2857$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2859$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2861$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2863$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2865$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002866( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002867## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002868## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002869 ) | sed "s/^/$as_me: WARNING: /" >&2
2870 ;;
2871esac
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2873$as_echo_n "checking for $2... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002874if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002875 $as_echo_n "(cached) " >&6
2876else
2877 eval "$3=\$ac_header_compiler"
2878fi
2879eval ac_res=\$$3
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2881$as_echo "$ac_res" >&6; }
2882fi
2883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2884
2885} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002886cat >config.log <<_ACEOF
2887This file contains any messages produced by compilers while
2888running configure, to aid debugging if configure makes a mistake.
2889
cristy56225732010-09-04 23:44:25 +00002890It was created by ImageMagick $as_me 6.6.4, which was
cristy98dddb52010-11-04 00:30:15 +00002891generated by GNU Autoconf 2.66. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002892
2893 $ $0 $@
2894
2895_ACEOF
2896exec 5>>config.log
2897{
2898cat <<_ASUNAME
2899## --------- ##
2900## Platform. ##
2901## --------- ##
2902
2903hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2904uname -m = `(uname -m) 2>/dev/null || echo unknown`
2905uname -r = `(uname -r) 2>/dev/null || echo unknown`
2906uname -s = `(uname -s) 2>/dev/null || echo unknown`
2907uname -v = `(uname -v) 2>/dev/null || echo unknown`
2908
2909/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2910/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2911
2912/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2913/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2914/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2915/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2916/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2917/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2918/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2919
2920_ASUNAME
2921
2922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923for as_dir in $PATH
2924do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002927 $as_echo "PATH: $as_dir"
2928 done
cristy3ed852e2009-09-05 21:47:34 +00002929IFS=$as_save_IFS
2930
2931} >&5
2932
2933cat >&5 <<_ACEOF
2934
2935
2936## ----------- ##
2937## Core tests. ##
2938## ----------- ##
2939
2940_ACEOF
2941
2942
2943# Keep a trace of the command line.
2944# Strip out --no-create and --no-recursion so they do not pile up.
2945# Strip out --silent because we don't want to record it for future runs.
2946# Also quote any args containing shell meta-characters.
2947# Make two passes to allow for proper duplicate-argument suppression.
2948ac_configure_args=
2949ac_configure_args0=
2950ac_configure_args1=
2951ac_must_keep_next=false
2952for ac_pass in 1 2
2953do
2954 for ac_arg
2955 do
2956 case $ac_arg in
2957 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2958 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2959 | -silent | --silent | --silen | --sile | --sil)
2960 continue ;;
2961 *\'*)
2962 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2963 esac
2964 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00002965 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00002966 2)
cristy8b350f62009-11-15 23:12:43 +00002967 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002968 if test $ac_must_keep_next = true; then
2969 ac_must_keep_next=false # Got value, back to normal.
2970 else
2971 case $ac_arg in
2972 *=* | --config-cache | -C | -disable-* | --disable-* \
2973 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2974 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2975 | -with-* | --with-* | -without-* | --without-* | --x)
2976 case "$ac_configure_args0 " in
2977 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2978 esac
2979 ;;
2980 -* ) ac_must_keep_next=true ;;
2981 esac
2982 fi
cristy8b350f62009-11-15 23:12:43 +00002983 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002984 ;;
2985 esac
2986 done
2987done
cristy8b350f62009-11-15 23:12:43 +00002988{ ac_configure_args0=; unset ac_configure_args0;}
2989{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00002990
2991# When interrupted or exit'd, cleanup temporary files, and complete
2992# config.log. We remove comments because anyway the quotes in there
2993# would cause problems or look ugly.
2994# WARNING: Use '\'' to represent an apostrophe within the trap.
2995# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2996trap 'exit_status=$?
2997 # Save into config.log some information that might help in debugging.
2998 {
2999 echo
3000
cristy98dddb52010-11-04 00:30:15 +00003001 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003002## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003003## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003004 echo
3005 # The following way of writing the cache mishandles newlines in values,
3006(
3007 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3008 eval ac_val=\$$ac_var
3009 case $ac_val in #(
3010 *${as_nl}*)
3011 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003012 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003013$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3014 esac
3015 case $ac_var in #(
3016 _ | IFS | as_nl) ;; #(
3017 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003018 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003019 esac ;;
3020 esac
3021 done
3022 (set) 2>&1 |
3023 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3024 *${as_nl}ac_space=\ *)
3025 sed -n \
3026 "s/'\''/'\''\\\\'\'''\''/g;
3027 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3028 ;; #(
3029 *)
3030 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3031 ;;
3032 esac |
3033 sort
3034)
3035 echo
3036
cristy98dddb52010-11-04 00:30:15 +00003037 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003038## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003039## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003040 echo
3041 for ac_var in $ac_subst_vars
3042 do
3043 eval ac_val=\$$ac_var
3044 case $ac_val in
3045 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3046 esac
3047 $as_echo "$ac_var='\''$ac_val'\''"
3048 done | sort
3049 echo
3050
3051 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003052 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003053## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003054## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003055 echo
3056 for ac_var in $ac_subst_files
3057 do
3058 eval ac_val=\$$ac_var
3059 case $ac_val in
3060 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3061 esac
3062 $as_echo "$ac_var='\''$ac_val'\''"
3063 done | sort
3064 echo
3065 fi
3066
3067 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003068 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003069## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003070## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003071 echo
3072 cat confdefs.h
3073 echo
3074 fi
3075 test "$ac_signal" != 0 &&
3076 $as_echo "$as_me: caught signal $ac_signal"
3077 $as_echo "$as_me: exit $exit_status"
3078 } >&5
3079 rm -f core *.core core.conftest.* &&
3080 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3081 exit $exit_status
3082' 0
3083for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003084 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003085done
3086ac_signal=0
3087
3088# confdefs.h avoids OS command line length limits that DEFS can exceed.
3089rm -f -r conftest* confdefs.h
3090
cristy8b350f62009-11-15 23:12:43 +00003091$as_echo "/* confdefs.h */" > confdefs.h
3092
cristy3ed852e2009-09-05 21:47:34 +00003093# Predefined preprocessor variables.
3094
3095cat >>confdefs.h <<_ACEOF
3096#define PACKAGE_NAME "$PACKAGE_NAME"
3097_ACEOF
3098
cristy3ed852e2009-09-05 21:47:34 +00003099cat >>confdefs.h <<_ACEOF
3100#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3101_ACEOF
3102
cristy3ed852e2009-09-05 21:47:34 +00003103cat >>confdefs.h <<_ACEOF
3104#define PACKAGE_VERSION "$PACKAGE_VERSION"
3105_ACEOF
3106
cristy3ed852e2009-09-05 21:47:34 +00003107cat >>confdefs.h <<_ACEOF
3108#define PACKAGE_STRING "$PACKAGE_STRING"
3109_ACEOF
3110
cristy3ed852e2009-09-05 21:47:34 +00003111cat >>confdefs.h <<_ACEOF
3112#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3113_ACEOF
3114
cristy8b350f62009-11-15 23:12:43 +00003115cat >>confdefs.h <<_ACEOF
3116#define PACKAGE_URL "$PACKAGE_URL"
3117_ACEOF
3118
cristy3ed852e2009-09-05 21:47:34 +00003119
3120# Let the site file select an alternate cache file if it wants to.
3121# Prefer an explicitly selected file to automatically selected ones.
3122ac_site_file1=NONE
3123ac_site_file2=NONE
3124if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003125 # We do not want a PATH search for config.site.
3126 case $CONFIG_SITE in #((
3127 -*) ac_site_file1=./$CONFIG_SITE;;
3128 */*) ac_site_file1=$CONFIG_SITE;;
3129 *) ac_site_file1=./$CONFIG_SITE;;
3130 esac
cristy3ed852e2009-09-05 21:47:34 +00003131elif test "x$prefix" != xNONE; then
3132 ac_site_file1=$prefix/share/config.site
3133 ac_site_file2=$prefix/etc/config.site
3134else
3135 ac_site_file1=$ac_default_prefix/share/config.site
3136 ac_site_file2=$ac_default_prefix/etc/config.site
3137fi
3138for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3139do
3140 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003141 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003142 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003143$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3144 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003145 . "$ac_site_file" \
3146 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3147$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3148as_fn_error $? "failed to load site script $ac_site_file
3149See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003150 fi
3151done
3152
3153if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003154 # Some versions of bash will fail to source /dev/null (special files
3155 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3156 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003158$as_echo "$as_me: loading cache $cache_file" >&6;}
3159 case $cache_file in
3160 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3161 *) . "./$cache_file";;
3162 esac
3163 fi
3164else
cristy8b350f62009-11-15 23:12:43 +00003165 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003166$as_echo "$as_me: creating cache $cache_file" >&6;}
3167 >$cache_file
3168fi
3169
cristycd4c5312009-11-22 01:19:08 +00003170as_fn_append ac_header_list " stdlib.h"
3171as_fn_append ac_header_list " unistd.h"
3172as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003173# Check that the precious variables saved in the cache have kept the same
3174# value.
3175ac_cache_corrupted=false
3176for ac_var in $ac_precious_vars; do
3177 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3178 eval ac_new_set=\$ac_env_${ac_var}_set
3179 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3180 eval ac_new_val=\$ac_env_${ac_var}_value
3181 case $ac_old_set,$ac_new_set in
3182 set,)
cristy8b350f62009-11-15 23:12:43 +00003183 { $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 +00003184$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3185 ac_cache_corrupted=: ;;
3186 ,set)
cristy8b350f62009-11-15 23:12:43 +00003187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003188$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3189 ac_cache_corrupted=: ;;
3190 ,);;
3191 *)
3192 if test "x$ac_old_val" != "x$ac_new_val"; then
3193 # differences in whitespace do not lead to failure.
3194 ac_old_val_w=`echo x $ac_old_val`
3195 ac_new_val_w=`echo x $ac_new_val`
3196 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003198$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3199 ac_cache_corrupted=:
3200 else
cristy8b350f62009-11-15 23:12:43 +00003201 { $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 +00003202$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3203 eval $ac_var=\$ac_old_val
3204 fi
cristy8b350f62009-11-15 23:12:43 +00003205 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003206$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003207 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003208$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3209 fi;;
3210 esac
3211 # Pass precious variables to config.status.
3212 if test "$ac_new_set" = set; then
3213 case $ac_new_val in
3214 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3215 *) ac_arg=$ac_var=$ac_new_val ;;
3216 esac
3217 case " $ac_configure_args " in
3218 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003219 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003220 esac
3221 fi
3222done
3223if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003227$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003228 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003229fi
cristy8b350f62009-11-15 23:12:43 +00003230## -------------------- ##
3231## Main body of script. ##
3232## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003233
3234ac_ext=c
3235ac_cpp='$CPP $CPPFLAGS'
3236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239
3240
3241
3242ac_aux_dir=
3243for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003244 if test -f "$ac_dir/install-sh"; then
3245 ac_aux_dir=$ac_dir
3246 ac_install_sh="$ac_aux_dir/install-sh -c"
3247 break
3248 elif test -f "$ac_dir/install.sh"; then
3249 ac_aux_dir=$ac_dir
3250 ac_install_sh="$ac_aux_dir/install.sh -c"
3251 break
3252 elif test -f "$ac_dir/shtool"; then
3253 ac_aux_dir=$ac_dir
3254 ac_install_sh="$ac_aux_dir/shtool install -c"
3255 break
3256 fi
cristy3ed852e2009-09-05 21:47:34 +00003257done
3258if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003259 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003260fi
3261
3262# These three variables are undocumented and unsupported,
3263# and are intended to be withdrawn in a future Autoconf release.
3264# They can cause serious problems if a builder's source tree is in a directory
3265# whose full name contains unusual characters.
3266ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3267ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3268ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3269
3270
3271
3272
3273ac_config_headers="$ac_config_headers config/config.h"
3274
cristy24fc1fe2010-10-23 21:13:01 +00003275
cristy73bd4a52010-10-05 11:24:23 +00003276ac_config_commands="$ac_config_commands magick/magick-config.h"
3277
cristy430a7312010-01-21 20:44:04 +00003278ac_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 magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/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 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003279
3280
3281#
3282# Save initial user-tunable values
3283#
3284USER_LIBS=$LIBS
3285for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3286 eval isset=\${$var+set}
3287 if test "$isset" = 'set'; then
3288 eval val=$`echo $var`
3289 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3290 fi
3291done
3292
3293
3294CONFIGURE_ARGS="$0 ${ac_configure_args}"
3295
3296
3297# Source file containing package/library versioning information.
3298. ${srcdir}/version.sh
3299
cristy15a88782010-01-31 23:24:49 +00003300echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003301# Make sure we can run config.sub.
3302$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003303 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003304
cristy8b350f62009-11-15 23:12:43 +00003305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003306$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003307if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003308 $as_echo_n "(cached) " >&6
3309else
3310 ac_build_alias=$build_alias
3311test "x$ac_build_alias" = x &&
3312 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3313test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003314 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003315ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003316 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003317
3318fi
cristy8b350f62009-11-15 23:12:43 +00003319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003320$as_echo "$ac_cv_build" >&6; }
3321case $ac_cv_build in
3322*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003323*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003324esac
3325build=$ac_cv_build
3326ac_save_IFS=$IFS; IFS='-'
3327set x $ac_cv_build
3328shift
3329build_cpu=$1
3330build_vendor=$2
3331shift; shift
3332# Remember, the first character of IFS is used to create $*,
3333# except with old shells:
3334build_os=$*
3335IFS=$ac_save_IFS
3336case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3337
3338
cristy8b350f62009-11-15 23:12:43 +00003339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003340$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003341if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003342 $as_echo_n "(cached) " >&6
3343else
3344 if test "x$host_alias" = x; then
3345 ac_cv_host=$ac_cv_build
3346else
3347 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003348 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003349fi
3350
3351fi
cristy8b350f62009-11-15 23:12:43 +00003352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003353$as_echo "$ac_cv_host" >&6; }
3354case $ac_cv_host in
3355*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003356*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003357esac
3358host=$ac_cv_host
3359ac_save_IFS=$IFS; IFS='-'
3360set x $ac_cv_host
3361shift
3362host_cpu=$1
3363host_vendor=$2
3364shift; shift
3365# Remember, the first character of IFS is used to create $*,
3366# except with old shells:
3367host_os=$*
3368IFS=$ac_save_IFS
3369case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3370
3371
cristy8b350f62009-11-15 23:12:43 +00003372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003373$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003374if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003375 $as_echo_n "(cached) " >&6
3376else
3377 if test "x$target_alias" = x; then
3378 ac_cv_target=$ac_cv_host
3379else
3380 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003381 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003382fi
3383
3384fi
cristy8b350f62009-11-15 23:12:43 +00003385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003386$as_echo "$ac_cv_target" >&6; }
3387case $ac_cv_target in
3388*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003389*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003390esac
3391target=$ac_cv_target
3392ac_save_IFS=$IFS; IFS='-'
3393set x $ac_cv_target
3394shift
3395target_cpu=$1
3396target_vendor=$2
3397shift; shift
3398# Remember, the first character of IFS is used to create $*,
3399# except with old shells:
3400target_os=$*
3401IFS=$ac_save_IFS
3402case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3403
3404
3405# The aliases save the names the user supplied, while $host etc.
3406# will get canonicalized.
3407test -n "$target_alias" &&
3408 test "$program_prefix$program_suffix$program_transform_name" = \
3409 NONENONEs,x,x, &&
3410 program_prefix=${target_alias}-
3411
cristy837d6dc2010-02-27 01:16:57 +00003412
3413
3414
3415
cristy3225a072010-04-17 01:47:28 +00003416MAGICK_TARGET_CPU=$target_cpu
3417
3418
3419MAGICK_TARGET_VENDOR=$target_vendor
3420
3421
3422MAGICK_TARGET_OS=$target_os
3423
3424
cristy3ed852e2009-09-05 21:47:34 +00003425# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003426MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3427
3428MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3429
cristy3ed852e2009-09-05 21:47:34 +00003430
3431
3432# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3434$as_echo_n "checking whether build environment is sane... " >&6; }
3435# Just in case
3436sleep 1
3437echo timestamp > conftest.file
3438# Reject unsafe characters in $srcdir or the absolute working directory
3439# name. Accept space and tab only in the latter.
3440am_lf='
3441'
3442case `pwd` in
3443 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003444 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003445esac
3446case $srcdir in
3447 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003448 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003449esac
cristy3ed852e2009-09-05 21:47:34 +00003450
cristy73bd4a52010-10-05 11:24:23 +00003451# Do `set' in a subshell so we don't clobber the current shell's
3452# arguments. Must try -L first in case configure is actually a
3453# symlink; some systems play weird games with the mod time of symlinks
3454# (eg FreeBSD returns the mod time of the symlink's containing
3455# directory).
3456if (
3457 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3458 if test "$*" = "X"; then
3459 # -L didn't work.
3460 set X `ls -t "$srcdir/configure" conftest.file`
3461 fi
3462 rm -f conftest.file
3463 if test "$*" != "X $srcdir/configure conftest.file" \
3464 && test "$*" != "X conftest.file $srcdir/configure"; then
3465
3466 # If neither matched, then we have a broken ls. This can happen
3467 # if, for instance, CONFIG_SHELL is bash and it inherits a
3468 # broken ls alias from the environment. This has actually
3469 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003470 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003471alias in your environment" "$LINENO" 5
3472 fi
3473
3474 test "$2" = conftest.file
3475 )
3476then
3477 # Ok.
3478 :
3479else
cristy98dddb52010-11-04 00:30:15 +00003480 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003481Check your system clock" "$LINENO" 5
3482fi
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3484$as_echo "yes" >&6; }
3485
3486am__api_version='1.11'
3487
3488# Find a good install program. We prefer a C program (faster),
3489# so one script is as good as another. But avoid the broken or
3490# incompatible versions:
3491# SysV /etc/install, /usr/sbin/install
3492# SunOS /usr/etc/install
3493# IRIX /sbin/install
3494# AIX /bin/install
3495# AmigaOS /C/install, which installs bootblocks on floppy discs
3496# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3497# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3498# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3499# OS/2's system install, which has a completely different semantic
3500# ./install, which can be erroneously created by make from ./install.sh.
3501# Reject install programs that cannot install multiple files.
3502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3503$as_echo_n "checking for a BSD-compatible install... " >&6; }
3504if test -z "$INSTALL"; then
3505if test "${ac_cv_path_install+set}" = set; then :
3506 $as_echo_n "(cached) " >&6
3507else
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509for as_dir in $PATH
3510do
3511 IFS=$as_save_IFS
3512 test -z "$as_dir" && as_dir=.
3513 # Account for people who put trailing slashes in PATH elements.
3514case $as_dir/ in #((
3515 ./ | .// | /[cC]/* | \
3516 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3517 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3518 /usr/ucb/* ) ;;
3519 *)
3520 # OSF1 and SCO ODT 3.0 have their own names for install.
3521 # Don't use installbsd from OSF since it installs stuff as root
3522 # by default.
3523 for ac_prog in ginstall scoinst install; do
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3526 if test $ac_prog = install &&
3527 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3528 # AIX install. It has an incompatible calling convention.
3529 :
3530 elif test $ac_prog = install &&
3531 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3532 # program-specific install script used by HP pwplus--don't use.
3533 :
3534 else
3535 rm -rf conftest.one conftest.two conftest.dir
3536 echo one > conftest.one
3537 echo two > conftest.two
3538 mkdir conftest.dir
3539 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3540 test -s conftest.one && test -s conftest.two &&
3541 test -s conftest.dir/conftest.one &&
3542 test -s conftest.dir/conftest.two
3543 then
3544 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3545 break 3
3546 fi
3547 fi
3548 fi
3549 done
3550 done
3551 ;;
3552esac
3553
3554 done
3555IFS=$as_save_IFS
3556
3557rm -rf conftest.one conftest.two conftest.dir
3558
3559fi
3560 if test "${ac_cv_path_install+set}" = set; then
3561 INSTALL=$ac_cv_path_install
3562 else
3563 # As a last resort, use the slow shell script. Don't cache a
3564 # value for INSTALL within a source directory, because that will
3565 # break other packages using the cache if that directory is
3566 # removed, or if the value is a relative name.
3567 INSTALL=$ac_install_sh
3568 fi
3569fi
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3571$as_echo "$INSTALL" >&6; }
3572
3573# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3574# It thinks the first close brace ends the variable substitution.
3575test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3576
3577test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3578
3579test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3580
3581test "$program_prefix" != NONE &&
3582 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3583# Use a double $ so make ignores it.
3584test "$program_suffix" != NONE &&
3585 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3586# Double any \ or $.
3587# By default was `s,x,x', remove it if useless.
3588ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3589program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3590
3591# expand $ac_aux_dir to an absolute path
3592am_aux_dir=`cd $ac_aux_dir && pwd`
3593
3594if test x"${MISSING+set}" != xset; then
3595 case $am_aux_dir in
3596 *\ * | *\ *)
3597 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3598 *)
3599 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3600 esac
3601fi
3602# Use eval to expand $SHELL
3603if eval "$MISSING --run true"; then
3604 am_missing_run="$MISSING --run "
3605else
3606 am_missing_run=
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3608$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3609fi
3610
3611if test x"${install_sh}" != xset; then
3612 case $am_aux_dir in
3613 *\ * | *\ *)
3614 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3615 *)
3616 install_sh="\${SHELL} $am_aux_dir/install-sh"
3617 esac
3618fi
3619
3620# Installed binaries are usually stripped using `strip' when the user
3621# run `make install-strip'. However `strip' might not be the right
3622# tool to use in cross-compilation environments, therefore Automake
3623# will honor the `STRIP' environment variable to overrule this program.
3624if test "$cross_compiling" != no; then
3625 if test -n "$ac_tool_prefix"; then
3626 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3627set dummy ${ac_tool_prefix}strip; ac_word=$2
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629$as_echo_n "checking for $ac_word... " >&6; }
3630if test "${ac_cv_prog_STRIP+set}" = set; then :
3631 $as_echo_n "(cached) " >&6
3632else
3633 if test -n "$STRIP"; then
3634 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3635else
3636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637for as_dir in $PATH
3638do
3639 IFS=$as_save_IFS
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3645 break 2
3646 fi
3647done
3648 done
3649IFS=$as_save_IFS
3650
3651fi
3652fi
3653STRIP=$ac_cv_prog_STRIP
3654if test -n "$STRIP"; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3656$as_echo "$STRIP" >&6; }
3657else
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659$as_echo "no" >&6; }
3660fi
3661
3662
3663fi
3664if test -z "$ac_cv_prog_STRIP"; then
3665 ac_ct_STRIP=$STRIP
3666 # Extract the first word of "strip", so it can be a program name with args.
3667set dummy strip; ac_word=$2
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3669$as_echo_n "checking for $ac_word... " >&6; }
3670if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3671 $as_echo_n "(cached) " >&6
3672else
3673 if test -n "$ac_ct_STRIP"; then
3674 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3675else
3676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677for as_dir in $PATH
3678do
3679 IFS=$as_save_IFS
3680 test -z "$as_dir" && as_dir=.
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3683 ac_cv_prog_ac_ct_STRIP="strip"
3684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 break 2
3686 fi
3687done
3688 done
3689IFS=$as_save_IFS
3690
3691fi
3692fi
3693ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3694if test -n "$ac_ct_STRIP"; then
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3696$as_echo "$ac_ct_STRIP" >&6; }
3697else
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699$as_echo "no" >&6; }
3700fi
3701
3702 if test "x$ac_ct_STRIP" = x; then
3703 STRIP=":"
3704 else
3705 case $cross_compiling:$ac_tool_warned in
3706yes:)
3707{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3709ac_tool_warned=yes ;;
3710esac
3711 STRIP=$ac_ct_STRIP
3712 fi
3713else
3714 STRIP="$ac_cv_prog_STRIP"
3715fi
3716
3717fi
3718INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3719
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3721$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3722if test -z "$MKDIR_P"; then
3723 if test "${ac_cv_path_mkdir+set}" = set; then :
3724 $as_echo_n "(cached) " >&6
3725else
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3728do
3729 IFS=$as_save_IFS
3730 test -z "$as_dir" && as_dir=.
3731 for ac_prog in mkdir gmkdir; do
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3734 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3735 'mkdir (GNU coreutils) '* | \
3736 'mkdir (coreutils) '* | \
3737 'mkdir (fileutils) '4.1*)
3738 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3739 break 3;;
3740 esac
3741 done
3742 done
3743 done
3744IFS=$as_save_IFS
3745
3746fi
3747
3748 test -d ./--version && rmdir ./--version
3749 if test "${ac_cv_path_mkdir+set}" = set; then
3750 MKDIR_P="$ac_cv_path_mkdir -p"
3751 else
3752 # As a last resort, use the slow shell script. Don't cache a
3753 # value for MKDIR_P within a source directory, because that will
3754 # break other packages using the cache if that directory is
3755 # removed, or if the value is a relative name.
3756 MKDIR_P="$ac_install_sh -d"
3757 fi
3758fi
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3760$as_echo "$MKDIR_P" >&6; }
3761
3762mkdir_p="$MKDIR_P"
3763case $mkdir_p in
3764 [\\/$]* | ?:[\\/]*) ;;
3765 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3766esac
3767
3768for ac_prog in gawk mawk nawk awk
3769do
3770 # Extract the first word of "$ac_prog", so it can be a program name with args.
3771set dummy $ac_prog; ac_word=$2
3772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3773$as_echo_n "checking for $ac_word... " >&6; }
3774if test "${ac_cv_prog_AWK+set}" = set; then :
3775 $as_echo_n "(cached) " >&6
3776else
3777 if test -n "$AWK"; then
3778 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3779else
3780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781for as_dir in $PATH
3782do
3783 IFS=$as_save_IFS
3784 test -z "$as_dir" && as_dir=.
3785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3787 ac_cv_prog_AWK="$ac_prog"
3788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3789 break 2
3790 fi
3791done
3792 done
3793IFS=$as_save_IFS
3794
3795fi
3796fi
3797AWK=$ac_cv_prog_AWK
3798if test -n "$AWK"; then
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3800$as_echo "$AWK" >&6; }
3801else
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3803$as_echo "no" >&6; }
3804fi
3805
3806
3807 test -n "$AWK" && break
3808done
3809
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3811$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3812set x ${MAKE-make}
3813ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy98dddb52010-11-04 00:30:15 +00003814if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
cristy73bd4a52010-10-05 11:24:23 +00003815 $as_echo_n "(cached) " >&6
3816else
3817 cat >conftest.make <<\_ACEOF
3818SHELL = /bin/sh
3819all:
3820 @echo '@@@%%%=$(MAKE)=@@@%%%'
3821_ACEOF
cristy98dddb52010-11-04 00:30:15 +00003822# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00003823case `${MAKE-make} -f conftest.make 2>/dev/null` in
3824 *@@@%%%=?*=@@@%%%*)
3825 eval ac_cv_prog_make_${ac_make}_set=yes;;
3826 *)
3827 eval ac_cv_prog_make_${ac_make}_set=no;;
3828esac
3829rm -f conftest.make
3830fi
3831if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3833$as_echo "yes" >&6; }
3834 SET_MAKE=
3835else
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3837$as_echo "no" >&6; }
3838 SET_MAKE="MAKE=${MAKE-make}"
3839fi
3840
3841rm -rf .tst 2>/dev/null
3842mkdir .tst 2>/dev/null
3843if test -d .tst; then
3844 am__leading_dot=.
3845else
3846 am__leading_dot=_
3847fi
3848rmdir .tst 2>/dev/null
3849
3850if test "`cd $srcdir && pwd`" != "`pwd`"; then
3851 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3852 # is not polluted with repeated "-I."
3853 am__isrc=' -I$(srcdir)'
3854 # test to see if srcdir already configured
3855 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00003856 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00003857 fi
3858fi
3859
3860# test whether we have cygpath
3861if test -z "$CYGPATH_W"; then
3862 if (cygpath --version) >/dev/null 2>/dev/null; then
3863 CYGPATH_W='cygpath -w'
3864 else
3865 CYGPATH_W=echo
3866 fi
3867fi
3868
3869
3870# Define the identity of the package.
3871 PACKAGE=$PACKAGE_NAME
3872 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3873
3874
3875# Some tools Automake needs.
3876
3877ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3878
3879
3880AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3881
3882
3883AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3884
3885
3886AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3887
3888
3889MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3890
3891# We need awk for the "check" target. The system "awk" is bad on
3892# some platforms.
3893# Always define AMTAR for backward compatibility.
3894
3895AMTAR=${AMTAR-"${am_missing_run}tar"}
3896
3897am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3898
3899
3900
3901
3902
cristy3ed852e2009-09-05 21:47:34 +00003903
3904# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00003905# Check whether --enable-silent-rules was given.
3906if test "${enable_silent_rules+set}" = set; then :
3907 enableval=$enable_silent_rules;
3908fi
3909
3910case $enable_silent_rules in
3911yes) AM_DEFAULT_VERBOSITY=0;;
3912no) AM_DEFAULT_VERBOSITY=1;;
3913*) AM_DEFAULT_VERBOSITY=0;;
3914esac
3915AM_BACKSLASH='\'
3916
cristy3ed852e2009-09-05 21:47:34 +00003917
3918MAGICK_LIB_VERSION="0x"
3919if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3920 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3921fi
3922MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3923if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3924 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3925fi
3926MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3927if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3928 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3929fi
3930MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3931
3932
3933# Definition used to define MagickLibVersionText in version.h
3934MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3935
3936
3937# Definition used to define MagickLibVersionNumber in version.h
3938MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3939
3940
3941# Regenerate config.status if ChangeLog or version.sh is updated.
3942CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3943
3944
3945PERLMAINCC=$CC
3946
3947MAGICK_CFLAGS=''
3948MAGICK_CPPFLAGS=$CPPFLAGS_USER
3949MAGICK_PCFLAGS=$CPPFLAGS_USER
3950MAGICK_LDFLAGS=''
3951MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00003952MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00003953
3954#
3955# Evaluate shell variable equivalents to Makefile directory variables
3956#
3957if test "x$prefix" = xNONE; then
3958 prefix=$ac_default_prefix
3959fi
3960# Let make expand exec_prefix.
3961if test "x$exec_prefix" = xNONE; then
3962 exec_prefix='${prefix}'
3963fi
3964
3965#
3966eval "eval PREFIX_DIR=${prefix}"
3967
3968eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3969
3970eval "eval BIN_DIR=$bindir"
3971
3972eval "eval SBIN_DIR=$sbindir"
3973
3974eval "eval LIBEXEC_DIR=$libexecdir"
3975
3976eval "eval DATA_DIR=$datadir"
3977
3978eval "eval SYSCONF_DIR=$sysconfdir"
3979
3980eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3981
3982eval "eval LOCALSTATE_DIR=$localstatedir"
3983
3984eval "eval LIB_DIR=$libdir"
3985
3986eval "eval INCLUDE_DIR=$includedir"
3987
3988eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
3989
3990eval "eval INFO_DIR=$infodir"
3991
3992eval "eval MAN_DIR=$mandir"
3993
3994
3995# Get full paths to source and build directories
3996srcdirfull="`cd $srcdir && pwd`"
3997builddir="`pwd`"
3998
3999#
4000# Compute variables useful for running uninstalled software.
4001#
4002MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4003MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4004MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4005MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4006DIRSEP=':'
4007case "${build_os}" in
4008 mingw* )
4009 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4010 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4011 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4012 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4013 DIRSEP=';'
4014 ;;
4015esac
4016case "${host_os}" in
4017 mingw* )
4018 DIRSEP=';'
4019 ;;
4020esac
4021
4022
4023
4024
4025
4026
cristya0b81c32010-01-22 02:54:33 +00004027
4028#
4029# Enable OS features.
4030#
cristy73bd4a52010-10-05 11:24:23 +00004031DEPDIR="${am__leading_dot}deps"
4032
4033ac_config_commands="$ac_config_commands depfiles"
4034
4035
4036am_make=${MAKE-make}
4037cat > confinc << 'END'
4038am__doit:
4039 @echo this is the am__doit target
4040.PHONY: am__doit
4041END
4042# If we don't find an include directive, just comment out the code.
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4044$as_echo_n "checking for style of include used by $am_make... " >&6; }
4045am__include="#"
4046am__quote=
4047_am_result=none
4048# First try GNU make style include.
4049echo "include confinc" > confmf
4050# Ignore all kinds of additional output from `make'.
4051case `$am_make -s -f confmf 2> /dev/null` in #(
4052*the\ am__doit\ target*)
4053 am__include=include
4054 am__quote=
4055 _am_result=GNU
4056 ;;
4057esac
4058# Now try BSD make style include.
4059if test "$am__include" = "#"; then
4060 echo '.include "confinc"' > confmf
4061 case `$am_make -s -f confmf 2> /dev/null` in #(
4062 *the\ am__doit\ target*)
4063 am__include=.include
4064 am__quote="\""
4065 _am_result=BSD
4066 ;;
4067 esac
4068fi
4069
4070
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4072$as_echo "$_am_result" >&6; }
4073rm -f confinc confmf
4074
4075# Check whether --enable-dependency-tracking was given.
4076if test "${enable_dependency_tracking+set}" = set; then :
4077 enableval=$enable_dependency_tracking;
4078fi
4079
4080if test "x$enable_dependency_tracking" != xno; then
4081 am_depcomp="$ac_aux_dir/depcomp"
4082 AMDEPBACKSLASH='\'
4083fi
4084 if test "x$enable_dependency_tracking" != xno; then
4085 AMDEP_TRUE=
4086 AMDEP_FALSE='#'
4087else
4088 AMDEP_TRUE='#'
4089 AMDEP_FALSE=
4090fi
4091
4092
cristy3ed852e2009-09-05 21:47:34 +00004093ac_ext=c
4094ac_cpp='$CPP $CPPFLAGS'
4095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4097ac_compiler_gnu=$ac_cv_c_compiler_gnu
4098if test -n "$ac_tool_prefix"; then
4099 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4100set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004102$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004103if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004104 $as_echo_n "(cached) " >&6
4105else
4106 if test -n "$CC"; then
4107 ac_cv_prog_CC="$CC" # Let the user override the test.
4108else
4109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110for as_dir in $PATH
4111do
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004114 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4116 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004118 break 2
4119 fi
4120done
cristy8b350f62009-11-15 23:12:43 +00004121 done
cristy3ed852e2009-09-05 21:47:34 +00004122IFS=$as_save_IFS
4123
4124fi
4125fi
4126CC=$ac_cv_prog_CC
4127if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004129$as_echo "$CC" >&6; }
4130else
cristy8b350f62009-11-15 23:12:43 +00004131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004132$as_echo "no" >&6; }
4133fi
4134
4135
4136fi
4137if test -z "$ac_cv_prog_CC"; then
4138 ac_ct_CC=$CC
4139 # Extract the first word of "gcc", so it can be a program name with args.
4140set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004142$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004143if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004144 $as_echo_n "(cached) " >&6
4145else
4146 if test -n "$ac_ct_CC"; then
4147 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4148else
4149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150for as_dir in $PATH
4151do
4152 IFS=$as_save_IFS
4153 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004154 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4156 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004158 break 2
4159 fi
4160done
cristy8b350f62009-11-15 23:12:43 +00004161 done
cristy3ed852e2009-09-05 21:47:34 +00004162IFS=$as_save_IFS
4163
4164fi
4165fi
4166ac_ct_CC=$ac_cv_prog_ac_ct_CC
4167if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004169$as_echo "$ac_ct_CC" >&6; }
4170else
cristy8b350f62009-11-15 23:12:43 +00004171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004172$as_echo "no" >&6; }
4173fi
4174
4175 if test "x$ac_ct_CC" = x; then
4176 CC=""
4177 else
4178 case $cross_compiling:$ac_tool_warned in
4179yes:)
cristy8b350f62009-11-15 23:12:43 +00004180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4182ac_tool_warned=yes ;;
4183esac
4184 CC=$ac_ct_CC
4185 fi
4186else
4187 CC="$ac_cv_prog_CC"
4188fi
4189
4190if test -z "$CC"; then
4191 if test -n "$ac_tool_prefix"; then
4192 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4193set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004195$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004196if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004197 $as_echo_n "(cached) " >&6
4198else
4199 if test -n "$CC"; then
4200 ac_cv_prog_CC="$CC" # Let the user override the test.
4201else
4202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203for as_dir in $PATH
4204do
4205 IFS=$as_save_IFS
4206 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004207 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4209 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004211 break 2
4212 fi
4213done
cristy8b350f62009-11-15 23:12:43 +00004214 done
cristy3ed852e2009-09-05 21:47:34 +00004215IFS=$as_save_IFS
4216
4217fi
4218fi
4219CC=$ac_cv_prog_CC
4220if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004222$as_echo "$CC" >&6; }
4223else
cristy8b350f62009-11-15 23:12:43 +00004224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004225$as_echo "no" >&6; }
4226fi
4227
4228
4229 fi
4230fi
4231if test -z "$CC"; then
4232 # Extract the first word of "cc", so it can be a program name with args.
4233set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004235$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004236if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004237 $as_echo_n "(cached) " >&6
4238else
4239 if test -n "$CC"; then
4240 ac_cv_prog_CC="$CC" # Let the user override the test.
4241else
4242 ac_prog_rejected=no
4243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244for as_dir in $PATH
4245do
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004248 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4250 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4251 ac_prog_rejected=yes
4252 continue
4253 fi
4254 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004256 break 2
4257 fi
4258done
cristy8b350f62009-11-15 23:12:43 +00004259 done
cristy3ed852e2009-09-05 21:47:34 +00004260IFS=$as_save_IFS
4261
4262if test $ac_prog_rejected = yes; then
4263 # We found a bogon in the path, so make sure we never use it.
4264 set dummy $ac_cv_prog_CC
4265 shift
4266 if test $# != 0; then
4267 # We chose a different compiler from the bogus one.
4268 # However, it has the same basename, so the bogon will be chosen
4269 # first if we set CC to just the basename; use the full file name.
4270 shift
4271 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4272 fi
4273fi
4274fi
4275fi
4276CC=$ac_cv_prog_CC
4277if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004279$as_echo "$CC" >&6; }
4280else
cristy8b350f62009-11-15 23:12:43 +00004281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004282$as_echo "no" >&6; }
4283fi
4284
4285
4286fi
4287if test -z "$CC"; then
4288 if test -n "$ac_tool_prefix"; then
4289 for ac_prog in cl.exe
4290 do
4291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4292set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004294$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004295if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004296 $as_echo_n "(cached) " >&6
4297else
4298 if test -n "$CC"; then
4299 ac_cv_prog_CC="$CC" # Let the user override the test.
4300else
4301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302for as_dir in $PATH
4303do
4304 IFS=$as_save_IFS
4305 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004306 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4308 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004310 break 2
4311 fi
4312done
cristy8b350f62009-11-15 23:12:43 +00004313 done
cristy3ed852e2009-09-05 21:47:34 +00004314IFS=$as_save_IFS
4315
4316fi
4317fi
4318CC=$ac_cv_prog_CC
4319if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004321$as_echo "$CC" >&6; }
4322else
cristy8b350f62009-11-15 23:12:43 +00004323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004324$as_echo "no" >&6; }
4325fi
4326
4327
4328 test -n "$CC" && break
4329 done
4330fi
4331if test -z "$CC"; then
4332 ac_ct_CC=$CC
4333 for ac_prog in cl.exe
4334do
4335 # Extract the first word of "$ac_prog", so it can be a program name with args.
4336set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004338$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004339if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004340 $as_echo_n "(cached) " >&6
4341else
4342 if test -n "$ac_ct_CC"; then
4343 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4344else
4345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346for as_dir in $PATH
4347do
4348 IFS=$as_save_IFS
4349 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004350 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4352 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004354 break 2
4355 fi
4356done
cristy8b350f62009-11-15 23:12:43 +00004357 done
cristy3ed852e2009-09-05 21:47:34 +00004358IFS=$as_save_IFS
4359
4360fi
4361fi
4362ac_ct_CC=$ac_cv_prog_ac_ct_CC
4363if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004365$as_echo "$ac_ct_CC" >&6; }
4366else
cristy8b350f62009-11-15 23:12:43 +00004367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004368$as_echo "no" >&6; }
4369fi
4370
4371
4372 test -n "$ac_ct_CC" && break
4373done
4374
4375 if test "x$ac_ct_CC" = x; then
4376 CC=""
4377 else
4378 case $cross_compiling:$ac_tool_warned in
4379yes:)
cristy8b350f62009-11-15 23:12:43 +00004380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4382ac_tool_warned=yes ;;
4383esac
4384 CC=$ac_ct_CC
4385 fi
4386fi
4387
4388fi
4389
4390
cristy8b350f62009-11-15 23:12:43 +00004391test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004393as_fn_error $? "no acceptable C compiler found in \$PATH
4394See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004395
4396# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004397$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004398set X $ac_compile
4399ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004400for ac_option in --version -v -V -qversion; do
4401 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004402case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4405esac
cristy8b350f62009-11-15 23:12:43 +00004406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4407$as_echo "$ac_try_echo"; } >&5
4408 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004409 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004410 if test -s conftest.err; then
4411 sed '10a\
4412... rest of stderr output deleted ...
4413 10q' conftest.err >conftest.er1
4414 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004415 fi
cristycd4c5312009-11-22 01:19:08 +00004416 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418 test $ac_status = 0; }
4419done
cristy3ed852e2009-09-05 21:47:34 +00004420
cristy8b350f62009-11-15 23:12:43 +00004421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004422/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004423
cristy3ed852e2009-09-05 21:47:34 +00004424int
4425main ()
4426{
4427
4428 ;
4429 return 0;
4430}
4431_ACEOF
4432ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004433ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004434# Try to create an executable without -o first, disregard a.out.
4435# It will help us diagnose broken compilers, and finding out an intuition
4436# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4438$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004439ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4440
4441# The possible output files:
4442ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4443
4444ac_rmfiles=
4445for ac_file in $ac_files
4446do
4447 case $ac_file in
4448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4449 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4450 esac
4451done
4452rm -f $ac_rmfiles
4453
cristy8b350f62009-11-15 23:12:43 +00004454if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004455case "(($ac_try" in
4456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457 *) ac_try_echo=$ac_try;;
4458esac
cristy8b350f62009-11-15 23:12:43 +00004459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4460$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004461 (eval "$ac_link_default") 2>&5
4462 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4464 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004465 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4466# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4467# in a Makefile. We should not override ac_cv_exeext if it was cached,
4468# so that the user can short-circuit this test for compilers unknown to
4469# Autoconf.
4470for ac_file in $ac_files ''
4471do
4472 test -f "$ac_file" || continue
4473 case $ac_file in
4474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4475 ;;
4476 [ab].out )
4477 # We found the default executable, but exeext='' is most
4478 # certainly right.
4479 break;;
4480 *.* )
cristy8b350f62009-11-15 23:12:43 +00004481 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004482 then :; else
4483 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4484 fi
4485 # We set ac_cv_exeext here because the later test for it is not
4486 # safe: cross compilers may not add the suffix if given an `-o'
4487 # argument, so we may need to know it at that point already.
4488 # Even if this section looks crufty: it has the advantage of
4489 # actually working.
4490 break;;
4491 * )
4492 break;;
4493 esac
4494done
4495test "$ac_cv_exeext" = no && ac_cv_exeext=
4496
4497else
4498 ac_file=''
4499fi
cristy8b350f62009-11-15 23:12:43 +00004500if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502$as_echo "no" >&6; }
4503$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004504sed 's/^/| /' conftest.$ac_ext >&5
4505
cristy8b350f62009-11-15 23:12:43 +00004506{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004508as_fn_error 77 "C compiler cannot create executables
4509See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004510else
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4512$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004513fi
cristycd4c5312009-11-22 01:19:08 +00004514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4515$as_echo_n "checking for C compiler default output file name... " >&6; }
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4517$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004518ac_exeext=$ac_cv_exeext
4519
cristycd4c5312009-11-22 01:19:08 +00004520rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004521ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004523$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004524if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004525case "(($ac_try" in
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4528esac
cristy8b350f62009-11-15 23:12:43 +00004529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4530$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004531 (eval "$ac_link") 2>&5
4532 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4534 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004535 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4536# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4537# work properly (i.e., refer to `conftest.exe'), while it won't with
4538# `rm'.
4539for ac_file in conftest.exe conftest conftest.*; do
4540 test -f "$ac_file" || continue
4541 case $ac_file in
4542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4543 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4544 break;;
4545 * ) break;;
4546 esac
4547done
4548else
cristy8b350f62009-11-15 23:12:43 +00004549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004551as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4552See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004553fi
cristycd4c5312009-11-22 01:19:08 +00004554rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004556$as_echo "$ac_cv_exeext" >&6; }
4557
4558rm -f conftest.$ac_ext
4559EXEEXT=$ac_cv_exeext
4560ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562/* end confdefs.h. */
4563#include <stdio.h>
4564int
4565main ()
4566{
4567FILE *f = fopen ("conftest.out", "w");
4568 return ferror (f) || fclose (f) != 0;
4569
4570 ;
4571 return 0;
4572}
4573_ACEOF
4574ac_clean_files="$ac_clean_files conftest.out"
4575# Check that the compiler produces executables we can run. If not, either
4576# the compiler is broken, or we cross compile.
4577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4578$as_echo_n "checking whether we are cross compiling... " >&6; }
4579if test "$cross_compiling" != yes; then
4580 { { ac_try="$ac_link"
4581case "(($ac_try" in
4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4584esac
4585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4586$as_echo "$ac_try_echo"; } >&5
4587 (eval "$ac_link") 2>&5
4588 ac_status=$?
4589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4590 test $ac_status = 0; }
4591 if { ac_try='./conftest$ac_cv_exeext'
4592 { { case "(($ac_try" in
4593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594 *) ac_try_echo=$ac_try;;
4595esac
4596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4597$as_echo "$ac_try_echo"; } >&5
4598 (eval "$ac_try") 2>&5
4599 ac_status=$?
4600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4601 test $ac_status = 0; }; }; then
4602 cross_compiling=no
4603 else
4604 if test "$cross_compiling" = maybe; then
4605 cross_compiling=yes
4606 else
4607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004609as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004610If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004611See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004612 fi
4613 fi
4614fi
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4616$as_echo "$cross_compiling" >&6; }
4617
4618rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4619ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004621$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004622if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004623 $as_echo_n "(cached) " >&6
4624else
cristy8b350f62009-11-15 23:12:43 +00004625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004626/* end confdefs.h. */
4627
4628int
4629main ()
4630{
4631
4632 ;
4633 return 0;
4634}
4635_ACEOF
4636rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004637if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004638case "(($ac_try" in
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4641esac
cristy8b350f62009-11-15 23:12:43 +00004642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4643$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004644 (eval "$ac_compile") 2>&5
4645 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4647 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004648 for ac_file in conftest.o conftest.obj conftest.*; do
4649 test -f "$ac_file" || continue;
4650 case $ac_file in
4651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4652 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4653 break;;
4654 esac
4655done
4656else
4657 $as_echo "$as_me: failed program was:" >&5
4658sed 's/^/| /' conftest.$ac_ext >&5
4659
cristy8b350f62009-11-15 23:12:43 +00004660{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004662as_fn_error $? "cannot compute suffix of object files: cannot compile
4663See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004664fi
cristy3ed852e2009-09-05 21:47:34 +00004665rm -f conftest.$ac_cv_objext conftest.$ac_ext
4666fi
cristy8b350f62009-11-15 23:12:43 +00004667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004668$as_echo "$ac_cv_objext" >&6; }
4669OBJEXT=$ac_cv_objext
4670ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004672$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004673if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004674 $as_echo_n "(cached) " >&6
4675else
cristy8b350f62009-11-15 23:12:43 +00004676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004677/* end confdefs.h. */
4678
4679int
4680main ()
4681{
4682#ifndef __GNUC__
4683 choke me
4684#endif
4685
4686 ;
4687 return 0;
4688}
4689_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004690if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004691 ac_compiler_gnu=yes
4692else
cristy8b350f62009-11-15 23:12:43 +00004693 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004694fi
cristy3ed852e2009-09-05 21:47:34 +00004695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696ac_cv_c_compiler_gnu=$ac_compiler_gnu
4697
4698fi
cristy8b350f62009-11-15 23:12:43 +00004699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004700$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4701if test $ac_compiler_gnu = yes; then
4702 GCC=yes
4703else
4704 GCC=
4705fi
4706ac_test_CFLAGS=${CFLAGS+set}
4707ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004709$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004710if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004711 $as_echo_n "(cached) " >&6
4712else
4713 ac_save_c_werror_flag=$ac_c_werror_flag
4714 ac_c_werror_flag=yes
4715 ac_cv_prog_cc_g=no
4716 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004718/* end confdefs.h. */
4719
4720int
4721main ()
4722{
4723
4724 ;
4725 return 0;
4726}
4727_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004728if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004729 ac_cv_prog_cc_g=yes
4730else
cristy8b350f62009-11-15 23:12:43 +00004731 CFLAGS=""
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004733/* end confdefs.h. */
4734
4735int
4736main ()
4737{
4738
4739 ;
4740 return 0;
4741}
4742_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004743if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004744
cristy8b350f62009-11-15 23:12:43 +00004745else
4746 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004747 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004749/* end confdefs.h. */
4750
4751int
4752main ()
4753{
4754
4755 ;
4756 return 0;
4757}
4758_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004759if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004760 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004761fi
cristy3ed852e2009-09-05 21:47:34 +00004762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763fi
cristy3ed852e2009-09-05 21:47:34 +00004764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765fi
cristy3ed852e2009-09-05 21:47:34 +00004766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 ac_c_werror_flag=$ac_save_c_werror_flag
4768fi
cristy8b350f62009-11-15 23:12:43 +00004769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004770$as_echo "$ac_cv_prog_cc_g" >&6; }
4771if test "$ac_test_CFLAGS" = set; then
4772 CFLAGS=$ac_save_CFLAGS
4773elif test $ac_cv_prog_cc_g = yes; then
4774 if test "$GCC" = yes; then
4775 CFLAGS="-g -O2"
4776 else
4777 CFLAGS="-g"
4778 fi
4779else
4780 if test "$GCC" = yes; then
4781 CFLAGS="-O2"
4782 else
4783 CFLAGS=
4784 fi
4785fi
cristy8b350f62009-11-15 23:12:43 +00004786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004787$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004788if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004789 $as_echo_n "(cached) " >&6
4790else
4791 ac_cv_prog_cc_c89=no
4792ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004794/* end confdefs.h. */
4795#include <stdarg.h>
4796#include <stdio.h>
4797#include <sys/types.h>
4798#include <sys/stat.h>
4799/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4800struct buf { int x; };
4801FILE * (*rcsopen) (struct buf *, struct stat *, int);
4802static char *e (p, i)
4803 char **p;
4804 int i;
4805{
4806 return p[i];
4807}
4808static char *f (char * (*g) (char **, int), char **p, ...)
4809{
4810 char *s;
4811 va_list v;
4812 va_start (v,p);
4813 s = g (p, va_arg (v,int));
4814 va_end (v);
4815 return s;
4816}
4817
4818/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4819 function prototypes and stuff, but not '\xHH' hex character constants.
4820 These don't provoke an error unfortunately, instead are silently treated
4821 as 'x'. The following induces an error, until -std is added to get
4822 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4823 array size at least. It's necessary to write '\x00'==0 to get something
4824 that's true only with -std. */
4825int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4826
4827/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4828 inside strings and character constants. */
4829#define FOO(x) 'x'
4830int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4831
4832int test (int i, double x);
4833struct s1 {int (*f) (int a);};
4834struct s2 {int (*f) (double a);};
4835int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4836int argc;
4837char **argv;
4838int
4839main ()
4840{
4841return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4842 ;
4843 return 0;
4844}
4845_ACEOF
4846for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4847 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4848do
4849 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004850 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004851 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004852fi
cristy3ed852e2009-09-05 21:47:34 +00004853rm -f core conftest.err conftest.$ac_objext
4854 test "x$ac_cv_prog_cc_c89" != "xno" && break
4855done
4856rm -f conftest.$ac_ext
4857CC=$ac_save_CC
4858
4859fi
4860# AC_CACHE_VAL
4861case "x$ac_cv_prog_cc_c89" in
4862 x)
cristy8b350f62009-11-15 23:12:43 +00004863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004864$as_echo "none needed" >&6; } ;;
4865 xno)
cristy8b350f62009-11-15 23:12:43 +00004866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004867$as_echo "unsupported" >&6; } ;;
4868 *)
4869 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004871$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4872esac
cristy8b350f62009-11-15 23:12:43 +00004873if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004874
cristy8b350f62009-11-15 23:12:43 +00004875fi
cristy3ed852e2009-09-05 21:47:34 +00004876
4877ac_ext=c
4878ac_cpp='$CPP $CPPFLAGS'
4879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00004882
cristy73bd4a52010-10-05 11:24:23 +00004883depcc="$CC" am_compiler_list=
4884
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4886$as_echo_n "checking dependency style of $depcc... " >&6; }
4887if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4888 $as_echo_n "(cached) " >&6
4889else
4890 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4891 # We make a subdir and do the tests there. Otherwise we can end up
4892 # making bogus files that we don't know about and never remove. For
4893 # instance it was reported that on HP-UX the gcc test will end up
4894 # making a dummy file named `D' -- because `-MD' means `put the output
4895 # in D'.
4896 mkdir conftest.dir
4897 # Copy depcomp to subdir because otherwise we won't find it if we're
4898 # using a relative directory.
4899 cp "$am_depcomp" conftest.dir
4900 cd conftest.dir
4901 # We will build objects and dependencies in a subdirectory because
4902 # it helps to detect inapplicable dependency modes. For instance
4903 # both Tru64's cc and ICC support -MD to output dependencies as a
4904 # side effect of compilation, but ICC will put the dependencies in
4905 # the current directory while Tru64 will put them in the object
4906 # directory.
4907 mkdir sub
4908
4909 am_cv_CC_dependencies_compiler_type=none
4910 if test "$am_compiler_list" = ""; then
4911 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4912 fi
4913 am__universal=false
4914 case " $depcc " in #(
4915 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4916 esac
4917
4918 for depmode in $am_compiler_list; do
4919 # Setup a source with many dependencies, because some compilers
4920 # like to wrap large dependency lists on column 80 (with \), and
4921 # we should not choose a depcomp mode which is confused by this.
4922 #
4923 # We need to recreate these files for each test, as the compiler may
4924 # overwrite some of them when testing with obscure command lines.
4925 # This happens at least with the AIX C compiler.
4926 : > sub/conftest.c
4927 for i in 1 2 3 4 5 6; do
4928 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4929 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4930 # Solaris 8's {/usr,}/bin/sh.
4931 touch sub/conftst$i.h
4932 done
4933 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4934
4935 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4936 # mode. It turns out that the SunPro C++ compiler does not properly
4937 # handle `-M -o', and we need to detect this. Also, some Intel
4938 # versions had trouble with output in subdirs
4939 am__obj=sub/conftest.${OBJEXT-o}
4940 am__minus_obj="-o $am__obj"
4941 case $depmode in
4942 gcc)
4943 # This depmode causes a compiler race in universal mode.
4944 test "$am__universal" = false || continue
4945 ;;
4946 nosideeffect)
4947 # after this tag, mechanisms are not by side-effect, so they'll
4948 # only be used when explicitly requested
4949 if test "x$enable_dependency_tracking" = xyes; then
4950 continue
4951 else
4952 break
4953 fi
4954 ;;
4955 msvisualcpp | msvcmsys)
4956 # This compiler won't grok `-c -o', but also, the minuso test has
4957 # not run yet. These depmodes are late enough in the game, and
4958 # so weak that their functioning should not be impacted.
4959 am__obj=conftest.${OBJEXT-o}
4960 am__minus_obj=
4961 ;;
4962 none) break ;;
4963 esac
4964 if depmode=$depmode \
4965 source=sub/conftest.c object=$am__obj \
4966 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4967 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4968 >/dev/null 2>conftest.err &&
4969 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4970 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4971 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4972 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4973 # icc doesn't choke on unknown options, it will just issue warnings
4974 # or remarks (even with -Werror). So we grep stderr for any message
4975 # that says an option was ignored or not supported.
4976 # When given -MP, icc 7.0 and 7.1 complain thusly:
4977 # icc: Command line warning: ignoring option '-M'; no argument required
4978 # The diagnosis changed in icc 8.0:
4979 # icc: Command line remark: option '-MP' not supported
4980 if (grep 'ignoring option' conftest.err ||
4981 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4982 am_cv_CC_dependencies_compiler_type=$depmode
4983 break
4984 fi
4985 fi
4986 done
4987
4988 cd ..
4989 rm -rf conftest.dir
4990else
4991 am_cv_CC_dependencies_compiler_type=none
4992fi
4993
4994fi
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4996$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4997CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4998
4999 if
5000 test "x$enable_dependency_tracking" != xno \
5001 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5002 am__fastdepCC_TRUE=
5003 am__fastdepCC_FALSE='#'
5004else
5005 am__fastdepCC_TRUE='#'
5006 am__fastdepCC_FALSE=
5007fi
5008
5009
cristy3ed852e2009-09-05 21:47:34 +00005010
cristya0b81c32010-01-22 02:54:33 +00005011ac_ext=c
5012ac_cpp='$CPP $CPPFLAGS'
5013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015ac_compiler_gnu=$ac_cv_c_compiler_gnu
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5017$as_echo_n "checking how to run the C preprocessor... " >&6; }
5018# On Suns, sometimes $CPP names a directory.
5019if test -n "$CPP" && test -d "$CPP"; then
5020 CPP=
5021fi
5022if test -z "$CPP"; then
5023 if test "${ac_cv_prog_CPP+set}" = set; then :
5024 $as_echo_n "(cached) " >&6
5025else
5026 # Double quotes because CPP needs to be expanded
5027 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5028 do
5029 ac_preproc_ok=false
5030for ac_c_preproc_warn_flag in '' yes
5031do
5032 # Use a header file that comes with gcc, so configuring glibc
5033 # with a fresh cross-compiler works.
5034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5035 # <limits.h> exists even on freestanding compilers.
5036 # On the NeXT, cc -E runs the code through the compiler's parser,
5037 # not just through cpp. "Syntax error" is here to catch this case.
5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039/* end confdefs.h. */
5040#ifdef __STDC__
5041# include <limits.h>
5042#else
5043# include <assert.h>
5044#endif
5045 Syntax error
5046_ACEOF
5047if ac_fn_c_try_cpp "$LINENO"; then :
5048
5049else
5050 # Broken: fails on valid input.
5051continue
5052fi
5053rm -f conftest.err conftest.$ac_ext
5054
5055 # OK, works on sane cases. Now check whether nonexistent headers
5056 # can be detected and how.
5057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5058/* end confdefs.h. */
5059#include <ac_nonexistent.h>
5060_ACEOF
5061if ac_fn_c_try_cpp "$LINENO"; then :
5062 # Broken: success on invalid input.
5063continue
5064else
5065 # Passes both tests.
5066ac_preproc_ok=:
5067break
5068fi
5069rm -f conftest.err conftest.$ac_ext
5070
5071done
5072# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5073rm -f conftest.err conftest.$ac_ext
5074if $ac_preproc_ok; then :
5075 break
5076fi
5077
5078 done
5079 ac_cv_prog_CPP=$CPP
5080
5081fi
5082 CPP=$ac_cv_prog_CPP
5083else
5084 ac_cv_prog_CPP=$CPP
5085fi
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5087$as_echo "$CPP" >&6; }
5088ac_preproc_ok=false
5089for ac_c_preproc_warn_flag in '' yes
5090do
5091 # Use a header file that comes with gcc, so configuring glibc
5092 # with a fresh cross-compiler works.
5093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5094 # <limits.h> exists even on freestanding compilers.
5095 # On the NeXT, cc -E runs the code through the compiler's parser,
5096 # not just through cpp. "Syntax error" is here to catch this case.
5097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098/* end confdefs.h. */
5099#ifdef __STDC__
5100# include <limits.h>
5101#else
5102# include <assert.h>
5103#endif
5104 Syntax error
5105_ACEOF
5106if ac_fn_c_try_cpp "$LINENO"; then :
5107
5108else
5109 # Broken: fails on valid input.
5110continue
5111fi
5112rm -f conftest.err conftest.$ac_ext
5113
5114 # OK, works on sane cases. Now check whether nonexistent headers
5115 # can be detected and how.
5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117/* end confdefs.h. */
5118#include <ac_nonexistent.h>
5119_ACEOF
5120if ac_fn_c_try_cpp "$LINENO"; then :
5121 # Broken: success on invalid input.
5122continue
5123else
5124 # Passes both tests.
5125ac_preproc_ok=:
5126break
5127fi
5128rm -f conftest.err conftest.$ac_ext
5129
5130done
5131# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5132rm -f conftest.err conftest.$ac_ext
5133if $ac_preproc_ok; then :
5134
5135else
5136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005138as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5139See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005140fi
5141
5142ac_ext=c
5143ac_cpp='$CPP $CPPFLAGS'
5144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5146ac_compiler_gnu=$ac_cv_c_compiler_gnu
5147
5148
5149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5150$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5151if test "${ac_cv_path_GREP+set}" = set; then :
5152 $as_echo_n "(cached) " >&6
5153else
5154 if test -z "$GREP"; then
5155 ac_path_GREP_found=false
5156 # Loop through the user's path and test for each of PROGNAME-LIST
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5159do
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
5162 for ac_prog in grep ggrep; do
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5165 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5166# Check for GNU ac_path_GREP and select it if it is found.
5167 # Check for GNU $ac_path_GREP
5168case `"$ac_path_GREP" --version 2>&1` in
5169*GNU*)
5170 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5171*)
5172 ac_count=0
5173 $as_echo_n 0123456789 >"conftest.in"
5174 while :
5175 do
5176 cat "conftest.in" "conftest.in" >"conftest.tmp"
5177 mv "conftest.tmp" "conftest.in"
5178 cp "conftest.in" "conftest.nl"
5179 $as_echo 'GREP' >> "conftest.nl"
5180 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5181 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5182 as_fn_arith $ac_count + 1 && ac_count=$as_val
5183 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5184 # Best one so far, save it but keep looking for a better one
5185 ac_cv_path_GREP="$ac_path_GREP"
5186 ac_path_GREP_max=$ac_count
5187 fi
5188 # 10*(2^10) chars as input seems more than enough
5189 test $ac_count -gt 10 && break
5190 done
5191 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5192esac
5193
5194 $ac_path_GREP_found && break 3
5195 done
5196 done
5197 done
5198IFS=$as_save_IFS
5199 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005200 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005201 fi
5202else
5203 ac_cv_path_GREP=$GREP
5204fi
5205
5206fi
5207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5208$as_echo "$ac_cv_path_GREP" >&6; }
5209 GREP="$ac_cv_path_GREP"
5210
5211
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5213$as_echo_n "checking for egrep... " >&6; }
5214if test "${ac_cv_path_EGREP+set}" = set; then :
5215 $as_echo_n "(cached) " >&6
5216else
5217 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5218 then ac_cv_path_EGREP="$GREP -E"
5219 else
5220 if test -z "$EGREP"; then
5221 ac_path_EGREP_found=false
5222 # Loop through the user's path and test for each of PROGNAME-LIST
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5225do
5226 IFS=$as_save_IFS
5227 test -z "$as_dir" && as_dir=.
5228 for ac_prog in egrep; do
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5231 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5232# Check for GNU ac_path_EGREP and select it if it is found.
5233 # Check for GNU $ac_path_EGREP
5234case `"$ac_path_EGREP" --version 2>&1` in
5235*GNU*)
5236 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5237*)
5238 ac_count=0
5239 $as_echo_n 0123456789 >"conftest.in"
5240 while :
5241 do
5242 cat "conftest.in" "conftest.in" >"conftest.tmp"
5243 mv "conftest.tmp" "conftest.in"
5244 cp "conftest.in" "conftest.nl"
5245 $as_echo 'EGREP' >> "conftest.nl"
5246 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5247 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5248 as_fn_arith $ac_count + 1 && ac_count=$as_val
5249 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5250 # Best one so far, save it but keep looking for a better one
5251 ac_cv_path_EGREP="$ac_path_EGREP"
5252 ac_path_EGREP_max=$ac_count
5253 fi
5254 # 10*(2^10) chars as input seems more than enough
5255 test $ac_count -gt 10 && break
5256 done
5257 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5258esac
5259
5260 $ac_path_EGREP_found && break 3
5261 done
5262 done
5263 done
5264IFS=$as_save_IFS
5265 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005266 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005267 fi
5268else
5269 ac_cv_path_EGREP=$EGREP
5270fi
5271
5272 fi
5273fi
5274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5275$as_echo "$ac_cv_path_EGREP" >&6; }
5276 EGREP="$ac_cv_path_EGREP"
5277
5278
5279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5280$as_echo_n "checking for ANSI C header files... " >&6; }
5281if test "${ac_cv_header_stdc+set}" = set; then :
5282 $as_echo_n "(cached) " >&6
5283else
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285/* end confdefs.h. */
5286#include <stdlib.h>
5287#include <stdarg.h>
5288#include <string.h>
5289#include <float.h>
5290
5291int
5292main ()
5293{
5294
5295 ;
5296 return 0;
5297}
5298_ACEOF
5299if ac_fn_c_try_compile "$LINENO"; then :
5300 ac_cv_header_stdc=yes
5301else
5302 ac_cv_header_stdc=no
5303fi
5304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305
5306if test $ac_cv_header_stdc = yes; then
5307 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309/* end confdefs.h. */
5310#include <string.h>
5311
5312_ACEOF
5313if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5314 $EGREP "memchr" >/dev/null 2>&1; then :
5315
5316else
5317 ac_cv_header_stdc=no
5318fi
5319rm -f conftest*
5320
5321fi
5322
5323if test $ac_cv_header_stdc = yes; then
5324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326/* end confdefs.h. */
5327#include <stdlib.h>
5328
5329_ACEOF
5330if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5331 $EGREP "free" >/dev/null 2>&1; then :
5332
5333else
5334 ac_cv_header_stdc=no
5335fi
5336rm -f conftest*
5337
5338fi
5339
5340if test $ac_cv_header_stdc = yes; then
5341 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5342 if test "$cross_compiling" = yes; then :
5343 :
5344else
5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346/* end confdefs.h. */
5347#include <ctype.h>
5348#include <stdlib.h>
5349#if ((' ' & 0x0FF) == 0x020)
5350# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5351# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5352#else
5353# define ISLOWER(c) \
5354 (('a' <= (c) && (c) <= 'i') \
5355 || ('j' <= (c) && (c) <= 'r') \
5356 || ('s' <= (c) && (c) <= 'z'))
5357# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5358#endif
5359
5360#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5361int
5362main ()
5363{
5364 int i;
5365 for (i = 0; i < 256; i++)
5366 if (XOR (islower (i), ISLOWER (i))
5367 || toupper (i) != TOUPPER (i))
5368 return 2;
5369 return 0;
5370}
5371_ACEOF
5372if ac_fn_c_try_run "$LINENO"; then :
5373
5374else
5375 ac_cv_header_stdc=no
5376fi
5377rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5378 conftest.$ac_objext conftest.beam conftest.$ac_ext
5379fi
5380
5381fi
5382fi
5383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5384$as_echo "$ac_cv_header_stdc" >&6; }
5385if test $ac_cv_header_stdc = yes; then
5386
5387$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5388
5389fi
5390
5391# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5392for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5393 inttypes.h stdint.h unistd.h
5394do :
5395 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5396ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5397"
cristy98dddb52010-11-04 00:30:15 +00005398if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005399 cat >>confdefs.h <<_ACEOF
5400#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5401_ACEOF
5402
5403fi
5404
5405done
5406
5407
5408
5409 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5410if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5411 MINIX=yes
5412else
5413 MINIX=
5414fi
5415
5416
5417 if test "$MINIX" = yes; then
5418
5419$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5420
5421
5422$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5423
5424
5425$as_echo "#define _MINIX 1" >>confdefs.h
5426
5427 fi
5428
5429
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5431$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5432if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5433 $as_echo_n "(cached) " >&6
5434else
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436/* end confdefs.h. */
5437
5438# define __EXTENSIONS__ 1
5439 $ac_includes_default
5440int
5441main ()
5442{
5443
5444 ;
5445 return 0;
5446}
5447_ACEOF
5448if ac_fn_c_try_compile "$LINENO"; then :
5449 ac_cv_safe_to_define___extensions__=yes
5450else
5451 ac_cv_safe_to_define___extensions__=no
5452fi
5453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454fi
5455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5456$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5457 test $ac_cv_safe_to_define___extensions__ = yes &&
5458 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5459
5460 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5461
5462 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5463
5464 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5465
5466 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5467
5468
5469
5470# Check for programs
5471ac_ext=c
5472ac_cpp='$CPP $CPPFLAGS'
5473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5475ac_compiler_gnu=$ac_cv_c_compiler_gnu
5476if test -n "$ac_tool_prefix"; then
5477 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5478set dummy ${ac_tool_prefix}gcc; ac_word=$2
5479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480$as_echo_n "checking for $ac_word... " >&6; }
5481if test "${ac_cv_prog_CC+set}" = set; then :
5482 $as_echo_n "(cached) " >&6
5483else
5484 if test -n "$CC"; then
5485 ac_cv_prog_CC="$CC" # Let the user override the test.
5486else
5487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488for as_dir in $PATH
5489do
5490 IFS=$as_save_IFS
5491 test -z "$as_dir" && as_dir=.
5492 for ac_exec_ext in '' $ac_executable_extensions; do
5493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5494 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5496 break 2
5497 fi
5498done
5499 done
5500IFS=$as_save_IFS
5501
5502fi
5503fi
5504CC=$ac_cv_prog_CC
5505if test -n "$CC"; then
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5507$as_echo "$CC" >&6; }
5508else
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510$as_echo "no" >&6; }
5511fi
5512
5513
5514fi
5515if test -z "$ac_cv_prog_CC"; then
5516 ac_ct_CC=$CC
5517 # Extract the first word of "gcc", so it can be a program name with args.
5518set dummy gcc; ac_word=$2
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520$as_echo_n "checking for $ac_word... " >&6; }
5521if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5522 $as_echo_n "(cached) " >&6
5523else
5524 if test -n "$ac_ct_CC"; then
5525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5526else
5527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528for as_dir in $PATH
5529do
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5534 ac_cv_prog_ac_ct_CC="gcc"
5535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 break 2
5537 fi
5538done
5539 done
5540IFS=$as_save_IFS
5541
5542fi
5543fi
5544ac_ct_CC=$ac_cv_prog_ac_ct_CC
5545if test -n "$ac_ct_CC"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5547$as_echo "$ac_ct_CC" >&6; }
5548else
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550$as_echo "no" >&6; }
5551fi
5552
5553 if test "x$ac_ct_CC" = x; then
5554 CC=""
5555 else
5556 case $cross_compiling:$ac_tool_warned in
5557yes:)
5558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5560ac_tool_warned=yes ;;
5561esac
5562 CC=$ac_ct_CC
5563 fi
5564else
5565 CC="$ac_cv_prog_CC"
5566fi
5567
5568if test -z "$CC"; then
5569 if test -n "$ac_tool_prefix"; then
5570 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5571set dummy ${ac_tool_prefix}cc; ac_word=$2
5572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573$as_echo_n "checking for $ac_word... " >&6; }
5574if test "${ac_cv_prog_CC+set}" = set; then :
5575 $as_echo_n "(cached) " >&6
5576else
5577 if test -n "$CC"; then
5578 ac_cv_prog_CC="$CC" # Let the user override the test.
5579else
5580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581for as_dir in $PATH
5582do
5583 IFS=$as_save_IFS
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5587 ac_cv_prog_CC="${ac_tool_prefix}cc"
5588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 break 2
5590 fi
5591done
5592 done
5593IFS=$as_save_IFS
5594
5595fi
5596fi
5597CC=$ac_cv_prog_CC
5598if test -n "$CC"; then
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5600$as_echo "$CC" >&6; }
5601else
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603$as_echo "no" >&6; }
5604fi
5605
5606
5607 fi
5608fi
5609if test -z "$CC"; then
5610 # Extract the first word of "cc", so it can be a program name with args.
5611set dummy cc; ac_word=$2
5612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613$as_echo_n "checking for $ac_word... " >&6; }
5614if test "${ac_cv_prog_CC+set}" = set; then :
5615 $as_echo_n "(cached) " >&6
5616else
5617 if test -n "$CC"; then
5618 ac_cv_prog_CC="$CC" # Let the user override the test.
5619else
5620 ac_prog_rejected=no
5621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622for as_dir in $PATH
5623do
5624 IFS=$as_save_IFS
5625 test -z "$as_dir" && as_dir=.
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5628 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5629 ac_prog_rejected=yes
5630 continue
5631 fi
5632 ac_cv_prog_CC="cc"
5633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5634 break 2
5635 fi
5636done
5637 done
5638IFS=$as_save_IFS
5639
5640if test $ac_prog_rejected = yes; then
5641 # We found a bogon in the path, so make sure we never use it.
5642 set dummy $ac_cv_prog_CC
5643 shift
5644 if test $# != 0; then
5645 # We chose a different compiler from the bogus one.
5646 # However, it has the same basename, so the bogon will be chosen
5647 # first if we set CC to just the basename; use the full file name.
5648 shift
5649 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5650 fi
5651fi
5652fi
5653fi
5654CC=$ac_cv_prog_CC
5655if test -n "$CC"; then
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5657$as_echo "$CC" >&6; }
5658else
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660$as_echo "no" >&6; }
5661fi
5662
5663
5664fi
5665if test -z "$CC"; then
5666 if test -n "$ac_tool_prefix"; then
5667 for ac_prog in cl.exe
5668 do
5669 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5670set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672$as_echo_n "checking for $ac_word... " >&6; }
5673if test "${ac_cv_prog_CC+set}" = set; then :
5674 $as_echo_n "(cached) " >&6
5675else
5676 if test -n "$CC"; then
5677 ac_cv_prog_CC="$CC" # Let the user override the test.
5678else
5679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680for as_dir in $PATH
5681do
5682 IFS=$as_save_IFS
5683 test -z "$as_dir" && as_dir=.
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5686 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688 break 2
5689 fi
5690done
5691 done
5692IFS=$as_save_IFS
5693
5694fi
5695fi
5696CC=$ac_cv_prog_CC
5697if test -n "$CC"; then
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5699$as_echo "$CC" >&6; }
5700else
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702$as_echo "no" >&6; }
5703fi
5704
5705
5706 test -n "$CC" && break
5707 done
5708fi
5709if test -z "$CC"; then
5710 ac_ct_CC=$CC
5711 for ac_prog in cl.exe
5712do
5713 # Extract the first word of "$ac_prog", so it can be a program name with args.
5714set dummy $ac_prog; ac_word=$2
5715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5716$as_echo_n "checking for $ac_word... " >&6; }
5717if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5718 $as_echo_n "(cached) " >&6
5719else
5720 if test -n "$ac_ct_CC"; then
5721 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5722else
5723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724for as_dir in $PATH
5725do
5726 IFS=$as_save_IFS
5727 test -z "$as_dir" && as_dir=.
5728 for ac_exec_ext in '' $ac_executable_extensions; do
5729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5730 ac_cv_prog_ac_ct_CC="$ac_prog"
5731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5732 break 2
5733 fi
5734done
5735 done
5736IFS=$as_save_IFS
5737
5738fi
5739fi
5740ac_ct_CC=$ac_cv_prog_ac_ct_CC
5741if test -n "$ac_ct_CC"; then
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5743$as_echo "$ac_ct_CC" >&6; }
5744else
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5746$as_echo "no" >&6; }
5747fi
5748
5749
5750 test -n "$ac_ct_CC" && break
5751done
5752
5753 if test "x$ac_ct_CC" = x; then
5754 CC=""
5755 else
5756 case $cross_compiling:$ac_tool_warned in
5757yes:)
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5760ac_tool_warned=yes ;;
5761esac
5762 CC=$ac_ct_CC
5763 fi
5764fi
5765
5766fi
5767
5768
5769test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5770$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005771as_fn_error $? "no acceptable C compiler found in \$PATH
5772See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005773
5774# Provide some information about the compiler.
5775$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5776set X $ac_compile
5777ac_compiler=$2
5778for ac_option in --version -v -V -qversion; do
5779 { { ac_try="$ac_compiler $ac_option >&5"
5780case "(($ac_try" in
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5783esac
5784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5785$as_echo "$ac_try_echo"; } >&5
5786 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5787 ac_status=$?
5788 if test -s conftest.err; then
5789 sed '10a\
5790... rest of stderr output deleted ...
5791 10q' conftest.err >conftest.er1
5792 cat conftest.er1 >&5
5793 fi
5794 rm -f conftest.er1 conftest.err
5795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5796 test $ac_status = 0; }
5797done
5798
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5800$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5801if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5802 $as_echo_n "(cached) " >&6
5803else
5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805/* end confdefs.h. */
5806
5807int
5808main ()
5809{
5810#ifndef __GNUC__
5811 choke me
5812#endif
5813
5814 ;
5815 return 0;
5816}
5817_ACEOF
5818if ac_fn_c_try_compile "$LINENO"; then :
5819 ac_compiler_gnu=yes
5820else
5821 ac_compiler_gnu=no
5822fi
5823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5824ac_cv_c_compiler_gnu=$ac_compiler_gnu
5825
5826fi
5827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5828$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5829if test $ac_compiler_gnu = yes; then
5830 GCC=yes
5831else
5832 GCC=
5833fi
5834ac_test_CFLAGS=${CFLAGS+set}
5835ac_save_CFLAGS=$CFLAGS
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5837$as_echo_n "checking whether $CC accepts -g... " >&6; }
5838if test "${ac_cv_prog_cc_g+set}" = set; then :
5839 $as_echo_n "(cached) " >&6
5840else
5841 ac_save_c_werror_flag=$ac_c_werror_flag
5842 ac_c_werror_flag=yes
5843 ac_cv_prog_cc_g=no
5844 CFLAGS="-g"
5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846/* end confdefs.h. */
5847
5848int
5849main ()
5850{
5851
5852 ;
5853 return 0;
5854}
5855_ACEOF
5856if ac_fn_c_try_compile "$LINENO"; then :
5857 ac_cv_prog_cc_g=yes
5858else
5859 CFLAGS=""
5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861/* end confdefs.h. */
5862
5863int
5864main ()
5865{
5866
5867 ;
5868 return 0;
5869}
5870_ACEOF
5871if ac_fn_c_try_compile "$LINENO"; then :
5872
5873else
5874 ac_c_werror_flag=$ac_save_c_werror_flag
5875 CFLAGS="-g"
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877/* end confdefs.h. */
5878
5879int
5880main ()
5881{
5882
5883 ;
5884 return 0;
5885}
5886_ACEOF
5887if ac_fn_c_try_compile "$LINENO"; then :
5888 ac_cv_prog_cc_g=yes
5889fi
5890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891fi
5892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5893fi
5894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895 ac_c_werror_flag=$ac_save_c_werror_flag
5896fi
5897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5898$as_echo "$ac_cv_prog_cc_g" >&6; }
5899if test "$ac_test_CFLAGS" = set; then
5900 CFLAGS=$ac_save_CFLAGS
5901elif test $ac_cv_prog_cc_g = yes; then
5902 if test "$GCC" = yes; then
5903 CFLAGS="-g -O2"
5904 else
5905 CFLAGS="-g"
5906 fi
5907else
5908 if test "$GCC" = yes; then
5909 CFLAGS="-O2"
5910 else
5911 CFLAGS=
5912 fi
5913fi
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5915$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5916if test "${ac_cv_prog_cc_c89+set}" = set; then :
5917 $as_echo_n "(cached) " >&6
5918else
5919 ac_cv_prog_cc_c89=no
5920ac_save_CC=$CC
5921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922/* end confdefs.h. */
5923#include <stdarg.h>
5924#include <stdio.h>
5925#include <sys/types.h>
5926#include <sys/stat.h>
5927/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5928struct buf { int x; };
5929FILE * (*rcsopen) (struct buf *, struct stat *, int);
5930static char *e (p, i)
5931 char **p;
5932 int i;
5933{
5934 return p[i];
5935}
5936static char *f (char * (*g) (char **, int), char **p, ...)
5937{
5938 char *s;
5939 va_list v;
5940 va_start (v,p);
5941 s = g (p, va_arg (v,int));
5942 va_end (v);
5943 return s;
5944}
5945
5946/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5947 function prototypes and stuff, but not '\xHH' hex character constants.
5948 These don't provoke an error unfortunately, instead are silently treated
5949 as 'x'. The following induces an error, until -std is added to get
5950 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5951 array size at least. It's necessary to write '\x00'==0 to get something
5952 that's true only with -std. */
5953int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5954
5955/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5956 inside strings and character constants. */
5957#define FOO(x) 'x'
5958int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5959
5960int test (int i, double x);
5961struct s1 {int (*f) (int a);};
5962struct s2 {int (*f) (double a);};
5963int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5964int argc;
5965char **argv;
5966int
5967main ()
5968{
5969return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5970 ;
5971 return 0;
5972}
5973_ACEOF
5974for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5975 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5976do
5977 CC="$ac_save_CC $ac_arg"
5978 if ac_fn_c_try_compile "$LINENO"; then :
5979 ac_cv_prog_cc_c89=$ac_arg
5980fi
5981rm -f core conftest.err conftest.$ac_objext
5982 test "x$ac_cv_prog_cc_c89" != "xno" && break
5983done
5984rm -f conftest.$ac_ext
5985CC=$ac_save_CC
5986
5987fi
5988# AC_CACHE_VAL
5989case "x$ac_cv_prog_cc_c89" in
5990 x)
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5992$as_echo "none needed" >&6; } ;;
5993 xno)
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5995$as_echo "unsupported" >&6; } ;;
5996 *)
5997 CC="$CC $ac_cv_prog_cc_c89"
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5999$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6000esac
6001if test "x$ac_cv_prog_cc_c89" != xno; then :
6002
6003fi
6004
6005ac_ext=c
6006ac_cpp='$CPP $CPPFLAGS'
6007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6009ac_compiler_gnu=$ac_cv_c_compiler_gnu
6010
cristy73bd4a52010-10-05 11:24:23 +00006011depcc="$CC" am_compiler_list=
6012
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6014$as_echo_n "checking dependency style of $depcc... " >&6; }
6015if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6016 $as_echo_n "(cached) " >&6
6017else
6018 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6019 # We make a subdir and do the tests there. Otherwise we can end up
6020 # making bogus files that we don't know about and never remove. For
6021 # instance it was reported that on HP-UX the gcc test will end up
6022 # making a dummy file named `D' -- because `-MD' means `put the output
6023 # in D'.
6024 mkdir conftest.dir
6025 # Copy depcomp to subdir because otherwise we won't find it if we're
6026 # using a relative directory.
6027 cp "$am_depcomp" conftest.dir
6028 cd conftest.dir
6029 # We will build objects and dependencies in a subdirectory because
6030 # it helps to detect inapplicable dependency modes. For instance
6031 # both Tru64's cc and ICC support -MD to output dependencies as a
6032 # side effect of compilation, but ICC will put the dependencies in
6033 # the current directory while Tru64 will put them in the object
6034 # directory.
6035 mkdir sub
6036
6037 am_cv_CC_dependencies_compiler_type=none
6038 if test "$am_compiler_list" = ""; then
6039 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6040 fi
6041 am__universal=false
6042 case " $depcc " in #(
6043 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6044 esac
6045
6046 for depmode in $am_compiler_list; do
6047 # Setup a source with many dependencies, because some compilers
6048 # like to wrap large dependency lists on column 80 (with \), and
6049 # we should not choose a depcomp mode which is confused by this.
6050 #
6051 # We need to recreate these files for each test, as the compiler may
6052 # overwrite some of them when testing with obscure command lines.
6053 # This happens at least with the AIX C compiler.
6054 : > sub/conftest.c
6055 for i in 1 2 3 4 5 6; do
6056 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6057 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6058 # Solaris 8's {/usr,}/bin/sh.
6059 touch sub/conftst$i.h
6060 done
6061 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6062
6063 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6064 # mode. It turns out that the SunPro C++ compiler does not properly
6065 # handle `-M -o', and we need to detect this. Also, some Intel
6066 # versions had trouble with output in subdirs
6067 am__obj=sub/conftest.${OBJEXT-o}
6068 am__minus_obj="-o $am__obj"
6069 case $depmode in
6070 gcc)
6071 # This depmode causes a compiler race in universal mode.
6072 test "$am__universal" = false || continue
6073 ;;
6074 nosideeffect)
6075 # after this tag, mechanisms are not by side-effect, so they'll
6076 # only be used when explicitly requested
6077 if test "x$enable_dependency_tracking" = xyes; then
6078 continue
6079 else
6080 break
6081 fi
6082 ;;
6083 msvisualcpp | msvcmsys)
6084 # This compiler won't grok `-c -o', but also, the minuso test has
6085 # not run yet. These depmodes are late enough in the game, and
6086 # so weak that their functioning should not be impacted.
6087 am__obj=conftest.${OBJEXT-o}
6088 am__minus_obj=
6089 ;;
6090 none) break ;;
6091 esac
6092 if depmode=$depmode \
6093 source=sub/conftest.c object=$am__obj \
6094 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6095 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6096 >/dev/null 2>conftest.err &&
6097 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6098 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6099 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6100 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6101 # icc doesn't choke on unknown options, it will just issue warnings
6102 # or remarks (even with -Werror). So we grep stderr for any message
6103 # that says an option was ignored or not supported.
6104 # When given -MP, icc 7.0 and 7.1 complain thusly:
6105 # icc: Command line warning: ignoring option '-M'; no argument required
6106 # The diagnosis changed in icc 8.0:
6107 # icc: Command line remark: option '-MP' not supported
6108 if (grep 'ignoring option' conftest.err ||
6109 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6110 am_cv_CC_dependencies_compiler_type=$depmode
6111 break
6112 fi
6113 fi
6114 done
6115
6116 cd ..
6117 rm -rf conftest.dir
6118else
6119 am_cv_CC_dependencies_compiler_type=none
6120fi
6121
6122fi
6123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6124$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6125CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6126
6127 if
6128 test "x$enable_dependency_tracking" != xno \
6129 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6130 am__fastdepCC_TRUE=
6131 am__fastdepCC_FALSE='#'
6132else
6133 am__fastdepCC_TRUE='#'
6134 am__fastdepCC_FALSE=
6135fi
6136
6137
cristy95646052009-11-28 23:05:30 +00006138ac_ext=cpp
6139ac_cpp='$CXXCPP $CPPFLAGS'
6140ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6141ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6142ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6143if test -z "$CXX"; then
6144 if test -n "$CCC"; then
6145 CXX=$CCC
6146 else
6147 if test -n "$ac_tool_prefix"; then
6148 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6149 do
6150 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6151set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6153$as_echo_n "checking for $ac_word... " >&6; }
6154if test "${ac_cv_prog_CXX+set}" = set; then :
6155 $as_echo_n "(cached) " >&6
6156else
6157 if test -n "$CXX"; then
6158 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6159else
6160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161for as_dir in $PATH
6162do
6163 IFS=$as_save_IFS
6164 test -z "$as_dir" && as_dir=.
6165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6167 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6169 break 2
6170 fi
6171done
6172 done
6173IFS=$as_save_IFS
6174
6175fi
6176fi
6177CXX=$ac_cv_prog_CXX
6178if test -n "$CXX"; then
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6180$as_echo "$CXX" >&6; }
6181else
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6183$as_echo "no" >&6; }
6184fi
6185
6186
6187 test -n "$CXX" && break
6188 done
6189fi
6190if test -z "$CXX"; then
6191 ac_ct_CXX=$CXX
6192 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6193do
6194 # Extract the first word of "$ac_prog", so it can be a program name with args.
6195set dummy $ac_prog; ac_word=$2
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6197$as_echo_n "checking for $ac_word... " >&6; }
6198if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6199 $as_echo_n "(cached) " >&6
6200else
6201 if test -n "$ac_ct_CXX"; then
6202 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6203else
6204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205for as_dir in $PATH
6206do
6207 IFS=$as_save_IFS
6208 test -z "$as_dir" && as_dir=.
6209 for ac_exec_ext in '' $ac_executable_extensions; do
6210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6211 ac_cv_prog_ac_ct_CXX="$ac_prog"
6212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6213 break 2
6214 fi
6215done
6216 done
6217IFS=$as_save_IFS
6218
6219fi
6220fi
6221ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6222if test -n "$ac_ct_CXX"; then
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6224$as_echo "$ac_ct_CXX" >&6; }
6225else
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227$as_echo "no" >&6; }
6228fi
6229
6230
6231 test -n "$ac_ct_CXX" && break
6232done
6233
6234 if test "x$ac_ct_CXX" = x; then
6235 CXX="g++"
6236 else
6237 case $cross_compiling:$ac_tool_warned in
6238yes:)
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6241ac_tool_warned=yes ;;
6242esac
6243 CXX=$ac_ct_CXX
6244 fi
6245fi
6246
6247 fi
6248fi
6249# Provide some information about the compiler.
6250$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6251set X $ac_compile
6252ac_compiler=$2
6253for ac_option in --version -v -V -qversion; do
6254 { { ac_try="$ac_compiler $ac_option >&5"
6255case "(($ac_try" in
6256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6257 *) ac_try_echo=$ac_try;;
6258esac
6259eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6260$as_echo "$ac_try_echo"; } >&5
6261 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6262 ac_status=$?
6263 if test -s conftest.err; then
6264 sed '10a\
6265... rest of stderr output deleted ...
6266 10q' conftest.err >conftest.er1
6267 cat conftest.er1 >&5
6268 fi
6269 rm -f conftest.er1 conftest.err
6270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6271 test $ac_status = 0; }
6272done
6273
6274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6275$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6276if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6277 $as_echo_n "(cached) " >&6
6278else
6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280/* end confdefs.h. */
6281
6282int
6283main ()
6284{
6285#ifndef __GNUC__
6286 choke me
6287#endif
6288
6289 ;
6290 return 0;
6291}
6292_ACEOF
6293if ac_fn_cxx_try_compile "$LINENO"; then :
6294 ac_compiler_gnu=yes
6295else
6296 ac_compiler_gnu=no
6297fi
6298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6299ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6300
6301fi
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6303$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6304if test $ac_compiler_gnu = yes; then
6305 GXX=yes
6306else
6307 GXX=
6308fi
6309ac_test_CXXFLAGS=${CXXFLAGS+set}
6310ac_save_CXXFLAGS=$CXXFLAGS
6311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6312$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6313if test "${ac_cv_prog_cxx_g+set}" = set; then :
6314 $as_echo_n "(cached) " >&6
6315else
6316 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6317 ac_cxx_werror_flag=yes
6318 ac_cv_prog_cxx_g=no
6319 CXXFLAGS="-g"
6320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6321/* end confdefs.h. */
6322
6323int
6324main ()
6325{
6326
6327 ;
6328 return 0;
6329}
6330_ACEOF
6331if ac_fn_cxx_try_compile "$LINENO"; then :
6332 ac_cv_prog_cxx_g=yes
6333else
6334 CXXFLAGS=""
6335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336/* end confdefs.h. */
6337
6338int
6339main ()
6340{
6341
6342 ;
6343 return 0;
6344}
6345_ACEOF
6346if ac_fn_cxx_try_compile "$LINENO"; then :
6347
6348else
6349 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6350 CXXFLAGS="-g"
6351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352/* end confdefs.h. */
6353
6354int
6355main ()
6356{
6357
6358 ;
6359 return 0;
6360}
6361_ACEOF
6362if ac_fn_cxx_try_compile "$LINENO"; then :
6363 ac_cv_prog_cxx_g=yes
6364fi
6365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366fi
6367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368fi
6369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6371fi
6372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6373$as_echo "$ac_cv_prog_cxx_g" >&6; }
6374if test "$ac_test_CXXFLAGS" = set; then
6375 CXXFLAGS=$ac_save_CXXFLAGS
6376elif test $ac_cv_prog_cxx_g = yes; then
6377 if test "$GXX" = yes; then
6378 CXXFLAGS="-g -O2"
6379 else
6380 CXXFLAGS="-g"
6381 fi
6382else
6383 if test "$GXX" = yes; then
6384 CXXFLAGS="-O2"
6385 else
6386 CXXFLAGS=
6387 fi
6388fi
6389ac_ext=c
6390ac_cpp='$CPP $CPPFLAGS'
6391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6393ac_compiler_gnu=$ac_cv_c_compiler_gnu
6394
cristy73bd4a52010-10-05 11:24:23 +00006395depcc="$CXX" am_compiler_list=
6396
6397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6398$as_echo_n "checking dependency style of $depcc... " >&6; }
6399if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6400 $as_echo_n "(cached) " >&6
6401else
6402 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6403 # We make a subdir and do the tests there. Otherwise we can end up
6404 # making bogus files that we don't know about and never remove. For
6405 # instance it was reported that on HP-UX the gcc test will end up
6406 # making a dummy file named `D' -- because `-MD' means `put the output
6407 # in D'.
6408 mkdir conftest.dir
6409 # Copy depcomp to subdir because otherwise we won't find it if we're
6410 # using a relative directory.
6411 cp "$am_depcomp" conftest.dir
6412 cd conftest.dir
6413 # We will build objects and dependencies in a subdirectory because
6414 # it helps to detect inapplicable dependency modes. For instance
6415 # both Tru64's cc and ICC support -MD to output dependencies as a
6416 # side effect of compilation, but ICC will put the dependencies in
6417 # the current directory while Tru64 will put them in the object
6418 # directory.
6419 mkdir sub
6420
6421 am_cv_CXX_dependencies_compiler_type=none
6422 if test "$am_compiler_list" = ""; then
6423 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6424 fi
6425 am__universal=false
6426 case " $depcc " in #(
6427 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6428 esac
6429
6430 for depmode in $am_compiler_list; do
6431 # Setup a source with many dependencies, because some compilers
6432 # like to wrap large dependency lists on column 80 (with \), and
6433 # we should not choose a depcomp mode which is confused by this.
6434 #
6435 # We need to recreate these files for each test, as the compiler may
6436 # overwrite some of them when testing with obscure command lines.
6437 # This happens at least with the AIX C compiler.
6438 : > sub/conftest.c
6439 for i in 1 2 3 4 5 6; do
6440 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6441 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6442 # Solaris 8's {/usr,}/bin/sh.
6443 touch sub/conftst$i.h
6444 done
6445 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6446
6447 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6448 # mode. It turns out that the SunPro C++ compiler does not properly
6449 # handle `-M -o', and we need to detect this. Also, some Intel
6450 # versions had trouble with output in subdirs
6451 am__obj=sub/conftest.${OBJEXT-o}
6452 am__minus_obj="-o $am__obj"
6453 case $depmode in
6454 gcc)
6455 # This depmode causes a compiler race in universal mode.
6456 test "$am__universal" = false || continue
6457 ;;
6458 nosideeffect)
6459 # after this tag, mechanisms are not by side-effect, so they'll
6460 # only be used when explicitly requested
6461 if test "x$enable_dependency_tracking" = xyes; then
6462 continue
6463 else
6464 break
6465 fi
6466 ;;
6467 msvisualcpp | msvcmsys)
6468 # This compiler won't grok `-c -o', but also, the minuso test has
6469 # not run yet. These depmodes are late enough in the game, and
6470 # so weak that their functioning should not be impacted.
6471 am__obj=conftest.${OBJEXT-o}
6472 am__minus_obj=
6473 ;;
6474 none) break ;;
6475 esac
6476 if depmode=$depmode \
6477 source=sub/conftest.c object=$am__obj \
6478 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6479 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6480 >/dev/null 2>conftest.err &&
6481 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6482 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6483 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6484 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6485 # icc doesn't choke on unknown options, it will just issue warnings
6486 # or remarks (even with -Werror). So we grep stderr for any message
6487 # that says an option was ignored or not supported.
6488 # When given -MP, icc 7.0 and 7.1 complain thusly:
6489 # icc: Command line warning: ignoring option '-M'; no argument required
6490 # The diagnosis changed in icc 8.0:
6491 # icc: Command line remark: option '-MP' not supported
6492 if (grep 'ignoring option' conftest.err ||
6493 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6494 am_cv_CXX_dependencies_compiler_type=$depmode
6495 break
6496 fi
6497 fi
6498 done
6499
6500 cd ..
6501 rm -rf conftest.dir
6502else
6503 am_cv_CXX_dependencies_compiler_type=none
6504fi
6505
6506fi
6507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6508$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6509CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6510
6511 if
6512 test "x$enable_dependency_tracking" != xno \
6513 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6514 am__fastdepCXX_TRUE=
6515 am__fastdepCXX_FALSE='#'
6516else
6517 am__fastdepCXX_TRUE='#'
6518 am__fastdepCXX_FALSE=
6519fi
6520
6521
cristy8b350f62009-11-15 23:12:43 +00006522 case $ac_cv_prog_cc_stdc in #(
6523 no) :
6524 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6525 *) :
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006527$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006528if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006529 $as_echo_n "(cached) " >&6
6530else
6531 ac_cv_prog_cc_c99=no
6532ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006534/* end confdefs.h. */
6535#include <stdarg.h>
6536#include <stdbool.h>
6537#include <stdlib.h>
6538#include <wchar.h>
6539#include <stdio.h>
6540
6541// Check varargs macros. These examples are taken from C99 6.10.3.5.
6542#define debug(...) fprintf (stderr, __VA_ARGS__)
6543#define showlist(...) puts (#__VA_ARGS__)
6544#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6545static void
6546test_varargs_macros (void)
6547{
6548 int x = 1234;
6549 int y = 5678;
6550 debug ("Flag");
6551 debug ("X = %d\n", x);
6552 showlist (The first, second, and third items.);
6553 report (x>y, "x is %d but y is %d", x, y);
6554}
6555
6556// Check long long types.
6557#define BIG64 18446744073709551615ull
6558#define BIG32 4294967295ul
6559#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6560#if !BIG_OK
6561 your preprocessor is broken;
6562#endif
6563#if BIG_OK
6564#else
6565 your preprocessor is broken;
6566#endif
6567static long long int bignum = -9223372036854775807LL;
6568static unsigned long long int ubignum = BIG64;
6569
6570struct incomplete_array
6571{
6572 int datasize;
6573 double data[];
6574};
6575
6576struct named_init {
6577 int number;
6578 const wchar_t *name;
6579 double average;
6580};
6581
6582typedef const char *ccp;
6583
6584static inline int
6585test_restrict (ccp restrict text)
6586{
6587 // See if C++-style comments work.
6588 // Iterate through items via the restricted pointer.
6589 // Also check for declarations in for loops.
6590 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6591 continue;
6592 return 0;
6593}
6594
6595// Check varargs and va_copy.
6596static void
6597test_varargs (const char *format, ...)
6598{
6599 va_list args;
6600 va_start (args, format);
6601 va_list args_copy;
6602 va_copy (args_copy, args);
6603
6604 const char *str;
6605 int number;
6606 float fnumber;
6607
6608 while (*format)
6609 {
6610 switch (*format++)
6611 {
6612 case 's': // string
6613 str = va_arg (args_copy, const char *);
6614 break;
6615 case 'd': // int
6616 number = va_arg (args_copy, int);
6617 break;
6618 case 'f': // float
6619 fnumber = va_arg (args_copy, double);
6620 break;
6621 default:
6622 break;
6623 }
6624 }
6625 va_end (args_copy);
6626 va_end (args);
6627}
6628
6629int
6630main ()
6631{
6632
6633 // Check bool.
6634 _Bool success = false;
6635
6636 // Check restrict.
6637 if (test_restrict ("String literal") == 0)
6638 success = true;
6639 char *restrict newvar = "Another string";
6640
6641 // Check varargs.
6642 test_varargs ("s, d' f .", "string", 65, 34.234);
6643 test_varargs_macros ();
6644
6645 // Check flexible array members.
6646 struct incomplete_array *ia =
6647 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6648 ia->datasize = 10;
6649 for (int i = 0; i < ia->datasize; ++i)
6650 ia->data[i] = i * 1.234;
6651
6652 // Check named initializers.
6653 struct named_init ni = {
6654 .number = 34,
6655 .name = L"Test wide string",
6656 .average = 543.34343,
6657 };
6658
6659 ni.number = 58;
6660
6661 int dynamic_array[ni.number];
6662 dynamic_array[ni.number - 1] = 543;
6663
6664 // work around unused variable warnings
6665 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6666 || dynamic_array[ni.number - 1] != 543);
6667
6668 ;
6669 return 0;
6670}
6671_ACEOF
6672for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6673do
6674 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006675 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006676 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006677fi
cristy3ed852e2009-09-05 21:47:34 +00006678rm -f core conftest.err conftest.$ac_objext
6679 test "x$ac_cv_prog_cc_c99" != "xno" && break
6680done
6681rm -f conftest.$ac_ext
6682CC=$ac_save_CC
6683
6684fi
6685# AC_CACHE_VAL
6686case "x$ac_cv_prog_cc_c99" in
6687 x)
cristy8b350f62009-11-15 23:12:43 +00006688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006689$as_echo "none needed" >&6; } ;;
6690 xno)
cristy8b350f62009-11-15 23:12:43 +00006691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006692$as_echo "unsupported" >&6; } ;;
6693 *)
6694 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006696$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6697esac
cristy8b350f62009-11-15 23:12:43 +00006698if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006699 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6700else
cristy8b350f62009-11-15 23:12:43 +00006701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006702$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006703if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006704 $as_echo_n "(cached) " >&6
6705else
6706 ac_cv_prog_cc_c89=no
6707ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006709/* end confdefs.h. */
6710#include <stdarg.h>
6711#include <stdio.h>
6712#include <sys/types.h>
6713#include <sys/stat.h>
6714/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6715struct buf { int x; };
6716FILE * (*rcsopen) (struct buf *, struct stat *, int);
6717static char *e (p, i)
6718 char **p;
6719 int i;
6720{
6721 return p[i];
6722}
6723static char *f (char * (*g) (char **, int), char **p, ...)
6724{
6725 char *s;
6726 va_list v;
6727 va_start (v,p);
6728 s = g (p, va_arg (v,int));
6729 va_end (v);
6730 return s;
6731}
6732
6733/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6734 function prototypes and stuff, but not '\xHH' hex character constants.
6735 These don't provoke an error unfortunately, instead are silently treated
6736 as 'x'. The following induces an error, until -std is added to get
6737 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6738 array size at least. It's necessary to write '\x00'==0 to get something
6739 that's true only with -std. */
6740int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6741
6742/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6743 inside strings and character constants. */
6744#define FOO(x) 'x'
6745int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6746
6747int test (int i, double x);
6748struct s1 {int (*f) (int a);};
6749struct s2 {int (*f) (double a);};
6750int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6751int argc;
6752char **argv;
6753int
6754main ()
6755{
6756return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6757 ;
6758 return 0;
6759}
6760_ACEOF
6761for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6762 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6763do
6764 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006765 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006766 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006767fi
cristy3ed852e2009-09-05 21:47:34 +00006768rm -f core conftest.err conftest.$ac_objext
6769 test "x$ac_cv_prog_cc_c89" != "xno" && break
6770done
6771rm -f conftest.$ac_ext
6772CC=$ac_save_CC
6773
6774fi
6775# AC_CACHE_VAL
6776case "x$ac_cv_prog_cc_c89" in
6777 x)
cristy8b350f62009-11-15 23:12:43 +00006778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006779$as_echo "none needed" >&6; } ;;
6780 xno)
cristy8b350f62009-11-15 23:12:43 +00006781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006782$as_echo "unsupported" >&6; } ;;
6783 *)
6784 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006786$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6787esac
cristy8b350f62009-11-15 23:12:43 +00006788if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006789 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6790else
6791 ac_cv_prog_cc_stdc=no
6792fi
6793
cristy3ed852e2009-09-05 21:47:34 +00006794fi
cristy3ed852e2009-09-05 21:47:34 +00006795 ;;
6796esac
cristy8b350f62009-11-15 23:12:43 +00006797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006798$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006799 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006800 $as_echo_n "(cached) " >&6
6801fi
6802
cristy8b350f62009-11-15 23:12:43 +00006803 case $ac_cv_prog_cc_stdc in #(
6804 no) :
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6806$as_echo "unsupported" >&6; } ;; #(
6807 '') :
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6809$as_echo "none needed" >&6; } ;; #(
6810 *) :
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006812$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6813esac
6814
cristy3ed852e2009-09-05 21:47:34 +00006815ac_ext=c
6816ac_cpp='$CPP $CPPFLAGS'
6817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6819ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006821$as_echo_n "checking how to run the C preprocessor... " >&6; }
6822# On Suns, sometimes $CPP names a directory.
6823if test -n "$CPP" && test -d "$CPP"; then
6824 CPP=
6825fi
6826if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00006827 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006828 $as_echo_n "(cached) " >&6
6829else
6830 # Double quotes because CPP needs to be expanded
6831 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6832 do
6833 ac_preproc_ok=false
6834for ac_c_preproc_warn_flag in '' yes
6835do
6836 # Use a header file that comes with gcc, so configuring glibc
6837 # with a fresh cross-compiler works.
6838 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6839 # <limits.h> exists even on freestanding compilers.
6840 # On the NeXT, cc -E runs the code through the compiler's parser,
6841 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006843/* end confdefs.h. */
6844#ifdef __STDC__
6845# include <limits.h>
6846#else
6847# include <assert.h>
6848#endif
6849 Syntax error
6850_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006851if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006852
cristy8b350f62009-11-15 23:12:43 +00006853else
cristy3ed852e2009-09-05 21:47:34 +00006854 # Broken: fails on valid input.
6855continue
6856fi
cristy3ed852e2009-09-05 21:47:34 +00006857rm -f conftest.err conftest.$ac_ext
6858
6859 # OK, works on sane cases. Now check whether nonexistent headers
6860 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006862/* end confdefs.h. */
6863#include <ac_nonexistent.h>
6864_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006865if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006866 # Broken: success on invalid input.
6867continue
6868else
cristy3ed852e2009-09-05 21:47:34 +00006869 # Passes both tests.
6870ac_preproc_ok=:
6871break
6872fi
cristy3ed852e2009-09-05 21:47:34 +00006873rm -f conftest.err conftest.$ac_ext
6874
6875done
6876# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6877rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006878if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00006879 break
6880fi
6881
6882 done
6883 ac_cv_prog_CPP=$CPP
6884
6885fi
6886 CPP=$ac_cv_prog_CPP
6887else
6888 ac_cv_prog_CPP=$CPP
6889fi
cristy8b350f62009-11-15 23:12:43 +00006890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006891$as_echo "$CPP" >&6; }
6892ac_preproc_ok=false
6893for ac_c_preproc_warn_flag in '' yes
6894do
6895 # Use a header file that comes with gcc, so configuring glibc
6896 # with a fresh cross-compiler works.
6897 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6898 # <limits.h> exists even on freestanding compilers.
6899 # On the NeXT, cc -E runs the code through the compiler's parser,
6900 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006902/* end confdefs.h. */
6903#ifdef __STDC__
6904# include <limits.h>
6905#else
6906# include <assert.h>
6907#endif
6908 Syntax error
6909_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006910if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006911
cristy8b350f62009-11-15 23:12:43 +00006912else
cristy3ed852e2009-09-05 21:47:34 +00006913 # Broken: fails on valid input.
6914continue
6915fi
cristy3ed852e2009-09-05 21:47:34 +00006916rm -f conftest.err conftest.$ac_ext
6917
6918 # OK, works on sane cases. Now check whether nonexistent headers
6919 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006921/* end confdefs.h. */
6922#include <ac_nonexistent.h>
6923_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006924if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006925 # Broken: success on invalid input.
6926continue
6927else
cristy3ed852e2009-09-05 21:47:34 +00006928 # Passes both tests.
6929ac_preproc_ok=:
6930break
6931fi
cristy3ed852e2009-09-05 21:47:34 +00006932rm -f conftest.err conftest.$ac_ext
6933
6934done
6935# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6936rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006937if $ac_preproc_ok; then :
6938
cristy3ed852e2009-09-05 21:47:34 +00006939else
cristy8b350f62009-11-15 23:12:43 +00006940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00006941$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006942as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6943See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00006944fi
6945
6946ac_ext=c
6947ac_cpp='$CPP $CPPFLAGS'
6948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6950ac_compiler_gnu=$ac_cv_c_compiler_gnu
6951
cristy73bd4a52010-10-05 11:24:23 +00006952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6953$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6954if test "${ac_cv_path_SED+set}" = set; then :
6955 $as_echo_n "(cached) " >&6
6956else
6957 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6958 for ac_i in 1 2 3 4 5 6 7; do
6959 ac_script="$ac_script$as_nl$ac_script"
6960 done
6961 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6962 { ac_script=; unset ac_script;}
6963 if test -z "$SED"; then
6964 ac_path_SED_found=false
6965 # Loop through the user's path and test for each of PROGNAME-LIST
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967for as_dir in $PATH
6968do
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for ac_prog in sed gsed; do
6972 for ac_exec_ext in '' $ac_executable_extensions; do
6973 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6974 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6975# Check for GNU ac_path_SED and select it if it is found.
6976 # Check for GNU $ac_path_SED
6977case `"$ac_path_SED" --version 2>&1` in
6978*GNU*)
6979 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6980*)
6981 ac_count=0
6982 $as_echo_n 0123456789 >"conftest.in"
6983 while :
6984 do
6985 cat "conftest.in" "conftest.in" >"conftest.tmp"
6986 mv "conftest.tmp" "conftest.in"
6987 cp "conftest.in" "conftest.nl"
6988 $as_echo '' >> "conftest.nl"
6989 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6990 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6991 as_fn_arith $ac_count + 1 && ac_count=$as_val
6992 if test $ac_count -gt ${ac_path_SED_max-0}; then
6993 # Best one so far, save it but keep looking for a better one
6994 ac_cv_path_SED="$ac_path_SED"
6995 ac_path_SED_max=$ac_count
6996 fi
6997 # 10*(2^10) chars as input seems more than enough
6998 test $ac_count -gt 10 && break
6999 done
7000 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7001esac
7002
7003 $ac_path_SED_found && break 3
7004 done
7005 done
7006 done
7007IFS=$as_save_IFS
7008 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007009 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007010 fi
7011else
7012 ac_cv_path_SED=$SED
7013fi
7014
7015fi
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7017$as_echo "$ac_cv_path_SED" >&6; }
7018 SED="$ac_cv_path_SED"
7019 rm -f conftest.sed
7020
7021test -z "$SED" && SED=sed
7022Xsed="$SED -e 1s/^X//"
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7035$as_echo_n "checking for fgrep... " >&6; }
7036if test "${ac_cv_path_FGREP+set}" = set; then :
7037 $as_echo_n "(cached) " >&6
7038else
7039 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7040 then ac_cv_path_FGREP="$GREP -F"
7041 else
7042 if test -z "$FGREP"; then
7043 ac_path_FGREP_found=false
7044 # Loop through the user's path and test for each of PROGNAME-LIST
7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7047do
7048 IFS=$as_save_IFS
7049 test -z "$as_dir" && as_dir=.
7050 for ac_prog in fgrep; do
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7053 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7054# Check for GNU ac_path_FGREP and select it if it is found.
7055 # Check for GNU $ac_path_FGREP
7056case `"$ac_path_FGREP" --version 2>&1` in
7057*GNU*)
7058 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7059*)
7060 ac_count=0
7061 $as_echo_n 0123456789 >"conftest.in"
7062 while :
7063 do
7064 cat "conftest.in" "conftest.in" >"conftest.tmp"
7065 mv "conftest.tmp" "conftest.in"
7066 cp "conftest.in" "conftest.nl"
7067 $as_echo 'FGREP' >> "conftest.nl"
7068 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7069 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7070 as_fn_arith $ac_count + 1 && ac_count=$as_val
7071 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7072 # Best one so far, save it but keep looking for a better one
7073 ac_cv_path_FGREP="$ac_path_FGREP"
7074 ac_path_FGREP_max=$ac_count
7075 fi
7076 # 10*(2^10) chars as input seems more than enough
7077 test $ac_count -gt 10 && break
7078 done
7079 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7080esac
7081
7082 $ac_path_FGREP_found && break 3
7083 done
7084 done
7085 done
7086IFS=$as_save_IFS
7087 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007088 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007089 fi
7090else
7091 ac_cv_path_FGREP=$FGREP
7092fi
7093
7094 fi
7095fi
7096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7097$as_echo "$ac_cv_path_FGREP" >&6; }
7098 FGREP="$ac_cv_path_FGREP"
7099
7100
7101test -z "$GREP" && GREP=grep
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
cristy0c60a692010-11-04 01:09:47 +00007119ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7120ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7121ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7122
7123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7124$as_echo_n "checking how to print strings... " >&6; }
7125# Test print first, because it will be a builtin if present.
7126if test "X`print -r -- -n 2>/dev/null`" = X-n && \
7127 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7128 ECHO='print -r --'
7129elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7130 ECHO='printf %s\n'
7131else
7132 # Use this function as a fallback that always works.
7133 func_fallback_echo ()
7134 {
7135 eval 'cat <<_LTECHO_EOF
7136$1
7137_LTECHO_EOF'
7138 }
7139 ECHO='func_fallback_echo'
7140fi
7141
7142# func_echo_all arg...
7143# Invoke $ECHO with all args, space-separated.
7144func_echo_all ()
7145{
7146 $ECHO ""
7147}
7148
7149case "$ECHO" in
7150 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7151$as_echo "printf" >&6; } ;;
7152 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7153$as_echo "print -r" >&6; } ;;
7154 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7155$as_echo "cat" >&6; } ;;
7156esac
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
cristy73bd4a52010-10-05 11:24:23 +00007171
7172
7173# Check whether --with-gnu-ld was given.
7174if test "${with_gnu_ld+set}" = set; then :
7175 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7176else
7177 with_gnu_ld=no
7178fi
7179
7180ac_prog=ld
7181if test "$GCC" = yes; then
7182 # Check if gcc -print-prog-name=ld gives a path.
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7184$as_echo_n "checking for ld used by $CC... " >&6; }
7185 case $host in
7186 *-*-mingw*)
7187 # gcc leaves a trailing carriage return which upsets mingw
7188 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7189 *)
7190 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7191 esac
7192 case $ac_prog in
7193 # Accept absolute paths.
7194 [\\/]* | ?:[\\/]*)
7195 re_direlt='/[^/][^/]*/\.\./'
7196 # Canonicalize the pathname of ld
7197 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7198 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7199 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7200 done
7201 test -z "$LD" && LD="$ac_prog"
7202 ;;
7203 "")
7204 # If it fails, then pretend we aren't using GCC.
7205 ac_prog=ld
7206 ;;
7207 *)
7208 # If it is relative, then search for the first ld in PATH.
7209 with_gnu_ld=unknown
7210 ;;
7211 esac
7212elif test "$with_gnu_ld" = yes; then
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7214$as_echo_n "checking for GNU ld... " >&6; }
7215else
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7217$as_echo_n "checking for non-GNU ld... " >&6; }
7218fi
7219if test "${lt_cv_path_LD+set}" = set; then :
7220 $as_echo_n "(cached) " >&6
7221else
7222 if test -z "$LD"; then
7223 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7224 for ac_dir in $PATH; do
7225 IFS="$lt_save_ifs"
7226 test -z "$ac_dir" && ac_dir=.
7227 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7228 lt_cv_path_LD="$ac_dir/$ac_prog"
7229 # Check to see if the program is GNU ld. I'd rather use --version,
7230 # but apparently some variants of GNU ld only accept -v.
7231 # Break only if it was the GNU/non-GNU ld that we prefer.
7232 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7233 *GNU* | *'with BFD'*)
7234 test "$with_gnu_ld" != no && break
7235 ;;
7236 *)
7237 test "$with_gnu_ld" != yes && break
7238 ;;
7239 esac
7240 fi
7241 done
7242 IFS="$lt_save_ifs"
7243else
7244 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7245fi
7246fi
7247
7248LD="$lt_cv_path_LD"
7249if test -n "$LD"; then
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7251$as_echo "$LD" >&6; }
7252else
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254$as_echo "no" >&6; }
7255fi
cristy98dddb52010-11-04 00:30:15 +00007256test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7258$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7259if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7260 $as_echo_n "(cached) " >&6
7261else
7262 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7263case `$LD -v 2>&1 </dev/null` in
7264*GNU* | *'with BFD'*)
7265 lt_cv_prog_gnu_ld=yes
7266 ;;
7267*)
7268 lt_cv_prog_gnu_ld=no
7269 ;;
7270esac
7271fi
7272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7273$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7274with_gnu_ld=$lt_cv_prog_gnu_ld
7275
7276
7277
7278
7279
7280
7281
7282
7283
cristy3ed852e2009-09-05 21:47:34 +00007284
cristy837d6dc2010-02-27 01:16:57 +00007285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7286$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7287if test "${ac_cv_prog_cc_c99+set}" = set; then :
7288 $as_echo_n "(cached) " >&6
7289else
7290 ac_cv_prog_cc_c99=no
7291ac_save_CC=$CC
7292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293/* end confdefs.h. */
7294#include <stdarg.h>
7295#include <stdbool.h>
7296#include <stdlib.h>
7297#include <wchar.h>
7298#include <stdio.h>
7299
7300// Check varargs macros. These examples are taken from C99 6.10.3.5.
7301#define debug(...) fprintf (stderr, __VA_ARGS__)
7302#define showlist(...) puts (#__VA_ARGS__)
7303#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7304static void
7305test_varargs_macros (void)
7306{
7307 int x = 1234;
7308 int y = 5678;
7309 debug ("Flag");
7310 debug ("X = %d\n", x);
7311 showlist (The first, second, and third items.);
7312 report (x>y, "x is %d but y is %d", x, y);
7313}
7314
7315// Check long long types.
7316#define BIG64 18446744073709551615ull
7317#define BIG32 4294967295ul
7318#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7319#if !BIG_OK
7320 your preprocessor is broken;
7321#endif
7322#if BIG_OK
7323#else
7324 your preprocessor is broken;
7325#endif
7326static long long int bignum = -9223372036854775807LL;
7327static unsigned long long int ubignum = BIG64;
7328
7329struct incomplete_array
7330{
7331 int datasize;
7332 double data[];
7333};
7334
7335struct named_init {
7336 int number;
7337 const wchar_t *name;
7338 double average;
7339};
7340
7341typedef const char *ccp;
7342
7343static inline int
7344test_restrict (ccp restrict text)
7345{
7346 // See if C++-style comments work.
7347 // Iterate through items via the restricted pointer.
7348 // Also check for declarations in for loops.
7349 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7350 continue;
7351 return 0;
7352}
7353
7354// Check varargs and va_copy.
7355static void
7356test_varargs (const char *format, ...)
7357{
7358 va_list args;
7359 va_start (args, format);
7360 va_list args_copy;
7361 va_copy (args_copy, args);
7362
7363 const char *str;
7364 int number;
7365 float fnumber;
7366
7367 while (*format)
7368 {
7369 switch (*format++)
7370 {
7371 case 's': // string
7372 str = va_arg (args_copy, const char *);
7373 break;
7374 case 'd': // int
7375 number = va_arg (args_copy, int);
7376 break;
7377 case 'f': // float
7378 fnumber = va_arg (args_copy, double);
7379 break;
7380 default:
7381 break;
7382 }
7383 }
7384 va_end (args_copy);
7385 va_end (args);
7386}
7387
7388int
7389main ()
7390{
7391
7392 // Check bool.
7393 _Bool success = false;
7394
7395 // Check restrict.
7396 if (test_restrict ("String literal") == 0)
7397 success = true;
7398 char *restrict newvar = "Another string";
7399
7400 // Check varargs.
7401 test_varargs ("s, d' f .", "string", 65, 34.234);
7402 test_varargs_macros ();
7403
7404 // Check flexible array members.
7405 struct incomplete_array *ia =
7406 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7407 ia->datasize = 10;
7408 for (int i = 0; i < ia->datasize; ++i)
7409 ia->data[i] = i * 1.234;
7410
7411 // Check named initializers.
7412 struct named_init ni = {
7413 .number = 34,
7414 .name = L"Test wide string",
7415 .average = 543.34343,
7416 };
7417
7418 ni.number = 58;
7419
7420 int dynamic_array[ni.number];
7421 dynamic_array[ni.number - 1] = 543;
7422
7423 // work around unused variable warnings
7424 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7425 || dynamic_array[ni.number - 1] != 543);
7426
7427 ;
7428 return 0;
7429}
7430_ACEOF
7431for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7432do
7433 CC="$ac_save_CC $ac_arg"
7434 if ac_fn_c_try_compile "$LINENO"; then :
7435 ac_cv_prog_cc_c99=$ac_arg
7436fi
7437rm -f core conftest.err conftest.$ac_objext
7438 test "x$ac_cv_prog_cc_c99" != "xno" && break
7439done
7440rm -f conftest.$ac_ext
7441CC=$ac_save_CC
7442
7443fi
7444# AC_CACHE_VAL
7445case "x$ac_cv_prog_cc_c99" in
7446 x)
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7448$as_echo "none needed" >&6; } ;;
7449 xno)
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7451$as_echo "unsupported" >&6; } ;;
7452 *)
7453 CC="$CC $ac_cv_prog_cc_c99"
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7455$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7456esac
7457if test "x$ac_cv_prog_cc_c99" != xno; then :
7458
7459fi
7460
7461
cristy73bd4a52010-10-05 11:24:23 +00007462if test "x$CC" != xcc; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7464$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7465else
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7467$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7468fi
7469set dummy $CC; ac_cc=`$as_echo "$2" |
7470 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy98dddb52010-11-04 00:30:15 +00007471if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007472 $as_echo_n "(cached) " >&6
7473else
cristy73bd4a52010-10-05 11:24:23 +00007474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475/* end confdefs.h. */
7476
7477int
7478main ()
7479{
7480
7481 ;
7482 return 0;
7483}
7484_ACEOF
7485# Make sure it works both with $CC and with simple cc.
7486# We do the test twice because some compilers refuse to overwrite an
7487# existing .o file with -o, though they will create one.
7488ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7489rm -f conftest2.*
7490if { { case "(($ac_try" in
7491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7492 *) ac_try_echo=$ac_try;;
7493esac
7494eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7495$as_echo "$ac_try_echo"; } >&5
7496 (eval "$ac_try") 2>&5
7497 ac_status=$?
7498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7499 test $ac_status = 0; } &&
7500 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7502 *) ac_try_echo=$ac_try;;
7503esac
7504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7505$as_echo "$ac_try_echo"; } >&5
7506 (eval "$ac_try") 2>&5
7507 ac_status=$?
7508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7509 test $ac_status = 0; };
7510then
7511 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7512 if test "x$CC" != xcc; then
7513 # Test first that cc exists at all.
7514 if { ac_try='cc -c conftest.$ac_ext >&5'
7515 { { case "(($ac_try" in
7516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7517 *) ac_try_echo=$ac_try;;
7518esac
7519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7520$as_echo "$ac_try_echo"; } >&5
7521 (eval "$ac_try") 2>&5
7522 ac_status=$?
7523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7524 test $ac_status = 0; }; }; then
7525 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7526 rm -f conftest2.*
7527 if { { case "(($ac_try" in
7528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7529 *) ac_try_echo=$ac_try;;
7530esac
7531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7532$as_echo "$ac_try_echo"; } >&5
7533 (eval "$ac_try") 2>&5
7534 ac_status=$?
7535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7536 test $ac_status = 0; } &&
7537 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7539 *) ac_try_echo=$ac_try;;
7540esac
7541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7542$as_echo "$ac_try_echo"; } >&5
7543 (eval "$ac_try") 2>&5
7544 ac_status=$?
7545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7546 test $ac_status = 0; };
7547 then
7548 # cc works too.
7549 :
7550 else
7551 # cc exists but doesn't like -o.
7552 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7553 fi
7554 fi
7555 fi
7556else
7557 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7558fi
7559rm -f core conftest*
7560
7561fi
7562if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7564$as_echo "yes" >&6; }
7565else
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567$as_echo "no" >&6; }
7568
7569$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7570
7571fi
7572
7573# FIXME: we rely on the cache variable name because
7574# there is no other way.
7575set dummy $CC
7576am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7577eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7578if test "$am_t" != yes; then
7579 # Losing compiler, so override with the script.
7580 # FIXME: It is wrong to rewrite CC.
7581 # But if we don't then we get into trouble of one sort or another.
7582 # A longer-term fix would be to have automake use am__CC in this case,
7583 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7584 CC="$am_aux_dir/compile $CC"
7585fi
7586
7587
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7589$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7590if test "${ac_cv_cflags_warn_all+set}" = set; then :
7591 $as_echo_n "(cached) " >&6
7592else
7593 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007594 ac_ext=c
7595ac_cpp='$CPP $CPPFLAGS'
7596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7598ac_compiler_gnu=$ac_cv_c_compiler_gnu
7599
7600 ac_save_CFLAGS="$CFLAGS"
7601for 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" #
7602do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604/* end confdefs.h. */
7605
7606int
7607main ()
7608{
cristy24fc1fe2010-10-23 21:13:01 +00007609
cristy73bd4a52010-10-05 11:24:23 +00007610 ;
7611 return 0;
7612}
7613_ACEOF
7614if ac_fn_c_try_compile "$LINENO"; then :
7615 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7616fi
7617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7618done
7619 CFLAGS="$ac_save_CFLAGS"
7620 ac_ext=c
7621ac_cpp='$CPP $CPPFLAGS'
7622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7624ac_compiler_gnu=$ac_cv_c_compiler_gnu
7625
7626
7627fi
7628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7629$as_echo "$ac_cv_cflags_warn_all" >&6; }
7630case ".$ac_cv_cflags_warn_all" in
7631 .ok|.ok,*) ;;
7632 .|.no|.no,*)
7633 ;;
7634 *)
7635 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7636 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7637 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7638 ac_status=$?
7639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7640 test $ac_status = 0; }
7641 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7642 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7643 ac_status=$?
7644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7645 test $ac_status = 0; }
7646 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7647 fi
7648 ;;
nicolas6237c462010-10-05 06:11:49 +00007649esac
cristy3ed852e2009-09-05 21:47:34 +00007650
cristya0b81c32010-01-22 02:54:33 +00007651
7652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7653$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7654set x ${MAKE-make}
7655ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy98dddb52010-11-04 00:30:15 +00007656if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
cristya0b81c32010-01-22 02:54:33 +00007657 $as_echo_n "(cached) " >&6
7658else
7659 cat >conftest.make <<\_ACEOF
7660SHELL = /bin/sh
7661all:
7662 @echo '@@@%%%=$(MAKE)=@@@%%%'
7663_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007664# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007665case `${MAKE-make} -f conftest.make 2>/dev/null` in
7666 *@@@%%%=?*=@@@%%%*)
7667 eval ac_cv_prog_make_${ac_make}_set=yes;;
7668 *)
7669 eval ac_cv_prog_make_${ac_make}_set=no;;
7670esac
7671rm -f conftest.make
7672fi
7673if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7675$as_echo "yes" >&6; }
7676 SET_MAKE=
7677else
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679$as_echo "no" >&6; }
7680 SET_MAKE="MAKE=${MAKE-make}"
7681fi
7682
cristy8b350f62009-11-15 23:12:43 +00007683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007684$as_echo_n "checking whether ln -s works... " >&6; }
7685LN_S=$as_ln_s
7686if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007688$as_echo "yes" >&6; }
7689else
cristy8b350f62009-11-15 23:12:43 +00007690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007691$as_echo "no, using $LN_S" >&6; }
7692fi
7693
cristy73bd4a52010-10-05 11:24:23 +00007694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7695$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7696
7697# Check whether --with-dmalloc was given.
7698if test "${with_dmalloc+set}" = set; then :
7699 withval=$with_dmalloc; if test "$withval" = yes; then
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7701$as_echo "yes" >&6; }
7702
7703$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7704
7705 LIBS="$LIBS -ldmalloc"
7706 LDFLAGS="$LDFLAGS -g"
7707else
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709$as_echo "no" >&6; }
7710fi
7711else
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713$as_echo "no" >&6; }
7714fi
7715
7716
7717
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7719$as_echo_n "checking for __attribute__... " >&6; }
7720if test "${ax_cv___attribute__+set}" = set; then :
7721 $as_echo_n "(cached) " >&6
7722else
7723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724/* end confdefs.h. */
7725#include <stdlib.h>
7726 static void foo(void) __attribute__ ((unused));
7727 static void
7728 foo(void) {
7729 exit(1);
7730 }
7731
7732int
7733main ()
7734{
7735
7736 ;
7737 return 0;
7738}
7739_ACEOF
7740if ac_fn_c_try_compile "$LINENO"; then :
7741 ax_cv___attribute__=yes
7742else
7743 ax_cv___attribute__=no
7744
7745fi
7746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7747
7748fi
7749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7750$as_echo "$ax_cv___attribute__" >&6; }
7751 if test "$ax_cv___attribute__" = "yes"; then
7752
7753$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7754
7755 fi
7756
7757
7758
7759if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7760 if test -n "$ac_tool_prefix"; then
7761 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7762set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764$as_echo_n "checking for $ac_word... " >&6; }
7765if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7766 $as_echo_n "(cached) " >&6
7767else
7768 case $PKG_CONFIG in
7769 [\\/]* | ?:[\\/]*)
7770 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7771 ;;
7772 *)
7773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774for as_dir in $PATH
7775do
7776 IFS=$as_save_IFS
7777 test -z "$as_dir" && as_dir=.
7778 for ac_exec_ext in '' $ac_executable_extensions; do
7779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7780 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7782 break 2
7783 fi
7784done
7785 done
7786IFS=$as_save_IFS
7787
7788 ;;
7789esac
7790fi
7791PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7792if test -n "$PKG_CONFIG"; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7794$as_echo "$PKG_CONFIG" >&6; }
7795else
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797$as_echo "no" >&6; }
7798fi
7799
7800
7801fi
7802if test -z "$ac_cv_path_PKG_CONFIG"; then
7803 ac_pt_PKG_CONFIG=$PKG_CONFIG
7804 # Extract the first word of "pkg-config", so it can be a program name with args.
7805set dummy pkg-config; ac_word=$2
7806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807$as_echo_n "checking for $ac_word... " >&6; }
7808if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7809 $as_echo_n "(cached) " >&6
7810else
7811 case $ac_pt_PKG_CONFIG in
7812 [\\/]* | ?:[\\/]*)
7813 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7814 ;;
7815 *)
7816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817for as_dir in $PATH
7818do
7819 IFS=$as_save_IFS
7820 test -z "$as_dir" && as_dir=.
7821 for ac_exec_ext in '' $ac_executable_extensions; do
7822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7823 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7825 break 2
7826 fi
7827done
7828 done
7829IFS=$as_save_IFS
7830
7831 ;;
7832esac
7833fi
7834ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7835if test -n "$ac_pt_PKG_CONFIG"; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7837$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7838else
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840$as_echo "no" >&6; }
7841fi
7842
7843 if test "x$ac_pt_PKG_CONFIG" = x; then
7844 PKG_CONFIG=""
7845 else
7846 case $cross_compiling:$ac_tool_warned in
7847yes:)
7848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7850ac_tool_warned=yes ;;
7851esac
7852 PKG_CONFIG=$ac_pt_PKG_CONFIG
7853 fi
7854else
7855 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7856fi
7857
7858fi
7859if test -n "$PKG_CONFIG"; then
7860 _pkg_min_version=0.9.0
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7862$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7863 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7865$as_echo "yes" >&6; }
7866 else
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868$as_echo "no" >&6; }
7869 PKG_CONFIG=""
7870 fi
7871
7872fi
cristy3ed852e2009-09-05 21:47:34 +00007873
7874#
cristy3ed852e2009-09-05 21:47:34 +00007875# Enable run-time checking.
7876#
7877# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007878if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007879 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7880else
7881 enable_bounds_checking='no'
7882fi
7883
7884
7885if test "$enable_bounds_checking" = yes; then
7886
cristy8b350f62009-11-15 23:12:43 +00007887$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007888
7889fi
7890
7891#
7892# Tests for Windows
7893#
7894
7895
cristy73bd4a52010-10-05 11:24:23 +00007896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7897$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7898if test "${ax_cv_c_compiler_ms+set}" = set; then :
7899 $as_echo_n "(cached) " >&6
7900else
7901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902/* end confdefs.h. */
7903
7904int
7905main ()
7906{
7907#ifndef _MSC_VER
7908 choke me
7909#endif
7910
7911 ;
7912 return 0;
7913}
7914_ACEOF
7915if ac_fn_c_try_compile "$LINENO"; then :
7916 ax_compiler_ms=yes
7917else
7918 ax_compiler_ms=no
7919fi
7920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7921ax_cv_c_compiler_ms=$ax_compiler_ms
7922
7923fi
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7925$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00007926
7927GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007928native_win32_build='no'
7929cygwin_build='no'
7930case "${host_os}" in
7931 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007932 cygwin_build='yes'
7933 GDI32_LIBS='-lgdi32'
7934 ;;
7935 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007936 native_win32_build='yes'
7937 GDI32_LIBS='-lgdi32'
7938 ;;
7939esac
7940if test "${GDI32_LIBS}x" != 'x'; then
7941
cristy8b350f62009-11-15 23:12:43 +00007942$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007943
7944fi
7945
cristy73bd4a52010-10-05 11:24:23 +00007946 if test "${GDI32_LIBS}x" != 'x' ; then
7947 WINGDI32_DELEGATE_TRUE=
7948 WINGDI32_DELEGATE_FALSE='#'
7949else
7950 WINGDI32_DELEGATE_TRUE='#'
7951 WINGDI32_DELEGATE_FALSE=
7952fi
7953
7954 if test "${native_win32_build}" = 'yes' ; then
7955 WIN32_NATIVE_BUILD_TRUE=
7956 WIN32_NATIVE_BUILD_FALSE='#'
7957else
7958 WIN32_NATIVE_BUILD_TRUE='#'
7959 WIN32_NATIVE_BUILD_FALSE=
7960fi
7961
7962 if test "${cygwin_build}" = 'yes' ; then
7963 CYGWIN_BUILD_TRUE=
7964 CYGWIN_BUILD_FALSE='#'
7965else
7966 CYGWIN_BUILD_TRUE='#'
7967 CYGWIN_BUILD_FALSE=
7968fi
7969
7970 if test "x${CC}" = 'xcl.exe' ; then
7971 USING_CL_TRUE=
7972 USING_CL_FALSE='#'
7973else
7974 USING_CL_TRUE='#'
7975 USING_CL_FALSE=
7976fi
7977
cristy3ed852e2009-09-05 21:47:34 +00007978
7979WinPathScript="${srcdirfull}/winpath.sh"
7980
7981
7982#
7983# Compiler flags tweaks
7984#
7985if test "${GCC}" != "yes"; then
7986 case "${host}" in
7987 *-*-hpux* )
7988 # aCC: HP ANSI C++ B3910B A.03.34
7989 CFLAGS="${CFLAGS} -Wp,-H30000"
7990 if test -n "${CXXFLAGS}"; then
7991 CXXFLAGS='-AA'
7992 else
7993 CXXFLAGS="${CXXFLAGS} -AA"
7994 fi
7995 ;;
7996 *-dec-osf5.* )
7997 # Compaq alphaev68-dec-osf5.1 compiler
7998 if test -n "${CXXFLAGS}"; then
7999 CXXFLAGS='-std strict_ansi -noimplicit_include'
8000 else
8001 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8002 fi
8003 esac
8004fi
8005
8006# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008008$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008009if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008010 $as_echo_n "(cached) " >&6
8011else
8012
8013im_cv_ld_lazyload='none'
8014case "${host}" in
8015 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8016 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8017 im_cv_ld_lazyload='-Wl,-zlazyload'
8018 fi
8019 ;;
8020esac
8021
8022fi
cristy8b350f62009-11-15 23:12:43 +00008023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008024$as_echo "$im_cv_ld_lazyload" >&6; }
8025if test "${im_cv_ld_lazyload}" != 'none' ; then
8026 if test -z "${LDFLAGS}" ; then
8027 LDFLAGS="${im_cv_ld_lazyload}"
8028 else
8029 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8030 fi
8031fi
8032
8033case "$host" in
8034*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008035 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008036if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008037 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8038else
8039 build_osxuniversal=no
8040fi
8041
8042
8043 if test "${build_osxuniversal}" != no ; then
8044 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008045 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008046Please re-run configure with these options:
8047 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008048 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008049 fi
8050 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8051 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8052 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8053 fi
8054 ;;
8055esac
8056
8057# Enable support for threads
8058
8059# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008060if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008061 withval=$with_threads; with_threads=$withval
8062else
8063 with_threads='yes'
8064fi
8065
8066
8067have_threads=no
8068if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008069
8070
8071
8072ac_ext=c
8073ac_cpp='$CPP $CPPFLAGS'
8074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8076ac_compiler_gnu=$ac_cv_c_compiler_gnu
8077
8078ax_pthread_ok=no
8079
8080# We used to check for pthread.h first, but this fails if pthread.h
8081# requires special compiler flags (e.g. on True64 or Sequent).
8082# It gets checked for in the link test anyway.
8083
8084# First of all, check if the user has set any of the PTHREAD_LIBS,
8085# etcetera environment variables, and if threads linking works using
8086# them:
8087if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8088 save_CFLAGS="$CFLAGS"
8089 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8090 save_LIBS="$LIBS"
8091 LIBS="$PTHREAD_LIBS $LIBS"
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8093$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095/* end confdefs.h. */
8096
8097/* Override any GCC internal prototype to avoid an error.
8098 Use char because int might match the return type of a GCC
8099 builtin and then its argument prototype would still apply. */
8100#ifdef __cplusplus
8101extern "C"
8102#endif
8103char pthread_join ();
8104int
8105main ()
8106{
8107return pthread_join ();
8108 ;
8109 return 0;
8110}
8111_ACEOF
8112if ac_fn_c_try_link "$LINENO"; then :
8113 ax_pthread_ok=yes
8114fi
8115rm -f core conftest.err conftest.$ac_objext \
8116 conftest$ac_exeext conftest.$ac_ext
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8118$as_echo "$ax_pthread_ok" >&6; }
8119 if test x"$ax_pthread_ok" = xno; then
8120 PTHREAD_LIBS=""
8121 PTHREAD_CFLAGS=""
8122 fi
8123 LIBS="$save_LIBS"
8124 CFLAGS="$save_CFLAGS"
8125fi
8126
8127# We must check for the threads library under a number of different
8128# names; the ordering is very important because some systems
8129# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8130# libraries is broken (non-POSIX).
8131
8132# Create a list of thread flags to try. Items starting with a "-" are
8133# C compiler flags, and other items are library names, except for "none"
8134# which indicates that we try without any flags at all, and "pthread-config"
8135# which is a program returning the flags for the Pth emulation library.
8136
8137ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8138
8139# The ordering *is* (sometimes) important. Some notes on the
8140# individual items follow:
8141
8142# pthreads: AIX (must check this before -lpthread)
8143# none: in case threads are in libc; should be tried before -Kthread and
8144# other compiler flags to prevent continual compiler warnings
8145# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8146# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8147# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8148# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8149# -pthreads: Solaris/gcc
8150# -mthreads: Mingw32/gcc, Lynx/gcc
8151# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8152# doesn't hurt to check since this sometimes defines pthreads too;
8153# also defines -D_REENTRANT)
8154# ... -mt is also the pthreads flag for HP/aCC
8155# pthread: Linux, etcetera
8156# --thread-safe: KAI C++
8157# pthread-config: use pthread-config program (for GNU Pth library)
8158
8159case "${host_cpu}-${host_os}" in
8160 *solaris*)
8161
8162 # On Solaris (at least, for some versions), libc contains stubbed
8163 # (non-functional) versions of the pthreads routines, so link-based
8164 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8165 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8166 # a function called by this macro, so we could check for that, but
8167 # who knows whether they'll stub that too in a future libc.) So,
8168 # we'll just look for -pthreads and -lpthread first:
8169
8170 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8171 ;;
8172
8173 *-darwin*)
8174 ax_pthread_flags="-pthread $ax_pthread_flags"
8175 ;;
8176esac
8177
8178if test x"$ax_pthread_ok" = xno; then
8179for flag in $ax_pthread_flags; do
8180
8181 case $flag in
8182 none)
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8184$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8185 ;;
8186
8187 -*)
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8189$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8190 PTHREAD_CFLAGS="$flag"
8191 ;;
8192
8193 pthread-config)
8194 # Extract the first word of "pthread-config", so it can be a program name with args.
8195set dummy pthread-config; ac_word=$2
8196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8197$as_echo_n "checking for $ac_word... " >&6; }
8198if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8199 $as_echo_n "(cached) " >&6
8200else
8201 if test -n "$ax_pthread_config"; then
8202 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8203else
8204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205for as_dir in $PATH
8206do
8207 IFS=$as_save_IFS
8208 test -z "$as_dir" && as_dir=.
8209 for ac_exec_ext in '' $ac_executable_extensions; do
8210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8211 ac_cv_prog_ax_pthread_config="yes"
8212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8213 break 2
8214 fi
8215done
8216 done
8217IFS=$as_save_IFS
8218
8219 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8220fi
8221fi
8222ax_pthread_config=$ac_cv_prog_ax_pthread_config
8223if test -n "$ax_pthread_config"; then
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8225$as_echo "$ax_pthread_config" >&6; }
8226else
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228$as_echo "no" >&6; }
8229fi
8230
8231
8232 if test x"$ax_pthread_config" = xno; then continue; fi
8233 PTHREAD_CFLAGS="`pthread-config --cflags`"
8234 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8235 ;;
8236
8237 *)
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8239$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8240 PTHREAD_LIBS="-l$flag"
8241 ;;
8242 esac
8243
8244 save_LIBS="$LIBS"
8245 save_CFLAGS="$CFLAGS"
8246 LIBS="$PTHREAD_LIBS $LIBS"
8247 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8248
8249 # Check for various functions. We must include pthread.h,
8250 # since some functions may be macros. (On the Sequent, we
8251 # need a special flag -Kthread to make this header compile.)
8252 # We check for pthread_join because it is in -lpthread on IRIX
8253 # while pthread_create is in libc. We check for pthread_attr_init
8254 # due to DEC craziness with -lpthreads. We check for
8255 # pthread_cleanup_push because it is one of the few pthread
8256 # functions on Solaris that doesn't have a non-functional libc stub.
8257 # We try pthread_create on general principles.
8258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259/* end confdefs.h. */
8260#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008261 static void routine(void* a) {a=0;}
8262 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008263int
8264main ()
8265{
8266pthread_t th; pthread_attr_t attr;
8267 pthread_create(&th,0,start_routine,0);
8268 pthread_join(th, 0);
8269 pthread_attr_init(&attr);
8270 pthread_cleanup_push(routine, 0);
8271 pthread_cleanup_pop(0);
8272 ;
8273 return 0;
8274}
8275_ACEOF
8276if ac_fn_c_try_link "$LINENO"; then :
8277 ax_pthread_ok=yes
8278fi
8279rm -f core conftest.err conftest.$ac_objext \
8280 conftest$ac_exeext conftest.$ac_ext
8281
8282 LIBS="$save_LIBS"
8283 CFLAGS="$save_CFLAGS"
8284
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8286$as_echo "$ax_pthread_ok" >&6; }
8287 if test "x$ax_pthread_ok" = xyes; then
8288 break;
8289 fi
8290
8291 PTHREAD_LIBS=""
8292 PTHREAD_CFLAGS=""
8293done
8294fi
8295
8296# Various other checks:
8297if test "x$ax_pthread_ok" = xyes; then
8298 save_LIBS="$LIBS"
8299 LIBS="$PTHREAD_LIBS $LIBS"
8300 save_CFLAGS="$CFLAGS"
8301 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8302
8303 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8305$as_echo_n "checking for joinable pthread attribute... " >&6; }
8306 attr_name=unknown
8307 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8309/* end confdefs.h. */
8310#include <pthread.h>
8311int
8312main ()
8313{
8314int attr=$attr; return attr;
8315 ;
8316 return 0;
8317}
8318_ACEOF
8319if ac_fn_c_try_link "$LINENO"; then :
8320 attr_name=$attr; break
8321fi
8322rm -f core conftest.err conftest.$ac_objext \
8323 conftest$ac_exeext conftest.$ac_ext
8324 done
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8326$as_echo "$attr_name" >&6; }
8327 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8328
8329cat >>confdefs.h <<_ACEOF
8330#define PTHREAD_CREATE_JOINABLE $attr_name
8331_ACEOF
8332
8333 fi
8334
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8336$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8337 flag=no
8338 case "${host_cpu}-${host_os}" in
8339 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8340 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8341 esac
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8343$as_echo "${flag}" >&6; }
8344 if test "x$flag" != xno; then
8345 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8346 fi
8347
8348 LIBS="$save_LIBS"
8349 CFLAGS="$save_CFLAGS"
8350
8351 # More AIX lossage: must compile with xlc_r or cc_r
8352 if test x"$GCC" != xyes; then
8353 for ac_prog in xlc_r cc_r
8354do
8355 # Extract the first word of "$ac_prog", so it can be a program name with args.
8356set dummy $ac_prog; ac_word=$2
8357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358$as_echo_n "checking for $ac_word... " >&6; }
8359if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8360 $as_echo_n "(cached) " >&6
8361else
8362 if test -n "$PTHREAD_CC"; then
8363 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8364else
8365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366for as_dir in $PATH
8367do
8368 IFS=$as_save_IFS
8369 test -z "$as_dir" && as_dir=.
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8372 ac_cv_prog_PTHREAD_CC="$ac_prog"
8373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 break 2
8375 fi
8376done
8377 done
8378IFS=$as_save_IFS
8379
8380fi
8381fi
8382PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8383if test -n "$PTHREAD_CC"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8385$as_echo "$PTHREAD_CC" >&6; }
8386else
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388$as_echo "no" >&6; }
8389fi
8390
8391
8392 test -n "$PTHREAD_CC" && break
8393done
8394test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8395
8396 else
8397 PTHREAD_CC=$CC
8398 fi
8399else
8400 PTHREAD_CC="$CC"
8401fi
8402
8403
8404
8405
8406
8407# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8408if test x"$ax_pthread_ok" = xyes; then
8409
8410$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8411
8412 :
8413else
8414 ax_pthread_ok=no
8415
8416fi
8417ac_ext=c
8418ac_cpp='$CPP $CPPFLAGS'
8419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8421ac_compiler_gnu=$ac_cv_c_compiler_gnu
8422
8423
cristy7acf8fb2010-09-23 19:58:53 +00008424 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008425 have_threads=yes
8426 DEF_THREAD="$PTHREAD_CFLAGS"
8427 CFLAGS="$CFLAGS $DEF_THREAD"
8428 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8429 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008430 { $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 +00008431$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8432 CC="$PTHREAD_CC"
8433 fi
cristy55bf91c2010-09-24 00:29:41 +00008434
8435$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8436
cristy3ed852e2009-09-05 21:47:34 +00008437 fi
8438fi
8439
8440# Enable support for OpenMP
8441if test "$have_threads" != 'yes'; then
8442 ac_cv_prog_c_openmp=unsupported
8443fi
8444
8445 OPENMP_CFLAGS=
8446 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008447if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008448 enableval=$enable_openmp;
8449fi
8450
8451 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008453$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008454if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008455 $as_echo_n "(cached) " >&6
8456else
cristy8b350f62009-11-15 23:12:43 +00008457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008459
8460#ifndef _OPENMP
8461 choke me
8462#endif
8463#include <omp.h>
8464int main () { return omp_get_num_threads (); }
8465
8466_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008467if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008468 ac_cv_prog_c_openmp='none needed'
8469else
cristy8b350f62009-11-15 23:12:43 +00008470 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008471 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8472 ac_save_CFLAGS=$CFLAGS
8473 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008476
8477#ifndef _OPENMP
8478 choke me
8479#endif
8480#include <omp.h>
8481int main () { return omp_get_num_threads (); }
8482
8483_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008484if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008485 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008486fi
cristy8b350f62009-11-15 23:12:43 +00008487rm -f core conftest.err conftest.$ac_objext \
8488 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008489 CFLAGS=$ac_save_CFLAGS
8490 if test "$ac_cv_prog_c_openmp" != unsupported; then
8491 break
8492 fi
8493 done
8494fi
cristy8b350f62009-11-15 23:12:43 +00008495rm -f core conftest.err conftest.$ac_objext \
8496 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008497fi
cristy8b350f62009-11-15 23:12:43 +00008498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008499$as_echo "$ac_cv_prog_c_openmp" >&6; }
8500 case $ac_cv_prog_c_openmp in #(
8501 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008502 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008503 *)
cristy8b350f62009-11-15 23:12:43 +00008504 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008505 esac
8506 fi
8507
8508
8509CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8510MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8511
cristy391f1ce2010-09-09 17:23:28 +00008512if test "$enable_openmp" != no; then
8513 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8514 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8515 fi
8516fi
cristy3ed852e2009-09-05 21:47:34 +00008517
cristy736173a2009-09-20 21:18:22 +00008518# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008519
8520
8521
8522ac_ext=c
8523ac_cpp='$CPP $CPPFLAGS'
8524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8526ac_compiler_gnu=$ac_cv_c_compiler_gnu
8527
8528ax_pthread_ok=no
8529
8530# We used to check for pthread.h first, but this fails if pthread.h
8531# requires special compiler flags (e.g. on True64 or Sequent).
8532# It gets checked for in the link test anyway.
8533
8534# First of all, check if the user has set any of the PTHREAD_LIBS,
8535# etcetera environment variables, and if threads linking works using
8536# them:
8537if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8538 save_CFLAGS="$CFLAGS"
8539 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8540 save_LIBS="$LIBS"
8541 LIBS="$PTHREAD_LIBS $LIBS"
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8543$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8545/* end confdefs.h. */
8546
8547/* Override any GCC internal prototype to avoid an error.
8548 Use char because int might match the return type of a GCC
8549 builtin and then its argument prototype would still apply. */
8550#ifdef __cplusplus
8551extern "C"
8552#endif
8553char pthread_join ();
8554int
8555main ()
8556{
8557return pthread_join ();
8558 ;
8559 return 0;
8560}
8561_ACEOF
8562if ac_fn_c_try_link "$LINENO"; then :
8563 ax_pthread_ok=yes
8564fi
8565rm -f core conftest.err conftest.$ac_objext \
8566 conftest$ac_exeext conftest.$ac_ext
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8568$as_echo "$ax_pthread_ok" >&6; }
8569 if test x"$ax_pthread_ok" = xno; then
8570 PTHREAD_LIBS=""
8571 PTHREAD_CFLAGS=""
8572 fi
8573 LIBS="$save_LIBS"
8574 CFLAGS="$save_CFLAGS"
8575fi
8576
8577# We must check for the threads library under a number of different
8578# names; the ordering is very important because some systems
8579# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8580# libraries is broken (non-POSIX).
8581
8582# Create a list of thread flags to try. Items starting with a "-" are
8583# C compiler flags, and other items are library names, except for "none"
8584# which indicates that we try without any flags at all, and "pthread-config"
8585# which is a program returning the flags for the Pth emulation library.
8586
8587ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8588
8589# The ordering *is* (sometimes) important. Some notes on the
8590# individual items follow:
8591
8592# pthreads: AIX (must check this before -lpthread)
8593# none: in case threads are in libc; should be tried before -Kthread and
8594# other compiler flags to prevent continual compiler warnings
8595# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8596# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8597# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8598# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8599# -pthreads: Solaris/gcc
8600# -mthreads: Mingw32/gcc, Lynx/gcc
8601# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8602# doesn't hurt to check since this sometimes defines pthreads too;
8603# also defines -D_REENTRANT)
8604# ... -mt is also the pthreads flag for HP/aCC
8605# pthread: Linux, etcetera
8606# --thread-safe: KAI C++
8607# pthread-config: use pthread-config program (for GNU Pth library)
8608
8609case "${host_cpu}-${host_os}" in
8610 *solaris*)
8611
8612 # On Solaris (at least, for some versions), libc contains stubbed
8613 # (non-functional) versions of the pthreads routines, so link-based
8614 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8615 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8616 # a function called by this macro, so we could check for that, but
8617 # who knows whether they'll stub that too in a future libc.) So,
8618 # we'll just look for -pthreads and -lpthread first:
8619
8620 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8621 ;;
8622
8623 *-darwin*)
8624 ax_pthread_flags="-pthread $ax_pthread_flags"
8625 ;;
8626esac
8627
8628if test x"$ax_pthread_ok" = xno; then
8629for flag in $ax_pthread_flags; do
8630
8631 case $flag in
8632 none)
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8634$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8635 ;;
8636
8637 -*)
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8639$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8640 PTHREAD_CFLAGS="$flag"
8641 ;;
8642
8643 pthread-config)
8644 # Extract the first word of "pthread-config", so it can be a program name with args.
8645set dummy pthread-config; ac_word=$2
8646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8647$as_echo_n "checking for $ac_word... " >&6; }
8648if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8649 $as_echo_n "(cached) " >&6
8650else
8651 if test -n "$ax_pthread_config"; then
8652 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8653else
8654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655for as_dir in $PATH
8656do
8657 IFS=$as_save_IFS
8658 test -z "$as_dir" && as_dir=.
8659 for ac_exec_ext in '' $ac_executable_extensions; do
8660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8661 ac_cv_prog_ax_pthread_config="yes"
8662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8663 break 2
8664 fi
8665done
8666 done
8667IFS=$as_save_IFS
8668
8669 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8670fi
8671fi
8672ax_pthread_config=$ac_cv_prog_ax_pthread_config
8673if test -n "$ax_pthread_config"; then
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8675$as_echo "$ax_pthread_config" >&6; }
8676else
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678$as_echo "no" >&6; }
8679fi
8680
8681
8682 if test x"$ax_pthread_config" = xno; then continue; fi
8683 PTHREAD_CFLAGS="`pthread-config --cflags`"
8684 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8685 ;;
8686
8687 *)
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8689$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8690 PTHREAD_LIBS="-l$flag"
8691 ;;
8692 esac
8693
8694 save_LIBS="$LIBS"
8695 save_CFLAGS="$CFLAGS"
8696 LIBS="$PTHREAD_LIBS $LIBS"
8697 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8698
8699 # Check for various functions. We must include pthread.h,
8700 # since some functions may be macros. (On the Sequent, we
8701 # need a special flag -Kthread to make this header compile.)
8702 # We check for pthread_join because it is in -lpthread on IRIX
8703 # while pthread_create is in libc. We check for pthread_attr_init
8704 # due to DEC craziness with -lpthreads. We check for
8705 # pthread_cleanup_push because it is one of the few pthread
8706 # functions on Solaris that doesn't have a non-functional libc stub.
8707 # We try pthread_create on general principles.
8708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8709/* end confdefs.h. */
8710#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008711 static void routine(void* a) {a=0;}
8712 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008713int
8714main ()
8715{
8716pthread_t th; pthread_attr_t attr;
8717 pthread_create(&th,0,start_routine,0);
8718 pthread_join(th, 0);
8719 pthread_attr_init(&attr);
8720 pthread_cleanup_push(routine, 0);
8721 pthread_cleanup_pop(0);
8722 ;
8723 return 0;
8724}
8725_ACEOF
8726if ac_fn_c_try_link "$LINENO"; then :
8727 ax_pthread_ok=yes
8728fi
8729rm -f core conftest.err conftest.$ac_objext \
8730 conftest$ac_exeext conftest.$ac_ext
8731
8732 LIBS="$save_LIBS"
8733 CFLAGS="$save_CFLAGS"
8734
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8736$as_echo "$ax_pthread_ok" >&6; }
8737 if test "x$ax_pthread_ok" = xyes; then
8738 break;
8739 fi
8740
8741 PTHREAD_LIBS=""
8742 PTHREAD_CFLAGS=""
8743done
8744fi
8745
8746# Various other checks:
8747if test "x$ax_pthread_ok" = xyes; then
8748 save_LIBS="$LIBS"
8749 LIBS="$PTHREAD_LIBS $LIBS"
8750 save_CFLAGS="$CFLAGS"
8751 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8752
8753 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8755$as_echo_n "checking for joinable pthread attribute... " >&6; }
8756 attr_name=unknown
8757 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8759/* end confdefs.h. */
8760#include <pthread.h>
8761int
8762main ()
8763{
8764int attr=$attr; return attr;
8765 ;
8766 return 0;
8767}
8768_ACEOF
8769if ac_fn_c_try_link "$LINENO"; then :
8770 attr_name=$attr; break
8771fi
8772rm -f core conftest.err conftest.$ac_objext \
8773 conftest$ac_exeext conftest.$ac_ext
8774 done
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8776$as_echo "$attr_name" >&6; }
8777 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8778
8779cat >>confdefs.h <<_ACEOF
8780#define PTHREAD_CREATE_JOINABLE $attr_name
8781_ACEOF
8782
8783 fi
8784
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8786$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8787 flag=no
8788 case "${host_cpu}-${host_os}" in
8789 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8790 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8791 esac
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8793$as_echo "${flag}" >&6; }
8794 if test "x$flag" != xno; then
8795 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8796 fi
8797
8798 LIBS="$save_LIBS"
8799 CFLAGS="$save_CFLAGS"
8800
8801 # More AIX lossage: must compile with xlc_r or cc_r
8802 if test x"$GCC" != xyes; then
8803 for ac_prog in xlc_r cc_r
8804do
8805 # Extract the first word of "$ac_prog", so it can be a program name with args.
8806set dummy $ac_prog; ac_word=$2
8807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8808$as_echo_n "checking for $ac_word... " >&6; }
8809if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8810 $as_echo_n "(cached) " >&6
8811else
8812 if test -n "$PTHREAD_CC"; then
8813 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8814else
8815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8816for as_dir in $PATH
8817do
8818 IFS=$as_save_IFS
8819 test -z "$as_dir" && as_dir=.
8820 for ac_exec_ext in '' $ac_executable_extensions; do
8821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8822 ac_cv_prog_PTHREAD_CC="$ac_prog"
8823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8824 break 2
8825 fi
8826done
8827 done
8828IFS=$as_save_IFS
8829
8830fi
8831fi
8832PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8833if test -n "$PTHREAD_CC"; then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8835$as_echo "$PTHREAD_CC" >&6; }
8836else
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838$as_echo "no" >&6; }
8839fi
8840
8841
8842 test -n "$PTHREAD_CC" && break
8843done
8844test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8845
8846 else
8847 PTHREAD_CC=$CC
8848 fi
8849else
8850 PTHREAD_CC="$CC"
8851fi
8852
8853
8854
8855
8856
8857# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8858if test x"$ax_pthread_ok" = xyes; then
8859
8860$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8861
8862 :
8863else
8864 ax_pthread_ok=no
8865
8866fi
8867ac_ext=c
8868ac_cpp='$CPP $CPPFLAGS'
8869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8871ac_compiler_gnu=$ac_cv_c_compiler_gnu
8872
8873
8874
8875# Check whether --enable-opencl was given.
8876if test "${enable_opencl+set}" = set; then :
8877 enableval=$enable_opencl; disable_opencl=$enableval
8878else
8879 disable_opencl='yes'
8880fi
8881
8882
8883if test "$disable_opencl" = 'yes'; then
8884 ac_ext=c
8885ac_cpp='$CPP $CPPFLAGS'
8886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8888ac_compiler_gnu=$ac_cv_c_compiler_gnu
8889
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8891$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8892if test "${ax_cv_c_compiler_ms+set}" = set; then :
8893 $as_echo_n "(cached) " >&6
8894else
8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896/* end confdefs.h. */
8897
8898int
8899main ()
8900{
8901#ifndef _MSC_VER
8902 choke me
8903#endif
8904
8905 ;
8906 return 0;
8907}
8908_ACEOF
8909if ac_fn_c_try_compile "$LINENO"; then :
8910 ax_compiler_ms=yes
8911else
8912 ax_compiler_ms=no
8913fi
8914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8915ax_cv_c_compiler_ms=$ax_compiler_ms
8916
8917fi
8918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8919$as_echo "$ax_cv_c_compiler_ms" >&6; }
8920 if test X$ax_compiler_ms = Xno; then :
8921 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8922fi
8923
8924 ax_save_CPPFLAGS=$CPPFLAGS
8925 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8926 for ac_header in CL/cl.h OpenCL/cl.h
8927do :
8928 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8929ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00008930if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00008931 cat >>confdefs.h <<_ACEOF
8932#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8933_ACEOF
8934
8935fi
8936
8937done
8938
8939 CPPFLAGS=$ax_save_CPPFLAGS
8940
8941 for ac_header in windows.h
8942do :
8943 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8944if test "x$ac_cv_header_windows_h" = x""yes; then :
8945 cat >>confdefs.h <<_ACEOF
8946#define HAVE_WINDOWS_H 1
8947_ACEOF
8948
8949fi
8950
8951done
8952
8953
8954
8955
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
8957$as_echo_n "checking for OpenCL library... " >&6; }
8958if test "${ax_cv_check_cl_libcl+set}" = set; then :
8959 $as_echo_n "(cached) " >&6
8960else
8961 ax_cv_check_cl_libcl=no
8962 case $host_cpu in
8963 x86_64) ax_check_cl_libdir=lib64 ;;
8964 *) ax_check_cl_libdir=lib ;;
8965 esac
8966 ax_save_CPPFLAGS=$CPPFLAGS
8967 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8968 ax_save_LIBS=$LIBS
8969 LIBS=""
8970 ax_check_libs="-lOpenCL -lCL -lclparser"
8971 for ax_lib in $ax_check_libs; do
8972 if test X$ax_compiler_ms = Xyes; then :
8973 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8974else
8975 ax_try_lib=$ax_lib
8976fi
8977 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979/* end confdefs.h. */
8980
8981 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8982 # include <windows.h>
8983 # endif
8984 # ifdef HAVE_CL_CL_H
8985 # include <CL/cl.h>
8986 # elif defined(HAVE_OPENCL_CL_H)
8987 # include <OpenCL/cl.h>
8988 # else
8989 # error no CL.h
8990 # endif
8991int
8992main ()
8993{
8994clCreateContextFromType(0,0,0,0,0)
8995 ;
8996 return 0;
8997}
8998_ACEOF
8999if ac_fn_c_try_link "$LINENO"; then :
9000 ax_cv_check_cl_libcl=$ax_try_lib; break
9001else
9002 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"
9003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004/* end confdefs.h. */
9005
9006 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9007 # include <windows.h>
9008 # endif
9009 # ifdef HAVE_CL_CL_H
9010 # include <CL/cl.h>
9011 # elif defined(HAVE_OPENCL_CL_H)
9012 # include <OpenCL/cl.h>
9013 # else
9014 # error no CL.h
9015 # endif
9016int
9017main ()
9018{
9019clCreateContextFromType(0,0,0,0,0)
9020 ;
9021 return 0;
9022}
9023_ACEOF
9024if ac_fn_c_try_link "$LINENO"; then :
9025 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9026else
9027 ax_check_cl_dylib_flag='-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"
9028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029/* end confdefs.h. */
9030
9031 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9032 # include <windows.h>
9033 # endif
9034 # ifdef HAVE_CL_CL_H
9035 # include <CL/cl.h>
9036 # elif defined(HAVE_OPENCL_CL_H)
9037 # include <OpenCL/cl.h>
9038 # else
9039 # error no CL.h
9040 # endif
9041int
9042main ()
9043{
9044clCreateContextFromType(0,0,0,0,0)
9045 ;
9046 return 0;
9047}
9048_ACEOF
9049if ac_fn_c_try_link "$LINENO"; then :
9050 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9051fi
9052rm -f core conftest.err conftest.$ac_objext \
9053 conftest$ac_exeext conftest.$ac_ext
9054fi
9055rm -f core conftest.err conftest.$ac_objext \
9056 conftest$ac_exeext conftest.$ac_ext
9057fi
9058rm -f core conftest.err conftest.$ac_objext \
9059 conftest$ac_exeext conftest.$ac_ext
9060 done
9061
9062 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
9063 LIBS='-framework OpenCL'
9064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065/* end confdefs.h. */
9066
9067 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9068 # include <windows.h>
9069 # endif
9070 # ifdef HAVE_CL_CL_H
9071 # include <CL/cl.h>
9072 # elif defined(HAVE_OPENCL_CL_H)
9073 # include <OpenCL/cl.h>
9074 # else
9075 # error no CL.h
9076 # endif
9077int
9078main ()
9079{
9080clCreateContextFromType(0,0,0,0,0)
9081 ;
9082 return 0;
9083}
9084_ACEOF
9085if ac_fn_c_try_link "$LINENO"; then :
9086 ax_cv_check_cl_libcl=$LIBS
9087fi
9088rm -f core conftest.err conftest.$ac_objext \
9089 conftest$ac_exeext conftest.$ac_ext
9090fi
9091
9092 LIBS=$ax_save_LIBS
9093 CPPFLAGS=$ax_save_CPPFLAGS
9094fi
9095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9096$as_echo "$ax_cv_check_cl_libcl" >&6; }
9097
9098 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9099 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9100else
9101 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9102$as_echo "#define _OPENCL 1" >>confdefs.h
9103
9104fi
9105 ac_ext=c
9106ac_cpp='$CPP $CPPFLAGS'
9107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9109ac_compiler_gnu=$ac_cv_c_compiler_gnu
9110
9111fi
9112
9113
9114
9115
cristyc7083c12009-10-14 03:16:55 +00009116CFLAGS="$CL_CFLAGS $CFLAGS"
9117LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009118
cristy391f1ce2010-09-09 17:23:28 +00009119if test "$enable_opencl" != no; then
9120 if test "_OPENCL" = '1'; then
9121 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9122 fi
cristyfd9dcd42010-08-08 18:07:02 +00009123fi
cristy2e8b51d2009-10-17 18:26:15 +00009124
cristy3ed852e2009-09-05 21:47:34 +00009125########
9126#
9127# Check for large file support
9128#
9129########
9130# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009131if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009132 enableval=$enable_largefile;
9133fi
9134
9135if test "$enable_largefile" != no; then
9136
cristy8b350f62009-11-15 23:12:43 +00009137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009138$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009139if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009140 $as_echo_n "(cached) " >&6
9141else
9142 ac_cv_sys_largefile_CC=no
9143 if test "$GCC" != yes; then
9144 ac_save_CC=$CC
9145 while :; do
9146 # IRIX 6.2 and later do not support large files by default,
9147 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009149/* end confdefs.h. */
9150#include <sys/types.h>
9151 /* Check that off_t can represent 2**63 - 1 correctly.
9152 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9153 since some C++ compilers masquerading as C compilers
9154 incorrectly reject 9223372036854775807. */
9155#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9156 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9157 && LARGE_OFF_T % 2147483647 == 1)
9158 ? 1 : -1];
9159int
9160main ()
9161{
9162
9163 ;
9164 return 0;
9165}
9166_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009167 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009168 break
cristy3ed852e2009-09-05 21:47:34 +00009169fi
cristy3ed852e2009-09-05 21:47:34 +00009170rm -f core conftest.err conftest.$ac_objext
9171 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009172 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009173 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009174fi
cristy3ed852e2009-09-05 21:47:34 +00009175rm -f core conftest.err conftest.$ac_objext
9176 break
9177 done
9178 CC=$ac_save_CC
9179 rm -f conftest.$ac_ext
9180 fi
9181fi
cristy8b350f62009-11-15 23:12:43 +00009182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009183$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9184 if test "$ac_cv_sys_largefile_CC" != no; then
9185 CC=$CC$ac_cv_sys_largefile_CC
9186 fi
9187
cristy8b350f62009-11-15 23:12:43 +00009188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009189$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009190if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009191 $as_echo_n "(cached) " >&6
9192else
9193 while :; do
cristy8b350f62009-11-15 23:12:43 +00009194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009195/* end confdefs.h. */
9196#include <sys/types.h>
9197 /* Check that off_t can represent 2**63 - 1 correctly.
9198 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9199 since some C++ compilers masquerading as C compilers
9200 incorrectly reject 9223372036854775807. */
9201#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9202 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9203 && LARGE_OFF_T % 2147483647 == 1)
9204 ? 1 : -1];
9205int
9206main ()
9207{
9208
9209 ;
9210 return 0;
9211}
9212_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009213if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009214 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009215fi
cristy3ed852e2009-09-05 21:47:34 +00009216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009218/* end confdefs.h. */
9219#define _FILE_OFFSET_BITS 64
9220#include <sys/types.h>
9221 /* Check that off_t can represent 2**63 - 1 correctly.
9222 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9223 since some C++ compilers masquerading as C compilers
9224 incorrectly reject 9223372036854775807. */
9225#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9226 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9227 && LARGE_OFF_T % 2147483647 == 1)
9228 ? 1 : -1];
9229int
9230main ()
9231{
9232
9233 ;
9234 return 0;
9235}
9236_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009237if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009238 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009239fi
cristy3ed852e2009-09-05 21:47:34 +00009240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9241 ac_cv_sys_file_offset_bits=unknown
9242 break
9243done
9244fi
cristy8b350f62009-11-15 23:12:43 +00009245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009246$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9247case $ac_cv_sys_file_offset_bits in #(
9248 no | unknown) ;;
9249 *)
9250cat >>confdefs.h <<_ACEOF
9251#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9252_ACEOF
9253;;
9254esac
9255rm -rf conftest*
9256 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009258$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009259if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009260 $as_echo_n "(cached) " >&6
9261else
9262 while :; do
cristy8b350f62009-11-15 23:12:43 +00009263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009264/* end confdefs.h. */
9265#include <sys/types.h>
9266 /* Check that off_t can represent 2**63 - 1 correctly.
9267 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9268 since some C++ compilers masquerading as C compilers
9269 incorrectly reject 9223372036854775807. */
9270#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9271 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9272 && LARGE_OFF_T % 2147483647 == 1)
9273 ? 1 : -1];
9274int
9275main ()
9276{
9277
9278 ;
9279 return 0;
9280}
9281_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009282if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009283 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009284fi
cristy3ed852e2009-09-05 21:47:34 +00009285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009287/* end confdefs.h. */
9288#define _LARGE_FILES 1
9289#include <sys/types.h>
9290 /* Check that off_t can represent 2**63 - 1 correctly.
9291 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9292 since some C++ compilers masquerading as C compilers
9293 incorrectly reject 9223372036854775807. */
9294#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9295 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9296 && LARGE_OFF_T % 2147483647 == 1)
9297 ? 1 : -1];
9298int
9299main ()
9300{
9301
9302 ;
9303 return 0;
9304}
9305_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009306if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009307 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009308fi
cristy3ed852e2009-09-05 21:47:34 +00009309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9310 ac_cv_sys_large_files=unknown
9311 break
9312done
9313fi
cristy8b350f62009-11-15 23:12:43 +00009314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009315$as_echo "$ac_cv_sys_large_files" >&6; }
9316case $ac_cv_sys_large_files in #(
9317 no | unknown) ;;
9318 *)
9319cat >>confdefs.h <<_ACEOF
9320#define _LARGE_FILES $ac_cv_sys_large_files
9321_ACEOF
9322;;
9323esac
9324rm -rf conftest*
9325 fi
9326fi
9327
cristy8b350f62009-11-15 23:12:43 +00009328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009329$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009330if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009331 $as_echo_n "(cached) " >&6
9332else
9333 while :; do
cristy8b350f62009-11-15 23:12:43 +00009334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009335/* end confdefs.h. */
9336#include <sys/types.h> /* for off_t */
9337 #include <stdio.h>
9338int
9339main ()
9340{
9341int (*fp) (FILE *, off_t, int) = fseeko;
9342 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9343 ;
9344 return 0;
9345}
9346_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009347if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009348 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009349fi
cristy8b350f62009-11-15 23:12:43 +00009350rm -f core conftest.err conftest.$ac_objext \
9351 conftest$ac_exeext conftest.$ac_ext
9352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009353/* end confdefs.h. */
9354#define _LARGEFILE_SOURCE 1
9355#include <sys/types.h> /* for off_t */
9356 #include <stdio.h>
9357int
9358main ()
9359{
9360int (*fp) (FILE *, off_t, int) = fseeko;
9361 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9362 ;
9363 return 0;
9364}
9365_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009366if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009367 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009368fi
cristy8b350f62009-11-15 23:12:43 +00009369rm -f core conftest.err conftest.$ac_objext \
9370 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009371 ac_cv_sys_largefile_source=unknown
9372 break
9373done
9374fi
cristy8b350f62009-11-15 23:12:43 +00009375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009376$as_echo "$ac_cv_sys_largefile_source" >&6; }
9377case $ac_cv_sys_largefile_source in #(
9378 no | unknown) ;;
9379 *)
9380cat >>confdefs.h <<_ACEOF
9381#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9382_ACEOF
9383;;
9384esac
9385rm -rf conftest*
9386
9387# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9388# in glibc 2.1.3, but that breaks too many other things.
9389# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9390if test $ac_cv_sys_largefile_source != unknown; then
9391
cristy8b350f62009-11-15 23:12:43 +00009392$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009393
9394fi
9395
9396LFS_CPPFLAGS=''
9397if test "$enable_largefile" != no; then
9398 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9399 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9400 else
cristy8b350f62009-11-15 23:12:43 +00009401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009402$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009403 if test "$cross_compiling" = yes; then :
9404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009406as_fn_error $? "cannot run test program while cross compiling
9407See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009408else
cristy8b350f62009-11-15 23:12:43 +00009409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9410/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009411#include <unistd.h>
9412 main () {
9413 exit(!(sizeof(off_t) == 8));
9414 }
9415_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009416if ac_fn_c_try_run "$LINENO"; then :
9417 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009418
cristy8b350f62009-11-15 23:12:43 +00009419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009420$as_echo "yes" >&6; }
9421else
cristy8b350f62009-11-15 23:12:43 +00009422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009423$as_echo "no" >&6; }
9424fi
cristy8b350f62009-11-15 23:12:43 +00009425rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9426 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009427fi
9428
cristy3ed852e2009-09-05 21:47:34 +00009429 fi
9430 if test "$ac_cv_sys_large_files" != 'no'; then
9431 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9432 fi
9433 if test "$ac_cv_sys_largefile_source" != 'no'; then
9434 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9435 fi
9436fi
9437
9438
9439#
9440# Configure libtool & libltdl
9441#
9442# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009443enable_dlopen=yes
9444
9445
9446
9447case `pwd` in
9448 *\ * | *\ *)
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9450$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9451esac
9452
9453
9454
cristy0c60a692010-11-04 01:09:47 +00009455macro_version='2.2.10'
9456macro_revision='1.3175'
cristy73bd4a52010-10-05 11:24:23 +00009457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470ltmain="$ac_aux_dir/ltmain.sh"
9471
cristy0c60a692010-11-04 01:09:47 +00009472# Backslashify metacharacters that are still active within
9473# double-quoted strings.
9474sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9475
9476# Same as above, but do not quote variable references.
9477double_quote_subst='s/\(["`\\]\)/\\\1/g'
9478
9479# Sed substitution to delay expansion of an escaped shell variable in a
9480# double_quote_subst'ed string.
9481delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9482
9483# Sed substitution to delay expansion of an escaped single quote.
9484delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9485
9486# Sed substitution to avoid accidental globbing in evaled expressions
9487no_glob_subst='s/\*/\\\*/g'
9488
cristy73bd4a52010-10-05 11:24:23 +00009489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9490$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9491if test "${lt_cv_path_NM+set}" = set; then :
9492 $as_echo_n "(cached) " >&6
9493else
9494 if test -n "$NM"; then
9495 # Let the user override the test.
9496 lt_cv_path_NM="$NM"
9497else
9498 lt_nm_to_check="${ac_tool_prefix}nm"
9499 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9500 lt_nm_to_check="$lt_nm_to_check nm"
9501 fi
9502 for lt_tmp_nm in $lt_nm_to_check; do
9503 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9504 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9505 IFS="$lt_save_ifs"
9506 test -z "$ac_dir" && ac_dir=.
9507 tmp_nm="$ac_dir/$lt_tmp_nm"
9508 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9509 # Check to see if the nm accepts a BSD-compat flag.
9510 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9511 # nm: unknown option "B" ignored
9512 # Tru64's nm complains that /dev/null is an invalid object file
9513 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9514 */dev/null* | *'Invalid file or object type'*)
9515 lt_cv_path_NM="$tmp_nm -B"
9516 break
9517 ;;
9518 *)
9519 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9520 */dev/null*)
9521 lt_cv_path_NM="$tmp_nm -p"
9522 break
9523 ;;
9524 *)
9525 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9526 continue # so that we can try to find one that supports BSD flags
9527 ;;
9528 esac
9529 ;;
9530 esac
9531 fi
9532 done
9533 IFS="$lt_save_ifs"
9534 done
9535 : ${lt_cv_path_NM=no}
9536fi
9537fi
9538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9539$as_echo "$lt_cv_path_NM" >&6; }
9540if test "$lt_cv_path_NM" != "no"; then
9541 NM="$lt_cv_path_NM"
9542else
9543 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009544 if test -n "$DUMPBIN"; then :
9545 # Let the user override the test.
9546 else
9547 if test -n "$ac_tool_prefix"; then
9548 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009549 do
9550 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9551set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9553$as_echo_n "checking for $ac_word... " >&6; }
9554if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
9555 $as_echo_n "(cached) " >&6
9556else
9557 if test -n "$DUMPBIN"; then
9558 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9559else
9560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9561for as_dir in $PATH
9562do
9563 IFS=$as_save_IFS
9564 test -z "$as_dir" && as_dir=.
9565 for ac_exec_ext in '' $ac_executable_extensions; do
9566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9567 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9569 break 2
9570 fi
9571done
9572 done
9573IFS=$as_save_IFS
9574
9575fi
9576fi
9577DUMPBIN=$ac_cv_prog_DUMPBIN
9578if test -n "$DUMPBIN"; then
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9580$as_echo "$DUMPBIN" >&6; }
9581else
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9583$as_echo "no" >&6; }
9584fi
9585
9586
9587 test -n "$DUMPBIN" && break
9588 done
9589fi
9590if test -z "$DUMPBIN"; then
9591 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009592 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009593do
9594 # Extract the first word of "$ac_prog", so it can be a program name with args.
9595set dummy $ac_prog; ac_word=$2
9596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9597$as_echo_n "checking for $ac_word... " >&6; }
9598if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
9599 $as_echo_n "(cached) " >&6
9600else
9601 if test -n "$ac_ct_DUMPBIN"; then
9602 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9603else
9604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9605for as_dir in $PATH
9606do
9607 IFS=$as_save_IFS
9608 test -z "$as_dir" && as_dir=.
9609 for ac_exec_ext in '' $ac_executable_extensions; do
9610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9611 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9613 break 2
9614 fi
9615done
9616 done
9617IFS=$as_save_IFS
9618
9619fi
9620fi
9621ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9622if test -n "$ac_ct_DUMPBIN"; then
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9624$as_echo "$ac_ct_DUMPBIN" >&6; }
9625else
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9627$as_echo "no" >&6; }
9628fi
9629
9630
9631 test -n "$ac_ct_DUMPBIN" && break
9632done
9633
9634 if test "x$ac_ct_DUMPBIN" = x; then
9635 DUMPBIN=":"
9636 else
9637 case $cross_compiling:$ac_tool_warned in
9638yes:)
9639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9641ac_tool_warned=yes ;;
9642esac
9643 DUMPBIN=$ac_ct_DUMPBIN
9644 fi
9645fi
9646
cristy0c60a692010-11-04 01:09:47 +00009647 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9648 *COFF*)
9649 DUMPBIN="$DUMPBIN -symbols"
9650 ;;
9651 *)
9652 DUMPBIN=:
9653 ;;
9654 esac
9655 fi
cristy73bd4a52010-10-05 11:24:23 +00009656
9657 if test "$DUMPBIN" != ":"; then
9658 NM="$DUMPBIN"
9659 fi
9660fi
9661test -z "$NM" && NM=nm
9662
9663
9664
9665
9666
9667
9668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9669$as_echo_n "checking the name lister ($NM) interface... " >&6; }
9670if test "${lt_cv_nm_interface+set}" = set; then :
9671 $as_echo_n "(cached) " >&6
9672else
9673 lt_cv_nm_interface="BSD nm"
9674 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009675 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009676 (eval "$ac_compile" 2>conftest.err)
9677 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009678 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009679 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9680 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009681 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009682 cat conftest.out >&5
9683 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9684 lt_cv_nm_interface="MS dumpbin"
9685 fi
9686 rm -f conftest*
9687fi
9688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9689$as_echo "$lt_cv_nm_interface" >&6; }
9690
9691# find the maximum length of command line arguments
9692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9693$as_echo_n "checking the maximum length of command line arguments... " >&6; }
9694if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
9695 $as_echo_n "(cached) " >&6
9696else
9697 i=0
9698 teststring="ABCD"
9699
9700 case $build_os in
9701 msdosdjgpp*)
9702 # On DJGPP, this test can blow up pretty badly due to problems in libc
9703 # (any single argument exceeding 2000 bytes causes a buffer overrun
9704 # during glob expansion). Even if it were fixed, the result of this
9705 # check would be larger than it should be.
9706 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9707 ;;
9708
9709 gnu*)
9710 # Under GNU Hurd, this test is not required because there is
9711 # no limit to the length of command line arguments.
9712 # Libtool will interpret -1 as no limit whatsoever
9713 lt_cv_sys_max_cmd_len=-1;
9714 ;;
9715
9716 cygwin* | mingw* | cegcc*)
9717 # On Win9x/ME, this test blows up -- it succeeds, but takes
9718 # about 5 minutes as the teststring grows exponentially.
9719 # Worse, since 9x/ME are not pre-emptively multitasking,
9720 # you end up with a "frozen" computer, even though with patience
9721 # the test eventually succeeds (with a max line length of 256k).
9722 # Instead, let's just punt: use the minimum linelength reported by
9723 # all of the supported platforms: 8192 (on NT/2K/XP).
9724 lt_cv_sys_max_cmd_len=8192;
9725 ;;
9726
cristy0c60a692010-11-04 01:09:47 +00009727 mint*)
9728 # On MiNT this can take a long time and run out of memory.
9729 lt_cv_sys_max_cmd_len=8192;
9730 ;;
9731
cristy73bd4a52010-10-05 11:24:23 +00009732 amigaos*)
9733 # On AmigaOS with pdksh, this test takes hours, literally.
9734 # So we just punt and use a minimum line length of 8192.
9735 lt_cv_sys_max_cmd_len=8192;
9736 ;;
9737
9738 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9739 # This has been around since 386BSD, at least. Likely further.
9740 if test -x /sbin/sysctl; then
9741 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9742 elif test -x /usr/sbin/sysctl; then
9743 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9744 else
9745 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9746 fi
9747 # And add a safety zone
9748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9750 ;;
9751
9752 interix*)
9753 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9754 lt_cv_sys_max_cmd_len=196608
9755 ;;
9756
9757 osf*)
9758 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9759 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9760 # nice to cause kernel panics so lets avoid the loop below.
9761 # First set a reasonable default.
9762 lt_cv_sys_max_cmd_len=16384
9763 #
9764 if test -x /sbin/sysconfig; then
9765 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9766 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9767 esac
9768 fi
9769 ;;
9770 sco3.2v5*)
9771 lt_cv_sys_max_cmd_len=102400
9772 ;;
9773 sysv5* | sco5v6* | sysv4.2uw2*)
9774 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9775 if test -n "$kargmax"; then
9776 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9777 else
9778 lt_cv_sys_max_cmd_len=32768
9779 fi
9780 ;;
9781 *)
9782 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9783 if test -n "$lt_cv_sys_max_cmd_len"; then
9784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9785 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9786 else
9787 # Make teststring a little bigger before we do anything with it.
9788 # a 1K string should be a reasonable start.
9789 for i in 1 2 3 4 5 6 7 8 ; do
9790 teststring=$teststring$teststring
9791 done
9792 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9793 # If test is not a shell built-in, we'll probably end up computing a
9794 # maximum length that is only half of the actual maximum length, but
9795 # we can't tell.
cristy0c60a692010-11-04 01:09:47 +00009796 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9797 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +00009798 test $i != 17 # 1/2 MB should be enough
9799 do
9800 i=`expr $i + 1`
9801 teststring=$teststring$teststring
9802 done
9803 # Only check the string length outside the loop.
9804 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9805 teststring=
9806 # Add a significant safety factor because C++ compilers can tack on
9807 # massive amounts of additional arguments before passing them to the
9808 # linker. It appears as though 1/2 is a usable value.
9809 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9810 fi
9811 ;;
9812 esac
9813
9814fi
9815
9816if test -n $lt_cv_sys_max_cmd_len ; then
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9818$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9819else
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9821$as_echo "none" >&6; }
9822fi
9823max_cmd_len=$lt_cv_sys_max_cmd_len
9824
9825
9826
9827
9828
9829
9830: ${CP="cp -f"}
9831: ${MV="mv -f"}
9832: ${RM="rm -f"}
9833
9834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9835$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9836# Try some XSI features
9837xsi_shell=no
9838( _lt_dummy="a/b/c"
9839 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9840 = c,a/b,, \
9841 && eval 'test $(( 1 + 1 )) -eq 2 \
9842 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9843 && xsi_shell=yes
9844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9845$as_echo "$xsi_shell" >&6; }
9846
9847
9848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9849$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9850lt_shell_append=no
9851( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9852 >/dev/null 2>&1 \
9853 && lt_shell_append=yes
9854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9855$as_echo "$lt_shell_append" >&6; }
9856
9857
9858if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9859 lt_unset=unset
9860else
9861 lt_unset=false
9862fi
9863
9864
9865
9866
9867
9868# test EBCDIC or ASCII
9869case `echo X|tr X '\101'` in
9870 A) # ASCII based system
9871 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9872 lt_SP2NL='tr \040 \012'
9873 lt_NL2SP='tr \015\012 \040\040'
9874 ;;
9875 *) # EBCDIC based system
9876 lt_SP2NL='tr \100 \n'
9877 lt_NL2SP='tr \r\n \100\100'
9878 ;;
9879esac
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9890$as_echo_n "checking for $LD option to reload object files... " >&6; }
9891if test "${lt_cv_ld_reload_flag+set}" = set; then :
9892 $as_echo_n "(cached) " >&6
9893else
9894 lt_cv_ld_reload_flag='-r'
9895fi
9896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9897$as_echo "$lt_cv_ld_reload_flag" >&6; }
9898reload_flag=$lt_cv_ld_reload_flag
9899case $reload_flag in
9900"" | " "*) ;;
9901*) reload_flag=" $reload_flag" ;;
9902esac
9903reload_cmds='$LD$reload_flag -o $output$reload_objs'
9904case $host_os in
9905 darwin*)
9906 if test "$GCC" = yes; then
9907 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9908 else
9909 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9910 fi
9911 ;;
9912esac
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922if test -n "$ac_tool_prefix"; then
9923 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9924set dummy ${ac_tool_prefix}objdump; ac_word=$2
9925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9926$as_echo_n "checking for $ac_word... " >&6; }
9927if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9928 $as_echo_n "(cached) " >&6
9929else
9930 if test -n "$OBJDUMP"; then
9931 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9932else
9933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9934for as_dir in $PATH
9935do
9936 IFS=$as_save_IFS
9937 test -z "$as_dir" && as_dir=.
9938 for ac_exec_ext in '' $ac_executable_extensions; do
9939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9940 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9942 break 2
9943 fi
9944done
9945 done
9946IFS=$as_save_IFS
9947
9948fi
9949fi
9950OBJDUMP=$ac_cv_prog_OBJDUMP
9951if test -n "$OBJDUMP"; then
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9953$as_echo "$OBJDUMP" >&6; }
9954else
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9956$as_echo "no" >&6; }
9957fi
9958
9959
9960fi
9961if test -z "$ac_cv_prog_OBJDUMP"; then
9962 ac_ct_OBJDUMP=$OBJDUMP
9963 # Extract the first word of "objdump", so it can be a program name with args.
9964set dummy objdump; ac_word=$2
9965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9966$as_echo_n "checking for $ac_word... " >&6; }
9967if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
9968 $as_echo_n "(cached) " >&6
9969else
9970 if test -n "$ac_ct_OBJDUMP"; then
9971 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9972else
9973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974for as_dir in $PATH
9975do
9976 IFS=$as_save_IFS
9977 test -z "$as_dir" && as_dir=.
9978 for ac_exec_ext in '' $ac_executable_extensions; do
9979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9980 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9982 break 2
9983 fi
9984done
9985 done
9986IFS=$as_save_IFS
9987
9988fi
9989fi
9990ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9991if test -n "$ac_ct_OBJDUMP"; then
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9993$as_echo "$ac_ct_OBJDUMP" >&6; }
9994else
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9996$as_echo "no" >&6; }
9997fi
9998
9999 if test "x$ac_ct_OBJDUMP" = x; then
10000 OBJDUMP="false"
10001 else
10002 case $cross_compiling:$ac_tool_warned in
10003yes:)
10004{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10005$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10006ac_tool_warned=yes ;;
10007esac
10008 OBJDUMP=$ac_ct_OBJDUMP
10009 fi
10010else
10011 OBJDUMP="$ac_cv_prog_OBJDUMP"
10012fi
10013
10014test -z "$OBJDUMP" && OBJDUMP=objdump
10015
10016
10017
10018
10019
10020
10021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10022$as_echo_n "checking how to recognize dependent libraries... " >&6; }
10023if test "${lt_cv_deplibs_check_method+set}" = set; then :
10024 $as_echo_n "(cached) " >&6
10025else
10026 lt_cv_file_magic_cmd='$MAGIC_CMD'
10027lt_cv_file_magic_test_file=
10028lt_cv_deplibs_check_method='unknown'
10029# Need to set the preceding variable on all platforms that support
10030# interlibrary dependencies.
10031# 'none' -- dependencies not supported.
10032# `unknown' -- same as none, but documents that we really don't know.
10033# 'pass_all' -- all dependencies passed with no checks.
10034# 'test_compile' -- check by making test program.
10035# 'file_magic [[regex]]' -- check by looking for files in library path
10036# which responds to the $file_magic_cmd with a given extended regex.
10037# If you have `file' or equivalent on your system and you're not sure
10038# whether `pass_all' will *always* work, you probably want this one.
10039
10040case $host_os in
10041aix[4-9]*)
10042 lt_cv_deplibs_check_method=pass_all
10043 ;;
10044
10045beos*)
10046 lt_cv_deplibs_check_method=pass_all
10047 ;;
10048
10049bsdi[45]*)
10050 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10051 lt_cv_file_magic_cmd='/usr/bin/file -L'
10052 lt_cv_file_magic_test_file=/shlib/libc.so
10053 ;;
10054
10055cygwin*)
10056 # func_win32_libid is a shell function defined in ltmain.sh
10057 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10058 lt_cv_file_magic_cmd='func_win32_libid'
10059 ;;
10060
10061mingw* | pw32*)
10062 # Base MSYS/MinGW do not provide the 'file' command needed by
10063 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10064 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010065 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10066 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010067 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10068 lt_cv_file_magic_cmd='func_win32_libid'
10069 else
cristy0c60a692010-11-04 01:09:47 +000010070 # Keep this pattern in sync with the one in func_win32_libid.
10071 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 +000010072 lt_cv_file_magic_cmd='$OBJDUMP -f'
10073 fi
10074 ;;
10075
cristy0c60a692010-11-04 01:09:47 +000010076cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010077 # use the weaker test based on 'objdump'. See mingw*.
10078 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10079 lt_cv_file_magic_cmd='$OBJDUMP -f'
10080 ;;
10081
10082darwin* | rhapsody*)
10083 lt_cv_deplibs_check_method=pass_all
10084 ;;
10085
10086freebsd* | dragonfly*)
10087 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10088 case $host_cpu in
10089 i*86 )
10090 # Not sure whether the presence of OpenBSD here was a mistake.
10091 # Let's accept both of them until this is cleared up.
10092 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10093 lt_cv_file_magic_cmd=/usr/bin/file
10094 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10095 ;;
10096 esac
10097 else
10098 lt_cv_deplibs_check_method=pass_all
10099 fi
10100 ;;
10101
10102gnu*)
10103 lt_cv_deplibs_check_method=pass_all
10104 ;;
10105
cristy0c60a692010-11-04 01:09:47 +000010106haiku*)
10107 lt_cv_deplibs_check_method=pass_all
10108 ;;
10109
cristy73bd4a52010-10-05 11:24:23 +000010110hpux10.20* | hpux11*)
10111 lt_cv_file_magic_cmd=/usr/bin/file
10112 case $host_cpu in
10113 ia64*)
10114 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10115 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10116 ;;
10117 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010118 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 +000010119 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10120 ;;
10121 *)
cristy0c60a692010-11-04 01:09:47 +000010122 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 +000010123 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10124 ;;
10125 esac
10126 ;;
10127
10128interix[3-9]*)
10129 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10130 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10131 ;;
10132
10133irix5* | irix6* | nonstopux*)
10134 case $LD in
10135 *-32|*"-32 ") libmagic=32-bit;;
10136 *-n32|*"-n32 ") libmagic=N32;;
10137 *-64|*"-64 ") libmagic=64-bit;;
10138 *) libmagic=never-match;;
10139 esac
10140 lt_cv_deplibs_check_method=pass_all
10141 ;;
10142
10143# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000010144linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010145 lt_cv_deplibs_check_method=pass_all
10146 ;;
10147
10148netbsd*)
10149 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10150 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10151 else
10152 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10153 fi
10154 ;;
10155
10156newos6*)
10157 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10158 lt_cv_file_magic_cmd=/usr/bin/file
10159 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10160 ;;
10161
10162*nto* | *qnx*)
10163 lt_cv_deplibs_check_method=pass_all
10164 ;;
10165
10166openbsd*)
10167 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10168 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10169 else
10170 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10171 fi
10172 ;;
10173
10174osf3* | osf4* | osf5*)
10175 lt_cv_deplibs_check_method=pass_all
10176 ;;
10177
10178rdos*)
10179 lt_cv_deplibs_check_method=pass_all
10180 ;;
10181
10182solaris*)
10183 lt_cv_deplibs_check_method=pass_all
10184 ;;
10185
10186sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10187 lt_cv_deplibs_check_method=pass_all
10188 ;;
10189
10190sysv4 | sysv4.3*)
10191 case $host_vendor in
10192 motorola)
10193 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]'
10194 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10195 ;;
10196 ncr)
10197 lt_cv_deplibs_check_method=pass_all
10198 ;;
10199 sequent)
10200 lt_cv_file_magic_cmd='/bin/file'
10201 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10202 ;;
10203 sni)
10204 lt_cv_file_magic_cmd='/bin/file'
10205 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10206 lt_cv_file_magic_test_file=/lib/libc.so
10207 ;;
10208 siemens)
10209 lt_cv_deplibs_check_method=pass_all
10210 ;;
10211 pc)
10212 lt_cv_deplibs_check_method=pass_all
10213 ;;
10214 esac
10215 ;;
10216
10217tpf*)
10218 lt_cv_deplibs_check_method=pass_all
10219 ;;
10220esac
10221
10222fi
10223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10224$as_echo "$lt_cv_deplibs_check_method" >&6; }
10225file_magic_cmd=$lt_cv_file_magic_cmd
10226deplibs_check_method=$lt_cv_deplibs_check_method
10227test -z "$deplibs_check_method" && deplibs_check_method=unknown
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240if test -n "$ac_tool_prefix"; then
10241 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10242set dummy ${ac_tool_prefix}ar; ac_word=$2
10243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10244$as_echo_n "checking for $ac_word... " >&6; }
10245if test "${ac_cv_prog_AR+set}" = set; then :
10246 $as_echo_n "(cached) " >&6
10247else
10248 if test -n "$AR"; then
10249 ac_cv_prog_AR="$AR" # Let the user override the test.
10250else
10251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10252for as_dir in $PATH
10253do
10254 IFS=$as_save_IFS
10255 test -z "$as_dir" && as_dir=.
10256 for ac_exec_ext in '' $ac_executable_extensions; do
10257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10258 ac_cv_prog_AR="${ac_tool_prefix}ar"
10259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10260 break 2
10261 fi
10262done
10263 done
10264IFS=$as_save_IFS
10265
10266fi
10267fi
10268AR=$ac_cv_prog_AR
10269if test -n "$AR"; then
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10271$as_echo "$AR" >&6; }
10272else
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10274$as_echo "no" >&6; }
10275fi
10276
10277
10278fi
10279if test -z "$ac_cv_prog_AR"; then
10280 ac_ct_AR=$AR
10281 # Extract the first word of "ar", so it can be a program name with args.
10282set dummy ar; ac_word=$2
10283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10284$as_echo_n "checking for $ac_word... " >&6; }
10285if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10286 $as_echo_n "(cached) " >&6
10287else
10288 if test -n "$ac_ct_AR"; then
10289 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10290else
10291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10292for as_dir in $PATH
10293do
10294 IFS=$as_save_IFS
10295 test -z "$as_dir" && as_dir=.
10296 for ac_exec_ext in '' $ac_executable_extensions; do
10297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10298 ac_cv_prog_ac_ct_AR="ar"
10299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10300 break 2
10301 fi
10302done
10303 done
10304IFS=$as_save_IFS
10305
10306fi
10307fi
10308ac_ct_AR=$ac_cv_prog_ac_ct_AR
10309if test -n "$ac_ct_AR"; then
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10311$as_echo "$ac_ct_AR" >&6; }
10312else
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10314$as_echo "no" >&6; }
10315fi
10316
10317 if test "x$ac_ct_AR" = x; then
10318 AR="false"
10319 else
10320 case $cross_compiling:$ac_tool_warned in
10321yes:)
10322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10324ac_tool_warned=yes ;;
10325esac
10326 AR=$ac_ct_AR
10327 fi
10328else
10329 AR="$ac_cv_prog_AR"
10330fi
10331
10332test -z "$AR" && AR=ar
10333test -z "$AR_FLAGS" && AR_FLAGS=cru
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345if test -n "$ac_tool_prefix"; then
10346 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10347set dummy ${ac_tool_prefix}strip; ac_word=$2
10348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10349$as_echo_n "checking for $ac_word... " >&6; }
10350if test "${ac_cv_prog_STRIP+set}" = set; then :
10351 $as_echo_n "(cached) " >&6
10352else
10353 if test -n "$STRIP"; then
10354 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10355else
10356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10357for as_dir in $PATH
10358do
10359 IFS=$as_save_IFS
10360 test -z "$as_dir" && as_dir=.
10361 for ac_exec_ext in '' $ac_executable_extensions; do
10362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10363 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10365 break 2
10366 fi
10367done
10368 done
10369IFS=$as_save_IFS
10370
10371fi
10372fi
10373STRIP=$ac_cv_prog_STRIP
10374if test -n "$STRIP"; then
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10376$as_echo "$STRIP" >&6; }
10377else
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10379$as_echo "no" >&6; }
10380fi
10381
10382
10383fi
10384if test -z "$ac_cv_prog_STRIP"; then
10385 ac_ct_STRIP=$STRIP
10386 # Extract the first word of "strip", so it can be a program name with args.
10387set dummy strip; ac_word=$2
10388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10389$as_echo_n "checking for $ac_word... " >&6; }
10390if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10391 $as_echo_n "(cached) " >&6
10392else
10393 if test -n "$ac_ct_STRIP"; then
10394 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10395else
10396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10397for as_dir in $PATH
10398do
10399 IFS=$as_save_IFS
10400 test -z "$as_dir" && as_dir=.
10401 for ac_exec_ext in '' $ac_executable_extensions; do
10402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10403 ac_cv_prog_ac_ct_STRIP="strip"
10404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10405 break 2
10406 fi
10407done
10408 done
10409IFS=$as_save_IFS
10410
10411fi
10412fi
10413ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10414if test -n "$ac_ct_STRIP"; then
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10416$as_echo "$ac_ct_STRIP" >&6; }
10417else
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419$as_echo "no" >&6; }
10420fi
10421
10422 if test "x$ac_ct_STRIP" = x; then
10423 STRIP=":"
10424 else
10425 case $cross_compiling:$ac_tool_warned in
10426yes:)
10427{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10428$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10429ac_tool_warned=yes ;;
10430esac
10431 STRIP=$ac_ct_STRIP
10432 fi
10433else
10434 STRIP="$ac_cv_prog_STRIP"
10435fi
10436
10437test -z "$STRIP" && STRIP=:
10438
10439
10440
10441
10442
10443
10444if test -n "$ac_tool_prefix"; then
10445 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10446set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10448$as_echo_n "checking for $ac_word... " >&6; }
10449if test "${ac_cv_prog_RANLIB+set}" = set; then :
10450 $as_echo_n "(cached) " >&6
10451else
10452 if test -n "$RANLIB"; then
10453 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10454else
10455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10456for as_dir in $PATH
10457do
10458 IFS=$as_save_IFS
10459 test -z "$as_dir" && as_dir=.
10460 for ac_exec_ext in '' $ac_executable_extensions; do
10461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10462 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10464 break 2
10465 fi
10466done
10467 done
10468IFS=$as_save_IFS
10469
10470fi
10471fi
10472RANLIB=$ac_cv_prog_RANLIB
10473if test -n "$RANLIB"; then
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10475$as_echo "$RANLIB" >&6; }
10476else
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10478$as_echo "no" >&6; }
10479fi
10480
10481
10482fi
10483if test -z "$ac_cv_prog_RANLIB"; then
10484 ac_ct_RANLIB=$RANLIB
10485 # Extract the first word of "ranlib", so it can be a program name with args.
10486set dummy ranlib; ac_word=$2
10487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10488$as_echo_n "checking for $ac_word... " >&6; }
10489if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10490 $as_echo_n "(cached) " >&6
10491else
10492 if test -n "$ac_ct_RANLIB"; then
10493 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10494else
10495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10496for as_dir in $PATH
10497do
10498 IFS=$as_save_IFS
10499 test -z "$as_dir" && as_dir=.
10500 for ac_exec_ext in '' $ac_executable_extensions; do
10501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10502 ac_cv_prog_ac_ct_RANLIB="ranlib"
10503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10504 break 2
10505 fi
10506done
10507 done
10508IFS=$as_save_IFS
10509
10510fi
10511fi
10512ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10513if test -n "$ac_ct_RANLIB"; then
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10515$as_echo "$ac_ct_RANLIB" >&6; }
10516else
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10518$as_echo "no" >&6; }
10519fi
10520
10521 if test "x$ac_ct_RANLIB" = x; then
10522 RANLIB=":"
10523 else
10524 case $cross_compiling:$ac_tool_warned in
10525yes:)
10526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10528ac_tool_warned=yes ;;
10529esac
10530 RANLIB=$ac_ct_RANLIB
10531 fi
10532else
10533 RANLIB="$ac_cv_prog_RANLIB"
10534fi
10535
10536test -z "$RANLIB" && RANLIB=:
10537
10538
10539
10540
10541
10542
10543# Determine commands to create old-style static archives.
10544old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10545old_postinstall_cmds='chmod 644 $oldlib'
10546old_postuninstall_cmds=
10547
10548if test -n "$RANLIB"; then
10549 case $host_os in
10550 openbsd*)
10551 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10552 ;;
10553 *)
10554 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10555 ;;
10556 esac
10557 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10558fi
10559
cristy0c60a692010-11-04 01:09:47 +000010560case $host_os in
10561 darwin*)
10562 lock_old_archive_extraction=yes ;;
10563 *)
10564 lock_old_archive_extraction=no ;;
10565esac
10566
10567
10568
10569
10570
10571
cristy73bd4a52010-10-05 11:24:23 +000010572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605# If no C compiler was specified, use CC.
10606LTCC=${LTCC-"$CC"}
10607
10608# If no C compiler flags were specified, use CFLAGS.
10609LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10610
10611# Allow CC to be a program name with arguments.
10612compiler=$CC
10613
10614
10615# Check for command to grab the raw symbol name followed by C symbol from nm.
10616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10617$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10618if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
10619 $as_echo_n "(cached) " >&6
10620else
10621
10622# These are sane defaults that work on at least a few old systems.
10623# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10624
10625# Character class describing NM global symbol codes.
10626symcode='[BCDEGRST]'
10627
10628# Regexp to match symbols that can be accessed directly from C.
10629sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10630
10631# Define system-specific variables.
10632case $host_os in
10633aix*)
10634 symcode='[BCDT]'
10635 ;;
10636cygwin* | mingw* | pw32* | cegcc*)
10637 symcode='[ABCDGISTW]'
10638 ;;
10639hpux*)
10640 if test "$host_cpu" = ia64; then
10641 symcode='[ABCDEGRST]'
10642 fi
10643 ;;
10644irix* | nonstopux*)
10645 symcode='[BCDEGRST]'
10646 ;;
10647osf*)
10648 symcode='[BCDEGQRST]'
10649 ;;
10650solaris*)
10651 symcode='[BDRT]'
10652 ;;
10653sco3.2v5*)
10654 symcode='[DT]'
10655 ;;
10656sysv4.2uw2*)
10657 symcode='[DT]'
10658 ;;
10659sysv5* | sco5v6* | unixware* | OpenUNIX*)
10660 symcode='[ABDT]'
10661 ;;
10662sysv4)
10663 symcode='[DFNSTU]'
10664 ;;
10665esac
10666
10667# If we're using GNU nm, then use its standard symbol codes.
10668case `$NM -V 2>&1` in
10669*GNU* | *'with BFD'*)
10670 symcode='[ABCDGIRSTW]' ;;
10671esac
10672
10673# Transform an extracted symbol line into a proper C declaration.
10674# Some systems (esp. on ia64) link data and code symbols differently,
10675# so use this general approach.
10676lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10677
10678# Transform an extracted symbol line into symbol name and symbol address
10679lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10680lt_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'"
10681
10682# Handle CRLF in mingw tool chain
10683opt_cr=
10684case $build_os in
10685mingw*)
10686 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10687 ;;
10688esac
10689
10690# Try without a prefix underscore, then with it.
10691for ac_symprfx in "" "_"; do
10692
10693 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10694 symxfrm="\\1 $ac_symprfx\\2 \\2"
10695
10696 # Write the raw and C identifiers.
10697 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10698 # Fake it for dumpbin and say T for any non-static function
10699 # and D for any global variable.
10700 # Also find C++ and __fastcall symbols from MSVC++,
10701 # which start with @ or ?.
10702 lt_cv_sys_global_symbol_pipe="$AWK '"\
10703" {last_section=section; section=\$ 3};"\
10704" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10705" \$ 0!~/External *\|/{next};"\
10706" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10707" {if(hide[section]) next};"\
10708" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10709" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10710" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10711" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10712" ' prfx=^$ac_symprfx"
10713 else
10714 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10715 fi
10716
10717 # Check to see that the pipe works correctly.
10718 pipe_works=no
10719
10720 rm -f conftest*
10721 cat > conftest.$ac_ext <<_LT_EOF
10722#ifdef __cplusplus
10723extern "C" {
10724#endif
10725char nm_test_var;
10726void nm_test_func(void);
10727void nm_test_func(void){}
10728#ifdef __cplusplus
10729}
10730#endif
10731int main(){nm_test_var='a';nm_test_func();return(0);}
10732_LT_EOF
10733
10734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10735 (eval $ac_compile) 2>&5
10736 ac_status=$?
10737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10738 test $ac_status = 0; }; then
10739 # Now try to grab the symbols.
10740 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000010741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10742 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000010743 ac_status=$?
10744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10745 test $ac_status = 0; } && test -s "$nlist"; then
10746 # Try sorting and uniquifying the output.
10747 if sort "$nlist" | uniq > "$nlist"T; then
10748 mv -f "$nlist"T "$nlist"
10749 else
10750 rm -f "$nlist"T
10751 fi
10752
10753 # Make sure that we snagged all the symbols we need.
10754 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10755 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10756 cat <<_LT_EOF > conftest.$ac_ext
10757#ifdef __cplusplus
10758extern "C" {
10759#endif
10760
10761_LT_EOF
10762 # Now generate the symbol file.
10763 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10764
10765 cat <<_LT_EOF >> conftest.$ac_ext
10766
10767/* The mapping between symbol names and symbols. */
10768const struct {
10769 const char *name;
10770 void *address;
10771}
10772lt__PROGRAM__LTX_preloaded_symbols[] =
10773{
10774 { "@PROGRAM@", (void *) 0 },
10775_LT_EOF
10776 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10777 cat <<\_LT_EOF >> conftest.$ac_ext
10778 {0, (void *) 0}
10779};
10780
10781/* This works around a problem in FreeBSD linker */
10782#ifdef FREEBSD_WORKAROUND
10783static const void *lt_preloaded_setup() {
10784 return lt__PROGRAM__LTX_preloaded_symbols;
10785}
10786#endif
10787
10788#ifdef __cplusplus
10789}
10790#endif
10791_LT_EOF
10792 # Now try linking the two files.
10793 mv conftest.$ac_objext conftstm.$ac_objext
10794 lt_save_LIBS="$LIBS"
10795 lt_save_CFLAGS="$CFLAGS"
10796 LIBS="conftstm.$ac_objext"
10797 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10799 (eval $ac_link) 2>&5
10800 ac_status=$?
10801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10802 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10803 pipe_works=yes
10804 fi
10805 LIBS="$lt_save_LIBS"
10806 CFLAGS="$lt_save_CFLAGS"
10807 else
10808 echo "cannot find nm_test_func in $nlist" >&5
10809 fi
10810 else
10811 echo "cannot find nm_test_var in $nlist" >&5
10812 fi
10813 else
10814 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10815 fi
10816 else
10817 echo "$progname: failed program was:" >&5
10818 cat conftest.$ac_ext >&5
10819 fi
10820 rm -rf conftest* conftst*
10821
10822 # Do not use the global_symbol_pipe unless it works.
10823 if test "$pipe_works" = yes; then
10824 break
10825 else
10826 lt_cv_sys_global_symbol_pipe=
10827 fi
10828done
10829
10830fi
10831
10832if test -z "$lt_cv_sys_global_symbol_pipe"; then
10833 lt_cv_sys_global_symbol_to_cdecl=
10834fi
10835if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10837$as_echo "failed" >&6; }
10838else
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10840$as_echo "ok" >&6; }
10841fi
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864# Check whether --enable-libtool-lock was given.
10865if test "${enable_libtool_lock+set}" = set; then :
10866 enableval=$enable_libtool_lock;
10867fi
10868
10869test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10870
10871# Some flags need to be propagated to the compiler or linker for good
10872# libtool support.
10873case $host in
10874ia64-*-hpux*)
10875 # Find out which ABI we are using.
10876 echo 'int i;' > conftest.$ac_ext
10877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10878 (eval $ac_compile) 2>&5
10879 ac_status=$?
10880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10881 test $ac_status = 0; }; then
10882 case `/usr/bin/file conftest.$ac_objext` in
10883 *ELF-32*)
10884 HPUX_IA64_MODE="32"
10885 ;;
10886 *ELF-64*)
10887 HPUX_IA64_MODE="64"
10888 ;;
10889 esac
10890 fi
10891 rm -rf conftest*
10892 ;;
10893*-*-irix6*)
10894 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000010895 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10897 (eval $ac_compile) 2>&5
10898 ac_status=$?
10899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10900 test $ac_status = 0; }; then
10901 if test "$lt_cv_prog_gnu_ld" = yes; then
10902 case `/usr/bin/file conftest.$ac_objext` in
10903 *32-bit*)
10904 LD="${LD-ld} -melf32bsmip"
10905 ;;
10906 *N32*)
10907 LD="${LD-ld} -melf32bmipn32"
10908 ;;
10909 *64-bit*)
10910 LD="${LD-ld} -melf64bmip"
10911 ;;
10912 esac
10913 else
10914 case `/usr/bin/file conftest.$ac_objext` in
10915 *32-bit*)
10916 LD="${LD-ld} -32"
10917 ;;
10918 *N32*)
10919 LD="${LD-ld} -n32"
10920 ;;
10921 *64-bit*)
10922 LD="${LD-ld} -64"
10923 ;;
10924 esac
10925 fi
10926 fi
10927 rm -rf conftest*
10928 ;;
10929
10930x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10931s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10932 # Find out which ABI we are using.
10933 echo 'int i;' > conftest.$ac_ext
10934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10935 (eval $ac_compile) 2>&5
10936 ac_status=$?
10937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10938 test $ac_status = 0; }; then
10939 case `/usr/bin/file conftest.o` in
10940 *32-bit*)
10941 case $host in
10942 x86_64-*kfreebsd*-gnu)
10943 LD="${LD-ld} -m elf_i386_fbsd"
10944 ;;
10945 x86_64-*linux*)
10946 LD="${LD-ld} -m elf_i386"
10947 ;;
10948 ppc64-*linux*|powerpc64-*linux*)
10949 LD="${LD-ld} -m elf32ppclinux"
10950 ;;
10951 s390x-*linux*)
10952 LD="${LD-ld} -m elf_s390"
10953 ;;
10954 sparc64-*linux*)
10955 LD="${LD-ld} -m elf32_sparc"
10956 ;;
10957 esac
10958 ;;
10959 *64-bit*)
10960 case $host in
10961 x86_64-*kfreebsd*-gnu)
10962 LD="${LD-ld} -m elf_x86_64_fbsd"
10963 ;;
10964 x86_64-*linux*)
10965 LD="${LD-ld} -m elf_x86_64"
10966 ;;
10967 ppc*-*linux*|powerpc*-*linux*)
10968 LD="${LD-ld} -m elf64ppc"
10969 ;;
10970 s390*-*linux*|s390*-*tpf*)
10971 LD="${LD-ld} -m elf64_s390"
10972 ;;
10973 sparc*-*linux*)
10974 LD="${LD-ld} -m elf64_sparc"
10975 ;;
10976 esac
10977 ;;
10978 esac
10979 fi
10980 rm -rf conftest*
10981 ;;
10982
10983*-*-sco3.2v5*)
10984 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10985 SAVE_CFLAGS="$CFLAGS"
10986 CFLAGS="$CFLAGS -belf"
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10988$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10989if test "${lt_cv_cc_needs_belf+set}" = set; then :
10990 $as_echo_n "(cached) " >&6
10991else
10992 ac_ext=c
10993ac_cpp='$CPP $CPPFLAGS'
10994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10996ac_compiler_gnu=$ac_cv_c_compiler_gnu
10997
10998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999/* end confdefs.h. */
11000
11001int
11002main ()
11003{
11004
11005 ;
11006 return 0;
11007}
11008_ACEOF
11009if ac_fn_c_try_link "$LINENO"; then :
11010 lt_cv_cc_needs_belf=yes
11011else
11012 lt_cv_cc_needs_belf=no
11013fi
11014rm -f core conftest.err conftest.$ac_objext \
11015 conftest$ac_exeext conftest.$ac_ext
11016 ac_ext=c
11017ac_cpp='$CPP $CPPFLAGS'
11018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11020ac_compiler_gnu=$ac_cv_c_compiler_gnu
11021
11022fi
11023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11024$as_echo "$lt_cv_cc_needs_belf" >&6; }
11025 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11026 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11027 CFLAGS="$SAVE_CFLAGS"
11028 fi
11029 ;;
11030sparc*-*solaris*)
11031 # Find out which ABI we are using.
11032 echo 'int i;' > conftest.$ac_ext
11033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11034 (eval $ac_compile) 2>&5
11035 ac_status=$?
11036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11037 test $ac_status = 0; }; then
11038 case `/usr/bin/file conftest.o` in
11039 *64-bit*)
11040 case $lt_cv_prog_gnu_ld in
11041 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11042 *)
11043 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11044 LD="${LD-ld} -64"
11045 fi
11046 ;;
11047 esac
11048 ;;
11049 esac
11050 fi
11051 rm -rf conftest*
11052 ;;
11053esac
11054
11055need_locks="$enable_libtool_lock"
11056
11057
11058 case $host_os in
11059 rhapsody* | darwin*)
11060 if test -n "$ac_tool_prefix"; then
11061 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11062set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11064$as_echo_n "checking for $ac_word... " >&6; }
11065if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
11066 $as_echo_n "(cached) " >&6
11067else
11068 if test -n "$DSYMUTIL"; then
11069 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11070else
11071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11072for as_dir in $PATH
11073do
11074 IFS=$as_save_IFS
11075 test -z "$as_dir" && as_dir=.
11076 for ac_exec_ext in '' $ac_executable_extensions; do
11077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11078 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11080 break 2
11081 fi
11082done
11083 done
11084IFS=$as_save_IFS
11085
11086fi
11087fi
11088DSYMUTIL=$ac_cv_prog_DSYMUTIL
11089if test -n "$DSYMUTIL"; then
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11091$as_echo "$DSYMUTIL" >&6; }
11092else
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094$as_echo "no" >&6; }
11095fi
11096
11097
11098fi
11099if test -z "$ac_cv_prog_DSYMUTIL"; then
11100 ac_ct_DSYMUTIL=$DSYMUTIL
11101 # Extract the first word of "dsymutil", so it can be a program name with args.
11102set dummy dsymutil; ac_word=$2
11103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11104$as_echo_n "checking for $ac_word... " >&6; }
11105if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
11106 $as_echo_n "(cached) " >&6
11107else
11108 if test -n "$ac_ct_DSYMUTIL"; then
11109 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11110else
11111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11112for as_dir in $PATH
11113do
11114 IFS=$as_save_IFS
11115 test -z "$as_dir" && as_dir=.
11116 for ac_exec_ext in '' $ac_executable_extensions; do
11117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11118 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11120 break 2
11121 fi
11122done
11123 done
11124IFS=$as_save_IFS
11125
11126fi
11127fi
11128ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11129if test -n "$ac_ct_DSYMUTIL"; then
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11131$as_echo "$ac_ct_DSYMUTIL" >&6; }
11132else
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11134$as_echo "no" >&6; }
11135fi
11136
11137 if test "x$ac_ct_DSYMUTIL" = x; then
11138 DSYMUTIL=":"
11139 else
11140 case $cross_compiling:$ac_tool_warned in
11141yes:)
11142{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11143$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11144ac_tool_warned=yes ;;
11145esac
11146 DSYMUTIL=$ac_ct_DSYMUTIL
11147 fi
11148else
11149 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11150fi
11151
11152 if test -n "$ac_tool_prefix"; then
11153 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11154set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11156$as_echo_n "checking for $ac_word... " >&6; }
11157if test "${ac_cv_prog_NMEDIT+set}" = set; then :
11158 $as_echo_n "(cached) " >&6
11159else
11160 if test -n "$NMEDIT"; then
11161 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11162else
11163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164for as_dir in $PATH
11165do
11166 IFS=$as_save_IFS
11167 test -z "$as_dir" && as_dir=.
11168 for ac_exec_ext in '' $ac_executable_extensions; do
11169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11170 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11172 break 2
11173 fi
11174done
11175 done
11176IFS=$as_save_IFS
11177
11178fi
11179fi
11180NMEDIT=$ac_cv_prog_NMEDIT
11181if test -n "$NMEDIT"; then
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11183$as_echo "$NMEDIT" >&6; }
11184else
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186$as_echo "no" >&6; }
11187fi
11188
11189
11190fi
11191if test -z "$ac_cv_prog_NMEDIT"; then
11192 ac_ct_NMEDIT=$NMEDIT
11193 # Extract the first word of "nmedit", so it can be a program name with args.
11194set dummy nmedit; ac_word=$2
11195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11196$as_echo_n "checking for $ac_word... " >&6; }
11197if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
11198 $as_echo_n "(cached) " >&6
11199else
11200 if test -n "$ac_ct_NMEDIT"; then
11201 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11202else
11203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11204for as_dir in $PATH
11205do
11206 IFS=$as_save_IFS
11207 test -z "$as_dir" && as_dir=.
11208 for ac_exec_ext in '' $ac_executable_extensions; do
11209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11210 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11212 break 2
11213 fi
11214done
11215 done
11216IFS=$as_save_IFS
11217
11218fi
11219fi
11220ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11221if test -n "$ac_ct_NMEDIT"; then
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11223$as_echo "$ac_ct_NMEDIT" >&6; }
11224else
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11226$as_echo "no" >&6; }
11227fi
11228
11229 if test "x$ac_ct_NMEDIT" = x; then
11230 NMEDIT=":"
11231 else
11232 case $cross_compiling:$ac_tool_warned in
11233yes:)
11234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11236ac_tool_warned=yes ;;
11237esac
11238 NMEDIT=$ac_ct_NMEDIT
11239 fi
11240else
11241 NMEDIT="$ac_cv_prog_NMEDIT"
11242fi
11243
11244 if test -n "$ac_tool_prefix"; then
11245 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11246set dummy ${ac_tool_prefix}lipo; ac_word=$2
11247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11248$as_echo_n "checking for $ac_word... " >&6; }
11249if test "${ac_cv_prog_LIPO+set}" = set; then :
11250 $as_echo_n "(cached) " >&6
11251else
11252 if test -n "$LIPO"; then
11253 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11254else
11255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256for as_dir in $PATH
11257do
11258 IFS=$as_save_IFS
11259 test -z "$as_dir" && as_dir=.
11260 for ac_exec_ext in '' $ac_executable_extensions; do
11261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11262 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11264 break 2
11265 fi
11266done
11267 done
11268IFS=$as_save_IFS
11269
11270fi
11271fi
11272LIPO=$ac_cv_prog_LIPO
11273if test -n "$LIPO"; then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11275$as_echo "$LIPO" >&6; }
11276else
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278$as_echo "no" >&6; }
11279fi
11280
11281
11282fi
11283if test -z "$ac_cv_prog_LIPO"; then
11284 ac_ct_LIPO=$LIPO
11285 # Extract the first word of "lipo", so it can be a program name with args.
11286set dummy lipo; ac_word=$2
11287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11288$as_echo_n "checking for $ac_word... " >&6; }
11289if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
11290 $as_echo_n "(cached) " >&6
11291else
11292 if test -n "$ac_ct_LIPO"; then
11293 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11294else
11295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11296for as_dir in $PATH
11297do
11298 IFS=$as_save_IFS
11299 test -z "$as_dir" && as_dir=.
11300 for ac_exec_ext in '' $ac_executable_extensions; do
11301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11302 ac_cv_prog_ac_ct_LIPO="lipo"
11303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11304 break 2
11305 fi
11306done
11307 done
11308IFS=$as_save_IFS
11309
11310fi
11311fi
11312ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11313if test -n "$ac_ct_LIPO"; then
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11315$as_echo "$ac_ct_LIPO" >&6; }
11316else
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11318$as_echo "no" >&6; }
11319fi
11320
11321 if test "x$ac_ct_LIPO" = x; then
11322 LIPO=":"
11323 else
11324 case $cross_compiling:$ac_tool_warned in
11325yes:)
11326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11328ac_tool_warned=yes ;;
11329esac
11330 LIPO=$ac_ct_LIPO
11331 fi
11332else
11333 LIPO="$ac_cv_prog_LIPO"
11334fi
11335
11336 if test -n "$ac_tool_prefix"; then
11337 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11338set dummy ${ac_tool_prefix}otool; ac_word=$2
11339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11340$as_echo_n "checking for $ac_word... " >&6; }
11341if test "${ac_cv_prog_OTOOL+set}" = set; then :
11342 $as_echo_n "(cached) " >&6
11343else
11344 if test -n "$OTOOL"; then
11345 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11346else
11347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11348for as_dir in $PATH
11349do
11350 IFS=$as_save_IFS
11351 test -z "$as_dir" && as_dir=.
11352 for ac_exec_ext in '' $ac_executable_extensions; do
11353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11354 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11356 break 2
11357 fi
11358done
11359 done
11360IFS=$as_save_IFS
11361
11362fi
11363fi
11364OTOOL=$ac_cv_prog_OTOOL
11365if test -n "$OTOOL"; then
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11367$as_echo "$OTOOL" >&6; }
11368else
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370$as_echo "no" >&6; }
11371fi
11372
11373
11374fi
11375if test -z "$ac_cv_prog_OTOOL"; then
11376 ac_ct_OTOOL=$OTOOL
11377 # Extract the first word of "otool", so it can be a program name with args.
11378set dummy otool; ac_word=$2
11379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11380$as_echo_n "checking for $ac_word... " >&6; }
11381if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
11382 $as_echo_n "(cached) " >&6
11383else
11384 if test -n "$ac_ct_OTOOL"; then
11385 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11386else
11387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11388for as_dir in $PATH
11389do
11390 IFS=$as_save_IFS
11391 test -z "$as_dir" && as_dir=.
11392 for ac_exec_ext in '' $ac_executable_extensions; do
11393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11394 ac_cv_prog_ac_ct_OTOOL="otool"
11395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11396 break 2
11397 fi
11398done
11399 done
11400IFS=$as_save_IFS
11401
11402fi
11403fi
11404ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11405if test -n "$ac_ct_OTOOL"; then
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11407$as_echo "$ac_ct_OTOOL" >&6; }
11408else
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410$as_echo "no" >&6; }
11411fi
11412
11413 if test "x$ac_ct_OTOOL" = x; then
11414 OTOOL=":"
11415 else
11416 case $cross_compiling:$ac_tool_warned in
11417yes:)
11418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11420ac_tool_warned=yes ;;
11421esac
11422 OTOOL=$ac_ct_OTOOL
11423 fi
11424else
11425 OTOOL="$ac_cv_prog_OTOOL"
11426fi
11427
11428 if test -n "$ac_tool_prefix"; then
11429 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11430set dummy ${ac_tool_prefix}otool64; ac_word=$2
11431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11432$as_echo_n "checking for $ac_word... " >&6; }
11433if test "${ac_cv_prog_OTOOL64+set}" = set; then :
11434 $as_echo_n "(cached) " >&6
11435else
11436 if test -n "$OTOOL64"; then
11437 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11438else
11439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11440for as_dir in $PATH
11441do
11442 IFS=$as_save_IFS
11443 test -z "$as_dir" && as_dir=.
11444 for ac_exec_ext in '' $ac_executable_extensions; do
11445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11446 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11448 break 2
11449 fi
11450done
11451 done
11452IFS=$as_save_IFS
11453
11454fi
11455fi
11456OTOOL64=$ac_cv_prog_OTOOL64
11457if test -n "$OTOOL64"; then
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11459$as_echo "$OTOOL64" >&6; }
11460else
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11462$as_echo "no" >&6; }
11463fi
11464
11465
11466fi
11467if test -z "$ac_cv_prog_OTOOL64"; then
11468 ac_ct_OTOOL64=$OTOOL64
11469 # Extract the first word of "otool64", so it can be a program name with args.
11470set dummy otool64; ac_word=$2
11471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11472$as_echo_n "checking for $ac_word... " >&6; }
11473if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
11474 $as_echo_n "(cached) " >&6
11475else
11476 if test -n "$ac_ct_OTOOL64"; then
11477 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11478else
11479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11480for as_dir in $PATH
11481do
11482 IFS=$as_save_IFS
11483 test -z "$as_dir" && as_dir=.
11484 for ac_exec_ext in '' $ac_executable_extensions; do
11485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11486 ac_cv_prog_ac_ct_OTOOL64="otool64"
11487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11488 break 2
11489 fi
11490done
11491 done
11492IFS=$as_save_IFS
11493
11494fi
11495fi
11496ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11497if test -n "$ac_ct_OTOOL64"; then
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11499$as_echo "$ac_ct_OTOOL64" >&6; }
11500else
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502$as_echo "no" >&6; }
11503fi
11504
11505 if test "x$ac_ct_OTOOL64" = x; then
11506 OTOOL64=":"
11507 else
11508 case $cross_compiling:$ac_tool_warned in
11509yes:)
11510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11512ac_tool_warned=yes ;;
11513esac
11514 OTOOL64=$ac_ct_OTOOL64
11515 fi
11516else
11517 OTOOL64="$ac_cv_prog_OTOOL64"
11518fi
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11547$as_echo_n "checking for -single_module linker flag... " >&6; }
11548if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
11549 $as_echo_n "(cached) " >&6
11550else
11551 lt_cv_apple_cc_single_mod=no
11552 if test -z "${LT_MULTI_MODULE}"; then
11553 # By default we will add the -single_module flag. You can override
11554 # by either setting the environment variable LT_MULTI_MODULE
11555 # non-empty at configure time, or by adding -multi_module to the
11556 # link flags.
11557 rm -rf libconftest.dylib*
11558 echo "int foo(void){return 1;}" > conftest.c
11559 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11560-dynamiclib -Wl,-single_module conftest.c" >&5
11561 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11562 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11563 _lt_result=$?
11564 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11565 lt_cv_apple_cc_single_mod=yes
11566 else
11567 cat conftest.err >&5
11568 fi
11569 rm -rf libconftest.dylib*
11570 rm -f conftest.*
11571 fi
11572fi
11573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11574$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11576$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11577if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
11578 $as_echo_n "(cached) " >&6
11579else
11580 lt_cv_ld_exported_symbols_list=no
11581 save_LDFLAGS=$LDFLAGS
11582 echo "_main" > conftest.sym
11583 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11585/* end confdefs.h. */
11586
11587int
11588main ()
11589{
11590
11591 ;
11592 return 0;
11593}
11594_ACEOF
11595if ac_fn_c_try_link "$LINENO"; then :
11596 lt_cv_ld_exported_symbols_list=yes
11597else
11598 lt_cv_ld_exported_symbols_list=no
11599fi
11600rm -f core conftest.err conftest.$ac_objext \
11601 conftest$ac_exeext conftest.$ac_ext
11602 LDFLAGS="$save_LDFLAGS"
11603
11604fi
11605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11606$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy0c60a692010-11-04 01:09:47 +000011607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11608$as_echo_n "checking for -force_load linker flag... " >&6; }
11609if test "${lt_cv_ld_force_load+set}" = set; then :
11610 $as_echo_n "(cached) " >&6
11611else
11612 lt_cv_ld_force_load=no
11613 cat > conftest.c << _LT_EOF
11614int forced_loaded() { return 2;}
11615_LT_EOF
11616 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11617 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11618 echo "$AR cru libconftest.a conftest.o" >&5
11619 $AR cru libconftest.a conftest.o 2>&5
11620 echo "$RANLIB libconftest.a" >&5
11621 $RANLIB libconftest.a 2>&5
11622 cat > conftest.c << _LT_EOF
11623int main() { return 0;}
11624_LT_EOF
11625 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11626 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11627 _lt_result=$?
11628 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11629 lt_cv_ld_force_load=yes
11630 else
11631 cat conftest.err >&5
11632 fi
11633 rm -f conftest.err libconftest.a conftest conftest.c
11634 rm -rf conftest.dSYM
11635
11636fi
11637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11638$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000011639 case $host_os in
11640 rhapsody* | darwin1.[012])
11641 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11642 darwin1.*)
11643 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11644 darwin*) # darwin 5.x on
11645 # if running on 10.5 or later, the deployment target defaults
11646 # to the OS version, if on x86, and 10.4, the deployment
11647 # target defaults to 10.4. Don't you love it?
11648 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11649 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11650 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11651 10.[012]*)
11652 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11653 10.*)
11654 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11655 esac
11656 ;;
11657 esac
11658 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11659 _lt_dar_single_mod='$single_module'
11660 fi
11661 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11662 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11663 else
11664 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11665 fi
cristy0c60a692010-11-04 01:09:47 +000011666 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000011667 _lt_dsymutil='~$DSYMUTIL $lib || :'
11668 else
11669 _lt_dsymutil=
11670 fi
11671 ;;
11672 esac
11673
11674for ac_header in dlfcn.h
11675do :
11676 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11677"
11678if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11679 cat >>confdefs.h <<_ACEOF
11680#define HAVE_DLFCN_H 1
11681_ACEOF
11682
11683fi
11684
11685done
11686
11687
11688
cristy73bd4a52010-10-05 11:24:23 +000011689
11690
11691
11692# Set options
11693enable_win32_dll=yes
11694
11695case $host in
cristy0c60a692010-11-04 01:09:47 +000011696*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011697 if test -n "$ac_tool_prefix"; then
11698 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11699set dummy ${ac_tool_prefix}as; ac_word=$2
11700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11701$as_echo_n "checking for $ac_word... " >&6; }
11702if test "${ac_cv_prog_AS+set}" = set; then :
11703 $as_echo_n "(cached) " >&6
11704else
11705 if test -n "$AS"; then
11706 ac_cv_prog_AS="$AS" # Let the user override the test.
11707else
11708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709for as_dir in $PATH
11710do
11711 IFS=$as_save_IFS
11712 test -z "$as_dir" && as_dir=.
11713 for ac_exec_ext in '' $ac_executable_extensions; do
11714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11715 ac_cv_prog_AS="${ac_tool_prefix}as"
11716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11717 break 2
11718 fi
11719done
11720 done
11721IFS=$as_save_IFS
11722
11723fi
11724fi
11725AS=$ac_cv_prog_AS
11726if test -n "$AS"; then
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11728$as_echo "$AS" >&6; }
11729else
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731$as_echo "no" >&6; }
11732fi
11733
11734
11735fi
11736if test -z "$ac_cv_prog_AS"; then
11737 ac_ct_AS=$AS
11738 # Extract the first word of "as", so it can be a program name with args.
11739set dummy as; ac_word=$2
11740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11741$as_echo_n "checking for $ac_word... " >&6; }
11742if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
11743 $as_echo_n "(cached) " >&6
11744else
11745 if test -n "$ac_ct_AS"; then
11746 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11747else
11748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749for as_dir in $PATH
11750do
11751 IFS=$as_save_IFS
11752 test -z "$as_dir" && as_dir=.
11753 for ac_exec_ext in '' $ac_executable_extensions; do
11754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11755 ac_cv_prog_ac_ct_AS="as"
11756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11757 break 2
11758 fi
11759done
11760 done
11761IFS=$as_save_IFS
11762
11763fi
11764fi
11765ac_ct_AS=$ac_cv_prog_ac_ct_AS
11766if test -n "$ac_ct_AS"; then
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11768$as_echo "$ac_ct_AS" >&6; }
11769else
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11771$as_echo "no" >&6; }
11772fi
11773
11774 if test "x$ac_ct_AS" = x; then
11775 AS="false"
11776 else
11777 case $cross_compiling:$ac_tool_warned in
11778yes:)
11779{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11780$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11781ac_tool_warned=yes ;;
11782esac
11783 AS=$ac_ct_AS
11784 fi
11785else
11786 AS="$ac_cv_prog_AS"
11787fi
11788
11789 if test -n "$ac_tool_prefix"; then
11790 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11791set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11793$as_echo_n "checking for $ac_word... " >&6; }
11794if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
11795 $as_echo_n "(cached) " >&6
11796else
11797 if test -n "$DLLTOOL"; then
11798 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11799else
11800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801for as_dir in $PATH
11802do
11803 IFS=$as_save_IFS
11804 test -z "$as_dir" && as_dir=.
11805 for ac_exec_ext in '' $ac_executable_extensions; do
11806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11807 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11809 break 2
11810 fi
11811done
11812 done
11813IFS=$as_save_IFS
11814
11815fi
11816fi
11817DLLTOOL=$ac_cv_prog_DLLTOOL
11818if test -n "$DLLTOOL"; then
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11820$as_echo "$DLLTOOL" >&6; }
11821else
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823$as_echo "no" >&6; }
11824fi
11825
11826
11827fi
11828if test -z "$ac_cv_prog_DLLTOOL"; then
11829 ac_ct_DLLTOOL=$DLLTOOL
11830 # Extract the first word of "dlltool", so it can be a program name with args.
11831set dummy dlltool; ac_word=$2
11832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11833$as_echo_n "checking for $ac_word... " >&6; }
11834if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
11835 $as_echo_n "(cached) " >&6
11836else
11837 if test -n "$ac_ct_DLLTOOL"; then
11838 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11839else
11840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11841for as_dir in $PATH
11842do
11843 IFS=$as_save_IFS
11844 test -z "$as_dir" && as_dir=.
11845 for ac_exec_ext in '' $ac_executable_extensions; do
11846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11847 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11849 break 2
11850 fi
11851done
11852 done
11853IFS=$as_save_IFS
11854
11855fi
11856fi
11857ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11858if test -n "$ac_ct_DLLTOOL"; then
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11860$as_echo "$ac_ct_DLLTOOL" >&6; }
11861else
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11863$as_echo "no" >&6; }
11864fi
11865
11866 if test "x$ac_ct_DLLTOOL" = x; then
11867 DLLTOOL="false"
11868 else
11869 case $cross_compiling:$ac_tool_warned in
11870yes:)
11871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11873ac_tool_warned=yes ;;
11874esac
11875 DLLTOOL=$ac_ct_DLLTOOL
11876 fi
11877else
11878 DLLTOOL="$ac_cv_prog_DLLTOOL"
11879fi
11880
11881 if test -n "$ac_tool_prefix"; then
11882 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11883set dummy ${ac_tool_prefix}objdump; ac_word=$2
11884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885$as_echo_n "checking for $ac_word... " >&6; }
11886if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11887 $as_echo_n "(cached) " >&6
11888else
11889 if test -n "$OBJDUMP"; then
11890 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11891else
11892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893for as_dir in $PATH
11894do
11895 IFS=$as_save_IFS
11896 test -z "$as_dir" && as_dir=.
11897 for ac_exec_ext in '' $ac_executable_extensions; do
11898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11899 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11901 break 2
11902 fi
11903done
11904 done
11905IFS=$as_save_IFS
11906
11907fi
11908fi
11909OBJDUMP=$ac_cv_prog_OBJDUMP
11910if test -n "$OBJDUMP"; then
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11912$as_echo "$OBJDUMP" >&6; }
11913else
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915$as_echo "no" >&6; }
11916fi
11917
11918
11919fi
11920if test -z "$ac_cv_prog_OBJDUMP"; then
11921 ac_ct_OBJDUMP=$OBJDUMP
11922 # Extract the first word of "objdump", so it can be a program name with args.
11923set dummy objdump; ac_word=$2
11924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11925$as_echo_n "checking for $ac_word... " >&6; }
11926if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11927 $as_echo_n "(cached) " >&6
11928else
11929 if test -n "$ac_ct_OBJDUMP"; then
11930 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11931else
11932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11933for as_dir in $PATH
11934do
11935 IFS=$as_save_IFS
11936 test -z "$as_dir" && as_dir=.
11937 for ac_exec_ext in '' $ac_executable_extensions; do
11938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11939 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11941 break 2
11942 fi
11943done
11944 done
11945IFS=$as_save_IFS
11946
11947fi
11948fi
11949ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11950if test -n "$ac_ct_OBJDUMP"; then
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11952$as_echo "$ac_ct_OBJDUMP" >&6; }
11953else
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11955$as_echo "no" >&6; }
11956fi
11957
11958 if test "x$ac_ct_OBJDUMP" = x; then
11959 OBJDUMP="false"
11960 else
11961 case $cross_compiling:$ac_tool_warned in
11962yes:)
11963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11965ac_tool_warned=yes ;;
11966esac
11967 OBJDUMP=$ac_ct_OBJDUMP
11968 fi
11969else
11970 OBJDUMP="$ac_cv_prog_OBJDUMP"
11971fi
11972
11973 ;;
11974esac
11975
11976test -z "$AS" && AS=as
11977
11978
11979
11980
11981
11982test -z "$DLLTOOL" && DLLTOOL=dlltool
11983
11984
11985
11986
11987
11988test -z "$OBJDUMP" && OBJDUMP=objdump
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998 # Check whether --enable-shared was given.
11999if test "${enable_shared+set}" = set; then :
12000 enableval=$enable_shared; p=${PACKAGE-default}
12001 case $enableval in
12002 yes) enable_shared=yes ;;
12003 no) enable_shared=no ;;
12004 *)
12005 enable_shared=no
12006 # Look at the argument we got. We use all the common list separators.
12007 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12008 for pkg in $enableval; do
12009 IFS="$lt_save_ifs"
12010 if test "X$pkg" = "X$p"; then
12011 enable_shared=yes
12012 fi
12013 done
12014 IFS="$lt_save_ifs"
12015 ;;
12016 esac
12017else
12018 enable_shared=yes
12019fi
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029 # Check whether --enable-static was given.
12030if test "${enable_static+set}" = set; then :
12031 enableval=$enable_static; p=${PACKAGE-default}
12032 case $enableval in
12033 yes) enable_static=yes ;;
12034 no) enable_static=no ;;
12035 *)
12036 enable_static=no
12037 # Look at the argument we got. We use all the common list separators.
12038 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12039 for pkg in $enableval; do
12040 IFS="$lt_save_ifs"
12041 if test "X$pkg" = "X$p"; then
12042 enable_static=yes
12043 fi
12044 done
12045 IFS="$lt_save_ifs"
12046 ;;
12047 esac
12048else
12049 enable_static=yes
12050fi
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061# Check whether --with-pic was given.
12062if test "${with_pic+set}" = set; then :
12063 withval=$with_pic; pic_mode="$withval"
12064else
12065 pic_mode=default
12066fi
12067
12068
12069test -z "$pic_mode" && pic_mode=default
12070
12071
12072
12073
12074
12075
12076
12077 # Check whether --enable-fast-install was given.
12078if test "${enable_fast_install+set}" = set; then :
12079 enableval=$enable_fast_install; p=${PACKAGE-default}
12080 case $enableval in
12081 yes) enable_fast_install=yes ;;
12082 no) enable_fast_install=no ;;
12083 *)
12084 enable_fast_install=no
12085 # Look at the argument we got. We use all the common list separators.
12086 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12087 for pkg in $enableval; do
12088 IFS="$lt_save_ifs"
12089 if test "X$pkg" = "X$p"; then
12090 enable_fast_install=yes
12091 fi
12092 done
12093 IFS="$lt_save_ifs"
12094 ;;
12095 esac
12096else
12097 enable_fast_install=yes
12098fi
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110# This can be used to rebuild libtool when needed
12111LIBTOOL_DEPS="$ltmain"
12112
12113# Always use our own libtool.
12114LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
cristy0c60a692010-11-04 01:09:47 +000012140
cristy73bd4a52010-10-05 11:24:23 +000012141test -z "$LN_S" && LN_S="ln -s"
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156if test -n "${ZSH_VERSION+set}" ; then
12157 setopt NO_GLOB_SUBST
12158fi
12159
12160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12161$as_echo_n "checking for objdir... " >&6; }
12162if test "${lt_cv_objdir+set}" = set; then :
12163 $as_echo_n "(cached) " >&6
12164else
12165 rm -f .libs 2>/dev/null
12166mkdir .libs 2>/dev/null
12167if test -d .libs; then
12168 lt_cv_objdir=.libs
12169else
12170 # MS-DOS does not allow filenames that begin with a dot.
12171 lt_cv_objdir=_libs
12172fi
12173rmdir .libs 2>/dev/null
12174fi
12175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12176$as_echo "$lt_cv_objdir" >&6; }
12177objdir=$lt_cv_objdir
12178
12179
12180
12181
12182
12183cat >>confdefs.h <<_ACEOF
12184#define LT_OBJDIR "$lt_cv_objdir/"
12185_ACEOF
12186
12187
12188
12189
cristy73bd4a52010-10-05 11:24:23 +000012190case $host_os in
12191aix3*)
12192 # AIX sometimes has problems with the GCC collect2 program. For some
12193 # reason, if we set the COLLECT_NAMES environment variable, the problems
12194 # vanish in a puff of smoke.
12195 if test "X${COLLECT_NAMES+set}" != Xset; then
12196 COLLECT_NAMES=
12197 export COLLECT_NAMES
12198 fi
12199 ;;
12200esac
12201
cristy73bd4a52010-10-05 11:24:23 +000012202# Global variables:
12203ofile=libtool
12204can_build_shared=yes
12205
12206# All known linkers require a `.a' archive for static linking (except MSVC,
12207# which needs '.lib').
12208libext=a
12209
12210with_gnu_ld="$lt_cv_prog_gnu_ld"
12211
12212old_CC="$CC"
12213old_CFLAGS="$CFLAGS"
12214
12215# Set sane defaults for various variables
12216test -z "$CC" && CC=cc
12217test -z "$LTCC" && LTCC=$CC
12218test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12219test -z "$LD" && LD=ld
12220test -z "$ac_objext" && ac_objext=o
12221
12222for cc_temp in $compiler""; do
12223 case $cc_temp in
12224 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12225 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12226 \-*) ;;
12227 *) break;;
12228 esac
12229done
cristy0c60a692010-11-04 01:09:47 +000012230cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000012231
12232
12233# Only perform the check for file, if the check method requires it
12234test -z "$MAGIC_CMD" && MAGIC_CMD=file
12235case $deplibs_check_method in
12236file_magic*)
12237 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12239$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12240if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12241 $as_echo_n "(cached) " >&6
12242else
12243 case $MAGIC_CMD in
12244[\\/*] | ?:[\\/]*)
12245 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12246 ;;
12247*)
12248 lt_save_MAGIC_CMD="$MAGIC_CMD"
12249 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12250 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12251 for ac_dir in $ac_dummy; do
12252 IFS="$lt_save_ifs"
12253 test -z "$ac_dir" && ac_dir=.
12254 if test -f $ac_dir/${ac_tool_prefix}file; then
12255 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12256 if test -n "$file_magic_test_file"; then
12257 case $deplibs_check_method in
12258 "file_magic "*)
12259 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12260 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12261 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12262 $EGREP "$file_magic_regex" > /dev/null; then
12263 :
12264 else
12265 cat <<_LT_EOF 1>&2
12266
12267*** Warning: the command libtool uses to detect shared libraries,
12268*** $file_magic_cmd, produces output that libtool cannot recognize.
12269*** The result is that libtool may fail to recognize shared libraries
12270*** as such. This will affect the creation of libtool libraries that
12271*** depend on shared libraries, but programs linked with such libtool
12272*** libraries will work regardless of this problem. Nevertheless, you
12273*** may want to report the problem to your system manager and/or to
12274*** bug-libtool@gnu.org
12275
12276_LT_EOF
12277 fi ;;
12278 esac
12279 fi
12280 break
12281 fi
12282 done
12283 IFS="$lt_save_ifs"
12284 MAGIC_CMD="$lt_save_MAGIC_CMD"
12285 ;;
12286esac
12287fi
12288
12289MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12290if test -n "$MAGIC_CMD"; then
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12292$as_echo "$MAGIC_CMD" >&6; }
12293else
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295$as_echo "no" >&6; }
12296fi
12297
12298
12299
12300
12301
12302if test -z "$lt_cv_path_MAGIC_CMD"; then
12303 if test -n "$ac_tool_prefix"; then
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12305$as_echo_n "checking for file... " >&6; }
12306if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12307 $as_echo_n "(cached) " >&6
12308else
12309 case $MAGIC_CMD in
12310[\\/*] | ?:[\\/]*)
12311 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12312 ;;
12313*)
12314 lt_save_MAGIC_CMD="$MAGIC_CMD"
12315 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12316 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12317 for ac_dir in $ac_dummy; do
12318 IFS="$lt_save_ifs"
12319 test -z "$ac_dir" && ac_dir=.
12320 if test -f $ac_dir/file; then
12321 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12322 if test -n "$file_magic_test_file"; then
12323 case $deplibs_check_method in
12324 "file_magic "*)
12325 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12326 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12327 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12328 $EGREP "$file_magic_regex" > /dev/null; then
12329 :
12330 else
12331 cat <<_LT_EOF 1>&2
12332
12333*** Warning: the command libtool uses to detect shared libraries,
12334*** $file_magic_cmd, produces output that libtool cannot recognize.
12335*** The result is that libtool may fail to recognize shared libraries
12336*** as such. This will affect the creation of libtool libraries that
12337*** depend on shared libraries, but programs linked with such libtool
12338*** libraries will work regardless of this problem. Nevertheless, you
12339*** may want to report the problem to your system manager and/or to
12340*** bug-libtool@gnu.org
12341
12342_LT_EOF
12343 fi ;;
12344 esac
12345 fi
12346 break
12347 fi
12348 done
12349 IFS="$lt_save_ifs"
12350 MAGIC_CMD="$lt_save_MAGIC_CMD"
12351 ;;
12352esac
12353fi
12354
12355MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12356if test -n "$MAGIC_CMD"; then
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12358$as_echo "$MAGIC_CMD" >&6; }
12359else
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361$as_echo "no" >&6; }
12362fi
12363
12364
12365 else
12366 MAGIC_CMD=:
12367 fi
12368fi
12369
12370 fi
12371 ;;
12372esac
12373
12374# Use C for the default configuration in the libtool script
12375
12376lt_save_CC="$CC"
12377ac_ext=c
12378ac_cpp='$CPP $CPPFLAGS'
12379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12381ac_compiler_gnu=$ac_cv_c_compiler_gnu
12382
12383
12384# Source file extension for C test sources.
12385ac_ext=c
12386
12387# Object file extension for compiled C test sources.
12388objext=o
12389objext=$objext
12390
12391# Code to be used in simple compile tests
12392lt_simple_compile_test_code="int some_variable = 0;"
12393
12394# Code to be used in simple link tests
12395lt_simple_link_test_code='int main(){return(0);}'
12396
12397
12398
12399
12400
12401
12402
12403# If no C compiler was specified, use CC.
12404LTCC=${LTCC-"$CC"}
12405
12406# If no C compiler flags were specified, use CFLAGS.
12407LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12408
12409# Allow CC to be a program name with arguments.
12410compiler=$CC
12411
12412# Save the default compiler, since it gets overwritten when the other
12413# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12414compiler_DEFAULT=$CC
12415
12416# save warnings/boilerplate of simple test code
12417ac_outfile=conftest.$ac_objext
12418echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12419eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12420_lt_compiler_boilerplate=`cat conftest.err`
12421$RM conftest*
12422
12423ac_outfile=conftest.$ac_objext
12424echo "$lt_simple_link_test_code" >conftest.$ac_ext
12425eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12426_lt_linker_boilerplate=`cat conftest.err`
12427$RM -r conftest*
12428
12429
12430## CAVEAT EMPTOR:
12431## There is no encapsulation within the following macros, do not change
12432## the running order or otherwise move them around unless you know exactly
12433## what you are doing...
12434if test -n "$compiler"; then
12435
12436lt_prog_compiler_no_builtin_flag=
12437
12438if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000012439 case $cc_basename in
12440 nvcc*)
12441 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12442 *)
12443 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12444 esac
cristy73bd4a52010-10-05 11:24:23 +000012445
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12447$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12448if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
12449 $as_echo_n "(cached) " >&6
12450else
12451 lt_cv_prog_compiler_rtti_exceptions=no
12452 ac_outfile=conftest.$ac_objext
12453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12454 lt_compiler_flag="-fno-rtti -fno-exceptions"
12455 # Insert the option either (1) after the last *FLAGS variable, or
12456 # (2) before a word containing "conftest.", or (3) at the end.
12457 # Note that $ac_compile itself does not contain backslashes and begins
12458 # with a dollar sign (not a hyphen), so the echo should work correctly.
12459 # The option is referenced via a variable to avoid confusing sed.
12460 lt_compile=`echo "$ac_compile" | $SED \
12461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12463 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000012464 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000012465 (eval "$lt_compile" 2>conftest.err)
12466 ac_status=$?
12467 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000012468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000012469 if (exit $ac_status) && test -s "$ac_outfile"; then
12470 # The compiler can only warn and ignore the option if not recognized
12471 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000012472 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000012473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12474 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12475 lt_cv_prog_compiler_rtti_exceptions=yes
12476 fi
12477 fi
12478 $RM conftest*
12479
12480fi
12481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12482$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12483
12484if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12485 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12486else
12487 :
12488fi
12489
12490fi
12491
12492
12493
12494
12495
12496
12497 lt_prog_compiler_wl=
12498lt_prog_compiler_pic=
12499lt_prog_compiler_static=
12500
12501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12502$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12503
12504 if test "$GCC" = yes; then
12505 lt_prog_compiler_wl='-Wl,'
12506 lt_prog_compiler_static='-static'
12507
12508 case $host_os in
12509 aix*)
12510 # All AIX code is PIC.
12511 if test "$host_cpu" = ia64; then
12512 # AIX 5 now supports IA64 processor
12513 lt_prog_compiler_static='-Bstatic'
12514 fi
12515 ;;
12516
12517 amigaos*)
12518 case $host_cpu in
12519 powerpc)
12520 # see comment about AmigaOS4 .so support
12521 lt_prog_compiler_pic='-fPIC'
12522 ;;
12523 m68k)
12524 # FIXME: we need at least 68020 code to build shared libraries, but
12525 # adding the `-m68020' flag to GCC prevents building anything better,
12526 # like `-m68040'.
12527 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12528 ;;
12529 esac
12530 ;;
12531
12532 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12533 # PIC is the default for these OSes.
12534 ;;
12535
12536 mingw* | cygwin* | pw32* | os2* | cegcc*)
12537 # This hack is so that the source file can tell whether it is being
12538 # built for inclusion in a dll (and should export symbols for example).
12539 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12540 # (--disable-auto-import) libraries
12541 lt_prog_compiler_pic='-DDLL_EXPORT'
12542 ;;
12543
12544 darwin* | rhapsody*)
12545 # PIC is the default on this platform
12546 # Common symbols not allowed in MH_DYLIB files
12547 lt_prog_compiler_pic='-fno-common'
12548 ;;
12549
cristy0c60a692010-11-04 01:09:47 +000012550 haiku*)
12551 # PIC is the default for Haiku.
12552 # The "-static" flag exists, but is broken.
12553 lt_prog_compiler_static=
12554 ;;
12555
cristy73bd4a52010-10-05 11:24:23 +000012556 hpux*)
12557 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12558 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12559 # sets the default TLS model and affects inlining.
12560 case $host_cpu in
12561 hppa*64*)
12562 # +Z the default
12563 ;;
12564 *)
12565 lt_prog_compiler_pic='-fPIC'
12566 ;;
12567 esac
12568 ;;
12569
12570 interix[3-9]*)
12571 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12572 # Instead, we relocate shared libraries at runtime.
12573 ;;
12574
12575 msdosdjgpp*)
12576 # Just because we use GCC doesn't mean we suddenly get shared libraries
12577 # on systems that don't support them.
12578 lt_prog_compiler_can_build_shared=no
12579 enable_shared=no
12580 ;;
12581
12582 *nto* | *qnx*)
12583 # QNX uses GNU C++, but need to define -shared option too, otherwise
12584 # it will coredump.
12585 lt_prog_compiler_pic='-fPIC -shared'
12586 ;;
12587
12588 sysv4*MP*)
12589 if test -d /usr/nec; then
12590 lt_prog_compiler_pic=-Kconform_pic
12591 fi
12592 ;;
12593
12594 *)
12595 lt_prog_compiler_pic='-fPIC'
12596 ;;
12597 esac
cristy0c60a692010-11-04 01:09:47 +000012598
12599 case $cc_basename in
12600 nvcc*) # Cuda Compiler Driver 2.2
12601 lt_prog_compiler_wl='-Xlinker '
12602 lt_prog_compiler_pic='-Xcompiler -fPIC'
12603 ;;
12604 esac
cristy73bd4a52010-10-05 11:24:23 +000012605 else
12606 # PORTME Check for flag to pass linker flags through the system compiler.
12607 case $host_os in
12608 aix*)
12609 lt_prog_compiler_wl='-Wl,'
12610 if test "$host_cpu" = ia64; then
12611 # AIX 5 now supports IA64 processor
12612 lt_prog_compiler_static='-Bstatic'
12613 else
12614 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12615 fi
12616 ;;
12617
12618 mingw* | cygwin* | pw32* | os2* | cegcc*)
12619 # This hack is so that the source file can tell whether it is being
12620 # built for inclusion in a dll (and should export symbols for example).
12621 lt_prog_compiler_pic='-DDLL_EXPORT'
12622 ;;
12623
12624 hpux9* | hpux10* | hpux11*)
12625 lt_prog_compiler_wl='-Wl,'
12626 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12627 # not for PA HP-UX.
12628 case $host_cpu in
12629 hppa*64*|ia64*)
12630 # +Z the default
12631 ;;
12632 *)
12633 lt_prog_compiler_pic='+Z'
12634 ;;
12635 esac
12636 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12637 lt_prog_compiler_static='${wl}-a ${wl}archive'
12638 ;;
12639
12640 irix5* | irix6* | nonstopux*)
12641 lt_prog_compiler_wl='-Wl,'
12642 # PIC (with -KPIC) is the default.
12643 lt_prog_compiler_static='-non_shared'
12644 ;;
12645
cristy0c60a692010-11-04 01:09:47 +000012646 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000012647 case $cc_basename in
12648 # old Intel for x86_64 which still supported -KPIC.
12649 ecc*)
12650 lt_prog_compiler_wl='-Wl,'
12651 lt_prog_compiler_pic='-KPIC'
12652 lt_prog_compiler_static='-static'
12653 ;;
12654 # icc used to be incompatible with GCC.
12655 # ICC 10 doesn't accept -KPIC any more.
12656 icc* | ifort*)
12657 lt_prog_compiler_wl='-Wl,'
12658 lt_prog_compiler_pic='-fPIC'
12659 lt_prog_compiler_static='-static'
12660 ;;
12661 # Lahey Fortran 8.1.
12662 lf95*)
12663 lt_prog_compiler_wl='-Wl,'
12664 lt_prog_compiler_pic='--shared'
12665 lt_prog_compiler_static='--static'
12666 ;;
cristy0c60a692010-11-04 01:09:47 +000012667 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000012668 # Portland Group compilers (*not* the Pentium gcc compiler,
12669 # which looks to be a dead project)
12670 lt_prog_compiler_wl='-Wl,'
12671 lt_prog_compiler_pic='-fpic'
12672 lt_prog_compiler_static='-Bstatic'
12673 ;;
12674 ccc*)
12675 lt_prog_compiler_wl='-Wl,'
12676 # All Alpha code is PIC.
12677 lt_prog_compiler_static='-non_shared'
12678 ;;
cristy0c60a692010-11-04 01:09:47 +000012679 xl* | bgxl* | bgf* | mpixl*)
12680 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000012681 lt_prog_compiler_wl='-Wl,'
12682 lt_prog_compiler_pic='-qpic'
12683 lt_prog_compiler_static='-qstaticlink'
12684 ;;
12685 *)
12686 case `$CC -V 2>&1 | sed 5q` in
cristy0c60a692010-11-04 01:09:47 +000012687 *Sun\ F* | *Sun*Fortran*)
12688 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12689 lt_prog_compiler_pic='-KPIC'
12690 lt_prog_compiler_static='-Bstatic'
12691 lt_prog_compiler_wl=''
12692 ;;
cristy73bd4a52010-10-05 11:24:23 +000012693 *Sun\ C*)
12694 # Sun C 5.9
12695 lt_prog_compiler_pic='-KPIC'
12696 lt_prog_compiler_static='-Bstatic'
12697 lt_prog_compiler_wl='-Wl,'
12698 ;;
cristy73bd4a52010-10-05 11:24:23 +000012699 esac
12700 ;;
12701 esac
12702 ;;
12703
12704 newsos6)
12705 lt_prog_compiler_pic='-KPIC'
12706 lt_prog_compiler_static='-Bstatic'
12707 ;;
12708
12709 *nto* | *qnx*)
12710 # QNX uses GNU C++, but need to define -shared option too, otherwise
12711 # it will coredump.
12712 lt_prog_compiler_pic='-fPIC -shared'
12713 ;;
12714
12715 osf3* | osf4* | osf5*)
12716 lt_prog_compiler_wl='-Wl,'
12717 # All OSF/1 code is PIC.
12718 lt_prog_compiler_static='-non_shared'
12719 ;;
12720
12721 rdos*)
12722 lt_prog_compiler_static='-non_shared'
12723 ;;
12724
12725 solaris*)
12726 lt_prog_compiler_pic='-KPIC'
12727 lt_prog_compiler_static='-Bstatic'
12728 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000012729 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000012730 lt_prog_compiler_wl='-Qoption ld ';;
12731 *)
12732 lt_prog_compiler_wl='-Wl,';;
12733 esac
12734 ;;
12735
12736 sunos4*)
12737 lt_prog_compiler_wl='-Qoption ld '
12738 lt_prog_compiler_pic='-PIC'
12739 lt_prog_compiler_static='-Bstatic'
12740 ;;
12741
12742 sysv4 | sysv4.2uw2* | sysv4.3*)
12743 lt_prog_compiler_wl='-Wl,'
12744 lt_prog_compiler_pic='-KPIC'
12745 lt_prog_compiler_static='-Bstatic'
12746 ;;
12747
12748 sysv4*MP*)
12749 if test -d /usr/nec ;then
12750 lt_prog_compiler_pic='-Kconform_pic'
12751 lt_prog_compiler_static='-Bstatic'
12752 fi
12753 ;;
12754
12755 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12756 lt_prog_compiler_wl='-Wl,'
12757 lt_prog_compiler_pic='-KPIC'
12758 lt_prog_compiler_static='-Bstatic'
12759 ;;
12760
12761 unicos*)
12762 lt_prog_compiler_wl='-Wl,'
12763 lt_prog_compiler_can_build_shared=no
12764 ;;
12765
12766 uts4*)
12767 lt_prog_compiler_pic='-pic'
12768 lt_prog_compiler_static='-Bstatic'
12769 ;;
12770
12771 *)
12772 lt_prog_compiler_can_build_shared=no
12773 ;;
12774 esac
12775 fi
12776
12777case $host_os in
12778 # For platforms which do not support PIC, -DPIC is meaningless:
12779 *djgpp*)
12780 lt_prog_compiler_pic=
12781 ;;
12782 *)
12783 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12784 ;;
12785esac
12786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
12787$as_echo "$lt_prog_compiler_pic" >&6; }
12788
12789
12790
12791
12792
12793
12794#
12795# Check to make sure the PIC flag actually works.
12796#
12797if test -n "$lt_prog_compiler_pic"; then
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12799$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12800if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
12801 $as_echo_n "(cached) " >&6
12802else
12803 lt_cv_prog_compiler_pic_works=no
12804 ac_outfile=conftest.$ac_objext
12805 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12806 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12807 # Insert the option either (1) after the last *FLAGS variable, or
12808 # (2) before a word containing "conftest.", or (3) at the end.
12809 # Note that $ac_compile itself does not contain backslashes and begins
12810 # with a dollar sign (not a hyphen), so the echo should work correctly.
12811 # The option is referenced via a variable to avoid confusing sed.
12812 lt_compile=`echo "$ac_compile" | $SED \
12813 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12815 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000012816 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000012817 (eval "$lt_compile" 2>conftest.err)
12818 ac_status=$?
12819 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000012820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000012821 if (exit $ac_status) && test -s "$ac_outfile"; then
12822 # The compiler can only warn and ignore the option if not recognized
12823 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000012824 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000012825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12826 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12827 lt_cv_prog_compiler_pic_works=yes
12828 fi
12829 fi
12830 $RM conftest*
12831
12832fi
12833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12834$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12835
12836if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12837 case $lt_prog_compiler_pic in
12838 "" | " "*) ;;
12839 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12840 esac
12841else
12842 lt_prog_compiler_pic=
12843 lt_prog_compiler_can_build_shared=no
12844fi
12845
12846fi
12847
12848
12849
12850
12851
12852
12853#
12854# Check to make sure the static flag actually works.
12855#
12856wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12858$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12859if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
12860 $as_echo_n "(cached) " >&6
12861else
12862 lt_cv_prog_compiler_static_works=no
12863 save_LDFLAGS="$LDFLAGS"
12864 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12865 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12866 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12867 # The linker can only warn and ignore the option if not recognized
12868 # So say no if there are warnings
12869 if test -s conftest.err; then
12870 # Append any errors to the config.log.
12871 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000012872 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000012873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12874 if diff conftest.exp conftest.er2 >/dev/null; then
12875 lt_cv_prog_compiler_static_works=yes
12876 fi
12877 else
12878 lt_cv_prog_compiler_static_works=yes
12879 fi
12880 fi
12881 $RM -r conftest*
12882 LDFLAGS="$save_LDFLAGS"
12883
12884fi
12885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12886$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12887
12888if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12889 :
12890else
12891 lt_prog_compiler_static=
12892fi
12893
12894
12895
12896
12897
12898
12899
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12901$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12902if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12903 $as_echo_n "(cached) " >&6
12904else
12905 lt_cv_prog_compiler_c_o=no
12906 $RM -r conftest 2>/dev/null
12907 mkdir conftest
12908 cd conftest
12909 mkdir out
12910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12911
12912 lt_compiler_flag="-o out/conftest2.$ac_objext"
12913 # Insert the option either (1) after the last *FLAGS variable, or
12914 # (2) before a word containing "conftest.", or (3) at the end.
12915 # Note that $ac_compile itself does not contain backslashes and begins
12916 # with a dollar sign (not a hyphen), so the echo should work correctly.
12917 lt_compile=`echo "$ac_compile" | $SED \
12918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12920 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000012921 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000012922 (eval "$lt_compile" 2>out/conftest.err)
12923 ac_status=$?
12924 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000012925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000012926 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12927 then
12928 # The compiler can only warn and ignore the option if not recognized
12929 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000012930 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000012931 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12932 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12933 lt_cv_prog_compiler_c_o=yes
12934 fi
12935 fi
12936 chmod u+w . 2>&5
12937 $RM conftest*
12938 # SGI C++ compiler will create directory out/ii_files/ for
12939 # template instantiation
12940 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12941 $RM out/* && rmdir out
12942 cd ..
12943 $RM -r conftest
12944 $RM conftest*
12945
12946fi
12947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12948$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12949
12950
12951
12952
12953
12954
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12956$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12957if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12958 $as_echo_n "(cached) " >&6
12959else
12960 lt_cv_prog_compiler_c_o=no
12961 $RM -r conftest 2>/dev/null
12962 mkdir conftest
12963 cd conftest
12964 mkdir out
12965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12966
12967 lt_compiler_flag="-o out/conftest2.$ac_objext"
12968 # Insert the option either (1) after the last *FLAGS variable, or
12969 # (2) before a word containing "conftest.", or (3) at the end.
12970 # Note that $ac_compile itself does not contain backslashes and begins
12971 # with a dollar sign (not a hyphen), so the echo should work correctly.
12972 lt_compile=`echo "$ac_compile" | $SED \
12973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12975 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000012976 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000012977 (eval "$lt_compile" 2>out/conftest.err)
12978 ac_status=$?
12979 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000012980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000012981 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12982 then
12983 # The compiler can only warn and ignore the option if not recognized
12984 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000012985 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000012986 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12987 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12988 lt_cv_prog_compiler_c_o=yes
12989 fi
12990 fi
12991 chmod u+w . 2>&5
12992 $RM conftest*
12993 # SGI C++ compiler will create directory out/ii_files/ for
12994 # template instantiation
12995 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12996 $RM out/* && rmdir out
12997 cd ..
12998 $RM -r conftest
12999 $RM conftest*
13000
13001fi
13002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13003$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13004
13005
13006
13007
13008hard_links="nottested"
13009if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13010 # do not overwrite the value of need_locks provided by the user
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13012$as_echo_n "checking if we can lock with hard links... " >&6; }
13013 hard_links=yes
13014 $RM conftest*
13015 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13016 touch conftest.a
13017 ln conftest.a conftest.b 2>&5 || hard_links=no
13018 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13020$as_echo "$hard_links" >&6; }
13021 if test "$hard_links" = no; then
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13023$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13024 need_locks=warn
13025 fi
13026else
13027 need_locks=no
13028fi
13029
13030
13031
13032
13033
13034
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13036$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13037
13038 runpath_var=
13039 allow_undefined_flag=
13040 always_export_symbols=no
13041 archive_cmds=
13042 archive_expsym_cmds=
13043 compiler_needs_object=no
13044 enable_shared_with_static_runtimes=no
13045 export_dynamic_flag_spec=
13046 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13047 hardcode_automatic=no
13048 hardcode_direct=no
13049 hardcode_direct_absolute=no
13050 hardcode_libdir_flag_spec=
13051 hardcode_libdir_flag_spec_ld=
13052 hardcode_libdir_separator=
13053 hardcode_minus_L=no
13054 hardcode_shlibpath_var=unsupported
13055 inherit_rpath=no
13056 link_all_deplibs=unknown
13057 module_cmds=
13058 module_expsym_cmds=
13059 old_archive_from_new_cmds=
13060 old_archive_from_expsyms_cmds=
13061 thread_safe_flag_spec=
13062 whole_archive_flag_spec=
13063 # include_expsyms should be a list of space-separated symbols to be *always*
13064 # included in the symbol list
13065 include_expsyms=
13066 # exclude_expsyms can be an extended regexp of symbols to exclude
13067 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13068 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13069 # as well as any symbol that contains `d'.
13070 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13071 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13072 # platforms (ab)use it in PIC code, but their linkers get confused if
13073 # the symbol is explicitly referenced. Since portable code cannot
13074 # rely on this symbol name, it's probably fine to never include it in
13075 # preloaded symbol tables.
13076 # Exclude shared library initialization/finalization symbols.
13077 extract_expsyms_cmds=
13078
13079 case $host_os in
13080 cygwin* | mingw* | pw32* | cegcc*)
13081 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13082 # When not using gcc, we currently assume that we are using
13083 # Microsoft Visual C++.
13084 if test "$GCC" != yes; then
13085 with_gnu_ld=no
13086 fi
13087 ;;
13088 interix*)
13089 # we just hope/assume this is gcc and not c89 (= MSVC++)
13090 with_gnu_ld=yes
13091 ;;
13092 openbsd*)
13093 with_gnu_ld=no
13094 ;;
13095 esac
13096
13097 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013098
13099 # On some targets, GNU ld is compatible enough with the native linker
13100 # that we're better off using the native interface for both.
13101 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013102 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013103 case $host_os in
13104 aix*)
13105 # The AIX port of GNU ld has always aspired to compatibility
13106 # with the native linker. However, as the warning in the GNU ld
13107 # block says, versions before 2.19.5* couldn't really create working
13108 # shared libraries, regardless of the interface used.
13109 case `$LD -v 2>&1` in
13110 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13111 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13112 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13113 *)
13114 lt_use_gnu_ld_interface=yes
13115 ;;
13116 esac
13117 ;;
13118 *)
13119 lt_use_gnu_ld_interface=yes
13120 ;;
13121 esac
13122 fi
13123
13124 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000013125 # If archive_cmds runs LD, not CC, wlarc should be empty
13126 wlarc='${wl}'
13127
13128 # Set some defaults for GNU ld with shared library support. These
13129 # are reset later if shared libraries are not supported. Putting them
13130 # here allows them to be overridden if necessary.
13131 runpath_var=LD_RUN_PATH
13132 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13133 export_dynamic_flag_spec='${wl}--export-dynamic'
13134 # ancient GNU ld didn't support --whole-archive et. al.
13135 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13136 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13137 else
13138 whole_archive_flag_spec=
13139 fi
13140 supports_anon_versioning=no
13141 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000013142 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000013143 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13144 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13145 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13146 *\ 2.11.*) ;; # other 2.11 versions
13147 *) supports_anon_versioning=yes ;;
13148 esac
13149
13150 # See if GNU ld supports shared libraries.
13151 case $host_os in
13152 aix[3-9]*)
13153 # On AIX/PPC, the GNU linker is very broken
13154 if test "$host_cpu" != ia64; then
13155 ld_shlibs=no
13156 cat <<_LT_EOF 1>&2
13157
cristy0c60a692010-11-04 01:09:47 +000013158*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000013159*** to be unable to reliably create shared libraries on AIX.
13160*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000013161*** really care for shared libraries, you may want to install binutils
13162*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13163*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000013164
13165_LT_EOF
13166 fi
13167 ;;
13168
13169 amigaos*)
13170 case $host_cpu in
13171 powerpc)
13172 # see comment about AmigaOS4 .so support
13173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13174 archive_expsym_cmds=''
13175 ;;
13176 m68k)
13177 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)'
13178 hardcode_libdir_flag_spec='-L$libdir'
13179 hardcode_minus_L=yes
13180 ;;
13181 esac
13182 ;;
13183
13184 beos*)
13185 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13186 allow_undefined_flag=unsupported
13187 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13188 # support --undefined. This deserves some investigation. FIXME
13189 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13190 else
13191 ld_shlibs=no
13192 fi
13193 ;;
13194
13195 cygwin* | mingw* | pw32* | cegcc*)
13196 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13197 # as there is no search path for DLLs.
13198 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000013199 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000013200 allow_undefined_flag=unsupported
13201 always_export_symbols=no
13202 enable_shared_with_static_runtimes=yes
13203 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13204
13205 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13207 # If the export-symbols file already is a .def file (1st line
13208 # is EXPORTS), use it as is; otherwise, prepend...
13209 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13210 cp $export_symbols $output_objdir/$soname.def;
13211 else
13212 echo EXPORTS > $output_objdir/$soname.def;
13213 cat $export_symbols >> $output_objdir/$soname.def;
13214 fi~
13215 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13216 else
13217 ld_shlibs=no
13218 fi
13219 ;;
13220
cristy0c60a692010-11-04 01:09:47 +000013221 haiku*)
13222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13223 link_all_deplibs=yes
13224 ;;
13225
cristy73bd4a52010-10-05 11:24:23 +000013226 interix[3-9]*)
13227 hardcode_direct=no
13228 hardcode_shlibpath_var=no
13229 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13230 export_dynamic_flag_spec='${wl}-E'
13231 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13232 # Instead, shared libraries are loaded at an image base (0x10000000 by
13233 # default) and relocated if they conflict, which is a slow very memory
13234 # consuming and fragmenting process. To avoid this, we pick a random,
13235 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13236 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13237 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13238 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'
13239 ;;
13240
cristy0c60a692010-11-04 01:09:47 +000013241 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013242 tmp_diet=no
13243 if test "$host_os" = linux-dietlibc; then
13244 case $cc_basename in
13245 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13246 esac
13247 fi
13248 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13249 && test "$tmp_diet" = no
13250 then
13251 tmp_addflag=
13252 tmp_sharedflag='-shared'
13253 case $cc_basename,$host_cpu in
13254 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000013255 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 +000013256 tmp_addflag=' $pic_flag'
13257 ;;
cristy0c60a692010-11-04 01:09:47 +000013258 pgf77* | pgf90* | pgf95* | pgfortran*)
13259 # Portland Group f77 and f90 compilers
13260 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 +000013261 tmp_addflag=' $pic_flag -Mnomain' ;;
13262 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13263 tmp_addflag=' -i_dynamic' ;;
13264 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13265 tmp_addflag=' -i_dynamic -nofor_main' ;;
13266 ifc* | ifort*) # Intel Fortran compiler
13267 tmp_addflag=' -nofor_main' ;;
13268 lf95*) # Lahey Fortran 8.1
13269 whole_archive_flag_spec=
13270 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000013271 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000013272 tmp_sharedflag='-qmkshrobj'
13273 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000013274 nvcc*) # Cuda Compiler Driver 2.2
13275 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'
13276 compiler_needs_object=yes
13277 ;;
cristy73bd4a52010-10-05 11:24:23 +000013278 esac
13279 case `$CC -V 2>&1 | sed 5q` in
13280 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000013281 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 +000013282 compiler_needs_object=yes
13283 tmp_sharedflag='-G' ;;
13284 *Sun\ F*) # Sun Fortran 8.3
13285 tmp_sharedflag='-G' ;;
13286 esac
13287 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13288
13289 if test "x$supports_anon_versioning" = xyes; then
13290 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13291 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13292 echo "local: *; };" >> $output_objdir/$libname.ver~
13293 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13294 fi
13295
13296 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013297 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000013298 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13299 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13300 hardcode_libdir_flag_spec=
13301 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy0c60a692010-11-04 01:09:47 +000013302 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013303 if test "x$supports_anon_versioning" = xyes; then
13304 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13305 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13306 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000013307 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013308 fi
13309 ;;
13310 esac
13311 else
13312 ld_shlibs=no
13313 fi
13314 ;;
13315
13316 netbsd*)
13317 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13318 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13319 wlarc=
13320 else
13321 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13322 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13323 fi
13324 ;;
13325
13326 solaris*)
13327 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13328 ld_shlibs=no
13329 cat <<_LT_EOF 1>&2
13330
13331*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13332*** create shared libraries on Solaris systems. Therefore, libtool
13333*** is disabling shared libraries support. We urge you to upgrade GNU
13334*** binutils to release 2.9.1 or newer. Another option is to modify
13335*** your PATH or compiler configuration so that the native linker is
13336*** used, and then restart.
13337
13338_LT_EOF
13339 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13341 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13342 else
13343 ld_shlibs=no
13344 fi
13345 ;;
13346
13347 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13348 case `$LD -v 2>&1` in
13349 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13350 ld_shlibs=no
13351 cat <<_LT_EOF 1>&2
13352
13353*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13354*** reliably create shared libraries on SCO systems. Therefore, libtool
13355*** is disabling shared libraries support. We urge you to upgrade GNU
13356*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13357*** your PATH or compiler configuration so that the native linker is
13358*** used, and then restart.
13359
13360_LT_EOF
13361 ;;
13362 *)
13363 # For security reasons, it is highly recommended that you always
13364 # use absolute paths for naming shared libraries, and exclude the
13365 # DT_RUNPATH tag from executables and libraries. But doing so
13366 # requires that you compile everything twice, which is a pain.
13367 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13369 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13370 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13371 else
13372 ld_shlibs=no
13373 fi
13374 ;;
13375 esac
13376 ;;
13377
13378 sunos4*)
13379 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13380 wlarc=
13381 hardcode_direct=yes
13382 hardcode_shlibpath_var=no
13383 ;;
13384
13385 *)
13386 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13387 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13388 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13389 else
13390 ld_shlibs=no
13391 fi
13392 ;;
13393 esac
13394
13395 if test "$ld_shlibs" = no; then
13396 runpath_var=
13397 hardcode_libdir_flag_spec=
13398 export_dynamic_flag_spec=
13399 whole_archive_flag_spec=
13400 fi
13401 else
13402 # PORTME fill in a description of your system's linker (not GNU ld)
13403 case $host_os in
13404 aix3*)
13405 allow_undefined_flag=unsupported
13406 always_export_symbols=yes
13407 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'
13408 # Note: this linker hardcodes the directories in LIBPATH if there
13409 # are no directories specified by -L.
13410 hardcode_minus_L=yes
13411 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13412 # Neither direct hardcoding nor static linking is supported with a
13413 # broken collect2.
13414 hardcode_direct=unsupported
13415 fi
13416 ;;
13417
13418 aix[4-9]*)
13419 if test "$host_cpu" = ia64; then
13420 # On IA64, the linker does run time linking by default, so we don't
13421 # have to do anything special.
13422 aix_use_runtimelinking=no
13423 exp_sym_flag='-Bexport'
13424 no_entry_flag=""
13425 else
13426 # If we're using GNU nm, then we don't want the "-C" option.
13427 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000013428 # Also, AIX nm treats weak defined symbols like other global
13429 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000013430 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000013431 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 +000013432 else
13433 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'
13434 fi
13435 aix_use_runtimelinking=no
13436
13437 # Test if we are trying to use run time linking or normal
13438 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13439 # need to do runtime linking.
13440 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13441 for ld_flag in $LDFLAGS; do
13442 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13443 aix_use_runtimelinking=yes
13444 break
13445 fi
13446 done
13447 ;;
13448 esac
13449
13450 exp_sym_flag='-bexport'
13451 no_entry_flag='-bnoentry'
13452 fi
13453
13454 # When large executables or shared objects are built, AIX ld can
13455 # have problems creating the table of contents. If linking a library
13456 # or program results in "error TOC overflow" add -mminimal-toc to
13457 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13458 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13459
13460 archive_cmds=''
13461 hardcode_direct=yes
13462 hardcode_direct_absolute=yes
13463 hardcode_libdir_separator=':'
13464 link_all_deplibs=yes
13465 file_list_spec='${wl}-f,'
13466
13467 if test "$GCC" = yes; then
13468 case $host_os in aix4.[012]|aix4.[012].*)
13469 # We only want to do this on AIX 4.2 and lower, the check
13470 # below for broken collect2 doesn't work under 4.3+
13471 collect2name=`${CC} -print-prog-name=collect2`
13472 if test -f "$collect2name" &&
13473 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13474 then
13475 # We have reworked collect2
13476 :
13477 else
13478 # We have old collect2
13479 hardcode_direct=unsupported
13480 # It fails to find uninstalled libraries when the uninstalled
13481 # path is not listed in the libpath. Setting hardcode_minus_L
13482 # to unsupported forces relinking
13483 hardcode_minus_L=yes
13484 hardcode_libdir_flag_spec='-L$libdir'
13485 hardcode_libdir_separator=
13486 fi
13487 ;;
13488 esac
13489 shared_flag='-shared'
13490 if test "$aix_use_runtimelinking" = yes; then
13491 shared_flag="$shared_flag "'${wl}-G'
13492 fi
13493 else
13494 # not using gcc
13495 if test "$host_cpu" = ia64; then
13496 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13497 # chokes on -Wl,-G. The following line is correct:
13498 shared_flag='-G'
13499 else
13500 if test "$aix_use_runtimelinking" = yes; then
13501 shared_flag='${wl}-G'
13502 else
13503 shared_flag='${wl}-bM:SRE'
13504 fi
13505 fi
13506 fi
13507
13508 export_dynamic_flag_spec='${wl}-bexpall'
13509 # It seems that -bexpall does not export symbols beginning with
13510 # underscore (_), so it is better to generate a list of symbols to export.
13511 always_export_symbols=yes
13512 if test "$aix_use_runtimelinking" = yes; then
13513 # Warning - without using the other runtime loading flags (-brtl),
13514 # -berok will link without error, but may produce a broken library.
13515 allow_undefined_flag='-berok'
13516 # Determine the default libpath from the value encoded in an
13517 # empty executable.
13518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13519/* end confdefs.h. */
13520
13521int
13522main ()
13523{
13524
13525 ;
13526 return 0;
13527}
13528_ACEOF
13529if ac_fn_c_try_link "$LINENO"; then :
13530
13531lt_aix_libpath_sed='
13532 /Import File Strings/,/^$/ {
13533 /^0/ {
13534 s/^0 *\(.*\)$/\1/
13535 p
13536 }
13537 }'
13538aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13539# Check for a 64-bit object if we didn't find anything.
13540if test -z "$aix_libpath"; then
13541 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13542fi
13543fi
13544rm -f core conftest.err conftest.$ac_objext \
13545 conftest$ac_exeext conftest.$ac_ext
13546if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13547
13548 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000013549 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 +000013550 else
13551 if test "$host_cpu" = ia64; then
13552 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13553 allow_undefined_flag="-z nodefs"
13554 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"
13555 else
13556 # Determine the default libpath from the value encoded in an
13557 # empty executable.
13558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13559/* end confdefs.h. */
13560
13561int
13562main ()
13563{
13564
13565 ;
13566 return 0;
13567}
13568_ACEOF
13569if ac_fn_c_try_link "$LINENO"; then :
13570
13571lt_aix_libpath_sed='
13572 /Import File Strings/,/^$/ {
13573 /^0/ {
13574 s/^0 *\(.*\)$/\1/
13575 p
13576 }
13577 }'
13578aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13579# Check for a 64-bit object if we didn't find anything.
13580if test -z "$aix_libpath"; then
13581 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13582fi
13583fi
13584rm -f core conftest.err conftest.$ac_objext \
13585 conftest$ac_exeext conftest.$ac_ext
13586if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13587
13588 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13589 # Warning - without using the other run time loading flags,
13590 # -berok will link without error, but may produce a broken library.
13591 no_undefined_flag=' ${wl}-bernotok'
13592 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000013593 if test "$with_gnu_ld" = yes; then
13594 # We only use this code for GNU lds that support --whole-archive.
13595 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13596 else
13597 # Exported symbols can be pulled into shared objects from archives
13598 whole_archive_flag_spec='$convenience'
13599 fi
cristy73bd4a52010-10-05 11:24:23 +000013600 archive_cmds_need_lc=yes
13601 # This is similar to how AIX traditionally builds its shared libraries.
13602 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'
13603 fi
13604 fi
13605 ;;
13606
13607 amigaos*)
13608 case $host_cpu in
13609 powerpc)
13610 # see comment about AmigaOS4 .so support
13611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13612 archive_expsym_cmds=''
13613 ;;
13614 m68k)
13615 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)'
13616 hardcode_libdir_flag_spec='-L$libdir'
13617 hardcode_minus_L=yes
13618 ;;
13619 esac
13620 ;;
13621
13622 bsdi[45]*)
13623 export_dynamic_flag_spec=-rdynamic
13624 ;;
13625
13626 cygwin* | mingw* | pw32* | cegcc*)
13627 # When not using gcc, we currently assume that we are using
13628 # Microsoft Visual C++.
13629 # hardcode_libdir_flag_spec is actually meaningless, as there is
13630 # no search path for DLLs.
13631 hardcode_libdir_flag_spec=' '
13632 allow_undefined_flag=unsupported
13633 # Tell ltmain to make .lib files, not .a files.
13634 libext=lib
13635 # Tell ltmain to make .dll files, not .so files.
13636 shrext_cmds=".dll"
13637 # FIXME: Setting linknames here is a bad hack.
cristy0c60a692010-11-04 01:09:47 +000013638 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
cristy73bd4a52010-10-05 11:24:23 +000013639 # The linker will automatically build a .lib file if we build a DLL.
13640 old_archive_from_new_cmds='true'
13641 # FIXME: Should let the user specify the lib program.
13642 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13643 fix_srcfile_path='`cygpath -w "$srcfile"`'
13644 enable_shared_with_static_runtimes=yes
13645 ;;
13646
13647 darwin* | rhapsody*)
13648
13649
13650 archive_cmds_need_lc=no
13651 hardcode_direct=no
13652 hardcode_automatic=yes
13653 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000013654 if test "$lt_cv_ld_force_load" = "yes"; then
13655 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\"`'
13656 else
13657 whole_archive_flag_spec=''
13658 fi
cristy73bd4a52010-10-05 11:24:23 +000013659 link_all_deplibs=yes
13660 allow_undefined_flag="$_lt_dar_allow_undefined"
13661 case $cc_basename in
13662 ifort*) _lt_dar_can_shared=yes ;;
13663 *) _lt_dar_can_shared=$GCC ;;
13664 esac
13665 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000013666 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000013667 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13668 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13669 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}"
13670 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}"
13671
13672 else
13673 ld_shlibs=no
13674 fi
13675
13676 ;;
13677
13678 dgux*)
13679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13680 hardcode_libdir_flag_spec='-L$libdir'
13681 hardcode_shlibpath_var=no
13682 ;;
13683
13684 freebsd1*)
13685 ld_shlibs=no
13686 ;;
13687
13688 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13689 # support. Future versions do this automatically, but an explicit c++rt0.o
13690 # does not break anything, and helps significantly (at the cost of a little
13691 # extra space).
13692 freebsd2.2*)
13693 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13694 hardcode_libdir_flag_spec='-R$libdir'
13695 hardcode_direct=yes
13696 hardcode_shlibpath_var=no
13697 ;;
13698
13699 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13700 freebsd2*)
13701 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13702 hardcode_direct=yes
13703 hardcode_minus_L=yes
13704 hardcode_shlibpath_var=no
13705 ;;
13706
13707 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13708 freebsd* | dragonfly*)
13709 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13710 hardcode_libdir_flag_spec='-R$libdir'
13711 hardcode_direct=yes
13712 hardcode_shlibpath_var=no
13713 ;;
13714
13715 hpux9*)
13716 if test "$GCC" = yes; then
13717 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13718 else
13719 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'
13720 fi
13721 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13722 hardcode_libdir_separator=:
13723 hardcode_direct=yes
13724
13725 # hardcode_minus_L: Not really in the search PATH,
13726 # but as the default location of the library.
13727 hardcode_minus_L=yes
13728 export_dynamic_flag_spec='${wl}-E'
13729 ;;
13730
13731 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000013732 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000013733 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13734 else
13735 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13736 fi
13737 if test "$with_gnu_ld" = no; then
13738 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13739 hardcode_libdir_flag_spec_ld='+b $libdir'
13740 hardcode_libdir_separator=:
13741 hardcode_direct=yes
13742 hardcode_direct_absolute=yes
13743 export_dynamic_flag_spec='${wl}-E'
13744 # hardcode_minus_L: Not really in the search PATH,
13745 # but as the default location of the library.
13746 hardcode_minus_L=yes
13747 fi
13748 ;;
13749
13750 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000013751 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000013752 case $host_cpu in
13753 hppa*64*)
13754 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13755 ;;
13756 ia64*)
13757 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13758 ;;
13759 *)
13760 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13761 ;;
13762 esac
13763 else
13764 case $host_cpu in
13765 hppa*64*)
13766 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13767 ;;
13768 ia64*)
13769 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13770 ;;
13771 *)
cristy0c60a692010-11-04 01:09:47 +000013772
13773 # Older versions of the 11.00 compiler do not understand -b yet
13774 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13776$as_echo_n "checking if $CC understands -b... " >&6; }
13777if test "${lt_cv_prog_compiler__b+set}" = set; then :
13778 $as_echo_n "(cached) " >&6
13779else
13780 lt_cv_prog_compiler__b=no
13781 save_LDFLAGS="$LDFLAGS"
13782 LDFLAGS="$LDFLAGS -b"
13783 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13784 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13785 # The linker can only warn and ignore the option if not recognized
13786 # So say no if there are warnings
13787 if test -s conftest.err; then
13788 # Append any errors to the config.log.
13789 cat conftest.err 1>&5
13790 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13792 if diff conftest.exp conftest.er2 >/dev/null; then
13793 lt_cv_prog_compiler__b=yes
13794 fi
13795 else
13796 lt_cv_prog_compiler__b=yes
13797 fi
13798 fi
13799 $RM -r conftest*
13800 LDFLAGS="$save_LDFLAGS"
13801
13802fi
13803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13804$as_echo "$lt_cv_prog_compiler__b" >&6; }
13805
13806if test x"$lt_cv_prog_compiler__b" = xyes; then
13807 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13808else
13809 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13810fi
13811
cristy73bd4a52010-10-05 11:24:23 +000013812 ;;
13813 esac
13814 fi
13815 if test "$with_gnu_ld" = no; then
13816 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13817 hardcode_libdir_separator=:
13818
13819 case $host_cpu in
13820 hppa*64*|ia64*)
13821 hardcode_direct=no
13822 hardcode_shlibpath_var=no
13823 ;;
13824 *)
13825 hardcode_direct=yes
13826 hardcode_direct_absolute=yes
13827 export_dynamic_flag_spec='${wl}-E'
13828
13829 # hardcode_minus_L: Not really in the search PATH,
13830 # but as the default location of the library.
13831 hardcode_minus_L=yes
13832 ;;
13833 esac
13834 fi
13835 ;;
13836
13837 irix5* | irix6* | nonstopux*)
13838 if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013839 archive_cmds='$CC -shared $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 +000013840 # Try to use the -exported_symbol ld option, if it does not
13841 # work, assume that -exports_file does not work either and
13842 # implicitly export all symbols.
13843 save_LDFLAGS="$LDFLAGS"
13844 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13846/* end confdefs.h. */
13847int foo(void) {}
13848_ACEOF
13849if ac_fn_c_try_link "$LINENO"; then :
cristy0c60a692010-11-04 01:09:47 +000013850 archive_expsym_cmds='$CC -shared $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'
cristy73bd4a52010-10-05 11:24:23 +000013851
13852fi
13853rm -f core conftest.err conftest.$ac_objext \
13854 conftest$ac_exeext conftest.$ac_ext
13855 LDFLAGS="$save_LDFLAGS"
13856 else
cristy0c60a692010-11-04 01:09:47 +000013857 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'
13858 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 +000013859 fi
13860 archive_cmds_need_lc='no'
13861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13862 hardcode_libdir_separator=:
13863 inherit_rpath=yes
13864 link_all_deplibs=yes
13865 ;;
13866
13867 netbsd*)
13868 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13869 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13870 else
13871 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13872 fi
13873 hardcode_libdir_flag_spec='-R$libdir'
13874 hardcode_direct=yes
13875 hardcode_shlibpath_var=no
13876 ;;
13877
13878 newsos6)
13879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13880 hardcode_direct=yes
13881 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13882 hardcode_libdir_separator=:
13883 hardcode_shlibpath_var=no
13884 ;;
13885
13886 *nto* | *qnx*)
13887 ;;
13888
13889 openbsd*)
13890 if test -f /usr/libexec/ld.so; then
13891 hardcode_direct=yes
13892 hardcode_shlibpath_var=no
13893 hardcode_direct_absolute=yes
13894 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13895 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13896 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13897 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13898 export_dynamic_flag_spec='${wl}-E'
13899 else
13900 case $host_os in
13901 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13902 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13903 hardcode_libdir_flag_spec='-R$libdir'
13904 ;;
13905 *)
13906 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13907 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13908 ;;
13909 esac
13910 fi
13911 else
13912 ld_shlibs=no
13913 fi
13914 ;;
13915
13916 os2*)
13917 hardcode_libdir_flag_spec='-L$libdir'
13918 hardcode_minus_L=yes
13919 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000013920 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 +000013921 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13922 ;;
13923
13924 osf3*)
13925 if test "$GCC" = yes; then
13926 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000013927 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 +000013928 else
13929 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000013930 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 +000013931 fi
13932 archive_cmds_need_lc='no'
13933 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13934 hardcode_libdir_separator=:
13935 ;;
13936
13937 osf4* | osf5*) # as osf3* with the addition of -msym flag
13938 if test "$GCC" = yes; then
13939 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000013940 archive_cmds='$CC -shared${allow_undefined_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 +000013941 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13942 else
13943 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000013944 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 +000013945 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 +000013946 $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 +000013947
13948 # Both c and cxx compiler support -rpath directly
13949 hardcode_libdir_flag_spec='-rpath $libdir'
13950 fi
13951 archive_cmds_need_lc='no'
13952 hardcode_libdir_separator=:
13953 ;;
13954
13955 solaris*)
13956 no_undefined_flag=' -z defs'
13957 if test "$GCC" = yes; then
13958 wlarc='${wl}'
13959 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13960 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13961 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13962 else
13963 case `$CC -V 2>&1` in
13964 *"Compilers 5.0"*)
13965 wlarc=''
13966 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13967 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13968 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13969 ;;
13970 *)
13971 wlarc='${wl}'
13972 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13973 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13974 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13975 ;;
13976 esac
13977 fi
13978 hardcode_libdir_flag_spec='-R$libdir'
13979 hardcode_shlibpath_var=no
13980 case $host_os in
13981 solaris2.[0-5] | solaris2.[0-5].*) ;;
13982 *)
13983 # The compiler driver will combine and reorder linker options,
13984 # but understands `-z linker_flag'. GCC discards it without `$wl',
13985 # but is careful enough not to reorder.
13986 # Supported since Solaris 2.6 (maybe 2.5.1?)
13987 if test "$GCC" = yes; then
13988 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13989 else
13990 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13991 fi
13992 ;;
13993 esac
13994 link_all_deplibs=yes
13995 ;;
13996
13997 sunos4*)
13998 if test "x$host_vendor" = xsequent; then
13999 # Use $CC to link under sequent, because it throws in some extra .o
14000 # files that make .init and .fini sections work.
14001 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14002 else
14003 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14004 fi
14005 hardcode_libdir_flag_spec='-L$libdir'
14006 hardcode_direct=yes
14007 hardcode_minus_L=yes
14008 hardcode_shlibpath_var=no
14009 ;;
14010
14011 sysv4)
14012 case $host_vendor in
14013 sni)
14014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14015 hardcode_direct=yes # is this really true???
14016 ;;
14017 siemens)
14018 ## LD is ld it makes a PLAMLIB
14019 ## CC just makes a GrossModule.
14020 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14021 reload_cmds='$CC -r -o $output$reload_objs'
14022 hardcode_direct=no
14023 ;;
14024 motorola)
14025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14026 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14027 ;;
14028 esac
14029 runpath_var='LD_RUN_PATH'
14030 hardcode_shlibpath_var=no
14031 ;;
14032
14033 sysv4.3*)
14034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14035 hardcode_shlibpath_var=no
14036 export_dynamic_flag_spec='-Bexport'
14037 ;;
14038
14039 sysv4*MP*)
14040 if test -d /usr/nec; then
14041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14042 hardcode_shlibpath_var=no
14043 runpath_var=LD_RUN_PATH
14044 hardcode_runpath_var=yes
14045 ld_shlibs=yes
14046 fi
14047 ;;
14048
14049 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14050 no_undefined_flag='${wl}-z,text'
14051 archive_cmds_need_lc=no
14052 hardcode_shlibpath_var=no
14053 runpath_var='LD_RUN_PATH'
14054
14055 if test "$GCC" = yes; then
14056 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14057 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14058 else
14059 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14060 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14061 fi
14062 ;;
14063
14064 sysv5* | sco3.2v5* | sco5v6*)
14065 # Note: We can NOT use -z defs as we might desire, because we do not
14066 # link with -lc, and that would cause any symbols used from libc to
14067 # always be unresolved, which means just about no library would
14068 # ever link correctly. If we're not using GNU ld we use -z text
14069 # though, which does catch some bad symbols but isn't as heavy-handed
14070 # as -z defs.
14071 no_undefined_flag='${wl}-z,text'
14072 allow_undefined_flag='${wl}-z,nodefs'
14073 archive_cmds_need_lc=no
14074 hardcode_shlibpath_var=no
14075 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14076 hardcode_libdir_separator=':'
14077 link_all_deplibs=yes
14078 export_dynamic_flag_spec='${wl}-Bexport'
14079 runpath_var='LD_RUN_PATH'
14080
14081 if test "$GCC" = yes; then
14082 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14083 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14084 else
14085 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14086 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14087 fi
14088 ;;
14089
14090 uts4*)
14091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14092 hardcode_libdir_flag_spec='-L$libdir'
14093 hardcode_shlibpath_var=no
14094 ;;
14095
14096 *)
14097 ld_shlibs=no
14098 ;;
14099 esac
14100
14101 if test x$host_vendor = xsni; then
14102 case $host in
14103 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14104 export_dynamic_flag_spec='${wl}-Blargedynsym'
14105 ;;
14106 esac
14107 fi
14108 fi
14109
14110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14111$as_echo "$ld_shlibs" >&6; }
14112test "$ld_shlibs" = no && can_build_shared=no
14113
14114with_gnu_ld=$with_gnu_ld
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130#
14131# Do we need to explicitly link libc?
14132#
14133case "x$archive_cmds_need_lc" in
14134x|xyes)
14135 # Assume -lc should be added
14136 archive_cmds_need_lc=yes
14137
14138 if test "$enable_shared" = yes && test "$GCC" = yes; then
14139 case $archive_cmds in
14140 *'~'*)
14141 # FIXME: we may have to deal with multi-command sequences.
14142 ;;
14143 '$CC '*)
14144 # Test whether the compiler implicitly links with -lc since on some
14145 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14146 # to ld, don't add -lc before -lgcc.
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14148$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy0c60a692010-11-04 01:09:47 +000014149if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
14150 $as_echo_n "(cached) " >&6
14151else
14152 $RM conftest*
14153 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014154
cristy0c60a692010-11-04 01:09:47 +000014155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000014156 (eval $ac_compile) 2>&5
14157 ac_status=$?
14158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14159 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000014160 soname=conftest
14161 lib=conftest
14162 libobjs=conftest.$ac_objext
14163 deplibs=
14164 wl=$lt_prog_compiler_wl
14165 pic_flag=$lt_prog_compiler_pic
14166 compiler_flags=-v
14167 linker_flags=-v
14168 verstring=
14169 output_objdir=.
14170 libname=conftest
14171 lt_save_allow_undefined_flag=$allow_undefined_flag
14172 allow_undefined_flag=
14173 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 +000014174 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14175 ac_status=$?
14176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14177 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000014178 then
14179 lt_cv_archive_cmds_need_lc=no
14180 else
14181 lt_cv_archive_cmds_need_lc=yes
14182 fi
14183 allow_undefined_flag=$lt_save_allow_undefined_flag
14184 else
14185 cat conftest.err 1>&5
14186 fi
14187 $RM conftest*
14188
14189fi
14190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14191$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14192 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000014193 ;;
14194 esac
14195 fi
14196 ;;
14197esac
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14356$as_echo_n "checking dynamic linker characteristics... " >&6; }
14357
14358if test "$GCC" = yes; then
14359 case $host_os in
14360 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14361 *) lt_awk_arg="/^libraries:/" ;;
14362 esac
cristy0c60a692010-11-04 01:09:47 +000014363 case $host_os in
14364 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14365 *) lt_sed_strip_eq="s,=/,/,g" ;;
14366 esac
14367 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14368 case $lt_search_path_spec in
14369 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000014370 # if the path contains ";" then we assume it to be the separator
14371 # otherwise default to the standard path separator (i.e. ":") - it is
14372 # assumed that no part of a normal pathname contains ";" but that should
14373 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000014374 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14375 ;;
14376 *)
14377 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14378 ;;
14379 esac
cristy73bd4a52010-10-05 11:24:23 +000014380 # Ok, now we have the path, separated by spaces, we can step through it
14381 # and add multilib dir if necessary.
14382 lt_tmp_lt_search_path_spec=
14383 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14384 for lt_sys_path in $lt_search_path_spec; do
14385 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14386 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14387 else
14388 test -d "$lt_sys_path" && \
14389 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14390 fi
14391 done
cristy0c60a692010-11-04 01:09:47 +000014392 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000014393BEGIN {RS=" "; FS="/|\n";} {
14394 lt_foo="";
14395 lt_count=0;
14396 for (lt_i = NF; lt_i > 0; lt_i--) {
14397 if ($lt_i != "" && $lt_i != ".") {
14398 if ($lt_i == "..") {
14399 lt_count++;
14400 } else {
14401 if (lt_count == 0) {
14402 lt_foo="/" $lt_i lt_foo;
14403 } else {
14404 lt_count--;
14405 }
14406 }
14407 }
14408 }
14409 if (lt_foo != "") { lt_freq[lt_foo]++; }
14410 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14411}'`
cristy0c60a692010-11-04 01:09:47 +000014412 # AWK program above erroneously prepends '/' to C:/dos/paths
14413 # for these hosts.
14414 case $host_os in
14415 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14416 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14417 esac
14418 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000014419else
14420 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14421fi
14422library_names_spec=
14423libname_spec='lib$name'
14424soname_spec=
14425shrext_cmds=".so"
14426postinstall_cmds=
14427postuninstall_cmds=
14428finish_cmds=
14429finish_eval=
14430shlibpath_var=
14431shlibpath_overrides_runpath=unknown
14432version_type=none
14433dynamic_linker="$host_os ld.so"
14434sys_lib_dlsearch_path_spec="/lib /usr/lib"
14435need_lib_prefix=unknown
14436hardcode_into_libs=no
14437
14438# when you set need_version to no, make sure it does not cause -set_version
14439# flags to be left without arguments
14440need_version=unknown
14441
14442case $host_os in
14443aix3*)
14444 version_type=linux
14445 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14446 shlibpath_var=LIBPATH
14447
14448 # AIX 3 has no versioning support, so we append a major version to the name.
14449 soname_spec='${libname}${release}${shared_ext}$major'
14450 ;;
14451
14452aix[4-9]*)
14453 version_type=linux
14454 need_lib_prefix=no
14455 need_version=no
14456 hardcode_into_libs=yes
14457 if test "$host_cpu" = ia64; then
14458 # AIX 5 supports IA64
14459 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14460 shlibpath_var=LD_LIBRARY_PATH
14461 else
14462 # With GCC up to 2.95.x, collect2 would create an import file
14463 # for dependence libraries. The import file would start with
14464 # the line `#! .'. This would cause the generated library to
14465 # depend on `.', always an invalid library. This was fixed in
14466 # development snapshots of GCC prior to 3.0.
14467 case $host_os in
14468 aix4 | aix4.[01] | aix4.[01].*)
14469 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14470 echo ' yes '
14471 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14472 :
14473 else
14474 can_build_shared=no
14475 fi
14476 ;;
14477 esac
14478 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14479 # soname into executable. Probably we can add versioning support to
14480 # collect2, so additional links can be useful in future.
14481 if test "$aix_use_runtimelinking" = yes; then
14482 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14483 # instead of lib<name>.a to let people know that these are not
14484 # typical AIX shared libraries.
14485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14486 else
14487 # We preserve .a as extension for shared libraries through AIX4.2
14488 # and later when we are not doing run time linking.
14489 library_names_spec='${libname}${release}.a $libname.a'
14490 soname_spec='${libname}${release}${shared_ext}$major'
14491 fi
14492 shlibpath_var=LIBPATH
14493 fi
14494 ;;
14495
14496amigaos*)
14497 case $host_cpu in
14498 powerpc)
14499 # Since July 2007 AmigaOS4 officially supports .so libraries.
14500 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14502 ;;
14503 m68k)
14504 library_names_spec='$libname.ixlibrary $libname.a'
14505 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000014506 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 +000014507 ;;
14508 esac
14509 ;;
14510
14511beos*)
14512 library_names_spec='${libname}${shared_ext}'
14513 dynamic_linker="$host_os ld.so"
14514 shlibpath_var=LIBRARY_PATH
14515 ;;
14516
14517bsdi[45]*)
14518 version_type=linux
14519 need_version=no
14520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14521 soname_spec='${libname}${release}${shared_ext}$major'
14522 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14523 shlibpath_var=LD_LIBRARY_PATH
14524 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14525 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14526 # the default ld.so.conf also contains /usr/contrib/lib and
14527 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14528 # libtool to hard-code these into programs
14529 ;;
14530
14531cygwin* | mingw* | pw32* | cegcc*)
14532 version_type=windows
14533 shrext_cmds=".dll"
14534 need_version=no
14535 need_lib_prefix=no
14536
14537 case $GCC,$host_os in
14538 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14539 library_names_spec='$libname.dll.a'
14540 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14541 postinstall_cmds='base_file=`basename \${file}`~
14542 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14543 dldir=$destdir/`dirname \$dlpath`~
14544 test -d \$dldir || mkdir -p \$dldir~
14545 $install_prog $dir/$dlname \$dldir/$dlname~
14546 chmod a+x \$dldir/$dlname~
14547 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14548 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14549 fi'
14550 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14551 dlpath=$dir/\$dldll~
14552 $RM \$dlpath'
14553 shlibpath_overrides_runpath=yes
14554
14555 case $host_os in
14556 cygwin*)
14557 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14558 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000014559
14560 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000014561 ;;
14562 mingw* | cegcc*)
14563 # MinGW DLLs use traditional 'lib' prefix
14564 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000014565 ;;
14566 pw32*)
14567 # pw32 DLLs use 'pw' prefix rather than 'lib'
14568 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14569 ;;
14570 esac
14571 ;;
14572
14573 *)
14574 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14575 ;;
14576 esac
14577 dynamic_linker='Win32 ld.exe'
14578 # FIXME: first we should search . and the directory the executable is in
14579 shlibpath_var=PATH
14580 ;;
14581
14582darwin* | rhapsody*)
14583 dynamic_linker="$host_os dyld"
14584 version_type=darwin
14585 need_lib_prefix=no
14586 need_version=no
14587 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14588 soname_spec='${libname}${release}${major}$shared_ext'
14589 shlibpath_overrides_runpath=yes
14590 shlibpath_var=DYLD_LIBRARY_PATH
14591 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14592
14593 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14594 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14595 ;;
14596
14597dgux*)
14598 version_type=linux
14599 need_lib_prefix=no
14600 need_version=no
14601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14602 soname_spec='${libname}${release}${shared_ext}$major'
14603 shlibpath_var=LD_LIBRARY_PATH
14604 ;;
14605
14606freebsd1*)
14607 dynamic_linker=no
14608 ;;
14609
14610freebsd* | dragonfly*)
14611 # DragonFly does not have aout. When/if they implement a new
14612 # versioning mechanism, adjust this.
14613 if test -x /usr/bin/objformat; then
14614 objformat=`/usr/bin/objformat`
14615 else
14616 case $host_os in
14617 freebsd[123]*) objformat=aout ;;
14618 *) objformat=elf ;;
14619 esac
14620 fi
14621 version_type=freebsd-$objformat
14622 case $version_type in
14623 freebsd-elf*)
14624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14625 need_version=no
14626 need_lib_prefix=no
14627 ;;
14628 freebsd-*)
14629 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14630 need_version=yes
14631 ;;
14632 esac
14633 shlibpath_var=LD_LIBRARY_PATH
14634 case $host_os in
14635 freebsd2*)
14636 shlibpath_overrides_runpath=yes
14637 ;;
14638 freebsd3.[01]* | freebsdelf3.[01]*)
14639 shlibpath_overrides_runpath=yes
14640 hardcode_into_libs=yes
14641 ;;
14642 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14643 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14644 shlibpath_overrides_runpath=no
14645 hardcode_into_libs=yes
14646 ;;
14647 *) # from 4.6 on, and DragonFly
14648 shlibpath_overrides_runpath=yes
14649 hardcode_into_libs=yes
14650 ;;
14651 esac
14652 ;;
14653
14654gnu*)
14655 version_type=linux
14656 need_lib_prefix=no
14657 need_version=no
14658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14659 soname_spec='${libname}${release}${shared_ext}$major'
14660 shlibpath_var=LD_LIBRARY_PATH
14661 hardcode_into_libs=yes
14662 ;;
14663
cristy0c60a692010-11-04 01:09:47 +000014664haiku*)
14665 version_type=linux
14666 need_lib_prefix=no
14667 need_version=no
14668 dynamic_linker="$host_os runtime_loader"
14669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14670 soname_spec='${libname}${release}${shared_ext}$major'
14671 shlibpath_var=LIBRARY_PATH
14672 shlibpath_overrides_runpath=yes
14673 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14674 hardcode_into_libs=yes
14675 ;;
14676
cristy73bd4a52010-10-05 11:24:23 +000014677hpux9* | hpux10* | hpux11*)
14678 # Give a soname corresponding to the major version so that dld.sl refuses to
14679 # link against other versions.
14680 version_type=sunos
14681 need_lib_prefix=no
14682 need_version=no
14683 case $host_cpu in
14684 ia64*)
14685 shrext_cmds='.so'
14686 hardcode_into_libs=yes
14687 dynamic_linker="$host_os dld.so"
14688 shlibpath_var=LD_LIBRARY_PATH
14689 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14691 soname_spec='${libname}${release}${shared_ext}$major'
14692 if test "X$HPUX_IA64_MODE" = X32; then
14693 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14694 else
14695 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14696 fi
14697 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14698 ;;
14699 hppa*64*)
14700 shrext_cmds='.sl'
14701 hardcode_into_libs=yes
14702 dynamic_linker="$host_os dld.sl"
14703 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14704 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14706 soname_spec='${libname}${release}${shared_ext}$major'
14707 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14708 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14709 ;;
14710 *)
14711 shrext_cmds='.sl'
14712 dynamic_linker="$host_os dld.sl"
14713 shlibpath_var=SHLIB_PATH
14714 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14716 soname_spec='${libname}${release}${shared_ext}$major'
14717 ;;
14718 esac
cristy0c60a692010-11-04 01:09:47 +000014719 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000014720 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000014721 # or fails outright, so override atomically:
14722 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000014723 ;;
14724
14725interix[3-9]*)
14726 version_type=linux
14727 need_lib_prefix=no
14728 need_version=no
14729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14730 soname_spec='${libname}${release}${shared_ext}$major'
14731 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14732 shlibpath_var=LD_LIBRARY_PATH
14733 shlibpath_overrides_runpath=no
14734 hardcode_into_libs=yes
14735 ;;
14736
14737irix5* | irix6* | nonstopux*)
14738 case $host_os in
14739 nonstopux*) version_type=nonstopux ;;
14740 *)
14741 if test "$lt_cv_prog_gnu_ld" = yes; then
14742 version_type=linux
14743 else
14744 version_type=irix
14745 fi ;;
14746 esac
14747 need_lib_prefix=no
14748 need_version=no
14749 soname_spec='${libname}${release}${shared_ext}$major'
14750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14751 case $host_os in
14752 irix5* | nonstopux*)
14753 libsuff= shlibsuff=
14754 ;;
14755 *)
14756 case $LD in # libtool.m4 will add one of these switches to LD
14757 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14758 libsuff= shlibsuff= libmagic=32-bit;;
14759 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14760 libsuff=32 shlibsuff=N32 libmagic=N32;;
14761 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14762 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14763 *) libsuff= shlibsuff= libmagic=never-match;;
14764 esac
14765 ;;
14766 esac
14767 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14768 shlibpath_overrides_runpath=no
14769 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14770 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14771 hardcode_into_libs=yes
14772 ;;
14773
14774# No shared lib support for Linux oldld, aout, or coff.
14775linux*oldld* | linux*aout* | linux*coff*)
14776 dynamic_linker=no
14777 ;;
14778
14779# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000014780linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014781 version_type=linux
14782 need_lib_prefix=no
14783 need_version=no
14784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14785 soname_spec='${libname}${release}${shared_ext}$major'
14786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14787 shlibpath_var=LD_LIBRARY_PATH
14788 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000014789
cristy73bd4a52010-10-05 11:24:23 +000014790 # Some binutils ld are patched to set DT_RUNPATH
cristy0c60a692010-11-04 01:09:47 +000014791 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14792 $as_echo_n "(cached) " >&6
14793else
14794 lt_cv_shlibpath_overrides_runpath=no
14795 save_LDFLAGS=$LDFLAGS
14796 save_libdir=$libdir
14797 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14798 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014800/* end confdefs.h. */
14801
14802int
14803main ()
14804{
14805
14806 ;
14807 return 0;
14808}
14809_ACEOF
14810if ac_fn_c_try_link "$LINENO"; then :
14811 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000014812 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000014813fi
14814fi
14815rm -f core conftest.err conftest.$ac_objext \
14816 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000014817 LDFLAGS=$save_LDFLAGS
14818 libdir=$save_libdir
14819
14820fi
14821
14822 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000014823
14824 # This implies no fast_install, which is unacceptable.
14825 # Some rework will be needed to allow for fast_install
14826 # before this can be enabled.
14827 hardcode_into_libs=yes
14828
14829 # Add ABI-specific directories to the system library path.
14830 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14831
14832 # Append ld.so.conf contents to the search path
14833 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000014834 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 +000014835 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000014836
cristy73bd4a52010-10-05 11:24:23 +000014837 fi
14838
14839 # We used to test for /lib/ld.so.1 and disable shared libraries on
14840 # powerpc, because MkLinux only supported shared libraries with the
14841 # GNU dynamic linker. Since this was broken with cross compilers,
14842 # most powerpc-linux boxes support dynamic linking these days and
14843 # people can always --disable-shared, the test was removed, and we
14844 # assume the GNU/Linux dynamic linker is in use.
14845 dynamic_linker='GNU/Linux ld.so'
14846 ;;
14847
14848netbsd*)
14849 version_type=sunos
14850 need_lib_prefix=no
14851 need_version=no
14852 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14855 dynamic_linker='NetBSD (a.out) ld.so'
14856 else
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14858 soname_spec='${libname}${release}${shared_ext}$major'
14859 dynamic_linker='NetBSD ld.elf_so'
14860 fi
14861 shlibpath_var=LD_LIBRARY_PATH
14862 shlibpath_overrides_runpath=yes
14863 hardcode_into_libs=yes
14864 ;;
14865
14866newsos6)
14867 version_type=linux
14868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14869 shlibpath_var=LD_LIBRARY_PATH
14870 shlibpath_overrides_runpath=yes
14871 ;;
14872
14873*nto* | *qnx*)
14874 version_type=qnx
14875 need_lib_prefix=no
14876 need_version=no
14877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14878 soname_spec='${libname}${release}${shared_ext}$major'
14879 shlibpath_var=LD_LIBRARY_PATH
14880 shlibpath_overrides_runpath=no
14881 hardcode_into_libs=yes
14882 dynamic_linker='ldqnx.so'
14883 ;;
14884
14885openbsd*)
14886 version_type=sunos
14887 sys_lib_dlsearch_path_spec="/usr/lib"
14888 need_lib_prefix=no
14889 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14890 case $host_os in
14891 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14892 *) need_version=no ;;
14893 esac
14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14896 shlibpath_var=LD_LIBRARY_PATH
14897 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14898 case $host_os in
14899 openbsd2.[89] | openbsd2.[89].*)
14900 shlibpath_overrides_runpath=no
14901 ;;
14902 *)
14903 shlibpath_overrides_runpath=yes
14904 ;;
14905 esac
14906 else
14907 shlibpath_overrides_runpath=yes
14908 fi
14909 ;;
14910
14911os2*)
14912 libname_spec='$name'
14913 shrext_cmds=".dll"
14914 need_lib_prefix=no
14915 library_names_spec='$libname${shared_ext} $libname.a'
14916 dynamic_linker='OS/2 ld.exe'
14917 shlibpath_var=LIBPATH
14918 ;;
14919
14920osf3* | osf4* | osf5*)
14921 version_type=osf
14922 need_lib_prefix=no
14923 need_version=no
14924 soname_spec='${libname}${release}${shared_ext}$major'
14925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14926 shlibpath_var=LD_LIBRARY_PATH
14927 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14928 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14929 ;;
14930
14931rdos*)
14932 dynamic_linker=no
14933 ;;
14934
14935solaris*)
14936 version_type=linux
14937 need_lib_prefix=no
14938 need_version=no
14939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14940 soname_spec='${libname}${release}${shared_ext}$major'
14941 shlibpath_var=LD_LIBRARY_PATH
14942 shlibpath_overrides_runpath=yes
14943 hardcode_into_libs=yes
14944 # ldd complains unless libraries are executable
14945 postinstall_cmds='chmod +x $lib'
14946 ;;
14947
14948sunos4*)
14949 version_type=sunos
14950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14951 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14952 shlibpath_var=LD_LIBRARY_PATH
14953 shlibpath_overrides_runpath=yes
14954 if test "$with_gnu_ld" = yes; then
14955 need_lib_prefix=no
14956 fi
14957 need_version=yes
14958 ;;
14959
14960sysv4 | sysv4.3*)
14961 version_type=linux
14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14963 soname_spec='${libname}${release}${shared_ext}$major'
14964 shlibpath_var=LD_LIBRARY_PATH
14965 case $host_vendor in
14966 sni)
14967 shlibpath_overrides_runpath=no
14968 need_lib_prefix=no
14969 runpath_var=LD_RUN_PATH
14970 ;;
14971 siemens)
14972 need_lib_prefix=no
14973 ;;
14974 motorola)
14975 need_lib_prefix=no
14976 need_version=no
14977 shlibpath_overrides_runpath=no
14978 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14979 ;;
14980 esac
14981 ;;
14982
14983sysv4*MP*)
14984 if test -d /usr/nec ;then
14985 version_type=linux
14986 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14987 soname_spec='$libname${shared_ext}.$major'
14988 shlibpath_var=LD_LIBRARY_PATH
14989 fi
14990 ;;
14991
14992sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14993 version_type=freebsd-elf
14994 need_lib_prefix=no
14995 need_version=no
14996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14997 soname_spec='${libname}${release}${shared_ext}$major'
14998 shlibpath_var=LD_LIBRARY_PATH
14999 shlibpath_overrides_runpath=yes
15000 hardcode_into_libs=yes
15001 if test "$with_gnu_ld" = yes; then
15002 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15003 else
15004 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15005 case $host_os in
15006 sco3.2v5*)
15007 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15008 ;;
15009 esac
15010 fi
15011 sys_lib_dlsearch_path_spec='/usr/lib'
15012 ;;
15013
15014tpf*)
15015 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15016 version_type=linux
15017 need_lib_prefix=no
15018 need_version=no
15019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15020 shlibpath_var=LD_LIBRARY_PATH
15021 shlibpath_overrides_runpath=no
15022 hardcode_into_libs=yes
15023 ;;
15024
15025uts4*)
15026 version_type=linux
15027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15028 soname_spec='${libname}${release}${shared_ext}$major'
15029 shlibpath_var=LD_LIBRARY_PATH
15030 ;;
15031
15032*)
15033 dynamic_linker=no
15034 ;;
15035esac
15036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15037$as_echo "$dynamic_linker" >&6; }
15038test "$dynamic_linker" = no && can_build_shared=no
15039
15040variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15041if test "$GCC" = yes; then
15042 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15043fi
15044
15045if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15046 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15047fi
15048if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15049 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15050fi
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
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
cristy0c60a692010-11-04 01:09:47 +000015138
15139
15140
15141
15142
cristy73bd4a52010-10-05 11:24:23 +000015143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15144$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15145hardcode_action=
15146if test -n "$hardcode_libdir_flag_spec" ||
15147 test -n "$runpath_var" ||
15148 test "X$hardcode_automatic" = "Xyes" ; then
15149
15150 # We can hardcode non-existent directories.
15151 if test "$hardcode_direct" != no &&
15152 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15153 # have to relink, otherwise we might link with an installed library
15154 # when we should be linking with a yet-to-be-installed one
15155 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15156 test "$hardcode_minus_L" != no; then
15157 # Linking always hardcodes the temporary library directory.
15158 hardcode_action=relink
15159 else
15160 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15161 hardcode_action=immediate
15162 fi
15163else
15164 # We cannot hardcode anything, or else we can only hardcode existing
15165 # directories.
15166 hardcode_action=unsupported
15167fi
15168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15169$as_echo "$hardcode_action" >&6; }
15170
15171if test "$hardcode_action" = relink ||
15172 test "$inherit_rpath" = yes; then
15173 # Fast installation is not supported
15174 enable_fast_install=no
15175elif test "$shlibpath_overrides_runpath" = yes ||
15176 test "$enable_shared" = no; then
15177 # Fast installation is not necessary
15178 enable_fast_install=needless
15179fi
15180
15181
15182
15183
15184
15185
15186 if test "x$enable_dlopen" != xyes; then
15187 enable_dlopen=unknown
15188 enable_dlopen_self=unknown
15189 enable_dlopen_self_static=unknown
15190else
15191 lt_cv_dlopen=no
15192 lt_cv_dlopen_libs=
15193
15194 case $host_os in
15195 beos*)
15196 lt_cv_dlopen="load_add_on"
15197 lt_cv_dlopen_libs=
15198 lt_cv_dlopen_self=yes
15199 ;;
15200
15201 mingw* | pw32* | cegcc*)
15202 lt_cv_dlopen="LoadLibrary"
15203 lt_cv_dlopen_libs=
15204 ;;
15205
15206 cygwin*)
15207 lt_cv_dlopen="dlopen"
15208 lt_cv_dlopen_libs=
15209 ;;
15210
15211 darwin*)
15212 # if libdl is installed we need to link against it
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15214$as_echo_n "checking for dlopen in -ldl... " >&6; }
15215if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15216 $as_echo_n "(cached) " >&6
15217else
15218 ac_check_lib_save_LIBS=$LIBS
15219LIBS="-ldl $LIBS"
15220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221/* end confdefs.h. */
15222
15223/* Override any GCC internal prototype to avoid an error.
15224 Use char because int might match the return type of a GCC
15225 builtin and then its argument prototype would still apply. */
15226#ifdef __cplusplus
15227extern "C"
15228#endif
15229char dlopen ();
15230int
15231main ()
15232{
15233return dlopen ();
15234 ;
15235 return 0;
15236}
15237_ACEOF
15238if ac_fn_c_try_link "$LINENO"; then :
15239 ac_cv_lib_dl_dlopen=yes
15240else
15241 ac_cv_lib_dl_dlopen=no
15242fi
15243rm -f core conftest.err conftest.$ac_objext \
15244 conftest$ac_exeext conftest.$ac_ext
15245LIBS=$ac_check_lib_save_LIBS
15246fi
15247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15248$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15249if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15250 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15251else
15252
15253 lt_cv_dlopen="dyld"
15254 lt_cv_dlopen_libs=
15255 lt_cv_dlopen_self=yes
15256
15257fi
15258
15259 ;;
15260
15261 *)
15262 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15263if test "x$ac_cv_func_shl_load" = x""yes; then :
15264 lt_cv_dlopen="shl_load"
15265else
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15267$as_echo_n "checking for shl_load in -ldld... " >&6; }
15268if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
15269 $as_echo_n "(cached) " >&6
15270else
15271 ac_check_lib_save_LIBS=$LIBS
15272LIBS="-ldld $LIBS"
15273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15274/* end confdefs.h. */
15275
15276/* Override any GCC internal prototype to avoid an error.
15277 Use char because int might match the return type of a GCC
15278 builtin and then its argument prototype would still apply. */
15279#ifdef __cplusplus
15280extern "C"
15281#endif
15282char shl_load ();
15283int
15284main ()
15285{
15286return shl_load ();
15287 ;
15288 return 0;
15289}
15290_ACEOF
15291if ac_fn_c_try_link "$LINENO"; then :
15292 ac_cv_lib_dld_shl_load=yes
15293else
15294 ac_cv_lib_dld_shl_load=no
15295fi
15296rm -f core conftest.err conftest.$ac_objext \
15297 conftest$ac_exeext conftest.$ac_ext
15298LIBS=$ac_check_lib_save_LIBS
15299fi
15300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15301$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15302if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
15303 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15304else
15305 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15306if test "x$ac_cv_func_dlopen" = x""yes; then :
15307 lt_cv_dlopen="dlopen"
15308else
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15310$as_echo_n "checking for dlopen in -ldl... " >&6; }
15311if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15312 $as_echo_n "(cached) " >&6
15313else
15314 ac_check_lib_save_LIBS=$LIBS
15315LIBS="-ldl $LIBS"
15316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15317/* end confdefs.h. */
15318
15319/* Override any GCC internal prototype to avoid an error.
15320 Use char because int might match the return type of a GCC
15321 builtin and then its argument prototype would still apply. */
15322#ifdef __cplusplus
15323extern "C"
15324#endif
15325char dlopen ();
15326int
15327main ()
15328{
15329return dlopen ();
15330 ;
15331 return 0;
15332}
15333_ACEOF
15334if ac_fn_c_try_link "$LINENO"; then :
15335 ac_cv_lib_dl_dlopen=yes
15336else
15337 ac_cv_lib_dl_dlopen=no
15338fi
15339rm -f core conftest.err conftest.$ac_objext \
15340 conftest$ac_exeext conftest.$ac_ext
15341LIBS=$ac_check_lib_save_LIBS
15342fi
15343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15344$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15345if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15346 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15347else
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15349$as_echo_n "checking for dlopen in -lsvld... " >&6; }
15350if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
15351 $as_echo_n "(cached) " >&6
15352else
15353 ac_check_lib_save_LIBS=$LIBS
15354LIBS="-lsvld $LIBS"
15355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15356/* end confdefs.h. */
15357
15358/* Override any GCC internal prototype to avoid an error.
15359 Use char because int might match the return type of a GCC
15360 builtin and then its argument prototype would still apply. */
15361#ifdef __cplusplus
15362extern "C"
15363#endif
15364char dlopen ();
15365int
15366main ()
15367{
15368return dlopen ();
15369 ;
15370 return 0;
15371}
15372_ACEOF
15373if ac_fn_c_try_link "$LINENO"; then :
15374 ac_cv_lib_svld_dlopen=yes
15375else
15376 ac_cv_lib_svld_dlopen=no
15377fi
15378rm -f core conftest.err conftest.$ac_objext \
15379 conftest$ac_exeext conftest.$ac_ext
15380LIBS=$ac_check_lib_save_LIBS
15381fi
15382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15383$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15384if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
15385 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15386else
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15388$as_echo_n "checking for dld_link in -ldld... " >&6; }
15389if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
15390 $as_echo_n "(cached) " >&6
15391else
15392 ac_check_lib_save_LIBS=$LIBS
15393LIBS="-ldld $LIBS"
15394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15395/* end confdefs.h. */
15396
15397/* Override any GCC internal prototype to avoid an error.
15398 Use char because int might match the return type of a GCC
15399 builtin and then its argument prototype would still apply. */
15400#ifdef __cplusplus
15401extern "C"
15402#endif
15403char dld_link ();
15404int
15405main ()
15406{
15407return dld_link ();
15408 ;
15409 return 0;
15410}
15411_ACEOF
15412if ac_fn_c_try_link "$LINENO"; then :
15413 ac_cv_lib_dld_dld_link=yes
15414else
15415 ac_cv_lib_dld_dld_link=no
15416fi
15417rm -f core conftest.err conftest.$ac_objext \
15418 conftest$ac_exeext conftest.$ac_ext
15419LIBS=$ac_check_lib_save_LIBS
15420fi
15421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15422$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15423if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
15424 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15425fi
15426
15427
15428fi
15429
15430
15431fi
15432
15433
15434fi
15435
15436
15437fi
15438
15439
15440fi
15441
15442 ;;
15443 esac
15444
15445 if test "x$lt_cv_dlopen" != xno; then
15446 enable_dlopen=yes
15447 else
15448 enable_dlopen=no
15449 fi
15450
15451 case $lt_cv_dlopen in
15452 dlopen)
15453 save_CPPFLAGS="$CPPFLAGS"
15454 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15455
15456 save_LDFLAGS="$LDFLAGS"
15457 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15458
15459 save_LIBS="$LIBS"
15460 LIBS="$lt_cv_dlopen_libs $LIBS"
15461
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15463$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15464if test "${lt_cv_dlopen_self+set}" = set; then :
15465 $as_echo_n "(cached) " >&6
15466else
15467 if test "$cross_compiling" = yes; then :
15468 lt_cv_dlopen_self=cross
15469else
15470 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15471 lt_status=$lt_dlunknown
15472 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000015473#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000015474#include "confdefs.h"
15475
15476#if HAVE_DLFCN_H
15477#include <dlfcn.h>
15478#endif
15479
15480#include <stdio.h>
15481
15482#ifdef RTLD_GLOBAL
15483# define LT_DLGLOBAL RTLD_GLOBAL
15484#else
15485# ifdef DL_GLOBAL
15486# define LT_DLGLOBAL DL_GLOBAL
15487# else
15488# define LT_DLGLOBAL 0
15489# endif
15490#endif
15491
15492/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15493 find out it does not work in some platform. */
15494#ifndef LT_DLLAZY_OR_NOW
15495# ifdef RTLD_LAZY
15496# define LT_DLLAZY_OR_NOW RTLD_LAZY
15497# else
15498# ifdef DL_LAZY
15499# define LT_DLLAZY_OR_NOW DL_LAZY
15500# else
15501# ifdef RTLD_NOW
15502# define LT_DLLAZY_OR_NOW RTLD_NOW
15503# else
15504# ifdef DL_NOW
15505# define LT_DLLAZY_OR_NOW DL_NOW
15506# else
15507# define LT_DLLAZY_OR_NOW 0
15508# endif
15509# endif
15510# endif
15511# endif
15512#endif
15513
cristy0c60a692010-11-04 01:09:47 +000015514/* When -fvisbility=hidden is used, assume the code has been annotated
15515 correspondingly for the symbols needed. */
15516#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15517void fnord () __attribute__((visibility("default")));
15518#endif
15519
15520void fnord () { int i=42; }
cristy73bd4a52010-10-05 11:24:23 +000015521int main ()
15522{
15523 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15524 int status = $lt_dlunknown;
15525
15526 if (self)
15527 {
15528 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000015529 else
15530 {
15531 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15532 else puts (dlerror ());
15533 }
cristy73bd4a52010-10-05 11:24:23 +000015534 /* dlclose (self); */
15535 }
15536 else
15537 puts (dlerror ());
15538
15539 return status;
15540}
15541_LT_EOF
15542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15543 (eval $ac_link) 2>&5
15544 ac_status=$?
15545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15546 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15547 (./conftest; exit; ) >&5 2>/dev/null
15548 lt_status=$?
15549 case x$lt_status in
15550 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15551 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15552 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15553 esac
15554 else :
15555 # compilation failed
15556 lt_cv_dlopen_self=no
15557 fi
15558fi
15559rm -fr conftest*
15560
15561
15562fi
15563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15564$as_echo "$lt_cv_dlopen_self" >&6; }
15565
15566 if test "x$lt_cv_dlopen_self" = xyes; then
15567 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15569$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15570if test "${lt_cv_dlopen_self_static+set}" = set; then :
15571 $as_echo_n "(cached) " >&6
15572else
15573 if test "$cross_compiling" = yes; then :
15574 lt_cv_dlopen_self_static=cross
15575else
15576 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15577 lt_status=$lt_dlunknown
15578 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000015579#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000015580#include "confdefs.h"
15581
15582#if HAVE_DLFCN_H
15583#include <dlfcn.h>
15584#endif
15585
15586#include <stdio.h>
15587
15588#ifdef RTLD_GLOBAL
15589# define LT_DLGLOBAL RTLD_GLOBAL
15590#else
15591# ifdef DL_GLOBAL
15592# define LT_DLGLOBAL DL_GLOBAL
15593# else
15594# define LT_DLGLOBAL 0
15595# endif
15596#endif
15597
15598/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15599 find out it does not work in some platform. */
15600#ifndef LT_DLLAZY_OR_NOW
15601# ifdef RTLD_LAZY
15602# define LT_DLLAZY_OR_NOW RTLD_LAZY
15603# else
15604# ifdef DL_LAZY
15605# define LT_DLLAZY_OR_NOW DL_LAZY
15606# else
15607# ifdef RTLD_NOW
15608# define LT_DLLAZY_OR_NOW RTLD_NOW
15609# else
15610# ifdef DL_NOW
15611# define LT_DLLAZY_OR_NOW DL_NOW
15612# else
15613# define LT_DLLAZY_OR_NOW 0
15614# endif
15615# endif
15616# endif
15617# endif
15618#endif
15619
cristy0c60a692010-11-04 01:09:47 +000015620/* When -fvisbility=hidden is used, assume the code has been annotated
15621 correspondingly for the symbols needed. */
15622#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15623void fnord () __attribute__((visibility("default")));
15624#endif
15625
15626void fnord () { int i=42; }
cristy73bd4a52010-10-05 11:24:23 +000015627int main ()
15628{
15629 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15630 int status = $lt_dlunknown;
15631
15632 if (self)
15633 {
15634 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000015635 else
15636 {
15637 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15638 else puts (dlerror ());
15639 }
cristy73bd4a52010-10-05 11:24:23 +000015640 /* dlclose (self); */
15641 }
15642 else
15643 puts (dlerror ());
15644
15645 return status;
15646}
15647_LT_EOF
15648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15649 (eval $ac_link) 2>&5
15650 ac_status=$?
15651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15652 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15653 (./conftest; exit; ) >&5 2>/dev/null
15654 lt_status=$?
15655 case x$lt_status in
15656 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15657 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15658 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15659 esac
15660 else :
15661 # compilation failed
15662 lt_cv_dlopen_self_static=no
15663 fi
15664fi
15665rm -fr conftest*
15666
15667
15668fi
15669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15670$as_echo "$lt_cv_dlopen_self_static" >&6; }
15671 fi
15672
15673 CPPFLAGS="$save_CPPFLAGS"
15674 LDFLAGS="$save_LDFLAGS"
15675 LIBS="$save_LIBS"
15676 ;;
15677 esac
15678
15679 case $lt_cv_dlopen_self in
15680 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15681 *) enable_dlopen_self=unknown ;;
15682 esac
15683
15684 case $lt_cv_dlopen_self_static in
15685 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15686 *) enable_dlopen_self_static=unknown ;;
15687 esac
15688fi
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706striplib=
15707old_striplib=
15708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15709$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15710if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15711 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15712 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15714$as_echo "yes" >&6; }
15715else
15716# FIXME - insert some real tests, host_os isn't really good enough
15717 case $host_os in
15718 darwin*)
15719 if test -n "$STRIP" ; then
15720 striplib="$STRIP -x"
15721 old_striplib="$STRIP -S"
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15723$as_echo "yes" >&6; }
15724 else
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15726$as_echo "no" >&6; }
15727 fi
15728 ;;
15729 *)
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15731$as_echo "no" >&6; }
15732 ;;
15733 esac
15734fi
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747 # Report which library types will actually be built
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15749$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15751$as_echo "$can_build_shared" >&6; }
15752
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15754$as_echo_n "checking whether to build shared libraries... " >&6; }
15755 test "$can_build_shared" = "no" && enable_shared=no
15756
15757 # On AIX, shared libraries and static libraries use the same namespace, and
15758 # are all built from PIC.
15759 case $host_os in
15760 aix3*)
15761 test "$enable_shared" = yes && enable_static=no
15762 if test -n "$RANLIB"; then
15763 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15764 postinstall_cmds='$RANLIB $lib'
15765 fi
15766 ;;
15767
15768 aix[4-9]*)
15769 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15770 test "$enable_shared" = yes && enable_static=no
15771 fi
15772 ;;
15773 esac
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15775$as_echo "$enable_shared" >&6; }
15776
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15778$as_echo_n "checking whether to build static libraries... " >&6; }
15779 # Make sure either enable_shared or enable_static is yes.
15780 test "$enable_shared" = yes || enable_static=yes
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15782$as_echo "$enable_static" >&6; }
15783
15784
15785
15786
15787fi
15788ac_ext=c
15789ac_cpp='$CPP $CPPFLAGS'
15790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15792ac_compiler_gnu=$ac_cv_c_compiler_gnu
15793
15794CC="$lt_save_CC"
15795
cristy0c60a692010-11-04 01:09:47 +000015796 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15797 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15798 (test "X$CXX" != "Xg++"))) ; then
15799 ac_ext=cpp
15800ac_cpp='$CXXCPP $CPPFLAGS'
15801ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15802ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15803ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15805$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15806if test -z "$CXXCPP"; then
15807 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
15808 $as_echo_n "(cached) " >&6
15809else
15810 # Double quotes because CXXCPP needs to be expanded
15811 for CXXCPP in "$CXX -E" "/lib/cpp"
15812 do
15813 ac_preproc_ok=false
15814for ac_cxx_preproc_warn_flag in '' yes
15815do
15816 # Use a header file that comes with gcc, so configuring glibc
15817 # with a fresh cross-compiler works.
15818 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15819 # <limits.h> exists even on freestanding compilers.
15820 # On the NeXT, cc -E runs the code through the compiler's parser,
15821 # not just through cpp. "Syntax error" is here to catch this case.
15822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15823/* end confdefs.h. */
15824#ifdef __STDC__
15825# include <limits.h>
15826#else
15827# include <assert.h>
15828#endif
15829 Syntax error
15830_ACEOF
15831if ac_fn_cxx_try_cpp "$LINENO"; then :
15832
15833else
15834 # Broken: fails on valid input.
15835continue
15836fi
15837rm -f conftest.err conftest.$ac_ext
15838
15839 # OK, works on sane cases. Now check whether nonexistent headers
15840 # can be detected and how.
15841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842/* end confdefs.h. */
15843#include <ac_nonexistent.h>
15844_ACEOF
15845if ac_fn_cxx_try_cpp "$LINENO"; then :
15846 # Broken: success on invalid input.
15847continue
15848else
15849 # Passes both tests.
15850ac_preproc_ok=:
15851break
15852fi
15853rm -f conftest.err conftest.$ac_ext
15854
15855done
15856# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15857rm -f conftest.err conftest.$ac_ext
15858if $ac_preproc_ok; then :
15859 break
15860fi
15861
15862 done
15863 ac_cv_prog_CXXCPP=$CXXCPP
15864
15865fi
15866 CXXCPP=$ac_cv_prog_CXXCPP
15867else
15868 ac_cv_prog_CXXCPP=$CXXCPP
15869fi
15870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15871$as_echo "$CXXCPP" >&6; }
15872ac_preproc_ok=false
15873for ac_cxx_preproc_warn_flag in '' yes
15874do
15875 # Use a header file that comes with gcc, so configuring glibc
15876 # with a fresh cross-compiler works.
15877 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15878 # <limits.h> exists even on freestanding compilers.
15879 # On the NeXT, cc -E runs the code through the compiler's parser,
15880 # not just through cpp. "Syntax error" is here to catch this case.
15881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882/* end confdefs.h. */
15883#ifdef __STDC__
15884# include <limits.h>
15885#else
15886# include <assert.h>
15887#endif
15888 Syntax error
15889_ACEOF
15890if ac_fn_cxx_try_cpp "$LINENO"; then :
15891
15892else
15893 # Broken: fails on valid input.
15894continue
15895fi
15896rm -f conftest.err conftest.$ac_ext
15897
15898 # OK, works on sane cases. Now check whether nonexistent headers
15899 # can be detected and how.
15900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15901/* end confdefs.h. */
15902#include <ac_nonexistent.h>
15903_ACEOF
15904if ac_fn_cxx_try_cpp "$LINENO"; then :
15905 # Broken: success on invalid input.
15906continue
15907else
15908 # Passes both tests.
15909ac_preproc_ok=:
15910break
15911fi
15912rm -f conftest.err conftest.$ac_ext
15913
15914done
15915# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15916rm -f conftest.err conftest.$ac_ext
15917if $ac_preproc_ok; then :
15918
15919else
15920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15921$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15922as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15923See \`config.log' for more details" "$LINENO" 5; }
15924fi
15925
15926ac_ext=c
15927ac_cpp='$CPP $CPPFLAGS'
15928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15930ac_compiler_gnu=$ac_cv_c_compiler_gnu
15931
15932else
15933 _lt_caught_CXX_error=yes
15934fi
cristy73bd4a52010-10-05 11:24:23 +000015935
15936ac_ext=cpp
15937ac_cpp='$CXXCPP $CPPFLAGS'
15938ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15939ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15940ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15941
15942archive_cmds_need_lc_CXX=no
15943allow_undefined_flag_CXX=
15944always_export_symbols_CXX=no
15945archive_expsym_cmds_CXX=
15946compiler_needs_object_CXX=no
15947export_dynamic_flag_spec_CXX=
15948hardcode_direct_CXX=no
15949hardcode_direct_absolute_CXX=no
15950hardcode_libdir_flag_spec_CXX=
15951hardcode_libdir_flag_spec_ld_CXX=
15952hardcode_libdir_separator_CXX=
15953hardcode_minus_L_CXX=no
15954hardcode_shlibpath_var_CXX=unsupported
15955hardcode_automatic_CXX=no
15956inherit_rpath_CXX=no
15957module_cmds_CXX=
15958module_expsym_cmds_CXX=
15959link_all_deplibs_CXX=unknown
15960old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000015961reload_flag_CXX=$reload_flag
15962reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000015963no_undefined_flag_CXX=
15964whole_archive_flag_spec_CXX=
15965enable_shared_with_static_runtimes_CXX=no
15966
15967# Source file extension for C++ test sources.
15968ac_ext=cpp
15969
15970# Object file extension for compiled C++ test sources.
15971objext=o
15972objext_CXX=$objext
15973
15974# No sense in running all these tests if we already determined that
15975# the CXX compiler isn't working. Some variables (like enable_shared)
15976# are currently assumed to apply to all compilers on this platform,
15977# and will be corrupted by setting them based on a non-working compiler.
15978if test "$_lt_caught_CXX_error" != yes; then
15979 # Code to be used in simple compile tests
15980 lt_simple_compile_test_code="int some_variable = 0;"
15981
15982 # Code to be used in simple link tests
15983 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15984
15985 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15986
15987
15988
15989
15990
15991
15992# If no C compiler was specified, use CC.
15993LTCC=${LTCC-"$CC"}
15994
15995# If no C compiler flags were specified, use CFLAGS.
15996LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15997
15998# Allow CC to be a program name with arguments.
15999compiler=$CC
16000
16001
16002 # save warnings/boilerplate of simple test code
16003 ac_outfile=conftest.$ac_objext
16004echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16005eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16006_lt_compiler_boilerplate=`cat conftest.err`
16007$RM conftest*
16008
16009 ac_outfile=conftest.$ac_objext
16010echo "$lt_simple_link_test_code" >conftest.$ac_ext
16011eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16012_lt_linker_boilerplate=`cat conftest.err`
16013$RM -r conftest*
16014
16015
16016 # Allow CC to be a program name with arguments.
16017 lt_save_CC=$CC
16018 lt_save_LD=$LD
16019 lt_save_GCC=$GCC
16020 GCC=$GXX
16021 lt_save_with_gnu_ld=$with_gnu_ld
16022 lt_save_path_LD=$lt_cv_path_LD
16023 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16024 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16025 else
16026 $as_unset lt_cv_prog_gnu_ld
16027 fi
16028 if test -n "${lt_cv_path_LDCXX+set}"; then
16029 lt_cv_path_LD=$lt_cv_path_LDCXX
16030 else
16031 $as_unset lt_cv_path_LD
16032 fi
16033 test -z "${LDCXX+set}" || LD=$LDCXX
16034 CC=${CXX-"c++"}
16035 compiler=$CC
16036 compiler_CXX=$CC
16037 for cc_temp in $compiler""; do
16038 case $cc_temp in
16039 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16040 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16041 \-*) ;;
16042 *) break;;
16043 esac
16044done
cristy0c60a692010-11-04 01:09:47 +000016045cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000016046
16047
16048 if test -n "$compiler"; then
16049 # We don't want -fno-exception when compiling C++ code, so set the
16050 # no_builtin_flag separately
16051 if test "$GXX" = yes; then
16052 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16053 else
16054 lt_prog_compiler_no_builtin_flag_CXX=
16055 fi
16056
16057 if test "$GXX" = yes; then
16058 # Set up default GNU C++ configuration
16059
16060
16061
16062# Check whether --with-gnu-ld was given.
16063if test "${with_gnu_ld+set}" = set; then :
16064 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16065else
16066 with_gnu_ld=no
16067fi
16068
16069ac_prog=ld
16070if test "$GCC" = yes; then
16071 # Check if gcc -print-prog-name=ld gives a path.
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16073$as_echo_n "checking for ld used by $CC... " >&6; }
16074 case $host in
16075 *-*-mingw*)
16076 # gcc leaves a trailing carriage return which upsets mingw
16077 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16078 *)
16079 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16080 esac
16081 case $ac_prog in
16082 # Accept absolute paths.
16083 [\\/]* | ?:[\\/]*)
16084 re_direlt='/[^/][^/]*/\.\./'
16085 # Canonicalize the pathname of ld
16086 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16087 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16088 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16089 done
16090 test -z "$LD" && LD="$ac_prog"
16091 ;;
16092 "")
16093 # If it fails, then pretend we aren't using GCC.
16094 ac_prog=ld
16095 ;;
16096 *)
16097 # If it is relative, then search for the first ld in PATH.
16098 with_gnu_ld=unknown
16099 ;;
16100 esac
16101elif test "$with_gnu_ld" = yes; then
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16103$as_echo_n "checking for GNU ld... " >&6; }
16104else
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16106$as_echo_n "checking for non-GNU ld... " >&6; }
16107fi
16108if test "${lt_cv_path_LD+set}" = set; then :
16109 $as_echo_n "(cached) " >&6
16110else
16111 if test -z "$LD"; then
16112 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16113 for ac_dir in $PATH; do
16114 IFS="$lt_save_ifs"
16115 test -z "$ac_dir" && ac_dir=.
16116 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16117 lt_cv_path_LD="$ac_dir/$ac_prog"
16118 # Check to see if the program is GNU ld. I'd rather use --version,
16119 # but apparently some variants of GNU ld only accept -v.
16120 # Break only if it was the GNU/non-GNU ld that we prefer.
16121 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16122 *GNU* | *'with BFD'*)
16123 test "$with_gnu_ld" != no && break
16124 ;;
16125 *)
16126 test "$with_gnu_ld" != yes && break
16127 ;;
16128 esac
16129 fi
16130 done
16131 IFS="$lt_save_ifs"
16132else
16133 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16134fi
16135fi
16136
16137LD="$lt_cv_path_LD"
16138if test -n "$LD"; then
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16140$as_echo "$LD" >&6; }
16141else
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16143$as_echo "no" >&6; }
16144fi
cristy98dddb52010-11-04 00:30:15 +000016145test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000016146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16147$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16148if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16149 $as_echo_n "(cached) " >&6
16150else
16151 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16152case `$LD -v 2>&1 </dev/null` in
16153*GNU* | *'with BFD'*)
16154 lt_cv_prog_gnu_ld=yes
16155 ;;
16156*)
16157 lt_cv_prog_gnu_ld=no
16158 ;;
16159esac
16160fi
16161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16162$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16163with_gnu_ld=$lt_cv_prog_gnu_ld
16164
16165
16166
16167
16168
16169
16170
16171 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16172 # archiving commands below assume that GNU ld is being used.
16173 if test "$with_gnu_ld" = yes; then
16174 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16175 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16176
16177 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16178 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16179
16180 # If archive_cmds runs LD, not CC, wlarc should be empty
16181 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16182 # investigate it a little bit more. (MM)
16183 wlarc='${wl}'
16184
16185 # ancient GNU ld didn't support --whole-archive et. al.
16186 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16187 $GREP 'no-whole-archive' > /dev/null; then
16188 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16189 else
16190 whole_archive_flag_spec_CXX=
16191 fi
16192 else
16193 with_gnu_ld=no
16194 wlarc=
16195
16196 # A generic and very simple default shared library creation
16197 # command for GNU C++ for the case where it uses the native
16198 # linker, instead of GNU ld. If possible, this setting should
16199 # overridden to take advantage of the native linker features on
16200 # the platform it is being used on.
16201 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16202 fi
16203
16204 # Commands to make compiler produce verbose output that lists
16205 # what "hidden" libraries, object files and flags are used when
16206 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000016207 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000016208
16209 else
16210 GXX=no
16211 with_gnu_ld=no
16212 wlarc=
16213 fi
16214
16215 # PORTME: fill in a description of your system's C++ link characteristics
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16217$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16218 ld_shlibs_CXX=yes
16219 case $host_os in
16220 aix3*)
16221 # FIXME: insert proper C++ library support
16222 ld_shlibs_CXX=no
16223 ;;
16224 aix[4-9]*)
16225 if test "$host_cpu" = ia64; then
16226 # On IA64, the linker does run time linking by default, so we don't
16227 # have to do anything special.
16228 aix_use_runtimelinking=no
16229 exp_sym_flag='-Bexport'
16230 no_entry_flag=""
16231 else
16232 aix_use_runtimelinking=no
16233
16234 # Test if we are trying to use run time linking or normal
16235 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16236 # need to do runtime linking.
16237 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16238 for ld_flag in $LDFLAGS; do
16239 case $ld_flag in
16240 *-brtl*)
16241 aix_use_runtimelinking=yes
16242 break
16243 ;;
16244 esac
16245 done
16246 ;;
16247 esac
16248
16249 exp_sym_flag='-bexport'
16250 no_entry_flag='-bnoentry'
16251 fi
16252
16253 # When large executables or shared objects are built, AIX ld can
16254 # have problems creating the table of contents. If linking a library
16255 # or program results in "error TOC overflow" add -mminimal-toc to
16256 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16257 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16258
16259 archive_cmds_CXX=''
16260 hardcode_direct_CXX=yes
16261 hardcode_direct_absolute_CXX=yes
16262 hardcode_libdir_separator_CXX=':'
16263 link_all_deplibs_CXX=yes
16264 file_list_spec_CXX='${wl}-f,'
16265
16266 if test "$GXX" = yes; then
16267 case $host_os in aix4.[012]|aix4.[012].*)
16268 # We only want to do this on AIX 4.2 and lower, the check
16269 # below for broken collect2 doesn't work under 4.3+
16270 collect2name=`${CC} -print-prog-name=collect2`
16271 if test -f "$collect2name" &&
16272 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16273 then
16274 # We have reworked collect2
16275 :
16276 else
16277 # We have old collect2
16278 hardcode_direct_CXX=unsupported
16279 # It fails to find uninstalled libraries when the uninstalled
16280 # path is not listed in the libpath. Setting hardcode_minus_L
16281 # to unsupported forces relinking
16282 hardcode_minus_L_CXX=yes
16283 hardcode_libdir_flag_spec_CXX='-L$libdir'
16284 hardcode_libdir_separator_CXX=
16285 fi
16286 esac
16287 shared_flag='-shared'
16288 if test "$aix_use_runtimelinking" = yes; then
16289 shared_flag="$shared_flag "'${wl}-G'
16290 fi
16291 else
16292 # not using gcc
16293 if test "$host_cpu" = ia64; then
16294 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16295 # chokes on -Wl,-G. The following line is correct:
16296 shared_flag='-G'
16297 else
16298 if test "$aix_use_runtimelinking" = yes; then
16299 shared_flag='${wl}-G'
16300 else
16301 shared_flag='${wl}-bM:SRE'
16302 fi
16303 fi
16304 fi
16305
16306 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16307 # It seems that -bexpall does not export symbols beginning with
16308 # underscore (_), so it is better to generate a list of symbols to
16309 # export.
16310 always_export_symbols_CXX=yes
16311 if test "$aix_use_runtimelinking" = yes; then
16312 # Warning - without using the other runtime loading flags (-brtl),
16313 # -berok will link without error, but may produce a broken library.
16314 allow_undefined_flag_CXX='-berok'
16315 # Determine the default libpath from the value encoded in an empty
16316 # executable.
16317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16318/* end confdefs.h. */
16319
16320int
16321main ()
16322{
16323
16324 ;
16325 return 0;
16326}
16327_ACEOF
16328if ac_fn_cxx_try_link "$LINENO"; then :
16329
16330lt_aix_libpath_sed='
16331 /Import File Strings/,/^$/ {
16332 /^0/ {
16333 s/^0 *\(.*\)$/\1/
16334 p
16335 }
16336 }'
16337aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16338# Check for a 64-bit object if we didn't find anything.
16339if test -z "$aix_libpath"; then
16340 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16341fi
16342fi
16343rm -f core conftest.err conftest.$ac_objext \
16344 conftest$ac_exeext conftest.$ac_ext
16345if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16346
16347 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16348
cristy0c60a692010-11-04 01:09:47 +000016349 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 +000016350 else
16351 if test "$host_cpu" = ia64; then
16352 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16353 allow_undefined_flag_CXX="-z nodefs"
16354 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"
16355 else
16356 # Determine the default libpath from the value encoded in an
16357 # empty executable.
16358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16359/* end confdefs.h. */
16360
16361int
16362main ()
16363{
16364
16365 ;
16366 return 0;
16367}
16368_ACEOF
16369if ac_fn_cxx_try_link "$LINENO"; then :
16370
16371lt_aix_libpath_sed='
16372 /Import File Strings/,/^$/ {
16373 /^0/ {
16374 s/^0 *\(.*\)$/\1/
16375 p
16376 }
16377 }'
16378aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16379# Check for a 64-bit object if we didn't find anything.
16380if test -z "$aix_libpath"; then
16381 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16382fi
16383fi
16384rm -f core conftest.err conftest.$ac_objext \
16385 conftest$ac_exeext conftest.$ac_ext
16386if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16387
16388 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16389 # Warning - without using the other run time loading flags,
16390 # -berok will link without error, but may produce a broken library.
16391 no_undefined_flag_CXX=' ${wl}-bernotok'
16392 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000016393 if test "$with_gnu_ld" = yes; then
16394 # We only use this code for GNU lds that support --whole-archive.
16395 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16396 else
16397 # Exported symbols can be pulled into shared objects from archives
16398 whole_archive_flag_spec_CXX='$convenience'
16399 fi
cristy73bd4a52010-10-05 11:24:23 +000016400 archive_cmds_need_lc_CXX=yes
16401 # This is similar to how AIX traditionally builds its shared
16402 # libraries.
16403 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'
16404 fi
16405 fi
16406 ;;
16407
16408 beos*)
16409 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16410 allow_undefined_flag_CXX=unsupported
16411 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16412 # support --undefined. This deserves some investigation. FIXME
16413 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16414 else
16415 ld_shlibs_CXX=no
16416 fi
16417 ;;
16418
16419 chorus*)
16420 case $cc_basename in
16421 *)
16422 # FIXME: insert proper C++ library support
16423 ld_shlibs_CXX=no
16424 ;;
16425 esac
16426 ;;
16427
16428 cygwin* | mingw* | pw32* | cegcc*)
16429 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16430 # as there is no search path for DLLs.
16431 hardcode_libdir_flag_spec_CXX='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000016432 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000016433 allow_undefined_flag_CXX=unsupported
16434 always_export_symbols_CXX=no
16435 enable_shared_with_static_runtimes_CXX=yes
16436
16437 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16438 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'
16439 # If the export-symbols file already is a .def file (1st line
16440 # is EXPORTS), use it as is; otherwise, prepend...
16441 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16442 cp $export_symbols $output_objdir/$soname.def;
16443 else
16444 echo EXPORTS > $output_objdir/$soname.def;
16445 cat $export_symbols >> $output_objdir/$soname.def;
16446 fi~
16447 $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'
16448 else
16449 ld_shlibs_CXX=no
16450 fi
16451 ;;
16452 darwin* | rhapsody*)
16453
16454
16455 archive_cmds_need_lc_CXX=no
16456 hardcode_direct_CXX=no
16457 hardcode_automatic_CXX=yes
16458 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000016459 if test "$lt_cv_ld_force_load" = "yes"; then
16460 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\"`'
16461 else
16462 whole_archive_flag_spec_CXX=''
16463 fi
cristy73bd4a52010-10-05 11:24:23 +000016464 link_all_deplibs_CXX=yes
16465 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16466 case $cc_basename in
16467 ifort*) _lt_dar_can_shared=yes ;;
16468 *) _lt_dar_can_shared=$GCC ;;
16469 esac
16470 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000016471 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000016472 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}"
16473 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16474 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}"
16475 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}"
16476 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16477 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}"
16478 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}"
16479 fi
16480
16481 else
16482 ld_shlibs_CXX=no
16483 fi
16484
16485 ;;
16486
16487 dgux*)
16488 case $cc_basename in
16489 ec++*)
16490 # FIXME: insert proper C++ library support
16491 ld_shlibs_CXX=no
16492 ;;
16493 ghcx*)
16494 # Green Hills C++ Compiler
16495 # FIXME: insert proper C++ library support
16496 ld_shlibs_CXX=no
16497 ;;
16498 *)
16499 # FIXME: insert proper C++ library support
16500 ld_shlibs_CXX=no
16501 ;;
16502 esac
16503 ;;
16504
16505 freebsd[12]*)
16506 # C++ shared libraries reported to be fairly broken before
16507 # switch to ELF
16508 ld_shlibs_CXX=no
16509 ;;
16510
16511 freebsd-elf*)
16512 archive_cmds_need_lc_CXX=no
16513 ;;
16514
16515 freebsd* | dragonfly*)
16516 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16517 # conventions
16518 ld_shlibs_CXX=yes
16519 ;;
16520
16521 gnu*)
16522 ;;
16523
cristy0c60a692010-11-04 01:09:47 +000016524 haiku*)
16525 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16526 link_all_deplibs_CXX=yes
16527 ;;
16528
cristy73bd4a52010-10-05 11:24:23 +000016529 hpux9*)
16530 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16531 hardcode_libdir_separator_CXX=:
16532 export_dynamic_flag_spec_CXX='${wl}-E'
16533 hardcode_direct_CXX=yes
16534 hardcode_minus_L_CXX=yes # Not in the search PATH,
16535 # but as the default
16536 # location of the library.
16537
16538 case $cc_basename in
16539 CC*)
16540 # FIXME: insert proper C++ library support
16541 ld_shlibs_CXX=no
16542 ;;
16543 aCC*)
16544 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'
16545 # Commands to make compiler produce verbose output that lists
16546 # what "hidden" libraries, object files and flags are used when
16547 # linking a shared library.
16548 #
16549 # There doesn't appear to be a way to prevent this compiler from
16550 # explicitly linking system object files so we need to strip them
16551 # from the output so that they don't get included in the library
16552 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000016553 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 +000016554 ;;
16555 *)
16556 if test "$GXX" = yes; then
16557 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
16558 else
16559 # FIXME: insert proper C++ library support
16560 ld_shlibs_CXX=no
16561 fi
16562 ;;
16563 esac
16564 ;;
16565
16566 hpux10*|hpux11*)
16567 if test $with_gnu_ld = no; then
16568 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16569 hardcode_libdir_separator_CXX=:
16570
16571 case $host_cpu in
16572 hppa*64*|ia64*)
16573 ;;
16574 *)
16575 export_dynamic_flag_spec_CXX='${wl}-E'
16576 ;;
16577 esac
16578 fi
16579 case $host_cpu in
16580 hppa*64*|ia64*)
16581 hardcode_direct_CXX=no
16582 hardcode_shlibpath_var_CXX=no
16583 ;;
16584 *)
16585 hardcode_direct_CXX=yes
16586 hardcode_direct_absolute_CXX=yes
16587 hardcode_minus_L_CXX=yes # Not in the search PATH,
16588 # but as the default
16589 # location of the library.
16590 ;;
16591 esac
16592
16593 case $cc_basename in
16594 CC*)
16595 # FIXME: insert proper C++ library support
16596 ld_shlibs_CXX=no
16597 ;;
16598 aCC*)
16599 case $host_cpu in
16600 hppa*64*)
16601 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16602 ;;
16603 ia64*)
16604 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16605 ;;
16606 *)
16607 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16608 ;;
16609 esac
16610 # Commands to make compiler produce verbose output that lists
16611 # what "hidden" libraries, object files and flags are used when
16612 # linking a shared library.
16613 #
16614 # There doesn't appear to be a way to prevent this compiler from
16615 # explicitly linking system object files so we need to strip them
16616 # from the output so that they don't get included in the library
16617 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000016618 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 +000016619 ;;
16620 *)
16621 if test "$GXX" = yes; then
16622 if test $with_gnu_ld = no; then
16623 case $host_cpu in
16624 hppa*64*)
16625 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16626 ;;
16627 ia64*)
16628 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16629 ;;
16630 *)
16631 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16632 ;;
16633 esac
16634 fi
16635 else
16636 # FIXME: insert proper C++ library support
16637 ld_shlibs_CXX=no
16638 fi
16639 ;;
16640 esac
16641 ;;
16642
16643 interix[3-9]*)
16644 hardcode_direct_CXX=no
16645 hardcode_shlibpath_var_CXX=no
16646 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16647 export_dynamic_flag_spec_CXX='${wl}-E'
16648 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16649 # Instead, shared libraries are loaded at an image base (0x10000000 by
16650 # default) and relocated if they conflict, which is a slow very memory
16651 # consuming and fragmenting process. To avoid this, we pick a random,
16652 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16653 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16654 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'
16655 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'
16656 ;;
16657 irix5* | irix6*)
16658 case $cc_basename in
16659 CC*)
16660 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000016661 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 +000016662
16663 # Archives containing C++ object files must be created using
16664 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16665 # necessary to make sure instantiated templates are included
16666 # in the archive.
16667 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16668 ;;
16669 *)
16670 if test "$GXX" = yes; then
16671 if test "$with_gnu_ld" = no; then
cristy0c60a692010-11-04 01:09:47 +000016672 archive_cmds_CXX='$CC -shared -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 +000016673 else
cristy0c60a692010-11-04 01:09:47 +000016674 archive_cmds_CXX='$CC -shared -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 +000016675 fi
16676 fi
16677 link_all_deplibs_CXX=yes
16678 ;;
16679 esac
16680 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16681 hardcode_libdir_separator_CXX=:
16682 inherit_rpath_CXX=yes
16683 ;;
16684
cristy0c60a692010-11-04 01:09:47 +000016685 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000016686 case $cc_basename in
16687 KCC*)
16688 # Kuck and Associates, Inc. (KAI) C++ Compiler
16689
16690 # KCC will only create a shared library if the output file
16691 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16692 # to its proper name (with version) after linking.
16693 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'
16694 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'
16695 # Commands to make compiler produce verbose output that lists
16696 # what "hidden" libraries, object files and flags are used when
16697 # linking a shared library.
16698 #
16699 # There doesn't appear to be a way to prevent this compiler from
16700 # explicitly linking system object files so we need to strip them
16701 # from the output so that they don't get included in the library
16702 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000016703 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 +000016704
16705 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16706 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16707
16708 # Archives containing C++ object files must be created using
16709 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16710 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16711 ;;
16712 icpc* | ecpc* )
16713 # Intel C++
16714 with_gnu_ld=yes
16715 # version 8.0 and above of icpc choke on multiply defined symbols
16716 # if we add $predep_objects and $postdep_objects, however 7.1 and
16717 # earlier do not add the objects themselves.
16718 case `$CC -V 2>&1` in
16719 *"Version 7."*)
16720 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16721 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'
16722 ;;
16723 *) # Version 8.0 or newer
16724 tmp_idyn=
16725 case $host_cpu in
16726 ia64*) tmp_idyn=' -i_dynamic';;
16727 esac
16728 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16729 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'
16730 ;;
16731 esac
16732 archive_cmds_need_lc_CXX=no
16733 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16734 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16735 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16736 ;;
16737 pgCC* | pgcpp*)
16738 # Portland Group C++ compiler
16739 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000016740 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000016741 prelink_cmds_CXX='tpldir=Template.dir~
16742 rm -rf $tpldir~
16743 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000016744 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000016745 old_archive_cmds_CXX='tpldir=Template.dir~
16746 rm -rf $tpldir~
16747 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000016748 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000016749 $RANLIB $oldlib'
16750 archive_cmds_CXX='tpldir=Template.dir~
16751 rm -rf $tpldir~
16752 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000016753 $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 +000016754 archive_expsym_cmds_CXX='tpldir=Template.dir~
16755 rm -rf $tpldir~
16756 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000016757 $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 +000016758 ;;
cristy0c60a692010-11-04 01:09:47 +000016759 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000016760 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16761 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'
16762 ;;
16763 esac
16764
16765 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16766 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000016767 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 +000016768 ;;
16769 cxx*)
16770 # Compaq C++
16771 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16772 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'
16773
16774 runpath_var=LD_RUN_PATH
16775 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16776 hardcode_libdir_separator_CXX=:
16777
16778 # Commands to make compiler produce verbose output that lists
16779 # what "hidden" libraries, object files and flags are used when
16780 # linking a shared library.
16781 #
16782 # There doesn't appear to be a way to prevent this compiler from
16783 # explicitly linking system object files so we need to strip them
16784 # from the output so that they don't get included in the library
16785 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000016786 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 +000016787 ;;
cristy0c60a692010-11-04 01:09:47 +000016788 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000016789 # IBM XL 8.0 on PPC, with GNU ld
16790 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16791 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16792 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16793 if test "x$supports_anon_versioning" = xyes; then
16794 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16795 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16796 echo "local: *; };" >> $output_objdir/$libname.ver~
16797 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16798 fi
16799 ;;
16800 *)
16801 case `$CC -V 2>&1 | sed 5q` in
16802 *Sun\ C*)
16803 # Sun C++ 5.9
16804 no_undefined_flag_CXX=' -zdefs'
16805 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16806 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'
16807 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000016808 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 +000016809 compiler_needs_object_CXX=yes
16810
16811 # Not sure whether something based on
16812 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16813 # would be better.
cristy0c60a692010-11-04 01:09:47 +000016814 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000016815
16816 # Archives containing C++ object files must be created using
16817 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16818 # necessary to make sure instantiated templates are included
16819 # in the archive.
16820 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16821 ;;
16822 esac
16823 ;;
16824 esac
16825 ;;
16826
16827 lynxos*)
16828 # FIXME: insert proper C++ library support
16829 ld_shlibs_CXX=no
16830 ;;
16831
16832 m88k*)
16833 # FIXME: insert proper C++ library support
16834 ld_shlibs_CXX=no
16835 ;;
16836
16837 mvs*)
16838 case $cc_basename in
16839 cxx*)
16840 # FIXME: insert proper C++ library support
16841 ld_shlibs_CXX=no
16842 ;;
16843 *)
16844 # FIXME: insert proper C++ library support
16845 ld_shlibs_CXX=no
16846 ;;
16847 esac
16848 ;;
16849
16850 netbsd*)
16851 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16852 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16853 wlarc=
16854 hardcode_libdir_flag_spec_CXX='-R$libdir'
16855 hardcode_direct_CXX=yes
16856 hardcode_shlibpath_var_CXX=no
16857 fi
16858 # Workaround some broken pre-1.5 toolchains
16859 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16860 ;;
16861
16862 *nto* | *qnx*)
16863 ld_shlibs_CXX=yes
16864 ;;
16865
16866 openbsd2*)
16867 # C++ shared libraries are fairly broken
16868 ld_shlibs_CXX=no
16869 ;;
16870
16871 openbsd*)
16872 if test -f /usr/libexec/ld.so; then
16873 hardcode_direct_CXX=yes
16874 hardcode_shlibpath_var_CXX=no
16875 hardcode_direct_absolute_CXX=yes
16876 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16877 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16878 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16879 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16880 export_dynamic_flag_spec_CXX='${wl}-E'
16881 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16882 fi
cristy0c60a692010-11-04 01:09:47 +000016883 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000016884 else
16885 ld_shlibs_CXX=no
16886 fi
16887 ;;
16888
16889 osf3* | osf4* | osf5*)
16890 case $cc_basename in
16891 KCC*)
16892 # Kuck and Associates, Inc. (KAI) C++ Compiler
16893
16894 # KCC will only create a shared library if the output file
16895 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16896 # to its proper name (with version) after linking.
16897 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'
16898
16899 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16900 hardcode_libdir_separator_CXX=:
16901
16902 # Archives containing C++ object files must be created using
16903 # the KAI C++ compiler.
16904 case $host in
16905 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16906 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16907 esac
16908 ;;
16909 RCC*)
16910 # Rational C++ 2.4.1
16911 # FIXME: insert proper C++ library support
16912 ld_shlibs_CXX=no
16913 ;;
16914 cxx*)
16915 case $host in
16916 osf3*)
16917 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016918 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 +000016919 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16920 ;;
16921 *)
16922 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016923 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 +000016924 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16925 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000016926 $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 +000016927 $RM $lib.exp'
16928 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16929 ;;
16930 esac
16931
16932 hardcode_libdir_separator_CXX=:
16933
16934 # Commands to make compiler produce verbose output that lists
16935 # what "hidden" libraries, object files and flags are used when
16936 # linking a shared library.
16937 #
16938 # There doesn't appear to be a way to prevent this compiler from
16939 # explicitly linking system object files so we need to strip them
16940 # from the output so that they don't get included in the library
16941 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000016942 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 +000016943 ;;
16944 *)
16945 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16946 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16947 case $host in
16948 osf3*)
cristy0c60a692010-11-04 01:09:47 +000016949 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 +000016950 ;;
16951 *)
cristy0c60a692010-11-04 01:09:47 +000016952 archive_cmds_CXX='$CC -shared -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 +000016953 ;;
16954 esac
16955
16956 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16957 hardcode_libdir_separator_CXX=:
16958
16959 # Commands to make compiler produce verbose output that lists
16960 # what "hidden" libraries, object files and flags are used when
16961 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000016962 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000016963
16964 else
16965 # FIXME: insert proper C++ library support
16966 ld_shlibs_CXX=no
16967 fi
16968 ;;
16969 esac
16970 ;;
16971
16972 psos*)
16973 # FIXME: insert proper C++ library support
16974 ld_shlibs_CXX=no
16975 ;;
16976
16977 sunos4*)
16978 case $cc_basename in
16979 CC*)
16980 # Sun C++ 4.x
16981 # FIXME: insert proper C++ library support
16982 ld_shlibs_CXX=no
16983 ;;
16984 lcc*)
16985 # Lucid
16986 # FIXME: insert proper C++ library support
16987 ld_shlibs_CXX=no
16988 ;;
16989 *)
16990 # FIXME: insert proper C++ library support
16991 ld_shlibs_CXX=no
16992 ;;
16993 esac
16994 ;;
16995
16996 solaris*)
16997 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000016998 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000016999 # Sun C++ 4.2, 5.x and Centerline C++
17000 archive_cmds_need_lc_CXX=yes
17001 no_undefined_flag_CXX=' -zdefs'
17002 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17003 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17004 $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'
17005
17006 hardcode_libdir_flag_spec_CXX='-R$libdir'
17007 hardcode_shlibpath_var_CXX=no
17008 case $host_os in
17009 solaris2.[0-5] | solaris2.[0-5].*) ;;
17010 *)
17011 # The compiler driver will combine and reorder linker options,
17012 # but understands `-z linker_flag'.
17013 # Supported since Solaris 2.6 (maybe 2.5.1?)
17014 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17015 ;;
17016 esac
17017 link_all_deplibs_CXX=yes
17018
cristy0c60a692010-11-04 01:09:47 +000017019 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017020
17021 # Archives containing C++ object files must be created using
17022 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17023 # necessary to make sure instantiated templates are included
17024 # in the archive.
17025 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17026 ;;
17027 gcx*)
17028 # Green Hills C++ Compiler
17029 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17030
17031 # The C++ compiler must be used to create the archive.
17032 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17033 ;;
17034 *)
17035 # GNU C++ compiler with Solaris linker
17036 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17037 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17038 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17039 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17040 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17041 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17042
17043 # Commands to make compiler produce verbose output that lists
17044 # what "hidden" libraries, object files and flags are used when
17045 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017046 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017047 else
17048 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17049 # platform.
17050 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17051 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17052 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17053
17054 # Commands to make compiler produce verbose output that lists
17055 # what "hidden" libraries, object files and flags are used when
17056 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017057 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017058 fi
17059
17060 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17061 case $host_os in
17062 solaris2.[0-5] | solaris2.[0-5].*) ;;
17063 *)
17064 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17065 ;;
17066 esac
17067 fi
17068 ;;
17069 esac
17070 ;;
17071
17072 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17073 no_undefined_flag_CXX='${wl}-z,text'
17074 archive_cmds_need_lc_CXX=no
17075 hardcode_shlibpath_var_CXX=no
17076 runpath_var='LD_RUN_PATH'
17077
17078 case $cc_basename in
17079 CC*)
17080 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17081 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17082 ;;
17083 *)
17084 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17085 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17086 ;;
17087 esac
17088 ;;
17089
17090 sysv5* | sco3.2v5* | sco5v6*)
17091 # Note: We can NOT use -z defs as we might desire, because we do not
17092 # link with -lc, and that would cause any symbols used from libc to
17093 # always be unresolved, which means just about no library would
17094 # ever link correctly. If we're not using GNU ld we use -z text
17095 # though, which does catch some bad symbols but isn't as heavy-handed
17096 # as -z defs.
17097 no_undefined_flag_CXX='${wl}-z,text'
17098 allow_undefined_flag_CXX='${wl}-z,nodefs'
17099 archive_cmds_need_lc_CXX=no
17100 hardcode_shlibpath_var_CXX=no
17101 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17102 hardcode_libdir_separator_CXX=':'
17103 link_all_deplibs_CXX=yes
17104 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17105 runpath_var='LD_RUN_PATH'
17106
17107 case $cc_basename in
17108 CC*)
17109 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17110 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 +000017111 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17112 '"$old_archive_cmds_CXX"
17113 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17114 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000017115 ;;
17116 *)
17117 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17118 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17119 ;;
17120 esac
17121 ;;
17122
17123 tandem*)
17124 case $cc_basename in
17125 NCC*)
17126 # NonStop-UX NCC 3.20
17127 # FIXME: insert proper C++ library support
17128 ld_shlibs_CXX=no
17129 ;;
17130 *)
17131 # FIXME: insert proper C++ library support
17132 ld_shlibs_CXX=no
17133 ;;
17134 esac
17135 ;;
17136
17137 vxworks*)
17138 # FIXME: insert proper C++ library support
17139 ld_shlibs_CXX=no
17140 ;;
17141
17142 *)
17143 # FIXME: insert proper C++ library support
17144 ld_shlibs_CXX=no
17145 ;;
17146 esac
17147
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17149$as_echo "$ld_shlibs_CXX" >&6; }
17150 test "$ld_shlibs_CXX" = no && can_build_shared=no
17151
17152 GCC_CXX="$GXX"
17153 LD_CXX="$LD"
17154
17155 ## CAVEAT EMPTOR:
17156 ## There is no encapsulation within the following macros, do not change
17157 ## the running order or otherwise move them around unless you know exactly
17158 ## what you are doing...
17159 # Dependencies to place before and after the object being linked:
17160predep_objects_CXX=
17161postdep_objects_CXX=
17162predeps_CXX=
17163postdeps_CXX=
17164compiler_lib_search_path_CXX=
17165
17166cat > conftest.$ac_ext <<_LT_EOF
17167class Foo
17168{
17169public:
17170 Foo (void) { a = 0; }
17171private:
17172 int a;
17173};
17174_LT_EOF
17175
17176if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17177 (eval $ac_compile) 2>&5
17178 ac_status=$?
17179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17180 test $ac_status = 0; }; then
17181 # Parse the compiler output and extract the necessary
17182 # objects, libraries and library flags.
17183
17184 # Sentinel used to keep track of whether or not we are before
17185 # the conftest object file.
17186 pre_test_object_deps_done=no
17187
17188 for p in `eval "$output_verbose_link_cmd"`; do
17189 case $p in
17190
17191 -L* | -R* | -l*)
17192 # Some compilers place space between "-{L,R}" and the path.
17193 # Remove the space.
17194 if test $p = "-L" ||
17195 test $p = "-R"; then
17196 prev=$p
17197 continue
17198 else
17199 prev=
17200 fi
17201
17202 if test "$pre_test_object_deps_done" = no; then
17203 case $p in
17204 -L* | -R*)
17205 # Internal compiler library paths should come after those
17206 # provided the user. The postdeps already come after the
17207 # user supplied libs so there is no need to process them.
17208 if test -z "$compiler_lib_search_path_CXX"; then
17209 compiler_lib_search_path_CXX="${prev}${p}"
17210 else
17211 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17212 fi
17213 ;;
17214 # The "-l" case would never come before the object being
17215 # linked, so don't bother handling this case.
17216 esac
17217 else
17218 if test -z "$postdeps_CXX"; then
17219 postdeps_CXX="${prev}${p}"
17220 else
17221 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17222 fi
17223 fi
17224 ;;
17225
17226 *.$objext)
17227 # This assumes that the test object file only shows up
17228 # once in the compiler output.
17229 if test "$p" = "conftest.$objext"; then
17230 pre_test_object_deps_done=yes
17231 continue
17232 fi
17233
17234 if test "$pre_test_object_deps_done" = no; then
17235 if test -z "$predep_objects_CXX"; then
17236 predep_objects_CXX="$p"
17237 else
17238 predep_objects_CXX="$predep_objects_CXX $p"
17239 fi
17240 else
17241 if test -z "$postdep_objects_CXX"; then
17242 postdep_objects_CXX="$p"
17243 else
17244 postdep_objects_CXX="$postdep_objects_CXX $p"
17245 fi
17246 fi
17247 ;;
17248
17249 *) ;; # Ignore the rest.
17250
17251 esac
17252 done
17253
17254 # Clean up.
17255 rm -f a.out a.exe
17256else
17257 echo "libtool.m4: error: problem compiling CXX test program"
17258fi
17259
17260$RM -f confest.$objext
17261
17262# PORTME: override above test on systems where it is broken
17263case $host_os in
17264interix[3-9]*)
17265 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17266 # hack all around it, let's just trust "g++" to DTRT.
17267 predep_objects_CXX=
17268 postdep_objects_CXX=
17269 postdeps_CXX=
17270 ;;
17271
17272linux*)
17273 case `$CC -V 2>&1 | sed 5q` in
17274 *Sun\ C*)
17275 # Sun C++ 5.9
17276
17277 # The more standards-conforming stlport4 library is
17278 # incompatible with the Cstd library. Avoid specifying
17279 # it if it's in CXXFLAGS. Ignore libCrun as
17280 # -library=stlport4 depends on it.
17281 case " $CXX $CXXFLAGS " in
17282 *" -library=stlport4 "*)
17283 solaris_use_stlport4=yes
17284 ;;
17285 esac
17286
17287 if test "$solaris_use_stlport4" != yes; then
17288 postdeps_CXX='-library=Cstd -library=Crun'
17289 fi
17290 ;;
17291 esac
17292 ;;
17293
17294solaris*)
17295 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000017296 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000017297 # The more standards-conforming stlport4 library is
17298 # incompatible with the Cstd library. Avoid specifying
17299 # it if it's in CXXFLAGS. Ignore libCrun as
17300 # -library=stlport4 depends on it.
17301 case " $CXX $CXXFLAGS " in
17302 *" -library=stlport4 "*)
17303 solaris_use_stlport4=yes
17304 ;;
17305 esac
17306
17307 # Adding this requires a known-good setup of shared libraries for
17308 # Sun compiler versions before 5.6, else PIC objects from an old
17309 # archive will be linked into the output, leading to subtle bugs.
17310 if test "$solaris_use_stlport4" != yes; then
17311 postdeps_CXX='-library=Cstd -library=Crun'
17312 fi
17313 ;;
17314 esac
17315 ;;
17316esac
17317
17318
17319case " $postdeps_CXX " in
17320*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17321esac
17322 compiler_lib_search_dirs_CXX=
17323if test -n "${compiler_lib_search_path_CXX}"; then
17324 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17325fi
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357 lt_prog_compiler_wl_CXX=
17358lt_prog_compiler_pic_CXX=
17359lt_prog_compiler_static_CXX=
17360
17361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17362$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17363
17364 # C++ specific cases for pic, static, wl, etc.
17365 if test "$GXX" = yes; then
17366 lt_prog_compiler_wl_CXX='-Wl,'
17367 lt_prog_compiler_static_CXX='-static'
17368
17369 case $host_os in
17370 aix*)
17371 # All AIX code is PIC.
17372 if test "$host_cpu" = ia64; then
17373 # AIX 5 now supports IA64 processor
17374 lt_prog_compiler_static_CXX='-Bstatic'
17375 fi
17376 ;;
17377
17378 amigaos*)
17379 case $host_cpu in
17380 powerpc)
17381 # see comment about AmigaOS4 .so support
17382 lt_prog_compiler_pic_CXX='-fPIC'
17383 ;;
17384 m68k)
17385 # FIXME: we need at least 68020 code to build shared libraries, but
17386 # adding the `-m68020' flag to GCC prevents building anything better,
17387 # like `-m68040'.
17388 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17389 ;;
17390 esac
17391 ;;
17392
17393 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17394 # PIC is the default for these OSes.
17395 ;;
17396 mingw* | cygwin* | os2* | pw32* | cegcc*)
17397 # This hack is so that the source file can tell whether it is being
17398 # built for inclusion in a dll (and should export symbols for example).
17399 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17400 # (--disable-auto-import) libraries
17401 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17402 ;;
17403 darwin* | rhapsody*)
17404 # PIC is the default on this platform
17405 # Common symbols not allowed in MH_DYLIB files
17406 lt_prog_compiler_pic_CXX='-fno-common'
17407 ;;
17408 *djgpp*)
17409 # DJGPP does not support shared libraries at all
17410 lt_prog_compiler_pic_CXX=
17411 ;;
cristy0c60a692010-11-04 01:09:47 +000017412 haiku*)
17413 # PIC is the default for Haiku.
17414 # The "-static" flag exists, but is broken.
17415 lt_prog_compiler_static_CXX=
17416 ;;
cristy73bd4a52010-10-05 11:24:23 +000017417 interix[3-9]*)
17418 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17419 # Instead, we relocate shared libraries at runtime.
17420 ;;
17421 sysv4*MP*)
17422 if test -d /usr/nec; then
17423 lt_prog_compiler_pic_CXX=-Kconform_pic
17424 fi
17425 ;;
17426 hpux*)
17427 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17428 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17429 # sets the default TLS model and affects inlining.
17430 case $host_cpu in
17431 hppa*64*)
17432 ;;
17433 *)
17434 lt_prog_compiler_pic_CXX='-fPIC'
17435 ;;
17436 esac
17437 ;;
17438 *qnx* | *nto*)
17439 # QNX uses GNU C++, but need to define -shared option too, otherwise
17440 # it will coredump.
17441 lt_prog_compiler_pic_CXX='-fPIC -shared'
17442 ;;
17443 *)
17444 lt_prog_compiler_pic_CXX='-fPIC'
17445 ;;
17446 esac
17447 else
17448 case $host_os in
17449 aix[4-9]*)
17450 # All AIX code is PIC.
17451 if test "$host_cpu" = ia64; then
17452 # AIX 5 now supports IA64 processor
17453 lt_prog_compiler_static_CXX='-Bstatic'
17454 else
17455 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17456 fi
17457 ;;
17458 chorus*)
17459 case $cc_basename in
17460 cxch68*)
17461 # Green Hills C++ Compiler
17462 # _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"
17463 ;;
17464 esac
17465 ;;
17466 dgux*)
17467 case $cc_basename in
17468 ec++*)
17469 lt_prog_compiler_pic_CXX='-KPIC'
17470 ;;
17471 ghcx*)
17472 # Green Hills C++ Compiler
17473 lt_prog_compiler_pic_CXX='-pic'
17474 ;;
17475 *)
17476 ;;
17477 esac
17478 ;;
17479 freebsd* | dragonfly*)
17480 # FreeBSD uses GNU C++
17481 ;;
17482 hpux9* | hpux10* | hpux11*)
17483 case $cc_basename in
17484 CC*)
17485 lt_prog_compiler_wl_CXX='-Wl,'
17486 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17487 if test "$host_cpu" != ia64; then
17488 lt_prog_compiler_pic_CXX='+Z'
17489 fi
17490 ;;
17491 aCC*)
17492 lt_prog_compiler_wl_CXX='-Wl,'
17493 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17494 case $host_cpu in
17495 hppa*64*|ia64*)
17496 # +Z the default
17497 ;;
17498 *)
17499 lt_prog_compiler_pic_CXX='+Z'
17500 ;;
17501 esac
17502 ;;
17503 *)
17504 ;;
17505 esac
17506 ;;
17507 interix*)
17508 # This is c89, which is MS Visual C++ (no shared libs)
17509 # Anyone wants to do a port?
17510 ;;
17511 irix5* | irix6* | nonstopux*)
17512 case $cc_basename in
17513 CC*)
17514 lt_prog_compiler_wl_CXX='-Wl,'
17515 lt_prog_compiler_static_CXX='-non_shared'
17516 # CC pic flag -KPIC is the default.
17517 ;;
17518 *)
17519 ;;
17520 esac
17521 ;;
cristy0c60a692010-11-04 01:09:47 +000017522 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017523 case $cc_basename in
17524 KCC*)
17525 # KAI C++ Compiler
17526 lt_prog_compiler_wl_CXX='--backend -Wl,'
17527 lt_prog_compiler_pic_CXX='-fPIC'
17528 ;;
17529 ecpc* )
17530 # old Intel C++ for x86_64 which still supported -KPIC.
17531 lt_prog_compiler_wl_CXX='-Wl,'
17532 lt_prog_compiler_pic_CXX='-KPIC'
17533 lt_prog_compiler_static_CXX='-static'
17534 ;;
17535 icpc* )
17536 # Intel C++, used to be incompatible with GCC.
17537 # ICC 10 doesn't accept -KPIC any more.
17538 lt_prog_compiler_wl_CXX='-Wl,'
17539 lt_prog_compiler_pic_CXX='-fPIC'
17540 lt_prog_compiler_static_CXX='-static'
17541 ;;
17542 pgCC* | pgcpp*)
17543 # Portland Group C++ compiler
17544 lt_prog_compiler_wl_CXX='-Wl,'
17545 lt_prog_compiler_pic_CXX='-fpic'
17546 lt_prog_compiler_static_CXX='-Bstatic'
17547 ;;
17548 cxx*)
17549 # Compaq C++
17550 # Make sure the PIC flag is empty. It appears that all Alpha
17551 # Linux and Compaq Tru64 Unix objects are PIC.
17552 lt_prog_compiler_pic_CXX=
17553 lt_prog_compiler_static_CXX='-non_shared'
17554 ;;
cristy0c60a692010-11-04 01:09:47 +000017555 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17556 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000017557 lt_prog_compiler_wl_CXX='-Wl,'
17558 lt_prog_compiler_pic_CXX='-qpic'
17559 lt_prog_compiler_static_CXX='-qstaticlink'
17560 ;;
17561 *)
17562 case `$CC -V 2>&1 | sed 5q` in
17563 *Sun\ C*)
17564 # Sun C++ 5.9
17565 lt_prog_compiler_pic_CXX='-KPIC'
17566 lt_prog_compiler_static_CXX='-Bstatic'
17567 lt_prog_compiler_wl_CXX='-Qoption ld '
17568 ;;
17569 esac
17570 ;;
17571 esac
17572 ;;
17573 lynxos*)
17574 ;;
17575 m88k*)
17576 ;;
17577 mvs*)
17578 case $cc_basename in
17579 cxx*)
17580 lt_prog_compiler_pic_CXX='-W c,exportall'
17581 ;;
17582 *)
17583 ;;
17584 esac
17585 ;;
17586 netbsd*)
17587 ;;
17588 *qnx* | *nto*)
17589 # QNX uses GNU C++, but need to define -shared option too, otherwise
17590 # it will coredump.
17591 lt_prog_compiler_pic_CXX='-fPIC -shared'
17592 ;;
17593 osf3* | osf4* | osf5*)
17594 case $cc_basename in
17595 KCC*)
17596 lt_prog_compiler_wl_CXX='--backend -Wl,'
17597 ;;
17598 RCC*)
17599 # Rational C++ 2.4.1
17600 lt_prog_compiler_pic_CXX='-pic'
17601 ;;
17602 cxx*)
17603 # Digital/Compaq C++
17604 lt_prog_compiler_wl_CXX='-Wl,'
17605 # Make sure the PIC flag is empty. It appears that all Alpha
17606 # Linux and Compaq Tru64 Unix objects are PIC.
17607 lt_prog_compiler_pic_CXX=
17608 lt_prog_compiler_static_CXX='-non_shared'
17609 ;;
17610 *)
17611 ;;
17612 esac
17613 ;;
17614 psos*)
17615 ;;
17616 solaris*)
17617 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000017618 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000017619 # Sun C++ 4.2, 5.x and Centerline C++
17620 lt_prog_compiler_pic_CXX='-KPIC'
17621 lt_prog_compiler_static_CXX='-Bstatic'
17622 lt_prog_compiler_wl_CXX='-Qoption ld '
17623 ;;
17624 gcx*)
17625 # Green Hills C++ Compiler
17626 lt_prog_compiler_pic_CXX='-PIC'
17627 ;;
17628 *)
17629 ;;
17630 esac
17631 ;;
17632 sunos4*)
17633 case $cc_basename in
17634 CC*)
17635 # Sun C++ 4.x
17636 lt_prog_compiler_pic_CXX='-pic'
17637 lt_prog_compiler_static_CXX='-Bstatic'
17638 ;;
17639 lcc*)
17640 # Lucid
17641 lt_prog_compiler_pic_CXX='-pic'
17642 ;;
17643 *)
17644 ;;
17645 esac
17646 ;;
17647 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17648 case $cc_basename in
17649 CC*)
17650 lt_prog_compiler_wl_CXX='-Wl,'
17651 lt_prog_compiler_pic_CXX='-KPIC'
17652 lt_prog_compiler_static_CXX='-Bstatic'
17653 ;;
17654 esac
17655 ;;
17656 tandem*)
17657 case $cc_basename in
17658 NCC*)
17659 # NonStop-UX NCC 3.20
17660 lt_prog_compiler_pic_CXX='-KPIC'
17661 ;;
17662 *)
17663 ;;
17664 esac
17665 ;;
17666 vxworks*)
17667 ;;
17668 *)
17669 lt_prog_compiler_can_build_shared_CXX=no
17670 ;;
17671 esac
17672 fi
17673
17674case $host_os in
17675 # For platforms which do not support PIC, -DPIC is meaningless:
17676 *djgpp*)
17677 lt_prog_compiler_pic_CXX=
17678 ;;
17679 *)
17680 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17681 ;;
17682esac
17683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
17684$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17685
17686
17687
17688#
17689# Check to make sure the PIC flag actually works.
17690#
17691if test -n "$lt_prog_compiler_pic_CXX"; then
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17693$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17694if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
17695 $as_echo_n "(cached) " >&6
17696else
17697 lt_cv_prog_compiler_pic_works_CXX=no
17698 ac_outfile=conftest.$ac_objext
17699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17700 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17701 # Insert the option either (1) after the last *FLAGS variable, or
17702 # (2) before a word containing "conftest.", or (3) at the end.
17703 # Note that $ac_compile itself does not contain backslashes and begins
17704 # with a dollar sign (not a hyphen), so the echo should work correctly.
17705 # The option is referenced via a variable to avoid confusing sed.
17706 lt_compile=`echo "$ac_compile" | $SED \
17707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17709 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000017710 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000017711 (eval "$lt_compile" 2>conftest.err)
17712 ac_status=$?
17713 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000017714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000017715 if (exit $ac_status) && test -s "$ac_outfile"; then
17716 # The compiler can only warn and ignore the option if not recognized
17717 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000017718 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000017719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17720 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17721 lt_cv_prog_compiler_pic_works_CXX=yes
17722 fi
17723 fi
17724 $RM conftest*
17725
17726fi
17727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17728$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17729
17730if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17731 case $lt_prog_compiler_pic_CXX in
17732 "" | " "*) ;;
17733 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17734 esac
17735else
17736 lt_prog_compiler_pic_CXX=
17737 lt_prog_compiler_can_build_shared_CXX=no
17738fi
17739
17740fi
17741
17742
17743
17744#
17745# Check to make sure the static flag actually works.
17746#
17747wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17749$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17750if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
17751 $as_echo_n "(cached) " >&6
17752else
17753 lt_cv_prog_compiler_static_works_CXX=no
17754 save_LDFLAGS="$LDFLAGS"
17755 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17756 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17757 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17758 # The linker can only warn and ignore the option if not recognized
17759 # So say no if there are warnings
17760 if test -s conftest.err; then
17761 # Append any errors to the config.log.
17762 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000017763 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000017764 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17765 if diff conftest.exp conftest.er2 >/dev/null; then
17766 lt_cv_prog_compiler_static_works_CXX=yes
17767 fi
17768 else
17769 lt_cv_prog_compiler_static_works_CXX=yes
17770 fi
17771 fi
17772 $RM -r conftest*
17773 LDFLAGS="$save_LDFLAGS"
17774
17775fi
17776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17777$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17778
17779if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17780 :
17781else
17782 lt_prog_compiler_static_CXX=
17783fi
17784
17785
17786
17787
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17789$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17790if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17791 $as_echo_n "(cached) " >&6
17792else
17793 lt_cv_prog_compiler_c_o_CXX=no
17794 $RM -r conftest 2>/dev/null
17795 mkdir conftest
17796 cd conftest
17797 mkdir out
17798 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17799
17800 lt_compiler_flag="-o out/conftest2.$ac_objext"
17801 # Insert the option either (1) after the last *FLAGS variable, or
17802 # (2) before a word containing "conftest.", or (3) at the end.
17803 # Note that $ac_compile itself does not contain backslashes and begins
17804 # with a dollar sign (not a hyphen), so the echo should work correctly.
17805 lt_compile=`echo "$ac_compile" | $SED \
17806 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17808 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000017809 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000017810 (eval "$lt_compile" 2>out/conftest.err)
17811 ac_status=$?
17812 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000017813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000017814 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17815 then
17816 # The compiler can only warn and ignore the option if not recognized
17817 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000017818 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000017819 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17820 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17821 lt_cv_prog_compiler_c_o_CXX=yes
17822 fi
17823 fi
17824 chmod u+w . 2>&5
17825 $RM conftest*
17826 # SGI C++ compiler will create directory out/ii_files/ for
17827 # template instantiation
17828 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17829 $RM out/* && rmdir out
17830 cd ..
17831 $RM -r conftest
17832 $RM conftest*
17833
17834fi
17835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17836$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17837
17838
17839
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17841$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17842if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17843 $as_echo_n "(cached) " >&6
17844else
17845 lt_cv_prog_compiler_c_o_CXX=no
17846 $RM -r conftest 2>/dev/null
17847 mkdir conftest
17848 cd conftest
17849 mkdir out
17850 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17851
17852 lt_compiler_flag="-o out/conftest2.$ac_objext"
17853 # Insert the option either (1) after the last *FLAGS variable, or
17854 # (2) before a word containing "conftest.", or (3) at the end.
17855 # Note that $ac_compile itself does not contain backslashes and begins
17856 # with a dollar sign (not a hyphen), so the echo should work correctly.
17857 lt_compile=`echo "$ac_compile" | $SED \
17858 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17860 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000017861 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000017862 (eval "$lt_compile" 2>out/conftest.err)
17863 ac_status=$?
17864 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000017865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000017866 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17867 then
17868 # The compiler can only warn and ignore the option if not recognized
17869 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000017870 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000017871 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17872 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17873 lt_cv_prog_compiler_c_o_CXX=yes
17874 fi
17875 fi
17876 chmod u+w . 2>&5
17877 $RM conftest*
17878 # SGI C++ compiler will create directory out/ii_files/ for
17879 # template instantiation
17880 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17881 $RM out/* && rmdir out
17882 cd ..
17883 $RM -r conftest
17884 $RM conftest*
17885
17886fi
17887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17888$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17889
17890
17891
17892
17893hard_links="nottested"
17894if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17895 # do not overwrite the value of need_locks provided by the user
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17897$as_echo_n "checking if we can lock with hard links... " >&6; }
17898 hard_links=yes
17899 $RM conftest*
17900 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17901 touch conftest.a
17902 ln conftest.a conftest.b 2>&5 || hard_links=no
17903 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17905$as_echo "$hard_links" >&6; }
17906 if test "$hard_links" = no; then
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17908$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17909 need_locks=warn
17910 fi
17911else
17912 need_locks=no
17913fi
17914
17915
17916
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17918$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17919
17920 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17921 case $host_os in
17922 aix[4-9]*)
17923 # If we're using GNU nm, then we don't want the "-C" option.
17924 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000017925 # Also, AIX nm treats weak defined symbols like other global defined
17926 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000017927 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000017928 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 +000017929 else
17930 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'
17931 fi
17932 ;;
17933 pw32*)
17934 export_symbols_cmds_CXX="$ltdll_cmds"
17935 ;;
17936 cygwin* | mingw* | cegcc*)
17937 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17938 ;;
17939 *)
17940 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17941 ;;
17942 esac
17943 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17944
17945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17946$as_echo "$ld_shlibs_CXX" >&6; }
17947test "$ld_shlibs_CXX" = no && can_build_shared=no
17948
17949with_gnu_ld_CXX=$with_gnu_ld
17950
17951
17952
17953
17954
17955
17956#
17957# Do we need to explicitly link libc?
17958#
17959case "x$archive_cmds_need_lc_CXX" in
17960x|xyes)
17961 # Assume -lc should be added
17962 archive_cmds_need_lc_CXX=yes
17963
17964 if test "$enable_shared" = yes && test "$GCC" = yes; then
17965 case $archive_cmds_CXX in
17966 *'~'*)
17967 # FIXME: we may have to deal with multi-command sequences.
17968 ;;
17969 '$CC '*)
17970 # Test whether the compiler implicitly links with -lc since on some
17971 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17972 # to ld, don't add -lc before -lgcc.
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17974$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy0c60a692010-11-04 01:09:47 +000017975if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
17976 $as_echo_n "(cached) " >&6
17977else
17978 $RM conftest*
17979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017980
cristy0c60a692010-11-04 01:09:47 +000017981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000017982 (eval $ac_compile) 2>&5
17983 ac_status=$?
17984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17985 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000017986 soname=conftest
17987 lib=conftest
17988 libobjs=conftest.$ac_objext
17989 deplibs=
17990 wl=$lt_prog_compiler_wl_CXX
17991 pic_flag=$lt_prog_compiler_pic_CXX
17992 compiler_flags=-v
17993 linker_flags=-v
17994 verstring=
17995 output_objdir=.
17996 libname=conftest
17997 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17998 allow_undefined_flag_CXX=
17999 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 +000018000 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18001 ac_status=$?
18002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18003 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000018004 then
18005 lt_cv_archive_cmds_need_lc_CXX=no
18006 else
18007 lt_cv_archive_cmds_need_lc_CXX=yes
18008 fi
18009 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18010 else
18011 cat conftest.err 1>&5
18012 fi
18013 $RM conftest*
18014
18015fi
18016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18017$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18018 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000018019 ;;
18020 esac
18021 fi
18022 ;;
18023esac
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18089$as_echo_n "checking dynamic linker characteristics... " >&6; }
18090
18091library_names_spec=
18092libname_spec='lib$name'
18093soname_spec=
18094shrext_cmds=".so"
18095postinstall_cmds=
18096postuninstall_cmds=
18097finish_cmds=
18098finish_eval=
18099shlibpath_var=
18100shlibpath_overrides_runpath=unknown
18101version_type=none
18102dynamic_linker="$host_os ld.so"
18103sys_lib_dlsearch_path_spec="/lib /usr/lib"
18104need_lib_prefix=unknown
18105hardcode_into_libs=no
18106
18107# when you set need_version to no, make sure it does not cause -set_version
18108# flags to be left without arguments
18109need_version=unknown
18110
18111case $host_os in
18112aix3*)
18113 version_type=linux
18114 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18115 shlibpath_var=LIBPATH
18116
18117 # AIX 3 has no versioning support, so we append a major version to the name.
18118 soname_spec='${libname}${release}${shared_ext}$major'
18119 ;;
18120
18121aix[4-9]*)
18122 version_type=linux
18123 need_lib_prefix=no
18124 need_version=no
18125 hardcode_into_libs=yes
18126 if test "$host_cpu" = ia64; then
18127 # AIX 5 supports IA64
18128 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18129 shlibpath_var=LD_LIBRARY_PATH
18130 else
18131 # With GCC up to 2.95.x, collect2 would create an import file
18132 # for dependence libraries. The import file would start with
18133 # the line `#! .'. This would cause the generated library to
18134 # depend on `.', always an invalid library. This was fixed in
18135 # development snapshots of GCC prior to 3.0.
18136 case $host_os in
18137 aix4 | aix4.[01] | aix4.[01].*)
18138 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18139 echo ' yes '
18140 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18141 :
18142 else
18143 can_build_shared=no
18144 fi
18145 ;;
18146 esac
18147 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18148 # soname into executable. Probably we can add versioning support to
18149 # collect2, so additional links can be useful in future.
18150 if test "$aix_use_runtimelinking" = yes; then
18151 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18152 # instead of lib<name>.a to let people know that these are not
18153 # typical AIX shared libraries.
18154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18155 else
18156 # We preserve .a as extension for shared libraries through AIX4.2
18157 # and later when we are not doing run time linking.
18158 library_names_spec='${libname}${release}.a $libname.a'
18159 soname_spec='${libname}${release}${shared_ext}$major'
18160 fi
18161 shlibpath_var=LIBPATH
18162 fi
18163 ;;
18164
18165amigaos*)
18166 case $host_cpu in
18167 powerpc)
18168 # Since July 2007 AmigaOS4 officially supports .so libraries.
18169 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18171 ;;
18172 m68k)
18173 library_names_spec='$libname.ixlibrary $libname.a'
18174 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000018175 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 +000018176 ;;
18177 esac
18178 ;;
18179
18180beos*)
18181 library_names_spec='${libname}${shared_ext}'
18182 dynamic_linker="$host_os ld.so"
18183 shlibpath_var=LIBRARY_PATH
18184 ;;
18185
18186bsdi[45]*)
18187 version_type=linux
18188 need_version=no
18189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18190 soname_spec='${libname}${release}${shared_ext}$major'
18191 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18192 shlibpath_var=LD_LIBRARY_PATH
18193 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18194 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18195 # the default ld.so.conf also contains /usr/contrib/lib and
18196 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18197 # libtool to hard-code these into programs
18198 ;;
18199
18200cygwin* | mingw* | pw32* | cegcc*)
18201 version_type=windows
18202 shrext_cmds=".dll"
18203 need_version=no
18204 need_lib_prefix=no
18205
18206 case $GCC,$host_os in
18207 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18208 library_names_spec='$libname.dll.a'
18209 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18210 postinstall_cmds='base_file=`basename \${file}`~
18211 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18212 dldir=$destdir/`dirname \$dlpath`~
18213 test -d \$dldir || mkdir -p \$dldir~
18214 $install_prog $dir/$dlname \$dldir/$dlname~
18215 chmod a+x \$dldir/$dlname~
18216 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18217 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18218 fi'
18219 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18220 dlpath=$dir/\$dldll~
18221 $RM \$dlpath'
18222 shlibpath_overrides_runpath=yes
18223
18224 case $host_os in
18225 cygwin*)
18226 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18227 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000018228
cristy73bd4a52010-10-05 11:24:23 +000018229 ;;
18230 mingw* | cegcc*)
18231 # MinGW DLLs use traditional 'lib' prefix
18232 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000018233 ;;
18234 pw32*)
18235 # pw32 DLLs use 'pw' prefix rather than 'lib'
18236 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18237 ;;
18238 esac
18239 ;;
18240
18241 *)
18242 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18243 ;;
18244 esac
18245 dynamic_linker='Win32 ld.exe'
18246 # FIXME: first we should search . and the directory the executable is in
18247 shlibpath_var=PATH
18248 ;;
18249
18250darwin* | rhapsody*)
18251 dynamic_linker="$host_os dyld"
18252 version_type=darwin
18253 need_lib_prefix=no
18254 need_version=no
18255 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18256 soname_spec='${libname}${release}${major}$shared_ext'
18257 shlibpath_overrides_runpath=yes
18258 shlibpath_var=DYLD_LIBRARY_PATH
18259 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18260
18261 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18262 ;;
18263
18264dgux*)
18265 version_type=linux
18266 need_lib_prefix=no
18267 need_version=no
18268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18269 soname_spec='${libname}${release}${shared_ext}$major'
18270 shlibpath_var=LD_LIBRARY_PATH
18271 ;;
18272
18273freebsd1*)
18274 dynamic_linker=no
18275 ;;
18276
18277freebsd* | dragonfly*)
18278 # DragonFly does not have aout. When/if they implement a new
18279 # versioning mechanism, adjust this.
18280 if test -x /usr/bin/objformat; then
18281 objformat=`/usr/bin/objformat`
18282 else
18283 case $host_os in
18284 freebsd[123]*) objformat=aout ;;
18285 *) objformat=elf ;;
18286 esac
18287 fi
18288 version_type=freebsd-$objformat
18289 case $version_type in
18290 freebsd-elf*)
18291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18292 need_version=no
18293 need_lib_prefix=no
18294 ;;
18295 freebsd-*)
18296 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18297 need_version=yes
18298 ;;
18299 esac
18300 shlibpath_var=LD_LIBRARY_PATH
18301 case $host_os in
18302 freebsd2*)
18303 shlibpath_overrides_runpath=yes
18304 ;;
18305 freebsd3.[01]* | freebsdelf3.[01]*)
18306 shlibpath_overrides_runpath=yes
18307 hardcode_into_libs=yes
18308 ;;
18309 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18310 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18311 shlibpath_overrides_runpath=no
18312 hardcode_into_libs=yes
18313 ;;
18314 *) # from 4.6 on, and DragonFly
18315 shlibpath_overrides_runpath=yes
18316 hardcode_into_libs=yes
18317 ;;
18318 esac
18319 ;;
18320
18321gnu*)
18322 version_type=linux
18323 need_lib_prefix=no
18324 need_version=no
18325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18326 soname_spec='${libname}${release}${shared_ext}$major'
18327 shlibpath_var=LD_LIBRARY_PATH
18328 hardcode_into_libs=yes
18329 ;;
18330
cristy0c60a692010-11-04 01:09:47 +000018331haiku*)
18332 version_type=linux
18333 need_lib_prefix=no
18334 need_version=no
18335 dynamic_linker="$host_os runtime_loader"
18336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18337 soname_spec='${libname}${release}${shared_ext}$major'
18338 shlibpath_var=LIBRARY_PATH
18339 shlibpath_overrides_runpath=yes
18340 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18341 hardcode_into_libs=yes
18342 ;;
18343
cristy73bd4a52010-10-05 11:24:23 +000018344hpux9* | hpux10* | hpux11*)
18345 # Give a soname corresponding to the major version so that dld.sl refuses to
18346 # link against other versions.
18347 version_type=sunos
18348 need_lib_prefix=no
18349 need_version=no
18350 case $host_cpu in
18351 ia64*)
18352 shrext_cmds='.so'
18353 hardcode_into_libs=yes
18354 dynamic_linker="$host_os dld.so"
18355 shlibpath_var=LD_LIBRARY_PATH
18356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18358 soname_spec='${libname}${release}${shared_ext}$major'
18359 if test "X$HPUX_IA64_MODE" = X32; then
18360 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18361 else
18362 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18363 fi
18364 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18365 ;;
18366 hppa*64*)
18367 shrext_cmds='.sl'
18368 hardcode_into_libs=yes
18369 dynamic_linker="$host_os dld.sl"
18370 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18371 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18373 soname_spec='${libname}${release}${shared_ext}$major'
18374 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18376 ;;
18377 *)
18378 shrext_cmds='.sl'
18379 dynamic_linker="$host_os dld.sl"
18380 shlibpath_var=SHLIB_PATH
18381 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18383 soname_spec='${libname}${release}${shared_ext}$major'
18384 ;;
18385 esac
cristy0c60a692010-11-04 01:09:47 +000018386 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000018387 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000018388 # or fails outright, so override atomically:
18389 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000018390 ;;
18391
18392interix[3-9]*)
18393 version_type=linux
18394 need_lib_prefix=no
18395 need_version=no
18396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18397 soname_spec='${libname}${release}${shared_ext}$major'
18398 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18399 shlibpath_var=LD_LIBRARY_PATH
18400 shlibpath_overrides_runpath=no
18401 hardcode_into_libs=yes
18402 ;;
18403
18404irix5* | irix6* | nonstopux*)
18405 case $host_os in
18406 nonstopux*) version_type=nonstopux ;;
18407 *)
18408 if test "$lt_cv_prog_gnu_ld" = yes; then
18409 version_type=linux
18410 else
18411 version_type=irix
18412 fi ;;
18413 esac
18414 need_lib_prefix=no
18415 need_version=no
18416 soname_spec='${libname}${release}${shared_ext}$major'
18417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18418 case $host_os in
18419 irix5* | nonstopux*)
18420 libsuff= shlibsuff=
18421 ;;
18422 *)
18423 case $LD in # libtool.m4 will add one of these switches to LD
18424 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18425 libsuff= shlibsuff= libmagic=32-bit;;
18426 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18427 libsuff=32 shlibsuff=N32 libmagic=N32;;
18428 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18429 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18430 *) libsuff= shlibsuff= libmagic=never-match;;
18431 esac
18432 ;;
18433 esac
18434 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18435 shlibpath_overrides_runpath=no
18436 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18437 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18438 hardcode_into_libs=yes
18439 ;;
18440
18441# No shared lib support for Linux oldld, aout, or coff.
18442linux*oldld* | linux*aout* | linux*coff*)
18443 dynamic_linker=no
18444 ;;
18445
18446# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000018447linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018448 version_type=linux
18449 need_lib_prefix=no
18450 need_version=no
18451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18452 soname_spec='${libname}${release}${shared_ext}$major'
18453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18454 shlibpath_var=LD_LIBRARY_PATH
18455 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000018456
cristy73bd4a52010-10-05 11:24:23 +000018457 # Some binutils ld are patched to set DT_RUNPATH
cristy0c60a692010-11-04 01:09:47 +000018458 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
18459 $as_echo_n "(cached) " >&6
18460else
18461 lt_cv_shlibpath_overrides_runpath=no
18462 save_LDFLAGS=$LDFLAGS
18463 save_libdir=$libdir
18464 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18465 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018467/* end confdefs.h. */
18468
18469int
18470main ()
18471{
18472
18473 ;
18474 return 0;
18475}
18476_ACEOF
18477if ac_fn_cxx_try_link "$LINENO"; then :
18478 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000018479 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000018480fi
18481fi
18482rm -f core conftest.err conftest.$ac_objext \
18483 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018484 LDFLAGS=$save_LDFLAGS
18485 libdir=$save_libdir
18486
18487fi
18488
18489 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000018490
18491 # This implies no fast_install, which is unacceptable.
18492 # Some rework will be needed to allow for fast_install
18493 # before this can be enabled.
18494 hardcode_into_libs=yes
18495
18496 # Add ABI-specific directories to the system library path.
18497 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18498
18499 # Append ld.so.conf contents to the search path
18500 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000018501 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 +000018502 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000018503
cristy73bd4a52010-10-05 11:24:23 +000018504 fi
18505
18506 # We used to test for /lib/ld.so.1 and disable shared libraries on
18507 # powerpc, because MkLinux only supported shared libraries with the
18508 # GNU dynamic linker. Since this was broken with cross compilers,
18509 # most powerpc-linux boxes support dynamic linking these days and
18510 # people can always --disable-shared, the test was removed, and we
18511 # assume the GNU/Linux dynamic linker is in use.
18512 dynamic_linker='GNU/Linux ld.so'
18513 ;;
18514
18515netbsd*)
18516 version_type=sunos
18517 need_lib_prefix=no
18518 need_version=no
18519 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18521 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18522 dynamic_linker='NetBSD (a.out) ld.so'
18523 else
18524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18525 soname_spec='${libname}${release}${shared_ext}$major'
18526 dynamic_linker='NetBSD ld.elf_so'
18527 fi
18528 shlibpath_var=LD_LIBRARY_PATH
18529 shlibpath_overrides_runpath=yes
18530 hardcode_into_libs=yes
18531 ;;
18532
18533newsos6)
18534 version_type=linux
18535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18536 shlibpath_var=LD_LIBRARY_PATH
18537 shlibpath_overrides_runpath=yes
18538 ;;
18539
18540*nto* | *qnx*)
18541 version_type=qnx
18542 need_lib_prefix=no
18543 need_version=no
18544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18545 soname_spec='${libname}${release}${shared_ext}$major'
18546 shlibpath_var=LD_LIBRARY_PATH
18547 shlibpath_overrides_runpath=no
18548 hardcode_into_libs=yes
18549 dynamic_linker='ldqnx.so'
18550 ;;
18551
18552openbsd*)
18553 version_type=sunos
18554 sys_lib_dlsearch_path_spec="/usr/lib"
18555 need_lib_prefix=no
18556 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18557 case $host_os in
18558 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18559 *) need_version=no ;;
18560 esac
18561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18562 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18563 shlibpath_var=LD_LIBRARY_PATH
18564 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18565 case $host_os in
18566 openbsd2.[89] | openbsd2.[89].*)
18567 shlibpath_overrides_runpath=no
18568 ;;
18569 *)
18570 shlibpath_overrides_runpath=yes
18571 ;;
18572 esac
18573 else
18574 shlibpath_overrides_runpath=yes
18575 fi
18576 ;;
18577
18578os2*)
18579 libname_spec='$name'
18580 shrext_cmds=".dll"
18581 need_lib_prefix=no
18582 library_names_spec='$libname${shared_ext} $libname.a'
18583 dynamic_linker='OS/2 ld.exe'
18584 shlibpath_var=LIBPATH
18585 ;;
18586
18587osf3* | osf4* | osf5*)
18588 version_type=osf
18589 need_lib_prefix=no
18590 need_version=no
18591 soname_spec='${libname}${release}${shared_ext}$major'
18592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18593 shlibpath_var=LD_LIBRARY_PATH
18594 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18595 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18596 ;;
18597
18598rdos*)
18599 dynamic_linker=no
18600 ;;
18601
18602solaris*)
18603 version_type=linux
18604 need_lib_prefix=no
18605 need_version=no
18606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18607 soname_spec='${libname}${release}${shared_ext}$major'
18608 shlibpath_var=LD_LIBRARY_PATH
18609 shlibpath_overrides_runpath=yes
18610 hardcode_into_libs=yes
18611 # ldd complains unless libraries are executable
18612 postinstall_cmds='chmod +x $lib'
18613 ;;
18614
18615sunos4*)
18616 version_type=sunos
18617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18618 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18619 shlibpath_var=LD_LIBRARY_PATH
18620 shlibpath_overrides_runpath=yes
18621 if test "$with_gnu_ld" = yes; then
18622 need_lib_prefix=no
18623 fi
18624 need_version=yes
18625 ;;
18626
18627sysv4 | sysv4.3*)
18628 version_type=linux
18629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18630 soname_spec='${libname}${release}${shared_ext}$major'
18631 shlibpath_var=LD_LIBRARY_PATH
18632 case $host_vendor in
18633 sni)
18634 shlibpath_overrides_runpath=no
18635 need_lib_prefix=no
18636 runpath_var=LD_RUN_PATH
18637 ;;
18638 siemens)
18639 need_lib_prefix=no
18640 ;;
18641 motorola)
18642 need_lib_prefix=no
18643 need_version=no
18644 shlibpath_overrides_runpath=no
18645 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18646 ;;
18647 esac
18648 ;;
18649
18650sysv4*MP*)
18651 if test -d /usr/nec ;then
18652 version_type=linux
18653 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18654 soname_spec='$libname${shared_ext}.$major'
18655 shlibpath_var=LD_LIBRARY_PATH
18656 fi
18657 ;;
18658
18659sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18660 version_type=freebsd-elf
18661 need_lib_prefix=no
18662 need_version=no
18663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18664 soname_spec='${libname}${release}${shared_ext}$major'
18665 shlibpath_var=LD_LIBRARY_PATH
18666 shlibpath_overrides_runpath=yes
18667 hardcode_into_libs=yes
18668 if test "$with_gnu_ld" = yes; then
18669 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18670 else
18671 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18672 case $host_os in
18673 sco3.2v5*)
18674 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18675 ;;
18676 esac
18677 fi
18678 sys_lib_dlsearch_path_spec='/usr/lib'
18679 ;;
18680
18681tpf*)
18682 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18683 version_type=linux
18684 need_lib_prefix=no
18685 need_version=no
18686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18687 shlibpath_var=LD_LIBRARY_PATH
18688 shlibpath_overrides_runpath=no
18689 hardcode_into_libs=yes
18690 ;;
18691
18692uts4*)
18693 version_type=linux
18694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18695 soname_spec='${libname}${release}${shared_ext}$major'
18696 shlibpath_var=LD_LIBRARY_PATH
18697 ;;
18698
18699*)
18700 dynamic_linker=no
18701 ;;
18702esac
18703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18704$as_echo "$dynamic_linker" >&6; }
18705test "$dynamic_linker" = no && can_build_shared=no
18706
18707variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18708if test "$GCC" = yes; then
18709 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18710fi
18711
18712if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18713 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18714fi
18715if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18716 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18717fi
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
cristy0c60a692010-11-04 01:09:47 +000018754
18755
cristy73bd4a52010-10-05 11:24:23 +000018756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18757$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18758hardcode_action_CXX=
18759if test -n "$hardcode_libdir_flag_spec_CXX" ||
18760 test -n "$runpath_var_CXX" ||
18761 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18762
18763 # We can hardcode non-existent directories.
18764 if test "$hardcode_direct_CXX" != no &&
18765 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18766 # have to relink, otherwise we might link with an installed library
18767 # when we should be linking with a yet-to-be-installed one
18768 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18769 test "$hardcode_minus_L_CXX" != no; then
18770 # Linking always hardcodes the temporary library directory.
18771 hardcode_action_CXX=relink
18772 else
18773 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18774 hardcode_action_CXX=immediate
18775 fi
18776else
18777 # We cannot hardcode anything, or else we can only hardcode existing
18778 # directories.
18779 hardcode_action_CXX=unsupported
18780fi
18781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18782$as_echo "$hardcode_action_CXX" >&6; }
18783
18784if test "$hardcode_action_CXX" = relink ||
18785 test "$inherit_rpath_CXX" = yes; then
18786 # Fast installation is not supported
18787 enable_fast_install=no
18788elif test "$shlibpath_overrides_runpath" = yes ||
18789 test "$enable_shared" = no; then
18790 # Fast installation is not necessary
18791 enable_fast_install=needless
18792fi
18793
18794
18795
18796
18797
18798
18799
18800 fi # test -n "$compiler"
18801
18802 CC=$lt_save_CC
18803 LDCXX=$LD
18804 LD=$lt_save_LD
18805 GCC=$lt_save_GCC
18806 with_gnu_ld=$lt_save_with_gnu_ld
18807 lt_cv_path_LDCXX=$lt_cv_path_LD
18808 lt_cv_path_LD=$lt_save_path_LD
18809 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18810 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18811fi # test "$_lt_caught_CXX_error" != yes
18812
18813ac_ext=c
18814ac_cpp='$CPP $CPPFLAGS'
18815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18817ac_compiler_gnu=$ac_cv_c_compiler_gnu
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831 ac_config_commands="$ac_config_commands libtool"
18832
18833
18834
18835
18836# Only expand once:
18837
18838
18839
cristy3ed852e2009-09-05 21:47:34 +000018840
18841
18842# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000018843
18844
18845
18846
18847
18848
18849
cristy73bd4a52010-10-05 11:24:23 +000018850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
18851$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
18852if test "${libltdl_cv_shlibext+set}" = set; then :
18853 $as_echo_n "(cached) " >&6
18854else
18855
18856module=yes
18857eval libltdl_cv_shlibext=$shrext_cmds
18858
18859fi
18860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
18861$as_echo "$libltdl_cv_shlibext" >&6; }
18862if test -n "$libltdl_cv_shlibext"; then
18863
18864cat >>confdefs.h <<_ACEOF
18865#define LT_MODULE_EXT "$libltdl_cv_shlibext"
18866_ACEOF
18867
18868fi
18869
18870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
18871$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
18872if test "${lt_cv_module_path_var+set}" = set; then :
18873 $as_echo_n "(cached) " >&6
18874else
18875 lt_cv_module_path_var="$shlibpath_var"
18876fi
18877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
18878$as_echo "$lt_cv_module_path_var" >&6; }
18879if test -n "$lt_cv_module_path_var"; then
18880
18881cat >>confdefs.h <<_ACEOF
18882#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18883_ACEOF
18884
18885fi
18886
18887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
18888$as_echo_n "checking for the default library search path... " >&6; }
18889if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
18890 $as_echo_n "(cached) " >&6
18891else
18892 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18893fi
18894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
18895$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18896if test -n "$lt_cv_sys_dlsearch_path"; then
18897 sys_dlsearch_path=
18898 for dir in $lt_cv_sys_dlsearch_path; do
18899 if test -z "$sys_dlsearch_path"; then
18900 sys_dlsearch_path="$dir"
18901 else
18902 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18903 fi
18904 done
18905
18906cat >>confdefs.h <<_ACEOF
18907#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18908_ACEOF
18909
18910fi
18911
18912
18913LT_DLLOADERS=
18914
18915
18916ac_ext=c
18917ac_cpp='$CPP $CPPFLAGS'
18918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18920ac_compiler_gnu=$ac_cv_c_compiler_gnu
18921
18922
18923LIBADD_DLOPEN=
18924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18925$as_echo_n "checking for library containing dlopen... " >&6; }
18926if test "${ac_cv_search_dlopen+set}" = set; then :
18927 $as_echo_n "(cached) " >&6
18928else
18929 ac_func_search_save_LIBS=$LIBS
18930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18931/* end confdefs.h. */
18932
18933/* Override any GCC internal prototype to avoid an error.
18934 Use char because int might match the return type of a GCC
18935 builtin and then its argument prototype would still apply. */
18936#ifdef __cplusplus
18937extern "C"
18938#endif
18939char dlopen ();
18940int
18941main ()
18942{
18943return dlopen ();
18944 ;
18945 return 0;
18946}
18947_ACEOF
18948for ac_lib in '' dl; do
18949 if test -z "$ac_lib"; then
18950 ac_res="none required"
18951 else
18952 ac_res=-l$ac_lib
18953 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18954 fi
18955 if ac_fn_c_try_link "$LINENO"; then :
18956 ac_cv_search_dlopen=$ac_res
18957fi
18958rm -f core conftest.err conftest.$ac_objext \
18959 conftest$ac_exeext
18960 if test "${ac_cv_search_dlopen+set}" = set; then :
18961 break
18962fi
18963done
18964if test "${ac_cv_search_dlopen+set}" = set; then :
18965
18966else
18967 ac_cv_search_dlopen=no
18968fi
18969rm conftest.$ac_ext
18970LIBS=$ac_func_search_save_LIBS
18971fi
18972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18973$as_echo "$ac_cv_search_dlopen" >&6; }
18974ac_res=$ac_cv_search_dlopen
18975if test "$ac_res" != no; then :
18976 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18977
18978$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
18979
18980 if test "$ac_cv_search_dlopen" != "none required" ; then
18981 LIBADD_DLOPEN="-ldl"
18982 fi
18983 libltdl_cv_lib_dl_dlopen="yes"
18984 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18985else
18986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18987/* end confdefs.h. */
18988#if HAVE_DLFCN_H
18989# include <dlfcn.h>
18990#endif
18991
18992int
18993main ()
18994{
18995dlopen(0, 0);
18996 ;
18997 return 0;
18998}
18999_ACEOF
19000if ac_fn_c_try_link "$LINENO"; then :
19001
19002$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19003
19004 libltdl_cv_func_dlopen="yes"
19005 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19006else
19007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19008$as_echo_n "checking for dlopen in -lsvld... " >&6; }
19009if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
19010 $as_echo_n "(cached) " >&6
19011else
19012 ac_check_lib_save_LIBS=$LIBS
19013LIBS="-lsvld $LIBS"
19014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19015/* end confdefs.h. */
19016
19017/* Override any GCC internal prototype to avoid an error.
19018 Use char because int might match the return type of a GCC
19019 builtin and then its argument prototype would still apply. */
19020#ifdef __cplusplus
19021extern "C"
19022#endif
19023char dlopen ();
19024int
19025main ()
19026{
19027return dlopen ();
19028 ;
19029 return 0;
19030}
19031_ACEOF
19032if ac_fn_c_try_link "$LINENO"; then :
19033 ac_cv_lib_svld_dlopen=yes
19034else
19035 ac_cv_lib_svld_dlopen=no
19036fi
19037rm -f core conftest.err conftest.$ac_objext \
19038 conftest$ac_exeext conftest.$ac_ext
19039LIBS=$ac_check_lib_save_LIBS
19040fi
19041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19042$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19043if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
19044
19045$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19046
19047 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19048 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19049fi
19050
19051fi
19052rm -f core conftest.err conftest.$ac_objext \
19053 conftest$ac_exeext conftest.$ac_ext
19054fi
19055
19056if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19057then
19058 lt_save_LIBS="$LIBS"
19059 LIBS="$LIBS $LIBADD_DLOPEN"
19060 for ac_func in dlerror
19061do :
19062 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19063if test "x$ac_cv_func_dlerror" = x""yes; then :
19064 cat >>confdefs.h <<_ACEOF
19065#define HAVE_DLERROR 1
19066_ACEOF
19067
19068fi
19069done
19070
19071 LIBS="$lt_save_LIBS"
19072fi
19073
19074
19075LIBADD_SHL_LOAD=
19076ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19077if test "x$ac_cv_func_shl_load" = x""yes; then :
19078
19079$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19080
19081 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19082else
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19084$as_echo_n "checking for shl_load in -ldld... " >&6; }
19085if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
19086 $as_echo_n "(cached) " >&6
19087else
19088 ac_check_lib_save_LIBS=$LIBS
19089LIBS="-ldld $LIBS"
19090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19091/* end confdefs.h. */
19092
19093/* Override any GCC internal prototype to avoid an error.
19094 Use char because int might match the return type of a GCC
19095 builtin and then its argument prototype would still apply. */
19096#ifdef __cplusplus
19097extern "C"
19098#endif
19099char shl_load ();
19100int
19101main ()
19102{
19103return shl_load ();
19104 ;
19105 return 0;
19106}
19107_ACEOF
19108if ac_fn_c_try_link "$LINENO"; then :
19109 ac_cv_lib_dld_shl_load=yes
19110else
19111 ac_cv_lib_dld_shl_load=no
19112fi
19113rm -f core conftest.err conftest.$ac_objext \
19114 conftest$ac_exeext conftest.$ac_ext
19115LIBS=$ac_check_lib_save_LIBS
19116fi
19117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19118$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19119if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
19120
19121$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19122
19123 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19124 LIBADD_SHL_LOAD="-ldld"
19125fi
19126
19127fi
19128
19129
19130
19131case $host_os in
19132darwin[1567].*)
19133# We only want this for pre-Mac OS X 10.4.
19134 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19135if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
19136
19137$as_echo "#define HAVE_DYLD 1" >>confdefs.h
19138
19139 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19140fi
19141
19142 ;;
19143beos*)
19144 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19145 ;;
19146cygwin* | mingw* | os2* | pw32*)
19147 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19148"
19149if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19150 ac_have_decl=1
19151else
19152 ac_have_decl=0
19153fi
19154
19155cat >>confdefs.h <<_ACEOF
19156#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
19157_ACEOF
19158
19159 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19160 ;;
19161esac
19162
19163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19164$as_echo_n "checking for dld_link in -ldld... " >&6; }
19165if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
19166 $as_echo_n "(cached) " >&6
19167else
19168 ac_check_lib_save_LIBS=$LIBS
19169LIBS="-ldld $LIBS"
19170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19171/* end confdefs.h. */
19172
19173/* Override any GCC internal prototype to avoid an error.
19174 Use char because int might match the return type of a GCC
19175 builtin and then its argument prototype would still apply. */
19176#ifdef __cplusplus
19177extern "C"
19178#endif
19179char dld_link ();
19180int
19181main ()
19182{
19183return dld_link ();
19184 ;
19185 return 0;
19186}
19187_ACEOF
19188if ac_fn_c_try_link "$LINENO"; then :
19189 ac_cv_lib_dld_dld_link=yes
19190else
19191 ac_cv_lib_dld_dld_link=no
19192fi
19193rm -f core conftest.err conftest.$ac_objext \
19194 conftest$ac_exeext conftest.$ac_ext
19195LIBS=$ac_check_lib_save_LIBS
19196fi
19197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19198$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19199if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
19200
19201$as_echo "#define HAVE_DLD 1" >>confdefs.h
19202
19203 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19204fi
19205
19206
19207
19208
19209LT_DLPREOPEN=
19210if test -n "$LT_DLLOADERS"
19211then
19212 for lt_loader in $LT_DLLOADERS; do
19213 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19214 done
19215
19216$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
19217
19218fi
19219
19220
19221LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19222
19223
19224ac_ext=c
19225ac_cpp='$CPP $CPPFLAGS'
19226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19228ac_compiler_gnu=$ac_cv_c_compiler_gnu
19229
19230
19231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
19232$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
19233if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
19234 $as_echo_n "(cached) " >&6
19235else
19236 lt_cv_sys_symbol_underscore=no
19237 cat > conftest.$ac_ext <<_LT_EOF
19238void nm_test_func(){}
19239int main(){nm_test_func;return 0;}
19240_LT_EOF
19241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19242 (eval $ac_compile) 2>&5
19243 ac_status=$?
19244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19245 test $ac_status = 0; }; then
19246 # Now try to grab the symbols.
19247 ac_nlist=conftest.nm
19248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
19249 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19250 ac_status=$?
19251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19252 test $ac_status = 0; } && test -s "$ac_nlist"; then
19253 # See whether the symbols have a leading underscore.
19254 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19255 lt_cv_sys_symbol_underscore=yes
19256 else
19257 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19258 :
19259 else
19260 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19261 fi
19262 fi
19263 else
19264 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19265 fi
19266 else
19267 echo "configure: failed program was:" >&5
19268 cat conftest.c >&5
19269 fi
19270 rm -rf conftest*
19271
19272fi
19273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
19274$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19275 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19276
19277
19278if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19279 if test x"$libltdl_cv_func_dlopen" = xyes ||
19280 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
19282$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
19283if test "${libltdl_cv_need_uscore+set}" = set; then :
19284 $as_echo_n "(cached) " >&6
19285else
19286 libltdl_cv_need_uscore=unknown
19287 save_LIBS="$LIBS"
19288 LIBS="$LIBS $LIBADD_DLOPEN"
19289 if test "$cross_compiling" = yes; then :
19290 libltdl_cv_need_uscore=cross
19291else
19292 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19293 lt_status=$lt_dlunknown
19294 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000019295#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000019296#include "confdefs.h"
19297
19298#if HAVE_DLFCN_H
19299#include <dlfcn.h>
19300#endif
19301
19302#include <stdio.h>
19303
19304#ifdef RTLD_GLOBAL
19305# define LT_DLGLOBAL RTLD_GLOBAL
19306#else
19307# ifdef DL_GLOBAL
19308# define LT_DLGLOBAL DL_GLOBAL
19309# else
19310# define LT_DLGLOBAL 0
19311# endif
19312#endif
19313
19314/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19315 find out it does not work in some platform. */
19316#ifndef LT_DLLAZY_OR_NOW
19317# ifdef RTLD_LAZY
19318# define LT_DLLAZY_OR_NOW RTLD_LAZY
19319# else
19320# ifdef DL_LAZY
19321# define LT_DLLAZY_OR_NOW DL_LAZY
19322# else
19323# ifdef RTLD_NOW
19324# define LT_DLLAZY_OR_NOW RTLD_NOW
19325# else
19326# ifdef DL_NOW
19327# define LT_DLLAZY_OR_NOW DL_NOW
19328# else
19329# define LT_DLLAZY_OR_NOW 0
19330# endif
19331# endif
19332# endif
19333# endif
19334#endif
19335
cristy0c60a692010-11-04 01:09:47 +000019336/* When -fvisbility=hidden is used, assume the code has been annotated
19337 correspondingly for the symbols needed. */
19338#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19339void fnord () __attribute__((visibility("default")));
19340#endif
19341
19342void fnord () { int i=42; }
cristy73bd4a52010-10-05 11:24:23 +000019343int main ()
19344{
19345 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19346 int status = $lt_dlunknown;
19347
19348 if (self)
19349 {
19350 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000019351 else
19352 {
19353 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19354 else puts (dlerror ());
19355 }
cristy73bd4a52010-10-05 11:24:23 +000019356 /* dlclose (self); */
19357 }
19358 else
19359 puts (dlerror ());
19360
19361 return status;
19362}
19363_LT_EOF
19364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19365 (eval $ac_link) 2>&5
19366 ac_status=$?
19367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19368 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19369 (./conftest; exit; ) >&5 2>/dev/null
19370 lt_status=$?
19371 case x$lt_status in
19372 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19373 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19374 x$lt_dlunknown|x*) ;;
19375 esac
19376 else :
19377 # compilation failed
19378
19379 fi
19380fi
19381rm -fr conftest*
19382
19383 LIBS="$save_LIBS"
19384
19385fi
19386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
19387$as_echo "$libltdl_cv_need_uscore" >&6; }
19388 fi
19389fi
19390
19391if test x"$libltdl_cv_need_uscore" = xyes; then
19392
19393$as_echo "#define NEED_USCORE 1" >>confdefs.h
19394
19395fi
19396
19397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
19398$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
19399if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
19400 $as_echo_n "(cached) " >&6
19401else
19402 # PORTME does your system automatically load deplibs for dlopen?
19403 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19404 # For now, we just catch OSes we know something about -- in the
19405 # future, we'll try test this programmatically.
19406 lt_cv_sys_dlopen_deplibs=unknown
19407 case $host_os in
19408 aix3*|aix4.1.*|aix4.2.*)
19409 # Unknown whether this is true for these versions of AIX, but
19410 # we want this `case' here to explicitly catch those versions.
19411 lt_cv_sys_dlopen_deplibs=unknown
19412 ;;
19413 aix[4-9]*)
19414 lt_cv_sys_dlopen_deplibs=yes
19415 ;;
19416 amigaos*)
19417 case $host_cpu in
19418 powerpc)
19419 lt_cv_sys_dlopen_deplibs=no
19420 ;;
19421 esac
19422 ;;
19423 darwin*)
19424 # Assuming the user has installed a libdl from somewhere, this is true
19425 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19426 lt_cv_sys_dlopen_deplibs=yes
19427 ;;
19428 freebsd* | dragonfly*)
19429 lt_cv_sys_dlopen_deplibs=yes
19430 ;;
cristy0c60a692010-11-04 01:09:47 +000019431 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019432 # GNU and its variants, using gnu ld.so (Glibc)
19433 lt_cv_sys_dlopen_deplibs=yes
19434 ;;
19435 hpux10*|hpux11*)
19436 lt_cv_sys_dlopen_deplibs=yes
19437 ;;
19438 interix*)
19439 lt_cv_sys_dlopen_deplibs=yes
19440 ;;
19441 irix[12345]*|irix6.[01]*)
19442 # Catch all versions of IRIX before 6.2, and indicate that we don't
19443 # know how it worked for any of those versions.
19444 lt_cv_sys_dlopen_deplibs=unknown
19445 ;;
19446 irix*)
19447 # The case above catches anything before 6.2, and it's known that
19448 # at 6.2 and later dlopen does load deplibs.
19449 lt_cv_sys_dlopen_deplibs=yes
19450 ;;
19451 netbsd*)
19452 lt_cv_sys_dlopen_deplibs=yes
19453 ;;
19454 openbsd*)
19455 lt_cv_sys_dlopen_deplibs=yes
19456 ;;
19457 osf[1234]*)
19458 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19459 # it did *not* use an RPATH in a shared library to find objects the
19460 # library depends on, so we explicitly say `no'.
19461 lt_cv_sys_dlopen_deplibs=no
19462 ;;
19463 osf5.0|osf5.0a|osf5.1)
19464 # dlopen *does* load deplibs and with the right loader patch applied
19465 # it even uses RPATH in a shared library to search for shared objects
19466 # that the library depends on, but there's no easy way to know if that
19467 # patch is installed. Since this is the case, all we can really
19468 # say is unknown -- it depends on the patch being installed. If
19469 # it is, this changes to `yes'. Without it, it would be `no'.
19470 lt_cv_sys_dlopen_deplibs=unknown
19471 ;;
19472 osf*)
19473 # the two cases above should catch all versions of osf <= 5.1. Read
19474 # the comments above for what we know about them.
19475 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19476 # is used to find them so we can finally say `yes'.
19477 lt_cv_sys_dlopen_deplibs=yes
19478 ;;
19479 qnx*)
19480 lt_cv_sys_dlopen_deplibs=yes
19481 ;;
19482 solaris*)
19483 lt_cv_sys_dlopen_deplibs=yes
19484 ;;
19485 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19486 libltdl_cv_sys_dlopen_deplibs=yes
19487 ;;
19488 esac
19489
19490fi
19491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
19492$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19493if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19494
19495$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
19496
19497fi
19498
19499:
19500
19501for ac_header in argz.h
19502do :
19503 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19504"
19505if test "x$ac_cv_header_argz_h" = x""yes; then :
19506 cat >>confdefs.h <<_ACEOF
19507#define HAVE_ARGZ_H 1
19508_ACEOF
19509
19510fi
19511
19512done
19513
19514
19515ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
19516# include <argz.h>
19517#endif
19518"
19519if test "x$ac_cv_type_error_t" = x""yes; then :
19520
19521cat >>confdefs.h <<_ACEOF
19522#define HAVE_ERROR_T 1
19523_ACEOF
19524
19525
19526else
19527
19528$as_echo "#define error_t int" >>confdefs.h
19529
19530
19531$as_echo "#define __error_t_defined 1" >>confdefs.h
19532
19533fi
19534
19535
19536ARGZ_H=
19537for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19538 argz_next argz_stringify
19539do :
19540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19541ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000019542if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000019543 cat >>confdefs.h <<_ACEOF
19544#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19545_ACEOF
19546
19547else
19548 ARGZ_H=argz.h;
19549
19550 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19551
19552fi
19553done
19554
19555
19556if test -z "$ARGZ_H"; then :
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
19558$as_echo_n "checking if argz actually works... " >&6; }
19559if test "${lt_cv_sys_argz_works+set}" = set; then :
19560 $as_echo_n "(cached) " >&6
19561else
19562 case $host_os in #(
19563 *cygwin*)
19564 lt_cv_sys_argz_works=no
19565 if test "$cross_compiling" != no; then
19566 lt_cv_sys_argz_works="guessing no"
19567 else
19568 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19569 save_IFS=$IFS
19570 IFS=-.
19571 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19572 IFS=$save_IFS
19573 lt_os_major=${2-0}
19574 lt_os_minor=${3-0}
19575 lt_os_micro=${4-0}
19576 if test "$lt_os_major" -gt 1 \
19577 || { test "$lt_os_major" -eq 1 \
19578 && { test "$lt_os_minor" -gt 5 \
19579 || { test "$lt_os_minor" -eq 5 \
19580 && test "$lt_os_micro" -gt 24; }; }; }; then
19581 lt_cv_sys_argz_works=yes
19582 fi
19583 fi
19584 ;; #(
19585 *) lt_cv_sys_argz_works=yes ;;
19586 esac
19587fi
19588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
19589$as_echo "$lt_cv_sys_argz_works" >&6; }
19590 if test $lt_cv_sys_argz_works = yes; then :
19591
19592$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
19593
19594else
19595 ARGZ_H=argz.h
19596
19597
19598 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19599
19600fi
19601fi
19602
19603
19604
19605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
19606$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
19607if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
19608 $as_echo_n "(cached) " >&6
19609else
19610 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19611 libltdl_cv_preloaded_symbols=yes
19612 else
19613 libltdl_cv_preloaded_symbols=no
19614 fi
19615
19616fi
19617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
19618$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19619if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19620
19621$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
19622
19623fi
19624
19625# Set options
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637# Check whether --with-included_ltdl was given.
19638if test "${with_included_ltdl+set}" = set; then :
19639 withval=$with_included_ltdl;
19640fi
19641
19642
19643if test "x$with_included_ltdl" != xyes; then
19644 # We are not being forced to use the included libltdl sources, so
19645 # decide whether there is a useful installed version we can use.
19646 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
19647
19648"
19649if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19650 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
19651 #include <ltdl.h>
19652"
19653if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
19655$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
19656if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
19657 $as_echo_n "(cached) " >&6
19658else
19659 ac_check_lib_save_LIBS=$LIBS
19660LIBS="-lltdl $LIBS"
19661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19662/* end confdefs.h. */
19663
19664/* Override any GCC internal prototype to avoid an error.
19665 Use char because int might match the return type of a GCC
19666 builtin and then its argument prototype would still apply. */
19667#ifdef __cplusplus
19668extern "C"
19669#endif
19670char lt_dladvise_preload ();
19671int
19672main ()
19673{
19674return lt_dladvise_preload ();
19675 ;
19676 return 0;
19677}
19678_ACEOF
19679if ac_fn_c_try_link "$LINENO"; then :
19680 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19681else
19682 ac_cv_lib_ltdl_lt_dladvise_preload=no
19683fi
19684rm -f core conftest.err conftest.$ac_objext \
19685 conftest$ac_exeext conftest.$ac_ext
19686LIBS=$ac_check_lib_save_LIBS
19687fi
19688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
19689$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
19690if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
19691 with_included_ltdl=no
19692else
19693 with_included_ltdl=yes
19694fi
19695
19696else
19697 with_included_ltdl=yes
19698fi
19699
19700else
19701 with_included_ltdl=yes
19702fi
19703
19704
19705fi
19706
19707
19708
19709
19710# Check whether --with-ltdl_include was given.
19711if test "${with_ltdl_include+set}" = set; then :
19712 withval=$with_ltdl_include;
19713fi
19714
19715
19716if test -n "$with_ltdl_include"; then
19717 if test -f "$with_ltdl_include/ltdl.h"; then :
19718 else
cristy98dddb52010-11-04 00:30:15 +000019719 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000019720 fi
19721else
19722 with_ltdl_include=no
19723fi
19724
19725
19726# Check whether --with-ltdl_lib was given.
19727if test "${with_ltdl_lib+set}" = set; then :
19728 withval=$with_ltdl_lib;
19729fi
19730
19731
19732if test -n "$with_ltdl_lib"; then
19733 if test -f "$with_ltdl_lib/libltdl.la"; then :
19734 else
cristy98dddb52010-11-04 00:30:15 +000019735 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000019736 fi
19737else
19738 with_ltdl_lib=no
19739fi
19740
19741case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19742 ,yes,no,no,)
19743 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000019744 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000019745 "") enable_ltdl_convenience=yes
19746 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19747esac
19748LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19749LTDLDEPS=$LIBLTDL
19750LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19751
19752
19753
19754
19755
19756# For backwards non-gettext consistent compatibility...
19757INCLTDL="$LTDLINCL"
19758
19759
19760 ;;
19761 ,no,no,no,)
19762 # If the included ltdl is not to be used, then use the
19763 # preinstalled libltdl we found.
19764
19765$as_echo "#define HAVE_LTDL 1" >>confdefs.h
19766
19767 LIBLTDL=-lltdl
19768 LTDLDEPS=
19769 LTDLINCL=
19770 ;;
19771 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000019772 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000019773 ;;
19774 *) with_included_ltdl=no
19775 LIBLTDL="-L$with_ltdl_lib -lltdl"
19776 LTDLDEPS=
19777 LTDLINCL="-I$with_ltdl_include"
19778 ;;
19779esac
19780INCLTDL="$LTDLINCL"
19781
19782# Report our decision...
19783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
19784$as_echo_n "checking where to find libltdl headers... " >&6; }
19785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
19786$as_echo "$LTDLINCL" >&6; }
19787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
19788$as_echo_n "checking where to find libltdl library... " >&6; }
19789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
19790$as_echo "$LIBLTDL" >&6; }
19791
19792
19793
19794# Check whether --enable-ltdl-install was given.
19795if test "${enable_ltdl_install+set}" = set; then :
19796 enableval=$enable_ltdl_install;
19797fi
19798
19799
19800case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19801 *yes*) ;;
19802 *) enable_ltdl_convenience=yes ;;
19803esac
19804
19805 if test x"${enable_ltdl_install-no}" != xno; then
19806 INSTALL_LTDL_TRUE=
19807 INSTALL_LTDL_FALSE='#'
19808else
19809 INSTALL_LTDL_TRUE='#'
19810 INSTALL_LTDL_FALSE=
19811fi
19812
19813 if test x"${enable_ltdl_convenience-no}" != xno; then
19814 CONVENIENCE_LTDL_TRUE=
19815 CONVENIENCE_LTDL_FALSE='#'
19816else
19817 CONVENIENCE_LTDL_TRUE='#'
19818 CONVENIENCE_LTDL_FALSE=
19819fi
19820
19821
19822
19823
19824
19825
cristy73bd4a52010-10-05 11:24:23 +000019826# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19827# the user used. This is so that ltdl.h can pick up the parent projects
19828# config.h file, The first file in AC_CONFIG_HEADERS must contain the
19829# definitions required by ltdl.c.
19830# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19831
19832
19833
19834for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
19835do :
19836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19837ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19838"
cristy98dddb52010-11-04 00:30:15 +000019839if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000019840 cat >>confdefs.h <<_ACEOF
19841#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19842_ACEOF
19843
19844fi
19845
19846done
19847
19848
19849for ac_func in closedir opendir readdir
19850do :
19851 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19852ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000019853if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000019854 cat >>confdefs.h <<_ACEOF
19855#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19856_ACEOF
19857
19858else
19859
19860
19861 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
19862
19863fi
19864done
19865
19866for ac_func in strlcat strlcpy
19867do :
19868 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19869ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000019870if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000019871 cat >>confdefs.h <<_ACEOF
19872#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19873_ACEOF
19874
19875else
19876
19877
19878 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
19879
19880fi
19881done
19882
19883
19884
19885cat >>confdefs.h <<_ACEOF
19886#define LT_LIBEXT "$libext"
19887_ACEOF
19888
19889
19890name=ltdl
19891LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
19892
19893
19894
19895
19896
19897
19898
19899
19900# Only expand once:
19901
19902
cristy3ed852e2009-09-05 21:47:34 +000019903
19904# Check to see if building shared libraries
19905libtool_build_shared_libs='no'
19906if test "$enable_shared" = 'yes'; then
19907 libtool_build_shared_libs='yes'
19908fi
19909
19910# Check to see if building static libraries
19911libtool_build_static_libs='no'
19912if test "$enable_static" = 'yes'; then
19913 libtool_build_static_libs='yes'
19914fi
19915
cristy73bd4a52010-10-05 11:24:23 +000019916 if test "${libtool_build_shared_libs}" = 'yes'; then
19917 WITH_SHARED_LIBS_TRUE=
19918 WITH_SHARED_LIBS_FALSE='#'
19919else
19920 WITH_SHARED_LIBS_TRUE='#'
19921 WITH_SHARED_LIBS_FALSE=
19922fi
19923
cristy3ed852e2009-09-05 21:47:34 +000019924#
19925# Enable support for building loadable modules
19926#
19927
19928# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000019929if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019930 withval=$with_modules; with_modules=$withval
19931else
cristy5a1cefd2010-01-06 20:42:35 +000019932 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000019933fi
19934
19935
19936# Only allow building loadable modules if we are building shared libraries
19937if test "$with_modules" != 'no' ; then
19938 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000019939 { $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 +000019940$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
19941 with_modules='no'
19942 fi
19943fi
19944if test "$with_modules" != 'no'; then
19945
cristy8b350f62009-11-15 23:12:43 +000019946$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019947
19948fi
cristy73bd4a52010-10-05 11:24:23 +000019949 if test "$with_modules" != 'no'; then
19950 WITH_MODULES_TRUE=
19951 WITH_MODULES_FALSE='#'
19952else
19953 WITH_MODULES_TRUE='#'
19954 WITH_MODULES_FALSE=
19955fi
19956
cristy3ed852e2009-09-05 21:47:34 +000019957
19958# Enable building/use of libltdl if we are building shared libraries regardless
19959# of whether modules are built or not.
19960with_ltdl='no'
19961if test "$libtool_build_shared_libs" != 'no'; then
19962 with_ltdl='yes'
19963fi
19964
cristy73bd4a52010-10-05 11:24:23 +000019965 if test "$with_ltdl" != 'no'; then
19966 WITH_LTDL_TRUE=
19967 WITH_LTDL_FALSE='#'
19968else
19969 WITH_LTDL_TRUE='#'
19970 WITH_LTDL_FALSE=
19971fi
19972
cristy3ed852e2009-09-05 21:47:34 +000019973if test "$with_ltdl" != 'no'; then
19974
cristy8b350f62009-11-15 23:12:43 +000019975$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019976
19977
19978 # Set DLLDFLAGS
19979 if test X"$enable_shared" = Xyes; then
19980 DLLDFLAGS=-export-dynamic
19981
19982 fi
19983fi
19984
19985# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000019986# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000019987# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000019988if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019989 enableval=$enable_delegate_build; enable_delegate_build=$enableval
19990else
19991 enable_delegate_build='no'
19992fi
19993
19994
19995# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000019996if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019997 enableval=$enable_deprecated; enable_deprecated=$enableval
19998else
19999 enable_deprecated='no'
20000fi
20001
20002
20003if test "$enable_deprecated" = 'yes'; then
20004
cristy8b350f62009-11-15 23:12:43 +000020005$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020006
20007else
20008 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20009fi
20010
20011# Build a version of ImageMagick which operates uninstalled.
20012# Used to build distributions located via MAGICK_HOME / executable path
20013# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020014if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020015 enableval=$enable_installed; enable_installed=$enableval
20016else
20017 enable_installed='yes'
20018fi
20019
20020
20021if test "$enable_installed" = 'yes'; then
20022
cristy8b350f62009-11-15 23:12:43 +000020023$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020024
20025else
20026 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20027fi
20028
20029# Permit enciphering and deciphering image pixels.
20030# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020031if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020032 enableval=$enable_cipher; enable_cipher=$enableval
20033else
20034 enable_cipher='yes'
20035fi
20036
20037
20038if test "$enable_cipher" = 'yes'; then
20039
cristy8b350f62009-11-15 23:12:43 +000020040$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020041
20042fi
20043
20044# Build an embeddable version of ImageMagick.
20045# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020046if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020047 enableval=$enable_embeddable; enable_embeddable=$enableval
20048else
20049 enable_embeddable='no'
20050fi
20051
20052
20053if test "$enable_embeddable" = 'yes'; then
20054
cristy8b350f62009-11-15 23:12:43 +000020055$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020056
20057fi
20058
20059# Build a high dynamic range version of ImageMagick.
20060# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020061if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020062 enableval=$enable_hdri; enable_hdri=$enableval
20063else
20064 enable_hdri='no'
20065fi
20066
20067
20068MAGICK_HDRI=""
20069if test "$enable_hdri" = 'yes'; then
20070 MAGICK_HDRI="HDRI"
20071
cristy8b350f62009-11-15 23:12:43 +000020072$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020073
cristyfd9dcd42010-08-08 18:07:02 +000020074 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020075fi
20076
cristy3ed852e2009-09-05 21:47:34 +000020077# Build a version of ImageMagick with assert statements.
20078# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020079if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020080 enableval=$enable_assert; enable_assert=$enableval
20081else
20082 enable_assert='yes'
20083fi
20084
20085
20086if test "$enable_assert" = 'no'; then
20087
cristy8b350f62009-11-15 23:12:43 +000020088$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020089
20090fi
20091
20092# Add configure option --enable-maintainer-mode which enables dependency
20093# checking and generation useful to package maintainers. This is made an
20094# option to avoid confusing end users.
cristy73bd4a52010-10-05 11:24:23 +000020095
20096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20097$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20098 # Check whether --enable-maintainer-mode was given.
20099if test "${enable_maintainer_mode+set}" = set; then :
20100 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20101else
20102 USE_MAINTAINER_MODE=no
20103fi
20104
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20106$as_echo "$USE_MAINTAINER_MODE" >&6; }
20107 if test $USE_MAINTAINER_MODE = yes; then
20108 MAINTAINER_MODE_TRUE=
20109 MAINTAINER_MODE_FALSE='#'
20110else
20111 MAINTAINER_MODE_TRUE='#'
20112 MAINTAINER_MODE_FALSE=
20113fi
20114
20115 MAINT=$MAINTAINER_MODE_TRUE
20116
20117
cristy3ed852e2009-09-05 21:47:34 +000020118
20119
20120# Enable ccmalloc memory debugging support
20121# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020122if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020123 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20124else
20125 enable_ccmalloc='no'
20126fi
20127
20128
20129# Enable Electric Fence memory debugging support
20130# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020131if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020132 enableval=$enable_efence; enable_efence=$enableval
20133else
20134 enable_efence='no'
20135fi
20136
20137
20138# Enable prof-based profiling support
20139# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020140if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020141 enableval=$enable_prof; enable_prof=$enableval
20142else
20143 enable_prof='no'
20144fi
20145
20146
20147# Enable gprof-based profiling support
20148# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020149if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020150 enableval=$enable_gprof; enable_gprof=$enableval
20151else
20152 enable_gprof='no'
20153fi
20154
20155
20156# Enable gcov-based profiling support
20157# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020158if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020159 enableval=$enable_gcov; enable_gcov=$enableval
20160else
20161 enable_gcov='no'
20162fi
20163
20164
20165enable_profiling='no'
20166if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20167 enable_profiling='yes'
20168 if test "$libtool_build_shared_libs" = 'yes'; then
20169 echo "Warning: Can not profile code using shared libraries"
20170 fi
20171fi
20172
20173# Magick API method prefix
20174
20175# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020176if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020177 withval=$with_method_prefix; with_method_prefix=$enableval
20178else
20179 with_method_prefix=''
20180fi
20181
20182
20183if test "$with_method_prefix" != ''; then
20184
20185cat >>confdefs.h <<_ACEOF
20186#define NAMESPACE_PREFIX $with_method_prefix
20187_ACEOF
20188
20189fi
20190
20191# Number of bits in a Quantum
20192
20193# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020194if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020195 withval=$with_quantum_depth; with_quantum_depth=$withval
20196else
20197 with_quantum_depth=16
20198fi
20199
20200
20201if test "$with_quantum_depth" != '8'; then
20202 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20203fi
20204
20205case "${with_quantum_depth}" in
20206 8 ) ;;
20207 16 ) ;;
20208 32 ) ;;
20209 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000020210 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000020211esac
cristycdae12a2010-09-19 02:24:31 +000020212if test "$enable_hdri" = 'yes'; then
20213 with_quantum_depth=16
20214fi
cristy3ed852e2009-09-05 21:47:34 +000020215QUANTUM_DEPTH="$with_quantum_depth"
20216
20217cat >>confdefs.h <<_ACEOF
20218#define QUANTUM_DEPTH $QUANTUM_DEPTH
20219_ACEOF
20220
20221
20222# Set pixel cache threshold
20223
20224# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000020225if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020226 withval=$with_cache; with_cache=$withval
20227else
20228 with_cache=''
20229fi
20230
20231
20232if test "$with_cache" != ''; then
20233
20234cat >>confdefs.h <<_ACEOF
20235#define PixelCacheThreshold $with_cache
20236_ACEOF
20237
20238 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20239fi
20240
20241# Disable/Enable support for full delegate paths
20242
20243# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000020244if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020245 withval=$with_frozenpaths; with_frozenpaths=$withval
20246else
20247 with_frozenpaths='no'
20248fi
20249
20250
20251# Enable build/install of Magick++
20252
20253# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000020254if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020255 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20256else
20257 with_magick_plus_plus='yes'
20258fi
20259
20260
20261# Disable build/install of PerlMagick.
20262
20263# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000020264if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020265 withval=$with_perl; with_perl=$withval
20266else
cristyb5f4e2f2010-04-25 00:49:11 +000020267 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000020268fi
20269
20270
20271# Options to pass when configuring PerlMagick
20272
20273# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000020274if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000020275 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000020276fi
20277
20278
cristy3ed852e2009-09-05 21:47:34 +000020279
20280# Enable umem, object-caching memory allocation library.
20281
20282# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000020283if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020284 withval=$with_umem; with_umem=$withval
20285else
20286 with_umem='no'
20287fi
20288
20289if test "$with_umem" != 'yes' ; then
20290 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20291fi
20292
20293#
20294# Specify path to shared libstdc++ if not in normal location
20295#
20296
20297# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000020298if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020299 withval=$with_libstdc; with_libstdc=$withval
20300else
20301 with_libstdc=''
20302fi
20303
20304
20305if test "$with_libstdc" != ''; then
20306 if test -d "$with_libstdc"; then
20307 LIBSTDCLDFLAGS="-L$with_libstdc"
20308 fi
20309fi
20310
20311
20312# Does gcc required -traditional?
20313if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000020314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020315$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020316if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020317 $as_echo_n "(cached) " >&6
20318else
20319 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000020320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020321/* end confdefs.h. */
20322#include <sgtty.h>
20323Autoconf TIOCGETP
20324_ACEOF
20325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020326 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020327 ac_cv_prog_gcc_traditional=yes
20328else
20329 ac_cv_prog_gcc_traditional=no
20330fi
20331rm -f conftest*
20332
20333
20334 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000020335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020336/* end confdefs.h. */
20337#include <termio.h>
20338Autoconf TCGETA
20339_ACEOF
20340if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020341 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020342 ac_cv_prog_gcc_traditional=yes
20343fi
20344rm -f conftest*
20345
20346 fi
20347fi
cristy8b350f62009-11-15 23:12:43 +000020348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020349$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20350 if test $ac_cv_prog_gcc_traditional = yes; then
20351 CC="$CC -traditional"
20352 fi
20353fi
20354
20355
20356########
20357#
20358# Set defines required to build DLLs and modules using MinGW
20359#
20360########
20361# These options are set for multi-thread DLL module build
20362# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20363# module: _DLL
20364# executable/Magick++: _DLL _MAGICKMOD_
20365MODULE_EXTRA_CPPFLAGS=''
20366LIBRARY_EXTRA_CPPFLAGS=''
20367if test "${native_win32_build}" = 'yes'; then
20368 if test "${libtool_build_shared_libs}" = 'yes'; then
20369 CPPFLAGS="$CPPFLAGS -D_DLL"
20370 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20371 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20372 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20373 if test "$with_modules" = 'yes'; then
20374 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20375 else
20376 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20377 fi
20378 else
20379 CPPFLAGS="$CPPFLAGS -D_LIB"
20380 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20381 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20382 fi
20383 if test "$with_threads" = 'yes'; then
20384 CPPFLAGS="$CPPFLAGS -D_MT"
20385 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20386 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20387 fi
20388fi
20389
20390
20391
20392# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000020393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000020394$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020395if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020396 $as_echo_n "(cached) " >&6
20397else
cristy8b350f62009-11-15 23:12:43 +000020398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020399/* end confdefs.h. */
20400#include <stdlib.h>
20401#include <stdarg.h>
20402#include <string.h>
20403#include <float.h>
20404
20405int
20406main ()
20407{
20408
20409 ;
20410 return 0;
20411}
20412_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020413if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020414 ac_cv_header_stdc=yes
20415else
cristy8b350f62009-11-15 23:12:43 +000020416 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020417fi
cristy3ed852e2009-09-05 21:47:34 +000020418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20419
20420if test $ac_cv_header_stdc = yes; then
20421 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020423/* end confdefs.h. */
20424#include <string.h>
20425
20426_ACEOF
20427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020428 $EGREP "memchr" >/dev/null 2>&1; then :
20429
cristy3ed852e2009-09-05 21:47:34 +000020430else
20431 ac_cv_header_stdc=no
20432fi
20433rm -f conftest*
20434
20435fi
20436
20437if test $ac_cv_header_stdc = yes; then
20438 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020440/* end confdefs.h. */
20441#include <stdlib.h>
20442
20443_ACEOF
20444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020445 $EGREP "free" >/dev/null 2>&1; then :
20446
cristy3ed852e2009-09-05 21:47:34 +000020447else
20448 ac_cv_header_stdc=no
20449fi
20450rm -f conftest*
20451
20452fi
20453
20454if test $ac_cv_header_stdc = yes; then
20455 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000020456 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020457 :
20458else
cristy8b350f62009-11-15 23:12:43 +000020459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020460/* end confdefs.h. */
20461#include <ctype.h>
20462#include <stdlib.h>
20463#if ((' ' & 0x0FF) == 0x020)
20464# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20465# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20466#else
20467# define ISLOWER(c) \
20468 (('a' <= (c) && (c) <= 'i') \
20469 || ('j' <= (c) && (c) <= 'r') \
20470 || ('s' <= (c) && (c) <= 'z'))
20471# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20472#endif
20473
20474#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20475int
20476main ()
20477{
20478 int i;
20479 for (i = 0; i < 256; i++)
20480 if (XOR (islower (i), ISLOWER (i))
20481 || toupper (i) != TOUPPER (i))
20482 return 2;
20483 return 0;
20484}
20485_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020486if ac_fn_c_try_run "$LINENO"; then :
20487
cristy3ed852e2009-09-05 21:47:34 +000020488else
cristy8b350f62009-11-15 23:12:43 +000020489 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020490fi
cristy8b350f62009-11-15 23:12:43 +000020491rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20492 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020493fi
20494
cristy3ed852e2009-09-05 21:47:34 +000020495fi
20496fi
cristy8b350f62009-11-15 23:12:43 +000020497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000020498$as_echo "$ac_cv_header_stdc" >&6; }
20499if test $ac_cv_header_stdc = yes; then
20500
cristy8b350f62009-11-15 23:12:43 +000020501$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020502
20503fi
20504
20505if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000020506 { $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 +000020507 header files. Compilation cannot proceed. Please install the ANSI C
20508 headers and rerun this script." >&5
20509$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20510 header files. Compilation cannot proceed. Please install the ANSI C
20511 headers and rerun this script." >&2;};
20512fi
cristya0b81c32010-01-22 02:54:33 +000020513
20514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20515$as_echo_n "checking whether to enable assertions... " >&6; }
20516 # Check whether --enable-assert was given.
20517if test "${enable_assert+set}" = set; then :
20518 enableval=$enable_assert; ac_enable_assert=$enableval
20519 if test "x$enableval" = xno; then :
20520
20521$as_echo "#define NDEBUG 1" >>confdefs.h
20522
20523elif test "x$enableval" != xyes; then :
20524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20525$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20526 ac_enable_assert=yes
20527fi
20528else
20529 ac_enable_assert=yes
20530fi
20531
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20533$as_echo "$ac_enable_assert" >&6; }
20534
cristy3ed852e2009-09-05 21:47:34 +000020535ac_header_dirent=no
20536for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20537 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020539$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy98dddb52010-11-04 00:30:15 +000020540if eval "test \"\${$as_ac_Header+set}\"" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020541 $as_echo_n "(cached) " >&6
20542else
cristy8b350f62009-11-15 23:12:43 +000020543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020544/* end confdefs.h. */
20545#include <sys/types.h>
20546#include <$ac_hdr>
20547
20548int
20549main ()
20550{
20551if ((DIR *) 0)
20552return 0;
20553 ;
20554 return 0;
20555}
20556_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020557if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020558 eval "$as_ac_Header=yes"
20559else
cristy8b350f62009-11-15 23:12:43 +000020560 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020561fi
cristy3ed852e2009-09-05 21:47:34 +000020562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20563fi
cristy8b350f62009-11-15 23:12:43 +000020564eval ac_res=\$$as_ac_Header
20565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020566$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000020567if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000020568 cat >>confdefs.h <<_ACEOF
20569#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20570_ACEOF
20571
20572ac_header_dirent=$ac_hdr; break
20573fi
20574
20575done
20576# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20577if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020579$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020580if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020581 $as_echo_n "(cached) " >&6
20582else
20583 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020585/* end confdefs.h. */
20586
20587/* Override any GCC internal prototype to avoid an error.
20588 Use char because int might match the return type of a GCC
20589 builtin and then its argument prototype would still apply. */
20590#ifdef __cplusplus
20591extern "C"
20592#endif
20593char opendir ();
20594int
20595main ()
20596{
20597return opendir ();
20598 ;
20599 return 0;
20600}
20601_ACEOF
20602for ac_lib in '' dir; do
20603 if test -z "$ac_lib"; then
20604 ac_res="none required"
20605 else
20606 ac_res=-l$ac_lib
20607 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20608 fi
cristy8b350f62009-11-15 23:12:43 +000020609 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020610 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020611fi
cristy8b350f62009-11-15 23:12:43 +000020612rm -f core conftest.err conftest.$ac_objext \
20613 conftest$ac_exeext
20614 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020615 break
20616fi
20617done
cristy8b350f62009-11-15 23:12:43 +000020618if test "${ac_cv_search_opendir+set}" = set; then :
20619
cristy3ed852e2009-09-05 21:47:34 +000020620else
20621 ac_cv_search_opendir=no
20622fi
20623rm conftest.$ac_ext
20624LIBS=$ac_func_search_save_LIBS
20625fi
cristy8b350f62009-11-15 23:12:43 +000020626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020627$as_echo "$ac_cv_search_opendir" >&6; }
20628ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020629if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020630 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20631
20632fi
20633
20634else
cristy8b350f62009-11-15 23:12:43 +000020635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020636$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020637if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020638 $as_echo_n "(cached) " >&6
20639else
20640 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020642/* end confdefs.h. */
20643
20644/* Override any GCC internal prototype to avoid an error.
20645 Use char because int might match the return type of a GCC
20646 builtin and then its argument prototype would still apply. */
20647#ifdef __cplusplus
20648extern "C"
20649#endif
20650char opendir ();
20651int
20652main ()
20653{
20654return opendir ();
20655 ;
20656 return 0;
20657}
20658_ACEOF
20659for ac_lib in '' x; do
20660 if test -z "$ac_lib"; then
20661 ac_res="none required"
20662 else
20663 ac_res=-l$ac_lib
20664 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20665 fi
cristy8b350f62009-11-15 23:12:43 +000020666 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020667 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020668fi
cristy8b350f62009-11-15 23:12:43 +000020669rm -f core conftest.err conftest.$ac_objext \
20670 conftest$ac_exeext
20671 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020672 break
20673fi
20674done
cristy8b350f62009-11-15 23:12:43 +000020675if test "${ac_cv_search_opendir+set}" = set; then :
20676
cristy3ed852e2009-09-05 21:47:34 +000020677else
20678 ac_cv_search_opendir=no
20679fi
20680rm conftest.$ac_ext
20681LIBS=$ac_func_search_save_LIBS
20682fi
cristy8b350f62009-11-15 23:12:43 +000020683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020684$as_echo "$ac_cv_search_opendir" >&6; }
20685ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020686if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020687 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20688
20689fi
20690
20691fi
20692
20693
20694# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020695for 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
cristy8b350f62009-11-15 23:12:43 +000020696do :
20697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20698ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000020699if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000020700 cat >>confdefs.h <<_ACEOF
20701#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20702_ACEOF
20703
20704fi
20705
20706done
20707
20708
20709########
20710#
20711# Checks for typedefs, structures, and compiler characteristics.
20712#
20713########
20714
cristy8b350f62009-11-15 23:12:43 +000020715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020716$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020717if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020718 $as_echo_n "(cached) " >&6
20719else
cristy8b350f62009-11-15 23:12:43 +000020720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020721/* end confdefs.h. */
20722
20723#include <stdbool.h>
20724#ifndef bool
20725 "error: bool is not defined"
20726#endif
20727#ifndef false
20728 "error: false is not defined"
20729#endif
20730#if false
20731 "error: false is not 0"
20732#endif
20733#ifndef true
20734 "error: true is not defined"
20735#endif
20736#if true != 1
20737 "error: true is not 1"
20738#endif
20739#ifndef __bool_true_false_are_defined
20740 "error: __bool_true_false_are_defined is not defined"
20741#endif
20742
20743 struct s { _Bool s: 1; _Bool t; } s;
20744
20745 char a[true == 1 ? 1 : -1];
20746 char b[false == 0 ? 1 : -1];
20747 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20748 char d[(bool) 0.5 == true ? 1 : -1];
20749 bool e = &s;
20750 char f[(_Bool) 0.0 == false ? 1 : -1];
20751 char g[true];
20752 char h[sizeof (_Bool)];
20753 char i[sizeof s.t];
20754 enum { j = false, k = true, l = false * true, m = true * 256 };
20755 /* The following fails for
20756 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20757 _Bool n[m];
20758 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20759 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20760# if defined __xlc__ || defined __GNUC__
20761 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20762 reported by James Lemley on 2005-10-05; see
20763 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20764 This test is not quite right, since xlc is allowed to
20765 reject this program, as the initializer for xlcbug is
20766 not one of the forms that C requires support for.
20767 However, doing the test right would require a runtime
20768 test, and that would make cross-compilation harder.
20769 Let us hope that IBM fixes the xlc bug, and also adds
20770 support for this kind of constant expression. In the
20771 meantime, this test will reject xlc, which is OK, since
20772 our stdbool.h substitute should suffice. We also test
20773 this with GCC, where it should work, to detect more
20774 quickly whether someone messes up the test in the
20775 future. */
20776 char digs[] = "0123456789";
20777 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20778# endif
20779 /* Catch a bug in an HP-UX C compiler. See
20780 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20781 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20782 */
20783 _Bool q = true;
20784 _Bool *pq = &q;
20785
20786int
20787main ()
20788{
20789
20790 *pq |= q;
20791 *pq |= ! q;
20792 /* Refer to every declared value, to avoid compiler optimizations. */
20793 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20794 + !m + !n + !o + !p + !q + !pq);
20795
20796 ;
20797 return 0;
20798}
20799_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020800if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020801 ac_cv_header_stdbool_h=yes
20802else
cristy8b350f62009-11-15 23:12:43 +000020803 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000020804fi
cristy3ed852e2009-09-05 21:47:34 +000020805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20806fi
cristy8b350f62009-11-15 23:12:43 +000020807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000020808$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020809ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20810if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020811
20812cat >>confdefs.h <<_ACEOF
20813#define HAVE__BOOL 1
20814_ACEOF
20815
20816
20817fi
20818
20819if test $ac_cv_header_stdbool_h = yes; then
20820
cristy8b350f62009-11-15 23:12:43 +000020821$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020822
20823fi
20824
cristy8b350f62009-11-15 23:12:43 +000020825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020826$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020827if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020828 $as_echo_n "(cached) " >&6
20829else
cristy8b350f62009-11-15 23:12:43 +000020830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020831/* end confdefs.h. */
20832
20833int
20834main ()
20835{
20836
20837volatile int x;
20838int * volatile y = (int *) 0;
20839return !x && !y;
20840 ;
20841 return 0;
20842}
20843_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020844if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020845 ac_cv_c_volatile=yes
20846else
cristy8b350f62009-11-15 23:12:43 +000020847 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000020848fi
cristy3ed852e2009-09-05 21:47:34 +000020849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20850fi
cristy8b350f62009-11-15 23:12:43 +000020851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020852$as_echo "$ac_cv_c_volatile" >&6; }
20853if test $ac_cv_c_volatile = no; then
20854
cristy8b350f62009-11-15 23:12:43 +000020855$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020856
20857fi
20858
cristy8b350f62009-11-15 23:12:43 +000020859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000020860$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020861if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020862 $as_echo_n "(cached) " >&6
20863else
cristy8b350f62009-11-15 23:12:43 +000020864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020865/* end confdefs.h. */
20866#define x(y) #y
20867
20868char *s = x(teststring);
20869_ACEOF
20870if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020871 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020872 ac_cv_c_stringize=no
20873else
20874 ac_cv_c_stringize=yes
20875fi
20876rm -f conftest*
20877
20878fi
cristy8b350f62009-11-15 23:12:43 +000020879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000020880$as_echo "$ac_cv_c_stringize" >&6; }
20881if test $ac_cv_c_stringize = yes; then
20882
cristy8b350f62009-11-15 23:12:43 +000020883$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020884
20885fi
20886
cristy8b350f62009-11-15 23:12:43 +000020887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020888$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020889if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020890 $as_echo_n "(cached) " >&6
20891else
cristy8b350f62009-11-15 23:12:43 +000020892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020893/* end confdefs.h. */
20894#include <sys/types.h>
20895#include <sys/stat.h>
20896
20897#if defined S_ISBLK && defined S_IFDIR
20898extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20899#endif
20900
20901#if defined S_ISBLK && defined S_IFCHR
20902extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20903#endif
20904
20905#if defined S_ISLNK && defined S_IFREG
20906extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20907#endif
20908
20909#if defined S_ISSOCK && defined S_IFREG
20910extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20911#endif
20912
20913_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020914if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020915 ac_cv_header_stat_broken=no
20916else
cristy8b350f62009-11-15 23:12:43 +000020917 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000020918fi
cristy3ed852e2009-09-05 21:47:34 +000020919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20920fi
cristy8b350f62009-11-15 23:12:43 +000020921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020922$as_echo "$ac_cv_header_stat_broken" >&6; }
20923if test $ac_cv_header_stat_broken = yes; then
20924
cristy8b350f62009-11-15 23:12:43 +000020925$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020926
20927fi
20928
cristy8b350f62009-11-15 23:12:43 +000020929{ $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 +000020930$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020931if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020932 $as_echo_n "(cached) " >&6
20933else
cristy8b350f62009-11-15 23:12:43 +000020934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020935/* end confdefs.h. */
20936#include <sys/types.h>
20937#include <sys/time.h>
20938#include <time.h>
20939
20940int
20941main ()
20942{
20943if ((struct tm *) 0)
20944return 0;
20945 ;
20946 return 0;
20947}
20948_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020949if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020950 ac_cv_header_time=yes
20951else
cristy8b350f62009-11-15 23:12:43 +000020952 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000020953fi
cristy3ed852e2009-09-05 21:47:34 +000020954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20955fi
cristy8b350f62009-11-15 23:12:43 +000020956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000020957$as_echo "$ac_cv_header_time" >&6; }
20958if test $ac_cv_header_time = yes; then
20959
cristy8b350f62009-11-15 23:12:43 +000020960$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020961
20962fi
20963
cristy8b350f62009-11-15 23:12:43 +000020964{ $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 +000020965$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020966if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020967 $as_echo_n "(cached) " >&6
20968else
cristy8b350f62009-11-15 23:12:43 +000020969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020970/* end confdefs.h. */
20971#include <sys/types.h>
20972#include <time.h>
20973
20974int
20975main ()
20976{
20977struct tm tm;
20978 int *p = &tm.tm_sec;
20979 return !p;
20980 ;
20981 return 0;
20982}
20983_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020984if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020985 ac_cv_struct_tm=time.h
20986else
cristy8b350f62009-11-15 23:12:43 +000020987 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000020988fi
cristy3ed852e2009-09-05 21:47:34 +000020989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20990fi
cristy8b350f62009-11-15 23:12:43 +000020991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000020992$as_echo "$ac_cv_struct_tm" >&6; }
20993if test $ac_cv_struct_tm = sys/time.h; then
20994
cristy8b350f62009-11-15 23:12:43 +000020995$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020996
20997fi
20998
cristy92703d82010-04-26 00:18:18 +000020999ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21000#include <$ac_cv_struct_tm>
21001
21002"
21003if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21004
21005cat >>confdefs.h <<_ACEOF
21006#define HAVE_STRUCT_TM_TM_ZONE 1
21007_ACEOF
21008
21009
21010fi
21011
21012if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21013
21014$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21015
21016else
21017 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21018"
21019if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21020 ac_have_decl=1
21021else
21022 ac_have_decl=0
21023fi
21024
21025cat >>confdefs.h <<_ACEOF
21026#define HAVE_DECL_TZNAME $ac_have_decl
21027_ACEOF
21028
21029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21030$as_echo_n "checking for tzname... " >&6; }
21031if test "${ac_cv_var_tzname+set}" = set; then :
21032 $as_echo_n "(cached) " >&6
21033else
21034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21035/* end confdefs.h. */
21036#include <time.h>
21037#if !HAVE_DECL_TZNAME
21038extern char *tzname[];
21039#endif
21040
21041int
21042main ()
21043{
21044return tzname[0][0];
21045 ;
21046 return 0;
21047}
21048_ACEOF
21049if ac_fn_c_try_link "$LINENO"; then :
21050 ac_cv_var_tzname=yes
21051else
21052 ac_cv_var_tzname=no
21053fi
21054rm -f core conftest.err conftest.$ac_objext \
21055 conftest$ac_exeext conftest.$ac_ext
21056fi
21057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21058$as_echo "$ac_cv_var_tzname" >&6; }
21059 if test $ac_cv_var_tzname = yes; then
21060
21061$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21062
21063 fi
21064fi
21065
cristy8b350f62009-11-15 23:12:43 +000021066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021067$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021068if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021069 $as_echo_n "(cached) " >&6
21070else
21071 echo '#! /bin/cat
21072exit 69
21073' >conftest
21074chmod u+x conftest
21075(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21076if test $? -ne 69; then
21077 ac_cv_sys_interpreter=yes
21078else
21079 ac_cv_sys_interpreter=no
21080fi
21081rm -f conftest
21082fi
cristy8b350f62009-11-15 23:12:43 +000021083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021084$as_echo "$ac_cv_sys_interpreter" >&6; }
21085interpval=$ac_cv_sys_interpreter
21086
21087
cristy3ed852e2009-09-05 21:47:34 +000021088# If the C compiler supports the keyword inline, do nothing. Otherwise
21089# define inline to __inline__ or __inline if it accepts one of those,
21090# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021092$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021093if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021094 $as_echo_n "(cached) " >&6
21095else
21096 ac_cv_c_inline=no
21097for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021099/* end confdefs.h. */
21100#ifndef __cplusplus
21101typedef int foo_t;
21102static $ac_kw foo_t static_foo () {return 0; }
21103$ac_kw foo_t foo () {return 0; }
21104#endif
21105
21106_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021107if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021108 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021109fi
cristy3ed852e2009-09-05 21:47:34 +000021110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21111 test "$ac_cv_c_inline" != no && break
21112done
21113
21114fi
cristy8b350f62009-11-15 23:12:43 +000021115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021116$as_echo "$ac_cv_c_inline" >&6; }
21117
cristy3ed852e2009-09-05 21:47:34 +000021118case $ac_cv_c_inline in
21119 inline | yes) ;;
21120 *)
21121 case $ac_cv_c_inline in
21122 no) ac_val=;;
21123 *) ac_val=$ac_cv_c_inline;;
21124 esac
21125 cat >>confdefs.h <<_ACEOF
21126#ifndef __cplusplus
21127#define inline $ac_val
21128#endif
21129_ACEOF
21130 ;;
21131esac
21132
21133
21134# If the C compiler supports the keyword restrict, do nothing. Otherwise
21135# define restrict to __restrict__ or __restrict if it accepts one of those,
21136# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021138$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021139if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021140 $as_echo_n "(cached) " >&6
21141else
21142 ac_cv_c_restrict=no
21143 # The order here caters to the fact that C++ does not require restrict.
21144 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021146/* end confdefs.h. */
21147typedef int * int_ptr;
21148 int foo (int_ptr $ac_kw ip) {
21149 return ip[0];
21150 }
21151int
21152main ()
21153{
21154int s[1];
21155 int * $ac_kw t = s;
21156 t[0] = 0;
21157 return foo(t)
21158 ;
21159 return 0;
21160}
21161_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021162if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021163 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021164fi
cristy3ed852e2009-09-05 21:47:34 +000021165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21166 test "$ac_cv_c_restrict" != no && break
21167 done
21168
21169fi
cristy8b350f62009-11-15 23:12:43 +000021170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021171$as_echo "$ac_cv_c_restrict" >&6; }
21172
cristy3ed852e2009-09-05 21:47:34 +000021173 case $ac_cv_c_restrict in
21174 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021175 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021176 ;;
21177 *) cat >>confdefs.h <<_ACEOF
21178#define restrict $ac_cv_c_restrict
21179_ACEOF
21180 ;;
21181 esac
21182
21183
21184# If words are stored with the most significant byte first (like
21185# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021187$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021188if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021189 $as_echo_n "(cached) " >&6
21190else
21191 ac_cv_c_bigendian=unknown
21192 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021194/* end confdefs.h. */
21195#ifndef __APPLE_CC__
21196 not a universal capable compiler
21197 #endif
21198 typedef int dummy;
21199
21200_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021201if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021202
21203 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021204 # there are at least two -arch flags with different values.
21205 ac_arch=
21206 ac_prev=
21207 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21208 if test -n "$ac_prev"; then
21209 case $ac_word in
21210 i?86 | x86_64 | ppc | ppc64)
21211 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21212 ac_arch=$ac_word
21213 else
21214 ac_cv_c_bigendian=universal
21215 break
21216 fi
21217 ;;
21218 esac
21219 ac_prev=
21220 elif test "x$ac_word" = "x-arch"; then
21221 ac_prev=arch
21222 fi
21223 done
cristy3ed852e2009-09-05 21:47:34 +000021224fi
cristy3ed852e2009-09-05 21:47:34 +000021225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21226 if test $ac_cv_c_bigendian = unknown; then
21227 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000021228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021229/* end confdefs.h. */
21230#include <sys/types.h>
21231 #include <sys/param.h>
21232
21233int
21234main ()
21235{
21236#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21237 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21238 && LITTLE_ENDIAN)
21239 bogus endian macros
21240 #endif
21241
21242 ;
21243 return 0;
21244}
21245_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021246if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021247 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021249/* end confdefs.h. */
21250#include <sys/types.h>
21251 #include <sys/param.h>
21252
21253int
21254main ()
21255{
21256#if BYTE_ORDER != BIG_ENDIAN
21257 not big endian
21258 #endif
21259
21260 ;
21261 return 0;
21262}
21263_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021264if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021265 ac_cv_c_bigendian=yes
21266else
cristy8b350f62009-11-15 23:12:43 +000021267 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021268fi
cristy3ed852e2009-09-05 21:47:34 +000021269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021270fi
cristy3ed852e2009-09-05 21:47:34 +000021271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21272 fi
21273 if test $ac_cv_c_bigendian = unknown; then
21274 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000021275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021276/* end confdefs.h. */
21277#include <limits.h>
21278
21279int
21280main ()
21281{
21282#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21283 bogus endian macros
21284 #endif
21285
21286 ;
21287 return 0;
21288}
21289_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021290if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021291 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021293/* end confdefs.h. */
21294#include <limits.h>
21295
21296int
21297main ()
21298{
21299#ifndef _BIG_ENDIAN
21300 not big endian
21301 #endif
21302
21303 ;
21304 return 0;
21305}
21306_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021307if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021308 ac_cv_c_bigendian=yes
21309else
cristy8b350f62009-11-15 23:12:43 +000021310 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021311fi
cristy3ed852e2009-09-05 21:47:34 +000021312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021313fi
cristy3ed852e2009-09-05 21:47:34 +000021314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21315 fi
21316 if test $ac_cv_c_bigendian = unknown; then
21317 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000021318 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021319 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000021320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021321/* end confdefs.h. */
21322short int ascii_mm[] =
21323 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21324 short int ascii_ii[] =
21325 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21326 int use_ascii (int i) {
21327 return ascii_mm[i] + ascii_ii[i];
21328 }
21329 short int ebcdic_ii[] =
21330 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21331 short int ebcdic_mm[] =
21332 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21333 int use_ebcdic (int i) {
21334 return ebcdic_mm[i] + ebcdic_ii[i];
21335 }
21336 extern int foo;
21337
21338int
21339main ()
21340{
21341return use_ascii (foo) == use_ebcdic (foo);
21342 ;
21343 return 0;
21344}
21345_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021346if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021347 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21348 ac_cv_c_bigendian=yes
21349 fi
21350 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21351 if test "$ac_cv_c_bigendian" = unknown; then
21352 ac_cv_c_bigendian=no
21353 else
21354 # finding both strings is unlikely to happen, but who knows?
21355 ac_cv_c_bigendian=unknown
21356 fi
21357 fi
cristy3ed852e2009-09-05 21:47:34 +000021358fi
cristy3ed852e2009-09-05 21:47:34 +000021359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21360else
cristy8b350f62009-11-15 23:12:43 +000021361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021362/* end confdefs.h. */
21363$ac_includes_default
21364int
21365main ()
21366{
21367
21368 /* Are we little or big endian? From Harbison&Steele. */
21369 union
21370 {
21371 long int l;
21372 char c[sizeof (long int)];
21373 } u;
21374 u.l = 1;
21375 return u.c[sizeof (long int) - 1] == 1;
21376
21377 ;
21378 return 0;
21379}
21380_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021381if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021382 ac_cv_c_bigendian=no
21383else
cristy8b350f62009-11-15 23:12:43 +000021384 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000021385fi
cristy8b350f62009-11-15 23:12:43 +000021386rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21387 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021388fi
21389
cristy3ed852e2009-09-05 21:47:34 +000021390 fi
21391fi
cristy8b350f62009-11-15 23:12:43 +000021392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021393$as_echo "$ac_cv_c_bigendian" >&6; }
21394 case $ac_cv_c_bigendian in #(
21395 yes)
cristy8b350f62009-11-15 23:12:43 +000021396 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021397;; #(
21398 no)
21399 ;; #(
21400 universal)
21401
cristy8b350f62009-11-15 23:12:43 +000021402$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021403
21404 ;; #(
21405 *)
cristy98dddb52010-11-04 00:30:15 +000021406 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000021407 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021408 esac
21409
21410
21411# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021412ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21413if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021414
cristy3ed852e2009-09-05 21:47:34 +000021415else
21416
21417cat >>confdefs.h <<_ACEOF
21418#define mode_t int
21419_ACEOF
21420
21421fi
21422
21423
21424# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021425ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21426if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021427
cristy3ed852e2009-09-05 21:47:34 +000021428else
21429
21430cat >>confdefs.h <<_ACEOF
21431#define off_t long int
21432_ACEOF
21433
21434fi
21435
21436
21437# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021438ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21439if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021440
cristy3ed852e2009-09-05 21:47:34 +000021441else
21442
21443cat >>confdefs.h <<_ACEOF
21444#define pid_t int
21445_ACEOF
21446
21447fi
21448
21449
21450# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021451ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21452if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021453
cristy3ed852e2009-09-05 21:47:34 +000021454else
21455
21456cat >>confdefs.h <<_ACEOF
21457#define size_t unsigned int
21458_ACEOF
21459
21460fi
21461
21462
21463# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021464ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21465if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021466
cristy3ed852e2009-09-05 21:47:34 +000021467else
21468
21469cat >>confdefs.h <<_ACEOF
21470#define ssize_t int
21471_ACEOF
21472
21473fi
21474
21475
21476# If the C compiler supports a working long double type with more range
21477# or precision than the double type, define HAVE_LONG_DOUBLE.
21478
cristy8b350f62009-11-15 23:12:43 +000021479 { $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 +000021480$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021481if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021482 $as_echo_n "(cached) " >&6
21483else
cristy8b350f62009-11-15 23:12:43 +000021484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021485/* end confdefs.h. */
21486#include <float.h>
21487 long double const a[] =
21488 {
21489 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21490 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21491 };
21492 long double
21493 f (long double x)
21494 {
21495 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21496 + (x ? f (x) : 'c'));
21497 }
21498
21499int
21500main ()
21501{
21502static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21503 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21504 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21505 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21506 && (int) LDBL_EPSILON == 0
21507 )];
21508test_array [0] = 0
21509
21510 ;
21511 return 0;
21512}
21513_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021514if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021515 ac_cv_type_long_double_wider=yes
21516else
cristy8b350f62009-11-15 23:12:43 +000021517 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000021518fi
cristy3ed852e2009-09-05 21:47:34 +000021519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21520fi
cristy8b350f62009-11-15 23:12:43 +000021521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000021522$as_echo "$ac_cv_type_long_double_wider" >&6; }
21523 if test $ac_cv_type_long_double_wider = yes; then
21524
cristy8b350f62009-11-15 23:12:43 +000021525$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021526
21527 fi
21528
21529
21530# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21531# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000021532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021533$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021534if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021535 $as_echo_n "(cached) " >&6
21536else
cristy8b350f62009-11-15 23:12:43 +000021537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021538/* end confdefs.h. */
21539$ac_includes_default
21540int
21541main ()
21542{
21543static int test_array [1 - 2 * !(((char) -1) < 0)];
21544test_array [0] = 0
21545
21546 ;
21547 return 0;
21548}
21549_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021550if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021551 ac_cv_c_char_unsigned=no
21552else
cristy8b350f62009-11-15 23:12:43 +000021553 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000021554fi
cristy3ed852e2009-09-05 21:47:34 +000021555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21556fi
cristy8b350f62009-11-15 23:12:43 +000021557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021558$as_echo "$ac_cv_c_char_unsigned" >&6; }
21559if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000021560 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021561
21562fi
21563
21564
21565# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21566# The cast to long int works around a bug in the HP C Compiler
21567# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21568# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21569# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021571$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021572if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021573 $as_echo_n "(cached) " >&6
21574else
cristy8b350f62009-11-15 23:12:43 +000021575 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 +000021576
cristy3ed852e2009-09-05 21:47:34 +000021577else
cristy8b350f62009-11-15 23:12:43 +000021578 if test "$ac_cv_type_signed_short" = yes; then
21579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021581as_fn_error 77 "cannot compute sizeof (signed short)
21582See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021583 else
21584 ac_cv_sizeof_signed_short=0
21585 fi
21586fi
cristy8b350f62009-11-15 23:12:43 +000021587
cristy3ed852e2009-09-05 21:47:34 +000021588fi
cristy8b350f62009-11-15 23:12:43 +000021589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021590$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21591
21592
21593
21594cat >>confdefs.h <<_ACEOF
21595#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21596_ACEOF
21597
21598
21599
21600# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21601# The cast to long int works around a bug in the HP C Compiler
21602# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21603# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21604# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021606$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021607if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021608 $as_echo_n "(cached) " >&6
21609else
cristy8b350f62009-11-15 23:12:43 +000021610 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 +000021611
cristy3ed852e2009-09-05 21:47:34 +000021612else
cristy8b350f62009-11-15 23:12:43 +000021613 if test "$ac_cv_type_unsigned_short" = yes; then
21614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021616as_fn_error 77 "cannot compute sizeof (unsigned short)
21617See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021618 else
21619 ac_cv_sizeof_unsigned_short=0
21620 fi
21621fi
cristy8b350f62009-11-15 23:12:43 +000021622
cristy3ed852e2009-09-05 21:47:34 +000021623fi
cristy8b350f62009-11-15 23:12:43 +000021624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021625$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21626
21627
21628
21629cat >>confdefs.h <<_ACEOF
21630#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21631_ACEOF
21632
21633
21634
21635# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21636# The cast to long int works around a bug in the HP C Compiler
21637# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21638# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21639# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021641$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021642if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021643 $as_echo_n "(cached) " >&6
21644else
cristy8b350f62009-11-15 23:12:43 +000021645 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 +000021646
cristy3ed852e2009-09-05 21:47:34 +000021647else
cristy8b350f62009-11-15 23:12:43 +000021648 if test "$ac_cv_type_signed_int" = yes; then
21649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021650$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021651as_fn_error 77 "cannot compute sizeof (signed int)
21652See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021653 else
21654 ac_cv_sizeof_signed_int=0
21655 fi
21656fi
cristy8b350f62009-11-15 23:12:43 +000021657
cristy3ed852e2009-09-05 21:47:34 +000021658fi
cristy8b350f62009-11-15 23:12:43 +000021659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021660$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21661
21662
21663
21664cat >>confdefs.h <<_ACEOF
21665#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21666_ACEOF
21667
21668
21669
21670# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21671# The cast to long int works around a bug in the HP C Compiler
21672# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21673# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21674# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021676$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021677if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021678 $as_echo_n "(cached) " >&6
21679else
cristy8b350f62009-11-15 23:12:43 +000021680 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 +000021681
cristy3ed852e2009-09-05 21:47:34 +000021682else
cristy8b350f62009-11-15 23:12:43 +000021683 if test "$ac_cv_type_unsigned_int" = yes; then
21684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021686as_fn_error 77 "cannot compute sizeof (unsigned int)
21687See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021688 else
21689 ac_cv_sizeof_unsigned_int=0
21690 fi
21691fi
cristy8b350f62009-11-15 23:12:43 +000021692
cristy3ed852e2009-09-05 21:47:34 +000021693fi
cristy8b350f62009-11-15 23:12:43 +000021694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021695$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21696
21697
21698
21699cat >>confdefs.h <<_ACEOF
21700#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21701_ACEOF
21702
21703
21704
21705# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21706# The cast to long int works around a bug in the HP C Compiler
21707# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21708# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21709# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021711$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021712if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021713 $as_echo_n "(cached) " >&6
21714else
cristy8b350f62009-11-15 23:12:43 +000021715 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 +000021716
cristy3ed852e2009-09-05 21:47:34 +000021717else
cristy8b350f62009-11-15 23:12:43 +000021718 if test "$ac_cv_type_signed_long" = yes; then
21719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021720$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021721as_fn_error 77 "cannot compute sizeof (signed long)
21722See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021723 else
21724 ac_cv_sizeof_signed_long=0
21725 fi
21726fi
cristy8b350f62009-11-15 23:12:43 +000021727
cristy3ed852e2009-09-05 21:47:34 +000021728fi
cristy8b350f62009-11-15 23:12:43 +000021729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021730$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21731
21732
21733
21734cat >>confdefs.h <<_ACEOF
21735#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21736_ACEOF
21737
21738
21739
21740# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21741# The cast to long int works around a bug in the HP C Compiler
21742# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21743# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21744# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021746$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021747if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021748 $as_echo_n "(cached) " >&6
21749else
cristy8b350f62009-11-15 23:12:43 +000021750 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 +000021751
cristy3ed852e2009-09-05 21:47:34 +000021752else
cristy8b350f62009-11-15 23:12:43 +000021753 if test "$ac_cv_type_unsigned_long" = yes; then
21754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021755$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021756as_fn_error 77 "cannot compute sizeof (unsigned long)
21757See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021758 else
21759 ac_cv_sizeof_unsigned_long=0
21760 fi
21761fi
cristy8b350f62009-11-15 23:12:43 +000021762
cristy3ed852e2009-09-05 21:47:34 +000021763fi
cristy8b350f62009-11-15 23:12:43 +000021764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021765$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21766
21767
21768
21769cat >>confdefs.h <<_ACEOF
21770#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21771_ACEOF
21772
21773
21774
21775# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21776# 'signed long long' is not supported then the value defined is zero.
21777# The cast to long int works around a bug in the HP C Compiler
21778# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21779# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21780# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021782$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021783if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021784 $as_echo_n "(cached) " >&6
21785else
cristy8b350f62009-11-15 23:12:43 +000021786 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 +000021787
cristy3ed852e2009-09-05 21:47:34 +000021788else
cristy8b350f62009-11-15 23:12:43 +000021789 if test "$ac_cv_type_signed_long_long" = yes; then
21790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021792as_fn_error 77 "cannot compute sizeof (signed long long)
21793See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021794 else
21795 ac_cv_sizeof_signed_long_long=0
21796 fi
21797fi
cristy8b350f62009-11-15 23:12:43 +000021798
cristy3ed852e2009-09-05 21:47:34 +000021799fi
cristy8b350f62009-11-15 23:12:43 +000021800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021801$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21802
21803
21804
21805cat >>confdefs.h <<_ACEOF
21806#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21807_ACEOF
21808
21809
21810
21811# Obtain size of a 'unsigned long long' and define as
21812# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21813# supported then the value defined is zero.
21814# The cast to long int works around a bug in the HP C Compiler
21815# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21816# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21817# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021819$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021820if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021821 $as_echo_n "(cached) " >&6
21822else
cristy8b350f62009-11-15 23:12:43 +000021823 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 +000021824
cristy3ed852e2009-09-05 21:47:34 +000021825else
cristy8b350f62009-11-15 23:12:43 +000021826 if test "$ac_cv_type_unsigned_long_long" = yes; then
21827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021828$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021829as_fn_error 77 "cannot compute sizeof (unsigned long long)
21830See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021831 else
21832 ac_cv_sizeof_unsigned_long_long=0
21833 fi
21834fi
cristy8b350f62009-11-15 23:12:43 +000021835
cristy3ed852e2009-09-05 21:47:34 +000021836fi
cristy8b350f62009-11-15 23:12:43 +000021837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021838$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21839
21840
21841
21842cat >>confdefs.h <<_ACEOF
21843#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21844_ACEOF
21845
21846
21847
21848# Obtain size of off_t and define as SIZEOF_OFF_T
21849# The cast to long int works around a bug in the HP C Compiler
21850# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21851# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21852# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021854$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021855if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021856 $as_echo_n "(cached) " >&6
21857else
cristy8b350f62009-11-15 23:12:43 +000021858 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 +000021859
cristy3ed852e2009-09-05 21:47:34 +000021860else
cristy8b350f62009-11-15 23:12:43 +000021861 if test "$ac_cv_type_off_t" = yes; then
21862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021863$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021864as_fn_error 77 "cannot compute sizeof (off_t)
21865See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021866 else
21867 ac_cv_sizeof_off_t=0
21868 fi
21869fi
cristy8b350f62009-11-15 23:12:43 +000021870
cristy3ed852e2009-09-05 21:47:34 +000021871fi
cristy8b350f62009-11-15 23:12:43 +000021872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021873$as_echo "$ac_cv_sizeof_off_t" >&6; }
21874
21875
21876
21877cat >>confdefs.h <<_ACEOF
21878#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21879_ACEOF
21880
21881
21882
21883# Obtain size of size_t and define as SIZEOF_SIZE_T
21884# The cast to long int works around a bug in the HP C Compiler
21885# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21886# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21887# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021889$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021890if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021891 $as_echo_n "(cached) " >&6
21892else
cristy8b350f62009-11-15 23:12:43 +000021893 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 +000021894
cristy3ed852e2009-09-05 21:47:34 +000021895else
cristy8b350f62009-11-15 23:12:43 +000021896 if test "$ac_cv_type_size_t" = yes; then
21897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021899as_fn_error 77 "cannot compute sizeof (size_t)
21900See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021901 else
21902 ac_cv_sizeof_size_t=0
21903 fi
21904fi
cristy8b350f62009-11-15 23:12:43 +000021905
cristy3ed852e2009-09-05 21:47:34 +000021906fi
cristy8b350f62009-11-15 23:12:43 +000021907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021908$as_echo "$ac_cv_sizeof_size_t" >&6; }
21909
21910
21911
21912cat >>confdefs.h <<_ACEOF
21913#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21914_ACEOF
21915
21916
21917
cristy330e9352010-06-01 18:42:49 +000021918# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
21919# The cast to long int works around a bug in the HP C Compiler
21920# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21921# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21922# This bug is HP SR number 8606223364.
21923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
21924$as_echo_n "checking size of ssize_t... " >&6; }
21925if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
21926 $as_echo_n "(cached) " >&6
21927else
21928 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
21929
21930else
21931 if test "$ac_cv_type_ssize_t" = yes; then
21932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021934as_fn_error 77 "cannot compute sizeof (ssize_t)
21935See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000021936 else
21937 ac_cv_sizeof_ssize_t=0
21938 fi
21939fi
21940
21941fi
21942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
21943$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
21944
21945
21946
21947cat >>confdefs.h <<_ACEOF
21948#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
21949_ACEOF
21950
21951
21952
cristy3ed852e2009-09-05 21:47:34 +000021953# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
21954# The cast to long int works around a bug in the HP C Compiler
21955# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21956# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21957# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000021959$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021960if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021961 $as_echo_n "(cached) " >&6
21962else
cristy8b350f62009-11-15 23:12:43 +000021963 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 +000021964
cristy3ed852e2009-09-05 21:47:34 +000021965else
cristy8b350f62009-11-15 23:12:43 +000021966 if test "$ac_cv_type_unsigned_intp" = yes; then
21967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021968$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021969as_fn_error 77 "cannot compute sizeof (unsigned int*)
21970See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021971 else
21972 ac_cv_sizeof_unsigned_intp=0
21973 fi
21974fi
cristy8b350f62009-11-15 23:12:43 +000021975
cristy3ed852e2009-09-05 21:47:34 +000021976fi
cristy8b350f62009-11-15 23:12:43 +000021977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021978$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
21979
21980
21981
21982cat >>confdefs.h <<_ACEOF
21983#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
21984_ACEOF
21985
21986
21987
21988#
21989# Compute sized types for current CPU and compiler options.
21990#
21991
cristy8b350f62009-11-15 23:12:43 +000021992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021993$as_echo_n "checking for signed 8-bit type... " >&6; }
21994INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000021995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021996$as_echo "$INT8_T" >&6; }
21997
21998
cristy8b350f62009-11-15 23:12:43 +000021999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022000$as_echo_n "checking for unsigned 8-bit type... " >&6; }
22001UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000022002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022003$as_echo "$UINT8_T" >&6; }
22004
22005
cristy8b350f62009-11-15 23:12:43 +000022006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022007$as_echo_n "checking for signed 16-bit type... " >&6; }
22008INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022010$as_echo "$INT16_T" >&6; }
22011
22012
cristy8b350f62009-11-15 23:12:43 +000022013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022014$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22015UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022017$as_echo "$UINT16_T" >&6; }
22018
22019
cristy8b350f62009-11-15 23:12:43 +000022020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022021$as_echo_n "checking for signed 32-bit type... " >&6; }
22022INT32_T='none'
22023if test $ac_cv_sizeof_signed_int -eq 4; then
22024 INT32_T='signed int'
22025elif test $ac_cv_sizeof_signed_long -eq 4; then
22026 INT32_T='signed long'
22027fi
cristy8b350f62009-11-15 23:12:43 +000022028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022029$as_echo "$INT32_T" >&6; }
22030
22031
cristy8b350f62009-11-15 23:12:43 +000022032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022033$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22034UINT32_T='none'
22035if test $ac_cv_sizeof_unsigned_int -eq 4; then
22036 UINT32_T='unsigned int'
22037elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22038 UINT32_T='unsigned long'
22039fi
cristy8b350f62009-11-15 23:12:43 +000022040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022041$as_echo "$UINT32_T" >&6; }
22042
22043
cristy8b350f62009-11-15 23:12:43 +000022044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022045$as_echo_n "checking for signed 64-bit type... " >&6; }
22046INT64_T='none'
22047if test $ac_cv_sizeof_signed_long -eq 8; then
22048 INT64_T='signed long'
22049elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22050 INT64_T='signed long long'
22051fi
cristy8b350f62009-11-15 23:12:43 +000022052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022053$as_echo "$INT64_T" >&6; }
22054
22055
cristy8b350f62009-11-15 23:12:43 +000022056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022057$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22058UINT64_T='none'
22059if test $ac_cv_sizeof_unsigned_long -eq 8; then
22060 UINT64_T='unsigned long'
22061elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22062 UINT64_T='unsigned long long'
22063fi
cristy8b350f62009-11-15 23:12:43 +000022064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022065$as_echo "$UINT64_T" >&6; }
22066
22067
cristy8b350f62009-11-15 23:12:43 +000022068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022069$as_echo_n "checking for unsigned maximum type... " >&6; }
22070UINTMAX_T='none'
22071if test "$UINT64_T" != 'none'; then
22072 UINTMAX_T=$UINT64_T
22073elif test "$UINT32_T" != 'none'; then
22074 UINTMAX_T=$UINT32_T
22075fi
cristy8b350f62009-11-15 23:12:43 +000022076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022077$as_echo "$UINTMAX_T" >&6; }
22078
22079
cristy8b350f62009-11-15 23:12:43 +000022080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022081$as_echo_n "checking for pointer difference type... " >&6; }
22082UINTPTR_T='none'
22083if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22084 UINTPTR_T='unsigned long'
22085elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22086 UINTPTR_T='unsigned long long'
22087fi
cristy8b350f62009-11-15 23:12:43 +000022088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022089$as_echo "$UINTPTR_T" >&6; }
22090
22091
cristy8b350f62009-11-15 23:12:43 +000022092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022093$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022095/* end confdefs.h. */
22096
22097int
22098main ()
22099{
22100{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22101 ;
22102 return 0;
22103}
22104_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022105if ac_fn_c_try_compile "$LINENO"; then :
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022107$as_echo "yes" >&6; }
22108else
cristy8b350f62009-11-15 23:12:43 +000022109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022110$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022112$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022114/* end confdefs.h. */
22115
22116int
22117main ()
22118{
22119{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22120 ;
22121 return 0;
22122}
22123_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022124if ac_fn_c_try_compile "$LINENO"; then :
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022126$as_echo "yes" >&6; }
22127
cristy8b350f62009-11-15 23:12:43 +000022128$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022129
22130else
cristy8b350f62009-11-15 23:12:43 +000022131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022132$as_echo "no" >&6; }
22133
cristy8b350f62009-11-15 23:12:43 +000022134$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022135
22136fi
cristy3ed852e2009-09-05 21:47:34 +000022137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22138fi
cristy3ed852e2009-09-05 21:47:34 +000022139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22140
22141########
22142#
22143# Check for functions
22144#
22145########
cristy73bd4a52010-10-05 11:24:23 +000022146for ac_header in stdlib.h unistd.h
22147do :
22148 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22149ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022150if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000022151 cat >>confdefs.h <<_ACEOF
22152#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22153_ACEOF
22154
22155fi
22156
22157done
22158
22159for ac_func in getpagesize
22160do :
22161 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22162if test "x$ac_cv_func_getpagesize" = x""yes; then :
22163 cat >>confdefs.h <<_ACEOF
22164#define HAVE_GETPAGESIZE 1
22165_ACEOF
22166
22167fi
22168done
22169
22170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
22171$as_echo_n "checking for working mmap file i/o... " >&6; }
22172if test "${magick_cv_func_mmap_fileio+set}" = set; then :
22173 $as_echo_n "(cached) " >&6
22174else
22175 if test "$cross_compiling" = yes; then :
22176 magick_cv_func_mmap_fileio=no
22177else
22178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22179/* end confdefs.h. */
22180$ac_includes_default
22181/* malloc might have been renamed as rpl_malloc. */
22182#undef malloc
22183
22184/*
22185 This test is derived from GNU Autoconf's similar macro.
22186 The purpose of this test is to verify that files may be memory
22187 mapped, and that memory mapping and file I/O are coherent.
22188
22189 The test creates a test file, memory maps the file, updates
22190 the file using the memory map, and then reads the file using
22191 file I/O to verify that the file contains the updates.
22192*/
22193
22194#include <fcntl.h>
22195#include <sys/mman.h>
22196
22197#if !STDC_HEADERS && !HAVE_STDLIB_H
22198char *malloc ();
22199#endif
22200
22201/* This mess was copied from the GNU getpagesize.h. */
22202#if !HAVE_GETPAGESIZE
22203/* Assume that all systems that can run configure have sys/param.h. */
22204# if !HAVE_SYS_PARAM_H
22205# define HAVE_SYS_PARAM_H 1
22206# endif
22207
22208# ifdef _SC_PAGESIZE
22209# define getpagesize() sysconf(_SC_PAGESIZE)
22210# else /* no _SC_PAGESIZE */
22211# if HAVE_SYS_PARAM_H
22212# include <sys/param.h>
22213# ifdef EXEC_PAGESIZE
22214# define getpagesize() EXEC_PAGESIZE
22215# else /* no EXEC_PAGESIZE */
22216# ifdef NBPG
22217# define getpagesize() NBPG * CLSIZE
22218# ifndef CLSIZE
22219# define CLSIZE 1
22220# endif /* no CLSIZE */
22221# else /* no NBPG */
22222# ifdef NBPC
22223# define getpagesize() NBPC
22224# else /* no NBPC */
22225# ifdef PAGESIZE
22226# define getpagesize() PAGESIZE
22227# endif /* PAGESIZE */
22228# endif /* no NBPC */
22229# endif /* no NBPG */
22230# endif /* no EXEC_PAGESIZE */
22231# else /* no HAVE_SYS_PARAM_H */
22232# define getpagesize() 8192 /* punt totally */
22233# endif /* no HAVE_SYS_PARAM_H */
22234# endif /* no _SC_PAGESIZE */
22235
22236#endif /* no HAVE_GETPAGESIZE */
22237
22238int
22239main ()
22240{
22241 char *data, *data2, *data3;
22242 int i, pagesize;
22243 int fd;
22244
22245 pagesize = getpagesize ();
22246
22247 /* First, make a file with some known garbage in it. */
22248 data = (char *) malloc (pagesize);
22249 if (!data)
22250 exit (1);
22251 for (i = 0; i < pagesize; ++i)
22252 *(data + i) = rand ();
22253 umask (0);
22254 fd = creat ("conftest.mmap", 0600);
22255 if (fd < 0)
22256 exit (1);
22257 if (write (fd, data, pagesize) != pagesize)
22258 exit (1);
22259 close (fd);
22260
22261 /* Mmap the file as read/write/shared and verify that we see the
22262 same garbage. */
22263 fd = open ("conftest.mmap", O_RDWR);
22264 if (fd < 0)
22265 exit (1);
22266 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22267 if (data2 == 0)
22268 exit (1);
22269 for (i = 0; i < pagesize; ++i)
22270 if (*(data + i) != *(data2 + i))
22271 exit (1);
22272
22273 /* Finally, make sure that changes to the mapped area
22274 percolate back to the file as seen by read(). */
22275 for (i = 0; i < pagesize; ++i)
22276 *(data2 + i) = *(data2 + i) + 1;
22277 data3 = (char *) malloc (pagesize);
22278 if (!data3)
22279 exit (1);
22280 if (read (fd, data3, pagesize) != pagesize)
22281 exit (1);
22282 for (i = 0; i < pagesize; ++i)
22283 if (*(data2 + i) != *(data3 + i))
22284 exit (1);
22285 close (fd);
22286 exit (0);
22287}
22288_ACEOF
22289if ac_fn_c_try_run "$LINENO"; then :
22290 magick_cv_func_mmap_fileio=yes
22291else
22292 magick_cv_func_mmap_fileio=no
22293fi
22294rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22295 conftest.$ac_objext conftest.beam conftest.$ac_ext
22296fi
22297
22298fi
22299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
22300$as_echo "$magick_cv_func_mmap_fileio" >&6; }
22301if test $magick_cv_func_mmap_fileio = yes; then
22302
22303$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
22304
22305fi
22306rm -f conftest.mmap
22307
cristy8b350f62009-11-15 23:12:43 +000022308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022309$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022310if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022311 $as_echo_n "(cached) " >&6
22312else
cristy8b350f62009-11-15 23:12:43 +000022313 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022314 ac_cv_func_closedir_void=yes
22315else
cristy8b350f62009-11-15 23:12:43 +000022316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022317/* end confdefs.h. */
22318$ac_includes_default
22319#include <$ac_header_dirent>
22320#ifndef __cplusplus
22321int closedir ();
22322#endif
22323
22324int
22325main ()
22326{
22327return closedir (opendir (".")) != 0;
22328 ;
22329 return 0;
22330}
22331_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022332if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022333 ac_cv_func_closedir_void=no
22334else
cristy8b350f62009-11-15 23:12:43 +000022335 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000022336fi
cristy8b350f62009-11-15 23:12:43 +000022337rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22338 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022339fi
22340
cristy3ed852e2009-09-05 21:47:34 +000022341fi
cristy8b350f62009-11-15 23:12:43 +000022342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022343$as_echo "$ac_cv_func_closedir_void" >&6; }
22344if test $ac_cv_func_closedir_void = yes; then
22345
cristy8b350f62009-11-15 23:12:43 +000022346$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022347
22348fi
22349
cristycd4c5312009-11-22 01:19:08 +000022350
22351
22352
22353 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000022354do :
22355 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000022356ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22357"
cristy98dddb52010-11-04 00:30:15 +000022358if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022359 cat >>confdefs.h <<_ACEOF
22360#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22361_ACEOF
22362
22363fi
22364
22365done
22366
cristycd4c5312009-11-22 01:19:08 +000022367
22368
22369
22370
22371
22372
22373
cristy3ed852e2009-09-05 21:47:34 +000022374for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022375do :
22376 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22377if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022378 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022379#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022380_ACEOF
22381
22382fi
22383done
22384
cristy8b350f62009-11-15 23:12:43 +000022385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000022386$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022387if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022388 $as_echo_n "(cached) " >&6
22389else
cristy8b350f62009-11-15 23:12:43 +000022390 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022391 ac_cv_func_mmap_fixed_mapped=no
22392else
cristy8b350f62009-11-15 23:12:43 +000022393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022394/* end confdefs.h. */
22395$ac_includes_default
22396/* malloc might have been renamed as rpl_malloc. */
22397#undef malloc
22398
22399/* Thanks to Mike Haertel and Jim Avera for this test.
22400 Here is a matrix of mmap possibilities:
22401 mmap private not fixed
22402 mmap private fixed at somewhere currently unmapped
22403 mmap private fixed at somewhere already mapped
22404 mmap shared not fixed
22405 mmap shared fixed at somewhere currently unmapped
22406 mmap shared fixed at somewhere already mapped
22407 For private mappings, we should verify that changes cannot be read()
22408 back from the file, nor mmap's back from the file at a different
22409 address. (There have been systems where private was not correctly
22410 implemented like the infamous i386 svr4.0, and systems where the
22411 VM page cache was not coherent with the file system buffer cache
22412 like early versions of FreeBSD and possibly contemporary NetBSD.)
22413 For shared mappings, we should conversely verify that changes get
22414 propagated back to all the places they're supposed to be.
22415
22416 Grep wants private fixed already mapped.
22417 The main things grep needs to know about mmap are:
22418 * does it exist and is it safe to write into the mmap'd area
22419 * how to use it (BSD variants) */
22420
22421#include <fcntl.h>
22422#include <sys/mman.h>
22423
22424#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22425char *malloc ();
22426#endif
22427
22428/* This mess was copied from the GNU getpagesize.h. */
22429#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000022430# ifdef _SC_PAGESIZE
22431# define getpagesize() sysconf(_SC_PAGESIZE)
22432# else /* no _SC_PAGESIZE */
22433# ifdef HAVE_SYS_PARAM_H
22434# include <sys/param.h>
22435# ifdef EXEC_PAGESIZE
22436# define getpagesize() EXEC_PAGESIZE
22437# else /* no EXEC_PAGESIZE */
22438# ifdef NBPG
22439# define getpagesize() NBPG * CLSIZE
22440# ifndef CLSIZE
22441# define CLSIZE 1
22442# endif /* no CLSIZE */
22443# else /* no NBPG */
22444# ifdef NBPC
22445# define getpagesize() NBPC
22446# else /* no NBPC */
22447# ifdef PAGESIZE
22448# define getpagesize() PAGESIZE
22449# endif /* PAGESIZE */
22450# endif /* no NBPC */
22451# endif /* no NBPG */
22452# endif /* no EXEC_PAGESIZE */
22453# else /* no HAVE_SYS_PARAM_H */
22454# define getpagesize() 8192 /* punt totally */
22455# endif /* no HAVE_SYS_PARAM_H */
22456# endif /* no _SC_PAGESIZE */
22457
22458#endif /* no HAVE_GETPAGESIZE */
22459
22460int
22461main ()
22462{
22463 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000022464 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000022465 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000022466 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000022467
22468 pagesize = getpagesize ();
22469
22470 /* First, make a file with some known garbage in it. */
22471 data = (char *) malloc (pagesize);
22472 if (!data)
22473 return 1;
22474 for (i = 0; i < pagesize; ++i)
22475 *(data + i) = rand ();
22476 umask (0);
22477 fd = creat ("conftest.mmap", 0600);
22478 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022479 return 2;
cristy3ed852e2009-09-05 21:47:34 +000022480 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022481 return 3;
cristy3ed852e2009-09-05 21:47:34 +000022482 close (fd);
22483
cristycd4c5312009-11-22 01:19:08 +000022484 /* Next, check that the tail of a page is zero-filled. File must have
22485 non-zero length, otherwise we risk SIGBUS for entire page. */
22486 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22487 if (fd2 < 0)
22488 return 4;
cristyc54f5d42009-11-27 21:36:31 +000022489 cdata2 = "";
22490 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000022491 return 5;
cristyc54f5d42009-11-27 21:36:31 +000022492 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000022493 if (data2 == MAP_FAILED)
22494 return 6;
22495 for (i = 0; i < pagesize; ++i)
22496 if (*(data2 + i))
22497 return 7;
22498 close (fd2);
22499 if (munmap (data2, pagesize))
22500 return 8;
22501
cristy3ed852e2009-09-05 21:47:34 +000022502 /* Next, try to mmap the file at a fixed address which already has
22503 something else allocated at it. If we can, also make sure that
22504 we see the same garbage. */
22505 fd = open ("conftest.mmap", O_RDWR);
22506 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022507 return 9;
cristy3ed852e2009-09-05 21:47:34 +000022508 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22509 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000022510 return 10;
cristy3ed852e2009-09-05 21:47:34 +000022511 for (i = 0; i < pagesize; ++i)
22512 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000022513 return 11;
cristy3ed852e2009-09-05 21:47:34 +000022514
22515 /* Finally, make sure that changes to the mapped area do not
22516 percolate back to the file as seen by read(). (This is a bug on
22517 some variants of i386 svr4.0.) */
22518 for (i = 0; i < pagesize; ++i)
22519 *(data2 + i) = *(data2 + i) + 1;
22520 data3 = (char *) malloc (pagesize);
22521 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000022522 return 12;
cristy3ed852e2009-09-05 21:47:34 +000022523 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022524 return 13;
cristy3ed852e2009-09-05 21:47:34 +000022525 for (i = 0; i < pagesize; ++i)
22526 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000022527 return 14;
cristy3ed852e2009-09-05 21:47:34 +000022528 close (fd);
22529 return 0;
22530}
22531_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022532if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022533 ac_cv_func_mmap_fixed_mapped=yes
22534else
cristy8b350f62009-11-15 23:12:43 +000022535 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000022536fi
cristy8b350f62009-11-15 23:12:43 +000022537rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22538 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022539fi
22540
cristy3ed852e2009-09-05 21:47:34 +000022541fi
cristy8b350f62009-11-15 23:12:43 +000022542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000022543$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22544if test $ac_cv_func_mmap_fixed_mapped = yes; then
22545
cristy8b350f62009-11-15 23:12:43 +000022546$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022547
22548fi
cristycd4c5312009-11-22 01:19:08 +000022549rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000022550
cristy3ed852e2009-09-05 21:47:34 +000022551for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000022552do :
22553 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22554if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022555 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022556#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000022557_ACEOF
22558
22559fi
22560
22561done
22562
cristy3ed852e2009-09-05 21:47:34 +000022563for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000022564do :
22565 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22566ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000022567if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022568 cat >>confdefs.h <<_ACEOF
22569#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22570_ACEOF
22571
22572fi
22573done
22574
22575if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022577$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022578if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022579 $as_echo_n "(cached) " >&6
22580else
cristy8b350f62009-11-15 23:12:43 +000022581 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022582 ac_cv_func_fork_works=cross
22583else
cristy8b350f62009-11-15 23:12:43 +000022584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022585/* end confdefs.h. */
22586$ac_includes_default
22587int
22588main ()
22589{
22590
22591 /* By Ruediger Kuhlmann. */
22592 return fork () < 0;
22593
22594 ;
22595 return 0;
22596}
22597_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022598if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022599 ac_cv_func_fork_works=yes
22600else
cristy8b350f62009-11-15 23:12:43 +000022601 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022602fi
cristy8b350f62009-11-15 23:12:43 +000022603rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22604 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022605fi
22606
cristy3ed852e2009-09-05 21:47:34 +000022607fi
cristy8b350f62009-11-15 23:12:43 +000022608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022609$as_echo "$ac_cv_func_fork_works" >&6; }
22610
22611else
22612 ac_cv_func_fork_works=$ac_cv_func_fork
22613fi
22614if test "x$ac_cv_func_fork_works" = xcross; then
22615 case $host in
22616 *-*-amigaos* | *-*-msdosdjgpp*)
22617 # Override, as these systems have only a dummy fork() stub
22618 ac_cv_func_fork_works=no
22619 ;;
22620 *)
22621 ac_cv_func_fork_works=yes
22622 ;;
22623 esac
cristy8b350f62009-11-15 23:12:43 +000022624 { $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 +000022625$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22626fi
22627ac_cv_func_vfork_works=$ac_cv_func_vfork
22628if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022630$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022631if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022632 $as_echo_n "(cached) " >&6
22633else
cristy8b350f62009-11-15 23:12:43 +000022634 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022635 ac_cv_func_vfork_works=cross
22636else
cristy8b350f62009-11-15 23:12:43 +000022637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022638/* end confdefs.h. */
22639/* Thanks to Paul Eggert for this test. */
22640$ac_includes_default
22641#include <sys/wait.h>
22642#ifdef HAVE_VFORK_H
22643# include <vfork.h>
22644#endif
22645/* On some sparc systems, changes by the child to local and incoming
22646 argument registers are propagated back to the parent. The compiler
22647 is told about this with #include <vfork.h>, but some compilers
22648 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22649 static variable whose address is put into a register that is
22650 clobbered by the vfork. */
22651static void
22652#ifdef __cplusplus
22653sparc_address_test (int arg)
22654# else
22655sparc_address_test (arg) int arg;
22656#endif
22657{
22658 static pid_t child;
22659 if (!child) {
22660 child = vfork ();
22661 if (child < 0) {
22662 perror ("vfork");
22663 _exit(2);
22664 }
22665 if (!child) {
22666 arg = getpid();
22667 write(-1, "", 0);
22668 _exit (arg);
22669 }
22670 }
22671}
22672
22673int
22674main ()
22675{
22676 pid_t parent = getpid ();
22677 pid_t child;
22678
22679 sparc_address_test (0);
22680
22681 child = vfork ();
22682
22683 if (child == 0) {
22684 /* Here is another test for sparc vfork register problems. This
22685 test uses lots of local variables, at least as many local
22686 variables as main has allocated so far including compiler
22687 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22688 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22689 reuse the register of parent for one of the local variables,
22690 since it will think that parent can't possibly be used any more
22691 in this routine. Assigning to the local variable will thus
22692 munge parent in the parent process. */
22693 pid_t
22694 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22695 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22696 /* Convince the compiler that p..p7 are live; otherwise, it might
22697 use the same hardware register for all 8 local variables. */
22698 if (p != p1 || p != p2 || p != p3 || p != p4
22699 || p != p5 || p != p6 || p != p7)
22700 _exit(1);
22701
22702 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22703 from child file descriptors. If the child closes a descriptor
22704 before it execs or exits, this munges the parent's descriptor
22705 as well. Test for this by closing stdout in the child. */
22706 _exit(close(fileno(stdout)) != 0);
22707 } else {
22708 int status;
22709 struct stat st;
22710
22711 while (wait(&status) != child)
22712 ;
22713 return (
22714 /* Was there some problem with vforking? */
22715 child < 0
22716
22717 /* Did the child fail? (This shouldn't happen.) */
22718 || status
22719
22720 /* Did the vfork/compiler bug occur? */
22721 || parent != getpid()
22722
22723 /* Did the file descriptor bug occur? */
22724 || fstat(fileno(stdout), &st) != 0
22725 );
22726 }
22727}
22728_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022729if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022730 ac_cv_func_vfork_works=yes
22731else
cristy8b350f62009-11-15 23:12:43 +000022732 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022733fi
cristy8b350f62009-11-15 23:12:43 +000022734rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22735 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022736fi
22737
cristy3ed852e2009-09-05 21:47:34 +000022738fi
cristy8b350f62009-11-15 23:12:43 +000022739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022740$as_echo "$ac_cv_func_vfork_works" >&6; }
22741
22742fi;
22743if test "x$ac_cv_func_fork_works" = xcross; then
22744 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022745 { $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 +000022746$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22747fi
22748
22749if test "x$ac_cv_func_vfork_works" = xyes; then
22750
cristy8b350f62009-11-15 23:12:43 +000022751$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022752
22753else
22754
cristy8b350f62009-11-15 23:12:43 +000022755$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022756
22757fi
22758if test "x$ac_cv_func_fork_works" = xyes; then
22759
cristy8b350f62009-11-15 23:12:43 +000022760$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022761
22762fi
22763
cristy8b350f62009-11-15 23:12:43 +000022764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022765$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022766if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022767 $as_echo_n "(cached) " >&6
22768else
cristy8b350f62009-11-15 23:12:43 +000022769 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022770 ac_cv_func_memcmp_working=no
22771else
cristy8b350f62009-11-15 23:12:43 +000022772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022773/* end confdefs.h. */
22774$ac_includes_default
22775int
22776main ()
22777{
22778
22779 /* Some versions of memcmp are not 8-bit clean. */
22780 char c0 = '\100', c1 = '\200', c2 = '\201';
22781 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22782 return 1;
22783
22784 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22785 or more and with at least one buffer not starting on a 4-byte boundary.
22786 William Lewis provided this test program. */
22787 {
22788 char foo[21];
22789 char bar[21];
22790 int i;
22791 for (i = 0; i < 4; i++)
22792 {
22793 char *a = foo + i;
22794 char *b = bar + i;
22795 strcpy (a, "--------01111111");
22796 strcpy (b, "--------10000000");
22797 if (memcmp (a, b, 16) >= 0)
22798 return 1;
22799 }
22800 return 0;
22801 }
22802
22803 ;
22804 return 0;
22805}
22806_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022807if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022808 ac_cv_func_memcmp_working=yes
22809else
cristy8b350f62009-11-15 23:12:43 +000022810 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000022811fi
cristy8b350f62009-11-15 23:12:43 +000022812rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22813 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022814fi
22815
cristy3ed852e2009-09-05 21:47:34 +000022816fi
cristy8b350f62009-11-15 23:12:43 +000022817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000022818$as_echo "$ac_cv_func_memcmp_working" >&6; }
22819test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22820 *" memcmp.$ac_objext "* ) ;;
22821 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22822 ;;
22823esac
22824
22825
cristy3ed852e2009-09-05 21:47:34 +000022826for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000022827do :
22828 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22829ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022830if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022831 cat >>confdefs.h <<_ACEOF
22832#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22833_ACEOF
22834
22835fi
22836
22837done
22838
cristy8b350f62009-11-15 23:12:43 +000022839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000022840$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022841if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022842 $as_echo_n "(cached) " >&6
22843else
22844 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22845 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22846 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000022847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022848/* end confdefs.h. */
22849$ac_includes_default
22850#ifdef HAVE_SYS_SELECT_H
22851# include <sys/select.h>
22852#endif
22853#ifdef HAVE_SYS_SOCKET_H
22854# include <sys/socket.h>
22855#endif
22856
22857int
22858main ()
22859{
22860extern int select ($ac_arg1,
22861 $ac_arg234, $ac_arg234, $ac_arg234,
22862 $ac_arg5);
22863 ;
22864 return 0;
22865}
22866_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022867if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022868 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000022869fi
cristy3ed852e2009-09-05 21:47:34 +000022870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22871 done
22872 done
22873done
22874# Provide a safe default value.
22875: ${ac_cv_func_select_args='int,int *,struct timeval *'}
22876
22877fi
cristy8b350f62009-11-15 23:12:43 +000022878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000022879$as_echo "$ac_cv_func_select_args" >&6; }
22880ac_save_IFS=$IFS; IFS=','
22881set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22882IFS=$ac_save_IFS
22883shift
22884
22885cat >>confdefs.h <<_ACEOF
22886#define SELECT_TYPE_ARG1 $1
22887_ACEOF
22888
22889
22890cat >>confdefs.h <<_ACEOF
22891#define SELECT_TYPE_ARG234 ($2)
22892_ACEOF
22893
22894
22895cat >>confdefs.h <<_ACEOF
22896#define SELECT_TYPE_ARG5 ($3)
22897_ACEOF
22898
22899rm -f conftest*
22900
cristy8b350f62009-11-15 23:12:43 +000022901if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022902 $as_echo_n "(cached) " >&6
22903else
22904 ac_cv_func_setvbuf_reversed=no
22905fi
22906
22907
cristy8b350f62009-11-15 23:12:43 +000022908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000022909$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022910if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022911 $as_echo_n "(cached) " >&6
22912else
cristy8b350f62009-11-15 23:12:43 +000022913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022914/* end confdefs.h. */
22915#include <sys/types.h>
22916#include <signal.h>
22917
22918int
22919main ()
22920{
22921return *(signal (0, 0)) (0) == 1;
22922 ;
22923 return 0;
22924}
22925_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022926if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022927 ac_cv_type_signal=int
22928else
cristy8b350f62009-11-15 23:12:43 +000022929 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000022930fi
cristy3ed852e2009-09-05 21:47:34 +000022931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22932fi
cristy8b350f62009-11-15 23:12:43 +000022933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000022934$as_echo "$ac_cv_type_signal" >&6; }
22935
22936cat >>confdefs.h <<_ACEOF
22937#define RETSIGTYPE $ac_cv_type_signal
22938_ACEOF
22939
22940
cristy8b350f62009-11-15 23:12:43 +000022941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022942$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022943if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022944 $as_echo_n "(cached) " >&6
22945else
cristy8b350f62009-11-15 23:12:43 +000022946 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022947 ac_cv_func_strtod=no
22948else
cristy8b350f62009-11-15 23:12:43 +000022949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022950/* end confdefs.h. */
22951
22952$ac_includes_default
22953#ifndef strtod
22954double strtod ();
22955#endif
22956int
22957main()
22958{
22959 {
22960 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
22961 char *string = " +69";
22962 char *term;
22963 double value;
22964 value = strtod (string, &term);
22965 if (value != 69 || term != (string + 4))
22966 return 1;
22967 }
22968
22969 {
22970 /* Under Solaris 2.4, strtod returns the wrong value for the
22971 terminating character under some conditions. */
22972 char *string = "NaN";
22973 char *term;
22974 strtod (string, &term);
22975 if (term != string && *(term - 1) == 0)
22976 return 1;
22977 }
22978 return 0;
22979}
22980
22981_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022982if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022983 ac_cv_func_strtod=yes
22984else
cristy8b350f62009-11-15 23:12:43 +000022985 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000022986fi
cristy8b350f62009-11-15 23:12:43 +000022987rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22988 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022989fi
22990
cristy3ed852e2009-09-05 21:47:34 +000022991fi
cristy8b350f62009-11-15 23:12:43 +000022992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022993$as_echo "$ac_cv_func_strtod" >&6; }
22994if test $ac_cv_func_strtod = no; then
22995 case " $LIBOBJS " in
22996 *" strtod.$ac_objext "* ) ;;
22997 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
22998 ;;
22999esac
23000
cristy8b350f62009-11-15 23:12:43 +000023001ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
23002if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023003
cristy3ed852e2009-09-05 21:47:34 +000023004fi
23005
cristy3ed852e2009-09-05 21:47:34 +000023006if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023008$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023009if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023010 $as_echo_n "(cached) " >&6
23011else
23012 ac_check_lib_save_LIBS=$LIBS
23013LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023015/* end confdefs.h. */
23016
23017/* Override any GCC internal prototype to avoid an error.
23018 Use char because int might match the return type of a GCC
23019 builtin and then its argument prototype would still apply. */
23020#ifdef __cplusplus
23021extern "C"
23022#endif
23023char pow ();
23024int
23025main ()
23026{
23027return pow ();
23028 ;
23029 return 0;
23030}
23031_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023032if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023033 ac_cv_lib_m_pow=yes
23034else
cristy8b350f62009-11-15 23:12:43 +000023035 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023036fi
cristy8b350f62009-11-15 23:12:43 +000023037rm -f core conftest.err conftest.$ac_objext \
23038 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023039LIBS=$ac_check_lib_save_LIBS
23040fi
cristy8b350f62009-11-15 23:12:43 +000023041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023042$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023043if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023044 POW_LIB=-lm
23045else
cristy8b350f62009-11-15 23:12:43 +000023046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023047$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23048fi
23049
23050fi
23051
23052fi
23053
cristy3ed852e2009-09-05 21:47:34 +000023054for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023055do :
23056 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23057if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023058 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023059#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023060_ACEOF
23061
cristy8b350f62009-11-15 23:12:43 +000023062ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23063if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023064
cristy8b350f62009-11-15 23:12:43 +000023065$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023066
23067fi
23068
23069fi
23070done
23071
23072
23073
cristy161b9262010-03-20 19:34:32 +000023074#
23075# Find math library
23076#
23077MATH_LIBS=''
23078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23079$as_echo_n "checking for sqrt in -lm... " >&6; }
23080if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23081 $as_echo_n "(cached) " >&6
23082else
23083 ac_check_lib_save_LIBS=$LIBS
23084LIBS="-lm $LIBS"
23085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23086/* end confdefs.h. */
23087
23088/* Override any GCC internal prototype to avoid an error.
23089 Use char because int might match the return type of a GCC
23090 builtin and then its argument prototype would still apply. */
23091#ifdef __cplusplus
23092extern "C"
23093#endif
23094char sqrt ();
23095int
23096main ()
23097{
23098return sqrt ();
23099 ;
23100 return 0;
23101}
23102_ACEOF
23103if ac_fn_c_try_link "$LINENO"; then :
23104 ac_cv_lib_m_sqrt=yes
23105else
23106 ac_cv_lib_m_sqrt=no
23107fi
23108rm -f core conftest.err conftest.$ac_objext \
23109 conftest$ac_exeext conftest.$ac_ext
23110LIBS=$ac_check_lib_save_LIBS
23111fi
23112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23113$as_echo "$ac_cv_lib_m_sqrt" >&6; }
23114if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23115 MATH_LIBS="-lm"
23116fi
23117
23118LIBS="$MATH_LIBS $LIBS"
23119
23120
cristyf1897e32010-08-29 19:59:09 +000023121for ac_func in atoll atexit cimag 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 _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 strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000023122do :
23123 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23124ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000023125if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023126 cat >>confdefs.h <<_ACEOF
23127#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23128_ACEOF
23129
23130fi
23131done
23132
23133
cristye43a45e2009-09-28 14:49:00 +000023134#
23135# Check for clock_gettime().
23136#
cristy8b350f62009-11-15 23:12:43 +000023137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023138$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023139if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023140 $as_echo_n "(cached) " >&6
23141else
23142 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023144/* end confdefs.h. */
23145
23146/* Override any GCC internal prototype to avoid an error.
23147 Use char because int might match the return type of a GCC
23148 builtin and then its argument prototype would still apply. */
23149#ifdef __cplusplus
23150extern "C"
23151#endif
23152char clock_gettime ();
23153int
23154main ()
23155{
23156return clock_gettime ();
23157 ;
23158 return 0;
23159}
23160_ACEOF
23161for ac_lib in '' rt; do
23162 if test -z "$ac_lib"; then
23163 ac_res="none required"
23164 else
23165 ac_res=-l$ac_lib
23166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23167 fi
cristy8b350f62009-11-15 23:12:43 +000023168 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023169 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000023170fi
cristy8b350f62009-11-15 23:12:43 +000023171rm -f core conftest.err conftest.$ac_objext \
23172 conftest$ac_exeext
23173 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023174 break
23175fi
23176done
cristy8b350f62009-11-15 23:12:43 +000023177if test "${ac_cv_search_clock_gettime+set}" = set; then :
23178
cristye43a45e2009-09-28 14:49:00 +000023179else
23180 ac_cv_search_clock_gettime=no
23181fi
23182rm conftest.$ac_ext
23183LIBS=$ac_func_search_save_LIBS
23184fi
cristy8b350f62009-11-15 23:12:43 +000023185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023186$as_echo "$ac_cv_search_clock_gettime" >&6; }
23187ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000023188if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000023189 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23190
23191
cristy8b350f62009-11-15 23:12:43 +000023192$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023193
cristy8b350f62009-11-15 23:12:43 +000023194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000023195$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023197/* end confdefs.h. */
23198#include <time.h>
23199int
23200main ()
23201{
23202clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000023203 ;
23204 return 0;
23205}
23206_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023207if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023208
cristy8b350f62009-11-15 23:12:43 +000023209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000023210$as_echo "yes" >&6; }
23211
cristy8b350f62009-11-15 23:12:43 +000023212$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023213
23214
23215else
cristy8b350f62009-11-15 23:12:43 +000023216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000023217$as_echo "no" >&6; }
23218
23219fi
cristye43a45e2009-09-28 14:49:00 +000023220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23221
23222else
23223
cristy8b350f62009-11-15 23:12:43 +000023224 for ac_func in gettimeofday ftime
23225do :
23226 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23227ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000023228if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000023229 cat >>confdefs.h <<_ACEOF
23230#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23231_ACEOF
23232 break
23233fi
23234done
23235
23236
23237
23238fi
23239
23240
cristy3ed852e2009-09-05 21:47:34 +000023241########
23242#
23243# Check for function prototypes
23244#
23245########
23246
cristy8b350f62009-11-15 23:12:43 +000023247ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000023248#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023249"
23250if test "x$ac_cv_have_decl_pread" = x""yes; then :
23251 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023252else
cristy8b350f62009-11-15 23:12:43 +000023253 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023254fi
23255
cristy3ed852e2009-09-05 21:47:34 +000023256cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023257#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023258_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023259ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000023260#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023261"
23262if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23263 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023264else
cristy8b350f62009-11-15 23:12:43 +000023265 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023266fi
23267
cristy3ed852e2009-09-05 21:47:34 +000023268cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023269#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023270_ACEOF
23271
23272
cristy8b350f62009-11-15 23:12:43 +000023273ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000023274#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000023275"
23276if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23277 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023278else
cristy8b350f62009-11-15 23:12:43 +000023279 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023280fi
23281
cristy3ed852e2009-09-05 21:47:34 +000023282cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023283#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023284_ACEOF
23285
23286
cristy8b350f62009-11-15 23:12:43 +000023287ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000023288#include <stdio.h>
23289#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000023290"
23291if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23292 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023293else
cristy8b350f62009-11-15 23:12:43 +000023294 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023295fi
23296
cristy3ed852e2009-09-05 21:47:34 +000023297cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023298#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023299_ACEOF
23300
23301
cristy3ed852e2009-09-05 21:47:34 +000023302########
23303#
23304# C++ Support Tests (For Magick++)
23305#
23306########
23307have_magick_plus_plus='no'
23308if test "$with_magick_plus_plus" = 'yes'; then
23309 OLIBS="$LIBS"
23310 LIBS=''
23311 ac_ext=cpp
23312ac_cpp='$CXXCPP $CPPFLAGS'
23313ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23314ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23315ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23316
23317
23318 # Full set of headers used...
23319 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23320 # functional iomanip iosfwd iostream iterator list string strstream utility
23321 ac_ext=cpp
23322ac_cpp='$CXXCPP $CPPFLAGS'
23323ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23324ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23325ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23326
23327 ac_ext=cpp
23328ac_cpp='$CXXCPP $CPPFLAGS'
23329ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23330ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23331ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23332if test -z "$CXX"; then
23333 if test -n "$CCC"; then
23334 CXX=$CCC
23335 else
23336 if test -n "$ac_tool_prefix"; then
23337 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23338 do
23339 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23340set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023342$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023343if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023344 $as_echo_n "(cached) " >&6
23345else
23346 if test -n "$CXX"; then
23347 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23348else
23349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23350for as_dir in $PATH
23351do
23352 IFS=$as_save_IFS
23353 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023354 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23356 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023358 break 2
23359 fi
23360done
cristy8b350f62009-11-15 23:12:43 +000023361 done
cristy3ed852e2009-09-05 21:47:34 +000023362IFS=$as_save_IFS
23363
23364fi
23365fi
23366CXX=$ac_cv_prog_CXX
23367if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023369$as_echo "$CXX" >&6; }
23370else
cristy8b350f62009-11-15 23:12:43 +000023371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023372$as_echo "no" >&6; }
23373fi
23374
23375
23376 test -n "$CXX" && break
23377 done
23378fi
23379if test -z "$CXX"; then
23380 ac_ct_CXX=$CXX
23381 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23382do
23383 # Extract the first word of "$ac_prog", so it can be a program name with args.
23384set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023386$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023387if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023388 $as_echo_n "(cached) " >&6
23389else
23390 if test -n "$ac_ct_CXX"; then
23391 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23392else
23393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23394for as_dir in $PATH
23395do
23396 IFS=$as_save_IFS
23397 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023398 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23400 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023402 break 2
23403 fi
23404done
cristy8b350f62009-11-15 23:12:43 +000023405 done
cristy3ed852e2009-09-05 21:47:34 +000023406IFS=$as_save_IFS
23407
23408fi
23409fi
23410ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23411if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023413$as_echo "$ac_ct_CXX" >&6; }
23414else
cristy8b350f62009-11-15 23:12:43 +000023415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023416$as_echo "no" >&6; }
23417fi
23418
23419
23420 test -n "$ac_ct_CXX" && break
23421done
23422
23423 if test "x$ac_ct_CXX" = x; then
23424 CXX="g++"
23425 else
23426 case $cross_compiling:$ac_tool_warned in
23427yes:)
cristy8b350f62009-11-15 23:12:43 +000023428{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23430ac_tool_warned=yes ;;
23431esac
23432 CXX=$ac_ct_CXX
23433 fi
23434fi
23435
23436 fi
23437fi
23438# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000023439$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000023440set X $ac_compile
23441ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000023442for ac_option in --version -v -V -qversion; do
23443 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000023444case "(($ac_try" in
23445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23446 *) ac_try_echo=$ac_try;;
23447esac
cristy8b350f62009-11-15 23:12:43 +000023448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23449$as_echo "$ac_try_echo"; } >&5
23450 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000023451 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000023452 if test -s conftest.err; then
23453 sed '10a\
23454... rest of stderr output deleted ...
23455 10q' conftest.err >conftest.er1
23456 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000023457 fi
cristycd4c5312009-11-22 01:19:08 +000023458 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000023459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23460 test $ac_status = 0; }
23461done
cristy3ed852e2009-09-05 21:47:34 +000023462
cristy8b350f62009-11-15 23:12:43 +000023463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000023464$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023465if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023466 $as_echo_n "(cached) " >&6
23467else
cristy8b350f62009-11-15 23:12:43 +000023468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023469/* end confdefs.h. */
23470
23471int
23472main ()
23473{
23474#ifndef __GNUC__
23475 choke me
23476#endif
23477
23478 ;
23479 return 0;
23480}
23481_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023482if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023483 ac_compiler_gnu=yes
23484else
cristy8b350f62009-11-15 23:12:43 +000023485 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000023486fi
cristy3ed852e2009-09-05 21:47:34 +000023487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23488ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23489
23490fi
cristy8b350f62009-11-15 23:12:43 +000023491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000023492$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23493if test $ac_compiler_gnu = yes; then
23494 GXX=yes
23495else
23496 GXX=
23497fi
23498ac_test_CXXFLAGS=${CXXFLAGS+set}
23499ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000023500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023501$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023502if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023503 $as_echo_n "(cached) " >&6
23504else
23505 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23506 ac_cxx_werror_flag=yes
23507 ac_cv_prog_cxx_g=no
23508 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023510/* end confdefs.h. */
23511
23512int
23513main ()
23514{
23515
23516 ;
23517 return 0;
23518}
23519_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023520if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023521 ac_cv_prog_cxx_g=yes
23522else
cristy8b350f62009-11-15 23:12:43 +000023523 CXXFLAGS=""
23524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023525/* end confdefs.h. */
23526
23527int
23528main ()
23529{
23530
23531 ;
23532 return 0;
23533}
23534_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023535if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023536
cristy8b350f62009-11-15 23:12:43 +000023537else
23538 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000023539 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023541/* end confdefs.h. */
23542
23543int
23544main ()
23545{
23546
23547 ;
23548 return 0;
23549}
23550_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023551if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023552 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000023553fi
cristy3ed852e2009-09-05 21:47:34 +000023554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23555fi
cristy3ed852e2009-09-05 21:47:34 +000023556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23557fi
cristy3ed852e2009-09-05 21:47:34 +000023558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23559 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23560fi
cristy8b350f62009-11-15 23:12:43 +000023561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023562$as_echo "$ac_cv_prog_cxx_g" >&6; }
23563if test "$ac_test_CXXFLAGS" = set; then
23564 CXXFLAGS=$ac_save_CXXFLAGS
23565elif test $ac_cv_prog_cxx_g = yes; then
23566 if test "$GXX" = yes; then
23567 CXXFLAGS="-g -O2"
23568 else
23569 CXXFLAGS="-g"
23570 fi
23571else
23572 if test "$GXX" = yes; then
23573 CXXFLAGS="-O2"
23574 else
23575 CXXFLAGS=
23576 fi
23577fi
23578ac_ext=cpp
23579ac_cpp='$CXXCPP $CPPFLAGS'
23580ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23581ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23582ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23583
cristy73bd4a52010-10-05 11:24:23 +000023584depcc="$CXX" am_compiler_list=
23585
23586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23587$as_echo_n "checking dependency style of $depcc... " >&6; }
23588if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
23589 $as_echo_n "(cached) " >&6
23590else
23591 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23592 # We make a subdir and do the tests there. Otherwise we can end up
23593 # making bogus files that we don't know about and never remove. For
23594 # instance it was reported that on HP-UX the gcc test will end up
23595 # making a dummy file named `D' -- because `-MD' means `put the output
23596 # in D'.
23597 mkdir conftest.dir
23598 # Copy depcomp to subdir because otherwise we won't find it if we're
23599 # using a relative directory.
23600 cp "$am_depcomp" conftest.dir
23601 cd conftest.dir
23602 # We will build objects and dependencies in a subdirectory because
23603 # it helps to detect inapplicable dependency modes. For instance
23604 # both Tru64's cc and ICC support -MD to output dependencies as a
23605 # side effect of compilation, but ICC will put the dependencies in
23606 # the current directory while Tru64 will put them in the object
23607 # directory.
23608 mkdir sub
23609
23610 am_cv_CXX_dependencies_compiler_type=none
23611 if test "$am_compiler_list" = ""; then
23612 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23613 fi
23614 am__universal=false
23615 case " $depcc " in #(
23616 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23617 esac
23618
23619 for depmode in $am_compiler_list; do
23620 # Setup a source with many dependencies, because some compilers
23621 # like to wrap large dependency lists on column 80 (with \), and
23622 # we should not choose a depcomp mode which is confused by this.
23623 #
23624 # We need to recreate these files for each test, as the compiler may
23625 # overwrite some of them when testing with obscure command lines.
23626 # This happens at least with the AIX C compiler.
23627 : > sub/conftest.c
23628 for i in 1 2 3 4 5 6; do
23629 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23630 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23631 # Solaris 8's {/usr,}/bin/sh.
23632 touch sub/conftst$i.h
23633 done
23634 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23635
23636 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23637 # mode. It turns out that the SunPro C++ compiler does not properly
23638 # handle `-M -o', and we need to detect this. Also, some Intel
23639 # versions had trouble with output in subdirs
23640 am__obj=sub/conftest.${OBJEXT-o}
23641 am__minus_obj="-o $am__obj"
23642 case $depmode in
23643 gcc)
23644 # This depmode causes a compiler race in universal mode.
23645 test "$am__universal" = false || continue
23646 ;;
23647 nosideeffect)
23648 # after this tag, mechanisms are not by side-effect, so they'll
23649 # only be used when explicitly requested
23650 if test "x$enable_dependency_tracking" = xyes; then
23651 continue
23652 else
23653 break
23654 fi
23655 ;;
23656 msvisualcpp | msvcmsys)
23657 # This compiler won't grok `-c -o', but also, the minuso test has
23658 # not run yet. These depmodes are late enough in the game, and
23659 # so weak that their functioning should not be impacted.
23660 am__obj=conftest.${OBJEXT-o}
23661 am__minus_obj=
23662 ;;
23663 none) break ;;
23664 esac
23665 if depmode=$depmode \
23666 source=sub/conftest.c object=$am__obj \
23667 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23668 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23669 >/dev/null 2>conftest.err &&
23670 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23671 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23672 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23673 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23674 # icc doesn't choke on unknown options, it will just issue warnings
23675 # or remarks (even with -Werror). So we grep stderr for any message
23676 # that says an option was ignored or not supported.
23677 # When given -MP, icc 7.0 and 7.1 complain thusly:
23678 # icc: Command line warning: ignoring option '-M'; no argument required
23679 # The diagnosis changed in icc 8.0:
23680 # icc: Command line remark: option '-MP' not supported
23681 if (grep 'ignoring option' conftest.err ||
23682 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23683 am_cv_CXX_dependencies_compiler_type=$depmode
23684 break
23685 fi
23686 fi
23687 done
23688
23689 cd ..
23690 rm -rf conftest.dir
23691else
23692 am_cv_CXX_dependencies_compiler_type=none
23693fi
23694
23695fi
23696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
23697$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23698CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23699
23700 if
23701 test "x$enable_dependency_tracking" != xno \
23702 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23703 am__fastdepCXX_TRUE=
23704 am__fastdepCXX_FALSE='#'
23705else
23706 am__fastdepCXX_TRUE='#'
23707 am__fastdepCXX_FALSE=
23708fi
23709
23710
23711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
23712$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
23713if test "${ax_cv_cxx_bool+set}" = set; then :
23714 $as_echo_n "(cached) " >&6
23715else
23716
23717 ac_ext=cpp
23718ac_cpp='$CXXCPP $CPPFLAGS'
23719ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23720ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23721ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23722
23723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23724/* end confdefs.h. */
23725
23726int f(int x){return 1;}
23727int f(char x){return 1;}
23728int f(bool x){return 1;}
23729
23730int
23731main ()
23732{
23733bool b = true; return f(b);
23734 ;
23735 return 0;
23736}
23737_ACEOF
23738if ac_fn_cxx_try_compile "$LINENO"; then :
23739 ax_cv_cxx_bool=yes
23740else
23741 ax_cv_cxx_bool=no
23742fi
23743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23744 ac_ext=cpp
23745ac_cpp='$CXXCPP $CPPFLAGS'
23746ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23747ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23748ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23749
23750
23751fi
23752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23753$as_echo "$ax_cv_cxx_bool" >&6; }
23754if test "$ax_cv_cxx_bool" = yes; then
23755
23756$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
23757
23758fi
23759
23760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
23761$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
23762if test "${ax_cv_cxx_namespaces+set}" = set; then :
23763 $as_echo_n "(cached) " >&6
23764else
23765
23766 ac_ext=cpp
23767ac_cpp='$CXXCPP $CPPFLAGS'
23768ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23769ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23770ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23771
23772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23773/* end confdefs.h. */
23774namespace Outer { namespace Inner { int i = 0; }}
23775int
23776main ()
23777{
23778using namespace Outer::Inner; return i;
23779 ;
23780 return 0;
23781}
23782_ACEOF
23783if ac_fn_cxx_try_compile "$LINENO"; then :
23784 ax_cv_cxx_namespaces=yes
23785else
23786 ax_cv_cxx_namespaces=no
23787fi
23788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23789 ac_ext=cpp
23790ac_cpp='$CXXCPP $CPPFLAGS'
23791ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23792ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23793ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23794
23795
23796fi
23797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23798$as_echo "$ax_cv_cxx_namespaces" >&6; }
23799if test "$ax_cv_cxx_namespaces" = yes; then
23800
23801$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
23802
23803fi
23804
23805
23806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
23807$as_echo_n "checking if g++ supports namespace std... " >&6; }
23808if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
23809 $as_echo_n "(cached) " >&6
23810else
23811
23812 ac_ext=cpp
23813ac_cpp='$CXXCPP $CPPFLAGS'
23814ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23815ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23816ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23817
23818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23819/* end confdefs.h. */
23820#include <iostream>
23821 std::istream& is = std::cin;
23822int
23823main ()
23824{
23825
23826 ;
23827 return 0;
23828}
23829_ACEOF
23830if ac_fn_cxx_try_compile "$LINENO"; then :
23831 ax_cv_cxx_have_std_namespace=yes
23832else
23833 ax_cv_cxx_have_std_namespace=no
23834fi
23835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23836 ac_ext=cpp
23837ac_cpp='$CXXCPP $CPPFLAGS'
23838ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23839ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23840ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23841
23842
23843fi
23844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
23845$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
23846 if test "$ax_cv_cxx_have_std_namespace" = yes; then
23847
23848$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
23849
23850 fi
23851
23852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
23853$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
23854if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
23855 $as_echo_n "(cached) " >&6
23856else
23857
23858
23859 ac_ext=cpp
23860ac_cpp='$CXXCPP $CPPFLAGS'
23861ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23862ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23863ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23864
23865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23866/* end confdefs.h. */
23867#include <iostream>
23868#include <map>
23869#include <iomanip>
23870#include <cmath>
23871#ifdef HAVE_NAMESPACES
23872using namespace std;
23873#endif
23874int
23875main ()
23876{
23877return 0;
23878 ;
23879 return 0;
23880}
23881_ACEOF
23882if ac_fn_cxx_try_compile "$LINENO"; then :
23883 ac_cv_cxx_have_std_libs=yes
23884else
23885 ac_cv_cxx_have_std_libs=no
23886fi
23887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23888 ac_ext=cpp
23889ac_cpp='$CXXCPP $CPPFLAGS'
23890ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23891ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23892ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23893
23894
23895fi
23896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
23897$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
23898if test "$ac_cv_cxx_have_std_libs" = yes; then
23899
23900$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
23901
23902fi
23903
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
23905$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
23906if test "${ac_cv_cxx_have_lstring+set}" = set; then :
23907 $as_echo_n "(cached) " >&6
23908else
23909
23910 ac_ext=cpp
23911ac_cpp='$CXXCPP $CPPFLAGS'
23912ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23913ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23914ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23915
23916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23917/* end confdefs.h. */
23918const wchar_t* s=L"wide string";
23919_ACEOF
23920if ac_fn_cxx_try_compile "$LINENO"; then :
23921 ac_cv_cxx_have_lstring=yes
23922else
23923 ac_cv_cxx_have_lstring=no
23924fi
23925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23926 ac_ext=cpp
23927ac_cpp='$CXXCPP $CPPFLAGS'
23928ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23929ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23930ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23931
23932
23933fi
23934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
23935$as_echo "$ac_cv_cxx_have_lstring" >&6; }
23936if test "$ac_cv_cxx_have_lstring" = yes; then
23937
23938$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
23939
23940fi
cristy3ed852e2009-09-05 21:47:34 +000023941
23942
23943 OPENMP_CXXFLAGS=
23944 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000023945if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023946 enableval=$enable_openmp;
23947fi
23948
23949 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000023950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
23951$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023952if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023953 $as_echo_n "(cached) " >&6
23954else
cristy8b350f62009-11-15 23:12:43 +000023955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23956/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023957
23958#ifndef _OPENMP
23959 choke me
23960#endif
23961#include <omp.h>
23962int main () { return omp_get_num_threads (); }
23963
23964_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023965if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023966 ac_cv_prog_cxx_openmp='none needed'
23967else
cristy8b350f62009-11-15 23:12:43 +000023968 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000023969 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
23970 ac_save_CXXFLAGS=$CXXFLAGS
23971 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000023972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23973/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023974
23975#ifndef _OPENMP
23976 choke me
23977#endif
23978#include <omp.h>
23979int main () { return omp_get_num_threads (); }
23980
23981_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023982if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023983 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000023984fi
cristy8b350f62009-11-15 23:12:43 +000023985rm -f core conftest.err conftest.$ac_objext \
23986 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023987 CXXFLAGS=$ac_save_CXXFLAGS
23988 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
23989 break
23990 fi
23991 done
23992fi
cristy8b350f62009-11-15 23:12:43 +000023993rm -f core conftest.err conftest.$ac_objext \
23994 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023995fi
cristy8b350f62009-11-15 23:12:43 +000023996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023997$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
23998 case $ac_cv_prog_cxx_openmp in #(
23999 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000024000 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000024001 *)
cristy8b350f62009-11-15 23:12:43 +000024002 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000024003 esac
24004 fi
24005
24006
24007 ac_ext=c
24008ac_cpp='$CPP $CPPFLAGS'
24009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24011ac_compiler_gnu=$ac_cv_c_compiler_gnu
24012
24013
cristy8b350f62009-11-15 23:12:43 +000024014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024015$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24016 if \
cristy964cb7f2010-04-25 23:18:00 +000024017 test $ax_cv_cxx_bool = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024018 test $ac_cv_cxx_have_lstring = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024019 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024020 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024021 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024022 have_magick_plus_plus='yes'
24023 else
24024 have_magick_plus_plus='no (failed tests)'
24025 fi
cristy8b350f62009-11-15 23:12:43 +000024026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024027$as_echo "$have_magick_plus_plus" >&6; }
24028 LIBS="$OLIBS"
24029fi
cristy73bd4a52010-10-05 11:24:23 +000024030 if test "$have_magick_plus_plus" = 'yes'; then
24031 WITH_MAGICK_PLUS_PLUS_TRUE=
24032 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24033else
24034 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24035 WITH_MAGICK_PLUS_PLUS_FALSE=
24036fi
24037
cristy3ed852e2009-09-05 21:47:34 +000024038
24039# Only check for delegate libraries in subdirectories if requested.
24040if test "$enable_delegate_build" != 'no'; then
24041 # Check for delegate sub-directories and add -I & -L options as required.
24042 # This presumes that delegates are installed as detailed in the ImageMagick
24043 # README. If delegates are installed in a standard location where the
24044 # compiler will automatically find them then these options should not be
24045 # required.
24046
24047 #
24048 # Most delegates have includes in the same directory as the library, but not all...
24049 #
24050 # Includes
cristy5850e4b2010-01-08 14:28:24 +000024051 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000024052 if test -d "$builddir/$dir"; then
24053 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24054 else
24055 if test -d "$srcdirfull/$dir"; then
24056 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24057 fi
24058 fi
24059 done
24060
24061 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000024062 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000024063 if test -d "$builddir/$dir/.libs"; then
24064 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24065 else
24066 if test -d "$srcdirfull/$dir/.libs"; then
24067 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24068 fi
24069 fi
24070 if test -d "$builddir/$dir"; then
24071 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24072 else
24073 if test -d "$srcdirfull/$dir"; then
24074 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24075 fi
24076 fi
24077 done
24078fi
24079
24080# Assume that delegate headers reside under same directory as ImageMagick
24081# installation prefix.
24082MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24083
24084#
24085# Find the X11 RGB database
24086#
cristy8b350f62009-11-15 23:12:43 +000024087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024088$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024089if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024090 $as_echo_n "(cached) " >&6
24091else
24092 # Look for the header file in a standard set of common directories.
24093# Check X11 before X11Rn because it is often a symlink to the current release.
24094 for ac_dir in \
24095 /lib/usr/lib/X11 \
24096 /usr/X11/lib \
24097 /usr/X11R4/lib \
24098 /usr/X11R5/lib \
24099 /usr/X11R6/lib \
24100 /usr/X11R7/lib \
24101 /usr/X386/lib \
24102 /usr/XFree86/lib/X11 \
24103 /usr/athena/lib \
24104 /usr/lib \
24105 /usr/lib/X11 \
24106 /usr/lib/X11R4 \
24107 /usr/lib/X11R5 \
24108 /usr/lib/X11R6 \
24109 /usr/lib/X11R7 \
24110 /usr/local/X11/lib \
24111 /usr/local/X11R4/lib \
24112 /usr/local/X11R5/lib \
24113 /usr/local/X11R6/lib \
24114 /usr/local/lib \
24115 /usr/local/lib/X11 \
24116 /usr/local/lib/X11R4 \
24117 /usr/local/lib/X11R5 \
24118 /usr/local/lib/X11R6 \
24119 /usr/local/lib/X11R7 \
24120 /usr/local/x11r5/lib \
24121 /usr/lpp/Xamples/lib \
24122 /usr/openwin/lib \
24123 /usr/openwin/share/lib \
24124 /usr/unsupported/lib \
24125 /usr/x386/lib \
24126 ; do
24127 if test -f "$ac_dir/X11/rgb.txt"; then
24128 im_cv_x_configure="$ac_dir/X11/"
24129 break
24130 elif test -f "$ac_dir/rgb.txt"; then
24131 im_cv_x_configure="$ac_dir/"
24132 break
24133 fi
24134
24135 done
24136fi
cristy8b350f62009-11-15 23:12:43 +000024137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024138$as_echo "$im_cv_x_configure" >&6; }
24139X11_CONFIGURE_PATH="$im_cv_x_configure"
24140case "${build_os}" in
24141 mingw* )
24142 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24143 ;;
24144esac
24145
24146cat >>confdefs.h <<_ACEOF
24147#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24148_ACEOF
24149
24150
24151#
24152# Find OpenMP library
24153#
24154GOMP_LIBS=''
24155if test "$enable_openmp" != 'no'; then
24156 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024158$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024159if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024160 $as_echo_n "(cached) " >&6
24161else
24162 ac_check_lib_save_LIBS=$LIBS
24163LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024165/* end confdefs.h. */
24166
24167/* Override any GCC internal prototype to avoid an error.
24168 Use char because int might match the return type of a GCC
24169 builtin and then its argument prototype would still apply. */
24170#ifdef __cplusplus
24171extern "C"
24172#endif
24173char GOMP_parallel_start ();
24174int
24175main ()
24176{
24177return GOMP_parallel_start ();
24178 ;
24179 return 0;
24180}
24181_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024182if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024183 ac_cv_lib_gomp_GOMP_parallel_start=yes
24184else
cristy8b350f62009-11-15 23:12:43 +000024185 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024186fi
cristy8b350f62009-11-15 23:12:43 +000024187rm -f core conftest.err conftest.$ac_objext \
24188 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024189LIBS=$ac_check_lib_save_LIBS
24190fi
cristy8b350f62009-11-15 23:12:43 +000024191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024192$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024193if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024194 GOMP_LIBS="-lgomp"
24195fi
24196 # gcc
24197 else
cristy8b350f62009-11-15 23:12:43 +000024198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000024199$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024200if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024201 $as_echo_n "(cached) " >&6
24202else
24203 ac_check_lib_save_LIBS=$LIBS
24204LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024206/* end confdefs.h. */
24207
24208/* Override any GCC internal prototype to avoid an error.
24209 Use char because int might match the return type of a GCC
24210 builtin and then its argument prototype would still apply. */
24211#ifdef __cplusplus
24212extern "C"
24213#endif
24214char sunw_mp_register_warn ();
24215int
24216main ()
24217{
24218return sunw_mp_register_warn ();
24219 ;
24220 return 0;
24221}
24222_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024223if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024224 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24225else
cristy8b350f62009-11-15 23:12:43 +000024226 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000024227fi
cristy8b350f62009-11-15 23:12:43 +000024228rm -f core conftest.err conftest.$ac_objext \
24229 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024230LIBS=$ac_check_lib_save_LIBS
24231fi
cristy8b350f62009-11-15 23:12:43 +000024232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000024233$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024234if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024235 GOMP_LIBS="-lmtsk"
24236fi
24237 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000024238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024239$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024240if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024241 $as_echo_n "(cached) " >&6
24242else
24243 ac_check_lib_save_LIBS=$LIBS
24244LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024246/* end confdefs.h. */
24247
24248/* Override any GCC internal prototype to avoid an error.
24249 Use char because int might match the return type of a GCC
24250 builtin and then its argument prototype would still apply. */
24251#ifdef __cplusplus
24252extern "C"
24253#endif
24254char _xlsmpFlush ();
24255int
24256main ()
24257{
24258return _xlsmpFlush ();
24259 ;
24260 return 0;
24261}
24262_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024263if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024264 ac_cv_lib_xlsmp__xlsmpFlush=yes
24265else
cristy8b350f62009-11-15 23:12:43 +000024266 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000024267fi
cristy8b350f62009-11-15 23:12:43 +000024268rm -f core conftest.err conftest.$ac_objext \
24269 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024270LIBS=$ac_check_lib_save_LIBS
24271fi
cristy8b350f62009-11-15 23:12:43 +000024272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000024273$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024274if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024275 GOMP_LIBS="-lxlsmp"
24276fi
24277 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000024278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024279$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024280if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024281 $as_echo_n "(cached) " >&6
24282else
24283 ac_check_lib_save_LIBS=$LIBS
24284LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024286/* end confdefs.h. */
24287
24288/* Override any GCC internal prototype to avoid an error.
24289 Use char because int might match the return type of a GCC
24290 builtin and then its argument prototype would still apply. */
24291#ifdef __cplusplus
24292extern "C"
24293#endif
24294char mp_destroy ();
24295int
24296main ()
24297{
24298return mp_destroy ();
24299 ;
24300 return 0;
24301}
24302_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024303if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024304 ac_cv_lib_mp_mp_destroy=yes
24305else
cristy8b350f62009-11-15 23:12:43 +000024306 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000024307fi
cristy8b350f62009-11-15 23:12:43 +000024308rm -f core conftest.err conftest.$ac_objext \
24309 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024310LIBS=$ac_check_lib_save_LIBS
24311fi
cristy8b350f62009-11-15 23:12:43 +000024312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000024313$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024314if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024315 GOMP_LIBS="-lmp"
24316fi
24317 # SGI IRIX 6.5 MIPSpro C/C++
24318 fi
24319 LIBS="$GOMP_LIBS $LIBS"
24320fi
24321
24322
24323#
24324# Find Posix threads library
24325#
24326THREAD_LIBS=''
24327if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24328
24329 if test "x$PTHREAD_LIBS" = "x"; then
24330 case "${host_cpu}-${host_os}" in
24331 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000024332
24333
24334
24335ac_ext=c
24336ac_cpp='$CPP $CPPFLAGS'
24337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24339ac_compiler_gnu=$ac_cv_c_compiler_gnu
24340
24341magick_pthread_lib_ok=no
24342
24343LIB=-lc_r
24344save_LIBS="$LIBS"
24345LIBS="$LIBS $LIB"
24346
24347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24348$as_echo_n "checking for the pthreads library $LIB... " >&6; }
24349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24350/* end confdefs.h. */
24351#include <pthread.h>
24352int
24353main ()
24354{
24355 pthread_t th;
24356 pthread_join(th, 0);
24357 pthread_attr_init(0);
24358 pthread_cleanup_push(0, 0);
24359 pthread_create(0,0,0,0);
24360 pthread_cleanup_pop(0);
24361 ;
24362 return 0;
24363}
24364_ACEOF
24365if ac_fn_c_try_link "$LINENO"; then :
24366 magick_pthread_lib_ok=yes
24367fi
24368rm -f core conftest.err conftest.$ac_objext \
24369 conftest$ac_exeext conftest.$ac_ext
24370
24371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24372$as_echo "${magick_pthread_lib_ok}" >&6; }
24373if test "$magick_pthread_lib_ok" = yes
24374then
24375 PTHREAD_LIBS=-lc_r
24376 :
24377else
24378
24379 :
24380fi
24381
24382LIBS="$save_LIBS"
24383
24384ac_ext=c
24385ac_cpp='$CPP $CPPFLAGS'
24386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24388ac_compiler_gnu=$ac_cv_c_compiler_gnu
24389
24390 ;;
cristy3ed852e2009-09-05 21:47:34 +000024391 esac
24392 fi
24393
24394 for lib in pthread pthreads; do
24395 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000024396
24397
24398
24399ac_ext=c
24400ac_cpp='$CPP $CPPFLAGS'
24401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24403ac_compiler_gnu=$ac_cv_c_compiler_gnu
24404
24405magick_pthread_lib_ok=no
24406
24407LIB=-l$lib
24408save_LIBS="$LIBS"
24409LIBS="$LIBS $LIB"
24410
24411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24412$as_echo_n "checking for the pthreads library $LIB... " >&6; }
24413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24414/* end confdefs.h. */
24415#include <pthread.h>
24416int
24417main ()
24418{
24419 pthread_t th;
24420 pthread_join(th, 0);
24421 pthread_attr_init(0);
24422 pthread_cleanup_push(0, 0);
24423 pthread_create(0,0,0,0);
24424 pthread_cleanup_pop(0);
24425 ;
24426 return 0;
24427}
24428_ACEOF
24429if ac_fn_c_try_link "$LINENO"; then :
24430 magick_pthread_lib_ok=yes
24431fi
24432rm -f core conftest.err conftest.$ac_objext \
24433 conftest$ac_exeext conftest.$ac_ext
24434
24435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24436$as_echo "${magick_pthread_lib_ok}" >&6; }
24437if test "$magick_pthread_lib_ok" = yes
24438then
24439 PTHREAD_LIBS=-l$lib
24440 :
24441else
24442
24443 :
24444fi
24445
24446LIBS="$save_LIBS"
24447
24448ac_ext=c
24449ac_cpp='$CPP $CPPFLAGS'
24450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24452ac_compiler_gnu=$ac_cv_c_compiler_gnu
24453
24454
cristy3ed852e2009-09-05 21:47:34 +000024455 fi
24456 done
24457
24458 THREAD_LIBS="$PTHREAD_LIBS"
24459 LIBS="$LIBS $THREAD_LIBS"
24460fi
24461
24462
24463#
24464# Check for umem.
24465#
24466have_umem='no'
24467UMEM_LIBS=''
24468if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000024470$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024472$as_echo "" >&6; }
24473 failed=0
24474 passed=0
cristy8b350f62009-11-15 23:12:43 +000024475 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24476if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024477 passed=`expr $passed + 1`
24478else
24479 failed=`expr $failed + 1`
24480fi
24481
24482
cristy8b350f62009-11-15 23:12:43 +000024483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024484$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024485if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024486 $as_echo_n "(cached) " >&6
24487else
24488 ac_check_lib_save_LIBS=$LIBS
24489LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024491/* end confdefs.h. */
24492
24493/* Override any GCC internal prototype to avoid an error.
24494 Use char because int might match the return type of a GCC
24495 builtin and then its argument prototype would still apply. */
24496#ifdef __cplusplus
24497extern "C"
24498#endif
24499char umem_alloc ();
24500int
24501main ()
24502{
24503return umem_alloc ();
24504 ;
24505 return 0;
24506}
24507_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024508if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024509 ac_cv_lib_umem_umem_alloc=yes
24510else
cristy8b350f62009-11-15 23:12:43 +000024511 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000024512fi
cristy8b350f62009-11-15 23:12:43 +000024513rm -f core conftest.err conftest.$ac_objext \
24514 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024515LIBS=$ac_check_lib_save_LIBS
24516fi
cristy8b350f62009-11-15 23:12:43 +000024517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024518$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024519if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024520 passed=`expr $passed + 1`
24521else
24522 failed=`expr $failed + 1`
24523fi
24524
cristy8b350f62009-11-15 23:12:43 +000024525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024526$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024527if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024528 $as_echo_n "(cached) " >&6
24529else
24530 ac_check_lib_save_LIBS=$LIBS
24531LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024533/* end confdefs.h. */
24534
24535/* Override any GCC internal prototype to avoid an error.
24536 Use char because int might match the return type of a GCC
24537 builtin and then its argument prototype would still apply. */
24538#ifdef __cplusplus
24539extern "C"
24540#endif
24541char umem_free ();
24542int
24543main ()
24544{
24545return umem_free ();
24546 ;
24547 return 0;
24548}
24549_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024550if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024551 ac_cv_lib_umem_umem_free=yes
24552else
cristy8b350f62009-11-15 23:12:43 +000024553 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000024554fi
cristy8b350f62009-11-15 23:12:43 +000024555rm -f core conftest.err conftest.$ac_objext \
24556 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024557LIBS=$ac_check_lib_save_LIBS
24558fi
cristy8b350f62009-11-15 23:12:43 +000024559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000024560$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024561if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024562 passed=`expr $passed + 1`
24563else
24564 failed=`expr $failed + 1`
24565fi
24566
cristy8b350f62009-11-15 23:12:43 +000024567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024568$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24569 if test $passed -gt 0; then
24570 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024572$as_echo "no -- some components failed test" >&6; }
24573 have_umem='no (failed tests)'
24574 else
24575 UMEM_LIBS='-lumem'
24576 LIBS="$UMEM_LIBS $LIBS"
24577
cristy8b350f62009-11-15 23:12:43 +000024578$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024579
cristy8b350f62009-11-15 23:12:43 +000024580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024581$as_echo "yes" >&6; }
24582 have_umem='yes'
24583 fi
24584 else
cristy8b350f62009-11-15 23:12:43 +000024585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024586$as_echo "no" >&6; }
24587 fi
24588fi
cristy73bd4a52010-10-05 11:24:23 +000024589 if test "$have_umem" = 'yes'; then
24590 HasUMEM_TRUE=
24591 HasUMEM_FALSE='#'
24592else
24593 HasUMEM_TRUE='#'
24594 HasUMEM_FALSE=
24595fi
24596
cristy3ed852e2009-09-05 21:47:34 +000024597
24598
24599#
24600# Add support for ccmalloc memory debugging library if requested
24601#
24602have_ccmalloc='no'
24603CCMALLOC_LIBS=''
24604if test "$enable_ccmalloc" = 'yes'; then
24605 # Extract the first word of "ccmalloc", so it can be a program name with args.
24606set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024608$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024609if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024610 $as_echo_n "(cached) " >&6
24611else
24612 case $CCMALLOCDelegate in
24613 [\\/]* | ?:[\\/]*)
24614 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24615 ;;
24616 *)
24617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24618for as_dir in $PATH
24619do
24620 IFS=$as_save_IFS
24621 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024622 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24624 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000024625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024626 break 2
24627 fi
24628done
cristy8b350f62009-11-15 23:12:43 +000024629 done
cristy3ed852e2009-09-05 21:47:34 +000024630IFS=$as_save_IFS
24631
24632 ;;
24633esac
24634fi
24635CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24636if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000024637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024638$as_echo "$CCMALLOCDelegate" >&6; }
24639else
cristy8b350f62009-11-15 23:12:43 +000024640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024641$as_echo "no" >&6; }
24642fi
24643
24644
24645 if test -n "$CCMALLOCDelegate"; then
24646 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24647 OLIBS="$LIBS"
24648 # Assume that gcc is used with ccmalloc.
24649 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000024650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024651$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024652if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024653 $as_echo_n "(cached) " >&6
24654else
24655 ac_check_lib_save_LIBS=$LIBS
24656LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024658/* end confdefs.h. */
24659
24660/* Override any GCC internal prototype to avoid an error.
24661 Use char because int might match the return type of a GCC
24662 builtin and then its argument prototype would still apply. */
24663#ifdef __cplusplus
24664extern "C"
24665#endif
24666char ccmalloc_malloc ();
24667int
24668main ()
24669{
24670return ccmalloc_malloc ();
24671 ;
24672 return 0;
24673}
24674_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024675if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024676 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24677else
cristy8b350f62009-11-15 23:12:43 +000024678 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024679fi
cristy8b350f62009-11-15 23:12:43 +000024680rm -f core conftest.err conftest.$ac_objext \
24681 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024682LIBS=$ac_check_lib_save_LIBS
24683fi
cristy8b350f62009-11-15 23:12:43 +000024684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024685$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024686if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024687 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24688fi
24689
24690 if test -n "$CCMALLOC_LIBS"; then
24691 LIBS="$OLIBS"
24692 LIBS="$LIBS $CCMALLOC_LIBS"
24693 have_ccmalloc='yes'
24694 else
24695 LIBS="$OLIBS"
24696 fi
24697 fi
24698fi
24699
24700#
24701# Add support for efence memory debugging library if requested
24702#
24703if test "$enable_efence" = 'yes'; then
24704 EFENCE_LIBS='-lefence'
24705 LIBS="$EFENCE_LIBS $LIBS"
24706fi
24707
cristy3ed852e2009-09-05 21:47:34 +000024708
24709#
24710# Check for BZLIB
24711#
24712
24713
24714# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024715if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024716 withval=$with_bzlib; with_bzlib=$withval
24717else
24718 with_bzlib='yes'
24719fi
24720
24721
24722if test "$with_bzlib" != 'yes'; then
24723 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24724fi
24725
24726have_bzlib='no'
24727if test "$with_bzlib" != 'no'; then
24728 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024730$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024732$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024734$as_echo "" >&6; }
24735 failed=0
24736 passed=0
24737 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024738 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24739if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024740 passed=`expr $passed + 1`
24741else
24742 failed=`expr $failed + 1`
24743fi
24744
24745
cristy8b350f62009-11-15 23:12:43 +000024746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024747$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024748if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024749 $as_echo_n "(cached) " >&6
24750else
24751 ac_check_lib_save_LIBS=$LIBS
24752LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024754/* end confdefs.h. */
24755
24756/* Override any GCC internal prototype to avoid an error.
24757 Use char because int might match the return type of a GCC
24758 builtin and then its argument prototype would still apply. */
24759#ifdef __cplusplus
24760extern "C"
24761#endif
24762char BZ2_bzDecompress ();
24763int
24764main ()
24765{
24766return BZ2_bzDecompress ();
24767 ;
24768 return 0;
24769}
24770_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024771if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024772 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24773else
cristy8b350f62009-11-15 23:12:43 +000024774 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024775fi
cristy8b350f62009-11-15 23:12:43 +000024776rm -f core conftest.err conftest.$ac_objext \
24777 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024778LIBS=$ac_check_lib_save_LIBS
24779fi
cristy8b350f62009-11-15 23:12:43 +000024780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024781$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024782if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024783 found_libbz=`expr $found_libbz + 1`
24784fi
24785
24786 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024788$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024789if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024790 $as_echo_n "(cached) " >&6
24791else
24792 ac_check_lib_save_LIBS=$LIBS
24793LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024795/* end confdefs.h. */
24796
24797/* Override any GCC internal prototype to avoid an error.
24798 Use char because int might match the return type of a GCC
24799 builtin and then its argument prototype would still apply. */
24800#ifdef __cplusplus
24801extern "C"
24802#endif
24803char _imp__BZ2_decompress ();
24804int
24805main ()
24806{
24807return _imp__BZ2_decompress ();
24808 ;
24809 return 0;
24810}
24811_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024812if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024813 ac_cv_lib_bz2__imp__BZ2_decompress=yes
24814else
cristy8b350f62009-11-15 23:12:43 +000024815 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000024816fi
cristy8b350f62009-11-15 23:12:43 +000024817rm -f core conftest.err conftest.$ac_objext \
24818 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024819LIBS=$ac_check_lib_save_LIBS
24820fi
cristy8b350f62009-11-15 23:12:43 +000024821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024822$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024823if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024824 found_libbz=`expr $found_libbz + 1`
24825fi
24826
24827 fi
24828 if test $found_libbz -gt 0; then
24829 passed=`expr $passed + 1`
24830 else
24831 failed=`expr $failed + 1`
24832 fi
cristy8b350f62009-11-15 23:12:43 +000024833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024834$as_echo_n "checking if BZLIB package is complete... " >&6; }
24835 if test $passed -gt 0; then
24836 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024838$as_echo "no -- some components failed test" >&6; }
24839 have_bzlib='no (failed tests)'
24840 else
24841 BZLIB_LIBS='-lbz2'
24842 LIBS="$BZLIB_LIBS $LIBS"
24843
cristy8b350f62009-11-15 23:12:43 +000024844$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024845
cristy8b350f62009-11-15 23:12:43 +000024846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024847$as_echo "yes" >&6; }
24848 have_bzlib='yes'
24849 fi
24850 else
cristy8b350f62009-11-15 23:12:43 +000024851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024852$as_echo "no" >&6; }
24853 fi
24854fi
cristy73bd4a52010-10-05 11:24:23 +000024855 if test "$have_bzlib" = 'yes'; then
24856 BZLIB_DELEGATE_TRUE=
24857 BZLIB_DELEGATE_FALSE='#'
24858else
24859 BZLIB_DELEGATE_TRUE='#'
24860 BZLIB_DELEGATE_FALSE=
24861fi
24862
cristy3ed852e2009-09-05 21:47:34 +000024863
24864
24865#
24866# Find the X11 include and library directories.
24867#
24868IPC_LIBS=''
24869X11_LIBS=''
24870XEXT_LIBS=''
24871XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000024873$as_echo_n "checking for X... " >&6; }
24874
24875
24876# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000024877if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024878 withval=$with_x;
24879fi
24880
24881# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24882if test "x$with_x" = xno; then
24883 # The user explicitly disabled X.
24884 have_x=disabled
24885else
24886 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000024887 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristy8b350f62009-11-15 23:12:43 +000024888 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024889 $as_echo_n "(cached) " >&6
24890else
24891 # One or both of the vars are not set, and there is no cached value.
24892ac_x_includes=no ac_x_libraries=no
24893rm -f -r conftest.dir
24894if mkdir conftest.dir; then
24895 cd conftest.dir
24896 cat >Imakefile <<'_ACEOF'
24897incroot:
24898 @echo incroot='${INCROOT}'
24899usrlibdir:
24900 @echo usrlibdir='${USRLIBDIR}'
24901libdir:
24902 @echo libdir='${LIBDIR}'
24903_ACEOF
24904 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000024905 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000024906 for ac_var in incroot usrlibdir libdir; do
24907 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24908 done
24909 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24910 for ac_extension in a so sl dylib la dll; do
24911 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24912 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24913 ac_im_usrlibdir=$ac_im_libdir; break
24914 fi
24915 done
24916 # Screen out bogus values from the imake configuration. They are
24917 # bogus both because they are the default anyway, and because
24918 # using them would break gcc on systems where it needs fixed includes.
24919 case $ac_im_incroot in
24920 /usr/include) ac_x_includes= ;;
24921 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24922 esac
24923 case $ac_im_usrlibdir in
24924 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24925 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24926 esac
24927 fi
24928 cd ..
24929 rm -f -r conftest.dir
24930fi
24931
24932# Standard set of common directories for X headers.
24933# Check X11 before X11Rn because it is often a symlink to the current release.
24934ac_x_header_dirs='
24935/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000024936/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024937/usr/X11R6/include
24938/usr/X11R5/include
24939/usr/X11R4/include
24940
24941/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000024942/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024943/usr/include/X11R6
24944/usr/include/X11R5
24945/usr/include/X11R4
24946
24947/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000024948/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024949/usr/local/X11R6/include
24950/usr/local/X11R5/include
24951/usr/local/X11R4/include
24952
24953/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000024954/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024955/usr/local/include/X11R6
24956/usr/local/include/X11R5
24957/usr/local/include/X11R4
24958
24959/usr/X386/include
24960/usr/x386/include
24961/usr/XFree86/include/X11
24962
24963/usr/include
24964/usr/local/include
24965/usr/unsupported/include
24966/usr/athena/include
24967/usr/local/x11r5/include
24968/usr/lpp/Xamples/include
24969
24970/usr/openwin/include
24971/usr/openwin/share/include'
24972
24973if test "$ac_x_includes" = no; then
24974 # Guess where to find include files, by looking for Xlib.h.
24975 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000024976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024977/* end confdefs.h. */
24978#include <X11/Xlib.h>
24979_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024980if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024981 # We can compile using X headers with no special include directory.
24982ac_x_includes=
24983else
cristyc7083c12009-10-14 03:16:55 +000024984 for ac_dir in $ac_x_header_dirs; do
24985 if test -r "$ac_dir/X11/Xlib.h"; then
24986 ac_x_includes=$ac_dir
24987 break
24988 fi
24989done
24990fi
cristyc7083c12009-10-14 03:16:55 +000024991rm -f conftest.err conftest.$ac_ext
24992fi # $ac_x_includes = no
24993
24994if test "$ac_x_libraries" = no; then
24995 # Check for the libraries.
24996 # See if we find them without any special options.
24997 # Don't add to $LIBS permanently.
24998 ac_save_LIBS=$LIBS
24999 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025001/* end confdefs.h. */
25002#include <X11/Xlib.h>
25003int
25004main ()
25005{
25006XrmInitialize ()
25007 ;
25008 return 0;
25009}
25010_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025011if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025012 LIBS=$ac_save_LIBS
25013# We can link X programs with no special library path.
25014ac_x_libraries=
25015else
cristy8b350f62009-11-15 23:12:43 +000025016 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025017for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25018do
25019 # Don't even attempt the hair of trying to link an X program!
25020 for ac_extension in a so sl dylib la dll; do
25021 if test -r "$ac_dir/libX11.$ac_extension"; then
25022 ac_x_libraries=$ac_dir
25023 break 2
25024 fi
25025 done
25026done
25027fi
cristy8b350f62009-11-15 23:12:43 +000025028rm -f core conftest.err conftest.$ac_objext \
25029 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025030fi # $ac_x_libraries = no
25031
25032case $ac_x_includes,$ac_x_libraries in #(
25033 no,* | *,no | *\'*)
25034 # Didn't find X, or a directory has "'" in its name.
25035 ac_cv_have_x="have_x=no";; #(
25036 *)
25037 # Record where we found X for the cache.
25038 ac_cv_have_x="have_x=yes\
25039 ac_x_includes='$ac_x_includes'\
25040 ac_x_libraries='$ac_x_libraries'"
25041esac
25042fi
25043;; #(
25044 *) have_x=yes;;
25045 esac
25046 eval "$ac_cv_have_x"
25047fi # $with_x != no
25048
25049if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025051$as_echo "$have_x" >&6; }
25052 no_x=yes
25053else
25054 # If each of the values was on the command line, it overrides each guess.
25055 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25056 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25057 # Update the cache value to reflect the command line values.
25058 ac_cv_have_x="have_x=yes\
25059 ac_x_includes='$x_includes'\
25060 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025062$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25063fi
25064
cristy3ed852e2009-09-05 21:47:34 +000025065if test "$no_x" = yes; then
25066 # Not all programs may use this symbol, but it does not hurt to define it.
25067
cristy8b350f62009-11-15 23:12:43 +000025068$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025069
25070 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25071else
25072 if test -n "$x_includes"; then
25073 X_CFLAGS="$X_CFLAGS -I$x_includes"
25074 fi
25075
25076 # It would also be nice to do this for all -L options, not just this one.
25077 if test -n "$x_libraries"; then
25078 X_LIBS="$X_LIBS -L$x_libraries"
25079 # For Solaris; some versions of Sun CC require a space after -R and
25080 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025082$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25083 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25084 ac_xsave_c_werror_flag=$ac_c_werror_flag
25085 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025087/* end confdefs.h. */
25088
25089int
25090main ()
25091{
25092
25093 ;
25094 return 0;
25095}
25096_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025097if ac_fn_c_try_link "$LINENO"; then :
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025099$as_echo "no" >&6; }
25100 X_LIBS="$X_LIBS -R$x_libraries"
25101else
cristy8b350f62009-11-15 23:12:43 +000025102 LIBS="$ac_xsave_LIBS -R $x_libraries"
25103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025104/* end confdefs.h. */
25105
25106int
25107main ()
25108{
25109
25110 ;
25111 return 0;
25112}
25113_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025114if ac_fn_c_try_link "$LINENO"; then :
25115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025116$as_echo "yes" >&6; }
25117 X_LIBS="$X_LIBS -R $x_libraries"
25118else
cristy8b350f62009-11-15 23:12:43 +000025119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025120$as_echo "neither works" >&6; }
25121fi
cristy8b350f62009-11-15 23:12:43 +000025122rm -f core conftest.err conftest.$ac_objext \
25123 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025124fi
cristy8b350f62009-11-15 23:12:43 +000025125rm -f core conftest.err conftest.$ac_objext \
25126 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025127 ac_c_werror_flag=$ac_xsave_c_werror_flag
25128 LIBS=$ac_xsave_LIBS
25129 fi
25130
25131 # Check for system-dependent libraries X programs must link with.
25132 # Do this before checking for the system-independent R6 libraries
25133 # (-lICE), since we may need -lsocket or whatever for X linking.
25134
25135 if test "$ISC" = yes; then
25136 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25137 else
25138 # Martyn Johnson says this is needed for Ultrix, if the X
25139 # libraries were built with DECnet support. And Karl Berry says
25140 # the Alpha needs dnet_stub (dnet does not exist).
25141 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025143/* end confdefs.h. */
25144
25145/* Override any GCC internal prototype to avoid an error.
25146 Use char because int might match the return type of a GCC
25147 builtin and then its argument prototype would still apply. */
25148#ifdef __cplusplus
25149extern "C"
25150#endif
25151char XOpenDisplay ();
25152int
25153main ()
25154{
25155return XOpenDisplay ();
25156 ;
25157 return 0;
25158}
25159_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025160if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025161
cristy8b350f62009-11-15 23:12:43 +000025162else
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025164$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025165if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025166 $as_echo_n "(cached) " >&6
25167else
25168 ac_check_lib_save_LIBS=$LIBS
25169LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025171/* end confdefs.h. */
25172
25173/* Override any GCC internal prototype to avoid an error.
25174 Use char because int might match the return type of a GCC
25175 builtin and then its argument prototype would still apply. */
25176#ifdef __cplusplus
25177extern "C"
25178#endif
25179char dnet_ntoa ();
25180int
25181main ()
25182{
25183return dnet_ntoa ();
25184 ;
25185 return 0;
25186}
25187_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025188if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025189 ac_cv_lib_dnet_dnet_ntoa=yes
25190else
cristy8b350f62009-11-15 23:12:43 +000025191 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025192fi
cristy8b350f62009-11-15 23:12:43 +000025193rm -f core conftest.err conftest.$ac_objext \
25194 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025195LIBS=$ac_check_lib_save_LIBS
25196fi
cristy8b350f62009-11-15 23:12:43 +000025197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025198$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025199if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025200 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25201fi
25202
25203 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000025204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000025205$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025206if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025207 $as_echo_n "(cached) " >&6
25208else
25209 ac_check_lib_save_LIBS=$LIBS
25210LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025212/* end confdefs.h. */
25213
25214/* Override any GCC internal prototype to avoid an error.
25215 Use char because int might match the return type of a GCC
25216 builtin and then its argument prototype would still apply. */
25217#ifdef __cplusplus
25218extern "C"
25219#endif
25220char dnet_ntoa ();
25221int
25222main ()
25223{
25224return dnet_ntoa ();
25225 ;
25226 return 0;
25227}
25228_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025229if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025230 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25231else
cristy8b350f62009-11-15 23:12:43 +000025232 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025233fi
cristy8b350f62009-11-15 23:12:43 +000025234rm -f core conftest.err conftest.$ac_objext \
25235 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025236LIBS=$ac_check_lib_save_LIBS
25237fi
cristy8b350f62009-11-15 23:12:43 +000025238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025239$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025240if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025241 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25242fi
25243
25244 fi
25245fi
cristy8b350f62009-11-15 23:12:43 +000025246rm -f core conftest.err conftest.$ac_objext \
25247 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025248 LIBS="$ac_xsave_LIBS"
25249
25250 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25251 # to get the SysV transport functions.
25252 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25253 # needs -lnsl.
25254 # The nsl library prevents programs from opening the X display
25255 # on Irix 5.2, according to T.E. Dickey.
25256 # The functions gethostbyname, getservbyname, and inet_addr are
25257 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000025258 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25259if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025260
cristy3ed852e2009-09-05 21:47:34 +000025261fi
25262
cristy3ed852e2009-09-05 21:47:34 +000025263 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025265$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025266if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025267 $as_echo_n "(cached) " >&6
25268else
25269 ac_check_lib_save_LIBS=$LIBS
25270LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025272/* end confdefs.h. */
25273
25274/* Override any GCC internal prototype to avoid an error.
25275 Use char because int might match the return type of a GCC
25276 builtin and then its argument prototype would still apply. */
25277#ifdef __cplusplus
25278extern "C"
25279#endif
25280char gethostbyname ();
25281int
25282main ()
25283{
25284return gethostbyname ();
25285 ;
25286 return 0;
25287}
25288_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025289if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025290 ac_cv_lib_nsl_gethostbyname=yes
25291else
cristy8b350f62009-11-15 23:12:43 +000025292 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025293fi
cristy8b350f62009-11-15 23:12:43 +000025294rm -f core conftest.err conftest.$ac_objext \
25295 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025296LIBS=$ac_check_lib_save_LIBS
25297fi
cristy8b350f62009-11-15 23:12:43 +000025298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025299$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025300if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025301 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25302fi
25303
25304 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000025306$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025307if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025308 $as_echo_n "(cached) " >&6
25309else
25310 ac_check_lib_save_LIBS=$LIBS
25311LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025313/* end confdefs.h. */
25314
25315/* Override any GCC internal prototype to avoid an error.
25316 Use char because int might match the return type of a GCC
25317 builtin and then its argument prototype would still apply. */
25318#ifdef __cplusplus
25319extern "C"
25320#endif
25321char gethostbyname ();
25322int
25323main ()
25324{
25325return gethostbyname ();
25326 ;
25327 return 0;
25328}
25329_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025330if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025331 ac_cv_lib_bsd_gethostbyname=yes
25332else
cristy8b350f62009-11-15 23:12:43 +000025333 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025334fi
cristy8b350f62009-11-15 23:12:43 +000025335rm -f core conftest.err conftest.$ac_objext \
25336 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025337LIBS=$ac_check_lib_save_LIBS
25338fi
cristy8b350f62009-11-15 23:12:43 +000025339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025340$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025341if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025342 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25343fi
25344
25345 fi
25346 fi
25347
25348 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25349 # socket/setsockopt and other routines are undefined under SCO ODT
25350 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25351 # on later versions), says Simon Leinen: it contains gethostby*
25352 # variants that don't use the name server (or something). -lsocket
25353 # must be given before -lnsl if both are needed. We assume that
25354 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000025355 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25356if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025357
cristy3ed852e2009-09-05 21:47:34 +000025358fi
25359
cristy3ed852e2009-09-05 21:47:34 +000025360 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000025361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000025362$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025363if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025364 $as_echo_n "(cached) " >&6
25365else
25366 ac_check_lib_save_LIBS=$LIBS
25367LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025369/* end confdefs.h. */
25370
25371/* Override any GCC internal prototype to avoid an error.
25372 Use char because int might match the return type of a GCC
25373 builtin and then its argument prototype would still apply. */
25374#ifdef __cplusplus
25375extern "C"
25376#endif
25377char connect ();
25378int
25379main ()
25380{
25381return connect ();
25382 ;
25383 return 0;
25384}
25385_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025386if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025387 ac_cv_lib_socket_connect=yes
25388else
cristy8b350f62009-11-15 23:12:43 +000025389 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000025390fi
cristy8b350f62009-11-15 23:12:43 +000025391rm -f core conftest.err conftest.$ac_objext \
25392 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025393LIBS=$ac_check_lib_save_LIBS
25394fi
cristy8b350f62009-11-15 23:12:43 +000025395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000025396$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025397if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025398 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25399fi
25400
25401 fi
25402
25403 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000025404 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25405if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025406
cristy3ed852e2009-09-05 21:47:34 +000025407fi
25408
cristy3ed852e2009-09-05 21:47:34 +000025409 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000025410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000025411$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025412if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025413 $as_echo_n "(cached) " >&6
25414else
25415 ac_check_lib_save_LIBS=$LIBS
25416LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025418/* end confdefs.h. */
25419
25420/* Override any GCC internal prototype to avoid an error.
25421 Use char because int might match the return type of a GCC
25422 builtin and then its argument prototype would still apply. */
25423#ifdef __cplusplus
25424extern "C"
25425#endif
25426char remove ();
25427int
25428main ()
25429{
25430return remove ();
25431 ;
25432 return 0;
25433}
25434_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025435if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025436 ac_cv_lib_posix_remove=yes
25437else
cristy8b350f62009-11-15 23:12:43 +000025438 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000025439fi
cristy8b350f62009-11-15 23:12:43 +000025440rm -f core conftest.err conftest.$ac_objext \
25441 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025442LIBS=$ac_check_lib_save_LIBS
25443fi
cristy8b350f62009-11-15 23:12:43 +000025444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000025445$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025446if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025447 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25448fi
25449
25450 fi
25451
25452 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000025453 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25454if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025455
cristy3ed852e2009-09-05 21:47:34 +000025456fi
25457
cristy3ed852e2009-09-05 21:47:34 +000025458 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000025459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025460$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025461if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025462 $as_echo_n "(cached) " >&6
25463else
25464 ac_check_lib_save_LIBS=$LIBS
25465LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025467/* end confdefs.h. */
25468
25469/* Override any GCC internal prototype to avoid an error.
25470 Use char because int might match the return type of a GCC
25471 builtin and then its argument prototype would still apply. */
25472#ifdef __cplusplus
25473extern "C"
25474#endif
25475char shmat ();
25476int
25477main ()
25478{
25479return shmat ();
25480 ;
25481 return 0;
25482}
25483_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025484if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025485 ac_cv_lib_ipc_shmat=yes
25486else
cristy8b350f62009-11-15 23:12:43 +000025487 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000025488fi
cristy8b350f62009-11-15 23:12:43 +000025489rm -f core conftest.err conftest.$ac_objext \
25490 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025491LIBS=$ac_check_lib_save_LIBS
25492fi
cristy8b350f62009-11-15 23:12:43 +000025493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000025494$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025495if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025496 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25497fi
25498
25499 fi
25500 fi
25501
25502 # Check for libraries that X11R6 Xt/Xaw programs need.
25503 ac_save_LDFLAGS=$LDFLAGS
25504 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25505 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25506 # check for ICE first), but we must link in the order -lSM -lICE or
25507 # we get undefined symbols. So assume we have SM if we have ICE.
25508 # These have to be linked with before -lX11, unlike the other
25509 # libraries we check for below, so use a different variable.
25510 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000025511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025512$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025513if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025514 $as_echo_n "(cached) " >&6
25515else
25516 ac_check_lib_save_LIBS=$LIBS
25517LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025519/* end confdefs.h. */
25520
25521/* Override any GCC internal prototype to avoid an error.
25522 Use char because int might match the return type of a GCC
25523 builtin and then its argument prototype would still apply. */
25524#ifdef __cplusplus
25525extern "C"
25526#endif
25527char IceConnectionNumber ();
25528int
25529main ()
25530{
25531return IceConnectionNumber ();
25532 ;
25533 return 0;
25534}
25535_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025536if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025537 ac_cv_lib_ICE_IceConnectionNumber=yes
25538else
cristy8b350f62009-11-15 23:12:43 +000025539 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000025540fi
cristy8b350f62009-11-15 23:12:43 +000025541rm -f core conftest.err conftest.$ac_objext \
25542 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025543LIBS=$ac_check_lib_save_LIBS
25544fi
cristy8b350f62009-11-15 23:12:43 +000025545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000025546$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025547if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025548 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25549fi
25550
25551 LDFLAGS=$ac_save_LDFLAGS
25552
25553fi
25554
25555if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025557$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000025559$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025561$as_echo "" >&6; }
25562 LDFLAGS="$LDFLAGS $X_LIBS"
25563 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25564 LIBS="$X11_LIBS $LIBS"
25565 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25566
25567
cristy8b350f62009-11-15 23:12:43 +000025568$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025569
25570 #
25571 # Check for X11 shared memory extension
25572 #
25573 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000025574 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25575if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025576 have_shmctl='yes'
25577fi
25578
25579 if test "$have_shmctl" != 'yes'; then
25580 PERSIST_LIBS=$LIBS
25581 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000025582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025583/* end confdefs.h. */
25584
25585/* Override any GCC internal prototype to avoid an error.
25586 Use char because int might match the return type of a GCC
25587 builtin and then its argument prototype would still apply. */
25588#ifdef __cplusplus
25589extern "C"
25590#endif
25591char shmctl ();
25592int
25593main ()
25594{
25595return shmctl ();
25596 ;
25597 return 0;
25598}
25599_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025600if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025601 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000025602fi
cristy8b350f62009-11-15 23:12:43 +000025603rm -f core conftest.err conftest.$ac_objext \
25604 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025605 LIBS=$PERSIST_LIBS
25606 fi
25607
25608 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025610$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025611if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025612 $as_echo_n "(cached) " >&6
25613else
25614 ac_check_lib_save_LIBS=$LIBS
25615LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025617/* end confdefs.h. */
25618
25619/* Override any GCC internal prototype to avoid an error.
25620 Use char because int might match the return type of a GCC
25621 builtin and then its argument prototype would still apply. */
25622#ifdef __cplusplus
25623extern "C"
25624#endif
25625char XShmAttach ();
25626int
25627main ()
25628{
25629return XShmAttach ();
25630 ;
25631 return 0;
25632}
25633_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025634if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025635 ac_cv_lib_Xext_XShmAttach=yes
25636else
cristy8b350f62009-11-15 23:12:43 +000025637 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025638fi
cristy8b350f62009-11-15 23:12:43 +000025639rm -f core conftest.err conftest.$ac_objext \
25640 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025641LIBS=$ac_check_lib_save_LIBS
25642fi
cristy8b350f62009-11-15 23:12:43 +000025643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025644$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025645if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025646 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025647$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025648
25649fi
25650
25651 fi
25652
25653 #
25654 # Check for X11 shape extension
25655 #
cristy8b350f62009-11-15 23:12:43 +000025656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025657$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025658if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025659 $as_echo_n "(cached) " >&6
25660else
25661 ac_check_lib_save_LIBS=$LIBS
25662LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025664/* end confdefs.h. */
25665
25666/* Override any GCC internal prototype to avoid an error.
25667 Use char because int might match the return type of a GCC
25668 builtin and then its argument prototype would still apply. */
25669#ifdef __cplusplus
25670extern "C"
25671#endif
25672char XShapeCombineMask ();
25673int
25674main ()
25675{
25676return XShapeCombineMask ();
25677 ;
25678 return 0;
25679}
25680_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025681if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025682 ac_cv_lib_Xext_XShapeCombineMask=yes
25683else
cristy8b350f62009-11-15 23:12:43 +000025684 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025685fi
cristy8b350f62009-11-15 23:12:43 +000025686rm -f core conftest.err conftest.$ac_objext \
25687 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025688LIBS=$ac_check_lib_save_LIBS
25689fi
cristy8b350f62009-11-15 23:12:43 +000025690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025691$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025692if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025693 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025694$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025695
25696fi
25697
cristy8b350f62009-11-15 23:12:43 +000025698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025699$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025700if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025701 $as_echo_n "(cached) " >&6
25702else
25703 ac_check_lib_save_LIBS=$LIBS
25704LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025706/* end confdefs.h. */
25707
25708/* Override any GCC internal prototype to avoid an error.
25709 Use char because int might match the return type of a GCC
25710 builtin and then its argument prototype would still apply. */
25711#ifdef __cplusplus
25712extern "C"
25713#endif
25714char XtSetEventDispatcher ();
25715int
25716main ()
25717{
25718return XtSetEventDispatcher ();
25719 ;
25720 return 0;
25721}
25722_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025723if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025724 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25725else
cristy8b350f62009-11-15 23:12:43 +000025726 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025727fi
cristy8b350f62009-11-15 23:12:43 +000025728rm -f core conftest.err conftest.$ac_objext \
25729 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025730LIBS=$ac_check_lib_save_LIBS
25731fi
cristy8b350f62009-11-15 23:12:43 +000025732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025733$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025734if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025735 XT_LIBS='-lXt'
25736fi
25737
25738 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25739fi
25740if test "$no_x" != 'yes'; then
25741 have_x='yes'
25742else
25743 have_x='no'
25744fi
cristy73bd4a52010-10-05 11:24:23 +000025745 if test "$have_x" = 'yes'; then
25746 X11_DELEGATE_TRUE=
25747 X11_DELEGATE_FALSE='#'
25748else
25749 X11_DELEGATE_TRUE='#'
25750 X11_DELEGATE_FALSE=
25751fi
25752
cristy3ed852e2009-09-05 21:47:34 +000025753
25754
25755
25756
25757#
25758# Check for ZLIB
25759#
25760
25761# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025762if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025763 withval=$with_zlib; with_zlib=$withval
25764else
25765 with_zlib='yes'
25766fi
25767
25768
25769if test "$with_zlib" != 'yes'; then
25770 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25771fi
25772
25773have_zlib='no'
25774ZLIB_LIBS=''
25775if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025777$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025779$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025781$as_echo "" >&6; }
25782 ZLIB_LIBS=''
25783 failed=0
25784 passed=0
cristy8b350f62009-11-15 23:12:43 +000025785 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25786if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025787 passed=`expr $passed + 1`
25788else
25789 failed=`expr $failed + 1`
25790fi
25791
25792
cristy8b350f62009-11-15 23:12:43 +000025793 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25794if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025795 passed=`expr $passed + 1`
25796else
25797 failed=`expr $failed + 1`
25798fi
25799
25800
cristy8b350f62009-11-15 23:12:43 +000025801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025802$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025803if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025804 $as_echo_n "(cached) " >&6
25805else
25806 ac_check_lib_save_LIBS=$LIBS
25807LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025809/* end confdefs.h. */
25810
25811/* Override any GCC internal prototype to avoid an error.
25812 Use char because int might match the return type of a GCC
25813 builtin and then its argument prototype would still apply. */
25814#ifdef __cplusplus
25815extern "C"
25816#endif
25817char compress ();
25818int
25819main ()
25820{
25821return compress ();
25822 ;
25823 return 0;
25824}
25825_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025826if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025827 ac_cv_lib_z_compress=yes
25828else
cristy8b350f62009-11-15 23:12:43 +000025829 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000025830fi
cristy8b350f62009-11-15 23:12:43 +000025831rm -f core conftest.err conftest.$ac_objext \
25832 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025833LIBS=$ac_check_lib_save_LIBS
25834fi
cristy8b350f62009-11-15 23:12:43 +000025835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025836$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025837if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025838 passed=`expr $passed + 1`
25839else
25840 failed=`expr $failed + 1`
25841fi
25842
cristy8b350f62009-11-15 23:12:43 +000025843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025844$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025845if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025846 $as_echo_n "(cached) " >&6
25847else
25848 ac_check_lib_save_LIBS=$LIBS
25849LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025851/* end confdefs.h. */
25852
25853/* Override any GCC internal prototype to avoid an error.
25854 Use char because int might match the return type of a GCC
25855 builtin and then its argument prototype would still apply. */
25856#ifdef __cplusplus
25857extern "C"
25858#endif
25859char uncompress ();
25860int
25861main ()
25862{
25863return uncompress ();
25864 ;
25865 return 0;
25866}
25867_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025868if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025869 ac_cv_lib_z_uncompress=yes
25870else
cristy8b350f62009-11-15 23:12:43 +000025871 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000025872fi
cristy8b350f62009-11-15 23:12:43 +000025873rm -f core conftest.err conftest.$ac_objext \
25874 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025875LIBS=$ac_check_lib_save_LIBS
25876fi
cristy8b350f62009-11-15 23:12:43 +000025877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025878$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025879if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025880 passed=`expr $passed + 1`
25881else
25882 failed=`expr $failed + 1`
25883fi
25884
cristy8b350f62009-11-15 23:12:43 +000025885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025886$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025887if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025888 $as_echo_n "(cached) " >&6
25889else
25890 ac_check_lib_save_LIBS=$LIBS
25891LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025893/* end confdefs.h. */
25894
25895/* Override any GCC internal prototype to avoid an error.
25896 Use char because int might match the return type of a GCC
25897 builtin and then its argument prototype would still apply. */
25898#ifdef __cplusplus
25899extern "C"
25900#endif
25901char deflate ();
25902int
25903main ()
25904{
25905return deflate ();
25906 ;
25907 return 0;
25908}
25909_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025910if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025911 ac_cv_lib_z_deflate=yes
25912else
cristy8b350f62009-11-15 23:12:43 +000025913 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000025914fi
cristy8b350f62009-11-15 23:12:43 +000025915rm -f core conftest.err conftest.$ac_objext \
25916 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025917LIBS=$ac_check_lib_save_LIBS
25918fi
cristy8b350f62009-11-15 23:12:43 +000025919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025920$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025921if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025922 passed=`expr $passed + 1`
25923else
25924 failed=`expr $failed + 1`
25925fi
25926
cristy8b350f62009-11-15 23:12:43 +000025927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025928$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025929if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025930 $as_echo_n "(cached) " >&6
25931else
25932 ac_check_lib_save_LIBS=$LIBS
25933LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025935/* end confdefs.h. */
25936
25937/* Override any GCC internal prototype to avoid an error.
25938 Use char because int might match the return type of a GCC
25939 builtin and then its argument prototype would still apply. */
25940#ifdef __cplusplus
25941extern "C"
25942#endif
25943char inflate ();
25944int
25945main ()
25946{
25947return inflate ();
25948 ;
25949 return 0;
25950}
25951_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025952if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025953 ac_cv_lib_z_inflate=yes
25954else
cristy8b350f62009-11-15 23:12:43 +000025955 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000025956fi
cristy8b350f62009-11-15 23:12:43 +000025957rm -f core conftest.err conftest.$ac_objext \
25958 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025959LIBS=$ac_check_lib_save_LIBS
25960fi
cristy8b350f62009-11-15 23:12:43 +000025961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025962$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025963if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025964 passed=`expr $passed + 1`
25965else
25966 failed=`expr $failed + 1`
25967fi
25968
cristy8b350f62009-11-15 23:12:43 +000025969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025970$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025971if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025972 $as_echo_n "(cached) " >&6
25973else
25974 ac_check_lib_save_LIBS=$LIBS
25975LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025977/* end confdefs.h. */
25978
25979/* Override any GCC internal prototype to avoid an error.
25980 Use char because int might match the return type of a GCC
25981 builtin and then its argument prototype would still apply. */
25982#ifdef __cplusplus
25983extern "C"
25984#endif
25985char gzseek ();
25986int
25987main ()
25988{
25989return gzseek ();
25990 ;
25991 return 0;
25992}
25993_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025994if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025995 ac_cv_lib_z_gzseek=yes
25996else
cristy8b350f62009-11-15 23:12:43 +000025997 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000025998fi
cristy8b350f62009-11-15 23:12:43 +000025999rm -f core conftest.err conftest.$ac_objext \
26000 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026001LIBS=$ac_check_lib_save_LIBS
26002fi
cristy8b350f62009-11-15 23:12:43 +000026003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000026004$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026005if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026006 passed=`expr $passed + 1`
26007else
26008 failed=`expr $failed + 1`
26009fi
26010
cristy8b350f62009-11-15 23:12:43 +000026011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026012$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026013if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026014 $as_echo_n "(cached) " >&6
26015else
26016 ac_check_lib_save_LIBS=$LIBS
26017LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026019/* end confdefs.h. */
26020
26021/* Override any GCC internal prototype to avoid an error.
26022 Use char because int might match the return type of a GCC
26023 builtin and then its argument prototype would still apply. */
26024#ifdef __cplusplus
26025extern "C"
26026#endif
26027char gztell ();
26028int
26029main ()
26030{
26031return gztell ();
26032 ;
26033 return 0;
26034}
26035_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026036if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026037 ac_cv_lib_z_gztell=yes
26038else
cristy8b350f62009-11-15 23:12:43 +000026039 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026040fi
cristy8b350f62009-11-15 23:12:43 +000026041rm -f core conftest.err conftest.$ac_objext \
26042 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026043LIBS=$ac_check_lib_save_LIBS
26044fi
cristy8b350f62009-11-15 23:12:43 +000026045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026046$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026047if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026048 passed=`expr $passed + 1`
26049else
26050 failed=`expr $failed + 1`
26051fi
26052
cristy8b350f62009-11-15 23:12:43 +000026053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026054$as_echo_n "checking if ZLIB package is complete... " >&6; }
26055 if test $passed -gt 0; then
26056 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026058$as_echo "no -- some components failed test" >&6; }
26059 have_zlib='no (failed tests)'
26060 else
26061 ZLIB_LIBS='-lz'
26062 LIBS="$ZLIB_LIBS $LIBS"
26063
cristy8b350f62009-11-15 23:12:43 +000026064$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026065
cristy8b350f62009-11-15 23:12:43 +000026066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026067$as_echo "yes" >&6; }
26068 have_zlib='yes'
26069 fi
26070 else
cristy8b350f62009-11-15 23:12:43 +000026071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026072$as_echo "no" >&6; }
26073 fi
26074fi
cristy73bd4a52010-10-05 11:24:23 +000026075 if test "$have_zlib" = 'yes'; then
26076 ZLIB_DELEGATE_TRUE=
26077 ZLIB_DELEGATE_FALSE='#'
26078else
26079 ZLIB_DELEGATE_TRUE='#'
26080 ZLIB_DELEGATE_FALSE=
26081fi
26082
cristy3ed852e2009-09-05 21:47:34 +000026083
26084
26085#
26086# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26087#
26088LIB_DL=''
26089if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026091$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026092if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026093 $as_echo_n "(cached) " >&6
26094else
26095 ac_check_lib_save_LIBS=$LIBS
26096LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026098/* end confdefs.h. */
26099
26100/* Override any GCC internal prototype to avoid an error.
26101 Use char because int might match the return type of a GCC
26102 builtin and then its argument prototype would still apply. */
26103#ifdef __cplusplus
26104extern "C"
26105#endif
26106char dlopen ();
26107int
26108main ()
26109{
26110return dlopen ();
26111 ;
26112 return 0;
26113}
26114_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026115if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026116 ac_cv_lib_dl_dlopen=yes
26117else
cristy8b350f62009-11-15 23:12:43 +000026118 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026119fi
cristy8b350f62009-11-15 23:12:43 +000026120rm -f core conftest.err conftest.$ac_objext \
26121 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026122LIBS=$ac_check_lib_save_LIBS
26123fi
cristy8b350f62009-11-15 23:12:43 +000026124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026125$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026126if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026127 LIB_DL='-ldl'
26128fi
26129
26130 LIBS="$LIB_DL $LIBS"
26131fi
26132
26133
26134
26135#
26136# Check for Autotrace delegate library.
26137#
26138
26139# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026140if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026141 withval=$with_autotrace; with_autotrace=$withval
26142else
26143 with_autotrace='no'
26144fi
26145
26146
26147if test "$with_autotrace" != 'yes'; then
26148 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26149fi
26150
26151have_autotrace='no'
26152AUTOTRACE_CFLAGS=""
26153AUTOTRACE_LIBS=""
26154AUTOTRACE_PKG=""
26155if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026157$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000026158
26159pkg_failed=no
26160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
26161$as_echo_n "checking for AUTOTRACE... " >&6; }
26162
26163if test -n "$AUTOTRACE_CFLAGS"; then
26164 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26165 elif test -n "$PKG_CONFIG"; then
26166 if test -n "$PKG_CONFIG" && \
26167 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26168 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26169 ac_status=$?
26170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26171 test $ac_status = 0; }; then
26172 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26173else
26174 pkg_failed=yes
26175fi
26176 else
26177 pkg_failed=untried
26178fi
26179if test -n "$AUTOTRACE_LIBS"; then
26180 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26181 elif test -n "$PKG_CONFIG"; then
26182 if test -n "$PKG_CONFIG" && \
26183 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26184 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26185 ac_status=$?
26186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26187 test $ac_status = 0; }; then
26188 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26189else
26190 pkg_failed=yes
26191fi
26192 else
26193 pkg_failed=untried
26194fi
26195
26196
26197
26198if test $pkg_failed = yes; then
26199
26200if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26201 _pkg_short_errors_supported=yes
26202else
26203 _pkg_short_errors_supported=no
26204fi
26205 if test $_pkg_short_errors_supported = yes; then
26206 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26207 else
26208 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26209 fi
26210 # Put the nasty error message in config.log where it belongs
26211 echo "$AUTOTRACE_PKG_ERRORS" >&5
26212
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26214$as_echo "no" >&6; }
26215 have_autotrace=no
26216elif test $pkg_failed = untried; then
26217 have_autotrace=no
26218else
26219 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26220 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
26221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26222$as_echo "yes" >&6; }
26223 have_autotrace=yes
26224fi
cristy8b350f62009-11-15 23:12:43 +000026225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026226$as_echo "" >&6; }
26227fi
26228
26229if test "$have_autotrace" = 'yes'; then
26230 failed=0
26231
cristy8b350f62009-11-15 23:12:43 +000026232$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026233
26234 if test "$with_modules" = 'no'; then
26235 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26236 fi
26237fi
26238
cristy73bd4a52010-10-05 11:24:23 +000026239 if test "$have_autotrace" = 'yes'; then
26240 AUTOTRACE_DELEGATE_TRUE=
26241 AUTOTRACE_DELEGATE_FALSE='#'
26242else
26243 AUTOTRACE_DELEGATE_TRUE='#'
26244 AUTOTRACE_DELEGATE_FALSE=
26245fi
26246
cristy3ed852e2009-09-05 21:47:34 +000026247
26248
26249
26250
26251#
26252# Check for Display Postscript delegate library.
26253#
26254
26255# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000026256if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026257 withval=$with_dps; with_dps=$withval
26258else
26259 with_dps='yes'
26260fi
26261
26262
26263if test "$with_dps" != 'yes'; then
26264 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26265fi
26266
26267have_dps='no'
26268DPS_LIBS=''
26269if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026271$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026273$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026275$as_echo "" >&6; }
26276 failed=0
26277 passed=0
26278 PERSIST_CPPFLAGS="$CPPFLAGS"
26279 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000026280 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26281if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026282 passed=`expr $passed + 1`
26283else
26284 failed=`expr $failed + 1`
26285fi
26286
26287
26288 # DPS issues:
26289 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26290 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26291 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26292 # ImageMagick itself doesn't use -lXt.
26293 have_libdps='no'
26294 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000026295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026296$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026297if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026298 $as_echo_n "(cached) " >&6
26299else
26300 ac_check_lib_save_LIBS=$LIBS
26301LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026303/* end confdefs.h. */
26304
26305/* Override any GCC internal prototype to avoid an error.
26306 Use char because int might match the return type of a GCC
26307 builtin and then its argument prototype would still apply. */
26308#ifdef __cplusplus
26309extern "C"
26310#endif
26311char DPSInitialize ();
26312int
26313main ()
26314{
26315return DPSInitialize ();
26316 ;
26317 return 0;
26318}
26319_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026320if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026321 ac_cv_lib_dps_DPSInitialize=yes
26322else
cristy8b350f62009-11-15 23:12:43 +000026323 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026324fi
cristy8b350f62009-11-15 23:12:43 +000026325rm -f core conftest.err conftest.$ac_objext \
26326 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026327LIBS=$ac_check_lib_save_LIBS
26328fi
cristy8b350f62009-11-15 23:12:43 +000026329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026330$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026331if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026332 have_libdps='yes'
26333else
26334 have_libdps='no'
26335fi
26336
26337 if test "$have_libdps" != 'yes'; then
26338 # Unset cache variable so we can try again.
26339 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000026340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026341$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026342if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026343 $as_echo_n "(cached) " >&6
26344else
26345 ac_check_lib_save_LIBS=$LIBS
26346LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026348/* end confdefs.h. */
26349
26350/* Override any GCC internal prototype to avoid an error.
26351 Use char because int might match the return type of a GCC
26352 builtin and then its argument prototype would still apply. */
26353#ifdef __cplusplus
26354extern "C"
26355#endif
26356char DPSInitialize ();
26357int
26358main ()
26359{
26360return DPSInitialize ();
26361 ;
26362 return 0;
26363}
26364_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026365if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026366 ac_cv_lib_dps_DPSInitialize=yes
26367else
cristy8b350f62009-11-15 23:12:43 +000026368 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026369fi
cristy8b350f62009-11-15 23:12:43 +000026370rm -f core conftest.err conftest.$ac_objext \
26371 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026372LIBS=$ac_check_lib_save_LIBS
26373fi
cristy8b350f62009-11-15 23:12:43 +000026374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026375$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026376if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026377 have_libdps='yes'
26378else
26379 have_libdps='no'
26380fi
26381
26382 if test "$have_libdps" = 'yes'; then
26383 LIBDPS_XT='-lXt'
26384 fi
26385 fi
26386 if test "$have_libdps" = 'yes'; then
26387 passed=`expr $passed + 1`
26388 else
26389 failed=`expr $failed + 1`
26390 fi
cristy8b350f62009-11-15 23:12:43 +000026391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026392$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026393if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026394 $as_echo_n "(cached) " >&6
26395else
26396 ac_check_lib_save_LIBS=$LIBS
26397LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026399/* end confdefs.h. */
26400
26401/* Override any GCC internal prototype to avoid an error.
26402 Use char because int might match the return type of a GCC
26403 builtin and then its argument prototype would still apply. */
26404#ifdef __cplusplus
26405extern "C"
26406#endif
26407char XDPSPixelsPerPoint ();
26408int
26409main ()
26410{
26411return XDPSPixelsPerPoint ();
26412 ;
26413 return 0;
26414}
26415_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026416if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026417 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26418else
cristy8b350f62009-11-15 23:12:43 +000026419 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000026420fi
cristy8b350f62009-11-15 23:12:43 +000026421rm -f core conftest.err conftest.$ac_objext \
26422 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026423LIBS=$ac_check_lib_save_LIBS
26424fi
cristy8b350f62009-11-15 23:12:43 +000026425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000026426$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026427if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026428 passed=`expr $passed + 1`
26429else
26430 failed=`expr $failed + 1`
26431fi
26432
cristy8b350f62009-11-15 23:12:43 +000026433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026434$as_echo_n "checking if DPS package is complete... " >&6; }
26435 if test $passed -gt 0; then
26436 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026438$as_echo "no -- some components failed test" >&6; }
26439 have_dps='no (failed tests)'
26440 CPPFLAGS="$PERSIST_CPPFLAGS"
26441 else
26442 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26443 LIBS="$DPS_LIBS $LIBS"
26444
cristy8b350f62009-11-15 23:12:43 +000026445$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026446
cristy8b350f62009-11-15 23:12:43 +000026447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026448$as_echo "yes" >&6; }
26449 have_dps='yes'
26450 fi
26451 else
cristy8b350f62009-11-15 23:12:43 +000026452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026453$as_echo "no" >&6; }
26454 CPPFLAGS=$PERSIST_CPPFLAGS
26455 fi
26456fi
cristy73bd4a52010-10-05 11:24:23 +000026457 if test "$have_dps" = 'yes'; then
26458 DPS_DELEGATE_TRUE=
26459 DPS_DELEGATE_FALSE='#'
26460else
26461 DPS_DELEGATE_TRUE='#'
26462 DPS_DELEGATE_FALSE=
26463fi
26464
cristy3ed852e2009-09-05 21:47:34 +000026465
26466
26467
26468#
26469# Check for DJVU delegate library.
26470#
26471
26472# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000026473if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026474 withval=$with_djvu; with_djvu=$withval
26475else
26476 with_djvu='yes'
26477fi
26478
26479
26480if test "$with_djvu" != 'yes'; then
26481 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26482fi
26483
26484have_djvu='no'
26485DJVU_LIBS=''
26486if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026488$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000026490$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026492$as_echo "" >&6; }
26493 failed=0
26494 passed=0
cristy8b350f62009-11-15 23:12:43 +000026495 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26496if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026497 passed=`expr $passed + 1`
26498else
26499 failed=`expr $failed + 1`
26500fi
26501
26502
cristy8b350f62009-11-15 23:12:43 +000026503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000026504$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026505if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026506 $as_echo_n "(cached) " >&6
26507else
26508 ac_check_lib_save_LIBS=$LIBS
26509LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026511/* end confdefs.h. */
26512
26513/* Override any GCC internal prototype to avoid an error.
26514 Use char because int might match the return type of a GCC
26515 builtin and then its argument prototype would still apply. */
26516#ifdef __cplusplus
26517extern "C"
26518#endif
26519char ddjvu_context_create ();
26520int
26521main ()
26522{
26523return ddjvu_context_create ();
26524 ;
26525 return 0;
26526}
26527_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026528if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026529 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26530else
cristy8b350f62009-11-15 23:12:43 +000026531 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000026532fi
cristy8b350f62009-11-15 23:12:43 +000026533rm -f core conftest.err conftest.$ac_objext \
26534 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026535LIBS=$ac_check_lib_save_LIBS
26536fi
cristy8b350f62009-11-15 23:12:43 +000026537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000026538$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026539if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026540 passed=`expr $passed + 1`
26541else
26542 failed=`expr $failed + 1`
26543fi
26544
cristy8b350f62009-11-15 23:12:43 +000026545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026546$as_echo_n "checking if DJVU package is complete... " >&6; }
26547 if test $passed -gt 0; then
26548 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026550$as_echo "no -- some components failed test" >&6; }
26551 have_djvu='no (failed tests)'
26552 else
26553 DJVU_LIBS='-ldjvulibre'
26554 LIBS="$DJVU_LIBS $LIBS"
26555
cristy8b350f62009-11-15 23:12:43 +000026556$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026557
cristy8b350f62009-11-15 23:12:43 +000026558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026559$as_echo "yes" >&6; }
26560 have_djvu='yes'
26561 fi
26562 else
cristy8b350f62009-11-15 23:12:43 +000026563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026564$as_echo "no" >&6; }
26565 fi
26566fi
cristy73bd4a52010-10-05 11:24:23 +000026567 if test "$have_djvu" = 'yes'; then
26568 DJVU_DELEGATE_TRUE=
26569 DJVU_DELEGATE_FALSE='#'
26570else
26571 DJVU_DELEGATE_TRUE='#'
26572 DJVU_DELEGATE_FALSE=
26573fi
26574
cristy3ed852e2009-09-05 21:47:34 +000026575
26576
26577
26578#
cristy430a7312010-01-21 20:44:04 +000026579# Set DejaVu font directory.
26580#
26581
26582# Check whether --with-dejavu-font-dir was given.
26583if test "${with_dejavu_font_dir+set}" = set; then :
26584 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26585else
26586 with_dejavu_font_dir='default'
26587fi
26588
26589
26590if test "$with_dejavu_font_dir" != 'default'; then
26591 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26592fi
26593
26594
26595#
cristy3ed852e2009-09-05 21:47:34 +000026596# Check for FFTW delegate library.
26597#
26598
26599# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000026600if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026601 withval=$with_fftw; with_fftw=$withval
26602else
26603 with_fftw='yes'
26604fi
26605
26606
26607if test "$with_fftw" != 'yes'; then
26608 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26609fi
26610
26611have_fftw='no'
26612FFTW_LIBS=''
26613if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026615$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026617$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026619$as_echo "" >&6; }
26620 failed=0
26621 passed=0
cristy8b350f62009-11-15 23:12:43 +000026622 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26623if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026624 passed=`expr $passed + 1`
26625else
26626 failed=`expr $failed + 1`
26627fi
26628
26629
cristy8b350f62009-11-15 23:12:43 +000026630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026631$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026632if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026633 $as_echo_n "(cached) " >&6
26634else
26635 ac_check_lib_save_LIBS=$LIBS
26636LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026638/* end confdefs.h. */
26639
26640/* Override any GCC internal prototype to avoid an error.
26641 Use char because int might match the return type of a GCC
26642 builtin and then its argument prototype would still apply. */
26643#ifdef __cplusplus
26644extern "C"
26645#endif
26646char fftw_execute ();
26647int
26648main ()
26649{
26650return fftw_execute ();
26651 ;
26652 return 0;
26653}
26654_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026655if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026656 ac_cv_lib_fftw3_fftw_execute=yes
26657else
cristy8b350f62009-11-15 23:12:43 +000026658 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026659fi
cristy8b350f62009-11-15 23:12:43 +000026660rm -f core conftest.err conftest.$ac_objext \
26661 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026662LIBS=$ac_check_lib_save_LIBS
26663fi
cristy8b350f62009-11-15 23:12:43 +000026664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026665$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026666if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026667 passed=`expr $passed + 1`
26668else
26669 failed=`expr $failed + 1`
26670fi
26671
cristy8b350f62009-11-15 23:12:43 +000026672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026673$as_echo_n "checking if FFTW package is complete... " >&6; }
26674 if test $passed -gt 0; then
26675 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026677$as_echo "no -- some components failed test" >&6; }
26678 have_fftw='no (failed tests)'
26679 else
26680 FFTW_LIBS='-lfftw3'
26681 LIBS="$FFTW_LIBS $LIBS"
26682
cristy8b350f62009-11-15 23:12:43 +000026683$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026684
cristy8b350f62009-11-15 23:12:43 +000026685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026686$as_echo "yes" >&6; }
26687 have_fftw='yes'
26688 fi
26689 else
cristy8b350f62009-11-15 23:12:43 +000026690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026691$as_echo "no" >&6; }
26692 fi
26693fi
cristy73bd4a52010-10-05 11:24:23 +000026694 if test "$have_fftw" = 'yes'; then
26695 FFTW_DELEGATE_TRUE=
26696 FFTW_DELEGATE_FALSE='#'
26697else
26698 FFTW_DELEGATE_TRUE='#'
26699 FFTW_DELEGATE_FALSE=
26700fi
26701
cristy3ed852e2009-09-05 21:47:34 +000026702
26703
26704
26705#
26706# Check for FlashPIX delegate library.
26707#
26708
26709# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026710if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026711 withval=$with_fpx; with_fpx=$withval
26712else
26713 with_fpx='yes'
26714fi
26715
26716
26717if test "$with_fpx" != 'yes'; then
26718 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26719fi
26720
26721have_fpx='no'
26722FPX_LIBS=''
26723if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026725$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026727$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026729$as_echo "" >&6; }
26730 failed=0
26731 passed=0
26732 ac_ext=cpp
26733ac_cpp='$CXXCPP $CPPFLAGS'
26734ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26735ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26736ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26737
26738
cristy8b350f62009-11-15 23:12:43 +000026739ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26740if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026741 passed=`expr $passed + 1`
26742else
26743 failed=`expr $failed + 1`
26744fi
26745
26746
cristy8b350f62009-11-15 23:12:43 +000026747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026748$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026749if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026750 $as_echo_n "(cached) " >&6
26751else
26752 ac_check_lib_save_LIBS=$LIBS
26753LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026755/* end confdefs.h. */
26756
26757/* Override any GCC internal prototype to avoid an error.
26758 Use char because int might match the return type of a GCC
26759 builtin and then its argument prototype would still apply. */
26760#ifdef __cplusplus
26761extern "C"
26762#endif
26763char FPX_OpenImageByFilename ();
26764int
26765main ()
26766{
26767return FPX_OpenImageByFilename ();
26768 ;
26769 return 0;
26770}
26771_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026772if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026773 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26774else
cristy8b350f62009-11-15 23:12:43 +000026775 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026776fi
cristy8b350f62009-11-15 23:12:43 +000026777rm -f core conftest.err conftest.$ac_objext \
26778 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026779LIBS=$ac_check_lib_save_LIBS
26780fi
cristy8b350f62009-11-15 23:12:43 +000026781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026782$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026783if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026784 passed=`expr $passed + 1`
26785else
26786 failed=`expr $failed + 1`
26787fi
26788
26789 ac_ext=c
26790ac_cpp='$CPP $CPPFLAGS'
26791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26793ac_compiler_gnu=$ac_cv_c_compiler_gnu
26794
cristy8b350f62009-11-15 23:12:43 +000026795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026796$as_echo_n "checking if FlashPIX package is complete... " >&6; }
26797 if test $passed -gt 0; then
26798 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026800$as_echo "no -- some components failed test" >&6; }
26801 have_fpx='no (failed tests)'
26802 else
26803 FPX_LIBS='-lfpx'
26804
cristy8b350f62009-11-15 23:12:43 +000026805$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026806
cristy8b350f62009-11-15 23:12:43 +000026807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026808$as_echo "yes" >&6; }
26809 have_fpx='yes'
26810 PERLMAINCC="$CXX"
26811 fi
26812 else
cristy8b350f62009-11-15 23:12:43 +000026813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026814$as_echo "no" >&6; }
26815 fi
26816fi
cristy73bd4a52010-10-05 11:24:23 +000026817 if test "$have_fpx" = 'yes'; then
26818 FPX_DELEGATE_TRUE=
26819 FPX_DELEGATE_FALSE='#'
26820else
26821 FPX_DELEGATE_TRUE='#'
26822 FPX_DELEGATE_FALSE=
26823fi
26824
cristy3ed852e2009-09-05 21:47:34 +000026825
26826
26827
26828#
26829# Check for fontconfig delegate library.
26830#
26831
26832# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000026833if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026834 withval=$with_fontconfig; with_fontconfig=$withval
26835else
26836 with_fontconfig=$have_x
26837fi
26838
26839
26840if test "$with_fontconfig" != 'yes'; then
26841 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26842fi
26843
26844have_fontconfig='no'
26845FONTCONFIG_CFLAGS=""
26846FONTCONFIG_LIBS=""
26847FONTCONFIG_PKG=""
26848if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026850$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000026851
26852pkg_failed=no
26853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
26854$as_echo_n "checking for FONTCONFIG... " >&6; }
26855
26856if test -n "$FONTCONFIG_CFLAGS"; then
26857 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26858 elif test -n "$PKG_CONFIG"; then
26859 if test -n "$PKG_CONFIG" && \
26860 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
26861 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26862 ac_status=$?
26863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26864 test $ac_status = 0; }; then
26865 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26866else
26867 pkg_failed=yes
26868fi
26869 else
26870 pkg_failed=untried
26871fi
26872if test -n "$FONTCONFIG_LIBS"; then
26873 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
26874 elif test -n "$PKG_CONFIG"; then
26875 if test -n "$PKG_CONFIG" && \
26876 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
26877 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26878 ac_status=$?
26879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26880 test $ac_status = 0; }; then
26881 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
26882else
26883 pkg_failed=yes
26884fi
26885 else
26886 pkg_failed=untried
26887fi
26888
26889
26890
26891if test $pkg_failed = yes; then
26892
26893if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26894 _pkg_short_errors_supported=yes
26895else
26896 _pkg_short_errors_supported=no
26897fi
26898 if test $_pkg_short_errors_supported = yes; then
26899 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
26900 else
26901 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
26902 fi
26903 # Put the nasty error message in config.log where it belongs
26904 echo "$FONTCONFIG_PKG_ERRORS" >&5
26905
26906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26907$as_echo "no" >&6; }
26908 have_fontconfig=no
26909elif test $pkg_failed = untried; then
26910 have_fontconfig=no
26911else
26912 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
26913 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
26914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26915$as_echo "yes" >&6; }
26916 have_fontconfig=yes
26917fi
cristy8b350f62009-11-15 23:12:43 +000026918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026919$as_echo "" >&6; }
26920fi
26921
26922if test "$have_fontconfig" = 'yes'; then
26923
cristy8b350f62009-11-15 23:12:43 +000026924$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026925
cristyd09bcf92010-03-25 03:04:45 +000026926 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000026927 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000026928 fi
cristy3ed852e2009-09-05 21:47:34 +000026929fi
26930
cristy73bd4a52010-10-05 11:24:23 +000026931 if test "$have_fontconfig" = 'yes'; then
26932 FONTCONFIG_DELEGATE_TRUE=
26933 FONTCONFIG_DELEGATE_FALSE='#'
26934else
26935 FONTCONFIG_DELEGATE_TRUE='#'
26936 FONTCONFIG_DELEGATE_FALSE=
26937fi
26938
cristy3ed852e2009-09-05 21:47:34 +000026939
26940
26941
26942
26943#
26944# Check for freetype delegate library.
26945#
26946
26947# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000026948if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026949 withval=$with_freetype; with_freetype=$withval
26950else
26951 with_freetype='yes'
26952fi
26953
26954
26955
26956if test "$with_freetype" != 'yes'; then
26957 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
26958fi
26959
26960have_freetype='no'
26961FREETYPE_LIBS=''
26962if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026964$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000026966$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026968$as_echo "" >&6; }
26969 failed=0
26970 passed=0
cristy66291112009-10-03 22:44:36 +000026971 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000026972 PERSIST_CPPFLAGS="$CPPFLAGS"
26973 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
26974 :
26975 else
26976 freetype_config=''
26977 for ac_prog in freetype-config
26978do
26979 # Extract the first word of "$ac_prog", so it can be a program name with args.
26980set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026982$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026983if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026984 $as_echo_n "(cached) " >&6
26985else
26986 if test -n "$freetype_config"; then
26987 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
26988else
26989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26990for as_dir in $PATH
26991do
26992 IFS=$as_save_IFS
26993 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026994 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26996 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026998 break 2
26999 fi
27000done
cristy8b350f62009-11-15 23:12:43 +000027001 done
cristy3ed852e2009-09-05 21:47:34 +000027002IFS=$as_save_IFS
27003
27004fi
27005fi
27006freetype_config=$ac_cv_prog_freetype_config
27007if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027009$as_echo "$freetype_config" >&6; }
27010else
cristy8b350f62009-11-15 23:12:43 +000027011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027012$as_echo "no" >&6; }
27013fi
27014
27015
27016 test -n "$freetype_config" && break
27017done
27018 if test -n "$freetype_config"; then
27019 freetype_cflags=`$freetype_config --cflags`
27020 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027021 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027022 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27023 fi
27024 fi
27025
27026 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027028$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027029if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027030 $as_echo_n "(cached) " >&6
27031else
27032 ac_check_lib_save_LIBS=$LIBS
27033LIBS="-lfreetype $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 FT_Init_FreeType ();
27044int
27045main ()
27046{
27047return FT_Init_FreeType ();
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_freetype_FT_Init_FreeType=yes
27054else
cristy8b350f62009-11-15 23:12:43 +000027055 ac_cv_lib_freetype_FT_Init_FreeType=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_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027062$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027063if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027064 FREETYPE_LIBS='-lfreetype'
27065fi
27066
27067 if test "$FREETYPE_LIBS" != ''; then
27068 passed=`expr $passed + 1`
27069 else
27070 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027071 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027072 fi
27073 fi
27074
cristy8b350f62009-11-15 23:12:43 +000027075 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27076if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027077 FT2BUILD_H='#include <ft2build.h>'
27078else
27079 ft2build=''
27080fi
27081
27082
cristy8b350f62009-11-15 23:12:43 +000027083 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27084"
27085if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027086 have_freetype_h='yes'
27087else
27088 have_freetype_h='no'
27089fi
27090
27091
27092 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27093 passed=`expr $passed + 1`
27094 else
27095 failed=`expr $failed + 1`
27096 CPPFLAGS="$PERSIST_CPPFLAGS"
27097 fi
27098
cristy8b350f62009-11-15 23:12:43 +000027099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027100$as_echo_n "checking if FreeType package is complete... " >&6; }
27101 if test $passed -gt 0; then
27102 if test $failed -gt 0; then
27103 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027105$as_echo "no -- some components failed test" >&6; }
27106 have_freetype='no (failed tests)'
27107 else
27108 LIBS="$FREETYPE_LIBS $LIBS"
27109
cristy8b350f62009-11-15 23:12:43 +000027110$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027111
27112 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27113
cristy8b350f62009-11-15 23:12:43 +000027114$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027115
27116 fi
cristy8b350f62009-11-15 23:12:43 +000027117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027118$as_echo "yes" >&6; }
27119 have_freetype='yes'
27120 fi
27121 else
cristy8b350f62009-11-15 23:12:43 +000027122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027123$as_echo "no" >&6; }
27124 fi
27125fi
cristy73bd4a52010-10-05 11:24:23 +000027126 if test "$have_freetype" = 'yes'; then
27127 FREETYPE_DELEGATE_TRUE=
27128 FREETYPE_DELEGATE_FALSE='#'
27129else
27130 FREETYPE_DELEGATE_TRUE='#'
27131 FREETYPE_DELEGATE_FALSE=
27132fi
27133
cristy3ed852e2009-09-05 21:47:34 +000027134
27135
27136
27137
27138#
27139# Check for Ghostscript library or framework.
27140#
27141# Test for iapi.h & test for gsapi_new_instance in -lgs
27142# or -framework Ghostscript
27143
27144
27145# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027146if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027147 withval=$with_gslib; with_gslib=$withval
27148else
27149 with_gslib='no'
27150fi
27151
27152
cristyb7931f12009-09-25 10:22:21 +000027153gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027154if test "$with_gslib" != 'yes'; then
27155 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27156fi
27157
27158have_gslib='no'
27159GS_LIBS=''
27160if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027162$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027164$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027166$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027167 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027168 failed=0
27169 passed=0
cristy8b350f62009-11-15 23:12:43 +000027170 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27171if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027172 passed=`expr $passed + 1`
27173else
27174 failed=`expr $failed + 1`
27175fi
27176
27177
cristy8b350f62009-11-15 23:12:43 +000027178 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27179if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027180 passed=`expr $passed + 1`
27181else
27182 failed=`expr $failed + 1`
27183fi
27184
27185
cristy73bd4a52010-10-05 11:24:23 +000027186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
27187$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
27188if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
27189 $as_echo_n "(cached) " >&6
27190else
27191 ac_check_framework_save_LIBS=$LIBS
27192LIBS="-framework Ghostscript $LIBS"
27193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27194/* end confdefs.h. */
27195
27196/* Override any GCC internal prototype to avoid an error.
27197 Use char because int might match the return type of a GCC
27198 builtin and then its argument prototype would still apply. */
27199#ifdef __cplusplus
27200extern "C"
27201#endif
27202char gsapi_new_instance ();
27203int
27204main ()
27205{
27206return gsapi_new_instance ();
27207 ;
27208 return 0;
27209}
27210_ACEOF
27211if ac_fn_c_try_link "$LINENO"; then :
27212 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27213else
27214 ac_cv_framework_Ghostscript_gsapi_new_instance=no
27215fi
27216rm -f core conftest.err conftest.$ac_objext \
27217 conftest$ac_exeext conftest.$ac_ext
27218LIBS=$ac_check_framework_save_LIBS
27219fi
27220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
27221$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
27222if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
27223 framework=`expr $framework + 1`
27224else
27225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000027226$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027227if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027228 $as_echo_n "(cached) " >&6
27229else
27230 ac_check_lib_save_LIBS=$LIBS
27231LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027233/* end confdefs.h. */
27234
27235/* Override any GCC internal prototype to avoid an error.
27236 Use char because int might match the return type of a GCC
27237 builtin and then its argument prototype would still apply. */
27238#ifdef __cplusplus
27239extern "C"
27240#endif
27241char gsapi_new_instance ();
27242int
27243main ()
27244{
27245return gsapi_new_instance ();
27246 ;
27247 return 0;
27248}
27249_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027250if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027251 ac_cv_lib_gs_gsapi_new_instance=yes
27252else
cristy8b350f62009-11-15 23:12:43 +000027253 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027254fi
cristy8b350f62009-11-15 23:12:43 +000027255rm -f core conftest.err conftest.$ac_objext \
27256 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027257LIBS=$ac_check_lib_save_LIBS
27258fi
cristy8b350f62009-11-15 23:12:43 +000027259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027260$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027261if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027262 passed=`expr $passed + 1`
27263else
27264 failed=`expr $failed + 1`
27265fi
cristy73bd4a52010-10-05 11:24:23 +000027266
27267fi
cristy8b350f62009-11-15 23:12:43 +000027268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027269$as_echo_n "checking if Ghostscript package is complete... " >&6; }
27270 if test $passed -gt 0; then
27271 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027273$as_echo "no -- some components failed test" >&6; }
27274 have_gslib='no (failed tests)'
27275 else
27276 if test $framework -gt 0; then
27277 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000027278 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000027279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000027280$as_echo "yes, using framework." >&6; }
27281 else
cristy8b350f62009-11-15 23:12:43 +000027282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000027283$as_echo "yes, using library." >&6; }
27284 GS_LIBS='-lgs'
27285 fi
27286 LIBS="$GS_LIBS $LIBS"
27287
cristy8b350f62009-11-15 23:12:43 +000027288$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027289
27290 have_gslib='yes'
27291 fi
27292 else
cristy8b350f62009-11-15 23:12:43 +000027293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027294$as_echo "no" >&6; }
27295 fi
27296fi
cristy73bd4a52010-10-05 11:24:23 +000027297 if test "$have_gslib" = 'yes'; then
27298 GS_DELEGATE_TRUE=
27299 GS_DELEGATE_FALSE='#'
27300else
27301 GS_DELEGATE_TRUE='#'
27302 GS_DELEGATE_FALSE=
27303fi
27304
cristy3ed852e2009-09-05 21:47:34 +000027305
27306
27307# Set default font search path
27308
27309# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000027310if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027311 withval=$with_fontpath; with_fontpath=$withval
27312else
27313 with_fontpath=''
27314fi
27315
27316
27317if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27318 with_fontpath=''
27319else
27320
27321cat >>confdefs.h <<_ACEOF
27322#define MAGICK_FONT_PATH "$with_fontpath"
27323_ACEOF
27324
27325fi
27326if test "$with_fontpath=" != ''; then
27327 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27328fi
27329
27330# Set Ghostscript font directory
27331
27332# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027333if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027334 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27335else
27336 with_gs_font_dir='default'
27337fi
27338
27339
27340if test "$with_gs_font_dir" != 'default'; then
27341 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27342fi
27343
27344
27345#
27346# Check for GVC delegate library.
27347#
27348
27349# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000027350if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027351 withval=$with_gvc; with_gvc=$withval
27352else
27353 with_gvc='yes'
27354fi
27355
27356
27357if test "$with_gvc" != 'yes'; then
27358 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27359fi
27360
27361GVC_PKG=""
27362if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027364$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027365
27366pkg_failed=no
27367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
27368$as_echo_n "checking for GVC... " >&6; }
27369
27370if test -n "$GVC_CFLAGS"; then
27371 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27372 elif test -n "$PKG_CONFIG"; then
27373 if test -n "$PKG_CONFIG" && \
27374 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27375 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27376 ac_status=$?
27377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27378 test $ac_status = 0; }; then
27379 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27380else
27381 pkg_failed=yes
27382fi
27383 else
27384 pkg_failed=untried
27385fi
27386if test -n "$GVC_LIBS"; then
27387 pkg_cv_GVC_LIBS="$GVC_LIBS"
27388 elif test -n "$PKG_CONFIG"; then
27389 if test -n "$PKG_CONFIG" && \
27390 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27391 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27392 ac_status=$?
27393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27394 test $ac_status = 0; }; then
27395 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27396else
27397 pkg_failed=yes
27398fi
27399 else
27400 pkg_failed=untried
27401fi
27402
27403
27404
27405if test $pkg_failed = yes; then
27406
27407if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27408 _pkg_short_errors_supported=yes
27409else
27410 _pkg_short_errors_supported=no
27411fi
27412 if test $_pkg_short_errors_supported = yes; then
27413 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27414 else
27415 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27416 fi
27417 # Put the nasty error message in config.log where it belongs
27418 echo "$GVC_PKG_ERRORS" >&5
27419
27420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27421$as_echo "no" >&6; }
27422 have_gvc=no
27423elif test $pkg_failed = untried; then
27424 have_gvc=no
27425else
27426 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27427 GVC_LIBS=$pkg_cv_GVC_LIBS
27428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27429$as_echo "yes" >&6; }
27430 have_gvc=yes
27431fi
cristy8b350f62009-11-15 23:12:43 +000027432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027433$as_echo "" >&6; }
27434fi
27435
27436if test "$have_gvc" = 'yes'; then
27437
cristy8b350f62009-11-15 23:12:43 +000027438$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027439
27440 if test "$with_modules" = 'no'; then
27441 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27442 fi
27443fi
27444
cristy73bd4a52010-10-05 11:24:23 +000027445 if test "$have_gvc" = 'yes'; then
27446 GVC_DELEGATE_TRUE=
27447 GVC_DELEGATE_FALSE='#'
27448else
27449 GVC_DELEGATE_TRUE='#'
27450 GVC_DELEGATE_FALSE=
27451fi
27452
cristy3ed852e2009-09-05 21:47:34 +000027453
27454
27455
27456
27457#
27458# Check for JBIG delegate library.
27459#
27460
27461
27462# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000027463if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027464 withval=$with_jbig; with_jbig=$withval
27465else
27466 with_jbig='yes'
27467fi
27468
27469
27470have_jbig='no'
27471JBIG_LIBS=''
27472if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027474$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027476$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027478$as_echo "" >&6; }
27479 failed=0
27480 passed=0
cristy8b350f62009-11-15 23:12:43 +000027481 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27482if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027483 passed=`expr $passed + 1`
27484else
27485 failed=`expr $failed + 1`
27486fi
27487
27488
cristy8b350f62009-11-15 23:12:43 +000027489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000027490$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027491if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027492 $as_echo_n "(cached) " >&6
27493else
27494 ac_check_lib_save_LIBS=$LIBS
27495LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027497/* end confdefs.h. */
27498
27499/* Override any GCC internal prototype to avoid an error.
27500 Use char because int might match the return type of a GCC
27501 builtin and then its argument prototype would still apply. */
27502#ifdef __cplusplus
27503extern "C"
27504#endif
27505char jbg_dec_init ();
27506int
27507main ()
27508{
27509return jbg_dec_init ();
27510 ;
27511 return 0;
27512}
27513_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027514if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027515 ac_cv_lib_jbig_jbg_dec_init=yes
27516else
cristy8b350f62009-11-15 23:12:43 +000027517 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000027518fi
cristy8b350f62009-11-15 23:12:43 +000027519rm -f core conftest.err conftest.$ac_objext \
27520 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027521LIBS=$ac_check_lib_save_LIBS
27522fi
cristy8b350f62009-11-15 23:12:43 +000027523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000027524$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027525if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027526 passed=`expr $passed + 1`
27527else
27528 failed=`expr $failed + 1`
27529fi
27530
cristy8b350f62009-11-15 23:12:43 +000027531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027532$as_echo_n "checking if JBIG package is complete... " >&6; }
27533 if test $passed -gt 0; then
27534 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027536$as_echo "no -- some components failed test" >&6; }
27537 have_jbig='no (failed tests)'
27538 else
27539 JBIG_LIBS='-ljbig'
27540 LIBS="$JBIG_LIBS $LIBS"
27541
cristy8b350f62009-11-15 23:12:43 +000027542$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027543
cristy8b350f62009-11-15 23:12:43 +000027544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027545$as_echo "yes" >&6; }
27546 have_jbig='yes'
27547 fi
27548 else
cristy8b350f62009-11-15 23:12:43 +000027549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027550$as_echo "no" >&6; }
27551 fi
27552fi
cristy73bd4a52010-10-05 11:24:23 +000027553 if test "$have_jbig" = 'yes'; then
27554 JBIG_DELEGATE_TRUE=
27555 JBIG_DELEGATE_FALSE='#'
27556else
27557 JBIG_DELEGATE_TRUE='#'
27558 JBIG_DELEGATE_FALSE=
27559fi
27560
cristy3ed852e2009-09-05 21:47:34 +000027561
27562
27563
27564#
27565# Check for JPEG delegate library.
27566#
27567
27568# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000027569if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027570 withval=$with_jpeg; with_jpeg=$withval
27571else
27572 with_jpeg='yes'
27573fi
27574
27575
27576if test "$with_jpeg" != 'yes'; then
27577 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27578fi
27579
27580have_jpeg='no'
27581JPEG_LIBS=''
27582if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027584$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027586$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027588$as_echo "" >&6; }
27589 failed=0
27590 passed=0
cristy8b350f62009-11-15 23:12:43 +000027591 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27592if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027593 passed=`expr $passed + 1`
27594else
27595 failed=`expr $failed + 1`
27596fi
27597
27598
cristy8b350f62009-11-15 23:12:43 +000027599 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27600if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027601 passed=`expr $passed + 1`
27602else
27603 failed=`expr $failed + 1`
27604fi
27605
27606
cristy8b350f62009-11-15 23:12:43 +000027607 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27608if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027609 passed=`expr $passed + 1`
27610else
27611 failed=`expr $failed + 1`
27612fi
27613
27614
cristy8b350f62009-11-15 23:12:43 +000027615 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27616if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027617 passed=`expr $passed + 1`
27618else
27619 failed=`expr $failed + 1`
27620fi
27621
27622
cristy8b350f62009-11-15 23:12:43 +000027623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027624$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027625if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027626 $as_echo_n "(cached) " >&6
27627else
27628 ac_check_lib_save_LIBS=$LIBS
27629LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027631/* end confdefs.h. */
27632
27633/* Override any GCC internal prototype to avoid an error.
27634 Use char because int might match the return type of a GCC
27635 builtin and then its argument prototype would still apply. */
27636#ifdef __cplusplus
27637extern "C"
27638#endif
27639char jpeg_read_header ();
27640int
27641main ()
27642{
27643return jpeg_read_header ();
27644 ;
27645 return 0;
27646}
27647_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027648if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027649 ac_cv_lib_jpeg_jpeg_read_header=yes
27650else
cristy8b350f62009-11-15 23:12:43 +000027651 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027652fi
cristy8b350f62009-11-15 23:12:43 +000027653rm -f core conftest.err conftest.$ac_objext \
27654 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027655LIBS=$ac_check_lib_save_LIBS
27656fi
cristy8b350f62009-11-15 23:12:43 +000027657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027658$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027659if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027660 passed=`expr $passed + 1`
27661else
27662 failed=`expr $failed + 1`
27663fi
27664
27665
27666# Test for compatible JPEG library
27667if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027669$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027670if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027671 $as_echo_n "(cached) " >&6
27672else
cristy8b350f62009-11-15 23:12:43 +000027673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027674/* end confdefs.h. */
27675#include <stdio.h>
27676#include <stdlib.h>
27677#include <jpeglib.h>
27678
27679int
27680main ()
27681{
27682
27683#if JPEG_LIB_VERSION < 62
27684#error IJG JPEG library must be version 6b or newer!
27685#endif
27686return 0;
27687
27688 ;
27689 return 0;
27690}
27691_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027692if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027693 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27694else
cristy8b350f62009-11-15 23:12:43 +000027695 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027696fi
cristy3ed852e2009-09-05 21:47:34 +000027697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27698fi
cristy8b350f62009-11-15 23:12:43 +000027699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027700$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27701fi
cristy8b350f62009-11-15 23:12:43 +000027702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027703$as_echo_n "checking if JPEG package is complete... " >&6; }
27704 if test $passed -gt 0; then
27705 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027707$as_echo "no -- some components failed test" >&6; }
27708 have_jpeg='no (failed tests)'
27709 else
27710 JPEG_LIBS='-ljpeg'
27711 LIBS="$JPEG_LIBS $LIBS"
27712
cristy8b350f62009-11-15 23:12:43 +000027713$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027714
cristy8b350f62009-11-15 23:12:43 +000027715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027716$as_echo "yes" >&6; }
27717 have_jpeg='yes'
27718 fi
27719 else
cristy8b350f62009-11-15 23:12:43 +000027720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027721$as_echo "no" >&6; }
27722 fi
27723fi
cristy73bd4a52010-10-05 11:24:23 +000027724 if test "$have_jpeg" = 'yes'; then
27725 JPEG_DELEGATE_TRUE=
27726 JPEG_DELEGATE_FALSE='#'
27727else
27728 JPEG_DELEGATE_TRUE='#'
27729 JPEG_DELEGATE_FALSE=
27730fi
27731
cristy3ed852e2009-09-05 21:47:34 +000027732
27733
27734
27735#
27736# Check for JPEG Version 2 delegate library.
27737#
27738
27739# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027740if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027741 withval=$with_jp2; with_jp2=$withval
27742else
27743 with_jp2='yes'
27744fi
27745
27746
27747if test "$with_jp2" != 'yes'; then
27748 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27749fi
27750
27751have_jp2='no'
27752JP2_LIBS=''
27753if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027755$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027757$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027759$as_echo "" >&6; }
27760 failed=0
27761 passed=0
cristy8b350f62009-11-15 23:12:43 +000027762 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27763if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027764 passed=`expr $passed + 1`
27765else
27766 failed=`expr $failed + 1`
27767fi
27768
27769
cristy8b350f62009-11-15 23:12:43 +000027770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027771$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027772if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027773 $as_echo_n "(cached) " >&6
27774else
27775 ac_check_lib_save_LIBS=$LIBS
27776LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027778/* end confdefs.h. */
27779
27780/* Override any GCC internal prototype to avoid an error.
27781 Use char because int might match the return type of a GCC
27782 builtin and then its argument prototype would still apply. */
27783#ifdef __cplusplus
27784extern "C"
27785#endif
27786char jas_stream_fopen ();
27787int
27788main ()
27789{
27790return jas_stream_fopen ();
27791 ;
27792 return 0;
27793}
27794_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027795if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027796 ac_cv_lib_jasper_jas_stream_fopen=yes
27797else
cristy8b350f62009-11-15 23:12:43 +000027798 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000027799fi
cristy8b350f62009-11-15 23:12:43 +000027800rm -f core conftest.err conftest.$ac_objext \
27801 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027802LIBS=$ac_check_lib_save_LIBS
27803fi
cristy8b350f62009-11-15 23:12:43 +000027804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027805$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027806if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027807 passed=`expr $passed + 1`
27808else
27809 failed=`expr $failed + 1`
27810fi
27811
cristy8b350f62009-11-15 23:12:43 +000027812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027813$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27814 if test $passed -gt 0; then
27815 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027817$as_echo "no -- some components failed test" >&6; }
27818 have_jp2='no (failed tests)'
27819 else
27820 JP2_LIBS='-ljasper'
27821 LIBS="$JP2_LIBS $LIBS"
27822
cristy8b350f62009-11-15 23:12:43 +000027823$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027824
cristy8b350f62009-11-15 23:12:43 +000027825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027826$as_echo "yes" >&6; }
27827 have_jp2='yes'
27828 fi
27829 else
cristy8b350f62009-11-15 23:12:43 +000027830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027831$as_echo "no" >&6; }
27832 fi
27833fi
cristy73bd4a52010-10-05 11:24:23 +000027834 if test "$have_jp2" = 'yes'; then
27835 JP2_DELEGATE_TRUE=
27836 JP2_DELEGATE_FALSE='#'
27837else
27838 JP2_DELEGATE_TRUE='#'
27839 JP2_DELEGATE_FALSE=
27840fi
27841
cristy3ed852e2009-09-05 21:47:34 +000027842
27843
27844
27845#
27846# Check for LCMS delegate library.
27847#
cristy71203402010-06-18 13:12:03 +000027848# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000027849
27850# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000027851if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027852 withval=$with_lcms; with_lcms=$withval
27853else
27854 with_lcms='yes'
27855fi
27856
cristy71203402010-06-18 13:12:03 +000027857if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000027858 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27859fi
27860
cristy71203402010-06-18 13:12:03 +000027861# Disable LCMS2.
27862
27863# Check whether --with-lcms2 was given.
27864if test "${with_lcms2+set}" = set; then :
27865 withval=$with_lcms2; with_lcms2=$withval
27866else
27867 with_lcms2='yes'
27868fi
27869
27870if test "$with_lcms2" != 'yes' ; then
27871 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
27872fi
27873
27874have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000027875LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000027876if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027878$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000027879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
27880$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027882$as_echo "" >&6; }
27883 failed=0
27884 passed=0
27885 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000027886
27887 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000027888 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
27889if test "x$ac_cv_header_lcms2_h" = x""yes; then :
27890 have_lcms_header='yes'
27891fi
27892
27893
27894 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000027895
27896$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
27897
cristy71203402010-06-18 13:12:03 +000027898 passed=`expr $passed + 1`
27899 fi
27900
27901 # Check for <lcms2/lcms2.h)
27902 if test "$have_lcms_header" != 'yes'; then
27903 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
27904if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000027905 have_lcms_header='yes'
27906fi
27907
27908
cristy71203402010-06-18 13:12:03 +000027909 if test "$have_lcms_header" = 'yes'; then
27910 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000027911
cristy71203402010-06-18 13:12:03 +000027912$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000027913
cristy71203402010-06-18 13:12:03 +000027914 fi
cristyd09bcf92010-03-25 03:04:45 +000027915 fi
cristy71203402010-06-18 13:12:03 +000027916
27917 # Failed to find lcms header?
27918 if test "$have_lcms_header" != 'yes'; then
27919 failed=`expr $failed + 1`
27920 fi
27921
27922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
27923$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
27924if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
cristyd09bcf92010-03-25 03:04:45 +000027925 $as_echo_n "(cached) " >&6
27926else
27927 ac_check_lib_save_LIBS=$LIBS
27928LIBS="-llcms2 $LIBS"
27929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27930/* end confdefs.h. */
27931
27932/* Override any GCC internal prototype to avoid an error.
27933 Use char because int might match the return type of a GCC
27934 builtin and then its argument prototype would still apply. */
27935#ifdef __cplusplus
27936extern "C"
27937#endif
cristy71203402010-06-18 13:12:03 +000027938char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000027939int
27940main ()
27941{
cristy71203402010-06-18 13:12:03 +000027942return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000027943 ;
27944 return 0;
27945}
27946_ACEOF
27947if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000027948 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000027949else
cristy71203402010-06-18 13:12:03 +000027950 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000027951fi
27952rm -f core conftest.err conftest.$ac_objext \
27953 conftest$ac_exeext conftest.$ac_ext
27954LIBS=$ac_check_lib_save_LIBS
27955fi
cristy71203402010-06-18 13:12:03 +000027956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
27957$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
27958if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000027959 passed=`expr $passed + 1`
27960else
27961 failed=`expr $failed + 1`
27962fi
27963
cristy71203402010-06-18 13:12:03 +000027964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
27965$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000027966 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000027967 if test $failed -gt 0; then
27968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000027969$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000027970 have_lcms2='no (failed tests)'
27971 else
27972 LCMS_LIBS='-llcms2'
27973 LIBS="$LCMS_LIBS $LIBS"
27974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000027975$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000027976 have_lcms2='yes'
27977 fi
cristyd09bcf92010-03-25 03:04:45 +000027978 else
cristy71203402010-06-18 13:12:03 +000027979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000027980$as_echo "no" >&6; }
27981 fi
27982fi
27983
cristy71203402010-06-18 13:12:03 +000027984#
27985# Check for LCMS v1 (1.11 or later)
27986#
27987if test $have_lcms2 = 'yes'; then
27988 with_lcms='no'
27989fi
27990
27991have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000027992if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000027993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27994$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000027995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
27996$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000027997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27998$as_echo "" >&6; }
27999 failed=0
28000 passed=0
28001 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028002
28003 # Check for <lcms.h>
28004 if test "$have_lcms_header" != 'yes'; then
28005 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristy8b350f62009-11-15 23:12:43 +000028006if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028007 have_lcms_header='yes'
28008fi
28009
28010
cristy71203402010-06-18 13:12:03 +000028011 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028012 passed=`expr $passed + 1`
28013
cristy8b350f62009-11-15 23:12:43 +000028014$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028015
cristy71203402010-06-18 13:12:03 +000028016 fi
28017 fi
28018
28019 # Check for <lcms/lcms.h>
28020 if test "$have_lcms_header" != 'yes'; then
28021 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
cristy8b350f62009-11-15 23:12:43 +000028022if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028023 have_lcms_header='yes'
28024fi
28025
28026
cristy71203402010-06-18 13:12:03 +000028027 if test "$have_lcms_header" = 'yes'; then
28028 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028029
cristy8b350f62009-11-15 23:12:43 +000028030$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028031
cristy71203402010-06-18 13:12:03 +000028032 fi
cristy3ed852e2009-09-05 21:47:34 +000028033 fi
cristy71203402010-06-18 13:12:03 +000028034
28035 # Failed to find lcms header?
28036 if test "$have_lcms_header" != 'yes'; then
28037 failed=`expr $failed + 1`
28038 fi
28039
28040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28041$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28042if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028043 $as_echo_n "(cached) " >&6
28044else
28045 ac_check_lib_save_LIBS=$LIBS
28046LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028048/* end confdefs.h. */
28049
28050/* Override any GCC internal prototype to avoid an error.
28051 Use char because int might match the return type of a GCC
28052 builtin and then its argument prototype would still apply. */
28053#ifdef __cplusplus
28054extern "C"
28055#endif
cristy71203402010-06-18 13:12:03 +000028056char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028057int
28058main ()
28059{
cristy71203402010-06-18 13:12:03 +000028060return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028061 ;
28062 return 0;
28063}
28064_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028065if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028066 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000028067else
cristy71203402010-06-18 13:12:03 +000028068 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000028069fi
cristy8b350f62009-11-15 23:12:43 +000028070rm -f core conftest.err conftest.$ac_objext \
28071 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028072LIBS=$ac_check_lib_save_LIBS
28073fi
cristy71203402010-06-18 13:12:03 +000028074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28075$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28076if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028077 passed=`expr $passed + 1`
28078else
28079 failed=`expr $failed + 1`
28080fi
28081
cristy8b350f62009-11-15 23:12:43 +000028082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028083$as_echo_n "checking if LCMS package is complete... " >&6; }
28084 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028085 if test $failed -gt 0; then
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028087$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028088 have_lcms='no (failed tests)'
28089 else
28090 LCMS_LIBS='-llcms'
28091 LIBS="$LCMS_LIBS $LIBS"
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028093$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028094 have_lcms='yes'
28095 fi
cristy3ed852e2009-09-05 21:47:34 +000028096 else
cristy71203402010-06-18 13:12:03 +000028097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028098$as_echo "no" >&6; }
28099 fi
28100fi
cristy71203402010-06-18 13:12:03 +000028101
cristy73bd4a52010-10-05 11:24:23 +000028102 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28103 LCMS_DELEGATE_TRUE=
28104 LCMS_DELEGATE_FALSE='#'
28105else
28106 LCMS_DELEGATE_TRUE='#'
28107 LCMS_DELEGATE_FALSE=
28108fi
28109
cristy71203402010-06-18 13:12:03 +000028110if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28111
28112$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28113
28114fi
28115
cristy3ed852e2009-09-05 21:47:34 +000028116
28117
28118
28119#
28120# Check for the LQR (Liquid Rescale) delegate library.
28121#
28122
28123# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028124if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028125 withval=$with_lqr; with_lqr=$withval
28126else
28127 with_lqr='yes'
28128fi
28129
28130
28131if test "$with_lqr" != 'yes'; then
28132 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28133fi
28134
28135have_lqr='no'
28136LQR_CFLAGS=""
28137LQR_LIBS=""
28138LQR_PKG=""
28139if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028141$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028142
28143pkg_failed=no
28144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
28145$as_echo_n "checking for LQR... " >&6; }
28146
28147if test -n "$LQR_CFLAGS"; then
28148 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28149 elif test -n "$PKG_CONFIG"; then
28150 if test -n "$PKG_CONFIG" && \
28151 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28152 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28153 ac_status=$?
28154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28155 test $ac_status = 0; }; then
28156 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28157else
28158 pkg_failed=yes
28159fi
28160 else
28161 pkg_failed=untried
28162fi
28163if test -n "$LQR_LIBS"; then
28164 pkg_cv_LQR_LIBS="$LQR_LIBS"
28165 elif test -n "$PKG_CONFIG"; then
28166 if test -n "$PKG_CONFIG" && \
28167 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28168 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28169 ac_status=$?
28170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28171 test $ac_status = 0; }; then
28172 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28173else
28174 pkg_failed=yes
28175fi
28176 else
28177 pkg_failed=untried
28178fi
28179
28180
28181
28182if test $pkg_failed = yes; then
28183
28184if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28185 _pkg_short_errors_supported=yes
28186else
28187 _pkg_short_errors_supported=no
28188fi
28189 if test $_pkg_short_errors_supported = yes; then
28190 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28191 else
28192 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28193 fi
28194 # Put the nasty error message in config.log where it belongs
28195 echo "$LQR_PKG_ERRORS" >&5
28196
28197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28198$as_echo "no" >&6; }
28199 have_lqr=no
28200elif test $pkg_failed = untried; then
28201 have_lqr=no
28202else
28203 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28204 LQR_LIBS=$pkg_cv_LQR_LIBS
28205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28206$as_echo "yes" >&6; }
28207 have_lqr=yes
28208fi
cristy8b350f62009-11-15 23:12:43 +000028209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028210$as_echo "" >&6; }
28211fi
28212
28213if test "$have_lqr" = 'yes'; then
28214
cristy8b350f62009-11-15 23:12:43 +000028215$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028216
28217 CFLAGS="$LQR_CFLAGS $CFLAGS"
28218fi
28219
cristy73bd4a52010-10-05 11:24:23 +000028220 if test "$have_lqr" = 'yes'; then
28221 LQR_DELEGATE_TRUE=
28222 LQR_DELEGATE_FALSE='#'
28223else
28224 LQR_DELEGATE_TRUE='#'
28225 LQR_DELEGATE_FALSE=
28226fi
28227
cristy3ed852e2009-09-05 21:47:34 +000028228
28229
28230
28231
28232#
28233# Check for the OpenEXR delegate library.
28234#
28235
28236# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000028237if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028238 withval=$with_openexr; with_openexr=$withval
28239else
28240 with_openexr='yes'
28241fi
28242
28243
28244if test "$with_openexr" != 'yes'; then
28245 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28246fi
28247
28248have_openexr='no'
28249OPENEXR_CFLAGS=""
28250OPENEXR_LIBS=""
28251OPENEXR_PKG=""
28252if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028254$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028255
28256pkg_failed=no
28257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
28258$as_echo_n "checking for OPENEXR... " >&6; }
28259
28260if test -n "$OPENEXR_CFLAGS"; then
28261 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28262 elif test -n "$PKG_CONFIG"; then
28263 if test -n "$PKG_CONFIG" && \
28264 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28265 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28266 ac_status=$?
28267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28268 test $ac_status = 0; }; then
28269 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28270else
28271 pkg_failed=yes
28272fi
28273 else
28274 pkg_failed=untried
28275fi
28276if test -n "$OPENEXR_LIBS"; then
28277 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28278 elif test -n "$PKG_CONFIG"; then
28279 if test -n "$PKG_CONFIG" && \
28280 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28281 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28282 ac_status=$?
28283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28284 test $ac_status = 0; }; then
28285 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28286else
28287 pkg_failed=yes
28288fi
28289 else
28290 pkg_failed=untried
28291fi
28292
28293
28294
28295if test $pkg_failed = yes; then
28296
28297if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28298 _pkg_short_errors_supported=yes
28299else
28300 _pkg_short_errors_supported=no
28301fi
28302 if test $_pkg_short_errors_supported = yes; then
28303 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28304 else
28305 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28306 fi
28307 # Put the nasty error message in config.log where it belongs
28308 echo "$OPENEXR_PKG_ERRORS" >&5
28309
28310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28311$as_echo "no" >&6; }
28312 have_openexr=no
28313elif test $pkg_failed = untried; then
28314 have_openexr=no
28315else
28316 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28317 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
28318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28319$as_echo "yes" >&6; }
28320 have_openexr=yes
28321fi
cristy8b350f62009-11-15 23:12:43 +000028322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028323$as_echo "" >&6; }
28324fi
28325
28326if test "$have_openexr" = 'yes'; then
28327
cristy8b350f62009-11-15 23:12:43 +000028328$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028329
28330 if test "$with_modules" = 'no'; then
28331 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28332 fi
28333fi
28334
cristy73bd4a52010-10-05 11:24:23 +000028335 if test "$have_openexr" = 'yes'; then
28336 OPENEXR_DELEGATE_TRUE=
28337 OPENEXR_DELEGATE_FALSE='#'
28338else
28339 OPENEXR_DELEGATE_TRUE='#'
28340 OPENEXR_DELEGATE_FALSE=
28341fi
28342
cristy3ed852e2009-09-05 21:47:34 +000028343
28344
28345
28346
28347#
28348# Check for PNG delegate library.
28349#
28350
28351# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000028352if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028353 withval=$with_png; with_png=$withval
28354else
28355 with_png='yes'
28356fi
28357
28358
28359if test "$with_png" != 'yes'; then
28360 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28361fi
28362
28363have_png='no'
28364PNG_LIBS=''
28365if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028367$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028369$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028371$as_echo "" >&6; }
28372 failed=0
28373 passed=0
cristy8b350f62009-11-15 23:12:43 +000028374 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28375if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028376 passed=`expr $passed + 1`
28377else
28378 failed=`expr $failed + 1`
28379fi
28380
28381
cristy8b350f62009-11-15 23:12:43 +000028382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000028383$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028384if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028385 $as_echo_n "(cached) " >&6
28386else
28387 ac_check_lib_save_LIBS=$LIBS
28388LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028390/* end confdefs.h. */
28391
28392/* Override any GCC internal prototype to avoid an error.
28393 Use char because int might match the return type of a GCC
28394 builtin and then its argument prototype would still apply. */
28395#ifdef __cplusplus
28396extern "C"
28397#endif
28398char png_get_io_ptr ();
28399int
28400main ()
28401{
28402return png_get_io_ptr ();
28403 ;
28404 return 0;
28405}
28406_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028407if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028408 ac_cv_lib_png_png_get_io_ptr=yes
28409else
cristy8b350f62009-11-15 23:12:43 +000028410 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000028411fi
cristy8b350f62009-11-15 23:12:43 +000028412rm -f core conftest.err conftest.$ac_objext \
28413 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028414LIBS=$ac_check_lib_save_LIBS
28415fi
cristy8b350f62009-11-15 23:12:43 +000028416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000028417$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028418if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028419 passed=`expr $passed + 1`
28420else
28421 failed=`expr $failed + 1`
28422fi
28423
cristy8b350f62009-11-15 23:12:43 +000028424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028425$as_echo_n "checking if PNG package is complete... " >&6; }
28426 if test $passed -gt 0; then
28427 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028429$as_echo "no -- some components failed test" >&6; }
28430 have_png='no (failed tests)'
28431 else
28432 PNG_LIBS='-lpng'
28433 LIBS="$PNG_LIBS $LIBS"
28434
cristy8b350f62009-11-15 23:12:43 +000028435$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028436
cristy8b350f62009-11-15 23:12:43 +000028437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028438$as_echo "yes" >&6; }
28439 have_png='yes'
28440 fi
28441 else
cristy8b350f62009-11-15 23:12:43 +000028442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028443$as_echo "no" >&6; }
28444 fi
28445fi
cristy73bd4a52010-10-05 11:24:23 +000028446 if test "$have_png" = 'yes'; then
28447 PNG_DELEGATE_TRUE=
28448 PNG_DELEGATE_FALSE='#'
28449else
28450 PNG_DELEGATE_TRUE='#'
28451 PNG_DELEGATE_FALSE=
28452fi
28453
cristy3ed852e2009-09-05 21:47:34 +000028454
28455
28456
28457#
28458# Check for RSVG delegate library.
28459#
28460
28461# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000028462if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028463 withval=$with_rsvg; with_rsvg=$withval
28464else
28465 with_rsvg=$have_x
28466fi
28467
28468
28469if test "$with_rsvg" != 'yes'; then
28470 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28471fi
28472
28473have_rsvg='no'
28474have_cairo='no'
28475RSVG_CFLAGS=""
28476RSVG_LIBS=""
28477RSVG_PKG=""
28478if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028480$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028481
28482pkg_failed=no
28483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
28484$as_echo_n "checking for RSVG... " >&6; }
28485
28486if test -n "$RSVG_CFLAGS"; then
28487 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28488 elif test -n "$PKG_CONFIG"; then
28489 if test -n "$PKG_CONFIG" && \
28490 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28491 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28492 ac_status=$?
28493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28494 test $ac_status = 0; }; then
28495 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28496else
28497 pkg_failed=yes
28498fi
28499 else
28500 pkg_failed=untried
28501fi
28502if test -n "$RSVG_LIBS"; then
28503 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28504 elif test -n "$PKG_CONFIG"; then
28505 if test -n "$PKG_CONFIG" && \
28506 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28507 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28508 ac_status=$?
28509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28510 test $ac_status = 0; }; then
28511 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28512else
28513 pkg_failed=yes
28514fi
28515 else
28516 pkg_failed=untried
28517fi
28518
28519
28520
28521if test $pkg_failed = yes; then
28522
28523if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28524 _pkg_short_errors_supported=yes
28525else
28526 _pkg_short_errors_supported=no
28527fi
28528 if test $_pkg_short_errors_supported = yes; then
28529 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28530 else
28531 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28532 fi
28533 # Put the nasty error message in config.log where it belongs
28534 echo "$RSVG_PKG_ERRORS" >&5
28535
28536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28537$as_echo "no" >&6; }
28538 have_rsvg=no
28539elif test $pkg_failed = untried; then
28540 have_rsvg=no
28541else
28542 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28543 RSVG_LIBS=$pkg_cv_RSVG_LIBS
28544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28545$as_echo "yes" >&6; }
28546 have_rsvg=yes
28547fi
cristy8b350f62009-11-15 23:12:43 +000028548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028549$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028550
28551pkg_failed=no
28552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
28553$as_echo_n "checking for CAIRO_SVG... " >&6; }
28554
28555if test -n "$CAIRO_SVG_CFLAGS"; then
28556 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28557 elif test -n "$PKG_CONFIG"; then
28558 if test -n "$PKG_CONFIG" && \
28559 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28560 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28561 ac_status=$?
28562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28563 test $ac_status = 0; }; then
28564 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28565else
28566 pkg_failed=yes
28567fi
28568 else
28569 pkg_failed=untried
28570fi
28571if test -n "$CAIRO_SVG_LIBS"; then
28572 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28573 elif test -n "$PKG_CONFIG"; then
28574 if test -n "$PKG_CONFIG" && \
28575 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28576 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28577 ac_status=$?
28578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28579 test $ac_status = 0; }; then
28580 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28581else
28582 pkg_failed=yes
28583fi
28584 else
28585 pkg_failed=untried
28586fi
28587
28588
28589
28590if test $pkg_failed = yes; then
28591
28592if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28593 _pkg_short_errors_supported=yes
28594else
28595 _pkg_short_errors_supported=no
28596fi
28597 if test $_pkg_short_errors_supported = yes; then
28598 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28599 else
28600 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28601 fi
28602 # Put the nasty error message in config.log where it belongs
28603 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28604
28605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28606$as_echo "no" >&6; }
28607 have_cairo=no
28608elif test $pkg_failed = untried; then
28609 have_cairo=no
28610else
28611 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28612 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
28613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28614$as_echo "yes" >&6; }
28615 have_cairo=yes
28616fi
cristy8b350f62009-11-15 23:12:43 +000028617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028618$as_echo "" >&6; }
28619fi
28620
28621if test "$have_rsvg" = 'yes'; then
28622
cristy8b350f62009-11-15 23:12:43 +000028623$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028624
28625 if test "$with_modules" = 'no'; then
28626 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28627 fi
28628fi
28629
28630if test "$have_cairo" = 'yes'; then
28631
cristy8b350f62009-11-15 23:12:43 +000028632$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028633
28634 if test "$with_modules" = 'no'; then
28635 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28636 fi
28637fi
28638
cristy73bd4a52010-10-05 11:24:23 +000028639 if test "$have_rsvg" = 'yes'; then
28640 RSVG_DELEGATE_TRUE=
28641 RSVG_DELEGATE_FALSE='#'
28642else
28643 RSVG_DELEGATE_TRUE='#'
28644 RSVG_DELEGATE_FALSE=
28645fi
28646
28647 if test "$have_cairo" = 'yes'; then
28648 CAIRO_DELEGATE_TRUE=
28649 CAIRO_DELEGATE_FALSE='#'
28650else
28651 CAIRO_DELEGATE_TRUE='#'
28652 CAIRO_DELEGATE_FALSE=
28653fi
28654
cristy3ed852e2009-09-05 21:47:34 +000028655
28656
28657
28658
28659#
28660# Check for TIFF delegate library.
28661#
28662
28663# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000028664if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028665 withval=$with_tiff; with_tiff=$withval
28666else
28667 with_tiff='yes'
28668fi
28669
28670
28671if test "$with_tiff" != 'yes'; then
28672 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28673fi
28674
28675have_tiff='no'
28676TIFF_LIBS=''
28677if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028679$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028681$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028683$as_echo "" >&6; }
28684 failed=0
28685 passed=0
cristy8b350f62009-11-15 23:12:43 +000028686 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28687if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028688 passed=`expr $passed + 1`
28689else
28690 failed=`expr $failed + 1`
28691fi
28692
28693
cristy8b350f62009-11-15 23:12:43 +000028694 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28695if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028696 passed=`expr $passed + 1`
28697else
28698 failed=`expr $failed + 1`
28699fi
28700
28701
cristy8b350f62009-11-15 23:12:43 +000028702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028703$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028704if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028705 $as_echo_n "(cached) " >&6
28706else
28707 ac_check_lib_save_LIBS=$LIBS
28708LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028710/* end confdefs.h. */
28711
28712/* Override any GCC internal prototype to avoid an error.
28713 Use char because int might match the return type of a GCC
28714 builtin and then its argument prototype would still apply. */
28715#ifdef __cplusplus
28716extern "C"
28717#endif
28718char TIFFOpen ();
28719int
28720main ()
28721{
28722return TIFFOpen ();
28723 ;
28724 return 0;
28725}
28726_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028727if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028728 ac_cv_lib_tiff_TIFFOpen=yes
28729else
cristy8b350f62009-11-15 23:12:43 +000028730 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028731fi
cristy8b350f62009-11-15 23:12:43 +000028732rm -f core conftest.err conftest.$ac_objext \
28733 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028734LIBS=$ac_check_lib_save_LIBS
28735fi
cristy8b350f62009-11-15 23:12:43 +000028736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028737$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028738if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028739 passed=`expr $passed + 1`
28740else
28741 failed=`expr $failed + 1`
28742fi
28743
cristy8b350f62009-11-15 23:12:43 +000028744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028745$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028746if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028747 $as_echo_n "(cached) " >&6
28748else
28749 ac_check_lib_save_LIBS=$LIBS
28750LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028752/* end confdefs.h. */
28753
28754/* Override any GCC internal prototype to avoid an error.
28755 Use char because int might match the return type of a GCC
28756 builtin and then its argument prototype would still apply. */
28757#ifdef __cplusplus
28758extern "C"
28759#endif
28760char TIFFClientOpen ();
28761int
28762main ()
28763{
28764return TIFFClientOpen ();
28765 ;
28766 return 0;
28767}
28768_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028769if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028770 ac_cv_lib_tiff_TIFFClientOpen=yes
28771else
cristy8b350f62009-11-15 23:12:43 +000028772 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028773fi
cristy8b350f62009-11-15 23:12:43 +000028774rm -f core conftest.err conftest.$ac_objext \
28775 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028776LIBS=$ac_check_lib_save_LIBS
28777fi
cristy8b350f62009-11-15 23:12:43 +000028778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028779$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028780if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028781 passed=`expr $passed + 1`
28782else
28783 failed=`expr $failed + 1`
28784fi
28785
cristyb97f1002010-07-26 14:02:57 +000028786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
28787$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
28788if test "${ac_cv_lib_tiff_TIFFIsBigEndian+set}" = set; then :
28789 $as_echo_n "(cached) " >&6
28790else
28791 ac_check_lib_save_LIBS=$LIBS
28792LIBS="-ltiff $LIBS"
28793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28794/* end confdefs.h. */
28795
28796/* Override any GCC internal prototype to avoid an error.
28797 Use char because int might match the return type of a GCC
28798 builtin and then its argument prototype would still apply. */
28799#ifdef __cplusplus
28800extern "C"
28801#endif
28802char TIFFIsBigEndian ();
28803int
28804main ()
28805{
28806return TIFFIsBigEndian ();
28807 ;
28808 return 0;
28809}
28810_ACEOF
28811if ac_fn_c_try_link "$LINENO"; then :
28812 ac_cv_lib_tiff_TIFFIsBigEndian=yes
28813else
28814 ac_cv_lib_tiff_TIFFIsBigEndian=no
28815fi
28816rm -f core conftest.err conftest.$ac_objext \
28817 conftest$ac_exeext conftest.$ac_ext
28818LIBS=$ac_check_lib_save_LIBS
28819fi
28820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
28821$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
28822if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = x""yes; then :
28823 passed=`expr $passed + 1`
28824else
28825 failed=`expr $failed + 1`
28826fi
28827
cristy8b350f62009-11-15 23:12:43 +000028828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028829$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028830if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028831 $as_echo_n "(cached) " >&6
28832else
28833 ac_check_lib_save_LIBS=$LIBS
28834LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028836/* end confdefs.h. */
28837
28838/* Override any GCC internal prototype to avoid an error.
28839 Use char because int might match the return type of a GCC
28840 builtin and then its argument prototype would still apply. */
28841#ifdef __cplusplus
28842extern "C"
28843#endif
28844char TIFFIsByteSwapped ();
28845int
28846main ()
28847{
28848return TIFFIsByteSwapped ();
28849 ;
28850 return 0;
28851}
28852_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028853if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028854 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28855else
cristy8b350f62009-11-15 23:12:43 +000028856 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000028857fi
cristy8b350f62009-11-15 23:12:43 +000028858rm -f core conftest.err conftest.$ac_objext \
28859 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028860LIBS=$ac_check_lib_save_LIBS
28861fi
cristy8b350f62009-11-15 23:12:43 +000028862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000028863$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028864if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028865 passed=`expr $passed + 1`
28866else
28867 failed=`expr $failed + 1`
28868fi
28869
cristy8b350f62009-11-15 23:12:43 +000028870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028871$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028872if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028873 $as_echo_n "(cached) " >&6
28874else
28875 ac_check_lib_save_LIBS=$LIBS
28876LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028878/* end confdefs.h. */
28879
28880/* Override any GCC internal prototype to avoid an error.
28881 Use char because int might match the return type of a GCC
28882 builtin and then its argument prototype would still apply. */
28883#ifdef __cplusplus
28884extern "C"
28885#endif
28886char TIFFReadRGBATile ();
28887int
28888main ()
28889{
28890return TIFFReadRGBATile ();
28891 ;
28892 return 0;
28893}
28894_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028895if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028896 ac_cv_lib_tiff_TIFFReadRGBATile=yes
28897else
cristy8b350f62009-11-15 23:12:43 +000028898 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000028899fi
cristy8b350f62009-11-15 23:12:43 +000028900rm -f core conftest.err conftest.$ac_objext \
28901 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028902LIBS=$ac_check_lib_save_LIBS
28903fi
cristy8b350f62009-11-15 23:12:43 +000028904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000028905$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028906if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028907 passed=`expr $passed + 1`
28908else
28909 failed=`expr $failed + 1`
28910fi
28911
cristy8b350f62009-11-15 23:12:43 +000028912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028913$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028914if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028915 $as_echo_n "(cached) " >&6
28916else
28917 ac_check_lib_save_LIBS=$LIBS
28918LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028920/* end confdefs.h. */
28921
28922/* Override any GCC internal prototype to avoid an error.
28923 Use char because int might match the return type of a GCC
28924 builtin and then its argument prototype would still apply. */
28925#ifdef __cplusplus
28926extern "C"
28927#endif
28928char TIFFReadRGBAStrip ();
28929int
28930main ()
28931{
28932return TIFFReadRGBAStrip ();
28933 ;
28934 return 0;
28935}
28936_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028937if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028938 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
28939else
cristy8b350f62009-11-15 23:12:43 +000028940 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000028941fi
cristy8b350f62009-11-15 23:12:43 +000028942rm -f core conftest.err conftest.$ac_objext \
28943 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028944LIBS=$ac_check_lib_save_LIBS
28945fi
cristy8b350f62009-11-15 23:12:43 +000028946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000028947$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028948if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028949 passed=`expr $passed + 1`
28950else
28951 failed=`expr $failed + 1`
28952fi
28953
cristy8b350f62009-11-15 23:12:43 +000028954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028955$as_echo_n "checking if TIFF package is complete... " >&6; }
28956 if test $passed -gt 0; then
28957 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028959$as_echo "no -- some components failed test" >&6; }
28960 have_tiff='no (failed tests)'
28961 else
28962 TIFF_LIBS='-ltiff'
28963 LIBS="$TIFF_LIBS $LIBS"
28964
cristy8b350f62009-11-15 23:12:43 +000028965$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028966
cristy8b350f62009-11-15 23:12:43 +000028967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028968$as_echo "yes" >&6; }
28969 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000028970 for ac_header in tiffconf.h
28971do :
28972 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
28973if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028974 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028975#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000028976_ACEOF
28977
28978fi
28979
28980done
28981
cristy8b350f62009-11-15 23:12:43 +000028982 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000028983 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
28984 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000028985do :
28986 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28987ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000028988if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000028989 cat >>confdefs.h <<_ACEOF
28990#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28991_ACEOF
28992
28993fi
28994done
28995
28996 fi
28997 else
cristy8b350f62009-11-15 23:12:43 +000028998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028999$as_echo "no" >&6; }
29000 fi
29001fi
cristy73bd4a52010-10-05 11:24:23 +000029002 if test "$have_tiff" = 'yes'; then
29003 TIFF_DELEGATE_TRUE=
29004 TIFF_DELEGATE_FALSE='#'
29005else
29006 TIFF_DELEGATE_TRUE='#'
29007 TIFF_DELEGATE_FALSE=
29008fi
29009
cristy3ed852e2009-09-05 21:47:34 +000029010
29011
29012
29013#
29014# Set Windows font directory.
29015#
29016
29017# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029018if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029019 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29020else
29021 with_windows_font_dir=''
29022fi
29023
29024if test "$with_windows_font_dir" != '' ; then
29025 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29026fi
29027
29028
29029#
29030# Check for WMF delegate library.
29031#
29032
29033# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000029034if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029035 withval=$with_wmf; with_wmf=$withval
29036else
cristy8d63d1d2010-01-06 20:38:37 +000029037 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000029038fi
29039
29040
29041if test "$with_wmf" != 'yes'; then
29042 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29043fi
29044
29045have_wmf='no'
29046WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000029047if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029049$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029051$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029053$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000029054 failed=0
29055 passed=0
29056 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29057if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29058 passed=`expr $passed + 1`
29059else
29060 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029061fi
29062
29063
cristy735e8942010-04-02 20:32:57 +000029064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29065$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29066if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029067 $as_echo_n "(cached) " >&6
29068else
29069 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000029070LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029072/* end confdefs.h. */
29073
29074/* Override any GCC internal prototype to avoid an error.
29075 Use char because int might match the return type of a GCC
29076 builtin and then its argument prototype would still apply. */
29077#ifdef __cplusplus
29078extern "C"
29079#endif
cristy735e8942010-04-02 20:32:57 +000029080char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029081int
29082main ()
29083{
cristy735e8942010-04-02 20:32:57 +000029084return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029085 ;
29086 return 0;
29087}
29088_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029089if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000029090 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000029091else
cristy735e8942010-04-02 20:32:57 +000029092 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000029093fi
cristy8b350f62009-11-15 23:12:43 +000029094rm -f core conftest.err conftest.$ac_objext \
29095 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029096LIBS=$ac_check_lib_save_LIBS
29097fi
cristy735e8942010-04-02 20:32:57 +000029098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29099$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29100if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29101 passed=`expr $passed + 1`
29102else
29103 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029104fi
29105
cristy735e8942010-04-02 20:32:57 +000029106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29107$as_echo_n "checking if WMF package is complete... " >&6; }
29108 if test $passed -gt 0; then
29109 if test $failed -gt 0; then
29110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29111$as_echo "no -- some components failed test" >&6; }
29112 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000029113 else
cristy735e8942010-04-02 20:32:57 +000029114 WMF_LIBS='-lwmf -lwmflite'
29115 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029116
cristy8b350f62009-11-15 23:12:43 +000029117$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029118
cristy735e8942010-04-02 20:32:57 +000029119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029120$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000029121 have_wmf='yes'
29122 fi
cristy3ed852e2009-09-05 21:47:34 +000029123 else
cristy8b350f62009-11-15 23:12:43 +000029124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029125$as_echo "no" >&6; }
29126 fi
29127fi
cristy73bd4a52010-10-05 11:24:23 +000029128 if test "$have_wmf" = 'yes'; then
29129 WMF_DELEGATE_TRUE=
29130 WMF_DELEGATE_FALSE='#'
29131else
29132 WMF_DELEGATE_TRUE='#'
29133 WMF_DELEGATE_FALSE=
29134fi
29135
cristy3ed852e2009-09-05 21:47:34 +000029136
29137
29138
29139
cristy735e8942010-04-02 20:32:57 +000029140
cristy3ed852e2009-09-05 21:47:34 +000029141#
29142# Check for XML delegate library.
29143#
29144
29145# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000029146if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029147 withval=$with_xml; with_xml=$withval
29148else
29149 with_xml=$have_x
29150fi
29151
29152
29153if test "$with_xml" != 'yes' ; then
29154 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29155fi
29156
29157have_xml='no'
29158XML_LIBS=''
29159if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029161$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000029163$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029165$as_echo "" >&6; }
29166 PERSIST_LDFLAGS=$LDFLAGS
29167 PERSIST_CPPFLAGS=$CPPFLAGS
29168 xml2_config=''
29169 for ac_prog in xml2-config
29170do
29171 # Extract the first word of "$ac_prog", so it can be a program name with args.
29172set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029174$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029175if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029176 $as_echo_n "(cached) " >&6
29177else
29178 if test -n "$xml2_config"; then
29179 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29180else
29181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29182for as_dir in $PATH
29183do
29184 IFS=$as_save_IFS
29185 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029186 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29188 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029190 break 2
29191 fi
29192done
cristy8b350f62009-11-15 23:12:43 +000029193 done
cristy3ed852e2009-09-05 21:47:34 +000029194IFS=$as_save_IFS
29195
29196fi
29197fi
29198xml2_config=$ac_cv_prog_xml2_config
29199if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000029200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000029201$as_echo "$xml2_config" >&6; }
29202else
cristy8b350f62009-11-15 23:12:43 +000029203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029204$as_echo "no" >&6; }
29205fi
29206
29207
29208 test -n "$xml2_config" && break
29209done
29210 if test -n "$xml2_config"; then
29211 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29212 # the shared library installed under /usr/lib, whereas the package
29213 # installs itself under $prefix/libxml and $prefix/lib.
29214 xml2_prefix=`xml2-config --prefix`
29215 if test -d "${xml2_prefix}/include/libxml2"; then
29216 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29217 fi
29218 if test "${xml2_prefix}" != '/usr'; then
29219 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29220 fi
29221 fi
29222 failed=0
29223 passed=0
cristy8b350f62009-11-15 23:12:43 +000029224 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29225if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029226 passed=`expr $passed + 1`
29227else
29228 failed=`expr $failed + 1`
29229fi
29230
29231
cristy8b350f62009-11-15 23:12:43 +000029232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029233$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029234if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029235 $as_echo_n "(cached) " >&6
29236else
29237 ac_check_lib_save_LIBS=$LIBS
29238LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029240/* end confdefs.h. */
29241
29242/* Override any GCC internal prototype to avoid an error.
29243 Use char because int might match the return type of a GCC
29244 builtin and then its argument prototype would still apply. */
29245#ifdef __cplusplus
29246extern "C"
29247#endif
29248char xmlParseExternalEntity ();
29249int
29250main ()
29251{
29252return xmlParseExternalEntity ();
29253 ;
29254 return 0;
29255}
29256_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029257if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029258 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29259else
cristy8b350f62009-11-15 23:12:43 +000029260 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000029261fi
cristy8b350f62009-11-15 23:12:43 +000029262rm -f core conftest.err conftest.$ac_objext \
29263 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029264LIBS=$ac_check_lib_save_LIBS
29265fi
cristy8b350f62009-11-15 23:12:43 +000029266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000029267$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029268if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029269 passed=`expr $passed + 1`
29270else
29271 failed=`expr $failed + 1`
29272fi
29273
cristy8b350f62009-11-15 23:12:43 +000029274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029275$as_echo_n "checking if XML package is complete... " >&6; }
29276 if test $passed -gt 0; then
29277 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029279$as_echo "no -- some components failed test" >&6; }
29280 have_xml='no (failed tests)'
29281 LDFLAGS="$PERSIST_LDFLAGS"
29282 CPPFLAGS="$PERSIST_CPPFLAGS"
29283 else
29284 XML_LIBS='-lxml2'
29285 LIBS="$XML_LIBS $LIBS"
29286
cristy8b350f62009-11-15 23:12:43 +000029287$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029288
cristy8b350f62009-11-15 23:12:43 +000029289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029290$as_echo "yes" >&6; }
29291 have_xml='yes'
29292 fi
29293 else
cristy8b350f62009-11-15 23:12:43 +000029294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029295$as_echo "no" >&6; }
29296 fi
29297fi
cristy73bd4a52010-10-05 11:24:23 +000029298 if test "$have_xml" = 'yes'; then
29299 XML_DELEGATE_TRUE=
29300 XML_DELEGATE_FALSE='#'
29301else
29302 XML_DELEGATE_TRUE='#'
29303 XML_DELEGATE_FALSE=
29304fi
29305
cristy3ed852e2009-09-05 21:47:34 +000029306
29307
29308
29309# Substitute compiler name to build/link PerlMagick
29310#
29311
29312
29313#
29314# Configure install Paths
29315#
29316
29317# Subdirectory under lib to place ImageMagick lib files
29318LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29319
29320cat >>confdefs.h <<_ACEOF
29321#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29322_ACEOF
29323
29324
29325# Path to ImageMagick bin directory
29326EXECUTABLE_PATH="${BIN_DIR}"
29327DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29328case "${build_os}" in
29329 mingw* )
29330 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29331 ;;
29332esac
29333
29334cat >>confdefs.h <<_ACEOF
29335#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29336_ACEOF
29337
29338
29339
29340# Path to ImageMagick lib
29341LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29342DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29343case "${build_os}" in
29344 mingw* )
29345 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29346 ;;
29347esac
29348
29349cat >>confdefs.h <<_ACEOF
29350#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29351_ACEOF
29352
29353
29354
29355# Subdirectory under lib to place ImageMagick configuration files
29356CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29357
29358cat >>confdefs.h <<_ACEOF
29359#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29360_ACEOF
29361
29362CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29363DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29364case "${build_os}" in
29365 mingw* )
29366 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29367 ;;
29368esac
29369
29370cat >>confdefs.h <<_ACEOF
29371#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29372_ACEOF
29373
29374
29375
29376#
29377# Subdirectory under lib to place ImageMagick coder module files
29378CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29379
29380cat >>confdefs.h <<_ACEOF
29381#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29382_ACEOF
29383
29384CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29385DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29386case "${build_os}" in
29387 mingw* )
29388 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29389 ;;
29390esac
29391
29392cat >>confdefs.h <<_ACEOF
29393#define CODER_PATH "$DEFINE_CODER_PATH"
29394_ACEOF
29395
29396
29397
29398#
29399# Subdirectory under lib to place ImageMagick filter module files
29400FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29401
29402cat >>confdefs.h <<_ACEOF
29403#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29404_ACEOF
29405
29406FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29407DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29408case "${build_os}" in
29409 mingw* )
29410 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29411 ;;
29412esac
29413
29414cat >>confdefs.h <<_ACEOF
29415#define FILTER_PATH "$DEFINE_FILTER_PATH"
29416_ACEOF
29417
29418
29419
29420#
29421# Path to ImageMagick documentation files
29422DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29423DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29424DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29425case "${build_os}" in
29426 mingw* )
29427 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29428 ;;
29429esac
29430
29431cat >>confdefs.h <<_ACEOF
29432#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29433_ACEOF
29434
29435
29436
29437#
29438# Path to ImageMagick share files
29439SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29440SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29441DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29442case "${build_os}" in
29443 mingw* )
29444 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29445 ;;
29446esac
29447
29448cat >>confdefs.h <<_ACEOF
29449#define SHARE_PATH "$DEFINE_SHARE_PATH"
29450_ACEOF
29451
29452
29453
29454# Subdirectory under share to place ImageMagick configuration files
29455SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29456
29457cat >>confdefs.h <<_ACEOF
29458#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29459_ACEOF
29460
29461SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29462DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29463case "${build_os}" in
29464 mingw* )
29465 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29466 ;;
29467esac
29468
29469cat >>confdefs.h <<_ACEOF
29470#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29471_ACEOF
29472
29473
29474
29475#
29476# program_transform_name is formed for use in a Makefile, so create a
29477# modified version for use in a shell script.
29478configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29479
29480# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000029481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029482$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029484$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029486$as_echo "" >&6; }
29487AutotraceDecodeDelegateDefault='autotrace'
29488AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000029489BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000029490BZIPDelegateDefault='bzip2'
29491BrowseDelegateDefault='xdg-open'
29492CGMDecodeDelegateDefault='ralcgm'
29493CatDelegateDefault='cat'
29494DNGDecodeDelegateDefault='ufraw-batch'
29495GVCDecodeDelegateDefault='dot'
29496DVIDecodeDelegateDefault='dvips'
29497EchoDelegateDefault='echo'
29498EditorDelegateDefault='xterm'
29499FIGDecodeDelegateDefault='fig2dev'
29500ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29501DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29502MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29503GnuplotDecodeDelegateDefault='gnuplot'
29504HDRDecodeDelegateDefault='ra_pfm'
29505HPGLDecodeDelegateDefault='hp2xx'
29506HTMLDecodeDelegateDefault='html2ps'
29507ILBMDecodeDelegateDefault='ilbmtoppm'
29508ILBMEncodeDelegateDefault='ppmtoilbm'
29509LPDelegateDefault='lp'
29510LPRDelegateDefault='lpr'
29511LZWDecodeDelegateDefault='uncompress'
29512LZWEncodeDelegateDefault='compress'
29513LaunchDelegateDefault='gimp'
29514MANDelegateDefault='groff'
29515MPEGDecodeDelegateDefault='ffmpeg'
29516MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000029517MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000029518MVDelegateDefault='mv'
29519PCLDelegateDefault='pcl6'
29520PGPDecodeDelegateDefault='pgpv'
29521POVDelegateDefault='povray'
29522if test "$native_win32_build" = 'yes'; then
29523 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000029524elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029525 PSDelegateDefault='gsc'
29526else
29527 PSDelegateDefault='gs'
29528fi
29529RLEEncodeDelegateDefault='rawtorle'
29530RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000029531RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000029532SCANDecodeDelegateDefault='scanimage'
29533TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000029534UniconvertorDelegateDefault='uniconvertor'
cristy23f7a922010-10-11 00:27:48 +000029535WEBPDelegateDefault='webpconv'
cristy3ed852e2009-09-05 21:47:34 +000029536WMFDecodeDelegateDefault='wmf2eps'
29537WWWDecodeDelegateDefault='curl'
29538XPSDelegateDefault='gxps'
29539ZipDelegateDefault='gzip'
29540
29541# Search for delegates
29542# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29543set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029545$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029546if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029547 $as_echo_n "(cached) " >&6
29548else
29549 case $AutotraceDecodeDelegate in
29550 [\\/]* | ?:[\\/]*)
29551 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29552 ;;
29553 *)
29554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29555for as_dir in $PATH
29556do
29557 IFS=$as_save_IFS
29558 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029559 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29561 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029563 break 2
29564 fi
29565done
cristy8b350f62009-11-15 23:12:43 +000029566 done
cristy3ed852e2009-09-05 21:47:34 +000029567IFS=$as_save_IFS
29568
29569 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29570 ;;
29571esac
29572fi
29573AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29574if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029576$as_echo "$AutotraceDecodeDelegate" >&6; }
29577else
cristy8b350f62009-11-15 23:12:43 +000029578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029579$as_echo "no" >&6; }
29580fi
29581
29582
29583# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29584set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029586$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029587if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029588 $as_echo_n "(cached) " >&6
29589else
29590 case $AVIDecodeDelegate in
29591 [\\/]* | ?:[\\/]*)
29592 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29593 ;;
29594 *)
29595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29596for as_dir in $PATH
29597do
29598 IFS=$as_save_IFS
29599 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029600 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29602 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029604 break 2
29605 fi
29606done
cristy8b350f62009-11-15 23:12:43 +000029607 done
cristy3ed852e2009-09-05 21:47:34 +000029608IFS=$as_save_IFS
29609
29610 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29611 ;;
29612esac
29613fi
29614AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29615if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029617$as_echo "$AVIDecodeDelegate" >&6; }
29618else
cristy8b350f62009-11-15 23:12:43 +000029619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029620$as_echo "no" >&6; }
29621fi
29622
29623
29624# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29625set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029627$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029628if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029629 $as_echo_n "(cached) " >&6
29630else
29631 case $BlenderDecodeDelegate in
29632 [\\/]* | ?:[\\/]*)
29633 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29634 ;;
29635 *)
29636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29637for as_dir in $PATH
29638do
29639 IFS=$as_save_IFS
29640 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029641 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29643 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029645 break 2
29646 fi
29647done
cristy8b350f62009-11-15 23:12:43 +000029648 done
cristy3ed852e2009-09-05 21:47:34 +000029649IFS=$as_save_IFS
29650
29651 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29652 ;;
29653esac
29654fi
29655BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29656if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029658$as_echo "$BlenderDecodeDelegate" >&6; }
29659else
cristy8b350f62009-11-15 23:12:43 +000029660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029661$as_echo "no" >&6; }
29662fi
29663
29664
29665# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29666set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029668$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029669if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029670 $as_echo_n "(cached) " >&6
29671else
29672 case $BZIPDelegate in
29673 [\\/]* | ?:[\\/]*)
29674 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29675 ;;
29676 *)
29677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29678for as_dir in $PATH
29679do
29680 IFS=$as_save_IFS
29681 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029682 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29684 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029686 break 2
29687 fi
29688done
cristy8b350f62009-11-15 23:12:43 +000029689 done
cristy3ed852e2009-09-05 21:47:34 +000029690IFS=$as_save_IFS
29691
29692 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29693 ;;
29694esac
29695fi
29696BZIPDelegate=$ac_cv_path_BZIPDelegate
29697if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029699$as_echo "$BZIPDelegate" >&6; }
29700else
cristy8b350f62009-11-15 23:12:43 +000029701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029702$as_echo "no" >&6; }
29703fi
29704
29705
29706# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29707set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029709$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029710if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029711 $as_echo_n "(cached) " >&6
29712else
29713 case $BrowseDelegate in
29714 [\\/]* | ?:[\\/]*)
29715 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29716 ;;
29717 *)
29718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29719for as_dir in $PATH
29720do
29721 IFS=$as_save_IFS
29722 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029723 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29725 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029727 break 2
29728 fi
29729done
cristy8b350f62009-11-15 23:12:43 +000029730 done
cristy3ed852e2009-09-05 21:47:34 +000029731IFS=$as_save_IFS
29732
29733 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29734 ;;
29735esac
29736fi
29737BrowseDelegate=$ac_cv_path_BrowseDelegate
29738if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029740$as_echo "$BrowseDelegate" >&6; }
29741else
cristy8b350f62009-11-15 23:12:43 +000029742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029743$as_echo "no" >&6; }
29744fi
29745
29746
29747# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29748set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029750$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029751if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029752 $as_echo_n "(cached) " >&6
29753else
29754 case $CGMDecodeDelegate in
29755 [\\/]* | ?:[\\/]*)
29756 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29757 ;;
29758 *)
29759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29760for as_dir in $PATH
29761do
29762 IFS=$as_save_IFS
29763 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029764 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29766 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029768 break 2
29769 fi
29770done
cristy8b350f62009-11-15 23:12:43 +000029771 done
cristy3ed852e2009-09-05 21:47:34 +000029772IFS=$as_save_IFS
29773
29774 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29775 ;;
29776esac
29777fi
29778CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29779if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029781$as_echo "$CGMDecodeDelegate" >&6; }
29782else
cristy8b350f62009-11-15 23:12:43 +000029783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029784$as_echo "no" >&6; }
29785fi
29786
29787
29788# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29789set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029791$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029792if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029793 $as_echo_n "(cached) " >&6
29794else
29795 case $CatDelegate in
29796 [\\/]* | ?:[\\/]*)
29797 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29798 ;;
29799 *)
29800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29801for as_dir in $PATH
29802do
29803 IFS=$as_save_IFS
29804 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029805 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29807 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029809 break 2
29810 fi
29811done
cristy8b350f62009-11-15 23:12:43 +000029812 done
cristy3ed852e2009-09-05 21:47:34 +000029813IFS=$as_save_IFS
29814
29815 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29816 ;;
29817esac
29818fi
29819CatDelegate=$ac_cv_path_CatDelegate
29820if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029822$as_echo "$CatDelegate" >&6; }
29823else
cristy8b350f62009-11-15 23:12:43 +000029824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029825$as_echo "no" >&6; }
29826fi
29827
29828
29829# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29830set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029832$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029833if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029834 $as_echo_n "(cached) " >&6
29835else
29836 case $DNGDecodeDelegate in
29837 [\\/]* | ?:[\\/]*)
29838 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29839 ;;
29840 *)
29841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29842for as_dir in $PATH
29843do
29844 IFS=$as_save_IFS
29845 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029846 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29848 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029850 break 2
29851 fi
29852done
cristy8b350f62009-11-15 23:12:43 +000029853 done
cristy3ed852e2009-09-05 21:47:34 +000029854IFS=$as_save_IFS
29855
29856 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29857 ;;
29858esac
29859fi
29860DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29861if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029863$as_echo "$DNGDecodeDelegate" >&6; }
29864else
cristy8b350f62009-11-15 23:12:43 +000029865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029866$as_echo "no" >&6; }
29867fi
29868
29869
29870# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29871set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029873$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029874if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029875 $as_echo_n "(cached) " >&6
29876else
29877 case $GVCDecodeDelegate in
29878 [\\/]* | ?:[\\/]*)
29879 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29880 ;;
29881 *)
29882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29883for as_dir in $PATH
29884do
29885 IFS=$as_save_IFS
29886 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029887 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29889 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029891 break 2
29892 fi
29893done
cristy8b350f62009-11-15 23:12:43 +000029894 done
cristy3ed852e2009-09-05 21:47:34 +000029895IFS=$as_save_IFS
29896
29897 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29898 ;;
29899esac
29900fi
29901GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29902if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029904$as_echo "$GVCDecodeDelegate" >&6; }
29905else
cristy8b350f62009-11-15 23:12:43 +000029906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029907$as_echo "no" >&6; }
29908fi
29909
29910
29911# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29912set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029914$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029915if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029916 $as_echo_n "(cached) " >&6
29917else
29918 case $DVIDecodeDelegate in
29919 [\\/]* | ?:[\\/]*)
29920 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29921 ;;
29922 *)
29923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29924for as_dir in $PATH
29925do
29926 IFS=$as_save_IFS
29927 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029928 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29930 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029932 break 2
29933 fi
29934done
cristy8b350f62009-11-15 23:12:43 +000029935 done
cristy3ed852e2009-09-05 21:47:34 +000029936IFS=$as_save_IFS
29937
29938 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
29939 ;;
29940esac
29941fi
29942DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
29943if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029945$as_echo "$DVIDecodeDelegate" >&6; }
29946else
cristy8b350f62009-11-15 23:12:43 +000029947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029948$as_echo "no" >&6; }
29949fi
29950
29951
29952# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
29953set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029955$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029956if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029957 $as_echo_n "(cached) " >&6
29958else
29959 case $EchoDelegate in
29960 [\\/]* | ?:[\\/]*)
29961 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
29962 ;;
29963 *)
29964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29965for as_dir in $PATH
29966do
29967 IFS=$as_save_IFS
29968 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029969 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29971 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029973 break 2
29974 fi
29975done
cristy8b350f62009-11-15 23:12:43 +000029976 done
cristy3ed852e2009-09-05 21:47:34 +000029977IFS=$as_save_IFS
29978
29979 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
29980 ;;
29981esac
29982fi
29983EchoDelegate=$ac_cv_path_EchoDelegate
29984if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029986$as_echo "$EchoDelegate" >&6; }
29987else
cristy8b350f62009-11-15 23:12:43 +000029988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029989$as_echo "no" >&6; }
29990fi
29991
29992
29993# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
29994set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029996$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029997if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029998 $as_echo_n "(cached) " >&6
29999else
30000 case $EditorDelegate in
30001 [\\/]* | ?:[\\/]*)
30002 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30003 ;;
30004 *)
30005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30006for as_dir in $PATH
30007do
30008 IFS=$as_save_IFS
30009 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030010 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30012 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030014 break 2
30015 fi
30016done
cristy8b350f62009-11-15 23:12:43 +000030017 done
cristy3ed852e2009-09-05 21:47:34 +000030018IFS=$as_save_IFS
30019
30020 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30021 ;;
30022esac
30023fi
30024EditorDelegate=$ac_cv_path_EditorDelegate
30025if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030027$as_echo "$EditorDelegate" >&6; }
30028else
cristy8b350f62009-11-15 23:12:43 +000030029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030030$as_echo "no" >&6; }
30031fi
30032
30033
30034# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30035set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030037$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030038if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030039 $as_echo_n "(cached) " >&6
30040else
30041 case $FIGDecodeDelegate in
30042 [\\/]* | ?:[\\/]*)
30043 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30044 ;;
30045 *)
30046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30047for as_dir in $PATH
30048do
30049 IFS=$as_save_IFS
30050 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030051 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30053 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030055 break 2
30056 fi
30057done
cristy8b350f62009-11-15 23:12:43 +000030058 done
cristy3ed852e2009-09-05 21:47:34 +000030059IFS=$as_save_IFS
30060
30061 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30062 ;;
30063esac
30064fi
30065FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30066if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030068$as_echo "$FIGDecodeDelegate" >&6; }
30069else
cristy8b350f62009-11-15 23:12:43 +000030070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030071$as_echo "no" >&6; }
30072fi
30073
30074
30075# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30076set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030078$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030079if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030080 $as_echo_n "(cached) " >&6
30081else
30082 case $ConvertDelegate in
30083 [\\/]* | ?:[\\/]*)
30084 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30085 ;;
30086 *)
30087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30088for as_dir in $PATH
30089do
30090 IFS=$as_save_IFS
30091 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030092 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30094 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030096 break 2
30097 fi
30098done
cristy8b350f62009-11-15 23:12:43 +000030099 done
cristy3ed852e2009-09-05 21:47:34 +000030100IFS=$as_save_IFS
30101
30102 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30103 ;;
30104esac
30105fi
30106ConvertDelegate=$ac_cv_path_ConvertDelegate
30107if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030109$as_echo "$ConvertDelegate" >&6; }
30110else
cristy8b350f62009-11-15 23:12:43 +000030111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030112$as_echo "no" >&6; }
30113fi
30114
30115
30116# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30117set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030119$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030120if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030121 $as_echo_n "(cached) " >&6
30122else
30123 case $DisplayDelegate in
30124 [\\/]* | ?:[\\/]*)
30125 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30126 ;;
30127 *)
30128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30129for as_dir in $PATH
30130do
30131 IFS=$as_save_IFS
30132 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030133 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30135 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030137 break 2
30138 fi
30139done
cristy8b350f62009-11-15 23:12:43 +000030140 done
cristy3ed852e2009-09-05 21:47:34 +000030141IFS=$as_save_IFS
30142
30143 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30144 ;;
30145esac
30146fi
30147DisplayDelegate=$ac_cv_path_DisplayDelegate
30148if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030150$as_echo "$DisplayDelegate" >&6; }
30151else
cristy8b350f62009-11-15 23:12:43 +000030152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030153$as_echo "no" >&6; }
30154fi
30155
30156
30157# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30158set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030160$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030161if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030162 $as_echo_n "(cached) " >&6
30163else
30164 case $MogrifyDelegate in
30165 [\\/]* | ?:[\\/]*)
30166 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30167 ;;
30168 *)
30169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30170for as_dir in $PATH
30171do
30172 IFS=$as_save_IFS
30173 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030174 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30176 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030178 break 2
30179 fi
30180done
cristy8b350f62009-11-15 23:12:43 +000030181 done
cristy3ed852e2009-09-05 21:47:34 +000030182IFS=$as_save_IFS
30183
30184 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30185 ;;
30186esac
30187fi
30188MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30189if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030191$as_echo "$MogrifyDelegate" >&6; }
30192else
cristy8b350f62009-11-15 23:12:43 +000030193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030194$as_echo "no" >&6; }
30195fi
30196
30197
30198# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30199set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030201$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030202if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030203 $as_echo_n "(cached) " >&6
30204else
30205 case $GnuplotDecodeDelegate in
30206 [\\/]* | ?:[\\/]*)
30207 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30208 ;;
30209 *)
30210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30211for as_dir in $PATH
30212do
30213 IFS=$as_save_IFS
30214 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030215 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30217 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030219 break 2
30220 fi
30221done
cristy8b350f62009-11-15 23:12:43 +000030222 done
cristy3ed852e2009-09-05 21:47:34 +000030223IFS=$as_save_IFS
30224
30225 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30226 ;;
30227esac
30228fi
30229GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30230if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030232$as_echo "$GnuplotDecodeDelegate" >&6; }
30233else
cristy8b350f62009-11-15 23:12:43 +000030234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030235$as_echo "no" >&6; }
30236fi
30237
30238
30239# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30240set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030242$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030243if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030244 $as_echo_n "(cached) " >&6
30245else
30246 case $HDRDecodeDelegate in
30247 [\\/]* | ?:[\\/]*)
30248 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30249 ;;
30250 *)
30251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30252for as_dir in $PATH
30253do
30254 IFS=$as_save_IFS
30255 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030256 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30258 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030260 break 2
30261 fi
30262done
cristy8b350f62009-11-15 23:12:43 +000030263 done
cristy3ed852e2009-09-05 21:47:34 +000030264IFS=$as_save_IFS
30265
30266 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30267 ;;
30268esac
30269fi
30270HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30271if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030273$as_echo "$HDRDecodeDelegate" >&6; }
30274else
cristy8b350f62009-11-15 23:12:43 +000030275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030276$as_echo "no" >&6; }
30277fi
30278
30279
30280# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30281set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030283$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030284if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030285 $as_echo_n "(cached) " >&6
30286else
30287 case $HPGLDecodeDelegate in
30288 [\\/]* | ?:[\\/]*)
30289 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30290 ;;
30291 *)
30292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30293for as_dir in $PATH
30294do
30295 IFS=$as_save_IFS
30296 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030297 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30299 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030301 break 2
30302 fi
30303done
cristy8b350f62009-11-15 23:12:43 +000030304 done
cristy3ed852e2009-09-05 21:47:34 +000030305IFS=$as_save_IFS
30306
30307 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30308 ;;
30309esac
30310fi
30311HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30312if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030314$as_echo "$HPGLDecodeDelegate" >&6; }
30315else
cristy8b350f62009-11-15 23:12:43 +000030316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030317$as_echo "no" >&6; }
30318fi
30319
30320
30321# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30322set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030324$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030325if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030326 $as_echo_n "(cached) " >&6
30327else
30328 case $HTMLDecodeDelegate in
30329 [\\/]* | ?:[\\/]*)
30330 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30331 ;;
30332 *)
30333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30334for as_dir in $PATH
30335do
30336 IFS=$as_save_IFS
30337 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030338 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30340 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030342 break 2
30343 fi
30344done
cristy8b350f62009-11-15 23:12:43 +000030345 done
cristy3ed852e2009-09-05 21:47:34 +000030346IFS=$as_save_IFS
30347
30348 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30349 ;;
30350esac
30351fi
30352HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30353if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030355$as_echo "$HTMLDecodeDelegate" >&6; }
30356else
cristy8b350f62009-11-15 23:12:43 +000030357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030358$as_echo "no" >&6; }
30359fi
30360
30361
30362# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30363set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030365$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030366if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030367 $as_echo_n "(cached) " >&6
30368else
30369 case $ILBMDecodeDelegate in
30370 [\\/]* | ?:[\\/]*)
30371 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30372 ;;
30373 *)
30374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30375for as_dir in $PATH
30376do
30377 IFS=$as_save_IFS
30378 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030379 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30381 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030383 break 2
30384 fi
30385done
cristy8b350f62009-11-15 23:12:43 +000030386 done
cristy3ed852e2009-09-05 21:47:34 +000030387IFS=$as_save_IFS
30388
30389 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30390 ;;
30391esac
30392fi
30393ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30394if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030396$as_echo "$ILBMDecodeDelegate" >&6; }
30397else
cristy8b350f62009-11-15 23:12:43 +000030398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030399$as_echo "no" >&6; }
30400fi
30401
30402
30403# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30404set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030406$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030407if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030408 $as_echo_n "(cached) " >&6
30409else
30410 case $ILBMEncodeDelegate in
30411 [\\/]* | ?:[\\/]*)
30412 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30413 ;;
30414 *)
30415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30416for as_dir in $PATH
30417do
30418 IFS=$as_save_IFS
30419 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030420 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30422 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030424 break 2
30425 fi
30426done
cristy8b350f62009-11-15 23:12:43 +000030427 done
cristy3ed852e2009-09-05 21:47:34 +000030428IFS=$as_save_IFS
30429
30430 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30431 ;;
30432esac
30433fi
30434ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30435if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030437$as_echo "$ILBMEncodeDelegate" >&6; }
30438else
cristy8b350f62009-11-15 23:12:43 +000030439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030440$as_echo "no" >&6; }
30441fi
30442
30443
30444# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30445set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030447$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030448if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030449 $as_echo_n "(cached) " >&6
30450else
30451 case $LPDelegate in
30452 [\\/]* | ?:[\\/]*)
30453 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30454 ;;
30455 *)
30456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30457for as_dir in $PATH
30458do
30459 IFS=$as_save_IFS
30460 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030461 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30463 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030465 break 2
30466 fi
30467done
cristy8b350f62009-11-15 23:12:43 +000030468 done
cristy3ed852e2009-09-05 21:47:34 +000030469IFS=$as_save_IFS
30470
30471 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30472 ;;
30473esac
30474fi
30475LPDelegate=$ac_cv_path_LPDelegate
30476if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030478$as_echo "$LPDelegate" >&6; }
30479else
cristy8b350f62009-11-15 23:12:43 +000030480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030481$as_echo "no" >&6; }
30482fi
30483
30484
30485# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30486set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030488$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030489if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030490 $as_echo_n "(cached) " >&6
30491else
30492 case $LPRDelegate in
30493 [\\/]* | ?:[\\/]*)
30494 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30495 ;;
30496 *)
30497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30498for as_dir in $PATH
30499do
30500 IFS=$as_save_IFS
30501 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030502 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30504 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030506 break 2
30507 fi
30508done
cristy8b350f62009-11-15 23:12:43 +000030509 done
cristy3ed852e2009-09-05 21:47:34 +000030510IFS=$as_save_IFS
30511
30512 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30513 ;;
30514esac
30515fi
30516LPRDelegate=$ac_cv_path_LPRDelegate
30517if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030519$as_echo "$LPRDelegate" >&6; }
30520else
cristy8b350f62009-11-15 23:12:43 +000030521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030522$as_echo "no" >&6; }
30523fi
30524
30525
30526# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30527set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030529$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030530if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030531 $as_echo_n "(cached) " >&6
30532else
30533 case $LZWDecodeDelegate in
30534 [\\/]* | ?:[\\/]*)
30535 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30536 ;;
30537 *)
30538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30539for as_dir in $PATH
30540do
30541 IFS=$as_save_IFS
30542 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030543 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30545 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030547 break 2
30548 fi
30549done
cristy8b350f62009-11-15 23:12:43 +000030550 done
cristy3ed852e2009-09-05 21:47:34 +000030551IFS=$as_save_IFS
30552
30553 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30554 ;;
30555esac
30556fi
30557LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30558if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030560$as_echo "$LZWDecodeDelegate" >&6; }
30561else
cristy8b350f62009-11-15 23:12:43 +000030562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030563$as_echo "no" >&6; }
30564fi
30565
30566
30567# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30568set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030570$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030571if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030572 $as_echo_n "(cached) " >&6
30573else
30574 case $LZWEncodeDelegate in
30575 [\\/]* | ?:[\\/]*)
30576 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30577 ;;
30578 *)
30579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30580for as_dir in $PATH
30581do
30582 IFS=$as_save_IFS
30583 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030584 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30586 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030588 break 2
30589 fi
30590done
cristy8b350f62009-11-15 23:12:43 +000030591 done
cristy3ed852e2009-09-05 21:47:34 +000030592IFS=$as_save_IFS
30593
30594 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30595 ;;
30596esac
30597fi
30598LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30599if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030601$as_echo "$LZWEncodeDelegate" >&6; }
30602else
cristy8b350f62009-11-15 23:12:43 +000030603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030604$as_echo "no" >&6; }
30605fi
30606
30607
30608# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30609set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030611$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030612if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030613 $as_echo_n "(cached) " >&6
30614else
30615 case $LaunchDelegate in
30616 [\\/]* | ?:[\\/]*)
30617 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30618 ;;
30619 *)
30620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30621for as_dir in $PATH
30622do
30623 IFS=$as_save_IFS
30624 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030625 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30627 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030629 break 2
30630 fi
30631done
cristy8b350f62009-11-15 23:12:43 +000030632 done
cristy3ed852e2009-09-05 21:47:34 +000030633IFS=$as_save_IFS
30634
30635 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30636 ;;
30637esac
30638fi
30639LaunchDelegate=$ac_cv_path_LaunchDelegate
30640if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030642$as_echo "$LaunchDelegate" >&6; }
30643else
cristy8b350f62009-11-15 23:12:43 +000030644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030645$as_echo "no" >&6; }
30646fi
30647
30648
30649# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30650set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030652$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030653if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030654 $as_echo_n "(cached) " >&6
30655else
30656 case $MANDelegate in
30657 [\\/]* | ?:[\\/]*)
30658 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30659 ;;
30660 *)
30661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30662for as_dir in $PATH
30663do
30664 IFS=$as_save_IFS
30665 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030666 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30668 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030670 break 2
30671 fi
30672done
cristy8b350f62009-11-15 23:12:43 +000030673 done
cristy3ed852e2009-09-05 21:47:34 +000030674IFS=$as_save_IFS
30675
30676 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30677 ;;
30678esac
30679fi
30680MANDelegate=$ac_cv_path_MANDelegate
30681if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030683$as_echo "$MANDelegate" >&6; }
30684else
cristy8b350f62009-11-15 23:12:43 +000030685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030686$as_echo "no" >&6; }
30687fi
30688
30689
30690# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30691set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030693$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030694if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030695 $as_echo_n "(cached) " >&6
30696else
30697 case $MPEGDecodeDelegate in
30698 [\\/]* | ?:[\\/]*)
30699 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30700 ;;
30701 *)
30702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30703for as_dir in $PATH
30704do
30705 IFS=$as_save_IFS
30706 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030707 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30709 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030711 break 2
30712 fi
30713done
cristy8b350f62009-11-15 23:12:43 +000030714 done
cristy3ed852e2009-09-05 21:47:34 +000030715IFS=$as_save_IFS
30716
30717 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30718 ;;
30719esac
30720fi
30721MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30722if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030724$as_echo "$MPEGDecodeDelegate" >&6; }
30725else
cristy8b350f62009-11-15 23:12:43 +000030726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030727$as_echo "no" >&6; }
30728fi
30729
30730
30731# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30732set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030734$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030735if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030736 $as_echo_n "(cached) " >&6
30737else
30738 case $MPEGEncodeDelegate in
30739 [\\/]* | ?:[\\/]*)
30740 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30741 ;;
30742 *)
30743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30744for as_dir in $PATH
30745do
30746 IFS=$as_save_IFS
30747 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030748 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30750 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030752 break 2
30753 fi
30754done
cristy8b350f62009-11-15 23:12:43 +000030755 done
cristy3ed852e2009-09-05 21:47:34 +000030756IFS=$as_save_IFS
30757
30758 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30759 ;;
30760esac
30761fi
30762MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30763if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030765$as_echo "$MPEGEncodeDelegate" >&6; }
30766else
cristy8b350f62009-11-15 23:12:43 +000030767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030768$as_echo "no" >&6; }
30769fi
30770
30771
cristy935c86e2010-06-05 23:50:07 +000030772# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30773set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30775$as_echo_n "checking for $ac_word... " >&6; }
30776if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30777 $as_echo_n "(cached) " >&6
30778else
30779 case $MrSIDDecodeDelegate in
30780 [\\/]* | ?:[\\/]*)
30781 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30782 ;;
30783 *)
30784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30785for as_dir in $PATH
30786do
30787 IFS=$as_save_IFS
30788 test -z "$as_dir" && as_dir=.
30789 for ac_exec_ext in '' $ac_executable_extensions; do
30790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30791 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30793 break 2
30794 fi
30795done
30796 done
30797IFS=$as_save_IFS
30798
30799 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
30800 ;;
30801esac
30802fi
30803MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
30804if test -n "$MrSIDDecodeDelegate"; then
30805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
30806$as_echo "$MrSIDDecodeDelegate" >&6; }
30807else
30808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30809$as_echo "no" >&6; }
30810fi
30811
30812
cristy3ed852e2009-09-05 21:47:34 +000030813# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30814set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030816$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030817if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030818 $as_echo_n "(cached) " >&6
30819else
30820 case $MVDelegate in
30821 [\\/]* | ?:[\\/]*)
30822 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30823 ;;
30824 *)
30825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30826for as_dir in $PATH
30827do
30828 IFS=$as_save_IFS
30829 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030830 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30832 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030834 break 2
30835 fi
30836done
cristy8b350f62009-11-15 23:12:43 +000030837 done
cristy3ed852e2009-09-05 21:47:34 +000030838IFS=$as_save_IFS
30839
30840 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30841 ;;
30842esac
30843fi
30844MVDelegate=$ac_cv_path_MVDelegate
30845if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030847$as_echo "$MVDelegate" >&6; }
30848else
cristy8b350f62009-11-15 23:12:43 +000030849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030850$as_echo "no" >&6; }
30851fi
30852
30853
30854# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30855set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030857$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030858if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030859 $as_echo_n "(cached) " >&6
30860else
30861 case $PCLDelegate in
30862 [\\/]* | ?:[\\/]*)
30863 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30864 ;;
30865 *)
30866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30867for as_dir in $PATH
30868do
30869 IFS=$as_save_IFS
30870 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030871 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30873 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030875 break 2
30876 fi
30877done
cristy8b350f62009-11-15 23:12:43 +000030878 done
cristy3ed852e2009-09-05 21:47:34 +000030879IFS=$as_save_IFS
30880
30881 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30882 ;;
30883esac
30884fi
30885PCLDelegate=$ac_cv_path_PCLDelegate
30886if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030888$as_echo "$PCLDelegate" >&6; }
30889else
cristy8b350f62009-11-15 23:12:43 +000030890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030891$as_echo "no" >&6; }
30892fi
30893
30894
30895# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30896set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030898$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030899if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030900 $as_echo_n "(cached) " >&6
30901else
30902 case $PGPDecodeDelegate in
30903 [\\/]* | ?:[\\/]*)
30904 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30905 ;;
30906 *)
30907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30908for as_dir in $PATH
30909do
30910 IFS=$as_save_IFS
30911 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030912 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30914 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030916 break 2
30917 fi
30918done
cristy8b350f62009-11-15 23:12:43 +000030919 done
cristy3ed852e2009-09-05 21:47:34 +000030920IFS=$as_save_IFS
30921
30922 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30923 ;;
30924esac
30925fi
30926PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30927if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030929$as_echo "$PGPDecodeDelegate" >&6; }
30930else
cristy8b350f62009-11-15 23:12:43 +000030931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030932$as_echo "no" >&6; }
30933fi
30934
30935
30936# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
30937set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030939$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030940if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030941 $as_echo_n "(cached) " >&6
30942else
30943 case $POVDelegate in
30944 [\\/]* | ?:[\\/]*)
30945 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
30946 ;;
30947 *)
30948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30949for as_dir in $PATH
30950do
30951 IFS=$as_save_IFS
30952 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030953 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30955 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030957 break 2
30958 fi
30959done
cristy8b350f62009-11-15 23:12:43 +000030960 done
cristy3ed852e2009-09-05 21:47:34 +000030961IFS=$as_save_IFS
30962
30963 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
30964 ;;
30965esac
30966fi
30967POVDelegate=$ac_cv_path_POVDelegate
30968if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030970$as_echo "$POVDelegate" >&6; }
30971else
cristy8b350f62009-11-15 23:12:43 +000030972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030973$as_echo "no" >&6; }
30974fi
30975
30976
30977for ac_prog in gsx gsc "$PSDelegateDefault"
30978do
30979 # Extract the first word of "$ac_prog", so it can be a program name with args.
30980set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030982$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030983if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030984 $as_echo_n "(cached) " >&6
30985else
30986 case $PSDelegate in
30987 [\\/]* | ?:[\\/]*)
30988 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
30989 ;;
30990 *)
30991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30992for as_dir in $PATH
30993do
30994 IFS=$as_save_IFS
30995 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030996 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30998 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031000 break 2
31001 fi
31002done
cristy8b350f62009-11-15 23:12:43 +000031003 done
cristy3ed852e2009-09-05 21:47:34 +000031004IFS=$as_save_IFS
31005
31006 ;;
31007esac
31008fi
31009PSDelegate=$ac_cv_path_PSDelegate
31010if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031012$as_echo "$PSDelegate" >&6; }
31013else
cristy8b350f62009-11-15 23:12:43 +000031014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031015$as_echo "no" >&6; }
31016fi
31017
31018
31019 test -n "$PSDelegate" && break
31020done
31021test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31022
31023# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31024set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031026$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031027if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031028 $as_echo_n "(cached) " >&6
31029else
31030 case $RLEEncodeDelegate in
31031 [\\/]* | ?:[\\/]*)
31032 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31033 ;;
31034 *)
31035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31036for as_dir in $PATH
31037do
31038 IFS=$as_save_IFS
31039 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031040 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31042 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031044 break 2
31045 fi
31046done
cristy8b350f62009-11-15 23:12:43 +000031047 done
cristy3ed852e2009-09-05 21:47:34 +000031048IFS=$as_save_IFS
31049
31050 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31051 ;;
31052esac
31053fi
31054RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31055if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031057$as_echo "$RLEEncodeDelegate" >&6; }
31058else
cristy8b350f62009-11-15 23:12:43 +000031059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031060$as_echo "no" >&6; }
31061fi
31062
31063
31064# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31065set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031067$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031068if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031069 $as_echo_n "(cached) " >&6
31070else
31071 case $RMDelegate in
31072 [\\/]* | ?:[\\/]*)
31073 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31074 ;;
31075 *)
31076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31077for as_dir in $PATH
31078do
31079 IFS=$as_save_IFS
31080 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031081 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31083 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031085 break 2
31086 fi
31087done
cristy8b350f62009-11-15 23:12:43 +000031088 done
cristy3ed852e2009-09-05 21:47:34 +000031089IFS=$as_save_IFS
31090
31091 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31092 ;;
31093esac
31094fi
31095RMDelegate=$ac_cv_path_RMDelegate
31096if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031098$as_echo "$RMDelegate" >&6; }
31099else
cristy8b350f62009-11-15 23:12:43 +000031100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031101$as_echo "no" >&6; }
31102fi
31103
31104
cristy4689cf02010-02-17 21:15:45 +000031105# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31106set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31108$as_echo_n "checking for $ac_word... " >&6; }
31109if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31110 $as_echo_n "(cached) " >&6
31111else
31112 case $RSVGDecodeDelegate in
31113 [\\/]* | ?:[\\/]*)
31114 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31115 ;;
31116 *)
31117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31118for as_dir in $PATH
31119do
31120 IFS=$as_save_IFS
31121 test -z "$as_dir" && as_dir=.
31122 for ac_exec_ext in '' $ac_executable_extensions; do
31123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31124 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31126 break 2
31127 fi
31128done
31129 done
31130IFS=$as_save_IFS
31131
31132 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31133 ;;
31134esac
31135fi
31136RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31137if test -n "$RSVGDecodeDelegate"; then
31138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31139$as_echo "$RSVGDecodeDelegate" >&6; }
31140else
31141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31142$as_echo "no" >&6; }
31143fi
31144
31145
cristy3ed852e2009-09-05 21:47:34 +000031146# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31147set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031149$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031150if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031151 $as_echo_n "(cached) " >&6
31152else
31153 case $SCANDecodeDelegate in
31154 [\\/]* | ?:[\\/]*)
31155 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31156 ;;
31157 *)
31158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31159for as_dir in $PATH
31160do
31161 IFS=$as_save_IFS
31162 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031163 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31165 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031167 break 2
31168 fi
31169done
cristy8b350f62009-11-15 23:12:43 +000031170 done
cristy3ed852e2009-09-05 21:47:34 +000031171IFS=$as_save_IFS
31172
31173 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31174 ;;
31175esac
31176fi
31177SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31178if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031180$as_echo "$SCANDecodeDelegate" >&6; }
31181else
cristy8b350f62009-11-15 23:12:43 +000031182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031183$as_echo "no" >&6; }
31184fi
31185
31186
31187# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31188set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031190$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031191if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031192 $as_echo_n "(cached) " >&6
31193else
31194 case $TXTDelegate in
31195 [\\/]* | ?:[\\/]*)
31196 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31197 ;;
31198 *)
31199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31200for as_dir in $PATH
31201do
31202 IFS=$as_save_IFS
31203 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031204 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31206 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031208 break 2
31209 fi
31210done
cristy8b350f62009-11-15 23:12:43 +000031211 done
cristy3ed852e2009-09-05 21:47:34 +000031212IFS=$as_save_IFS
31213
31214 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31215 ;;
31216esac
31217fi
31218TXTDelegate=$ac_cv_path_TXTDelegate
31219if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031221$as_echo "$TXTDelegate" >&6; }
31222else
cristy8b350f62009-11-15 23:12:43 +000031223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031224$as_echo "no" >&6; }
31225fi
31226
31227
cristy5ac9ac82010-07-29 13:24:24 +000031228# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
31229set dummy "$UniconvertorDelegateDefault"; ac_word=$2
31230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31231$as_echo_n "checking for $ac_word... " >&6; }
31232if test "${ac_cv_path_UniconvertorDelegate+set}" = set; then :
31233 $as_echo_n "(cached) " >&6
31234else
31235 case $UniconvertorDelegate in
31236 [\\/]* | ?:[\\/]*)
31237 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
31238 ;;
31239 *)
31240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31241for as_dir in $PATH
31242do
31243 IFS=$as_save_IFS
31244 test -z "$as_dir" && as_dir=.
31245 for ac_exec_ext in '' $ac_executable_extensions; do
31246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31247 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
31248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31249 break 2
31250 fi
31251done
31252 done
31253IFS=$as_save_IFS
31254
31255 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
31256 ;;
31257esac
31258fi
31259UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
31260if test -n "$UniconvertorDelegate"; then
31261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
31262$as_echo "$UniconvertorDelegate" >&6; }
31263else
31264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31265$as_echo "no" >&6; }
31266fi
31267
31268
cristy23f7a922010-10-11 00:27:48 +000031269# Extract the first word of ""$WEBPDelegateDefault"", so it can be a program name with args.
31270set dummy "$WEBPDelegateDefault"; ac_word=$2
31271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31272$as_echo_n "checking for $ac_word... " >&6; }
31273if test "${ac_cv_path_WEBPDelegate+set}" = set; then :
31274 $as_echo_n "(cached) " >&6
31275else
31276 case $WEBPDelegate in
31277 [\\/]* | ?:[\\/]*)
31278 ac_cv_path_WEBPDelegate="$WEBPDelegate" # Let the user override the test with a path.
31279 ;;
31280 *)
31281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31282for as_dir in $PATH
31283do
31284 IFS=$as_save_IFS
31285 test -z "$as_dir" && as_dir=.
31286 for ac_exec_ext in '' $ac_executable_extensions; do
31287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31288 ac_cv_path_WEBPDelegate="$as_dir/$ac_word$ac_exec_ext"
31289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31290 break 2
31291 fi
31292done
31293 done
31294IFS=$as_save_IFS
31295
31296 test -z "$ac_cv_path_WEBPDelegate" && ac_cv_path_WEBPDelegate=""$WEBPDelegateDefault""
31297 ;;
31298esac
31299fi
31300WEBPDelegate=$ac_cv_path_WEBPDelegate
31301if test -n "$WEBPDelegate"; then
31302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WEBPDelegate" >&5
31303$as_echo "$WEBPDelegate" >&6; }
31304else
31305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31306$as_echo "no" >&6; }
31307fi
31308
31309
cristy3ed852e2009-09-05 21:47:34 +000031310# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31311set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031313$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031314if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031315 $as_echo_n "(cached) " >&6
31316else
31317 case $WMFDecodeDelegate in
31318 [\\/]* | ?:[\\/]*)
31319 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31320 ;;
31321 *)
31322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31323for as_dir in $PATH
31324do
31325 IFS=$as_save_IFS
31326 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031327 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31329 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031331 break 2
31332 fi
31333done
cristy8b350f62009-11-15 23:12:43 +000031334 done
cristy3ed852e2009-09-05 21:47:34 +000031335IFS=$as_save_IFS
31336
31337 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31338 ;;
31339esac
31340fi
31341WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31342if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031344$as_echo "$WMFDecodeDelegate" >&6; }
31345else
cristy8b350f62009-11-15 23:12:43 +000031346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031347$as_echo "no" >&6; }
31348fi
31349
31350
31351# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31352set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031354$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031355if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031356 $as_echo_n "(cached) " >&6
31357else
31358 case $WWWDecodeDelegate in
31359 [\\/]* | ?:[\\/]*)
31360 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31361 ;;
31362 *)
31363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31364for as_dir in $PATH
31365do
31366 IFS=$as_save_IFS
31367 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031368 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31370 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031372 break 2
31373 fi
31374done
cristy8b350f62009-11-15 23:12:43 +000031375 done
cristy3ed852e2009-09-05 21:47:34 +000031376IFS=$as_save_IFS
31377
31378 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31379 ;;
31380esac
31381fi
31382WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31383if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031385$as_echo "$WWWDecodeDelegate" >&6; }
31386else
cristy8b350f62009-11-15 23:12:43 +000031387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031388$as_echo "no" >&6; }
31389fi
31390
31391
31392# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31393set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031395$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031396if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031397 $as_echo_n "(cached) " >&6
31398else
31399 case $XPSDelegate in
31400 [\\/]* | ?:[\\/]*)
31401 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31402 ;;
31403 *)
31404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31405for as_dir in $PATH
31406do
31407 IFS=$as_save_IFS
31408 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031409 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31411 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031413 break 2
31414 fi
31415done
cristy8b350f62009-11-15 23:12:43 +000031416 done
cristy3ed852e2009-09-05 21:47:34 +000031417IFS=$as_save_IFS
31418
31419 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31420 ;;
31421esac
31422fi
31423XPSDelegate=$ac_cv_path_XPSDelegate
31424if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031426$as_echo "$XPSDelegate" >&6; }
31427else
cristy8b350f62009-11-15 23:12:43 +000031428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031429$as_echo "no" >&6; }
31430fi
31431
31432
31433# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31434set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031436$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031437if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031438 $as_echo_n "(cached) " >&6
31439else
31440 case $ZipDelegate in
31441 [\\/]* | ?:[\\/]*)
31442 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31443 ;;
31444 *)
31445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31446for as_dir in $PATH
31447do
31448 IFS=$as_save_IFS
31449 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031450 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31452 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031454 break 2
31455 fi
31456done
cristy8b350f62009-11-15 23:12:43 +000031457 done
cristy3ed852e2009-09-05 21:47:34 +000031458IFS=$as_save_IFS
31459
31460 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31461 ;;
31462esac
31463fi
31464ZipDelegate=$ac_cv_path_ZipDelegate
31465if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031467$as_echo "$ZipDelegate" >&6; }
31468else
cristy8b350f62009-11-15 23:12:43 +000031469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031470$as_echo "no" >&6; }
31471fi
31472
31473
31474
31475# Prefer lpr to lp; lp needs options tacked on.
31476if test "$LPRDelegate" != no; then
31477 PrintDelegate="$LPRDelegate"
31478else
31479 PrintDelegate="$LPDelegate -c -s"
31480fi
31481
31482
31483# Installed ImageMagick utiltity paths
31484ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31485DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31486MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31487
31488# Set delegate booleans
31489have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31490have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31491have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31492have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31493have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31494have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000031495have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000031496have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31497have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31498have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31499have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31500have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31501
31502#
31503# Test for font directories
31504#
31505type_include_files=''
31506
cristy430a7312010-01-21 20:44:04 +000031507# Dejavu fonts.
31508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31509$as_echo_n "checking for Dejavu fonts directory... " >&6; }
31510dejavu_font_dir=''
31511if test "${with_dejavu_font_dir}" != 'default'; then
31512 dejavu_font_dir="${with_dejavu_font_dir}/"
31513else
31514 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31515 if test -f "${font_dir}DejaVuSerif.ttf"; then
31516 dejavu_font_dir="${font_dir}"
31517 break 1
31518 fi
31519 done
31520fi
31521if test "${dejavu_font_dir}x" != 'x'; then
31522 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31524$as_echo "$dejavu_font_dir" >&6; }
31525else
31526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31527$as_echo "not found!" >&6; };
31528fi
31529
31530
cristy3ed852e2009-09-05 21:47:34 +000031531# Windows
31532windows_font_dir=''
31533if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31534 windows_font_dir="${with_windows_font_dir}/"
31535fi
cristy430a7312010-01-21 20:44:04 +000031536if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031537 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31538 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31539 fi
31540 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31541 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31542 fi
31543 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31544 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31545 fi
31546fi
cristy430a7312010-01-21 20:44:04 +000031547if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031548 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31549fi
31550
31551
31552# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000031553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000031554$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31555ghostscript_font_dir=''
31556if test "${with_gs_font_dir}" != 'default'; then
31557 ghostscript_font_dir="${with_gs_font_dir}/"
31558else
31559 if test "${native_win32_build}" = 'yes'; then
31560 # Native Windows Build
31561 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31562 if test -f "${font_dir}a010013l.pfb"; then
31563 ghostscript_font_dir="$font_dir"
31564 break 1
31565 fi
31566 done
31567 if test "${PSDelegate}" != 'gswin32c'; then
31568 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31569 fi
31570 else
31571 # Linux / Mac OS X / Unix Build
31572 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
31573 if test -f "${font_dir}a010013l.pfb"; then
31574 ghostscript_font_dir="${font_dir}"
31575 break 1
31576 fi
31577 done
31578 if test "${ghostscript_font_dir}x" = 'x'; then
31579 if test "$PSDelegate" != 'gs'; then
31580 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31581 fi
31582 fi
31583 fi
31584fi
31585if test "${ghostscript_font_dir}x" != 'x'; then
31586 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000031587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000031588$as_echo "$ghostscript_font_dir" >&6; }
31589else
cristy8b350f62009-11-15 23:12:43 +000031590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000031591$as_echo "not found!" >&6; };
31592fi
31593
31594case "${build_os}" in
31595 mingw* )
31596 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31597 ;;
31598esac
31599
31600
31601
31602#
31603# Handle case where user doesn't want frozen paths
31604#
31605if test "$with_frozenpaths" != 'yes'; then
31606 # Re-set delegate definitions to default (no paths)
31607 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31608 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31609 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31610 BZIPDelegate="$BZIPDelegateDefault"
31611 BrowseDelegate="$BrowseDelegateDefault"
31612 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31613 CatDelegate="$CatDelegateDefault"
31614 ConvertDelegate="$ConvertDelegateDefault"
31615 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31616 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31617 EchoDelegate="$EchoDelegateDefault"
31618 EditorDelegate="$EditorDelegateDefault"
31619 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31620 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31621 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31622 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31623 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31624 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31625 LPDelegate="$LPDelegateDefault"
31626 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31627 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31628 LaunchDelegate="$LaunchDelegateDefault"
31629 MANDelegate="$MANDelegateDefault"
31630 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31631 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031632 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000031633 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31634 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031635 PCLDelegate="$PCLDelegateDefault"
31636 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31637 POVDelegate="$POVDelegateDefault"
31638 PSDelegate="$PSDelegateDefault"
31639 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31640 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31641 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000031642 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031643 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31644 ShowImageDelegate="$ShowImageDelegateDefault"
31645 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000031646 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy23f7a922010-10-11 00:27:48 +000031647 WEBPDelegate="$WEBPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031648 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31649 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31650 XPSDelegate="$XPSDelegateDefault"
31651 ZipDelegate="$ZipDelegateDefault"
31652fi
31653
31654# Delegate substitutions
31655
31656
31657
31658
31659
31660
31661
31662
31663
31664
31665
31666
31667
31668
31669
31670
31671
31672
31673
31674
31675
31676
31677
31678
31679
31680
31681
31682
31683
31684
31685
31686
31687
31688
31689
31690
31691
31692
31693
31694
31695
31696
cristy935c86e2010-06-05 23:50:07 +000031697
cristy5ac9ac82010-07-29 13:24:24 +000031698
cristy23f7a922010-10-11 00:27:48 +000031699
cristy3ed852e2009-09-05 21:47:34 +000031700#
31701# RPM support.
31702#
31703RPM=''
31704for ac_prog in gnutar gtar tar
31705do
31706 # Extract the first word of "$ac_prog", so it can be a program name with args.
31707set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031709$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031710if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031711 $as_echo_n "(cached) " >&6
31712else
31713 if test -n "$TAR"; then
31714 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31715else
31716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31717for as_dir in $PATH
31718do
31719 IFS=$as_save_IFS
31720 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031721 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31723 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031725 break 2
31726 fi
31727done
cristy8b350f62009-11-15 23:12:43 +000031728 done
cristy3ed852e2009-09-05 21:47:34 +000031729IFS=$as_save_IFS
31730
31731fi
31732fi
31733TAR=$ac_cv_prog_TAR
31734if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000031735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000031736$as_echo "$TAR" >&6; }
31737else
cristy8b350f62009-11-15 23:12:43 +000031738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031739$as_echo "no" >&6; }
31740fi
31741
31742
31743 test -n "$TAR" && break
31744done
31745
31746for ac_prog in perl
31747do
31748 # Extract the first word of "$ac_prog", so it can be a program name with args.
31749set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031751$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031752if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031753 $as_echo_n "(cached) " >&6
31754else
31755 if test -n "$PERL"; then
31756 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31757else
31758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31759for as_dir in $PATH
31760do
31761 IFS=$as_save_IFS
31762 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031763 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31765 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031767 break 2
31768 fi
31769done
cristy8b350f62009-11-15 23:12:43 +000031770 done
cristy3ed852e2009-09-05 21:47:34 +000031771IFS=$as_save_IFS
31772
31773fi
31774fi
31775PERL=$ac_cv_prog_PERL
31776if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031778$as_echo "$PERL" >&6; }
31779else
cristy8b350f62009-11-15 23:12:43 +000031780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031781$as_echo "no" >&6; }
31782fi
31783
31784
31785 test -n "$PERL" && break
31786done
31787
31788for ac_prog in rpmbuild rpm
31789do
31790 # Extract the first word of "$ac_prog", so it can be a program name with args.
31791set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031793$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031794if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031795 $as_echo_n "(cached) " >&6
31796else
31797 if test -n "$RPM"; then
31798 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31799else
31800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31801for as_dir in $PATH
31802do
31803 IFS=$as_save_IFS
31804 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031805 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31807 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031809 break 2
31810 fi
31811done
cristy8b350f62009-11-15 23:12:43 +000031812 done
cristy3ed852e2009-09-05 21:47:34 +000031813IFS=$as_save_IFS
31814
31815fi
31816fi
31817RPM=$ac_cv_prog_RPM
31818if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000031819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000031820$as_echo "$RPM" >&6; }
31821else
cristy8b350f62009-11-15 23:12:43 +000031822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031823$as_echo "no" >&6; }
31824fi
31825
31826
31827 test -n "$RPM" && break
31828done
31829
31830
cristy73bd4a52010-10-05 11:24:23 +000031831ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31832
31833
31834AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31835
31836
31837AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31838
31839
31840AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31841
31842
31843 if test "x$RPM" != "x" ; then
31844 RPM_DELEGATE_TRUE=
31845 RPM_DELEGATE_FALSE='#'
31846else
31847 RPM_DELEGATE_TRUE='#'
31848 RPM_DELEGATE_FALSE=
31849fi
31850
cristy3ed852e2009-09-05 21:47:34 +000031851
31852#
31853# 7ZIP support (http://p7zip.sourceforge.net/)
31854#
31855P7ZIP=''
31856for ac_prog in 7za
31857do
31858 # Extract the first word of "$ac_prog", so it can be a program name with args.
31859set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031861$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031862if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031863 $as_echo_n "(cached) " >&6
31864else
31865 if test -n "$P7ZIP"; then
31866 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31867else
31868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31869for as_dir in $PATH
31870do
31871 IFS=$as_save_IFS
31872 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031873 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31875 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031877 break 2
31878 fi
31879done
cristy8b350f62009-11-15 23:12:43 +000031880 done
cristy3ed852e2009-09-05 21:47:34 +000031881IFS=$as_save_IFS
31882
31883fi
31884fi
31885P7ZIP=$ac_cv_prog_P7ZIP
31886if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031888$as_echo "$P7ZIP" >&6; }
31889else
cristy8b350f62009-11-15 23:12:43 +000031890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031891$as_echo "no" >&6; }
31892fi
31893
31894
31895 test -n "$P7ZIP" && break
31896done
31897
31898
cristy73bd4a52010-10-05 11:24:23 +000031899 if test "x$P7ZIP" != "x" ; then
31900 P7ZIP_DELEGATE_TRUE=
31901 P7ZIP_DELEGATE_FALSE='#'
31902else
31903 P7ZIP_DELEGATE_TRUE='#'
31904 P7ZIP_DELEGATE_FALSE=
31905fi
31906
cristy3ed852e2009-09-05 21:47:34 +000031907
31908#
31909# ZIP support (http://www.info-zip.org/Zip.html)
31910#
31911ZIP=''
31912for ac_prog in zip
31913do
31914 # Extract the first word of "$ac_prog", so it can be a program name with args.
31915set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031917$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031918if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031919 $as_echo_n "(cached) " >&6
31920else
31921 if test -n "$ZIP"; then
31922 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31923else
31924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31925for as_dir in $PATH
31926do
31927 IFS=$as_save_IFS
31928 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031929 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31931 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031933 break 2
31934 fi
31935done
cristy8b350f62009-11-15 23:12:43 +000031936 done
cristy3ed852e2009-09-05 21:47:34 +000031937IFS=$as_save_IFS
31938
31939fi
31940fi
31941ZIP=$ac_cv_prog_ZIP
31942if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031944$as_echo "$ZIP" >&6; }
31945else
cristy8b350f62009-11-15 23:12:43 +000031946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031947$as_echo "no" >&6; }
31948fi
31949
31950
31951 test -n "$ZIP" && break
31952done
31953
31954
cristy73bd4a52010-10-05 11:24:23 +000031955 if test "x$ZIP" != "x" ; then
31956 ZIP_DELEGATE_TRUE=
31957 ZIP_DELEGATE_FALSE='#'
31958else
31959 ZIP_DELEGATE_TRUE='#'
31960 ZIP_DELEGATE_FALSE=
31961fi
31962
cristy3ed852e2009-09-05 21:47:34 +000031963
31964#
31965# GhostPCL related configuration.
31966#
31967PCLColorDevice=ppmraw
31968PCLCMYKDevice=bmpsep8
31969PCLMonoDevice=pbmraw
31970if test -z "$PCLVersion"; then
31971 PCLVersion='unknown'
31972fi
31973if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031975$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031977$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031979$as_echo "" >&6; }
31980 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000031981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031982$as_echo_n "checking for pcl color device... " >&6; }
31983 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31984 :
31985 else
31986 PCLColorDevice=ppmraw
31987 fi
cristy8b350f62009-11-15 23:12:43 +000031988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031989$as_echo "$PCLColorDevice" >&6; }
31990
31991 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031993$as_echo_n "checking for pcl CMYK device... " >&6; }
31994 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31995 :
31996 else
31997 PCLCMYKDevice=$PCLColorDevice
31998 fi
cristy8b350f62009-11-15 23:12:43 +000031999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032000$as_echo "$PCLCMYKDevice" >&6; }
32001
32002 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032004$as_echo_n "checking for pcl mono device... " >&6; }
32005 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32006 :
32007 else
32008 PCLMonoDevice=$PCLColorDevice
32009 fi
cristy8b350f62009-11-15 23:12:43 +000032010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032011$as_echo "$PCLMonoDevice" >&6; }
32012fi
32013
32014
32015
32016
32017
32018
32019#
32020# GhostXPS related configuration.
32021#
32022XPSColorDevice=ppmraw
32023XPSCMYKDevice=bmpsep8
32024XPSMonoDevice=pbmraw
32025if test -z "$XPSVersion"; then
32026 XPSVersion='unknown'
32027fi
32028if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032030$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032032$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032034$as_echo "" >&6; }
32035 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032037$as_echo_n "checking for xps color device... " >&6; }
32038 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32039 :
32040 else
32041 XPSColorDevice=ppmraw
32042 fi
cristy8b350f62009-11-15 23:12:43 +000032043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032044$as_echo "$XPSColorDevice" >&6; }
32045
32046 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032048$as_echo_n "checking for xps CMYK device... " >&6; }
32049 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32050 :
32051 else
32052 XPSCMYKDevice=$XPSColorDevice
32053 fi
cristy8b350f62009-11-15 23:12:43 +000032054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032055$as_echo "$XPSCMYKDevice" >&6; }
32056
32057 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032059$as_echo_n "checking for xps mono device... " >&6; }
32060 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32061 :
32062 else
32063 XPSMonoDevice=$XPSColorDevice
32064 fi
cristy8b350f62009-11-15 23:12:43 +000032065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032066$as_echo "$XPSMonoDevice" >&6; }
32067fi
32068
32069
32070
32071
32072
32073
32074#
32075# Ghostscript related configuration.
32076#
32077if test "$have_png" = 'yes'; then
32078 GSAlphaDevice=pngalpha
32079else
32080 GSAlphaDevice=pnmraw
32081fi
32082GSColorDevice=pnmraw
32083GSCMYKDevice=pam
32084GSMonoDevice=pbmraw
32085GSPDFDevice=pdfwrite
32086GSPSDevice=pswrite
32087GSEPSDevice=epswrite
32088GSVersion='unknown'
32089if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032091$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032093$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032095$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032097$as_echo_n "checking for Ghostscript version... " >&6; }
32098 if GSVersion=`$PSDelegate --version`; then
32099 :
32100 else
32101 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32102 fi
cristy8b350f62009-11-15 23:12:43 +000032103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032104$as_echo "$GSVersion" >&6; }
32105
32106 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000032107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032108$as_echo_n "checking for gs alpha device... " >&6; }
32109 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32110 :
32111 else
32112 GSAlphaDevice=pnmraw
32113 fi
cristy8b350f62009-11-15 23:12:43 +000032114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032115$as_echo "$GSAlphaDevice" >&6; }
32116
32117 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032119$as_echo_n "checking for gs color device... " >&6; }
32120 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32121 :
32122 else
32123 GSColorDevice=pnmraw
32124 fi
cristy8b350f62009-11-15 23:12:43 +000032125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032126$as_echo "$GSColorDevice" >&6; }
32127
32128 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032130$as_echo_n "checking for gs CMYK device... " >&6; }
32131 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32132 :
32133 else
32134 GSCMYKDevice=bmpsep8
32135 fi
cristy8b350f62009-11-15 23:12:43 +000032136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032137$as_echo "$GSCMYKDevice" >&6; }
32138
32139 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032141$as_echo_n "checking for gs mono device... " >&6; }
32142 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32143 :
32144 else
32145 GSMonoDevice=$GSColorDevice
32146 fi
cristy8b350f62009-11-15 23:12:43 +000032147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032148$as_echo "$GSMonoDevice" >&6; }
32149
32150 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000032151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032152$as_echo_n "checking for gs PDF writing device... " >&6; }
32153 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32154 :
32155 else
32156 GSPDFDevice=nodevice
32157 fi
cristy8b350f62009-11-15 23:12:43 +000032158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032159$as_echo "$GSPDFDevice" >&6; }
32160
32161 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000032162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032163$as_echo_n "checking for gs PS writing device... " >&6; }
32164 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32165 :
32166 else
32167 GSPSDevice=nodevice
32168 fi
cristy8b350f62009-11-15 23:12:43 +000032169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032170$as_echo "$GSPSDevice" >&6; }
32171
32172 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000032173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032174$as_echo_n "checking for gs EPS writing device... " >&6; }
32175 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32176 :
32177 else
32178 GSEPSDevice=nodevice
32179 fi
cristy8b350f62009-11-15 23:12:43 +000032180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032181$as_echo "$GSEPSDevice" >&6; }
32182fi
32183
32184
32185
32186
32187
32188
32189
32190
32191
32192
32193#
32194# PerlMagick-related configuration
32195#
32196
32197# Look for PERL if PerlMagick requested
32198# If name/path of desired PERL interpreter is specified, look for that one first
32199have_perl='no'
32200if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000032201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032202$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032204$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032206$as_echo "" >&6; }
32207 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032209$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032210if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032211 $as_echo_n "(cached) " >&6
32212else
32213 ac_cv_path_PERL="$with_perl"
32214fi
cristy8b350f62009-11-15 23:12:43 +000032215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032216$as_echo "$ac_cv_path_PERL" >&6; };
32217 PERL=$ac_cv_path_PERL
32218 have_perl="$ac_cv_path_PERL"
32219 else
32220 for ac_prog in perl perl5
32221do
32222 # Extract the first word of "$ac_prog", so it can be a program name with args.
32223set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032225$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032226if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032227 $as_echo_n "(cached) " >&6
32228else
32229 case $PERL in
32230 [\\/]* | ?:[\\/]*)
32231 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32232 ;;
32233 *)
32234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32235for as_dir in $PATH
32236do
32237 IFS=$as_save_IFS
32238 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032239 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32241 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032243 break 2
32244 fi
32245done
cristy8b350f62009-11-15 23:12:43 +000032246 done
cristy3ed852e2009-09-05 21:47:34 +000032247IFS=$as_save_IFS
32248
32249 ;;
32250esac
32251fi
32252PERL=$ac_cv_path_PERL
32253if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032255$as_echo "$PERL" >&6; }
32256else
cristy8b350f62009-11-15 23:12:43 +000032257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032258$as_echo "no" >&6; }
32259fi
32260
32261
32262 test -n "$PERL" && break
32263done
32264 if test "$ac_cv_path_PERL"; then
32265 have_perl="$ac_cv_path_PERL"
32266 fi
32267 fi
32268fi
32269
cristy949301e2010-01-06 01:38:40 +000032270if test "$with_perl" != 'yes' ; then
32271 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32272fi
32273
32274PERL_SUPPORTS_DESTDIR='no'
32275
cristy3ed852e2009-09-05 21:47:34 +000032276with_perl_static='no'
32277with_perl_dynamic='no'
32278if test "$have_perl" != 'no'; then
32279 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32280 with_perl_static='yes'
32281 fi
32282 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32283 with_perl_dynamic='yes'
32284 fi
32285 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000032286
32287
32288
32289
32290 if test -n "$PERL"; then :
32291
32292 ax_perl_version="5.8.1"
32293
32294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32295$as_echo_n "checking for perl version... " >&6; }
32296
32297 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32298
32299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32300$as_echo "$perl_version" >&6; }
32301
32302 PERL_VERSION=$perl_version
32303
32304
32305
32306
32307
32308 # Used to indicate true or false condition
32309 ax_compare_version=false
32310
32311 # Convert the two version strings to be compared into a format that
32312 # allows a simple string comparison. The end result is that a version
32313 # string of the form 1.12.5-r617 will be converted to the form
32314 # 0001001200050617. In other words, each number is zero padded to four
32315 # digits, and non digits are removed.
32316
32317 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32318 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32319 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32320 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32321 -e 's/[^0-9]//g'`
32322
32323
32324 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32325 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32326 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32327 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32328 -e 's/[^0-9]//g'`
32329
32330
32331 ax_compare_version=`echo "x$ax_compare_version_A
32332x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32333
32334
32335
32336 if test "$ax_compare_version" = "true" ; then
32337
32338 :
32339 PERL_SUPPORTS_DESTDIR='yes'
32340
32341 else
32342 :
32343 PERL_SUPPORTS_DESTDIR='no'
32344
32345 fi
32346
32347
32348else
32349
32350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32351$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32352 PERL_SUPPORTS_DESTDIR='no'
32353
cristy3ed852e2009-09-05 21:47:34 +000032354fi
cristy73bd4a52010-10-05 11:24:23 +000032355
32356fi
32357 if test "$have_perl" != 'no'; then
32358 WITH_PERL_TRUE=
32359 WITH_PERL_FALSE='#'
32360else
32361 WITH_PERL_TRUE='#'
32362 WITH_PERL_FALSE=
32363fi
32364
32365 if test $with_perl_static = 'yes'; then
32366 WITH_PERL_STATIC_TRUE=
32367 WITH_PERL_STATIC_FALSE='#'
32368else
32369 WITH_PERL_STATIC_TRUE='#'
32370 WITH_PERL_STATIC_FALSE=
32371fi
32372
32373 if test $with_perl_dynamic = 'yes'; then
32374 WITH_PERL_DYNAMIC_TRUE=
32375 WITH_PERL_DYNAMIC_FALSE='#'
32376else
32377 WITH_PERL_DYNAMIC_TRUE='#'
32378 WITH_PERL_DYNAMIC_FALSE=
32379fi
32380
cristy3ed852e2009-09-05 21:47:34 +000032381
32382
32383# Determine path to pick up MagickCore library from for use with building PerlMagick
32384MAGICKCORE_PATH="${LIB_DIR}"
32385if test $with_perl_static = 'yes'; then
32386 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32387 libtool_objdir=$objdir
32388
32389 # Linker search path to library, followed by -lMagickCore
32390 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32391fi
32392
32393
32394# Create a simple string containing format names for all delegate libraries
32395DELEGATES=''
32396if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32397if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32398if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32399if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32400if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32401if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32402if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32403if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32404if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32405if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32406if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32407if test "$have_jpeg" = 'yes'; then
32408 DELEGATES="$DELEGATES jpeg";
32409 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32410fi
32411if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000032412if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000032413if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32414if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32415if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32416if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32417if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32418if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32419if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32420if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32421if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32422if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32423if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32424
32425
32426
32427#
32428# Handle special compiler flags
32429#
32430
32431# Add '-p' if prof source profiling support enabled
32432if test "$enable_prof" = 'yes'; then
32433 CFLAGS="-p $CFLAGS"
32434 CXXFLAGS="-p $CXXFLAGS"
32435 LDFLAGS="-p $LDFLAGS"
32436fi
32437
32438# Add '-pg' if gprof source profiling support enabled
32439if test "$enable_gprof" = 'yes'; then
32440 CFLAGS="-pg $CFLAGS"
32441 CXXFLAGS="-pg $CXXFLAGS"
32442 LDFLAGS="-pg $LDFLAGS"
32443fi
32444
32445# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32446# This is a gcc-specific feature
32447if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032449$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032450if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032451 $as_echo_n "(cached) " >&6
32452else
32453 ac_check_lib_save_LIBS=$LIBS
32454LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032456/* end confdefs.h. */
32457
32458/* Override any GCC internal prototype to avoid an error.
32459 Use char because int might match the return type of a GCC
32460 builtin and then its argument prototype would still apply. */
32461#ifdef __cplusplus
32462extern "C"
32463#endif
32464char _gcov_init ();
32465int
32466main ()
32467{
32468return _gcov_init ();
32469 ;
32470 return 0;
32471}
32472_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032473if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032474 ac_cv_lib_gcov__gcov_init=yes
32475else
cristy8b350f62009-11-15 23:12:43 +000032476 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032477fi
cristy8b350f62009-11-15 23:12:43 +000032478rm -f core conftest.err conftest.$ac_objext \
32479 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032480LIBS=$ac_check_lib_save_LIBS
32481fi
cristy8b350f62009-11-15 23:12:43 +000032482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032483$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032484if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032485 cat >>confdefs.h <<_ACEOF
32486#define HAVE_LIBGCOV 1
32487_ACEOF
32488
32489 LIBS="-lgcov $LIBS"
32490
32491fi
32492
cristy8b350f62009-11-15 23:12:43 +000032493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032494$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032495if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032496 $as_echo_n "(cached) " >&6
32497else
32498 ac_check_lib_save_LIBS=$LIBS
32499LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032501/* end confdefs.h. */
32502
32503/* Override any GCC internal prototype to avoid an error.
32504 Use char because int might match the return type of a GCC
32505 builtin and then its argument prototype would still apply. */
32506#ifdef __cplusplus
32507extern "C"
32508#endif
32509char __gcov_init ();
32510int
32511main ()
32512{
32513return __gcov_init ();
32514 ;
32515 return 0;
32516}
32517_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032518if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032519 ac_cv_lib_gcov___gcov_init=yes
32520else
cristy8b350f62009-11-15 23:12:43 +000032521 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032522fi
cristy8b350f62009-11-15 23:12:43 +000032523rm -f core conftest.err conftest.$ac_objext \
32524 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032525LIBS=$ac_check_lib_save_LIBS
32526fi
cristy8b350f62009-11-15 23:12:43 +000032527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032528$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032529if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032530 cat >>confdefs.h <<_ACEOF
32531#define HAVE_LIBGCOV 1
32532_ACEOF
32533
32534 LIBS="-lgcov $LIBS"
32535
32536fi
32537
32538 case "$target_os" in
32539 darwin*)
32540 OSX_GCOV_LDFLAG="-Wl,-single_module"
32541 ;;
32542 *)
32543 OSX_GCOV_LDFLAG=""
32544 ;;
32545 esac
32546
32547 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32548 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32549 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32550fi
32551
32552#
32553# Build library dependency list for libMagickCore
32554#
32555
32556MAGICK_LIBLTDL='' # Libltdl for build
32557MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32558MAGICK_LTDLDEPS='' # extra libltdl dependencies
32559if test "$with_ltdl" != 'no'
32560then
32561 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32562 MAGICK_API_LIBLTDL='-lltdl'
32563 fi
32564 MAGICK_LIBLTDL=${LIBLTDL}
32565 MAGICK_LTDLDEPS=${LTDLDEPS}
32566fi
32567
32568
32569
32570if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000032571 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 $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 +000032572else
cristy2e8b51d2009-10-17 18:26:15 +000032573 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 $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_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 +000032574fi
32575
32576
32577#
32578# Remove extraneous spaces from output variables (asthetic)
32579#
32580X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32581X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32582X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32583X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32584
32585CC=`echo $CC | sed -e 's/ */ /g'`
32586CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32587CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32588CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32589DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32590DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32591LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32592TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32593MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32594#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32595
32596# Pass only user-provided LIBS as "global" libraries
32597LIBS=$USER_LIBS
32598
32599#AC_SUBST(CPPFLAGS)
32600
32601#AC_SUBST(LDFLAGS)
32602#AC_SUBST(X_PRE_LIBS)
32603#AC_SUBST(X_LIBS)
32604#AC_SUBST(X_EXTRA_LIBS)
32605
32606MAGICK_CFLAGS=$CFLAGS
32607MAGICK_CXXFLAGS="$CXXFLAGS"
32608MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32609MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32610MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32611MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32612
32613
32614
32615
32616
32617
32618
32619
cristyfd9dcd42010-08-08 18:07:02 +000032620
cristy3ed852e2009-09-05 21:47:34 +000032621# Set configured scripts to executable.
32622ac_config_commands="$ac_config_commands default"
32623
32624ac_config_commands="$ac_config_commands MagickCore-config.in"
32625
32626ac_config_commands="$ac_config_commands Magick-config.in"
32627
32628ac_config_commands="$ac_config_commands MagickWand-config.in"
32629
32630ac_config_commands="$ac_config_commands Wand-config.in"
32631
32632ac_config_commands="$ac_config_commands Magick++-config.in"
32633
32634ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32635
32636
cristy8b350f62009-11-15 23:12:43 +000032637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032638$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000032640$as_echo "Update ImageMagick configuration" >&6; }
32641cat >confcache <<\_ACEOF
32642# This file is a shell script that caches the results of configure
32643# tests run on this system so they can be shared between configure
32644# scripts and configure runs, see configure's option --config-cache.
32645# It is not useful on other systems. If it contains results you don't
32646# want to keep, you may remove or edit it.
32647#
32648# config.status only pays attention to the cache file if you give it
32649# the --recheck option to rerun configure.
32650#
32651# `ac_cv_env_foo' variables (set or unset) will be overridden when
32652# loading this file, other *unset* `ac_cv_foo' will be assigned the
32653# following values.
32654
32655_ACEOF
32656
32657# The following way of writing the cache mishandles newlines in values,
32658# but we know of no workaround that is simple, portable, and efficient.
32659# So, we kill variables containing newlines.
32660# Ultrix sh set writes to stderr and can't be redirected directly,
32661# and sets the high bit in the cache file unless we assign to the vars.
32662(
32663 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32664 eval ac_val=\$$ac_var
32665 case $ac_val in #(
32666 *${as_nl}*)
32667 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000032668 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000032669$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32670 esac
32671 case $ac_var in #(
32672 _ | IFS | as_nl) ;; #(
32673 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000032674 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000032675 esac ;;
32676 esac
32677 done
32678
32679 (set) 2>&1 |
32680 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32681 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000032682 # `set' does not quote correctly, so add quotes: double-quote
32683 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000032684 sed -n \
32685 "s/'/'\\\\''/g;
32686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32687 ;; #(
32688 *)
32689 # `set' quotes correctly as required by POSIX, so do not add quotes.
32690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32691 ;;
32692 esac |
32693 sort
32694) |
32695 sed '
32696 /^ac_cv_env_/b end
32697 t clear
32698 :clear
32699 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32700 t end
32701 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32702 :end' >>confcache
32703if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32704 if test -w "$cache_file"; then
32705 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000032706 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032707$as_echo "$as_me: updating cache $cache_file" >&6;}
32708 cat confcache >$cache_file
32709 else
cristy8b350f62009-11-15 23:12:43 +000032710 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032711$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32712 fi
32713fi
32714rm -f confcache
32715
32716test "x$prefix" = xNONE && prefix=$ac_default_prefix
32717# Let make expand exec_prefix.
32718test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32719
32720DEFS=-DHAVE_CONFIG_H
32721
32722ac_libobjs=
32723ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000032724U=
cristy3ed852e2009-09-05 21:47:34 +000032725for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32726 # 1. Remove the extension, and $U if already installed.
32727 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32728 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32729 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32730 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000032731 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32732 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000032733done
32734LIBOBJS=$ac_libobjs
32735
32736LTLIBOBJS=$ac_ltlibobjs
32737
32738
cristy73bd4a52010-10-05 11:24:23 +000032739 if test -n "$EXEEXT"; then
32740 am__EXEEXT_TRUE=
32741 am__EXEEXT_FALSE='#'
32742else
32743 am__EXEEXT_TRUE='#'
32744 am__EXEEXT_FALSE=
32745fi
cristy3ed852e2009-09-05 21:47:34 +000032746
cristy73bd4a52010-10-05 11:24:23 +000032747if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032748 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032749Usually this means the macro was only invoked conditionally." "$LINENO" 5
32750fi
32751if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032752 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032753Usually this means the macro was only invoked conditionally." "$LINENO" 5
32754fi
32755if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032756 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032757Usually this means the macro was only invoked conditionally." "$LINENO" 5
32758fi
32759if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032760 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032761Usually this means the macro was only invoked conditionally." "$LINENO" 5
32762fi
32763if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032764 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032765Usually this means the macro was only invoked conditionally." "$LINENO" 5
32766fi
32767if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032768 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032769Usually this means the macro was only invoked conditionally." "$LINENO" 5
32770fi
32771if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032772 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032773Usually this means the macro was only invoked conditionally." "$LINENO" 5
32774fi
32775if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032776 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032777Usually this means the macro was only invoked conditionally." "$LINENO" 5
32778fi
cristy73bd4a52010-10-05 11:24:23 +000032779if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032780 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032781Usually this means the macro was only invoked conditionally." "$LINENO" 5
32782fi
32783if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032784 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032785Usually this means the macro was only invoked conditionally." "$LINENO" 5
32786fi
32787LT_CONFIG_H=config/config.h
32788
32789 _ltdl_libobjs=
32790 _ltdl_ltlibobjs=
32791 if test -n "$_LT_LIBOBJS"; then
32792 # Remove the extension.
32793 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32794 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32795 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32796 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32797 done
32798 fi
32799 ltdl_LIBOBJS=$_ltdl_libobjs
32800
32801 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32802
32803
32804if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032805 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032806Usually this means the macro was only invoked conditionally." "$LINENO" 5
32807fi
32808if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032809 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032810Usually this means the macro was only invoked conditionally." "$LINENO" 5
32811fi
32812if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032813 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032814Usually this means the macro was only invoked conditionally." "$LINENO" 5
32815fi
32816if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032817 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032818Usually this means the macro was only invoked conditionally." "$LINENO" 5
32819fi
32820
32821if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032822 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032823Usually this means the macro was only invoked conditionally." "$LINENO" 5
32824fi
32825if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032826 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032827Usually this means the macro was only invoked conditionally." "$LINENO" 5
32828fi
32829if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032830 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032831Usually this means the macro was only invoked conditionally." "$LINENO" 5
32832fi
32833if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032834 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032835Usually this means the macro was only invoked conditionally." "$LINENO" 5
32836fi
32837if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032838 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032839Usually this means the macro was only invoked conditionally." "$LINENO" 5
32840fi
32841if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032842 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032843Usually this means the macro was only invoked conditionally." "$LINENO" 5
32844fi
32845if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032846 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032847Usually this means the macro was only invoked conditionally." "$LINENO" 5
32848fi
32849if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032850 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032851Usually this means the macro was only invoked conditionally." "$LINENO" 5
32852fi
32853if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032854 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032855Usually this means the macro was only invoked conditionally." "$LINENO" 5
32856fi
32857if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032858 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032859Usually this means the macro was only invoked conditionally." "$LINENO" 5
32860fi
32861if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032862 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032863Usually this means the macro was only invoked conditionally." "$LINENO" 5
32864fi
32865if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032866 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032867Usually this means the macro was only invoked conditionally." "$LINENO" 5
32868fi
32869if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032870 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032871Usually this means the macro was only invoked conditionally." "$LINENO" 5
32872fi
32873if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032874 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032875Usually this means the macro was only invoked conditionally." "$LINENO" 5
32876fi
32877if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032878 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032879Usually this means the macro was only invoked conditionally." "$LINENO" 5
32880fi
32881if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032882 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032883Usually this means the macro was only invoked conditionally." "$LINENO" 5
32884fi
32885if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032886 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032887Usually this means the macro was only invoked conditionally." "$LINENO" 5
32888fi
32889if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032890 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032891Usually this means the macro was only invoked conditionally." "$LINENO" 5
32892fi
32893if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032894 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032895Usually this means the macro was only invoked conditionally." "$LINENO" 5
32896fi
32897if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032898 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032899Usually this means the macro was only invoked conditionally." "$LINENO" 5
32900fi
32901if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032902 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032903Usually this means the macro was only invoked conditionally." "$LINENO" 5
32904fi
32905if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032906 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032907Usually this means the macro was only invoked conditionally." "$LINENO" 5
32908fi
32909if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032910 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032911Usually this means the macro was only invoked conditionally." "$LINENO" 5
32912fi
32913if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032914 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032915Usually this means the macro was only invoked conditionally." "$LINENO" 5
32916fi
32917if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032918 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032919Usually this means the macro was only invoked conditionally." "$LINENO" 5
32920fi
32921if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032922 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032923Usually this means the macro was only invoked conditionally." "$LINENO" 5
32924fi
32925if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032926 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032927Usually this means the macro was only invoked conditionally." "$LINENO" 5
32928fi
32929if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032930 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032931Usually this means the macro was only invoked conditionally." "$LINENO" 5
32932fi
32933if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032934 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032935Usually this means the macro was only invoked conditionally." "$LINENO" 5
32936fi
32937if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032938 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032939Usually this means the macro was only invoked conditionally." "$LINENO" 5
32940fi
32941if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032942 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032943Usually this means the macro was only invoked conditionally." "$LINENO" 5
32944fi
32945if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032946 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032947Usually this means the macro was only invoked conditionally." "$LINENO" 5
32948fi
32949if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032950 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032951Usually this means the macro was only invoked conditionally." "$LINENO" 5
32952fi
cristy3ed852e2009-09-05 21:47:34 +000032953
32954: ${CONFIG_STATUS=./config.status}
32955ac_write_fail=0
32956ac_clean_files_save=$ac_clean_files
32957ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000032958{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032959$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032960as_write_fail=0
32961cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032962#! $SHELL
32963# Generated by $as_me.
32964# Run this file to recreate the current configuration.
32965# Compiler output produced by configure, useful for debugging
32966# configure, is in config.log if it exists.
32967
32968debug=false
32969ac_cs_recheck=false
32970ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000032971
cristy8b350f62009-11-15 23:12:43 +000032972SHELL=\${CONFIG_SHELL-$SHELL}
32973export SHELL
32974_ASEOF
32975cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32976## -------------------- ##
32977## M4sh Initialization. ##
32978## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000032979
32980# Be more Bourne compatible
32981DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000032982if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000032983 emulate sh
32984 NULLCMD=:
32985 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32986 # is contrary to our usage. Disable this feature.
32987 alias -g '${1+"$@"}'='"$@"'
32988 setopt NO_GLOB_SUBST
32989else
cristy8b350f62009-11-15 23:12:43 +000032990 case `(set -o) 2>/dev/null` in #(
32991 *posix*) :
32992 set -o posix ;; #(
32993 *) :
32994 ;;
cristy3ed852e2009-09-05 21:47:34 +000032995esac
cristy3ed852e2009-09-05 21:47:34 +000032996fi
32997
32998
cristy3ed852e2009-09-05 21:47:34 +000032999as_nl='
33000'
33001export as_nl
33002# Printing a long string crashes Solaris 7 /usr/bin/printf.
33003as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33004as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33005as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000033006# Prefer a ksh shell builtin over an external printf program on Solaris,
33007# but without wasting forks for bash or zsh.
33008if test -z "$BASH_VERSION$ZSH_VERSION" \
33009 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33010 as_echo='print -r --'
33011 as_echo_n='print -rn --'
33012elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000033013 as_echo='printf %s\n'
33014 as_echo_n='printf %s'
33015else
33016 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33017 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33018 as_echo_n='/usr/ucb/echo -n'
33019 else
33020 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33021 as_echo_n_body='eval
33022 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000033023 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000033024 *"$as_nl"*)
33025 expr "X$arg" : "X\\(.*\\)$as_nl";
33026 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33027 esac;
33028 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33029 '
33030 export as_echo_n_body
33031 as_echo_n='sh -c $as_echo_n_body as_echo'
33032 fi
33033 export as_echo_body
33034 as_echo='sh -c $as_echo_body as_echo'
33035fi
33036
33037# The user is always right.
33038if test "${PATH_SEPARATOR+set}" != set; then
33039 PATH_SEPARATOR=:
33040 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33041 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33042 PATH_SEPARATOR=';'
33043 }
33044fi
33045
cristy3ed852e2009-09-05 21:47:34 +000033046
33047# IFS
33048# We need space, tab and new line, in precisely that order. Quoting is
33049# there to prevent editors from complaining about space-tab.
33050# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33051# splitting by setting IFS to empty value.)
33052IFS=" "" $as_nl"
33053
33054# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000033055case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000033056 *[\\/]* ) as_myself=$0 ;;
33057 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33058for as_dir in $PATH
33059do
33060 IFS=$as_save_IFS
33061 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033062 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33063 done
cristy3ed852e2009-09-05 21:47:34 +000033064IFS=$as_save_IFS
33065
33066 ;;
33067esac
33068# We did not find ourselves, most probably we were run as `sh COMMAND'
33069# in which case we are not to be found in the path.
33070if test "x$as_myself" = x; then
33071 as_myself=$0
33072fi
33073if test ! -f "$as_myself"; then
33074 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000033075 exit 1
cristy3ed852e2009-09-05 21:47:34 +000033076fi
33077
cristy8b350f62009-11-15 23:12:43 +000033078# Unset variables that we do not need and which cause bugs (e.g. in
33079# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33080# suppresses any "Segmentation fault" message there. '((' could
33081# trigger a bug in pdksh 5.2.14.
33082for as_var in BASH_ENV ENV MAIL MAILPATH
33083do eval test x\${$as_var+set} = xset \
33084 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033085done
33086PS1='$ '
33087PS2='> '
33088PS4='+ '
33089
33090# NLS nuisances.
33091LC_ALL=C
33092export LC_ALL
33093LANGUAGE=C
33094export LANGUAGE
33095
cristy8b350f62009-11-15 23:12:43 +000033096# CDPATH.
33097(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33098
33099
cristy98dddb52010-11-04 00:30:15 +000033100# as_fn_error STATUS ERROR [LINENO LOG_FD]
33101# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000033102# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33103# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000033104# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000033105as_fn_error ()
33106{
cristy98dddb52010-11-04 00:30:15 +000033107 as_status=$1; test $as_status -eq 0 && as_status=1
33108 if test "$4"; then
33109 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33110 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000033111 fi
cristy98dddb52010-11-04 00:30:15 +000033112 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000033113 as_fn_exit $as_status
33114} # as_fn_error
33115
33116
33117# as_fn_set_status STATUS
33118# -----------------------
33119# Set $? to STATUS, without forking.
33120as_fn_set_status ()
33121{
33122 return $1
33123} # as_fn_set_status
33124
33125# as_fn_exit STATUS
33126# -----------------
33127# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33128as_fn_exit ()
33129{
33130 set +e
33131 as_fn_set_status $1
33132 exit $1
33133} # as_fn_exit
33134
33135# as_fn_unset VAR
33136# ---------------
33137# Portably unset VAR.
33138as_fn_unset ()
33139{
33140 { eval $1=; unset $1;}
33141}
33142as_unset=as_fn_unset
33143# as_fn_append VAR VALUE
33144# ----------------------
33145# Append the text in VALUE to the end of the definition contained in VAR. Take
33146# advantage of any shell optimizations that allow amortized linear growth over
33147# repeated appends, instead of the typical quadratic growth present in naive
33148# implementations.
33149if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33150 eval 'as_fn_append ()
33151 {
33152 eval $1+=\$2
33153 }'
33154else
33155 as_fn_append ()
33156 {
33157 eval $1=\$$1\$2
33158 }
33159fi # as_fn_append
33160
33161# as_fn_arith ARG...
33162# ------------------
33163# Perform arithmetic evaluation on the ARGs, and store the result in the
33164# global $as_val. Take advantage of shells that can avoid forks. The arguments
33165# must be portable across $(()) and expr.
33166if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33167 eval 'as_fn_arith ()
33168 {
33169 as_val=$(( $* ))
33170 }'
33171else
33172 as_fn_arith ()
33173 {
33174 as_val=`expr "$@" || test $? -eq 1`
33175 }
33176fi # as_fn_arith
33177
33178
cristy3ed852e2009-09-05 21:47:34 +000033179if expr a : '\(a\)' >/dev/null 2>&1 &&
33180 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33181 as_expr=expr
33182else
33183 as_expr=false
33184fi
33185
33186if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33187 as_basename=basename
33188else
33189 as_basename=false
33190fi
33191
cristy8b350f62009-11-15 23:12:43 +000033192if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33193 as_dirname=dirname
33194else
33195 as_dirname=false
33196fi
cristy3ed852e2009-09-05 21:47:34 +000033197
cristy3ed852e2009-09-05 21:47:34 +000033198as_me=`$as_basename -- "$0" ||
33199$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33200 X"$0" : 'X\(//\)$' \| \
33201 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33202$as_echo X/"$0" |
33203 sed '/^.*\/\([^/][^/]*\)\/*$/{
33204 s//\1/
33205 q
33206 }
33207 /^X\/\(\/\/\)$/{
33208 s//\1/
33209 q
33210 }
33211 /^X\/\(\/\).*/{
33212 s//\1/
33213 q
33214 }
33215 s/.*/./; q'`
33216
cristy8b350f62009-11-15 23:12:43 +000033217# Avoid depending upon Character Ranges.
33218as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33219as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33220as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33221as_cr_digits='0123456789'
33222as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000033223
33224ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000033225case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000033226-n*)
cristy8b350f62009-11-15 23:12:43 +000033227 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000033228 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000033229 xy) ECHO_C='\c';;
33230 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33231 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000033232 esac;;
33233*)
33234 ECHO_N='-n';;
33235esac
cristy3ed852e2009-09-05 21:47:34 +000033236
33237rm -f conf$$ conf$$.exe conf$$.file
33238if test -d conf$$.dir; then
33239 rm -f conf$$.dir/conf$$.file
33240else
33241 rm -f conf$$.dir
33242 mkdir conf$$.dir 2>/dev/null
33243fi
33244if (echo >conf$$.file) 2>/dev/null; then
33245 if ln -s conf$$.file conf$$ 2>/dev/null; then
33246 as_ln_s='ln -s'
33247 # ... but there are two gotchas:
33248 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33249 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33250 # In both cases, we have to default to `cp -p'.
33251 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33252 as_ln_s='cp -p'
33253 elif ln conf$$.file conf$$ 2>/dev/null; then
33254 as_ln_s=ln
33255 else
33256 as_ln_s='cp -p'
33257 fi
33258else
33259 as_ln_s='cp -p'
33260fi
33261rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33262rmdir conf$$.dir 2>/dev/null
33263
cristy8b350f62009-11-15 23:12:43 +000033264
33265# as_fn_mkdir_p
33266# -------------
33267# Create "$as_dir" as a directory, including parents if necessary.
33268as_fn_mkdir_p ()
33269{
33270
33271 case $as_dir in #(
33272 -*) as_dir=./$as_dir;;
33273 esac
33274 test -d "$as_dir" || eval $as_mkdir_p || {
33275 as_dirs=
33276 while :; do
33277 case $as_dir in #(
33278 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33279 *) as_qdir=$as_dir;;
33280 esac
33281 as_dirs="'$as_qdir' $as_dirs"
33282 as_dir=`$as_dirname -- "$as_dir" ||
33283$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33284 X"$as_dir" : 'X\(//\)[^/]' \| \
33285 X"$as_dir" : 'X\(//\)$' \| \
33286 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33287$as_echo X"$as_dir" |
33288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33289 s//\1/
33290 q
33291 }
33292 /^X\(\/\/\)[^/].*/{
33293 s//\1/
33294 q
33295 }
33296 /^X\(\/\/\)$/{
33297 s//\1/
33298 q
33299 }
33300 /^X\(\/\).*/{
33301 s//\1/
33302 q
33303 }
33304 s/.*/./; q'`
33305 test -d "$as_dir" && break
33306 done
33307 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000033308 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000033309
33310
33311} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033312if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033313 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000033314else
33315 test -d ./-p && rmdir ./-p
33316 as_mkdir_p=false
33317fi
33318
33319if test -x / >/dev/null 2>&1; then
33320 as_test_x='test -x'
33321else
33322 if ls -dL / >/dev/null 2>&1; then
33323 as_ls_L_option=L
33324 else
33325 as_ls_L_option=
33326 fi
33327 as_test_x='
33328 eval sh -c '\''
33329 if test -d "$1"; then
33330 test -d "$1/.";
33331 else
cristy8b350f62009-11-15 23:12:43 +000033332 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000033333 -*)set "./$1";;
33334 esac;
cristy8b350f62009-11-15 23:12:43 +000033335 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000033336 ???[sx]*):;;*)false;;esac;fi
33337 '\'' sh
33338 '
33339fi
33340as_executable_p=$as_test_x
33341
33342# Sed expression to map a string onto a valid CPP name.
33343as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33344
33345# Sed expression to map a string onto a valid variable name.
33346as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33347
33348
33349exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000033350## ----------------------------------- ##
33351## Main body of $CONFIG_STATUS script. ##
33352## ----------------------------------- ##
33353_ASEOF
33354test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033355
cristy8b350f62009-11-15 23:12:43 +000033356cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33357# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000033358# report actual input values of CONFIG_FILES etc. instead of their
33359# values after options handling.
33360ac_log="
cristy56225732010-09-04 23:44:25 +000033361This file was extended by ImageMagick $as_me 6.6.4, which was
cristy98dddb52010-11-04 00:30:15 +000033362generated by GNU Autoconf 2.66. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000033363
33364 CONFIG_FILES = $CONFIG_FILES
33365 CONFIG_HEADERS = $CONFIG_HEADERS
33366 CONFIG_LINKS = $CONFIG_LINKS
33367 CONFIG_COMMANDS = $CONFIG_COMMANDS
33368 $ $0 $@
33369
33370on `(hostname || uname -n) 2>/dev/null | sed 1q`
33371"
33372
33373_ACEOF
33374
33375case $ac_config_files in *"
33376"*) set x $ac_config_files; shift; ac_config_files=$*;;
33377esac
33378
33379case $ac_config_headers in *"
33380"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33381esac
33382
33383
33384cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33385# Files that config.status was made for.
33386config_files="$ac_config_files"
33387config_headers="$ac_config_headers"
33388config_commands="$ac_config_commands"
33389
33390_ACEOF
33391
33392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33393ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000033394\`$as_me' instantiates files and other configuration actions
33395from templates according to the current configuration. Unless the files
33396and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000033397
cristy8b350f62009-11-15 23:12:43 +000033398Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000033399
33400 -h, --help print this help, then exit
33401 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000033402 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000033403 -q, --quiet, --silent
33404 do not print progress messages
33405 -d, --debug don't remove temporary files
33406 --recheck update $as_me by reconfiguring in the same conditions
33407 --file=FILE[:TEMPLATE]
33408 instantiate the configuration file FILE
33409 --header=FILE[:TEMPLATE]
33410 instantiate the configuration header FILE
33411
33412Configuration files:
33413$config_files
33414
33415Configuration headers:
33416$config_headers
33417
33418Configuration commands:
33419$config_commands
33420
cristy8b350f62009-11-15 23:12:43 +000033421Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000033422
33423_ACEOF
33424cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000033425ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000033426ac_cs_version="\\
cristy56225732010-09-04 23:44:25 +000033427ImageMagick config.status 6.6.4
cristy98dddb52010-11-04 00:30:15 +000033428configured by $0, generated by GNU Autoconf 2.66,
cristycd4c5312009-11-22 01:19:08 +000033429 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000033430
cristy98dddb52010-11-04 00:30:15 +000033431Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033432This config.status script is free software; the Free Software Foundation
33433gives unlimited permission to copy, distribute and modify it."
33434
33435ac_pwd='$ac_pwd'
33436srcdir='$srcdir'
33437INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000033438MKDIR_P='$MKDIR_P'
33439AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000033440test -n "\$AWK" || AWK=awk
33441_ACEOF
33442
33443cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33444# The default lists apply if the user does not specify any file.
33445ac_need_defaults=:
33446while test $# != 0
33447do
33448 case $1 in
33449 --*=*)
33450 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33451 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33452 ac_shift=:
33453 ;;
33454 *)
33455 ac_option=$1
33456 ac_optarg=$2
33457 ac_shift=shift
33458 ;;
33459 esac
33460
33461 case $ac_option in
33462 # Handling of the options.
33463 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33464 ac_cs_recheck=: ;;
33465 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33466 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000033467 --config | --confi | --conf | --con | --co | --c )
33468 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000033469 --debug | --debu | --deb | --de | --d | -d )
33470 debug=: ;;
33471 --file | --fil | --fi | --f )
33472 $ac_shift
33473 case $ac_optarg in
33474 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33475 esac
cristy8b350f62009-11-15 23:12:43 +000033476 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033477 ac_need_defaults=false;;
33478 --header | --heade | --head | --hea )
33479 $ac_shift
33480 case $ac_optarg in
33481 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33482 esac
cristy8b350f62009-11-15 23:12:43 +000033483 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033484 ac_need_defaults=false;;
33485 --he | --h)
33486 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000033487 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033488Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000033489 --help | --hel | -h )
33490 $as_echo "$ac_cs_usage"; exit ;;
33491 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33492 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33493 ac_cs_silent=: ;;
33494
33495 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000033496 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033497Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000033498
cristy8b350f62009-11-15 23:12:43 +000033499 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000033500 ac_need_defaults=false ;;
33501
33502 esac
33503 shift
33504done
33505
33506ac_configure_extra_args=
33507
33508if $ac_cs_silent; then
33509 exec 6>/dev/null
33510 ac_configure_extra_args="$ac_configure_extra_args --silent"
33511fi
33512
33513_ACEOF
33514cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33515if \$ac_cs_recheck; then
33516 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33517 shift
33518 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33519 CONFIG_SHELL='$SHELL'
33520 export CONFIG_SHELL
33521 exec "\$@"
33522fi
33523
33524_ACEOF
33525cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33526exec 5>>config.log
33527{
33528 echo
33529 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33530## Running $as_me. ##
33531_ASBOX
33532 $as_echo "$ac_log"
33533} >&5
33534
33535_ACEOF
33536cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000033537#
33538# INIT-COMMANDS
33539#
33540PACKAGE="$PACKAGE"
33541AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33542
33543
33544# The HP-UX ksh and POSIX shell print the target directory to stdout
33545# if CDPATH is set.
33546(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33547
33548sed_quote_subst='$sed_quote_subst'
33549double_quote_subst='$double_quote_subst'
33550delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000033551SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33552Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33553GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33554EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33555FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33556SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33557ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33558LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33559macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33560macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33561AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
33562DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33563OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33564enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33565enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33566pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33567enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33568host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33569host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33570host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33571build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33572build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33573build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33574NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33575LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33576max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33577ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33578exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33579lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33580lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33581lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33582reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33583reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33584deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33585file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33586AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33587AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33588STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33589RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33590old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33591old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33592old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
33593lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
33594CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
33595CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
33596compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
33597GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
33598lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
33599lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33600lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33601lt_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"`'
33602objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33603MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33604lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33605lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33606lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33607lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33608lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33609need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33610DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33611NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33612LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33613OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
33614OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
33615libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
33616shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
33617extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33618archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
33619enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
33620export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
33621whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
33622compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
33623old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
33624old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33625archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
33626archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33627module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
33628module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33629with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
33630allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
33631no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
33632hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
33633hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
33634hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
33635hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
33636hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
33637hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
33638hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
33639hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33640inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33641link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33642fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
33643always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33644export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33645exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33646include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33647prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33648file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33649variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33650need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33651need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
33652version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
33653runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
33654shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
33655shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
33656libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
33657library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
33658soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
33659install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
33660postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33661postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33662finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
33663finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
33664hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
33665sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
33666sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
33667hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
33668enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
33669enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
33670enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
33671old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
33672striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
33673compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
33674predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
33675postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
33676predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
33677postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
33678compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
33679LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
33680reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
33681reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33682old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33683compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
33684GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
33685lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
33686lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
33687lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
33688lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
33689lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
33690archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
33691enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
33692export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33693whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33694compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
33695old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33696old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33697archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33698archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33699module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33700module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33701with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
33702allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33703no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33704hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33705hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
33706hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
33707hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
33708hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
33709hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
33710hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
33711hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
33712inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
33713link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
33714fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
33715always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
33716export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33717exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33718include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33719prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33720file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
33721hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
33722compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
33723predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33724postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33725predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
33726postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
33727compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000033728
33729LTCC='$LTCC'
33730LTCFLAGS='$LTCFLAGS'
33731compiler='$compiler_DEFAULT'
33732
cristy0c60a692010-11-04 01:09:47 +000033733# A function that is used when there is no print builtin or printf.
33734func_fallback_echo ()
33735{
33736 eval 'cat <<_LTECHO_EOF
33737\$1
33738_LTECHO_EOF'
33739}
33740
cristy73bd4a52010-10-05 11:24:23 +000033741# Quote evaled strings.
33742for var in SED \
33743GREP \
33744EGREP \
33745FGREP \
cristy0c60a692010-11-04 01:09:47 +000033746SHELL \
33747ECHO \
cristy73bd4a52010-10-05 11:24:23 +000033748LD \
cristy0c60a692010-11-04 01:09:47 +000033749AS \
33750DLLTOOL \
33751OBJDUMP \
cristy73bd4a52010-10-05 11:24:23 +000033752NM \
33753LN_S \
33754lt_SP2NL \
33755lt_NL2SP \
33756reload_flag \
33757deplibs_check_method \
33758file_magic_cmd \
33759AR \
33760AR_FLAGS \
33761STRIP \
33762RANLIB \
33763CC \
33764CFLAGS \
33765compiler \
33766lt_cv_sys_global_symbol_pipe \
33767lt_cv_sys_global_symbol_to_cdecl \
33768lt_cv_sys_global_symbol_to_c_name_address \
33769lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy73bd4a52010-10-05 11:24:23 +000033770lt_prog_compiler_no_builtin_flag \
33771lt_prog_compiler_wl \
33772lt_prog_compiler_pic \
33773lt_prog_compiler_static \
33774lt_cv_prog_compiler_c_o \
33775need_locks \
33776DSYMUTIL \
33777NMEDIT \
33778LIPO \
33779OTOOL \
33780OTOOL64 \
33781shrext_cmds \
33782export_dynamic_flag_spec \
33783whole_archive_flag_spec \
33784compiler_needs_object \
33785with_gnu_ld \
33786allow_undefined_flag \
33787no_undefined_flag \
33788hardcode_libdir_flag_spec \
33789hardcode_libdir_flag_spec_ld \
33790hardcode_libdir_separator \
33791fix_srcfile_path \
33792exclude_expsyms \
33793include_expsyms \
33794file_list_spec \
33795variables_saved_for_relink \
33796libname_spec \
33797library_names_spec \
33798soname_spec \
cristy0c60a692010-11-04 01:09:47 +000033799install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000033800finish_eval \
33801old_striplib \
33802striplib \
33803compiler_lib_search_dirs \
33804predep_objects \
33805postdep_objects \
33806predeps \
33807postdeps \
33808compiler_lib_search_path \
33809LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000033810reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000033811compiler_CXX \
33812lt_prog_compiler_no_builtin_flag_CXX \
33813lt_prog_compiler_wl_CXX \
33814lt_prog_compiler_pic_CXX \
33815lt_prog_compiler_static_CXX \
33816lt_cv_prog_compiler_c_o_CXX \
33817export_dynamic_flag_spec_CXX \
33818whole_archive_flag_spec_CXX \
33819compiler_needs_object_CXX \
33820with_gnu_ld_CXX \
33821allow_undefined_flag_CXX \
33822no_undefined_flag_CXX \
33823hardcode_libdir_flag_spec_CXX \
33824hardcode_libdir_flag_spec_ld_CXX \
33825hardcode_libdir_separator_CXX \
33826fix_srcfile_path_CXX \
33827exclude_expsyms_CXX \
33828include_expsyms_CXX \
33829file_list_spec_CXX \
33830compiler_lib_search_dirs_CXX \
33831predep_objects_CXX \
33832postdep_objects_CXX \
33833predeps_CXX \
33834postdeps_CXX \
33835compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000033836 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000033837 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000033838 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000033839 ;;
33840 *)
33841 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33842 ;;
33843 esac
33844done
33845
33846# Double-quote double-evaled strings.
33847for var in reload_cmds \
33848old_postinstall_cmds \
33849old_postuninstall_cmds \
33850old_archive_cmds \
33851extract_expsyms_cmds \
33852old_archive_from_new_cmds \
33853old_archive_from_expsyms_cmds \
33854archive_cmds \
33855archive_expsym_cmds \
33856module_cmds \
33857module_expsym_cmds \
33858export_symbols_cmds \
33859prelink_cmds \
33860postinstall_cmds \
33861postuninstall_cmds \
33862finish_cmds \
33863sys_lib_search_path_spec \
33864sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000033865reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000033866old_archive_cmds_CXX \
33867old_archive_from_new_cmds_CXX \
33868old_archive_from_expsyms_cmds_CXX \
33869archive_cmds_CXX \
33870archive_expsym_cmds_CXX \
33871module_cmds_CXX \
33872module_expsym_cmds_CXX \
33873export_symbols_cmds_CXX \
33874prelink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000033875 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000033876 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000033877 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000033878 ;;
33879 *)
33880 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33881 ;;
33882 esac
33883done
33884
cristy73bd4a52010-10-05 11:24:23 +000033885ac_aux_dir='$ac_aux_dir'
33886xsi_shell='$xsi_shell'
33887lt_shell_append='$lt_shell_append'
33888
33889# See if we are running on zsh, and set the options which allow our
33890# commands through without removal of \ escapes INIT.
33891if test -n "\${ZSH_VERSION+set}" ; then
33892 setopt NO_GLOB_SUBST
33893fi
33894
33895
33896 PACKAGE='$PACKAGE'
33897 VERSION='$VERSION'
33898 TIMESTAMP='$TIMESTAMP'
33899 RM='$RM'
33900 ofile='$ofile'
33901
33902
33903
33904
33905
33906
cristy3ed852e2009-09-05 21:47:34 +000033907_ACEOF
33908
33909cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33910
33911# Handling of arguments.
33912for ac_config_target in $ac_config_targets
33913do
33914 case $ac_config_target in
33915 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy73bd4a52010-10-05 11:24:23 +000033916 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000033917 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33918 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33919 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33920 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33921 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000033922 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000033923 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33924 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33925 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33926 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33927 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33928 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33929 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33930 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33931 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33932 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33933 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33934 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33935 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33936 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33937 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33938 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33939 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33940 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33941 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33942 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33943 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33944 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33945 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33946 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33947 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33948 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33949 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33950 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33951 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33952 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33953 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33954 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33955 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000033956 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33957 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000033958 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33959 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33960 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33961 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33962 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33963 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33964 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33965
cristy98dddb52010-11-04 00:30:15 +000033966 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033967 esac
33968done
33969
33970
33971# If the user did not use the arguments to specify the items to instantiate,
33972# then the envvar interface is used. Set only those that are not.
33973# We use the long form for the default assignment because of an extremely
33974# bizarre bug on SunOS 4.1.3.
33975if $ac_need_defaults; then
33976 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33977 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33978 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33979fi
33980
33981# Have a temporary directory for convenience. Make it in the build tree
33982# simply because there is no reason against having it here, and in addition,
33983# creating and moving files from /tmp can sometimes cause problems.
33984# Hook for its removal unless debugging.
33985# Note that there is a small window in which the directory will not be cleaned:
33986# after its creation but before its name has been assigned to `$tmp'.
33987$debug ||
33988{
33989 tmp=
33990 trap 'exit_status=$?
33991 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33992' 0
cristy8b350f62009-11-15 23:12:43 +000033993 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000033994}
33995# Create a (secure) tmp directory for tmp files.
33996
33997{
33998 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33999 test -n "$tmp" && test -d "$tmp"
34000} ||
34001{
34002 tmp=./conf$$-$RANDOM
34003 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000034004} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034005
34006# Set up the scripts for CONFIG_FILES section.
34007# No need to generate them if there are no CONFIG_FILES.
34008# This happens for instance with `./config.status config.h'.
34009if test -n "$CONFIG_FILES"; then
34010
34011
cristy8b350f62009-11-15 23:12:43 +000034012ac_cr=`echo X | tr X '\015'`
34013# On cygwin, bash can eat \r inside `` if the user requested igncr.
34014# But we know of no other shell where ac_cr would be empty at this
34015# point, so we can use a bashism as a fallback.
34016if test "x$ac_cr" = x; then
34017 eval ac_cr=\$\'\\r\'
34018fi
cristy3ed852e2009-09-05 21:47:34 +000034019ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34020if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000034021 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000034022else
34023 ac_cs_awk_cr=$ac_cr
34024fi
34025
34026echo 'BEGIN {' >"$tmp/subs1.awk" &&
34027_ACEOF
34028
34029
34030{
34031 echo "cat >conf$$subs.awk <<_ACEOF" &&
34032 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34033 echo "_ACEOF"
34034} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000034035 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34036ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000034037ac_delim='%!_!# '
34038for ac_last_try in false false false false false :; do
34039 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000034040 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034041
34042 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34043 if test $ac_delim_n = $ac_delim_num; then
34044 break
34045 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000034046 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034047 else
34048 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34049 fi
34050done
34051rm -f conf$$subs.sh
34052
34053cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34054cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34055_ACEOF
34056sed -n '
34057h
34058s/^/S["/; s/!.*/"]=/
34059p
34060g
34061s/^[^!]*!//
34062:repl
34063t repl
34064s/'"$ac_delim"'$//
34065t delim
34066:nl
34067h
cristycd4c5312009-11-22 01:19:08 +000034068s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034069t more1
34070s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34071p
34072n
34073b repl
34074:more1
34075s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34076p
34077g
34078s/.\{148\}//
34079t nl
34080:delim
34081h
cristycd4c5312009-11-22 01:19:08 +000034082s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034083t more2
34084s/["\\]/\\&/g; s/^/"/; s/$/"/
34085p
34086b
34087:more2
34088s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34089p
34090g
34091s/.\{148\}//
34092t delim
34093' <conf$$subs.awk | sed '
34094/^[^""]/{
34095 N
34096 s/\n//
34097}
34098' >>$CONFIG_STATUS || ac_write_fail=1
34099rm -f conf$$subs.awk
34100cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34101_ACAWK
34102cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34103 for (key in S) S_is_set[key] = 1
34104 FS = ""
34105
34106}
34107{
34108 line = $ 0
34109 nfields = split(line, field, "@")
34110 substed = 0
34111 len = length(field[1])
34112 for (i = 2; i < nfields; i++) {
34113 key = field[i]
34114 keylen = length(key)
34115 if (S_is_set[key]) {
34116 value = S[key]
34117 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34118 len += length(value) + length(field[++i])
34119 substed = 1
34120 } else
34121 len += 1 + keylen
34122 }
34123
34124 print line
34125}
34126
34127_ACAWK
34128_ACEOF
34129cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34130if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34131 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34132else
34133 cat
34134fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000034135 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034136_ACEOF
34137
cristy98dddb52010-11-04 00:30:15 +000034138# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34139# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000034140# trailing colons and then remove the whole line if VPATH becomes empty
34141# (actually we leave an empty line to preserve line numbers).
34142if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000034143 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34144h
34145s///
34146s/^/:/
34147s/[ ]*$/:/
34148s/:\$(srcdir):/:/g
34149s/:\${srcdir}:/:/g
34150s/:@srcdir@:/:/g
34151s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000034152s/:*$//
cristy98dddb52010-11-04 00:30:15 +000034153x
34154s/\(=[ ]*\).*/\1/
34155G
34156s/\n//
cristy3ed852e2009-09-05 21:47:34 +000034157s/^[^=]*=[ ]*$//
34158}'
34159fi
34160
34161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34162fi # test -n "$CONFIG_FILES"
34163
34164# Set up the scripts for CONFIG_HEADERS section.
34165# No need to generate them if there are no CONFIG_HEADERS.
34166# This happens for instance with `./config.status Makefile'.
34167if test -n "$CONFIG_HEADERS"; then
34168cat >"$tmp/defines.awk" <<\_ACAWK ||
34169BEGIN {
34170_ACEOF
34171
34172# Transform confdefs.h into an awk script `defines.awk', embedded as
34173# here-document in config.status, that substitutes the proper values into
34174# config.h.in to produce config.h.
34175
34176# Create a delimiter string that does not exist in confdefs.h, to ease
34177# handling of long lines.
34178ac_delim='%!_!# '
34179for ac_last_try in false false :; do
34180 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34181 if test -z "$ac_t"; then
34182 break
34183 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000034184 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034185 else
34186 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34187 fi
34188done
34189
34190# For the awk script, D is an array of macro values keyed by name,
34191# likewise P contains macro parameters if any. Preserve backslash
34192# newline sequences.
34193
34194ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34195sed -n '
34196s/.\{148\}/&'"$ac_delim"'/g
34197t rset
34198:rset
34199s/^[ ]*#[ ]*define[ ][ ]*/ /
34200t def
34201d
34202:def
34203s/\\$//
34204t bsnl
34205s/["\\]/\\&/g
34206s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34207D["\1"]=" \3"/p
34208s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34209d
34210:bsnl
34211s/["\\]/\\&/g
34212s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34213D["\1"]=" \3\\\\\\n"\\/p
34214t cont
34215s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34216t cont
34217d
34218:cont
34219n
34220s/.\{148\}/&'"$ac_delim"'/g
34221t clear
34222:clear
34223s/\\$//
34224t bsnlc
34225s/["\\]/\\&/g; s/^/"/; s/$/"/p
34226d
34227:bsnlc
34228s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34229b cont
34230' <confdefs.h | sed '
34231s/'"$ac_delim"'/"\\\
34232"/g' >>$CONFIG_STATUS || ac_write_fail=1
34233
34234cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34235 for (key in D) D_is_set[key] = 1
34236 FS = ""
34237}
34238/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34239 line = \$ 0
34240 split(line, arg, " ")
34241 if (arg[1] == "#") {
34242 defundef = arg[2]
34243 mac1 = arg[3]
34244 } else {
34245 defundef = substr(arg[1], 2)
34246 mac1 = arg[2]
34247 }
34248 split(mac1, mac2, "(") #)
34249 macro = mac2[1]
34250 prefix = substr(line, 1, index(line, defundef) - 1)
34251 if (D_is_set[macro]) {
34252 # Preserve the white space surrounding the "#".
34253 print prefix "define", macro P[macro] D[macro]
34254 next
34255 } else {
34256 # Replace #undef with comments. This is necessary, for example,
34257 # in the case of _POSIX_SOURCE, which is predefined and required
34258 # on some systems where configure will not decide to define it.
34259 if (defundef == "undef") {
34260 print "/*", prefix defundef, macro, "*/"
34261 next
34262 }
34263 }
34264}
34265{ print }
34266_ACAWK
34267_ACEOF
34268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000034269 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034270fi # test -n "$CONFIG_HEADERS"
34271
34272
34273eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34274shift
34275for ac_tag
34276do
34277 case $ac_tag in
34278 :[FHLC]) ac_mode=$ac_tag; continue;;
34279 esac
34280 case $ac_mode$ac_tag in
34281 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000034282 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034283 :[FH]-) ac_tag=-:-;;
34284 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34285 esac
34286 ac_save_IFS=$IFS
34287 IFS=:
34288 set x $ac_tag
34289 IFS=$ac_save_IFS
34290 shift
34291 ac_file=$1
34292 shift
34293
34294 case $ac_mode in
34295 :L) ac_source=$1;;
34296 :[FH])
34297 ac_file_inputs=
34298 for ac_f
34299 do
34300 case $ac_f in
34301 -) ac_f="$tmp/stdin";;
34302 *) # Look for the file first in the build tree, then in the source tree
34303 # (if the path is not absolute). The absolute path cannot be DOS-style,
34304 # because $ac_f cannot contain `:'.
34305 test -f "$ac_f" ||
34306 case $ac_f in
34307 [\\/$]*) false;;
34308 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34309 esac ||
cristy98dddb52010-11-04 00:30:15 +000034310 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034311 esac
34312 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000034313 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000034314 done
34315
34316 # Let's still pretend it is `configure' which instantiates (i.e., don't
34317 # use $as_me), people would be surprised to read:
34318 # /* config.h. Generated by config.status. */
34319 configure_input='Generated from '`
34320 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34321 `' by configure.'
34322 if test x"$ac_file" != x-; then
34323 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000034324 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034325$as_echo "$as_me: creating $ac_file" >&6;}
34326 fi
34327 # Neutralize special characters interpreted by sed in replacement strings.
34328 case $configure_input in #(
34329 *\&* | *\|* | *\\* )
34330 ac_sed_conf_input=`$as_echo "$configure_input" |
34331 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34332 *) ac_sed_conf_input=$configure_input;;
34333 esac
34334
34335 case $ac_tag in
34336 *:-:* | *:-) cat >"$tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000034337 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000034338 esac
34339 ;;
34340 esac
34341
34342 ac_dir=`$as_dirname -- "$ac_file" ||
34343$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34344 X"$ac_file" : 'X\(//\)[^/]' \| \
34345 X"$ac_file" : 'X\(//\)$' \| \
34346 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34347$as_echo X"$ac_file" |
34348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34349 s//\1/
34350 q
34351 }
34352 /^X\(\/\/\)[^/].*/{
34353 s//\1/
34354 q
34355 }
34356 /^X\(\/\/\)$/{
34357 s//\1/
34358 q
34359 }
34360 /^X\(\/\).*/{
34361 s//\1/
34362 q
34363 }
34364 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034365 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034366 ac_builddir=.
34367
34368case "$ac_dir" in
34369.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34370*)
34371 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34372 # A ".." for each directory in $ac_dir_suffix.
34373 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34374 case $ac_top_builddir_sub in
34375 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34376 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34377 esac ;;
34378esac
34379ac_abs_top_builddir=$ac_pwd
34380ac_abs_builddir=$ac_pwd$ac_dir_suffix
34381# for backward compatibility:
34382ac_top_builddir=$ac_top_build_prefix
34383
34384case $srcdir in
34385 .) # We are building in place.
34386 ac_srcdir=.
34387 ac_top_srcdir=$ac_top_builddir_sub
34388 ac_abs_top_srcdir=$ac_pwd ;;
34389 [\\/]* | ?:[\\/]* ) # Absolute name.
34390 ac_srcdir=$srcdir$ac_dir_suffix;
34391 ac_top_srcdir=$srcdir
34392 ac_abs_top_srcdir=$srcdir ;;
34393 *) # Relative name.
34394 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34395 ac_top_srcdir=$ac_top_build_prefix$srcdir
34396 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34397esac
34398ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34399
34400
34401 case $ac_mode in
34402 :F)
34403 #
34404 # CONFIG_FILE
34405 #
34406
34407 case $INSTALL in
34408 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34409 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34410 esac
cristy73bd4a52010-10-05 11:24:23 +000034411 ac_MKDIR_P=$MKDIR_P
34412 case $MKDIR_P in
34413 [\\/$]* | ?:[\\/]* ) ;;
34414 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34415 esac
cristy3ed852e2009-09-05 21:47:34 +000034416_ACEOF
34417
34418cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34419# If the template does not know about datarootdir, expand it.
34420# FIXME: This hack should be removed a few years after 2.60.
34421ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000034422ac_sed_dataroot='
34423/datarootdir/ {
34424 p
34425 q
34426}
34427/@datadir@/p
34428/@docdir@/p
34429/@infodir@/p
34430/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000034431/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000034432case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34433*datarootdir*) ac_datarootdir_seen=yes;;
34434*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000034435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000034436$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34437_ACEOF
34438cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34439 ac_datarootdir_hack='
34440 s&@datadir@&$datadir&g
34441 s&@docdir@&$docdir&g
34442 s&@infodir@&$infodir&g
34443 s&@localedir@&$localedir&g
34444 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000034445 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000034446esac
34447_ACEOF
34448
34449# Neutralize VPATH when `$srcdir' = `.'.
34450# Shell code in configure.ac might set extrasub.
34451# FIXME: do we really want to maintain this feature?
34452cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34453ac_sed_extra="$ac_vpsub
34454$extrasub
34455_ACEOF
34456cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34457:t
34458/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34459s|@configure_input@|$ac_sed_conf_input|;t t
34460s&@top_builddir@&$ac_top_builddir_sub&;t t
34461s&@top_build_prefix@&$ac_top_build_prefix&;t t
34462s&@srcdir@&$ac_srcdir&;t t
34463s&@abs_srcdir@&$ac_abs_srcdir&;t t
34464s&@top_srcdir@&$ac_top_srcdir&;t t
34465s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34466s&@builddir@&$ac_builddir&;t t
34467s&@abs_builddir@&$ac_abs_builddir&;t t
34468s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34469s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000034470s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000034471$ac_datarootdir_hack
34472"
34473eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy98dddb52010-11-04 00:30:15 +000034474 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034475
34476test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34477 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34478 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000034479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000034480which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000034481$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000034482which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000034483
34484 rm -f "$tmp/stdin"
34485 case $ac_file in
34486 -) cat "$tmp/out" && rm -f "$tmp/out";;
34487 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34488 esac \
cristy98dddb52010-11-04 00:30:15 +000034489 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034490 ;;
34491 :H)
34492 #
34493 # CONFIG_HEADER
34494 #
34495 if test x"$ac_file" != x-; then
34496 {
34497 $as_echo "/* $configure_input */" \
34498 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34499 } >"$tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000034500 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034501 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000034502 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034503$as_echo "$as_me: $ac_file is unchanged" >&6;}
34504 else
34505 rm -f "$ac_file"
34506 mv "$tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000034507 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034508 fi
34509 else
34510 $as_echo "/* $configure_input */" \
34511 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000034512 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034513 fi
cristy73bd4a52010-10-05 11:24:23 +000034514# Compute "$ac_file"'s index in $config_headers.
34515_am_arg="$ac_file"
34516_am_stamp_count=1
34517for _am_header in $config_headers :; do
34518 case $_am_header in
34519 $_am_arg | $_am_arg:* )
34520 break ;;
34521 * )
34522 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34523 esac
34524done
34525echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34526$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34527 X"$_am_arg" : 'X\(//\)[^/]' \| \
34528 X"$_am_arg" : 'X\(//\)$' \| \
34529 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34530$as_echo X"$_am_arg" |
34531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34532 s//\1/
34533 q
34534 }
34535 /^X\(\/\/\)[^/].*/{
34536 s//\1/
34537 q
34538 }
34539 /^X\(\/\/\)$/{
34540 s//\1/
34541 q
34542 }
34543 /^X\(\/\).*/{
34544 s//\1/
34545 q
34546 }
34547 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000034548 ;;
34549
cristy8b350f62009-11-15 23:12:43 +000034550 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000034551$as_echo "$as_me: executing $ac_file commands" >&6;}
34552 ;;
34553 esac
34554
34555
34556 case $ac_file$ac_mode in
cristy73bd4a52010-10-05 11:24:23 +000034557 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34558ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34559ac_prefix_conf_PKG=`echo MagickCore`
34560ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34561ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34562ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34563if test ".$ac_prefix_conf_INP" = "."; then
34564 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34565 case "$ac_file" in
34566 *.h) ac_prefix_conf_INP=$ac_file ;;
34567 *)
34568 esac
34569 test ".$ac_prefix_conf_INP" != "." && break
34570 done
34571fi
34572if test ".$ac_prefix_conf_INP" = "."; then
34573 case "$ac_prefix_conf_OUT" in
34574 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34575 ;;
34576 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34577 ;;
34578 *) ac_prefix_conf_INP=config.h
34579 ;;
34580 esac
34581fi
34582if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000034583 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000034584else
34585 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34586 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34587 fi fi
34588 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
34589$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34590 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000034591 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34592 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
34593 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34594 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
34595 $as_echo "#endif/" >> conftest.prefix
34596 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34597 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
34598 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000034599 # now executing _script on _DEF input to create _OUT output file
34600 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34601 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34602 echo ' ' >>$tmp/pconfig.h
34603 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34604
34605 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34606 echo ' ' >>$tmp/pconfig.h
34607 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34608 echo "#endif" >>$tmp/pconfig.h
34609 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
34610 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
34611$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34612 else
34613 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34614$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34615 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34616 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34617 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34618$as_echo X"$ac_prefix_conf_OUT" |
34619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34620 s//\1/
34621 q
34622 }
34623 /^X\(\/\/\)[^/].*/{
34624 s//\1/
34625 q
34626 }
34627 /^X\(\/\/\)$/{
34628 s//\1/
34629 q
34630 }
34631 /^X\(\/\).*/{
34632 s//\1/
34633 q
34634 }
34635 s/.*/./; q'`
34636 as_dir="$ac_dir"; as_fn_mkdir_p
34637 rm -f "$ac_prefix_conf_OUT"
34638 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34639 fi
34640 cp conftest.prefix _configs.sed
34641 else
cristy98dddb52010-11-04 00:30:15 +000034642 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 +000034643 fi
34644 rm -f conftest.*
34645fi
34646 ;;
34647 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34648 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34649 # are listed without --file. Let's play safe and only enable the eval
34650 # if we detect the quoting.
34651 case $CONFIG_FILES in
34652 *\'*) eval set x "$CONFIG_FILES" ;;
34653 *) set x $CONFIG_FILES ;;
34654 esac
34655 shift
34656 for mf
34657 do
34658 # Strip MF so we end up with the name of the file.
34659 mf=`echo "$mf" | sed -e 's/:.*$//'`
34660 # Check whether this is an Automake generated Makefile or not.
34661 # We used to match only the files named `Makefile.in', but
34662 # some people rename them; so instead we look at the file content.
34663 # Grep'ing the first line is not enough: some people post-process
34664 # each Makefile.in and add a new line on top of each file to say so.
34665 # Grep'ing the whole file is not good either: AIX grep has a line
34666 # limit of 2048, but all sed's we know have understand at least 4000.
34667 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34668 dirpart=`$as_dirname -- "$mf" ||
34669$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34670 X"$mf" : 'X\(//\)[^/]' \| \
34671 X"$mf" : 'X\(//\)$' \| \
34672 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34673$as_echo X"$mf" |
34674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34675 s//\1/
34676 q
34677 }
34678 /^X\(\/\/\)[^/].*/{
34679 s//\1/
34680 q
34681 }
34682 /^X\(\/\/\)$/{
34683 s//\1/
34684 q
34685 }
34686 /^X\(\/\).*/{
34687 s//\1/
34688 q
34689 }
34690 s/.*/./; q'`
34691 else
34692 continue
34693 fi
34694 # Extract the definition of DEPDIR, am__include, and am__quote
34695 # from the Makefile without running `make'.
34696 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34697 test -z "$DEPDIR" && continue
34698 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34699 test -z "am__include" && continue
34700 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34701 # When using ansi2knr, U may be empty or an underscore; expand it
34702 U=`sed -n 's/^U = //p' < "$mf"`
34703 # Find all dependency output files, they are included files with
34704 # $(DEPDIR) in their names. We invoke sed twice because it is the
34705 # simplest approach to changing $(DEPDIR) to its actual value in the
34706 # expansion.
34707 for file in `sed -n "
34708 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34709 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34710 # Make sure the directory exists.
34711 test -f "$dirpart/$file" && continue
34712 fdir=`$as_dirname -- "$file" ||
34713$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34714 X"$file" : 'X\(//\)[^/]' \| \
34715 X"$file" : 'X\(//\)$' \| \
34716 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34717$as_echo X"$file" |
34718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34719 s//\1/
34720 q
34721 }
34722 /^X\(\/\/\)[^/].*/{
34723 s//\1/
34724 q
34725 }
34726 /^X\(\/\/\)$/{
34727 s//\1/
34728 q
34729 }
34730 /^X\(\/\).*/{
34731 s//\1/
34732 q
34733 }
34734 s/.*/./; q'`
34735 as_dir=$dirpart/$fdir; as_fn_mkdir_p
34736 # echo "creating $dirpart/$file"
34737 echo '# dummy' > "$dirpart/$file"
34738 done
34739 done
34740}
34741 ;;
34742 "libtool":C)
34743
34744 # See if we are running on zsh, and set the options which allow our
34745 # commands through without removal of \ escapes.
34746 if test -n "${ZSH_VERSION+set}" ; then
34747 setopt NO_GLOB_SUBST
34748 fi
34749
34750 cfgfile="${ofile}T"
34751 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34752 $RM "$cfgfile"
34753
34754 cat <<_LT_EOF >> "$cfgfile"
34755#! $SHELL
34756
34757# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34758# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34759# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34760# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34761#
34762# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy0c60a692010-11-04 01:09:47 +000034763# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
34764# Inc.
cristy73bd4a52010-10-05 11:24:23 +000034765# Written by Gordon Matzigkeit, 1996
34766#
34767# This file is part of GNU Libtool.
34768#
34769# GNU Libtool is free software; you can redistribute it and/or
34770# modify it under the terms of the GNU General Public License as
34771# published by the Free Software Foundation; either version 2 of
34772# the License, or (at your option) any later version.
34773#
34774# As a special exception to the GNU General Public License,
34775# if you distribute this file as part of a program or library that
34776# is built using GNU Libtool, you may include this file under the
34777# same distribution terms that you use for the rest of that program.
34778#
34779# GNU Libtool is distributed in the hope that it will be useful,
34780# but WITHOUT ANY WARRANTY; without even the implied warranty of
34781# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34782# GNU General Public License for more details.
34783#
34784# You should have received a copy of the GNU General Public License
34785# along with GNU Libtool; see the file COPYING. If not, a copy
34786# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34787# obtained by writing to the Free Software Foundation, Inc.,
34788# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34789
34790
34791# The names of the tagged configurations supported by this script.
34792available_tags="CXX "
34793
34794# ### BEGIN LIBTOOL CONFIG
34795
34796# A sed program that does not truncate output.
34797SED=$lt_SED
34798
34799# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34800Xsed="\$SED -e 1s/^X//"
34801
34802# A grep program that handles long lines.
34803GREP=$lt_GREP
34804
34805# An ERE matcher.
34806EGREP=$lt_EGREP
34807
34808# A literal string matcher.
34809FGREP=$lt_FGREP
34810
cristy0c60a692010-11-04 01:09:47 +000034811# Shell to use when invoking shell scripts.
34812SHELL=$lt_SHELL
34813
34814# An echo program that protects backslashes.
34815ECHO=$lt_ECHO
34816
cristy73bd4a52010-10-05 11:24:23 +000034817# Which release of libtool.m4 was used?
34818macro_version=$macro_version
34819macro_revision=$macro_revision
34820
34821# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000034822AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000034823
34824# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000034825DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000034826
34827# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000034828OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000034829
34830# Whether or not to build shared libraries.
34831build_libtool_libs=$enable_shared
34832
34833# Whether or not to build static libraries.
34834build_old_libs=$enable_static
34835
34836# What type of objects to build.
34837pic_mode=$pic_mode
34838
34839# Whether or not to optimize for fast installation.
34840fast_install=$enable_fast_install
34841
34842# The host system.
34843host_alias=$host_alias
34844host=$host
34845host_os=$host_os
34846
34847# The build system.
34848build_alias=$build_alias
34849build=$build
34850build_os=$build_os
34851
34852# A BSD- or MS-compatible name lister.
34853NM=$lt_NM
34854
34855# Whether we need soft or hard links.
34856LN_S=$lt_LN_S
34857
34858# What is the maximum length of a command?
34859max_cmd_len=$max_cmd_len
34860
34861# Object file suffix (normally "o").
34862objext=$ac_objext
34863
34864# Executable file suffix (normally "").
34865exeext=$exeext
34866
34867# whether the shell understands "unset".
34868lt_unset=$lt_unset
34869
34870# turn spaces into newlines.
34871SP2NL=$lt_lt_SP2NL
34872
34873# turn newlines into spaces.
34874NL2SP=$lt_lt_NL2SP
34875
cristy73bd4a52010-10-05 11:24:23 +000034876# Method to check whether dependent libraries are shared objects.
34877deplibs_check_method=$lt_deplibs_check_method
34878
34879# Command to use when deplibs_check_method == "file_magic".
34880file_magic_cmd=$lt_file_magic_cmd
34881
34882# The archiver.
34883AR=$lt_AR
34884AR_FLAGS=$lt_AR_FLAGS
34885
34886# A symbol stripping program.
34887STRIP=$lt_STRIP
34888
34889# Commands used to install an old-style archive.
34890RANLIB=$lt_RANLIB
34891old_postinstall_cmds=$lt_old_postinstall_cmds
34892old_postuninstall_cmds=$lt_old_postuninstall_cmds
34893
cristy0c60a692010-11-04 01:09:47 +000034894# Whether to use a lock for old archive extraction.
34895lock_old_archive_extraction=$lock_old_archive_extraction
34896
cristy73bd4a52010-10-05 11:24:23 +000034897# A C compiler.
34898LTCC=$lt_CC
34899
34900# LTCC compiler flags.
34901LTCFLAGS=$lt_CFLAGS
34902
34903# Take the output of nm and produce a listing of raw symbols and C names.
34904global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34905
34906# Transform the output of nm in a proper C declaration.
34907global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34908
34909# Transform the output of nm in a C name address pair.
34910global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34911
34912# Transform the output of nm in a C name address pair when lib prefix is needed.
34913global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34914
34915# The name of the directory that contains temporary libtool files.
34916objdir=$objdir
34917
cristy73bd4a52010-10-05 11:24:23 +000034918# Used to examine libraries when file_magic_cmd begins with "file".
34919MAGIC_CMD=$MAGIC_CMD
34920
34921# Must we lock files when doing compilation?
34922need_locks=$lt_need_locks
34923
34924# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34925DSYMUTIL=$lt_DSYMUTIL
34926
34927# Tool to change global to local symbols on Mac OS X.
34928NMEDIT=$lt_NMEDIT
34929
34930# Tool to manipulate fat objects and archives on Mac OS X.
34931LIPO=$lt_LIPO
34932
34933# ldd/readelf like tool for Mach-O binaries on Mac OS X.
34934OTOOL=$lt_OTOOL
34935
34936# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34937OTOOL64=$lt_OTOOL64
34938
34939# Old archive suffix (normally "a").
34940libext=$libext
34941
34942# Shared library suffix (normally ".so").
34943shrext_cmds=$lt_shrext_cmds
34944
34945# The commands to extract the exported symbol list from a shared archive.
34946extract_expsyms_cmds=$lt_extract_expsyms_cmds
34947
34948# Variables whose values should be saved in libtool wrapper scripts and
34949# restored at link time.
34950variables_saved_for_relink=$lt_variables_saved_for_relink
34951
34952# Do we need the "lib" prefix for modules?
34953need_lib_prefix=$need_lib_prefix
34954
34955# Do we need a version for libraries?
34956need_version=$need_version
34957
34958# Library versioning type.
34959version_type=$version_type
34960
34961# Shared library runtime path variable.
34962runpath_var=$runpath_var
34963
34964# Shared library path variable.
34965shlibpath_var=$shlibpath_var
34966
34967# Is shlibpath searched before the hard-coded library search path?
34968shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34969
34970# Format of library name prefix.
34971libname_spec=$lt_libname_spec
34972
34973# List of archive names. First name is the real one, the rest are links.
34974# The last name is the one that the linker finds with -lNAME
34975library_names_spec=$lt_library_names_spec
34976
34977# The coded name of the library, if different from the real name.
34978soname_spec=$lt_soname_spec
34979
cristy0c60a692010-11-04 01:09:47 +000034980# Permission mode override for installation of shared libraries.
34981install_override_mode=$lt_install_override_mode
34982
cristy73bd4a52010-10-05 11:24:23 +000034983# Command to use after installation of a shared archive.
34984postinstall_cmds=$lt_postinstall_cmds
34985
34986# Command to use after uninstallation of a shared archive.
34987postuninstall_cmds=$lt_postuninstall_cmds
34988
34989# Commands used to finish a libtool library installation in a directory.
34990finish_cmds=$lt_finish_cmds
34991
34992# As "finish_cmds", except a single script fragment to be evaled but
34993# not shown.
34994finish_eval=$lt_finish_eval
34995
34996# Whether we should hardcode library paths into libraries.
34997hardcode_into_libs=$hardcode_into_libs
34998
34999# Compile-time system search path for libraries.
35000sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35001
35002# Run-time system search path for libraries.
35003sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35004
35005# Whether dlopen is supported.
35006dlopen_support=$enable_dlopen
35007
35008# Whether dlopen of programs is supported.
35009dlopen_self=$enable_dlopen_self
35010
35011# Whether dlopen of statically linked programs is supported.
35012dlopen_self_static=$enable_dlopen_self_static
35013
35014# Commands to strip libraries.
35015old_striplib=$lt_old_striplib
35016striplib=$lt_striplib
35017
35018
35019# The linker used to build libraries.
35020LD=$lt_LD
35021
cristy0c60a692010-11-04 01:09:47 +000035022# How to create reloadable object files.
35023reload_flag=$lt_reload_flag
35024reload_cmds=$lt_reload_cmds
35025
cristy73bd4a52010-10-05 11:24:23 +000035026# Commands used to build an old-style archive.
35027old_archive_cmds=$lt_old_archive_cmds
35028
35029# A language specific compiler.
35030CC=$lt_compiler
35031
35032# Is the compiler the GNU compiler?
35033with_gcc=$GCC
35034
35035# Compiler flag to turn off builtin functions.
35036no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35037
35038# How to pass a linker flag through the compiler.
35039wl=$lt_lt_prog_compiler_wl
35040
35041# Additional compiler flags for building library objects.
35042pic_flag=$lt_lt_prog_compiler_pic
35043
35044# Compiler flag to prevent dynamic linking.
35045link_static_flag=$lt_lt_prog_compiler_static
35046
35047# Does compiler simultaneously support -c and -o options?
35048compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35049
35050# Whether or not to add -lc for building shared libraries.
35051build_libtool_need_lc=$archive_cmds_need_lc
35052
35053# Whether or not to disallow shared libs when runtime libs are static.
35054allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35055
35056# Compiler flag to allow reflexive dlopens.
35057export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35058
35059# Compiler flag to generate shared objects directly from archives.
35060whole_archive_flag_spec=$lt_whole_archive_flag_spec
35061
35062# Whether the compiler copes with passing no objects directly.
35063compiler_needs_object=$lt_compiler_needs_object
35064
35065# Create an old-style archive from a shared archive.
35066old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35067
35068# Create a temporary old-style archive to link instead of a shared archive.
35069old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35070
35071# Commands used to build a shared archive.
35072archive_cmds=$lt_archive_cmds
35073archive_expsym_cmds=$lt_archive_expsym_cmds
35074
35075# Commands used to build a loadable module if different from building
35076# a shared archive.
35077module_cmds=$lt_module_cmds
35078module_expsym_cmds=$lt_module_expsym_cmds
35079
35080# Whether we are building with GNU ld or not.
35081with_gnu_ld=$lt_with_gnu_ld
35082
35083# Flag that allows shared libraries with undefined symbols to be built.
35084allow_undefined_flag=$lt_allow_undefined_flag
35085
35086# Flag that enforces no undefined symbols.
35087no_undefined_flag=$lt_no_undefined_flag
35088
35089# Flag to hardcode \$libdir into a binary during linking.
35090# This must work even if \$libdir does not exist
35091hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35092
35093# If ld is used when linking, flag to hardcode \$libdir into a binary
35094# during linking. This must work even if \$libdir does not exist.
35095hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35096
35097# Whether we need a single "-rpath" flag with a separated argument.
35098hardcode_libdir_separator=$lt_hardcode_libdir_separator
35099
35100# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35101# DIR into the resulting binary.
35102hardcode_direct=$hardcode_direct
35103
35104# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35105# DIR into the resulting binary and the resulting library dependency is
35106# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35107# library is relocated.
35108hardcode_direct_absolute=$hardcode_direct_absolute
35109
35110# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35111# into the resulting binary.
35112hardcode_minus_L=$hardcode_minus_L
35113
35114# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35115# into the resulting binary.
35116hardcode_shlibpath_var=$hardcode_shlibpath_var
35117
35118# Set to "yes" if building a shared library automatically hardcodes DIR
35119# into the library and all subsequent libraries and executables linked
35120# against it.
35121hardcode_automatic=$hardcode_automatic
35122
35123# Set to yes if linker adds runtime paths of dependent libraries
35124# to runtime path list.
35125inherit_rpath=$inherit_rpath
35126
35127# Whether libtool must link a program against all its dependency libraries.
35128link_all_deplibs=$link_all_deplibs
35129
35130# Fix the shell variable \$srcfile for the compiler.
35131fix_srcfile_path=$lt_fix_srcfile_path
35132
35133# Set to "yes" if exported symbols are required.
35134always_export_symbols=$always_export_symbols
35135
35136# The commands to list exported symbols.
35137export_symbols_cmds=$lt_export_symbols_cmds
35138
35139# Symbols that should not be listed in the preloaded symbols.
35140exclude_expsyms=$lt_exclude_expsyms
35141
35142# Symbols that must always be exported.
35143include_expsyms=$lt_include_expsyms
35144
35145# Commands necessary for linking programs (against libraries) with templates.
35146prelink_cmds=$lt_prelink_cmds
35147
35148# Specify filename containing input files.
35149file_list_spec=$lt_file_list_spec
35150
35151# How to hardcode a shared library path into an executable.
35152hardcode_action=$hardcode_action
35153
35154# The directories searched by this compiler when creating a shared library.
35155compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35156
35157# Dependencies to place before and after the objects being linked to
35158# create a shared library.
35159predep_objects=$lt_predep_objects
35160postdep_objects=$lt_postdep_objects
35161predeps=$lt_predeps
35162postdeps=$lt_postdeps
35163
35164# The library search path used internally by the compiler when linking
35165# a shared library.
35166compiler_lib_search_path=$lt_compiler_lib_search_path
35167
35168# ### END LIBTOOL CONFIG
35169
35170_LT_EOF
35171
35172 case $host_os in
35173 aix3*)
35174 cat <<\_LT_EOF >> "$cfgfile"
35175# AIX sometimes has problems with the GCC collect2 program. For some
35176# reason, if we set the COLLECT_NAMES environment variable, the problems
35177# vanish in a puff of smoke.
35178if test "X${COLLECT_NAMES+set}" != Xset; then
35179 COLLECT_NAMES=
35180 export COLLECT_NAMES
35181fi
35182_LT_EOF
35183 ;;
35184 esac
35185
35186
35187ltmain="$ac_aux_dir/ltmain.sh"
35188
35189
35190 # We use sed instead of cat because bash on DJGPP gets confused if
35191 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35192 # text mode, it properly converts lines to CR/LF. This bash problem
35193 # is reportedly fixed, but why not run on old versions too?
35194 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35195 || (rm -f "$cfgfile"; exit 1)
35196
35197 case $xsi_shell in
35198 yes)
35199 cat << \_LT_EOF >> "$cfgfile"
35200
35201# func_dirname file append nondir_replacement
35202# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35203# otherwise set result to NONDIR_REPLACEMENT.
35204func_dirname ()
35205{
35206 case ${1} in
35207 */*) func_dirname_result="${1%/*}${2}" ;;
35208 * ) func_dirname_result="${3}" ;;
35209 esac
35210}
35211
35212# func_basename file
35213func_basename ()
35214{
35215 func_basename_result="${1##*/}"
35216}
35217
35218# func_dirname_and_basename file append nondir_replacement
35219# perform func_basename and func_dirname in a single function
35220# call:
35221# dirname: Compute the dirname of FILE. If nonempty,
35222# add APPEND to the result, otherwise set result
35223# to NONDIR_REPLACEMENT.
35224# value returned in "$func_dirname_result"
35225# basename: Compute filename of FILE.
35226# value retuned in "$func_basename_result"
35227# Implementation must be kept synchronized with func_dirname
35228# and func_basename. For efficiency, we do not delegate to
35229# those functions but instead duplicate the functionality here.
35230func_dirname_and_basename ()
35231{
35232 case ${1} in
35233 */*) func_dirname_result="${1%/*}${2}" ;;
35234 * ) func_dirname_result="${3}" ;;
35235 esac
35236 func_basename_result="${1##*/}"
35237}
35238
35239# func_stripname prefix suffix name
35240# strip PREFIX and SUFFIX off of NAME.
35241# PREFIX and SUFFIX must not contain globbing or regex special
35242# characters, hashes, percent signs, but SUFFIX may contain a leading
35243# dot (in which case that matches only a dot).
35244func_stripname ()
35245{
35246 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35247 # positional parameters, so assign one to ordinary parameter first.
35248 func_stripname_result=${3}
35249 func_stripname_result=${func_stripname_result#"${1}"}
35250 func_stripname_result=${func_stripname_result%"${2}"}
35251}
35252
35253# func_opt_split
35254func_opt_split ()
35255{
35256 func_opt_split_opt=${1%%=*}
35257 func_opt_split_arg=${1#*=}
35258}
35259
35260# func_lo2o object
35261func_lo2o ()
35262{
35263 case ${1} in
35264 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35265 *) func_lo2o_result=${1} ;;
35266 esac
35267}
35268
35269# func_xform libobj-or-source
35270func_xform ()
35271{
35272 func_xform_result=${1%.*}.lo
35273}
35274
35275# func_arith arithmetic-term...
35276func_arith ()
35277{
35278 func_arith_result=$(( $* ))
35279}
35280
35281# func_len string
35282# STRING may not start with a hyphen.
35283func_len ()
35284{
35285 func_len_result=${#1}
35286}
35287
35288_LT_EOF
35289 ;;
35290 *) # Bourne compatible functions.
35291 cat << \_LT_EOF >> "$cfgfile"
35292
35293# func_dirname file append nondir_replacement
35294# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35295# otherwise set result to NONDIR_REPLACEMENT.
35296func_dirname ()
35297{
35298 # Extract subdirectory from the argument.
cristy0c60a692010-11-04 01:09:47 +000035299 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
cristy73bd4a52010-10-05 11:24:23 +000035300 if test "X$func_dirname_result" = "X${1}"; then
35301 func_dirname_result="${3}"
35302 else
35303 func_dirname_result="$func_dirname_result${2}"
35304 fi
35305}
35306
35307# func_basename file
35308func_basename ()
35309{
cristy0c60a692010-11-04 01:09:47 +000035310 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
cristy73bd4a52010-10-05 11:24:23 +000035311}
35312
35313
35314# func_stripname prefix suffix name
35315# strip PREFIX and SUFFIX off of NAME.
35316# PREFIX and SUFFIX must not contain globbing or regex special
35317# characters, hashes, percent signs, but SUFFIX may contain a leading
35318# dot (in which case that matches only a dot).
35319# func_strip_suffix prefix name
35320func_stripname ()
35321{
35322 case ${2} in
cristy0c60a692010-11-04 01:09:47 +000035323 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
35324 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
cristy73bd4a52010-10-05 11:24:23 +000035325 esac
35326}
35327
35328# sed scripts:
35329my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35330my_sed_long_arg='1s/^-[^=]*=//'
35331
35332# func_opt_split
35333func_opt_split ()
35334{
cristy0c60a692010-11-04 01:09:47 +000035335 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
35336 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
cristy73bd4a52010-10-05 11:24:23 +000035337}
35338
35339# func_lo2o object
35340func_lo2o ()
35341{
cristy0c60a692010-11-04 01:09:47 +000035342 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
cristy73bd4a52010-10-05 11:24:23 +000035343}
35344
35345# func_xform libobj-or-source
35346func_xform ()
35347{
cristy0c60a692010-11-04 01:09:47 +000035348 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
cristy73bd4a52010-10-05 11:24:23 +000035349}
35350
35351# func_arith arithmetic-term...
35352func_arith ()
35353{
35354 func_arith_result=`expr "$@"`
35355}
35356
35357# func_len string
35358# STRING may not start with a hyphen.
35359func_len ()
35360{
35361 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35362}
35363
35364_LT_EOF
35365esac
35366
35367case $lt_shell_append in
35368 yes)
35369 cat << \_LT_EOF >> "$cfgfile"
35370
35371# func_append var value
35372# Append VALUE to the end of shell variable VAR.
35373func_append ()
35374{
35375 eval "$1+=\$2"
35376}
35377_LT_EOF
35378 ;;
35379 *)
35380 cat << \_LT_EOF >> "$cfgfile"
35381
35382# func_append var value
35383# Append VALUE to the end of shell variable VAR.
35384func_append ()
35385{
35386 eval "$1=\$$1\$2"
35387}
35388
35389_LT_EOF
35390 ;;
35391 esac
35392
35393
35394 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35395 || (rm -f "$cfgfile"; exit 1)
35396
35397 mv -f "$cfgfile" "$ofile" ||
35398 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35399 chmod +x "$ofile"
35400
35401
35402 cat <<_LT_EOF >> "$ofile"
35403
35404# ### BEGIN LIBTOOL TAG CONFIG: CXX
35405
35406# The linker used to build libraries.
35407LD=$lt_LD_CXX
35408
cristy0c60a692010-11-04 01:09:47 +000035409# How to create reloadable object files.
35410reload_flag=$lt_reload_flag_CXX
35411reload_cmds=$lt_reload_cmds_CXX
35412
cristy73bd4a52010-10-05 11:24:23 +000035413# Commands used to build an old-style archive.
35414old_archive_cmds=$lt_old_archive_cmds_CXX
35415
35416# A language specific compiler.
35417CC=$lt_compiler_CXX
35418
35419# Is the compiler the GNU compiler?
35420with_gcc=$GCC_CXX
35421
35422# Compiler flag to turn off builtin functions.
35423no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35424
35425# How to pass a linker flag through the compiler.
35426wl=$lt_lt_prog_compiler_wl_CXX
35427
35428# Additional compiler flags for building library objects.
35429pic_flag=$lt_lt_prog_compiler_pic_CXX
35430
35431# Compiler flag to prevent dynamic linking.
35432link_static_flag=$lt_lt_prog_compiler_static_CXX
35433
35434# Does compiler simultaneously support -c and -o options?
35435compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35436
35437# Whether or not to add -lc for building shared libraries.
35438build_libtool_need_lc=$archive_cmds_need_lc_CXX
35439
35440# Whether or not to disallow shared libs when runtime libs are static.
35441allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35442
35443# Compiler flag to allow reflexive dlopens.
35444export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35445
35446# Compiler flag to generate shared objects directly from archives.
35447whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35448
35449# Whether the compiler copes with passing no objects directly.
35450compiler_needs_object=$lt_compiler_needs_object_CXX
35451
35452# Create an old-style archive from a shared archive.
35453old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35454
35455# Create a temporary old-style archive to link instead of a shared archive.
35456old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35457
35458# Commands used to build a shared archive.
35459archive_cmds=$lt_archive_cmds_CXX
35460archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35461
35462# Commands used to build a loadable module if different from building
35463# a shared archive.
35464module_cmds=$lt_module_cmds_CXX
35465module_expsym_cmds=$lt_module_expsym_cmds_CXX
35466
35467# Whether we are building with GNU ld or not.
35468with_gnu_ld=$lt_with_gnu_ld_CXX
35469
35470# Flag that allows shared libraries with undefined symbols to be built.
35471allow_undefined_flag=$lt_allow_undefined_flag_CXX
35472
35473# Flag that enforces no undefined symbols.
35474no_undefined_flag=$lt_no_undefined_flag_CXX
35475
35476# Flag to hardcode \$libdir into a binary during linking.
35477# This must work even if \$libdir does not exist
35478hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35479
35480# If ld is used when linking, flag to hardcode \$libdir into a binary
35481# during linking. This must work even if \$libdir does not exist.
35482hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35483
35484# Whether we need a single "-rpath" flag with a separated argument.
35485hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35486
35487# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35488# DIR into the resulting binary.
35489hardcode_direct=$hardcode_direct_CXX
35490
35491# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35492# DIR into the resulting binary and the resulting library dependency is
35493# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35494# library is relocated.
35495hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35496
35497# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35498# into the resulting binary.
35499hardcode_minus_L=$hardcode_minus_L_CXX
35500
35501# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35502# into the resulting binary.
35503hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35504
35505# Set to "yes" if building a shared library automatically hardcodes DIR
35506# into the library and all subsequent libraries and executables linked
35507# against it.
35508hardcode_automatic=$hardcode_automatic_CXX
35509
35510# Set to yes if linker adds runtime paths of dependent libraries
35511# to runtime path list.
35512inherit_rpath=$inherit_rpath_CXX
35513
35514# Whether libtool must link a program against all its dependency libraries.
35515link_all_deplibs=$link_all_deplibs_CXX
35516
35517# Fix the shell variable \$srcfile for the compiler.
35518fix_srcfile_path=$lt_fix_srcfile_path_CXX
35519
35520# Set to "yes" if exported symbols are required.
35521always_export_symbols=$always_export_symbols_CXX
35522
35523# The commands to list exported symbols.
35524export_symbols_cmds=$lt_export_symbols_cmds_CXX
35525
35526# Symbols that should not be listed in the preloaded symbols.
35527exclude_expsyms=$lt_exclude_expsyms_CXX
35528
35529# Symbols that must always be exported.
35530include_expsyms=$lt_include_expsyms_CXX
35531
35532# Commands necessary for linking programs (against libraries) with templates.
35533prelink_cmds=$lt_prelink_cmds_CXX
35534
35535# Specify filename containing input files.
35536file_list_spec=$lt_file_list_spec_CXX
35537
35538# How to hardcode a shared library path into an executable.
35539hardcode_action=$hardcode_action_CXX
35540
35541# The directories searched by this compiler when creating a shared library.
35542compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35543
35544# Dependencies to place before and after the objects being linked to
35545# create a shared library.
35546predep_objects=$lt_predep_objects_CXX
35547postdep_objects=$lt_postdep_objects_CXX
35548predeps=$lt_predeps_CXX
35549postdeps=$lt_postdeps_CXX
35550
35551# The library search path used internally by the compiler when linking
35552# a shared library.
35553compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35554
35555# ### END LIBTOOL TAG CONFIG: CXX
35556_LT_EOF
35557
35558 ;;
cristy3ed852e2009-09-05 21:47:34 +000035559 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35560 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35561 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35562 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35563 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35564 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35565
35566 esac
35567done # for ac_tag
35568
35569
cristy8b350f62009-11-15 23:12:43 +000035570as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000035571_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000035572ac_clean_files=$ac_clean_files_save
35573
35574test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000035575 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035576
35577
35578# configure is writing to config.log, and then calls config.status.
35579# config.status does its own redirection, appending to config.log.
35580# Unfortunately, on DOS this fails, as config.log is still kept open
35581# by configure, so config.status won't be able to write to it; its
35582# output is simply discarded. So we exec the FD to /dev/null,
35583# effectively closing config.log, so it can be properly (re)opened and
35584# appended to by config.status. When coming back to configure, we
35585# need to make the FD available again.
35586if test "$no_create" != yes; then
35587 ac_cs_success=:
35588 ac_config_status_args=
35589 test "$silent" = yes &&
35590 ac_config_status_args="$ac_config_status_args --quiet"
35591 exec 5>/dev/null
35592 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35593 exec 5>>config.log
35594 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35595 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000035596 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000035597fi
35598if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000035599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000035600$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35601fi
35602
35603
35604rm -f magick-version
35605
cristy430a7312010-01-21 20:44:04 +000035606result_dejavu_font_dir='none'
35607if test "${dejavu_font_dir}x" != 'x'; then
35608 result_dejavu_font_dir=$dejavu_font_dir
35609fi
35610
cristy3ed852e2009-09-05 21:47:34 +000035611result_ghostscript_font_dir='none'
35612if test "${ghostscript_font_dir}x" != 'x'; then
35613 result_ghostscript_font_dir=$ghostscript_font_dir
35614fi
35615
35616result_windows_font_dir='none'
35617if test "${windows_font_dir}x" != 'x'; then
35618 result_windows_font_dir=${windows_font_dir}
35619fi
35620
cristy8b350f62009-11-15 23:12:43 +000035621{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000035622ImageMagick is configured as follows. Please verify that this configuration
35623matches your expectations.
35624
35625Host system type: $host
35626Build system type: $build
35627
35628 Option Value
35629-------------------------------------------------------------------------------
35630Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35631Static libraries --enable-static=$enable_static $libtool_build_static_libs
35632Module support --with-modules=$with_modules $with_modules
35633GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35634Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35635High Dynamic Range Imagery
35636 --enable-hdri=$enable_hdri $enable_hdri
35637
35638Delegate Configuration:
35639BZLIB --with-bzlib=$with_bzlib $have_bzlib
35640Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035641Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035642DJVU --with-djvu=$with_djvu $have_djvu
35643DPS --with-dps=$with_dps $have_dps
35644FFTW --with-fftw=$with_fftw $have_fftw
35645FlashPIX --with-fpx=$with_fpx $have_fpx
35646FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35647FreeType --with-freetype=$with_freetype $have_freetype
35648GhostPCL None $PCLDelegate ($PCLVersion)
35649GhostXPS None $XPSDelegate ($XPSVersion)
35650Ghostscript None $PSDelegate ($GSVersion)
35651Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35652Ghostscript lib --with-gslib=$with_gslib $have_gslib
35653Graphviz --with-gvc=$with_gvc $have_gvc
35654JBIG --with-jbig=$with_jbig $have_jbig
35655JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35656JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035657LCMS v1 --with-lcms=$with_lcms $have_lcms
35658LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035659LQR --with-lqr=$with_lqr $have_lqr
35660Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35661OpenEXR --with-openexr=$with_openexr $have_openexr
35662PERL --with-perl=$with_perl $have_perl
35663PNG --with-png=$with_png $have_png
35664RSVG --with-rsvg=$with_rsvg $have_rsvg
35665TIFF --with-tiff=$with_tiff $have_tiff
35666Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35667WMF --with-wmf=$with_wmf $have_wmf
35668X11 --with-x=$with_x $have_x
35669XML --with-xml=$with_xml $have_xml
35670ZLIB --with-zlib=$with_zlib $have_zlib
35671
35672X11 Configuration:
35673 X_CFLAGS = $X_CFLAGS
35674 X_PRE_LIBS = $X_PRE_LIBS
35675 X_LIBS = $X_LIBS
35676 X_EXTRA_LIBS = $X_EXTRA_LIBS
35677
35678Options used to compile and link:
35679 PREFIX = $PREFIX_DIR
35680 EXEC-PREFIX = $EXEC_PREFIX_DIR
35681 VERSION = $PACKAGE_VERSION
35682 CC = $CC
35683 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035684 CPPFLAGS = $MAGICK_CPPFLAGS
35685 PCFLAGS = $MAGICK_PCFLAGS
35686 DEFS = $DEFS
35687 LDFLAGS = $LDFLAGS
35688 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35689 LIBS = $MAGICK_LIBS
35690 CXX = $CXX
35691 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000035692 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000035693" >&5
35694$as_echo "
35695ImageMagick is configured as follows. Please verify that this configuration
35696matches your expectations.
35697
35698Host system type: $host
35699Build system type: $build
35700
35701 Option Value
35702-------------------------------------------------------------------------------
35703Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35704Static libraries --enable-static=$enable_static $libtool_build_static_libs
35705Module support --with-modules=$with_modules $with_modules
35706GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35707Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35708High Dynamic Range Imagery
35709 --enable-hdri=$enable_hdri $enable_hdri
35710
35711Delegate Configuration:
35712BZLIB --with-bzlib=$with_bzlib $have_bzlib
35713Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035714Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035715DJVU --with-djvu=$with_djvu $have_djvu
35716DPS --with-dps=$with_dps $have_dps
35717FFTW --with-fftw=$with_fftw $have_fftw
35718FlashPIX --with-fpx=$with_fpx $have_fpx
35719FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35720FreeType --with-freetype=$with_freetype $have_freetype
35721GhostPCL None $PCLDelegate ($PCLVersion)
35722GhostXPS None $XPSDelegate ($XPSVersion)
35723Ghostscript None $PSDelegate ($GSVersion)
35724Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35725Ghostscript lib --with-gslib=$with_gslib $have_gslib
35726Graphviz --with-gvc=$with_gvc $have_gvc
35727JBIG --with-jbig=$with_jbig $have_jbig
35728JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35729JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035730LCMS v1 --with-lcms=$with_lcms $have_lcms
35731LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035732LQR --with-lqr=$with_lqr $have_lqr
35733Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35734OpenEXR --with-openexr=$with_openexr $have_openexr
35735PERL --with-perl=$with_perl $have_perl
35736PNG --with-png=$with_png $have_png
35737RSVG --with-rsvg=$with_rsvg $have_rsvg
35738TIFF --with-tiff=$with_tiff $have_tiff
35739Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35740WMF --with-wmf=$with_wmf $have_wmf
35741X11 --with-x=$with_x $have_x
35742XML --with-xml=$with_xml $have_xml
35743ZLIB --with-zlib=$with_zlib $have_zlib
35744
35745X11 Configuration:
35746 X_CFLAGS = $X_CFLAGS
35747 X_PRE_LIBS = $X_PRE_LIBS
35748 X_LIBS = $X_LIBS
35749 X_EXTRA_LIBS = $X_EXTRA_LIBS
35750
35751Options used to compile and link:
35752 PREFIX = $PREFIX_DIR
35753 EXEC-PREFIX = $EXEC_PREFIX_DIR
35754 VERSION = $PACKAGE_VERSION
35755 CC = $CC
35756 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035757 CPPFLAGS = $MAGICK_CPPFLAGS
35758 PCFLAGS = $MAGICK_PCFLAGS
35759 DEFS = $DEFS
35760 LDFLAGS = $LDFLAGS
35761 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35762 LIBS = $MAGICK_LIBS
35763 CXX = $CXX
35764 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000035765 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000035766" >&6; }