blob: 7685fa81204980579be40e5d4d9b3bffa0135b49 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy56225732010-09-04 23:44:25 +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,
cristyfd9dcd42010-08-08 18:07:02 +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
cristyfd9dcd42010-08-08 18:07:02 +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"
cristyfd9dcd42010-08-08 18:07:02 +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
cristyfd9dcd42010-08-08 18:07:02 +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
cristyfd9dcd42010-08-08 18:07:02 +0000374# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000375as_fn_error ()
376{
cristyfd9dcd42010-08-08 18:07:02 +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
cristyfd9dcd42010-08-08 18:07:02 +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
cristy3ed852e2009-09-05 21:47:34 +0000539SHELL=${CONFIG_SHELL-/bin/sh}
540
cristy3ed852e2009-09-05 21:47:34 +0000541lt_ltdl_dir='ltdl'
542
543lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
544
cristyfd9dcd42010-08-08 18:07:02 +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.
cristyfd9dcd42010-08-08 18:07:02 +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=
cristy3ed852e2009-09-05 21:47:34 +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
632WITH_PERL_DYNAMIC_FALSE
633WITH_PERL_DYNAMIC_TRUE
634WITH_PERL_STATIC_FALSE
635WITH_PERL_STATIC_TRUE
636WITH_PERL_FALSE
637WITH_PERL_TRUE
cristy964cb7f2010-04-25 23:18:00 +0000638PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000639GSVersion
640GSPSDevice
641GSPDFDevice
642GSMonoDevice
643GSEPSDevice
644GSColorDevice
645GSCMYKDevice
646GSAlphaDevice
647XPSVersion
648XPSCMYKDevice
649XPSColorDevice
650XPSMonoDevice
651PCLVersion
652PCLCMYKDevice
653PCLColorDevice
654PCLMonoDevice
655ZIP_DELEGATE_FALSE
656ZIP_DELEGATE_TRUE
657ZIP
658P7ZIP_DELEGATE_FALSE
659P7ZIP_DELEGATE_TRUE
660P7ZIP
661RPM_DELEGATE_FALSE
662RPM_DELEGATE_TRUE
663RPM
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
cristy5ac9ac82010-07-29 13:24:24 +0000676UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000677TXTDelegate
678SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000679RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000680RMDelegate
681RLEEncodeDelegate
682PSDelegate
683POVDelegate
684PGPDecodeDelegate
685PCLDelegate
686MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000687MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000688MPEGEncodeDelegate
689MPEGDecodeDelegate
690MANDelegate
691LaunchDelegate
692LZWEncodeDelegate
693LZWDecodeDelegate
694LPRDelegate
695LPDelegate
696ILBMEncodeDelegate
697ILBMDecodeDelegate
698HTMLDecodeDelegate
699HPGLDecodeDelegate
700HDRDecodeDelegate
701GnuplotDecodeDelegate
702MogrifyDelegate
703DisplayDelegate
704ConvertDelegate
705FIGDecodeDelegate
706EditorDelegate
707EchoDelegate
708DVIDecodeDelegate
709GVCDecodeDelegate
710DNGDecodeDelegate
711CatDelegate
712CGMDecodeDelegate
713BrowseDelegate
714BZIPDelegate
715BlenderDecodeDelegate
716AVIDecodeDelegate
717AutotraceDecodeDelegate
718SHARE_CONFIGURE_PATH
719SHARE_PATH
720DOCUMENTATION_PATH
721FILTER_PATH
722CODER_PATH
723CONFIGURE_PATH
724LIBRARY_PATH
725EXECUTABLE_PATH
726PERLMAINCC
727XML_LIBS
728XML_DELEGATE_FALSE
729XML_DELEGATE_TRUE
730xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000731WMF_LIBS
732WMF_DELEGATE_FALSE
733WMF_DELEGATE_TRUE
734TIFF_LIBS
735TIFF_DELEGATE_FALSE
736TIFF_DELEGATE_TRUE
737CAIRO_DELEGATE_FALSE
738CAIRO_DELEGATE_TRUE
739RSVG_DELEGATE_FALSE
740RSVG_DELEGATE_TRUE
741CAIRO_SVG_LIBS
742CAIRO_SVG_CFLAGS
743RSVG_LIBS
744RSVG_CFLAGS
745PNG_LIBS
746PNG_DELEGATE_FALSE
747PNG_DELEGATE_TRUE
748OPENEXR_DELEGATE_FALSE
749OPENEXR_DELEGATE_TRUE
750OPENEXR_LIBS
751OPENEXR_CFLAGS
752LQR_DELEGATE_FALSE
753LQR_DELEGATE_TRUE
754LQR_LIBS
755LQR_CFLAGS
756LCMS_LIBS
757LCMS_DELEGATE_FALSE
758LCMS_DELEGATE_TRUE
759JP2_LIBS
760JP2_DELEGATE_FALSE
761JP2_DELEGATE_TRUE
762JPEG_LIBS
763JPEG_DELEGATE_FALSE
764JPEG_DELEGATE_TRUE
765JBIG_LIBS
766JBIG_DELEGATE_FALSE
767JBIG_DELEGATE_TRUE
768GVC_DELEGATE_FALSE
769GVC_DELEGATE_TRUE
770GVC_LIBS
771GVC_CFLAGS
772GS_LIBS
773GS_DELEGATE_FALSE
774GS_DELEGATE_TRUE
775FREETYPE_LIBS
776FREETYPE_DELEGATE_FALSE
777FREETYPE_DELEGATE_TRUE
778freetype_config
779FONTCONFIG_DELEGATE_FALSE
780FONTCONFIG_DELEGATE_TRUE
781FONTCONFIG_LIBS
782FONTCONFIG_CFLAGS
783FPX_LIBS
784FPX_DELEGATE_FALSE
785FPX_DELEGATE_TRUE
786FFTW_LIBS
787FFTW_DELEGATE_FALSE
788FFTW_DELEGATE_TRUE
789DJVU_LIBS
790DJVU_DELEGATE_FALSE
791DJVU_DELEGATE_TRUE
792DPS_LIBS
793DPS_DELEGATE_FALSE
794DPS_DELEGATE_TRUE
795AUTOTRACE_DELEGATE_FALSE
796AUTOTRACE_DELEGATE_TRUE
797AUTOTRACE_LIBS
798AUTOTRACE_CFLAGS
799LIB_DL
800ZLIB_LIBS
801ZLIB_DELEGATE_FALSE
802ZLIB_DELEGATE_TRUE
803XEXT_LIBS
804X11_LIBS
805X11_DELEGATE_FALSE
806X11_DELEGATE_TRUE
807X_EXTRA_LIBS
808X_LIBS
809X_PRE_LIBS
810X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000811XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000812BZLIB_LIBS
813BZLIB_DELEGATE_FALSE
814BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000815CCMALLOCDelegate
816UMEM_LIBS
817HasUMEM_FALSE
818HasUMEM_TRUE
819THREAD_LIBS
820GOMP_LIBS
821WITH_MAGICK_PLUS_PLUS_FALSE
822WITH_MAGICK_PLUS_PLUS_TRUE
823OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000824MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000825POW_LIB
826LIBOBJS
827UINTPTR_T
828UINTMAX_T
829UINT64_T
830INT64_T
831UINT32_T
832INT32_T
833UINT16_T
834INT16_T
835UINT8_T
836INT8_T
837LIBRARY_EXTRA_CPPFLAGS
838MODULE_EXTRA_CPPFLAGS
839LIBSTDCLDFLAGS
840PERL_MAKE_OPTIONS
841QUANTUM_DEPTH
842MAINT
843MAINTAINER_MODE_FALSE
844MAINTAINER_MODE_TRUE
845MAGICK_HDRI
846DLLDFLAGS
847WITH_LTDL_FALSE
848WITH_LTDL_TRUE
849WITH_MODULES_FALSE
850WITH_MODULES_TRUE
cristyfa112112010-01-04 17:48:07 +0000851WITH_SHARED_LIBS_FALSE
852WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000853LTDLOPEN
854LT_CONFIG_H
855CONVENIENCE_LTDL_FALSE
856CONVENIENCE_LTDL_TRUE
857INSTALL_LTDL_FALSE
858INSTALL_LTDL_TRUE
859ARGZ_H
860sys_symbol_underscore
861LIBADD_DL
862LT_DLPREOPEN
863LIBADD_DLD_LINK
864LIBADD_SHL_LOAD
865LIBADD_DLOPEN
866LT_DLLOADERS
867INCLTDL
868LTDLINCL
869LTDLDEPS
870LIBLTDL
871LIBTOOL_DEPS
872CXXCPP
873OTOOL64
874OTOOL
875LIPO
876NMEDIT
877DSYMUTIL
cristy4dc44432009-12-30 23:30:06 +0000878RANLIB
cristy3ed852e2009-09-05 21:47:34 +0000879AR
880NM
881ac_ct_DUMPBIN
882DUMPBIN
883LIBTOOL
884OBJDUMP
885DLLTOOL
886AS
887LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +0000888CL_LIBS
889CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000890OPENMP_CFLAGS
891PTHREAD_CFLAGS
892PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000893PTHREAD_CC
cristy964cb7f2010-04-25 23:18:00 +0000894ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000895WinPathScript
896USING_CL_FALSE
897USING_CL_TRUE
898CYGWIN_BUILD_FALSE
899CYGWIN_BUILD_TRUE
900WIN32_NATIVE_BUILD_FALSE
901WIN32_NATIVE_BUILD_TRUE
902WINGDI32_DELEGATE_FALSE
903WINGDI32_DELEGATE_TRUE
904GDI32_LIBS
905PKG_CONFIG
906LN_S
cristy3ed852e2009-09-05 21:47:34 +0000907LD
908FGREP
cristy3ed852e2009-09-05 21:47:34 +0000909SED
cristy95646052009-11-28 23:05:30 +0000910am__fastdepCXX_FALSE
911am__fastdepCXX_TRUE
912CXXDEPMODE
913ac_ct_CXX
914CXXFLAGS
915CXX
cristya0b81c32010-01-22 02:54:33 +0000916EGREP
917GREP
918CPP
cristy3ed852e2009-09-05 21:47:34 +0000919am__fastdepCC_FALSE
920am__fastdepCC_TRUE
921CCDEPMODE
922AMDEPBACKSLASH
923AMDEP_FALSE
924AMDEP_TRUE
925am__quote
926am__include
927DEPDIR
928OBJEXT
929EXEEXT
930ac_ct_CC
931CPPFLAGS
932LDFLAGS
933CFLAGS
934CC
935DIRSEP
936MAGICK_FILTER_MODULE_PATH
937MAGICK_CONFIGURE_BUILD_PATH
938MAGICK_CONFIGURE_SRC_PATH
939MAGICK_CODER_MODULE_PATH
940MAN_DIR
941INFO_DIR
942PERSISTINCLUDE_DIR
943INCLUDE_DIR
944LIB_DIR
945LOCALSTATE_DIR
946SHAREDSTATE_DIR
947SYSCONF_DIR
948DATA_DIR
949LIBEXEC_DIR
950SBIN_DIR
951BIN_DIR
952EXEC_PREFIX_DIR
953PREFIX_DIR
954CONFIG_STATUS_DEPENDENCIES
955MAGICK_LIB_VERSION_NUMBER
956MAGICK_LIB_VERSION_TEXT
957MAGICK_LIB_VERSION
958AM_BACKSLASH
959AM_DEFAULT_VERBOSITY
960am__untar
961am__tar
962AMTAR
963am__leading_dot
964SET_MAKE
965AWK
966mkdir_p
967MKDIR_P
968INSTALL_STRIP_PROGRAM
969STRIP
970install_sh
971MAKEINFO
972AUTOHEADER
973AUTOMAKE
974AUTOCONF
975ACLOCAL
976VERSION
977PACKAGE
978CYGPATH_W
979am__isrc
980INSTALL_DATA
981INSTALL_SCRIPT
982INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +0000983PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +0000984PACKAGE_RELEASE_DATE
985PACKAGE_LIB_VERSION_NUMBER
986PACKAGE_LIB_VERSION
987PACKAGE_CHANGE_DATE
988PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +0000989MAGICK_LIBRARY_VERSION_INFO
990MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +0000991MAGICK_LIBRARY_AGE
992MAGICK_LIBRARY_REVISION
993MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +0000994MAGICK_TARGET_OS
995MAGICK_TARGET_VENDOR
996MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +0000997target_os
998target_vendor
999target_cpu
1000target
1001host_os
1002host_vendor
1003host_cpu
1004host
1005build_os
1006build_vendor
1007build_cpu
1008build
1009CONFIGURE_ARGS
1010DISTCHECK_CONFIG_FLAGS
1011target_alias
1012host_alias
1013build_alias
1014LIBS
1015ECHO_T
1016ECHO_N
1017ECHO_C
1018DEFS
1019mandir
1020localedir
1021libdir
1022psdir
1023pdfdir
1024dvidir
1025htmldir
1026infodir
1027docdir
1028oldincludedir
1029includedir
1030localstatedir
1031sharedstatedir
1032sysconfdir
1033datadir
1034datarootdir
1035libexecdir
1036sbindir
1037bindir
1038program_transform_name
1039prefix
1040exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001041PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001042PACKAGE_BUGREPORT
1043PACKAGE_STRING
1044PACKAGE_VERSION
1045PACKAGE_TARNAME
1046PACKAGE_NAME
1047PATH_SEPARATOR
1048SHELL'
1049ac_subst_files=''
1050ac_user_opts='
1051enable_option_checking
1052enable_silent_rules
1053enable_dependency_tracking
1054with_gnu_ld
cristy3ed852e2009-09-05 21:47:34 +00001055with_dmalloc
1056enable_bounds_checking
1057enable_osx_universal_binary
1058with_threads
1059enable_openmp
cristy43596fe2010-01-21 16:46:08 +00001060enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001061enable_largefile
1062enable_shared
1063enable_static
1064with_pic
1065enable_fast_install
1066enable_libtool_lock
1067with_included_ltdl
1068with_ltdl_include
1069with_ltdl_lib
1070enable_ltdl_install
1071with_modules
1072enable_delegate_build
1073enable_deprecated
1074enable_installed
1075enable_cipher
1076enable_embeddable
1077enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001078enable_assert
1079enable_maintainer_mode
1080enable_ccmalloc
1081enable_efence
1082enable_prof
1083enable_gprof
1084enable_gcov
1085with_method_prefix
1086with_quantum_depth
1087with_cache
1088with_frozenpaths
1089with_magick_plus_plus
1090with_perl
1091with_perl_options
1092with_umem
1093with_libstdc
1094with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001095with_x
cristy3ed852e2009-09-05 21:47:34 +00001096with_zlib
1097with_autotrace
1098with_dps
1099with_djvu
cristy430a7312010-01-21 20:44:04 +00001100with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001101with_fftw
1102with_fpx
1103with_fontconfig
1104with_freetype
1105with_gslib
1106with_fontpath
1107with_gs_font_dir
1108with_gvc
1109with_jbig
1110with_jpeg
1111with_jp2
1112with_lcms
cristy71203402010-06-18 13:12:03 +00001113with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001114with_lqr
1115with_openexr
1116with_png
1117with_rsvg
1118with_tiff
1119with_windows_font_dir
1120with_wmf
1121with_xml
1122'
1123 ac_precious_vars='build_alias
1124host_alias
1125target_alias
1126CC
1127CFLAGS
1128LDFLAGS
1129LIBS
1130CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001131CPP
cristy3ed852e2009-09-05 21:47:34 +00001132CXX
1133CXXFLAGS
1134CCC
1135PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001136CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001137XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001138AUTOTRACE_CFLAGS
1139AUTOTRACE_LIBS
1140FONTCONFIG_CFLAGS
1141FONTCONFIG_LIBS
1142GVC_CFLAGS
1143GVC_LIBS
1144LQR_CFLAGS
1145LQR_LIBS
1146OPENEXR_CFLAGS
1147OPENEXR_LIBS
1148RSVG_CFLAGS
1149RSVG_LIBS
1150CAIRO_SVG_CFLAGS
1151CAIRO_SVG_LIBS'
1152
1153
1154# Initialize some variables set by options.
1155ac_init_help=
1156ac_init_version=false
1157ac_unrecognized_opts=
1158ac_unrecognized_sep=
1159# The variables have the same names as the options, with
1160# dashes changed to underlines.
1161cache_file=/dev/null
1162exec_prefix=NONE
1163no_create=
1164no_recursion=
1165prefix=NONE
1166program_prefix=NONE
1167program_suffix=NONE
1168program_transform_name=s,x,x,
1169silent=
1170site=
1171srcdir=
1172verbose=
1173x_includes=NONE
1174x_libraries=NONE
1175
1176# Installation directory options.
1177# These are left unexpanded so users can "make install exec_prefix=/foo"
1178# and all the variables that are supposed to be based on exec_prefix
1179# by default will actually change.
1180# Use braces instead of parens because sh, perl, etc. also accept them.
1181# (The list follows the same order as the GNU Coding Standards.)
1182bindir='${exec_prefix}/bin'
1183sbindir='${exec_prefix}/sbin'
1184libexecdir='${exec_prefix}/libexec'
1185datarootdir='${prefix}/share'
1186datadir='${datarootdir}'
1187sysconfdir='${prefix}/etc'
1188sharedstatedir='${prefix}/com'
1189localstatedir='${prefix}/var'
1190includedir='${prefix}/include'
1191oldincludedir='/usr/include'
1192docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1193infodir='${datarootdir}/info'
1194htmldir='${docdir}'
1195dvidir='${docdir}'
1196pdfdir='${docdir}'
1197psdir='${docdir}'
1198libdir='${exec_prefix}/lib'
1199localedir='${datarootdir}/locale'
1200mandir='${datarootdir}/man'
1201
1202ac_prev=
1203ac_dashdash=
1204for ac_option
1205do
1206 # If the previous option needs an argument, assign it.
1207 if test -n "$ac_prev"; then
1208 eval $ac_prev=\$ac_option
1209 ac_prev=
1210 continue
1211 fi
1212
1213 case $ac_option in
1214 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1215 *) ac_optarg=yes ;;
1216 esac
1217
1218 # Accept the important Cygnus configure options, so we can diagnose typos.
1219
1220 case $ac_dashdash$ac_option in
1221 --)
1222 ac_dashdash=yes ;;
1223
1224 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1225 ac_prev=bindir ;;
1226 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1227 bindir=$ac_optarg ;;
1228
1229 -build | --build | --buil | --bui | --bu)
1230 ac_prev=build_alias ;;
1231 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1232 build_alias=$ac_optarg ;;
1233
1234 -cache-file | --cache-file | --cache-fil | --cache-fi \
1235 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1236 ac_prev=cache_file ;;
1237 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1238 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1239 cache_file=$ac_optarg ;;
1240
1241 --config-cache | -C)
1242 cache_file=config.cache ;;
1243
1244 -datadir | --datadir | --datadi | --datad)
1245 ac_prev=datadir ;;
1246 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1247 datadir=$ac_optarg ;;
1248
1249 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1250 | --dataroo | --dataro | --datar)
1251 ac_prev=datarootdir ;;
1252 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1253 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1254 datarootdir=$ac_optarg ;;
1255
1256 -disable-* | --disable-*)
1257 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyfd9dcd42010-08-08 18:07:02 +00001260 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001261 ac_useropt_orig=$ac_useropt
1262 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263 case $ac_user_opts in
1264 *"
1265"enable_$ac_useropt"
1266"*) ;;
1267 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1268 ac_unrecognized_sep=', ';;
1269 esac
1270 eval enable_$ac_useropt=no ;;
1271
1272 -docdir | --docdir | --docdi | --doc | --do)
1273 ac_prev=docdir ;;
1274 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1275 docdir=$ac_optarg ;;
1276
1277 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1278 ac_prev=dvidir ;;
1279 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1280 dvidir=$ac_optarg ;;
1281
1282 -enable-* | --enable-*)
1283 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyfd9dcd42010-08-08 18:07:02 +00001286 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1290 *"
1291"enable_$ac_useropt"
1292"*) ;;
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1295 esac
1296 eval enable_$ac_useropt=\$ac_optarg ;;
1297
1298 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1299 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1300 | --exec | --exe | --ex)
1301 ac_prev=exec_prefix ;;
1302 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1303 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1304 | --exec=* | --exe=* | --ex=*)
1305 exec_prefix=$ac_optarg ;;
1306
1307 -gas | --gas | --ga | --g)
1308 # Obsolete; use --with-gas.
1309 with_gas=yes ;;
1310
1311 -help | --help | --hel | --he | -h)
1312 ac_init_help=long ;;
1313 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1314 ac_init_help=recursive ;;
1315 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1316 ac_init_help=short ;;
1317
1318 -host | --host | --hos | --ho)
1319 ac_prev=host_alias ;;
1320 -host=* | --host=* | --hos=* | --ho=*)
1321 host_alias=$ac_optarg ;;
1322
1323 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1324 ac_prev=htmldir ;;
1325 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1326 | --ht=*)
1327 htmldir=$ac_optarg ;;
1328
1329 -includedir | --includedir | --includedi | --included | --include \
1330 | --includ | --inclu | --incl | --inc)
1331 ac_prev=includedir ;;
1332 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1333 | --includ=* | --inclu=* | --incl=* | --inc=*)
1334 includedir=$ac_optarg ;;
1335
1336 -infodir | --infodir | --infodi | --infod | --info | --inf)
1337 ac_prev=infodir ;;
1338 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1339 infodir=$ac_optarg ;;
1340
1341 -libdir | --libdir | --libdi | --libd)
1342 ac_prev=libdir ;;
1343 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1344 libdir=$ac_optarg ;;
1345
1346 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1347 | --libexe | --libex | --libe)
1348 ac_prev=libexecdir ;;
1349 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1350 | --libexe=* | --libex=* | --libe=*)
1351 libexecdir=$ac_optarg ;;
1352
1353 -localedir | --localedir | --localedi | --localed | --locale)
1354 ac_prev=localedir ;;
1355 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1356 localedir=$ac_optarg ;;
1357
1358 -localstatedir | --localstatedir | --localstatedi | --localstated \
1359 | --localstate | --localstat | --localsta | --localst | --locals)
1360 ac_prev=localstatedir ;;
1361 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1362 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1363 localstatedir=$ac_optarg ;;
1364
1365 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1366 ac_prev=mandir ;;
1367 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1368 mandir=$ac_optarg ;;
1369
1370 -nfp | --nfp | --nf)
1371 # Obsolete; use --without-fp.
1372 with_fp=no ;;
1373
1374 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1375 | --no-cr | --no-c | -n)
1376 no_create=yes ;;
1377
1378 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1379 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1380 no_recursion=yes ;;
1381
1382 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1383 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1384 | --oldin | --oldi | --old | --ol | --o)
1385 ac_prev=oldincludedir ;;
1386 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1387 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1388 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1389 oldincludedir=$ac_optarg ;;
1390
1391 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1392 ac_prev=prefix ;;
1393 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1394 prefix=$ac_optarg ;;
1395
1396 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1397 | --program-pre | --program-pr | --program-p)
1398 ac_prev=program_prefix ;;
1399 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1400 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1401 program_prefix=$ac_optarg ;;
1402
1403 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1404 | --program-suf | --program-su | --program-s)
1405 ac_prev=program_suffix ;;
1406 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1407 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1408 program_suffix=$ac_optarg ;;
1409
1410 -program-transform-name | --program-transform-name \
1411 | --program-transform-nam | --program-transform-na \
1412 | --program-transform-n | --program-transform- \
1413 | --program-transform | --program-transfor \
1414 | --program-transfo | --program-transf \
1415 | --program-trans | --program-tran \
1416 | --progr-tra | --program-tr | --program-t)
1417 ac_prev=program_transform_name ;;
1418 -program-transform-name=* | --program-transform-name=* \
1419 | --program-transform-nam=* | --program-transform-na=* \
1420 | --program-transform-n=* | --program-transform-=* \
1421 | --program-transform=* | --program-transfor=* \
1422 | --program-transfo=* | --program-transf=* \
1423 | --program-trans=* | --program-tran=* \
1424 | --progr-tra=* | --program-tr=* | --program-t=*)
1425 program_transform_name=$ac_optarg ;;
1426
1427 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1428 ac_prev=pdfdir ;;
1429 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1430 pdfdir=$ac_optarg ;;
1431
1432 -psdir | --psdir | --psdi | --psd | --ps)
1433 ac_prev=psdir ;;
1434 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1435 psdir=$ac_optarg ;;
1436
1437 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1438 | -silent | --silent | --silen | --sile | --sil)
1439 silent=yes ;;
1440
1441 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1442 ac_prev=sbindir ;;
1443 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1444 | --sbi=* | --sb=*)
1445 sbindir=$ac_optarg ;;
1446
1447 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1448 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1449 | --sharedst | --shareds | --shared | --share | --shar \
1450 | --sha | --sh)
1451 ac_prev=sharedstatedir ;;
1452 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1453 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1454 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1455 | --sha=* | --sh=*)
1456 sharedstatedir=$ac_optarg ;;
1457
1458 -site | --site | --sit)
1459 ac_prev=site ;;
1460 -site=* | --site=* | --sit=*)
1461 site=$ac_optarg ;;
1462
1463 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1464 ac_prev=srcdir ;;
1465 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1466 srcdir=$ac_optarg ;;
1467
1468 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1469 | --syscon | --sysco | --sysc | --sys | --sy)
1470 ac_prev=sysconfdir ;;
1471 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1472 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1473 sysconfdir=$ac_optarg ;;
1474
1475 -target | --target | --targe | --targ | --tar | --ta | --t)
1476 ac_prev=target_alias ;;
1477 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1478 target_alias=$ac_optarg ;;
1479
1480 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1481 verbose=yes ;;
1482
1483 -version | --version | --versio | --versi | --vers | -V)
1484 ac_init_version=: ;;
1485
1486 -with-* | --with-*)
1487 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1488 # Reject names that are not valid shell variable names.
1489 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyfd9dcd42010-08-08 18:07:02 +00001490 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001491 ac_useropt_orig=$ac_useropt
1492 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1493 case $ac_user_opts in
1494 *"
1495"with_$ac_useropt"
1496"*) ;;
1497 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1498 ac_unrecognized_sep=', ';;
1499 esac
1500 eval with_$ac_useropt=\$ac_optarg ;;
1501
1502 -without-* | --without-*)
1503 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1504 # Reject names that are not valid shell variable names.
1505 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyfd9dcd42010-08-08 18:07:02 +00001506 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001507 ac_useropt_orig=$ac_useropt
1508 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1509 case $ac_user_opts in
1510 *"
1511"with_$ac_useropt"
1512"*) ;;
1513 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1514 ac_unrecognized_sep=', ';;
1515 esac
1516 eval with_$ac_useropt=no ;;
1517
1518 --x)
1519 # Obsolete; use --with-x.
1520 with_x=yes ;;
1521
1522 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1523 | --x-incl | --x-inc | --x-in | --x-i)
1524 ac_prev=x_includes ;;
1525 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1526 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1527 x_includes=$ac_optarg ;;
1528
1529 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1530 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1531 ac_prev=x_libraries ;;
1532 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1533 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1534 x_libraries=$ac_optarg ;;
1535
cristyfd9dcd42010-08-08 18:07:02 +00001536 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1537Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001538 ;;
1539
1540 *=*)
1541 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1542 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001543 case $ac_envvar in #(
1544 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristyfd9dcd42010-08-08 18:07:02 +00001545 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001546 esac
cristy3ed852e2009-09-05 21:47:34 +00001547 eval $ac_envvar=\$ac_optarg
1548 export $ac_envvar ;;
1549
1550 *)
1551 # FIXME: should be removed in autoconf 3.0.
1552 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1553 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1554 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1555 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1556 ;;
1557
1558 esac
1559done
1560
1561if test -n "$ac_prev"; then
1562 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristyfd9dcd42010-08-08 18:07:02 +00001563 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001564fi
1565
1566if test -n "$ac_unrecognized_opts"; then
1567 case $enable_option_checking in
1568 no) ;;
cristyfd9dcd42010-08-08 18:07:02 +00001569 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001570 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1571 esac
1572fi
1573
1574# Check all directory arguments for consistency.
1575for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1576 datadir sysconfdir sharedstatedir localstatedir includedir \
1577 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1578 libdir localedir mandir
1579do
1580 eval ac_val=\$$ac_var
1581 # Remove trailing slashes.
1582 case $ac_val in
1583 */ )
1584 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1585 eval $ac_var=\$ac_val;;
1586 esac
1587 # Be sure to have absolute directory names.
1588 case $ac_val in
1589 [\\/$]* | ?:[\\/]* ) continue;;
1590 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1591 esac
cristyfd9dcd42010-08-08 18:07:02 +00001592 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001593done
1594
1595# There might be people who depend on the old broken behavior: `$host'
1596# used to hold the argument of --host etc.
1597# FIXME: To remove some day.
1598build=$build_alias
1599host=$host_alias
1600target=$target_alias
1601
1602# FIXME: To remove some day.
1603if test "x$host_alias" != x; then
1604 if test "x$build_alias" = x; then
1605 cross_compiling=maybe
cristyfd9dcd42010-08-08 18:07:02 +00001606 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1607 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001608 elif test "x$build_alias" != "x$host_alias"; then
1609 cross_compiling=yes
1610 fi
1611fi
1612
1613ac_tool_prefix=
1614test -n "$host_alias" && ac_tool_prefix=$host_alias-
1615
1616test "$silent" = yes && exec 6>/dev/null
1617
1618
1619ac_pwd=`pwd` && test -n "$ac_pwd" &&
1620ac_ls_di=`ls -di .` &&
1621ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristyfd9dcd42010-08-08 18:07:02 +00001622 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001623test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristyfd9dcd42010-08-08 18:07:02 +00001624 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001625
1626
1627# Find the source files, if location was not specified.
1628if test -z "$srcdir"; then
1629 ac_srcdir_defaulted=yes
1630 # Try the directory containing this script, then the parent directory.
1631 ac_confdir=`$as_dirname -- "$as_myself" ||
1632$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1633 X"$as_myself" : 'X\(//\)[^/]' \| \
1634 X"$as_myself" : 'X\(//\)$' \| \
1635 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1636$as_echo X"$as_myself" |
1637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1638 s//\1/
1639 q
1640 }
1641 /^X\(\/\/\)[^/].*/{
1642 s//\1/
1643 q
1644 }
1645 /^X\(\/\/\)$/{
1646 s//\1/
1647 q
1648 }
1649 /^X\(\/\).*/{
1650 s//\1/
1651 q
1652 }
1653 s/.*/./; q'`
1654 srcdir=$ac_confdir
1655 if test ! -r "$srcdir/$ac_unique_file"; then
1656 srcdir=..
1657 fi
1658else
1659 ac_srcdir_defaulted=no
1660fi
1661if test ! -r "$srcdir/$ac_unique_file"; then
1662 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristyfd9dcd42010-08-08 18:07:02 +00001663 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001664fi
1665ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1666ac_abs_confdir=`(
cristyfd9dcd42010-08-08 18:07:02 +00001667 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001668 pwd)`
1669# When building in place, set srcdir=.
1670if test "$ac_abs_confdir" = "$ac_pwd"; then
1671 srcdir=.
1672fi
1673# Remove unnecessary trailing slashes from srcdir.
1674# Double slashes in file names in object file debugging info
1675# mess up M-x gdb in Emacs.
1676case $srcdir in
1677*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1678esac
1679for ac_var in $ac_precious_vars; do
1680 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1681 eval ac_env_${ac_var}_value=\$${ac_var}
1682 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1683 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1684done
1685
1686#
1687# Report the --help message.
1688#
1689if test "$ac_init_help" = "long"; then
1690 # Omit some internal or obsolete options to make the list less imposing.
1691 # This message is too long to be a string in the A/UX 3.1 sh.
1692 cat <<_ACEOF
cristy56225732010-09-04 23:44:25 +00001693\`configure' configures ImageMagick 6.6.4 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001694
1695Usage: $0 [OPTION]... [VAR=VALUE]...
1696
1697To assign environment variables (e.g., CC, CFLAGS...), specify them as
1698VAR=VALUE. See below for descriptions of some of the useful variables.
1699
1700Defaults for the options are specified in brackets.
1701
1702Configuration:
1703 -h, --help display this help and exit
1704 --help=short display options specific to this package
1705 --help=recursive display the short help of all the included packages
1706 -V, --version display version information and exit
cristyfd9dcd42010-08-08 18:07:02 +00001707 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001708 --cache-file=FILE cache test results in FILE [disabled]
1709 -C, --config-cache alias for \`--cache-file=config.cache'
1710 -n, --no-create do not create output files
1711 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1712
1713Installation directories:
1714 --prefix=PREFIX install architecture-independent files in PREFIX
1715 [$ac_default_prefix]
1716 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1717 [PREFIX]
1718
1719By default, \`make install' will install all the files in
1720\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1721an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1722for instance \`--prefix=\$HOME'.
1723
1724For better control, use the options below.
1725
1726Fine tuning of the installation directories:
1727 --bindir=DIR user executables [EPREFIX/bin]
1728 --sbindir=DIR system admin executables [EPREFIX/sbin]
1729 --libexecdir=DIR program executables [EPREFIX/libexec]
1730 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1731 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1732 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1733 --libdir=DIR object code libraries [EPREFIX/lib]
1734 --includedir=DIR C header files [PREFIX/include]
1735 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1736 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1737 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1738 --infodir=DIR info documentation [DATAROOTDIR/info]
1739 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1740 --mandir=DIR man documentation [DATAROOTDIR/man]
1741 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1742 --htmldir=DIR html documentation [DOCDIR]
1743 --dvidir=DIR dvi documentation [DOCDIR]
1744 --pdfdir=DIR pdf documentation [DOCDIR]
1745 --psdir=DIR ps documentation [DOCDIR]
1746_ACEOF
1747
1748 cat <<\_ACEOF
1749
1750Program names:
1751 --program-prefix=PREFIX prepend PREFIX to installed program names
1752 --program-suffix=SUFFIX append SUFFIX to installed program names
1753 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1754
1755X features:
1756 --x-includes=DIR X include files are in DIR
1757 --x-libraries=DIR X library files are in DIR
1758
1759System types:
1760 --build=BUILD configure for building on BUILD [guessed]
1761 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1762 --target=TARGET configure for building compilers for TARGET [HOST]
1763_ACEOF
1764fi
1765
1766if test -n "$ac_init_help"; then
1767 case $ac_init_help in
cristy56225732010-09-04 23:44:25 +00001768 short | recursive ) echo "Configuration of ImageMagick 6.6.4:";;
cristy3ed852e2009-09-05 21:47:34 +00001769 esac
1770 cat <<\_ACEOF
1771
1772Optional Features:
1773 --disable-option-checking ignore unrecognized --enable/--with options
1774 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1775 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1776 --enable-silent-rules less verbose build output (undo: `make V=1')
1777 --disable-silent-rules verbose build output (undo: `make V=0')
1778 --disable-dependency-tracking speeds up one-time build
1779 --enable-dependency-tracking do not reject slow dependency extractors
1780 --bounds-checking enable run-time bounds-checking
1781 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001782 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001783 --disable-openmp do not use OpenMP
cristy43596fe2010-01-21 16:46:08 +00001784 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001785 --disable-largefile omit support for large files
1786 --enable-shared[=PKGS] build shared libraries [default=yes]
1787 --enable-static[=PKGS] build static libraries [default=yes]
1788 --enable-fast-install[=PKGS]
1789 optimize for fast installation [default=yes]
1790 --disable-libtool-lock avoid locking (might break parallel builds)
1791 --enable-ltdl-install install libltdl
1792 --enable-delegate-build look for delegate libraries in build directory
1793 --disable-deprecated exclude deprecated methods in MagickCore and
1794 MagickWand API's
1795 --disable-installed Formally install ImageMagick under PREFIX
1796 --disable-cipher disable enciphering and deciphering image pixels
1797 --enable-embeddable enable self-contained, embeddable,
1798 zero-configuration ImageMagick
1799 --enable-hdri accurately represent the wide range of intensity
1800 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001801 --disable-assert disable assert() statements in build
1802 --enable-maintainer-mode enable make rules and dependencies not useful
1803 (and sometimes confusing) to the casual installer
1804 --enable-ccmalloc enable 'ccmalloc' memory debug support
1805 --enable-efence enable 'efence' memory debug support
1806 --enable-prof enable 'prof' profiling support
1807 --enable-gprof enable 'gprof' profiling support
1808 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001809 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001810
1811Optional Packages:
1812 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1813 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1814 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy3ed852e2009-09-05 21:47:34 +00001815 --with-dmalloc use dmalloc, as in
1816 http://www.dmalloc.com/dmalloc.tar.gz
1817 --without-threads disable threads support
1818 --with-pic try to use only PIC/non-PIC objects [default=use
1819 both]
1820 --with-included-ltdl use the GNU ltdl sources included here
1821 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1822 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1823 --with-modules enable building dynamically loadable modules
1824 --with-method-prefix=PREFIX
1825 prefix MagickCore API methods
1826 --with-quantum-depth=DEPTH
1827 number of bits in a pixel quantum (default 16)
1828 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1829 memory)
1830 --with-frozenpaths freeze delegate paths
1831 --without-magick-plus-plus
1832 disable build/install of Magick++
1833 --with-perl enable build/install of PerlMagick
1834 --with-perl-options=OPTIONS
1835 options to pass on command-line when generating
1836 PerlMagick's build file
1837 --with-umem enable umem memory allocation library support
1838 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1839 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001840 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001841 --without-zlib disable ZLIB support
1842 --with-autotrace enable autotrace support
1843 --without-dps disable Display Postscript support
1844 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001845 --with-dejavu-font-dir=DIR
1846 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001847 --without-fftw disable FFTW support
1848 --without-fpx disable FlashPIX support
1849 --without-fontconfig disable fontconfig support
1850 --without-freetype disable Freetype support
1851 --without-gslib enable Ghostscript library support
1852 --with-fontpath=DIR prepend to default font search path
1853 --with-gs-font-dir=DIR Ghostscript font directory
1854 --without-gvc disable GVC support
1855 --without-jbig disable JBIG support
1856 --without-jpeg disable JPEG support
1857 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001858 --without-lcms disable lcms (v1.1X) support
1859 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001860 --without-lqr disable Liquid Rescale support
cristy3ed852e2009-09-05 21:47:34 +00001861 --without-openexr disable OpenEXR support
1862 --without-png disable PNG support
1863 --without-rsvg disable RSVG support
1864 --without-tiff disable TIFF support
1865 --with-windows-font-dir=DIR
1866 directory containing MS-Windows fonts
1867 --without-wmf disable WMF support
1868 --without-xml disable XML support
1869
1870Some influential environment variables:
1871 CC C compiler command
1872 CFLAGS C compiler flags
1873 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1874 nonstandard directory <lib dir>
1875 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001876 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001877 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001878 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001879 CXX C++ compiler command
1880 CXXFLAGS C++ compiler flags
1881 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00001882 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00001883 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00001884 AUTOTRACE_CFLAGS
1885 C compiler flags for AUTOTRACE, overriding pkg-config
1886 AUTOTRACE_LIBS
1887 linker flags for AUTOTRACE, overriding pkg-config
1888 FONTCONFIG_CFLAGS
1889 C compiler flags for FONTCONFIG, overriding pkg-config
1890 FONTCONFIG_LIBS
1891 linker flags for FONTCONFIG, overriding pkg-config
1892 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1893 GVC_LIBS linker flags for GVC, overriding pkg-config
1894 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1895 LQR_LIBS linker flags for LQR, overriding pkg-config
1896 OPENEXR_CFLAGS
1897 C compiler flags for OPENEXR, overriding pkg-config
1898 OPENEXR_LIBS
1899 linker flags for OPENEXR, overriding pkg-config
1900 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1901 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1902 CAIRO_SVG_CFLAGS
1903 C compiler flags for CAIRO_SVG, overriding pkg-config
1904 CAIRO_SVG_LIBS
1905 linker flags for CAIRO_SVG, overriding pkg-config
1906
1907Use these variables to override the choices made by `configure' or to help
1908it to find libraries and programs with nonstandard names/locations.
1909
1910Report bugs to <http://www.imagemagick.org>.
1911_ACEOF
1912ac_status=$?
1913fi
1914
1915if test "$ac_init_help" = "recursive"; then
1916 # If there are subdirs, report their specific --help.
1917 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1918 test -d "$ac_dir" ||
1919 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1920 continue
1921 ac_builddir=.
1922
1923case "$ac_dir" in
1924.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1925*)
1926 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1927 # A ".." for each directory in $ac_dir_suffix.
1928 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1929 case $ac_top_builddir_sub in
1930 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1931 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1932 esac ;;
1933esac
1934ac_abs_top_builddir=$ac_pwd
1935ac_abs_builddir=$ac_pwd$ac_dir_suffix
1936# for backward compatibility:
1937ac_top_builddir=$ac_top_build_prefix
1938
1939case $srcdir in
1940 .) # We are building in place.
1941 ac_srcdir=.
1942 ac_top_srcdir=$ac_top_builddir_sub
1943 ac_abs_top_srcdir=$ac_pwd ;;
1944 [\\/]* | ?:[\\/]* ) # Absolute name.
1945 ac_srcdir=$srcdir$ac_dir_suffix;
1946 ac_top_srcdir=$srcdir
1947 ac_abs_top_srcdir=$srcdir ;;
1948 *) # Relative name.
1949 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1950 ac_top_srcdir=$ac_top_build_prefix$srcdir
1951 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1952esac
1953ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1954
1955 cd "$ac_dir" || { ac_status=$?; continue; }
1956 # Check for guested configure.
1957 if test -f "$ac_srcdir/configure.gnu"; then
1958 echo &&
1959 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1960 elif test -f "$ac_srcdir/configure"; then
1961 echo &&
1962 $SHELL "$ac_srcdir/configure" --help=recursive
1963 else
1964 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1965 fi || ac_status=$?
1966 cd "$ac_pwd" || { ac_status=$?; break; }
1967 done
1968fi
1969
1970test -n "$ac_init_help" && exit $ac_status
1971if $ac_init_version; then
1972 cat <<\_ACEOF
cristy56225732010-09-04 23:44:25 +00001973ImageMagick configure 6.6.4
cristyfd9dcd42010-08-08 18:07:02 +00001974generated by GNU Autoconf 2.66
cristy3ed852e2009-09-05 21:47:34 +00001975
cristyfd9dcd42010-08-08 18:07:02 +00001976Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00001977This configure script is free software; the Free Software Foundation
1978gives unlimited permission to copy, distribute and modify it.
1979_ACEOF
1980 exit
1981fi
cristy8b350f62009-11-15 23:12:43 +00001982
1983## ------------------------ ##
1984## Autoconf initialization. ##
1985## ------------------------ ##
1986
1987# ac_fn_c_try_compile LINENO
1988# --------------------------
1989# Try to compile conftest.$ac_ext, and return whether this succeeded.
1990ac_fn_c_try_compile ()
1991{
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 rm -f conftest.$ac_objext
1994 if { { ac_try="$ac_compile"
1995case "(($ac_try" in
1996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1998esac
1999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000$as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_compile") 2>conftest.err
2002 ac_status=$?
2003 if test -s conftest.err; then
2004 grep -v '^ *+' conftest.err >conftest.er1
2005 cat conftest.er1 >&5
2006 mv -f conftest.er1 conftest.err
2007 fi
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; } && {
2010 test -z "$ac_c_werror_flag" ||
2011 test ! -s conftest.err
2012 } && test -s conftest.$ac_objext; then :
2013 ac_retval=0
2014else
2015 $as_echo "$as_me: failed program was:" >&5
2016sed 's/^/| /' conftest.$ac_ext >&5
2017
2018 ac_retval=1
2019fi
2020 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002021 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002022
2023} # ac_fn_c_try_compile
2024
cristy95646052009-11-28 23:05:30 +00002025# ac_fn_c_try_cpp LINENO
2026# ----------------------
2027# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2028ac_fn_c_try_cpp ()
2029{
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 if { { ac_try="$ac_cpp conftest.$ac_ext"
2032case "(($ac_try" in
2033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2034 *) ac_try_echo=$ac_try;;
2035esac
2036eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2037$as_echo "$ac_try_echo"; } >&5
2038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2039 ac_status=$?
2040 if test -s conftest.err; then
2041 grep -v '^ *+' conftest.err >conftest.er1
2042 cat conftest.er1 >&5
2043 mv -f conftest.er1 conftest.err
2044 fi
2045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2046 test $ac_status = 0; } >/dev/null && {
2047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2048 test ! -s conftest.err
2049 }; then :
2050 ac_retval=0
2051else
2052 $as_echo "$as_me: failed program was:" >&5
2053sed 's/^/| /' conftest.$ac_ext >&5
2054
2055 ac_retval=1
2056fi
2057 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2058 as_fn_set_status $ac_retval
2059
2060} # ac_fn_c_try_cpp
2061
cristy8b350f62009-11-15 23:12:43 +00002062# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2063# -------------------------------------------------------
2064# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2065# the include files in INCLUDES and setting the cache variable VAR
2066# accordingly.
2067ac_fn_c_check_header_mongrel ()
2068{
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyfd9dcd42010-08-08 18:07:02 +00002070 if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072$as_echo_n "checking for $2... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002073if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002074 $as_echo_n "(cached) " >&6
2075fi
2076eval ac_res=\$$3
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078$as_echo "$ac_res" >&6; }
2079else
2080 # Is the header compilable?
2081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2082$as_echo_n "checking $2 usability... " >&6; }
2083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084/* end confdefs.h. */
2085$4
2086#include <$2>
2087_ACEOF
2088if ac_fn_c_try_compile "$LINENO"; then :
2089 ac_header_compiler=yes
2090else
2091 ac_header_compiler=no
2092fi
2093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2095$as_echo "$ac_header_compiler" >&6; }
2096
2097# Is the header present?
2098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2099$as_echo_n "checking $2 presence... " >&6; }
2100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101/* end confdefs.h. */
2102#include <$2>
2103_ACEOF
2104if ac_fn_c_try_cpp "$LINENO"; then :
2105 ac_header_preproc=yes
2106else
2107 ac_header_preproc=no
2108fi
2109rm -f conftest.err conftest.$ac_ext
2110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2111$as_echo "$ac_header_preproc" >&6; }
2112
2113# So? What about this header?
2114case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2115 yes:no: )
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2117$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2119$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2120 ;;
2121 no:yes:* )
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2123$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2125$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2127$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2129$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2131$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00002132( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002133## Report this to http://www.imagemagick.org ##
cristyfd9dcd42010-08-08 18:07:02 +00002134## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002135 ) | sed "s/^/$as_me: WARNING: /" >&2
2136 ;;
2137esac
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139$as_echo_n "checking for $2... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002140if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002141 $as_echo_n "(cached) " >&6
2142else
2143 eval "$3=\$ac_header_compiler"
2144fi
2145eval ac_res=\$$3
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147$as_echo "$ac_res" >&6; }
2148fi
2149 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2150
2151} # ac_fn_c_check_header_mongrel
2152
2153# ac_fn_c_try_run LINENO
2154# ----------------------
2155# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2156# that executables *can* be run.
2157ac_fn_c_try_run ()
2158{
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160 if { { ac_try="$ac_link"
2161case "(($ac_try" in
2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2164esac
2165eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2166$as_echo "$ac_try_echo"; } >&5
2167 (eval "$ac_link") 2>&5
2168 ac_status=$?
2169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2171 { { case "(($ac_try" in
2172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2173 *) ac_try_echo=$ac_try;;
2174esac
2175eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2176$as_echo "$ac_try_echo"; } >&5
2177 (eval "$ac_try") 2>&5
2178 ac_status=$?
2179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180 test $ac_status = 0; }; }; then :
2181 ac_retval=0
2182else
2183 $as_echo "$as_me: program exited with status $ac_status" >&5
2184 $as_echo "$as_me: failed program was:" >&5
2185sed 's/^/| /' conftest.$ac_ext >&5
2186
2187 ac_retval=$ac_status
2188fi
2189 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2190 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002191 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002192
2193} # ac_fn_c_try_run
2194
2195# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2196# -------------------------------------------------------
2197# Tests whether HEADER exists and can be compiled using the include files in
2198# INCLUDES, setting the cache variable VAR accordingly.
2199ac_fn_c_check_header_compile ()
2200{
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2203$as_echo_n "checking for $2... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002204if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002205 $as_echo_n "(cached) " >&6
2206else
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208/* end confdefs.h. */
2209$4
2210#include <$2>
2211_ACEOF
2212if ac_fn_c_try_compile "$LINENO"; then :
2213 eval "$3=yes"
2214else
2215 eval "$3=no"
2216fi
2217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218fi
2219eval ac_res=\$$3
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221$as_echo "$ac_res" >&6; }
2222 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2223
2224} # ac_fn_c_check_header_compile
2225
cristya0b81c32010-01-22 02:54:33 +00002226# ac_fn_cxx_try_compile LINENO
2227# ----------------------------
2228# Try to compile conftest.$ac_ext, and return whether this succeeded.
2229ac_fn_cxx_try_compile ()
2230{
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 rm -f conftest.$ac_objext
2233 if { { ac_try="$ac_compile"
2234case "(($ac_try" in
2235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2236 *) ac_try_echo=$ac_try;;
2237esac
2238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2239$as_echo "$ac_try_echo"; } >&5
2240 (eval "$ac_compile") 2>conftest.err
2241 ac_status=$?
2242 if test -s conftest.err; then
2243 grep -v '^ *+' conftest.err >conftest.er1
2244 cat conftest.er1 >&5
2245 mv -f conftest.er1 conftest.err
2246 fi
2247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2248 test $ac_status = 0; } && {
2249 test -z "$ac_cxx_werror_flag" ||
2250 test ! -s conftest.err
2251 } && test -s conftest.$ac_objext; then :
2252 ac_retval=0
2253else
2254 $as_echo "$as_me: failed program was:" >&5
2255sed 's/^/| /' conftest.$ac_ext >&5
2256
2257 ac_retval=1
2258fi
2259 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2260 as_fn_set_status $ac_retval
2261
2262} # ac_fn_cxx_try_compile
2263
cristy8b350f62009-11-15 23:12:43 +00002264# ac_fn_c_try_link LINENO
2265# -----------------------
2266# Try to link conftest.$ac_ext, and return whether this succeeded.
2267ac_fn_c_try_link ()
2268{
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 rm -f conftest.$ac_objext conftest$ac_exeext
2271 if { { ac_try="$ac_link"
2272case "(($ac_try" in
2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274 *) ac_try_echo=$ac_try;;
2275esac
2276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2277$as_echo "$ac_try_echo"; } >&5
2278 (eval "$ac_link") 2>conftest.err
2279 ac_status=$?
2280 if test -s conftest.err; then
2281 grep -v '^ *+' conftest.err >conftest.er1
2282 cat conftest.er1 >&5
2283 mv -f conftest.er1 conftest.err
2284 fi
2285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2286 test $ac_status = 0; } && {
2287 test -z "$ac_c_werror_flag" ||
2288 test ! -s conftest.err
2289 } && test -s conftest$ac_exeext && {
2290 test "$cross_compiling" = yes ||
2291 $as_test_x conftest$ac_exeext
2292 }; then :
2293 ac_retval=0
2294else
2295 $as_echo "$as_me: failed program was:" >&5
2296sed 's/^/| /' conftest.$ac_ext >&5
2297
2298 ac_retval=1
2299fi
2300 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2301 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2302 # interfere with the next link command; also delete a directory that is
2303 # left behind by Apple's compiler. We do this before executing the actions.
2304 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2305 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002306 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002307
2308} # ac_fn_c_try_link
2309
2310# ac_fn_c_check_func LINENO FUNC VAR
2311# ----------------------------------
2312# Tests whether FUNC exists, setting the cache variable VAR accordingly
2313ac_fn_c_check_func ()
2314{
2315 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2317$as_echo_n "checking for $2... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002318if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002319 $as_echo_n "(cached) " >&6
2320else
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322/* end confdefs.h. */
2323/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2325#define $2 innocuous_$2
2326
2327/* System header to define __stub macros and hopefully few prototypes,
2328 which can conflict with char $2 (); below.
2329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2330 <limits.h> exists even on freestanding compilers. */
2331
2332#ifdef __STDC__
2333# include <limits.h>
2334#else
2335# include <assert.h>
2336#endif
2337
2338#undef $2
2339
2340/* Override any GCC internal prototype to avoid an error.
2341 Use char because int might match the return type of a GCC
2342 builtin and then its argument prototype would still apply. */
2343#ifdef __cplusplus
2344extern "C"
2345#endif
2346char $2 ();
2347/* The GNU C library defines this for functions which it implements
2348 to always fail with ENOSYS. Some functions are actually named
2349 something starting with __ and the normal name is an alias. */
2350#if defined __stub_$2 || defined __stub___$2
2351choke me
2352#endif
2353
2354int
2355main ()
2356{
2357return $2 ();
2358 ;
2359 return 0;
2360}
2361_ACEOF
2362if ac_fn_c_try_link "$LINENO"; then :
2363 eval "$3=yes"
2364else
2365 eval "$3=no"
2366fi
2367rm -f core conftest.err conftest.$ac_objext \
2368 conftest$ac_exeext conftest.$ac_ext
2369fi
2370eval ac_res=\$$3
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2372$as_echo "$ac_res" >&6; }
2373 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2374
2375} # ac_fn_c_check_func
2376
2377# ac_fn_cxx_try_cpp LINENO
2378# ------------------------
2379# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2380ac_fn_cxx_try_cpp ()
2381{
2382 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2383 if { { ac_try="$ac_cpp conftest.$ac_ext"
2384case "(($ac_try" in
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2387esac
2388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2389$as_echo "$ac_try_echo"; } >&5
2390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2391 ac_status=$?
2392 if test -s conftest.err; then
2393 grep -v '^ *+' conftest.err >conftest.er1
2394 cat conftest.er1 >&5
2395 mv -f conftest.er1 conftest.err
2396 fi
2397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2398 test $ac_status = 0; } >/dev/null && {
2399 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2400 test ! -s conftest.err
2401 }; then :
2402 ac_retval=0
2403else
2404 $as_echo "$as_me: failed program was:" >&5
2405sed 's/^/| /' conftest.$ac_ext >&5
2406
2407 ac_retval=1
2408fi
2409 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002410 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002411
2412} # ac_fn_cxx_try_cpp
2413
2414# ac_fn_cxx_try_link LINENO
2415# -------------------------
2416# Try to link conftest.$ac_ext, and return whether this succeeded.
2417ac_fn_cxx_try_link ()
2418{
2419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420 rm -f conftest.$ac_objext conftest$ac_exeext
2421 if { { ac_try="$ac_link"
2422case "(($ac_try" in
2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424 *) ac_try_echo=$ac_try;;
2425esac
2426eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2427$as_echo "$ac_try_echo"; } >&5
2428 (eval "$ac_link") 2>conftest.err
2429 ac_status=$?
2430 if test -s conftest.err; then
2431 grep -v '^ *+' conftest.err >conftest.er1
2432 cat conftest.er1 >&5
2433 mv -f conftest.er1 conftest.err
2434 fi
2435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2436 test $ac_status = 0; } && {
2437 test -z "$ac_cxx_werror_flag" ||
2438 test ! -s conftest.err
2439 } && test -s conftest$ac_exeext && {
2440 test "$cross_compiling" = yes ||
2441 $as_test_x conftest$ac_exeext
2442 }; then :
2443 ac_retval=0
2444else
2445 $as_echo "$as_me: failed program was:" >&5
2446sed 's/^/| /' conftest.$ac_ext >&5
2447
2448 ac_retval=1
2449fi
2450 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2451 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2452 # interfere with the next link command; also delete a directory that is
2453 # left behind by Apple's compiler. We do this before executing the actions.
2454 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2455 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002456 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002457
2458} # ac_fn_cxx_try_link
2459
cristyfd9dcd42010-08-08 18:07:02 +00002460# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2461# ---------------------------------------------
2462# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2463# accordingly.
cristy8b350f62009-11-15 23:12:43 +00002464ac_fn_c_check_decl ()
2465{
2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyfd9dcd42010-08-08 18:07:02 +00002467 as_decl_name=`echo $2|sed 's/ *(.*//'`
2468 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2470$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2471if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002472 $as_echo_n "(cached) " >&6
2473else
2474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475/* end confdefs.h. */
2476$4
2477int
2478main ()
2479{
cristyfd9dcd42010-08-08 18:07:02 +00002480#ifndef $as_decl_name
2481#ifdef __cplusplus
2482 (void) $as_decl_use;
2483#else
2484 (void) $as_decl_name;
2485#endif
cristy8b350f62009-11-15 23:12:43 +00002486#endif
2487
2488 ;
2489 return 0;
2490}
2491_ACEOF
2492if ac_fn_c_try_compile "$LINENO"; then :
2493 eval "$3=yes"
2494else
2495 eval "$3=no"
2496fi
2497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2498fi
2499eval ac_res=\$$3
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2501$as_echo "$ac_res" >&6; }
2502 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2503
2504} # ac_fn_c_check_decl
2505
2506# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2507# -------------------------------------------
2508# Tests whether TYPE exists after having included INCLUDES, setting cache
2509# variable VAR accordingly.
2510ac_fn_c_check_type ()
2511{
2512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2514$as_echo_n "checking for $2... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002515if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002516 $as_echo_n "(cached) " >&6
2517else
2518 eval "$3=no"
2519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520/* end confdefs.h. */
2521$4
2522int
2523main ()
2524{
2525if (sizeof ($2))
2526 return 0;
2527 ;
2528 return 0;
2529}
2530_ACEOF
2531if ac_fn_c_try_compile "$LINENO"; then :
2532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2533/* end confdefs.h. */
2534$4
2535int
2536main ()
2537{
2538if (sizeof (($2)))
2539 return 0;
2540 ;
2541 return 0;
2542}
2543_ACEOF
2544if ac_fn_c_try_compile "$LINENO"; then :
2545
2546else
2547 eval "$3=yes"
2548fi
2549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2550fi
2551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2552fi
2553eval ac_res=\$$3
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2555$as_echo "$ac_res" >&6; }
2556 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2557
2558} # ac_fn_c_check_type
2559
cristy92703d82010-04-26 00:18:18 +00002560# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2561# ----------------------------------------------------
2562# Tries to find if the field MEMBER exists in type AGGR, after including
2563# INCLUDES, setting cache variable VAR accordingly.
2564ac_fn_c_check_member ()
2565{
2566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2568$as_echo_n "checking for $2.$3... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002569if eval "test \"\${$4+set}\"" = set; then :
cristy92703d82010-04-26 00:18:18 +00002570 $as_echo_n "(cached) " >&6
2571else
2572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573/* end confdefs.h. */
2574$5
2575int
2576main ()
2577{
2578static $2 ac_aggr;
2579if (ac_aggr.$3)
2580return 0;
2581 ;
2582 return 0;
2583}
2584_ACEOF
2585if ac_fn_c_try_compile "$LINENO"; then :
2586 eval "$4=yes"
2587else
2588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589/* end confdefs.h. */
2590$5
2591int
2592main ()
2593{
2594static $2 ac_aggr;
2595if (sizeof ac_aggr.$3)
2596return 0;
2597 ;
2598 return 0;
2599}
2600_ACEOF
2601if ac_fn_c_try_compile "$LINENO"; then :
2602 eval "$4=yes"
2603else
2604 eval "$4=no"
2605fi
2606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607fi
2608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609fi
2610eval ac_res=\$$4
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2612$as_echo "$ac_res" >&6; }
2613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2614
2615} # ac_fn_c_check_member
2616
cristy8b350f62009-11-15 23:12:43 +00002617# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2618# --------------------------------------------
2619# Tries to find the compile-time value of EXPR in a program that includes
2620# INCLUDES, setting VAR accordingly. Returns whether the value could be
2621# computed
2622ac_fn_c_compute_int ()
2623{
2624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2625 if test "$cross_compiling" = yes; then
2626 # Depending upon the size, compute the lo and hi bounds.
2627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2628/* end confdefs.h. */
2629$4
2630int
2631main ()
2632{
2633static int test_array [1 - 2 * !(($2) >= 0)];
2634test_array [0] = 0
2635
2636 ;
2637 return 0;
2638}
2639_ACEOF
2640if ac_fn_c_try_compile "$LINENO"; then :
2641 ac_lo=0 ac_mid=0
2642 while :; do
2643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2644/* end confdefs.h. */
2645$4
2646int
2647main ()
2648{
2649static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2650test_array [0] = 0
2651
2652 ;
2653 return 0;
2654}
2655_ACEOF
2656if ac_fn_c_try_compile "$LINENO"; then :
2657 ac_hi=$ac_mid; break
2658else
2659 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2660 if test $ac_lo -le $ac_mid; then
2661 ac_lo= ac_hi=
2662 break
2663 fi
2664 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2665fi
2666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667 done
2668else
2669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2670/* end confdefs.h. */
2671$4
2672int
2673main ()
2674{
2675static int test_array [1 - 2 * !(($2) < 0)];
2676test_array [0] = 0
2677
2678 ;
2679 return 0;
2680}
2681_ACEOF
2682if ac_fn_c_try_compile "$LINENO"; then :
2683 ac_hi=-1 ac_mid=-1
2684 while :; do
2685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2686/* end confdefs.h. */
2687$4
2688int
2689main ()
2690{
2691static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2692test_array [0] = 0
2693
2694 ;
2695 return 0;
2696}
2697_ACEOF
2698if ac_fn_c_try_compile "$LINENO"; then :
2699 ac_lo=$ac_mid; break
2700else
2701 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2702 if test $ac_mid -le $ac_hi; then
2703 ac_lo= ac_hi=
2704 break
2705 fi
2706 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2707fi
2708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2709 done
2710else
2711 ac_lo= ac_hi=
2712fi
2713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2714fi
2715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2716# Binary search between lo and hi bounds.
2717while test "x$ac_lo" != "x$ac_hi"; do
2718 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720/* end confdefs.h. */
2721$4
2722int
2723main ()
2724{
2725static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2726test_array [0] = 0
2727
2728 ;
2729 return 0;
2730}
2731_ACEOF
2732if ac_fn_c_try_compile "$LINENO"; then :
2733 ac_hi=$ac_mid
2734else
2735 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2736fi
2737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738done
2739case $ac_lo in #((
2740?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2741'') ac_retval=1 ;;
2742esac
2743 else
2744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745/* end confdefs.h. */
2746$4
2747static long int longval () { return $2; }
2748static unsigned long int ulongval () { return $2; }
2749#include <stdio.h>
2750#include <stdlib.h>
2751int
2752main ()
2753{
2754
2755 FILE *f = fopen ("conftest.val", "w");
2756 if (! f)
2757 return 1;
2758 if (($2) < 0)
2759 {
2760 long int i = longval ();
2761 if (i != ($2))
2762 return 1;
2763 fprintf (f, "%ld", i);
2764 }
2765 else
2766 {
2767 unsigned long int i = ulongval ();
2768 if (i != ($2))
2769 return 1;
2770 fprintf (f, "%lu", i);
2771 }
2772 /* Do not output a trailing newline, as this causes \r\n confusion
2773 on some platforms. */
2774 return ferror (f) || fclose (f) != 0;
2775
2776 ;
2777 return 0;
2778}
2779_ACEOF
2780if ac_fn_c_try_run "$LINENO"; then :
2781 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2782else
2783 ac_retval=1
2784fi
2785rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2786 conftest.$ac_objext conftest.beam conftest.$ac_ext
2787rm -f conftest.val
2788
2789 fi
2790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002791 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002792
2793} # ac_fn_c_compute_int
2794
2795# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2796# ---------------------------------------------------------
2797# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2798# the include files in INCLUDES and setting the cache variable VAR
2799# accordingly.
2800ac_fn_cxx_check_header_mongrel ()
2801{
2802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyfd9dcd42010-08-08 18:07:02 +00002803 if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2805$as_echo_n "checking for $2... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002806if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002807 $as_echo_n "(cached) " >&6
2808fi
2809eval ac_res=\$$3
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2811$as_echo "$ac_res" >&6; }
2812else
2813 # Is the header compilable?
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2815$as_echo_n "checking $2 usability... " >&6; }
2816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817/* end confdefs.h. */
2818$4
2819#include <$2>
2820_ACEOF
2821if ac_fn_cxx_try_compile "$LINENO"; then :
2822 ac_header_compiler=yes
2823else
2824 ac_header_compiler=no
2825fi
2826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2828$as_echo "$ac_header_compiler" >&6; }
2829
2830# Is the header present?
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2832$as_echo_n "checking $2 presence... " >&6; }
2833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834/* end confdefs.h. */
2835#include <$2>
2836_ACEOF
2837if ac_fn_cxx_try_cpp "$LINENO"; then :
2838 ac_header_preproc=yes
2839else
2840 ac_header_preproc=no
2841fi
2842rm -f conftest.err conftest.$ac_ext
2843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2844$as_echo "$ac_header_preproc" >&6; }
2845
2846# So? What about this header?
2847case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2848 yes:no: )
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2850$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2852$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2853 ;;
2854 no:yes:* )
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2856$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2858$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2860$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2862$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2864$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00002865( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002866## Report this to http://www.imagemagick.org ##
cristyfd9dcd42010-08-08 18:07:02 +00002867## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002868 ) | sed "s/^/$as_me: WARNING: /" >&2
2869 ;;
2870esac
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2872$as_echo_n "checking for $2... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002873if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002874 $as_echo_n "(cached) " >&6
2875else
2876 eval "$3=\$ac_header_compiler"
2877fi
2878eval ac_res=\$$3
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2880$as_echo "$ac_res" >&6; }
2881fi
2882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2883
2884} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002885cat >config.log <<_ACEOF
2886This file contains any messages produced by compilers while
2887running configure, to aid debugging if configure makes a mistake.
2888
cristy56225732010-09-04 23:44:25 +00002889It was created by ImageMagick $as_me 6.6.4, which was
cristyfd9dcd42010-08-08 18:07:02 +00002890generated by GNU Autoconf 2.66. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002891
2892 $ $0 $@
2893
2894_ACEOF
2895exec 5>>config.log
2896{
2897cat <<_ASUNAME
2898## --------- ##
2899## Platform. ##
2900## --------- ##
2901
2902hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2903uname -m = `(uname -m) 2>/dev/null || echo unknown`
2904uname -r = `(uname -r) 2>/dev/null || echo unknown`
2905uname -s = `(uname -s) 2>/dev/null || echo unknown`
2906uname -v = `(uname -v) 2>/dev/null || echo unknown`
2907
2908/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2909/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2910
2911/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2912/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2913/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2914/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2915/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2916/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2917/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2918
2919_ASUNAME
2920
2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922for as_dir in $PATH
2923do
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002926 $as_echo "PATH: $as_dir"
2927 done
cristy3ed852e2009-09-05 21:47:34 +00002928IFS=$as_save_IFS
2929
2930} >&5
2931
2932cat >&5 <<_ACEOF
2933
2934
2935## ----------- ##
2936## Core tests. ##
2937## ----------- ##
2938
2939_ACEOF
2940
2941
2942# Keep a trace of the command line.
2943# Strip out --no-create and --no-recursion so they do not pile up.
2944# Strip out --silent because we don't want to record it for future runs.
2945# Also quote any args containing shell meta-characters.
2946# Make two passes to allow for proper duplicate-argument suppression.
2947ac_configure_args=
2948ac_configure_args0=
2949ac_configure_args1=
2950ac_must_keep_next=false
2951for ac_pass in 1 2
2952do
2953 for ac_arg
2954 do
2955 case $ac_arg in
2956 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2957 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2958 | -silent | --silent | --silen | --sile | --sil)
2959 continue ;;
2960 *\'*)
2961 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2962 esac
2963 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00002964 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00002965 2)
cristy8b350f62009-11-15 23:12:43 +00002966 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002967 if test $ac_must_keep_next = true; then
2968 ac_must_keep_next=false # Got value, back to normal.
2969 else
2970 case $ac_arg in
2971 *=* | --config-cache | -C | -disable-* | --disable-* \
2972 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2973 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2974 | -with-* | --with-* | -without-* | --without-* | --x)
2975 case "$ac_configure_args0 " in
2976 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2977 esac
2978 ;;
2979 -* ) ac_must_keep_next=true ;;
2980 esac
2981 fi
cristy8b350f62009-11-15 23:12:43 +00002982 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002983 ;;
2984 esac
2985 done
2986done
cristy8b350f62009-11-15 23:12:43 +00002987{ ac_configure_args0=; unset ac_configure_args0;}
2988{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00002989
2990# When interrupted or exit'd, cleanup temporary files, and complete
2991# config.log. We remove comments because anyway the quotes in there
2992# would cause problems or look ugly.
2993# WARNING: Use '\'' to represent an apostrophe within the trap.
2994# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2995trap 'exit_status=$?
2996 # Save into config.log some information that might help in debugging.
2997 {
2998 echo
2999
cristyfd9dcd42010-08-08 18:07:02 +00003000 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003001## Cache variables. ##
cristyfd9dcd42010-08-08 18:07:02 +00003002## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003003 echo
3004 # The following way of writing the cache mishandles newlines in values,
3005(
3006 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3007 eval ac_val=\$$ac_var
3008 case $ac_val in #(
3009 *${as_nl}*)
3010 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003011 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003012$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3013 esac
3014 case $ac_var in #(
3015 _ | IFS | as_nl) ;; #(
3016 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003017 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003018 esac ;;
3019 esac
3020 done
3021 (set) 2>&1 |
3022 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3023 *${as_nl}ac_space=\ *)
3024 sed -n \
3025 "s/'\''/'\''\\\\'\'''\''/g;
3026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3027 ;; #(
3028 *)
3029 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3030 ;;
3031 esac |
3032 sort
3033)
3034 echo
3035
cristyfd9dcd42010-08-08 18:07:02 +00003036 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003037## Output variables. ##
cristyfd9dcd42010-08-08 18:07:02 +00003038## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003039 echo
3040 for ac_var in $ac_subst_vars
3041 do
3042 eval ac_val=\$$ac_var
3043 case $ac_val in
3044 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3045 esac
3046 $as_echo "$ac_var='\''$ac_val'\''"
3047 done | sort
3048 echo
3049
3050 if test -n "$ac_subst_files"; then
cristyfd9dcd42010-08-08 18:07:02 +00003051 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003052## File substitutions. ##
cristyfd9dcd42010-08-08 18:07:02 +00003053## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003054 echo
3055 for ac_var in $ac_subst_files
3056 do
3057 eval ac_val=\$$ac_var
3058 case $ac_val in
3059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3060 esac
3061 $as_echo "$ac_var='\''$ac_val'\''"
3062 done | sort
3063 echo
3064 fi
3065
3066 if test -s confdefs.h; then
cristyfd9dcd42010-08-08 18:07:02 +00003067 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003068## confdefs.h. ##
cristyfd9dcd42010-08-08 18:07:02 +00003069## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003070 echo
3071 cat confdefs.h
3072 echo
3073 fi
3074 test "$ac_signal" != 0 &&
3075 $as_echo "$as_me: caught signal $ac_signal"
3076 $as_echo "$as_me: exit $exit_status"
3077 } >&5
3078 rm -f core *.core core.conftest.* &&
3079 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3080 exit $exit_status
3081' 0
3082for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003083 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003084done
3085ac_signal=0
3086
3087# confdefs.h avoids OS command line length limits that DEFS can exceed.
3088rm -f -r conftest* confdefs.h
3089
cristy8b350f62009-11-15 23:12:43 +00003090$as_echo "/* confdefs.h */" > confdefs.h
3091
cristy3ed852e2009-09-05 21:47:34 +00003092# Predefined preprocessor variables.
3093
3094cat >>confdefs.h <<_ACEOF
3095#define PACKAGE_NAME "$PACKAGE_NAME"
3096_ACEOF
3097
cristy3ed852e2009-09-05 21:47:34 +00003098cat >>confdefs.h <<_ACEOF
3099#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3100_ACEOF
3101
cristy3ed852e2009-09-05 21:47:34 +00003102cat >>confdefs.h <<_ACEOF
3103#define PACKAGE_VERSION "$PACKAGE_VERSION"
3104_ACEOF
3105
cristy3ed852e2009-09-05 21:47:34 +00003106cat >>confdefs.h <<_ACEOF
3107#define PACKAGE_STRING "$PACKAGE_STRING"
3108_ACEOF
3109
cristy3ed852e2009-09-05 21:47:34 +00003110cat >>confdefs.h <<_ACEOF
3111#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3112_ACEOF
3113
cristy8b350f62009-11-15 23:12:43 +00003114cat >>confdefs.h <<_ACEOF
3115#define PACKAGE_URL "$PACKAGE_URL"
3116_ACEOF
3117
cristy3ed852e2009-09-05 21:47:34 +00003118
3119# Let the site file select an alternate cache file if it wants to.
3120# Prefer an explicitly selected file to automatically selected ones.
3121ac_site_file1=NONE
3122ac_site_file2=NONE
3123if test -n "$CONFIG_SITE"; then
cristyfd9dcd42010-08-08 18:07:02 +00003124 # We do not want a PATH search for config.site.
3125 case $CONFIG_SITE in #((
3126 -*) ac_site_file1=./$CONFIG_SITE;;
3127 */*) ac_site_file1=$CONFIG_SITE;;
3128 *) ac_site_file1=./$CONFIG_SITE;;
3129 esac
cristy3ed852e2009-09-05 21:47:34 +00003130elif test "x$prefix" != xNONE; then
3131 ac_site_file1=$prefix/share/config.site
3132 ac_site_file2=$prefix/etc/config.site
3133else
3134 ac_site_file1=$ac_default_prefix/share/config.site
3135 ac_site_file2=$ac_default_prefix/etc/config.site
3136fi
3137for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3138do
3139 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003140 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003141 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003142$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3143 sed 's/^/| /' "$ac_site_file" >&5
cristyfd9dcd42010-08-08 18:07:02 +00003144 . "$ac_site_file" \
3145 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3147as_fn_error $? "failed to load site script $ac_site_file
3148See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003149 fi
3150done
3151
3152if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003153 # Some versions of bash will fail to source /dev/null (special files
3154 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3155 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003156 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003157$as_echo "$as_me: loading cache $cache_file" >&6;}
3158 case $cache_file in
3159 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3160 *) . "./$cache_file";;
3161 esac
3162 fi
3163else
cristy8b350f62009-11-15 23:12:43 +00003164 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003165$as_echo "$as_me: creating cache $cache_file" >&6;}
3166 >$cache_file
3167fi
3168
cristycd4c5312009-11-22 01:19:08 +00003169as_fn_append ac_header_list " stdlib.h"
3170as_fn_append ac_header_list " unistd.h"
3171as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003172# Check that the precious variables saved in the cache have kept the same
3173# value.
3174ac_cache_corrupted=false
3175for ac_var in $ac_precious_vars; do
3176 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3177 eval ac_new_set=\$ac_env_${ac_var}_set
3178 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3179 eval ac_new_val=\$ac_env_${ac_var}_value
3180 case $ac_old_set,$ac_new_set in
3181 set,)
cristy8b350f62009-11-15 23:12:43 +00003182 { $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 +00003183$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3184 ac_cache_corrupted=: ;;
3185 ,set)
cristy8b350f62009-11-15 23:12:43 +00003186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003187$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3188 ac_cache_corrupted=: ;;
3189 ,);;
3190 *)
3191 if test "x$ac_old_val" != "x$ac_new_val"; then
3192 # differences in whitespace do not lead to failure.
3193 ac_old_val_w=`echo x $ac_old_val`
3194 ac_new_val_w=`echo x $ac_new_val`
3195 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003197$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3198 ac_cache_corrupted=:
3199 else
cristy8b350f62009-11-15 23:12:43 +00003200 { $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 +00003201$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3202 eval $ac_var=\$ac_old_val
3203 fi
cristy8b350f62009-11-15 23:12:43 +00003204 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003205$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003206 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003207$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3208 fi;;
3209 esac
3210 # Pass precious variables to config.status.
3211 if test "$ac_new_set" = set; then
3212 case $ac_new_val in
3213 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3214 *) ac_arg=$ac_var=$ac_new_val ;;
3215 esac
3216 case " $ac_configure_args " in
3217 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003218 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003219 esac
3220 fi
3221done
3222if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003224$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003226$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00003227 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003228fi
cristy8b350f62009-11-15 23:12:43 +00003229## -------------------- ##
3230## Main body of script. ##
3231## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003232
3233ac_ext=c
3234ac_cpp='$CPP $CPPFLAGS'
3235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238
3239
3240
3241ac_aux_dir=
3242for ac_dir in config "$srcdir"/config; do
cristyfd9dcd42010-08-08 18:07:02 +00003243 if test -f "$ac_dir/install-sh"; then
3244 ac_aux_dir=$ac_dir
3245 ac_install_sh="$ac_aux_dir/install-sh -c"
3246 break
3247 elif test -f "$ac_dir/install.sh"; then
3248 ac_aux_dir=$ac_dir
3249 ac_install_sh="$ac_aux_dir/install.sh -c"
3250 break
3251 elif test -f "$ac_dir/shtool"; then
3252 ac_aux_dir=$ac_dir
3253 ac_install_sh="$ac_aux_dir/shtool install -c"
3254 break
3255 fi
cristy3ed852e2009-09-05 21:47:34 +00003256done
3257if test -z "$ac_aux_dir"; then
cristyfd9dcd42010-08-08 18:07:02 +00003258 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003259fi
3260
3261# These three variables are undocumented and unsupported,
3262# and are intended to be withdrawn in a future Autoconf release.
3263# They can cause serious problems if a builder's source tree is in a directory
3264# whose full name contains unusual characters.
3265ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3266ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3267ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3268
3269
3270
3271
3272ac_config_headers="$ac_config_headers config/config.h"
3273
3274ac_config_commands="$ac_config_commands magick/magick-config.h"
3275
cristy430a7312010-01-21 20:44:04 +00003276ac_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 +00003277
3278
3279#
3280# Save initial user-tunable values
3281#
3282USER_LIBS=$LIBS
3283for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3284 eval isset=\${$var+set}
3285 if test "$isset" = 'set'; then
3286 eval val=$`echo $var`
3287 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3288 fi
3289done
3290
3291
3292CONFIGURE_ARGS="$0 ${ac_configure_args}"
3293
3294
3295# Source file containing package/library versioning information.
3296. ${srcdir}/version.sh
3297
cristy15a88782010-01-31 23:24:49 +00003298echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003299# Make sure we can run config.sub.
3300$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristyfd9dcd42010-08-08 18:07:02 +00003301 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003302
cristy8b350f62009-11-15 23:12:43 +00003303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003304$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003305if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003306 $as_echo_n "(cached) " >&6
3307else
3308 ac_build_alias=$build_alias
3309test "x$ac_build_alias" = x &&
3310 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3311test "x$ac_build_alias" = x &&
cristyfd9dcd42010-08-08 18:07:02 +00003312 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003313ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristyfd9dcd42010-08-08 18:07:02 +00003314 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003315
3316fi
cristy8b350f62009-11-15 23:12:43 +00003317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003318$as_echo "$ac_cv_build" >&6; }
3319case $ac_cv_build in
3320*-*-*) ;;
cristyfd9dcd42010-08-08 18:07:02 +00003321*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003322esac
3323build=$ac_cv_build
3324ac_save_IFS=$IFS; IFS='-'
3325set x $ac_cv_build
3326shift
3327build_cpu=$1
3328build_vendor=$2
3329shift; shift
3330# Remember, the first character of IFS is used to create $*,
3331# except with old shells:
3332build_os=$*
3333IFS=$ac_save_IFS
3334case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3335
3336
cristy8b350f62009-11-15 23:12:43 +00003337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003338$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003339if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003340 $as_echo_n "(cached) " >&6
3341else
3342 if test "x$host_alias" = x; then
3343 ac_cv_host=$ac_cv_build
3344else
3345 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristyfd9dcd42010-08-08 18:07:02 +00003346 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003347fi
3348
3349fi
cristy8b350f62009-11-15 23:12:43 +00003350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003351$as_echo "$ac_cv_host" >&6; }
3352case $ac_cv_host in
3353*-*-*) ;;
cristyfd9dcd42010-08-08 18:07:02 +00003354*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003355esac
3356host=$ac_cv_host
3357ac_save_IFS=$IFS; IFS='-'
3358set x $ac_cv_host
3359shift
3360host_cpu=$1
3361host_vendor=$2
3362shift; shift
3363# Remember, the first character of IFS is used to create $*,
3364# except with old shells:
3365host_os=$*
3366IFS=$ac_save_IFS
3367case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3368
3369
cristy8b350f62009-11-15 23:12:43 +00003370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003371$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003372if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003373 $as_echo_n "(cached) " >&6
3374else
3375 if test "x$target_alias" = x; then
3376 ac_cv_target=$ac_cv_host
3377else
3378 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristyfd9dcd42010-08-08 18:07:02 +00003379 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003380fi
3381
3382fi
cristy8b350f62009-11-15 23:12:43 +00003383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003384$as_echo "$ac_cv_target" >&6; }
3385case $ac_cv_target in
3386*-*-*) ;;
cristyfd9dcd42010-08-08 18:07:02 +00003387*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003388esac
3389target=$ac_cv_target
3390ac_save_IFS=$IFS; IFS='-'
3391set x $ac_cv_target
3392shift
3393target_cpu=$1
3394target_vendor=$2
3395shift; shift
3396# Remember, the first character of IFS is used to create $*,
3397# except with old shells:
3398target_os=$*
3399IFS=$ac_save_IFS
3400case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3401
3402
3403# The aliases save the names the user supplied, while $host etc.
3404# will get canonicalized.
3405test -n "$target_alias" &&
3406 test "$program_prefix$program_suffix$program_transform_name" = \
3407 NONENONEs,x,x, &&
3408 program_prefix=${target_alias}-
3409
cristy837d6dc2010-02-27 01:16:57 +00003410
3411
3412
3413
cristy3225a072010-04-17 01:47:28 +00003414MAGICK_TARGET_CPU=$target_cpu
3415
3416
3417MAGICK_TARGET_VENDOR=$target_vendor
3418
3419
3420MAGICK_TARGET_OS=$target_os
3421
3422
cristy3ed852e2009-09-05 21:47:34 +00003423# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003424MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3425
3426MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3427
cristy3ed852e2009-09-05 21:47:34 +00003428
3429
3430# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003432$as_echo_n "checking whether build environment is sane... " >&6; }
3433# Just in case
3434sleep 1
3435echo timestamp > conftest.file
3436# Reject unsafe characters in $srcdir or the absolute working directory
3437# name. Accept space and tab only in the latter.
3438am_lf='
3439'
3440case `pwd` in
3441 *[\\\"\#\$\&\'\`$am_lf]*)
cristyfd9dcd42010-08-08 18:07:02 +00003442 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003443esac
3444case $srcdir in
3445 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyfd9dcd42010-08-08 18:07:02 +00003446 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003447esac
3448
3449# Do `set' in a subshell so we don't clobber the current shell's
3450# arguments. Must try -L first in case configure is actually a
3451# symlink; some systems play weird games with the mod time of symlinks
3452# (eg FreeBSD returns the mod time of the symlink's containing
3453# directory).
3454if (
3455 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3456 if test "$*" = "X"; then
3457 # -L didn't work.
3458 set X `ls -t "$srcdir/configure" conftest.file`
3459 fi
3460 rm -f conftest.file
3461 if test "$*" != "X $srcdir/configure conftest.file" \
3462 && test "$*" != "X conftest.file $srcdir/configure"; then
3463
3464 # If neither matched, then we have a broken ls. This can happen
3465 # if, for instance, CONFIG_SHELL is bash and it inherits a
3466 # broken ls alias from the environment. This has actually
3467 # happened. Such a system could not be considered "sane".
cristyfd9dcd42010-08-08 18:07:02 +00003468 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy8b350f62009-11-15 23:12:43 +00003469alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003470 fi
3471
3472 test "$2" = conftest.file
3473 )
3474then
3475 # Ok.
3476 :
3477else
cristyfd9dcd42010-08-08 18:07:02 +00003478 as_fn_error $? "newly created file is older than distributed files!
cristy8b350f62009-11-15 23:12:43 +00003479Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003480fi
cristy8b350f62009-11-15 23:12:43 +00003481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003482$as_echo "yes" >&6; }
3483
3484am__api_version='1.11'
3485
3486# Find a good install program. We prefer a C program (faster),
3487# so one script is as good as another. But avoid the broken or
3488# incompatible versions:
3489# SysV /etc/install, /usr/sbin/install
3490# SunOS /usr/etc/install
3491# IRIX /sbin/install
3492# AIX /bin/install
3493# AmigaOS /C/install, which installs bootblocks on floppy discs
3494# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3495# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3496# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3497# OS/2's system install, which has a completely different semantic
3498# ./install, which can be erroneously created by make from ./install.sh.
3499# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003501$as_echo_n "checking for a BSD-compatible install... " >&6; }
3502if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003503if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003504 $as_echo_n "(cached) " >&6
3505else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507for as_dir in $PATH
3508do
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003511 # Account for people who put trailing slashes in PATH elements.
3512case $as_dir/ in #((
3513 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003514 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003515 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003516 /usr/ucb/* ) ;;
3517 *)
3518 # OSF1 and SCO ODT 3.0 have their own names for install.
3519 # Don't use installbsd from OSF since it installs stuff as root
3520 # by default.
3521 for ac_prog in ginstall scoinst install; do
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3524 if test $ac_prog = install &&
3525 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3526 # AIX install. It has an incompatible calling convention.
3527 :
3528 elif test $ac_prog = install &&
3529 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3530 # program-specific install script used by HP pwplus--don't use.
3531 :
3532 else
3533 rm -rf conftest.one conftest.two conftest.dir
3534 echo one > conftest.one
3535 echo two > conftest.two
3536 mkdir conftest.dir
3537 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3538 test -s conftest.one && test -s conftest.two &&
3539 test -s conftest.dir/conftest.one &&
3540 test -s conftest.dir/conftest.two
3541 then
3542 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3543 break 3
3544 fi
3545 fi
3546 fi
3547 done
3548 done
3549 ;;
3550esac
3551
cristy8b350f62009-11-15 23:12:43 +00003552 done
cristy3ed852e2009-09-05 21:47:34 +00003553IFS=$as_save_IFS
3554
3555rm -rf conftest.one conftest.two conftest.dir
3556
3557fi
3558 if test "${ac_cv_path_install+set}" = set; then
3559 INSTALL=$ac_cv_path_install
3560 else
3561 # As a last resort, use the slow shell script. Don't cache a
3562 # value for INSTALL within a source directory, because that will
3563 # break other packages using the cache if that directory is
3564 # removed, or if the value is a relative name.
3565 INSTALL=$ac_install_sh
3566 fi
3567fi
cristy8b350f62009-11-15 23:12:43 +00003568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003569$as_echo "$INSTALL" >&6; }
3570
3571# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3572# It thinks the first close brace ends the variable substitution.
3573test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3574
3575test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3576
3577test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3578
3579test "$program_prefix" != NONE &&
3580 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3581# Use a double $ so make ignores it.
3582test "$program_suffix" != NONE &&
3583 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3584# Double any \ or $.
3585# By default was `s,x,x', remove it if useless.
3586ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3587program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3588
3589# expand $ac_aux_dir to an absolute path
3590am_aux_dir=`cd $ac_aux_dir && pwd`
3591
3592if test x"${MISSING+set}" != xset; then
3593 case $am_aux_dir in
3594 *\ * | *\ *)
3595 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3596 *)
3597 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3598 esac
3599fi
3600# Use eval to expand $SHELL
3601if eval "$MISSING --run true"; then
3602 am_missing_run="$MISSING --run "
3603else
3604 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003606$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3607fi
3608
3609if test x"${install_sh}" != xset; then
3610 case $am_aux_dir in
3611 *\ * | *\ *)
3612 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3613 *)
3614 install_sh="\${SHELL} $am_aux_dir/install-sh"
3615 esac
3616fi
3617
3618# Installed binaries are usually stripped using `strip' when the user
3619# run `make install-strip'. However `strip' might not be the right
3620# tool to use in cross-compilation environments, therefore Automake
3621# will honor the `STRIP' environment variable to overrule this program.
3622if test "$cross_compiling" != no; then
3623 if test -n "$ac_tool_prefix"; then
3624 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3625set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003627$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003628if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003629 $as_echo_n "(cached) " >&6
3630else
3631 if test -n "$STRIP"; then
3632 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3633else
3634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635for as_dir in $PATH
3636do
3637 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003639 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3641 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003643 break 2
3644 fi
3645done
cristy8b350f62009-11-15 23:12:43 +00003646 done
cristy3ed852e2009-09-05 21:47:34 +00003647IFS=$as_save_IFS
3648
3649fi
3650fi
3651STRIP=$ac_cv_prog_STRIP
3652if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003654$as_echo "$STRIP" >&6; }
3655else
cristy8b350f62009-11-15 23:12:43 +00003656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003657$as_echo "no" >&6; }
3658fi
3659
3660
3661fi
3662if test -z "$ac_cv_prog_STRIP"; then
3663 ac_ct_STRIP=$STRIP
3664 # Extract the first word of "strip", so it can be a program name with args.
3665set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003667$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003668if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003669 $as_echo_n "(cached) " >&6
3670else
3671 if test -n "$ac_ct_STRIP"; then
3672 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3673else
3674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675for as_dir in $PATH
3676do
3677 IFS=$as_save_IFS
3678 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003679 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003683 break 2
3684 fi
3685done
cristy8b350f62009-11-15 23:12:43 +00003686 done
cristy3ed852e2009-09-05 21:47:34 +00003687IFS=$as_save_IFS
3688
3689fi
3690fi
3691ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3692if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003694$as_echo "$ac_ct_STRIP" >&6; }
3695else
cristy8b350f62009-11-15 23:12:43 +00003696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003697$as_echo "no" >&6; }
3698fi
3699
3700 if test "x$ac_ct_STRIP" = x; then
3701 STRIP=":"
3702 else
3703 case $cross_compiling:$ac_tool_warned in
3704yes:)
cristy8b350f62009-11-15 23:12:43 +00003705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3707ac_tool_warned=yes ;;
3708esac
3709 STRIP=$ac_ct_STRIP
3710 fi
3711else
3712 STRIP="$ac_cv_prog_STRIP"
3713fi
3714
3715fi
3716INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3717
cristy8b350f62009-11-15 23:12:43 +00003718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003719$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3720if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003721 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003722 $as_echo_n "(cached) " >&6
3723else
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3726do
3727 IFS=$as_save_IFS
3728 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003729 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3732 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3733 'mkdir (GNU coreutils) '* | \
3734 'mkdir (coreutils) '* | \
3735 'mkdir (fileutils) '4.1*)
3736 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3737 break 3;;
3738 esac
3739 done
3740 done
cristy8b350f62009-11-15 23:12:43 +00003741 done
cristy3ed852e2009-09-05 21:47:34 +00003742IFS=$as_save_IFS
3743
3744fi
3745
cristycd4c5312009-11-22 01:19:08 +00003746 test -d ./--version && rmdir ./--version
cristy3ed852e2009-09-05 21:47:34 +00003747 if test "${ac_cv_path_mkdir+set}" = set; then
3748 MKDIR_P="$ac_cv_path_mkdir -p"
3749 else
3750 # As a last resort, use the slow shell script. Don't cache a
3751 # value for MKDIR_P within a source directory, because that will
3752 # break other packages using the cache if that directory is
3753 # removed, or if the value is a relative name.
cristy3ed852e2009-09-05 21:47:34 +00003754 MKDIR_P="$ac_install_sh -d"
3755 fi
3756fi
cristy8b350f62009-11-15 23:12:43 +00003757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003758$as_echo "$MKDIR_P" >&6; }
3759
3760mkdir_p="$MKDIR_P"
3761case $mkdir_p in
3762 [\\/$]* | ?:[\\/]*) ;;
3763 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3764esac
3765
3766for ac_prog in gawk mawk nawk awk
3767do
3768 # Extract the first word of "$ac_prog", so it can be a program name with args.
3769set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003771$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003772if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003773 $as_echo_n "(cached) " >&6
3774else
3775 if test -n "$AWK"; then
3776 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3777else
3778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779for as_dir in $PATH
3780do
3781 IFS=$as_save_IFS
3782 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003783 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3785 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003787 break 2
3788 fi
3789done
cristy8b350f62009-11-15 23:12:43 +00003790 done
cristy3ed852e2009-09-05 21:47:34 +00003791IFS=$as_save_IFS
3792
3793fi
3794fi
3795AWK=$ac_cv_prog_AWK
3796if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003798$as_echo "$AWK" >&6; }
3799else
cristy8b350f62009-11-15 23:12:43 +00003800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003801$as_echo "no" >&6; }
3802fi
3803
3804
3805 test -n "$AWK" && break
3806done
3807
cristy8b350f62009-11-15 23:12:43 +00003808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003809$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3810set x ${MAKE-make}
3811ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyfd9dcd42010-08-08 18:07:02 +00003812if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003813 $as_echo_n "(cached) " >&6
3814else
3815 cat >conftest.make <<\_ACEOF
3816SHELL = /bin/sh
3817all:
3818 @echo '@@@%%%=$(MAKE)=@@@%%%'
3819_ACEOF
cristyfd9dcd42010-08-08 18:07:02 +00003820# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy3ed852e2009-09-05 21:47:34 +00003821case `${MAKE-make} -f conftest.make 2>/dev/null` in
3822 *@@@%%%=?*=@@@%%%*)
3823 eval ac_cv_prog_make_${ac_make}_set=yes;;
3824 *)
3825 eval ac_cv_prog_make_${ac_make}_set=no;;
3826esac
3827rm -f conftest.make
3828fi
3829if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003831$as_echo "yes" >&6; }
3832 SET_MAKE=
3833else
cristy8b350f62009-11-15 23:12:43 +00003834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003835$as_echo "no" >&6; }
3836 SET_MAKE="MAKE=${MAKE-make}"
3837fi
3838
3839rm -rf .tst 2>/dev/null
3840mkdir .tst 2>/dev/null
3841if test -d .tst; then
3842 am__leading_dot=.
3843else
3844 am__leading_dot=_
3845fi
3846rmdir .tst 2>/dev/null
3847
3848if test "`cd $srcdir && pwd`" != "`pwd`"; then
3849 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3850 # is not polluted with repeated "-I."
3851 am__isrc=' -I$(srcdir)'
3852 # test to see if srcdir already configured
3853 if test -f $srcdir/config.status; then
cristyfd9dcd42010-08-08 18:07:02 +00003854 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003855 fi
3856fi
3857
3858# test whether we have cygpath
3859if test -z "$CYGPATH_W"; then
3860 if (cygpath --version) >/dev/null 2>/dev/null; then
3861 CYGPATH_W='cygpath -w'
3862 else
3863 CYGPATH_W=echo
3864 fi
3865fi
3866
3867
3868# Define the identity of the package.
3869 PACKAGE=$PACKAGE_NAME
cristy15a88782010-01-31 23:24:49 +00003870 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003871
3872
3873# Some tools Automake needs.
3874
3875ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3876
3877
3878AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3879
3880
3881AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3882
3883
3884AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3885
3886
3887MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3888
3889# We need awk for the "check" target. The system "awk" is bad on
3890# some platforms.
3891# Always define AMTAR for backward compatibility.
3892
3893AMTAR=${AMTAR-"${am_missing_run}tar"}
3894
3895am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3896
3897
3898
3899
3900
3901
3902# Enable support for silent build rules
3903# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00003904if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003905 enableval=$enable_silent_rules;
3906fi
3907
3908case $enable_silent_rules in
3909yes) AM_DEFAULT_VERBOSITY=0;;
3910no) AM_DEFAULT_VERBOSITY=1;;
3911*) AM_DEFAULT_VERBOSITY=0;;
3912esac
3913AM_BACKSLASH='\'
3914
3915
3916MAGICK_LIB_VERSION="0x"
3917if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3918 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3919fi
3920MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3921if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3922 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3923fi
3924MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3925if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3926 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3927fi
3928MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3929
3930
3931# Definition used to define MagickLibVersionText in version.h
3932MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3933
3934
3935# Definition used to define MagickLibVersionNumber in version.h
3936MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3937
3938
3939# Regenerate config.status if ChangeLog or version.sh is updated.
3940CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3941
3942
3943PERLMAINCC=$CC
3944
3945MAGICK_CFLAGS=''
3946MAGICK_CPPFLAGS=$CPPFLAGS_USER
3947MAGICK_PCFLAGS=$CPPFLAGS_USER
3948MAGICK_LDFLAGS=''
3949MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00003950MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00003951
3952#
3953# Evaluate shell variable equivalents to Makefile directory variables
3954#
3955if test "x$prefix" = xNONE; then
3956 prefix=$ac_default_prefix
3957fi
3958# Let make expand exec_prefix.
3959if test "x$exec_prefix" = xNONE; then
3960 exec_prefix='${prefix}'
3961fi
3962
3963#
3964eval "eval PREFIX_DIR=${prefix}"
3965
3966eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3967
3968eval "eval BIN_DIR=$bindir"
3969
3970eval "eval SBIN_DIR=$sbindir"
3971
3972eval "eval LIBEXEC_DIR=$libexecdir"
3973
3974eval "eval DATA_DIR=$datadir"
3975
3976eval "eval SYSCONF_DIR=$sysconfdir"
3977
3978eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3979
3980eval "eval LOCALSTATE_DIR=$localstatedir"
3981
3982eval "eval LIB_DIR=$libdir"
3983
3984eval "eval INCLUDE_DIR=$includedir"
3985
3986eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
3987
3988eval "eval INFO_DIR=$infodir"
3989
3990eval "eval MAN_DIR=$mandir"
3991
3992
3993# Get full paths to source and build directories
3994srcdirfull="`cd $srcdir && pwd`"
3995builddir="`pwd`"
3996
3997#
3998# Compute variables useful for running uninstalled software.
3999#
4000MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4001MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4002MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4003MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4004DIRSEP=':'
4005case "${build_os}" in
4006 mingw* )
4007 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4008 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4009 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4010 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4011 DIRSEP=';'
4012 ;;
4013esac
4014case "${host_os}" in
4015 mingw* )
4016 DIRSEP=';'
4017 ;;
4018esac
4019
4020
4021
4022
4023
4024
cristya0b81c32010-01-22 02:54:33 +00004025
4026#
4027# Enable OS features.
4028#
4029DEPDIR="${am__leading_dot}deps"
4030
4031ac_config_commands="$ac_config_commands depfiles"
4032
4033
4034am_make=${MAKE-make}
4035cat > confinc << 'END'
4036am__doit:
4037 @echo this is the am__doit target
4038.PHONY: am__doit
4039END
4040# If we don't find an include directive, just comment out the code.
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4042$as_echo_n "checking for style of include used by $am_make... " >&6; }
4043am__include="#"
4044am__quote=
4045_am_result=none
4046# First try GNU make style include.
4047echo "include confinc" > confmf
4048# Ignore all kinds of additional output from `make'.
4049case `$am_make -s -f confmf 2> /dev/null` in #(
4050*the\ am__doit\ target*)
4051 am__include=include
4052 am__quote=
4053 _am_result=GNU
4054 ;;
4055esac
4056# Now try BSD make style include.
4057if test "$am__include" = "#"; then
4058 echo '.include "confinc"' > confmf
4059 case `$am_make -s -f confmf 2> /dev/null` in #(
4060 *the\ am__doit\ target*)
4061 am__include=.include
4062 am__quote="\""
4063 _am_result=BSD
4064 ;;
4065 esac
4066fi
4067
4068
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4070$as_echo "$_am_result" >&6; }
4071rm -f confinc confmf
4072
4073# Check whether --enable-dependency-tracking was given.
4074if test "${enable_dependency_tracking+set}" = set; then :
4075 enableval=$enable_dependency_tracking;
4076fi
4077
4078if test "x$enable_dependency_tracking" != xno; then
4079 am_depcomp="$ac_aux_dir/depcomp"
4080 AMDEPBACKSLASH='\'
4081fi
4082 if test "x$enable_dependency_tracking" != xno; then
4083 AMDEP_TRUE=
4084 AMDEP_FALSE='#'
4085else
4086 AMDEP_TRUE='#'
4087 AMDEP_FALSE=
4088fi
4089
4090
cristy3ed852e2009-09-05 21:47:34 +00004091ac_ext=c
4092ac_cpp='$CPP $CPPFLAGS'
4093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4095ac_compiler_gnu=$ac_cv_c_compiler_gnu
4096if test -n "$ac_tool_prefix"; then
4097 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4098set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004100$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004101if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004102 $as_echo_n "(cached) " >&6
4103else
4104 if test -n "$CC"; then
4105 ac_cv_prog_CC="$CC" # Let the user override the test.
4106else
4107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108for as_dir in $PATH
4109do
4110 IFS=$as_save_IFS
4111 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004112 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4114 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004116 break 2
4117 fi
4118done
cristy8b350f62009-11-15 23:12:43 +00004119 done
cristy3ed852e2009-09-05 21:47:34 +00004120IFS=$as_save_IFS
4121
4122fi
4123fi
4124CC=$ac_cv_prog_CC
4125if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004127$as_echo "$CC" >&6; }
4128else
cristy8b350f62009-11-15 23:12:43 +00004129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004130$as_echo "no" >&6; }
4131fi
4132
4133
4134fi
4135if test -z "$ac_cv_prog_CC"; then
4136 ac_ct_CC=$CC
4137 # Extract the first word of "gcc", so it can be a program name with args.
4138set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004140$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004141if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004142 $as_echo_n "(cached) " >&6
4143else
4144 if test -n "$ac_ct_CC"; then
4145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4146else
4147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148for as_dir in $PATH
4149do
4150 IFS=$as_save_IFS
4151 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004152 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4154 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004156 break 2
4157 fi
4158done
cristy8b350f62009-11-15 23:12:43 +00004159 done
cristy3ed852e2009-09-05 21:47:34 +00004160IFS=$as_save_IFS
4161
4162fi
4163fi
4164ac_ct_CC=$ac_cv_prog_ac_ct_CC
4165if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004167$as_echo "$ac_ct_CC" >&6; }
4168else
cristy8b350f62009-11-15 23:12:43 +00004169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004170$as_echo "no" >&6; }
4171fi
4172
4173 if test "x$ac_ct_CC" = x; then
4174 CC=""
4175 else
4176 case $cross_compiling:$ac_tool_warned in
4177yes:)
cristy8b350f62009-11-15 23:12:43 +00004178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4180ac_tool_warned=yes ;;
4181esac
4182 CC=$ac_ct_CC
4183 fi
4184else
4185 CC="$ac_cv_prog_CC"
4186fi
4187
4188if test -z "$CC"; then
4189 if test -n "$ac_tool_prefix"; then
4190 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4191set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004193$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004194if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004195 $as_echo_n "(cached) " >&6
4196else
4197 if test -n "$CC"; then
4198 ac_cv_prog_CC="$CC" # Let the user override the test.
4199else
4200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201for as_dir in $PATH
4202do
4203 IFS=$as_save_IFS
4204 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004205 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4207 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004209 break 2
4210 fi
4211done
cristy8b350f62009-11-15 23:12:43 +00004212 done
cristy3ed852e2009-09-05 21:47:34 +00004213IFS=$as_save_IFS
4214
4215fi
4216fi
4217CC=$ac_cv_prog_CC
4218if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004220$as_echo "$CC" >&6; }
4221else
cristy8b350f62009-11-15 23:12:43 +00004222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004223$as_echo "no" >&6; }
4224fi
4225
4226
4227 fi
4228fi
4229if test -z "$CC"; then
4230 # Extract the first word of "cc", so it can be a program name with args.
4231set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004233$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004234if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004235 $as_echo_n "(cached) " >&6
4236else
4237 if test -n "$CC"; then
4238 ac_cv_prog_CC="$CC" # Let the user override the test.
4239else
4240 ac_prog_rejected=no
4241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242for as_dir in $PATH
4243do
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004246 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4248 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4249 ac_prog_rejected=yes
4250 continue
4251 fi
4252 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004254 break 2
4255 fi
4256done
cristy8b350f62009-11-15 23:12:43 +00004257 done
cristy3ed852e2009-09-05 21:47:34 +00004258IFS=$as_save_IFS
4259
4260if test $ac_prog_rejected = yes; then
4261 # We found a bogon in the path, so make sure we never use it.
4262 set dummy $ac_cv_prog_CC
4263 shift
4264 if test $# != 0; then
4265 # We chose a different compiler from the bogus one.
4266 # However, it has the same basename, so the bogon will be chosen
4267 # first if we set CC to just the basename; use the full file name.
4268 shift
4269 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4270 fi
4271fi
4272fi
4273fi
4274CC=$ac_cv_prog_CC
4275if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004277$as_echo "$CC" >&6; }
4278else
cristy8b350f62009-11-15 23:12:43 +00004279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004280$as_echo "no" >&6; }
4281fi
4282
4283
4284fi
4285if test -z "$CC"; then
4286 if test -n "$ac_tool_prefix"; then
4287 for ac_prog in cl.exe
4288 do
4289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4290set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004292$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004293if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004294 $as_echo_n "(cached) " >&6
4295else
4296 if test -n "$CC"; then
4297 ac_cv_prog_CC="$CC" # Let the user override the test.
4298else
4299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300for as_dir in $PATH
4301do
4302 IFS=$as_save_IFS
4303 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004304 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4306 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004308 break 2
4309 fi
4310done
cristy8b350f62009-11-15 23:12:43 +00004311 done
cristy3ed852e2009-09-05 21:47:34 +00004312IFS=$as_save_IFS
4313
4314fi
4315fi
4316CC=$ac_cv_prog_CC
4317if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004319$as_echo "$CC" >&6; }
4320else
cristy8b350f62009-11-15 23:12:43 +00004321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004322$as_echo "no" >&6; }
4323fi
4324
4325
4326 test -n "$CC" && break
4327 done
4328fi
4329if test -z "$CC"; then
4330 ac_ct_CC=$CC
4331 for ac_prog in cl.exe
4332do
4333 # Extract the first word of "$ac_prog", so it can be a program name with args.
4334set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004336$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004337if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004338 $as_echo_n "(cached) " >&6
4339else
4340 if test -n "$ac_ct_CC"; then
4341 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4342else
4343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344for as_dir in $PATH
4345do
4346 IFS=$as_save_IFS
4347 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004348 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4350 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004352 break 2
4353 fi
4354done
cristy8b350f62009-11-15 23:12:43 +00004355 done
cristy3ed852e2009-09-05 21:47:34 +00004356IFS=$as_save_IFS
4357
4358fi
4359fi
4360ac_ct_CC=$ac_cv_prog_ac_ct_CC
4361if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004363$as_echo "$ac_ct_CC" >&6; }
4364else
cristy8b350f62009-11-15 23:12:43 +00004365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004366$as_echo "no" >&6; }
4367fi
4368
4369
4370 test -n "$ac_ct_CC" && break
4371done
4372
4373 if test "x$ac_ct_CC" = x; then
4374 CC=""
4375 else
4376 case $cross_compiling:$ac_tool_warned in
4377yes:)
cristy8b350f62009-11-15 23:12:43 +00004378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4380ac_tool_warned=yes ;;
4381esac
4382 CC=$ac_ct_CC
4383 fi
4384fi
4385
4386fi
4387
4388
cristy8b350f62009-11-15 23:12:43 +00004389test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00004391as_fn_error $? "no acceptable C compiler found in \$PATH
4392See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004393
4394# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004395$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004396set X $ac_compile
4397ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004398for ac_option in --version -v -V -qversion; do
4399 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004400case "(($ac_try" in
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4403esac
cristy8b350f62009-11-15 23:12:43 +00004404eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4405$as_echo "$ac_try_echo"; } >&5
4406 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004407 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004408 if test -s conftest.err; then
4409 sed '10a\
4410... rest of stderr output deleted ...
4411 10q' conftest.err >conftest.er1
4412 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004413 fi
cristycd4c5312009-11-22 01:19:08 +00004414 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4416 test $ac_status = 0; }
4417done
cristy3ed852e2009-09-05 21:47:34 +00004418
cristy8b350f62009-11-15 23:12:43 +00004419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004420/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004421
cristy3ed852e2009-09-05 21:47:34 +00004422int
4423main ()
4424{
4425
4426 ;
4427 return 0;
4428}
4429_ACEOF
4430ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004431ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004432# Try to create an executable without -o first, disregard a.out.
4433# It will help us diagnose broken compilers, and finding out an intuition
4434# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4436$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004437ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4438
4439# The possible output files:
4440ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4441
4442ac_rmfiles=
4443for ac_file in $ac_files
4444do
4445 case $ac_file in
4446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4447 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4448 esac
4449done
4450rm -f $ac_rmfiles
4451
cristy8b350f62009-11-15 23:12:43 +00004452if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004453case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456esac
cristy8b350f62009-11-15 23:12:43 +00004457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4458$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004459 (eval "$ac_link_default") 2>&5
4460 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4462 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004463 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4464# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4465# in a Makefile. We should not override ac_cv_exeext if it was cached,
4466# so that the user can short-circuit this test for compilers unknown to
4467# Autoconf.
4468for ac_file in $ac_files ''
4469do
4470 test -f "$ac_file" || continue
4471 case $ac_file in
4472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4473 ;;
4474 [ab].out )
4475 # We found the default executable, but exeext='' is most
4476 # certainly right.
4477 break;;
4478 *.* )
cristy8b350f62009-11-15 23:12:43 +00004479 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004480 then :; else
4481 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4482 fi
4483 # We set ac_cv_exeext here because the later test for it is not
4484 # safe: cross compilers may not add the suffix if given an `-o'
4485 # argument, so we may need to know it at that point already.
4486 # Even if this section looks crufty: it has the advantage of
4487 # actually working.
4488 break;;
4489 * )
4490 break;;
4491 esac
4492done
4493test "$ac_cv_exeext" = no && ac_cv_exeext=
4494
4495else
4496 ac_file=''
4497fi
cristy8b350f62009-11-15 23:12:43 +00004498if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500$as_echo "no" >&6; }
4501$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004502sed 's/^/| /' conftest.$ac_ext >&5
4503
cristy8b350f62009-11-15 23:12:43 +00004504{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00004506as_fn_error 77 "C compiler cannot create executables
4507See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004508else
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4510$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004511fi
cristycd4c5312009-11-22 01:19:08 +00004512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4513$as_echo_n "checking for C compiler default output file name... " >&6; }
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4515$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004516ac_exeext=$ac_cv_exeext
4517
cristycd4c5312009-11-22 01:19:08 +00004518rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004519ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004521$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004522if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004523case "(($ac_try" in
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4526esac
cristy8b350f62009-11-15 23:12:43 +00004527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4528$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004529 (eval "$ac_link") 2>&5
4530 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4532 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004533 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4534# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4535# work properly (i.e., refer to `conftest.exe'), while it won't with
4536# `rm'.
4537for ac_file in conftest.exe conftest conftest.*; do
4538 test -f "$ac_file" || continue
4539 case $ac_file in
4540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4541 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4542 break;;
4543 * ) break;;
4544 esac
4545done
4546else
cristy8b350f62009-11-15 23:12:43 +00004547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00004549as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4550See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004551fi
cristycd4c5312009-11-22 01:19:08 +00004552rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004554$as_echo "$ac_cv_exeext" >&6; }
4555
4556rm -f conftest.$ac_ext
4557EXEEXT=$ac_cv_exeext
4558ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560/* end confdefs.h. */
4561#include <stdio.h>
4562int
4563main ()
4564{
4565FILE *f = fopen ("conftest.out", "w");
4566 return ferror (f) || fclose (f) != 0;
4567
4568 ;
4569 return 0;
4570}
4571_ACEOF
4572ac_clean_files="$ac_clean_files conftest.out"
4573# Check that the compiler produces executables we can run. If not, either
4574# the compiler is broken, or we cross compile.
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4576$as_echo_n "checking whether we are cross compiling... " >&6; }
4577if test "$cross_compiling" != yes; then
4578 { { ac_try="$ac_link"
4579case "(($ac_try" in
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4582esac
4583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4584$as_echo "$ac_try_echo"; } >&5
4585 (eval "$ac_link") 2>&5
4586 ac_status=$?
4587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4588 test $ac_status = 0; }
4589 if { ac_try='./conftest$ac_cv_exeext'
4590 { { case "(($ac_try" in
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4593esac
4594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4595$as_echo "$ac_try_echo"; } >&5
4596 (eval "$ac_try") 2>&5
4597 ac_status=$?
4598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4599 test $ac_status = 0; }; }; then
4600 cross_compiling=no
4601 else
4602 if test "$cross_compiling" = maybe; then
4603 cross_compiling=yes
4604 else
4605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4606$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00004607as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004608If you meant to cross compile, use \`--host'.
cristyfd9dcd42010-08-08 18:07:02 +00004609See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004610 fi
4611 fi
4612fi
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4614$as_echo "$cross_compiling" >&6; }
4615
4616rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4617ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004619$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004620if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004621 $as_echo_n "(cached) " >&6
4622else
cristy8b350f62009-11-15 23:12:43 +00004623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004624/* end confdefs.h. */
4625
4626int
4627main ()
4628{
4629
4630 ;
4631 return 0;
4632}
4633_ACEOF
4634rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004635if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004636case "(($ac_try" in
4637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638 *) ac_try_echo=$ac_try;;
4639esac
cristy8b350f62009-11-15 23:12:43 +00004640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4641$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004642 (eval "$ac_compile") 2>&5
4643 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4645 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004646 for ac_file in conftest.o conftest.obj conftest.*; do
4647 test -f "$ac_file" || continue;
4648 case $ac_file in
4649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4650 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4651 break;;
4652 esac
4653done
4654else
4655 $as_echo "$as_me: failed program was:" >&5
4656sed 's/^/| /' conftest.$ac_ext >&5
4657
cristy8b350f62009-11-15 23:12:43 +00004658{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004659$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00004660as_fn_error $? "cannot compute suffix of object files: cannot compile
4661See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004662fi
cristy3ed852e2009-09-05 21:47:34 +00004663rm -f conftest.$ac_cv_objext conftest.$ac_ext
4664fi
cristy8b350f62009-11-15 23:12:43 +00004665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004666$as_echo "$ac_cv_objext" >&6; }
4667OBJEXT=$ac_cv_objext
4668ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004670$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004671if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004672 $as_echo_n "(cached) " >&6
4673else
cristy8b350f62009-11-15 23:12:43 +00004674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004675/* end confdefs.h. */
4676
4677int
4678main ()
4679{
4680#ifndef __GNUC__
4681 choke me
4682#endif
4683
4684 ;
4685 return 0;
4686}
4687_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004688if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004689 ac_compiler_gnu=yes
4690else
cristy8b350f62009-11-15 23:12:43 +00004691 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004692fi
cristy3ed852e2009-09-05 21:47:34 +00004693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694ac_cv_c_compiler_gnu=$ac_compiler_gnu
4695
4696fi
cristy8b350f62009-11-15 23:12:43 +00004697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004698$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4699if test $ac_compiler_gnu = yes; then
4700 GCC=yes
4701else
4702 GCC=
4703fi
4704ac_test_CFLAGS=${CFLAGS+set}
4705ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004707$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004708if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004709 $as_echo_n "(cached) " >&6
4710else
4711 ac_save_c_werror_flag=$ac_c_werror_flag
4712 ac_c_werror_flag=yes
4713 ac_cv_prog_cc_g=no
4714 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004716/* end confdefs.h. */
4717
4718int
4719main ()
4720{
4721
4722 ;
4723 return 0;
4724}
4725_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004726if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004727 ac_cv_prog_cc_g=yes
4728else
cristy8b350f62009-11-15 23:12:43 +00004729 CFLAGS=""
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004731/* end confdefs.h. */
4732
4733int
4734main ()
4735{
4736
4737 ;
4738 return 0;
4739}
4740_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004741if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004742
cristy8b350f62009-11-15 23:12:43 +00004743else
4744 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004745 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004747/* end confdefs.h. */
4748
4749int
4750main ()
4751{
4752
4753 ;
4754 return 0;
4755}
4756_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004757if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004758 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004759fi
cristy3ed852e2009-09-05 21:47:34 +00004760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761fi
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
4765 ac_c_werror_flag=$ac_save_c_werror_flag
4766fi
cristy8b350f62009-11-15 23:12:43 +00004767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004768$as_echo "$ac_cv_prog_cc_g" >&6; }
4769if test "$ac_test_CFLAGS" = set; then
4770 CFLAGS=$ac_save_CFLAGS
4771elif test $ac_cv_prog_cc_g = yes; then
4772 if test "$GCC" = yes; then
4773 CFLAGS="-g -O2"
4774 else
4775 CFLAGS="-g"
4776 fi
4777else
4778 if test "$GCC" = yes; then
4779 CFLAGS="-O2"
4780 else
4781 CFLAGS=
4782 fi
4783fi
cristy8b350f62009-11-15 23:12:43 +00004784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004785$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004786if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004787 $as_echo_n "(cached) " >&6
4788else
4789 ac_cv_prog_cc_c89=no
4790ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004792/* end confdefs.h. */
4793#include <stdarg.h>
4794#include <stdio.h>
4795#include <sys/types.h>
4796#include <sys/stat.h>
4797/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4798struct buf { int x; };
4799FILE * (*rcsopen) (struct buf *, struct stat *, int);
4800static char *e (p, i)
4801 char **p;
4802 int i;
4803{
4804 return p[i];
4805}
4806static char *f (char * (*g) (char **, int), char **p, ...)
4807{
4808 char *s;
4809 va_list v;
4810 va_start (v,p);
4811 s = g (p, va_arg (v,int));
4812 va_end (v);
4813 return s;
4814}
4815
4816/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4817 function prototypes and stuff, but not '\xHH' hex character constants.
4818 These don't provoke an error unfortunately, instead are silently treated
4819 as 'x'. The following induces an error, until -std is added to get
4820 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4821 array size at least. It's necessary to write '\x00'==0 to get something
4822 that's true only with -std. */
4823int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4824
4825/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4826 inside strings and character constants. */
4827#define FOO(x) 'x'
4828int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4829
4830int test (int i, double x);
4831struct s1 {int (*f) (int a);};
4832struct s2 {int (*f) (double a);};
4833int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4834int argc;
4835char **argv;
4836int
4837main ()
4838{
4839return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4840 ;
4841 return 0;
4842}
4843_ACEOF
4844for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4845 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4846do
4847 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004848 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004849 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004850fi
cristy3ed852e2009-09-05 21:47:34 +00004851rm -f core conftest.err conftest.$ac_objext
4852 test "x$ac_cv_prog_cc_c89" != "xno" && break
4853done
4854rm -f conftest.$ac_ext
4855CC=$ac_save_CC
4856
4857fi
4858# AC_CACHE_VAL
4859case "x$ac_cv_prog_cc_c89" in
4860 x)
cristy8b350f62009-11-15 23:12:43 +00004861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004862$as_echo "none needed" >&6; } ;;
4863 xno)
cristy8b350f62009-11-15 23:12:43 +00004864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004865$as_echo "unsupported" >&6; } ;;
4866 *)
4867 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004869$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4870esac
cristy8b350f62009-11-15 23:12:43 +00004871if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004872
cristy8b350f62009-11-15 23:12:43 +00004873fi
cristy3ed852e2009-09-05 21:47:34 +00004874
4875ac_ext=c
4876ac_cpp='$CPP $CPPFLAGS'
4877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4879ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00004880
cristya0b81c32010-01-22 02:54:33 +00004881depcc="$CC" am_compiler_list=
cristy3ed852e2009-09-05 21:47:34 +00004882
cristya0b81c32010-01-22 02:54:33 +00004883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4884$as_echo_n "checking dependency style of $depcc... " >&6; }
4885if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4886 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00004887else
cristya0b81c32010-01-22 02:54:33 +00004888 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4889 # We make a subdir and do the tests there. Otherwise we can end up
4890 # making bogus files that we don't know about and never remove. For
4891 # instance it was reported that on HP-UX the gcc test will end up
4892 # making a dummy file named `D' -- because `-MD' means `put the output
4893 # in D'.
4894 mkdir conftest.dir
4895 # Copy depcomp to subdir because otherwise we won't find it if we're
4896 # using a relative directory.
4897 cp "$am_depcomp" conftest.dir
4898 cd conftest.dir
4899 # We will build objects and dependencies in a subdirectory because
4900 # it helps to detect inapplicable dependency modes. For instance
4901 # both Tru64's cc and ICC support -MD to output dependencies as a
4902 # side effect of compilation, but ICC will put the dependencies in
4903 # the current directory while Tru64 will put them in the object
4904 # directory.
4905 mkdir sub
4906
4907 am_cv_CC_dependencies_compiler_type=none
4908 if test "$am_compiler_list" = ""; then
4909 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4910 fi
4911 am__universal=false
4912 case " $depcc " in #(
4913 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4914 esac
4915
4916 for depmode in $am_compiler_list; do
4917 # Setup a source with many dependencies, because some compilers
4918 # like to wrap large dependency lists on column 80 (with \), and
4919 # we should not choose a depcomp mode which is confused by this.
4920 #
4921 # We need to recreate these files for each test, as the compiler may
4922 # overwrite some of them when testing with obscure command lines.
4923 # This happens at least with the AIX C compiler.
4924 : > sub/conftest.c
4925 for i in 1 2 3 4 5 6; do
4926 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4927 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4928 # Solaris 8's {/usr,}/bin/sh.
4929 touch sub/conftst$i.h
4930 done
4931 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4932
4933 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4934 # mode. It turns out that the SunPro C++ compiler does not properly
4935 # handle `-M -o', and we need to detect this. Also, some Intel
4936 # versions had trouble with output in subdirs
4937 am__obj=sub/conftest.${OBJEXT-o}
4938 am__minus_obj="-o $am__obj"
4939 case $depmode in
4940 gcc)
4941 # This depmode causes a compiler race in universal mode.
4942 test "$am__universal" = false || continue
4943 ;;
4944 nosideeffect)
4945 # after this tag, mechanisms are not by side-effect, so they'll
4946 # only be used when explicitly requested
4947 if test "x$enable_dependency_tracking" = xyes; then
4948 continue
4949 else
4950 break
4951 fi
4952 ;;
4953 msvisualcpp | msvcmsys)
4954 # This compiler won't grok `-c -o', but also, the minuso test has
4955 # not run yet. These depmodes are late enough in the game, and
4956 # so weak that their functioning should not be impacted.
4957 am__obj=conftest.${OBJEXT-o}
4958 am__minus_obj=
4959 ;;
4960 none) break ;;
4961 esac
4962 if depmode=$depmode \
4963 source=sub/conftest.c object=$am__obj \
4964 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4965 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4966 >/dev/null 2>conftest.err &&
4967 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4968 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4969 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4970 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4971 # icc doesn't choke on unknown options, it will just issue warnings
4972 # or remarks (even with -Werror). So we grep stderr for any message
4973 # that says an option was ignored or not supported.
4974 # When given -MP, icc 7.0 and 7.1 complain thusly:
4975 # icc: Command line warning: ignoring option '-M'; no argument required
4976 # The diagnosis changed in icc 8.0:
4977 # icc: Command line remark: option '-MP' not supported
4978 if (grep 'ignoring option' conftest.err ||
4979 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4980 am_cv_CC_dependencies_compiler_type=$depmode
4981 break
4982 fi
4983 fi
4984 done
4985
4986 cd ..
4987 rm -rf conftest.dir
4988else
4989 am_cv_CC_dependencies_compiler_type=none
4990fi
4991
4992fi
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4994$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4995CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4996
4997 if
4998 test "x$enable_dependency_tracking" != xno \
4999 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5000 am__fastdepCC_TRUE=
5001 am__fastdepCC_FALSE='#'
5002else
5003 am__fastdepCC_TRUE='#'
5004 am__fastdepCC_FALSE=
cristy3ed852e2009-09-05 21:47:34 +00005005fi
5006
5007
5008
cristya0b81c32010-01-22 02:54:33 +00005009ac_ext=c
5010ac_cpp='$CPP $CPPFLAGS'
5011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5013ac_compiler_gnu=$ac_cv_c_compiler_gnu
5014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5015$as_echo_n "checking how to run the C preprocessor... " >&6; }
5016# On Suns, sometimes $CPP names a directory.
5017if test -n "$CPP" && test -d "$CPP"; then
5018 CPP=
5019fi
5020if test -z "$CPP"; then
5021 if test "${ac_cv_prog_CPP+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
5023else
5024 # Double quotes because CPP needs to be expanded
5025 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5026 do
5027 ac_preproc_ok=false
5028for ac_c_preproc_warn_flag in '' yes
5029do
5030 # Use a header file that comes with gcc, so configuring glibc
5031 # with a fresh cross-compiler works.
5032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5033 # <limits.h> exists even on freestanding compilers.
5034 # On the NeXT, cc -E runs the code through the compiler's parser,
5035 # not just through cpp. "Syntax error" is here to catch this case.
5036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037/* end confdefs.h. */
5038#ifdef __STDC__
5039# include <limits.h>
5040#else
5041# include <assert.h>
5042#endif
5043 Syntax error
5044_ACEOF
5045if ac_fn_c_try_cpp "$LINENO"; then :
5046
5047else
5048 # Broken: fails on valid input.
5049continue
5050fi
5051rm -f conftest.err conftest.$ac_ext
5052
5053 # OK, works on sane cases. Now check whether nonexistent headers
5054 # can be detected and how.
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056/* end confdefs.h. */
5057#include <ac_nonexistent.h>
5058_ACEOF
5059if ac_fn_c_try_cpp "$LINENO"; then :
5060 # Broken: success on invalid input.
5061continue
5062else
5063 # Passes both tests.
5064ac_preproc_ok=:
5065break
5066fi
5067rm -f conftest.err conftest.$ac_ext
5068
5069done
5070# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5071rm -f conftest.err conftest.$ac_ext
5072if $ac_preproc_ok; then :
5073 break
5074fi
5075
5076 done
5077 ac_cv_prog_CPP=$CPP
5078
5079fi
5080 CPP=$ac_cv_prog_CPP
5081else
5082 ac_cv_prog_CPP=$CPP
5083fi
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5085$as_echo "$CPP" >&6; }
5086ac_preproc_ok=false
5087for ac_c_preproc_warn_flag in '' yes
5088do
5089 # Use a header file that comes with gcc, so configuring glibc
5090 # with a fresh cross-compiler works.
5091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5092 # <limits.h> exists even on freestanding compilers.
5093 # On the NeXT, cc -E runs the code through the compiler's parser,
5094 # not just through cpp. "Syntax error" is here to catch this case.
5095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096/* end confdefs.h. */
5097#ifdef __STDC__
5098# include <limits.h>
5099#else
5100# include <assert.h>
5101#endif
5102 Syntax error
5103_ACEOF
5104if ac_fn_c_try_cpp "$LINENO"; then :
5105
5106else
5107 # Broken: fails on valid input.
5108continue
5109fi
5110rm -f conftest.err conftest.$ac_ext
5111
5112 # OK, works on sane cases. Now check whether nonexistent headers
5113 # can be detected and how.
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115/* end confdefs.h. */
5116#include <ac_nonexistent.h>
5117_ACEOF
5118if ac_fn_c_try_cpp "$LINENO"; then :
5119 # Broken: success on invalid input.
5120continue
5121else
5122 # Passes both tests.
5123ac_preproc_ok=:
5124break
5125fi
5126rm -f conftest.err conftest.$ac_ext
5127
5128done
5129# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5130rm -f conftest.err conftest.$ac_ext
5131if $ac_preproc_ok; then :
5132
5133else
5134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00005136as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5137See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005138fi
5139
5140ac_ext=c
5141ac_cpp='$CPP $CPPFLAGS'
5142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5144ac_compiler_gnu=$ac_cv_c_compiler_gnu
5145
5146
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5148$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5149if test "${ac_cv_path_GREP+set}" = set; then :
5150 $as_echo_n "(cached) " >&6
5151else
5152 if test -z "$GREP"; then
5153 ac_path_GREP_found=false
5154 # Loop through the user's path and test for each of PROGNAME-LIST
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5157do
5158 IFS=$as_save_IFS
5159 test -z "$as_dir" && as_dir=.
5160 for ac_prog in grep ggrep; do
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5163 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5164# Check for GNU ac_path_GREP and select it if it is found.
5165 # Check for GNU $ac_path_GREP
5166case `"$ac_path_GREP" --version 2>&1` in
5167*GNU*)
5168 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5169*)
5170 ac_count=0
5171 $as_echo_n 0123456789 >"conftest.in"
5172 while :
5173 do
5174 cat "conftest.in" "conftest.in" >"conftest.tmp"
5175 mv "conftest.tmp" "conftest.in"
5176 cp "conftest.in" "conftest.nl"
5177 $as_echo 'GREP' >> "conftest.nl"
5178 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5179 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5180 as_fn_arith $ac_count + 1 && ac_count=$as_val
5181 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5182 # Best one so far, save it but keep looking for a better one
5183 ac_cv_path_GREP="$ac_path_GREP"
5184 ac_path_GREP_max=$ac_count
5185 fi
5186 # 10*(2^10) chars as input seems more than enough
5187 test $ac_count -gt 10 && break
5188 done
5189 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5190esac
5191
5192 $ac_path_GREP_found && break 3
5193 done
5194 done
5195 done
5196IFS=$as_save_IFS
5197 if test -z "$ac_cv_path_GREP"; then
cristyfd9dcd42010-08-08 18:07:02 +00005198 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005199 fi
5200else
5201 ac_cv_path_GREP=$GREP
5202fi
5203
5204fi
5205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5206$as_echo "$ac_cv_path_GREP" >&6; }
5207 GREP="$ac_cv_path_GREP"
5208
5209
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5211$as_echo_n "checking for egrep... " >&6; }
5212if test "${ac_cv_path_EGREP+set}" = set; then :
5213 $as_echo_n "(cached) " >&6
5214else
5215 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5216 then ac_cv_path_EGREP="$GREP -E"
5217 else
5218 if test -z "$EGREP"; then
5219 ac_path_EGREP_found=false
5220 # Loop through the user's path and test for each of PROGNAME-LIST
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5223do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_prog in egrep; do
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5229 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5230# Check for GNU ac_path_EGREP and select it if it is found.
5231 # Check for GNU $ac_path_EGREP
5232case `"$ac_path_EGREP" --version 2>&1` in
5233*GNU*)
5234 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5235*)
5236 ac_count=0
5237 $as_echo_n 0123456789 >"conftest.in"
5238 while :
5239 do
5240 cat "conftest.in" "conftest.in" >"conftest.tmp"
5241 mv "conftest.tmp" "conftest.in"
5242 cp "conftest.in" "conftest.nl"
5243 $as_echo 'EGREP' >> "conftest.nl"
5244 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5246 as_fn_arith $ac_count + 1 && ac_count=$as_val
5247 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5248 # Best one so far, save it but keep looking for a better one
5249 ac_cv_path_EGREP="$ac_path_EGREP"
5250 ac_path_EGREP_max=$ac_count
5251 fi
5252 # 10*(2^10) chars as input seems more than enough
5253 test $ac_count -gt 10 && break
5254 done
5255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5256esac
5257
5258 $ac_path_EGREP_found && break 3
5259 done
5260 done
5261 done
5262IFS=$as_save_IFS
5263 if test -z "$ac_cv_path_EGREP"; then
cristyfd9dcd42010-08-08 18:07:02 +00005264 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005265 fi
5266else
5267 ac_cv_path_EGREP=$EGREP
5268fi
5269
5270 fi
5271fi
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5273$as_echo "$ac_cv_path_EGREP" >&6; }
5274 EGREP="$ac_cv_path_EGREP"
5275
5276
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5278$as_echo_n "checking for ANSI C header files... " >&6; }
5279if test "${ac_cv_header_stdc+set}" = set; then :
5280 $as_echo_n "(cached) " >&6
5281else
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283/* end confdefs.h. */
5284#include <stdlib.h>
5285#include <stdarg.h>
5286#include <string.h>
5287#include <float.h>
5288
5289int
5290main ()
5291{
5292
5293 ;
5294 return 0;
5295}
5296_ACEOF
5297if ac_fn_c_try_compile "$LINENO"; then :
5298 ac_cv_header_stdc=yes
5299else
5300 ac_cv_header_stdc=no
5301fi
5302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303
5304if test $ac_cv_header_stdc = yes; then
5305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307/* end confdefs.h. */
5308#include <string.h>
5309
5310_ACEOF
5311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5312 $EGREP "memchr" >/dev/null 2>&1; then :
5313
5314else
5315 ac_cv_header_stdc=no
5316fi
5317rm -f conftest*
5318
5319fi
5320
5321if test $ac_cv_header_stdc = yes; then
5322 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324/* end confdefs.h. */
5325#include <stdlib.h>
5326
5327_ACEOF
5328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5329 $EGREP "free" >/dev/null 2>&1; then :
5330
5331else
5332 ac_cv_header_stdc=no
5333fi
5334rm -f conftest*
5335
5336fi
5337
5338if test $ac_cv_header_stdc = yes; then
5339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5340 if test "$cross_compiling" = yes; then :
5341 :
5342else
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344/* end confdefs.h. */
5345#include <ctype.h>
5346#include <stdlib.h>
5347#if ((' ' & 0x0FF) == 0x020)
5348# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5349# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5350#else
5351# define ISLOWER(c) \
5352 (('a' <= (c) && (c) <= 'i') \
5353 || ('j' <= (c) && (c) <= 'r') \
5354 || ('s' <= (c) && (c) <= 'z'))
5355# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5356#endif
5357
5358#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5359int
5360main ()
5361{
5362 int i;
5363 for (i = 0; i < 256; i++)
5364 if (XOR (islower (i), ISLOWER (i))
5365 || toupper (i) != TOUPPER (i))
5366 return 2;
5367 return 0;
5368}
5369_ACEOF
5370if ac_fn_c_try_run "$LINENO"; then :
5371
5372else
5373 ac_cv_header_stdc=no
5374fi
5375rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5376 conftest.$ac_objext conftest.beam conftest.$ac_ext
5377fi
5378
5379fi
5380fi
5381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5382$as_echo "$ac_cv_header_stdc" >&6; }
5383if test $ac_cv_header_stdc = yes; then
5384
5385$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5386
5387fi
5388
5389# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5390for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5391 inttypes.h stdint.h unistd.h
5392do :
5393 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5394ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5395"
cristyfd9dcd42010-08-08 18:07:02 +00005396if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005397 cat >>confdefs.h <<_ACEOF
5398#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5399_ACEOF
5400
5401fi
5402
5403done
5404
5405
5406
5407 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5408if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5409 MINIX=yes
5410else
5411 MINIX=
5412fi
5413
5414
5415 if test "$MINIX" = yes; then
5416
5417$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5418
5419
5420$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5421
5422
5423$as_echo "#define _MINIX 1" >>confdefs.h
5424
5425 fi
5426
5427
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5429$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5430if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5431 $as_echo_n "(cached) " >&6
5432else
5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434/* end confdefs.h. */
5435
5436# define __EXTENSIONS__ 1
5437 $ac_includes_default
5438int
5439main ()
5440{
5441
5442 ;
5443 return 0;
5444}
5445_ACEOF
5446if ac_fn_c_try_compile "$LINENO"; then :
5447 ac_cv_safe_to_define___extensions__=yes
5448else
5449 ac_cv_safe_to_define___extensions__=no
5450fi
5451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452fi
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5454$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5455 test $ac_cv_safe_to_define___extensions__ = yes &&
5456 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5457
5458 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5459
5460 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5461
5462 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5463
5464 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5465
5466
5467
5468# Check for programs
5469ac_ext=c
5470ac_cpp='$CPP $CPPFLAGS'
5471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5473ac_compiler_gnu=$ac_cv_c_compiler_gnu
5474if test -n "$ac_tool_prefix"; then
5475 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5476set dummy ${ac_tool_prefix}gcc; ac_word=$2
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478$as_echo_n "checking for $ac_word... " >&6; }
5479if test "${ac_cv_prog_CC+set}" = set; then :
5480 $as_echo_n "(cached) " >&6
5481else
5482 if test -n "$CC"; then
5483 ac_cv_prog_CC="$CC" # Let the user override the test.
5484else
5485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486for as_dir in $PATH
5487do
5488 IFS=$as_save_IFS
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 break 2
5495 fi
5496done
5497 done
5498IFS=$as_save_IFS
5499
5500fi
5501fi
5502CC=$ac_cv_prog_CC
5503if test -n "$CC"; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5505$as_echo "$CC" >&6; }
5506else
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508$as_echo "no" >&6; }
5509fi
5510
5511
5512fi
5513if test -z "$ac_cv_prog_CC"; then
5514 ac_ct_CC=$CC
5515 # Extract the first word of "gcc", so it can be a program name with args.
5516set dummy gcc; ac_word=$2
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518$as_echo_n "checking for $ac_word... " >&6; }
5519if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5520 $as_echo_n "(cached) " >&6
5521else
5522 if test -n "$ac_ct_CC"; then
5523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5524else
5525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526for as_dir in $PATH
5527do
5528 IFS=$as_save_IFS
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5532 ac_cv_prog_ac_ct_CC="gcc"
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 break 2
5535 fi
5536done
5537 done
5538IFS=$as_save_IFS
5539
5540fi
5541fi
5542ac_ct_CC=$ac_cv_prog_ac_ct_CC
5543if test -n "$ac_ct_CC"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5545$as_echo "$ac_ct_CC" >&6; }
5546else
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548$as_echo "no" >&6; }
5549fi
5550
5551 if test "x$ac_ct_CC" = x; then
5552 CC=""
5553 else
5554 case $cross_compiling:$ac_tool_warned in
5555yes:)
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5558ac_tool_warned=yes ;;
5559esac
5560 CC=$ac_ct_CC
5561 fi
5562else
5563 CC="$ac_cv_prog_CC"
5564fi
5565
5566if test -z "$CC"; then
5567 if test -n "$ac_tool_prefix"; then
5568 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5569set dummy ${ac_tool_prefix}cc; ac_word=$2
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571$as_echo_n "checking for $ac_word... " >&6; }
5572if test "${ac_cv_prog_CC+set}" = set; then :
5573 $as_echo_n "(cached) " >&6
5574else
5575 if test -n "$CC"; then
5576 ac_cv_prog_CC="$CC" # Let the user override the test.
5577else
5578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579for as_dir in $PATH
5580do
5581 IFS=$as_save_IFS
5582 test -z "$as_dir" && as_dir=.
5583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5585 ac_cv_prog_CC="${ac_tool_prefix}cc"
5586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587 break 2
5588 fi
5589done
5590 done
5591IFS=$as_save_IFS
5592
5593fi
5594fi
5595CC=$ac_cv_prog_CC
5596if test -n "$CC"; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5598$as_echo "$CC" >&6; }
5599else
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601$as_echo "no" >&6; }
5602fi
5603
5604
5605 fi
5606fi
5607if test -z "$CC"; then
5608 # Extract the first word of "cc", so it can be a program name with args.
5609set dummy cc; ac_word=$2
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611$as_echo_n "checking for $ac_word... " >&6; }
5612if test "${ac_cv_prog_CC+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5614else
5615 if test -n "$CC"; then
5616 ac_cv_prog_CC="$CC" # Let the user override the test.
5617else
5618 ac_prog_rejected=no
5619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620for as_dir in $PATH
5621do
5622 IFS=$as_save_IFS
5623 test -z "$as_dir" && as_dir=.
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5626 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5627 ac_prog_rejected=yes
5628 continue
5629 fi
5630 ac_cv_prog_CC="cc"
5631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 break 2
5633 fi
5634done
5635 done
5636IFS=$as_save_IFS
5637
5638if test $ac_prog_rejected = yes; then
5639 # We found a bogon in the path, so make sure we never use it.
5640 set dummy $ac_cv_prog_CC
5641 shift
5642 if test $# != 0; then
5643 # We chose a different compiler from the bogus one.
5644 # However, it has the same basename, so the bogon will be chosen
5645 # first if we set CC to just the basename; use the full file name.
5646 shift
5647 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5648 fi
5649fi
5650fi
5651fi
5652CC=$ac_cv_prog_CC
5653if test -n "$CC"; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5655$as_echo "$CC" >&6; }
5656else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658$as_echo "no" >&6; }
5659fi
5660
5661
5662fi
5663if test -z "$CC"; then
5664 if test -n "$ac_tool_prefix"; then
5665 for ac_prog in cl.exe
5666 do
5667 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5668set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670$as_echo_n "checking for $ac_word... " >&6; }
5671if test "${ac_cv_prog_CC+set}" = set; then :
5672 $as_echo_n "(cached) " >&6
5673else
5674 if test -n "$CC"; then
5675 ac_cv_prog_CC="$CC" # Let the user override the test.
5676else
5677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678for as_dir in $PATH
5679do
5680 IFS=$as_save_IFS
5681 test -z "$as_dir" && as_dir=.
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5684 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5686 break 2
5687 fi
5688done
5689 done
5690IFS=$as_save_IFS
5691
5692fi
5693fi
5694CC=$ac_cv_prog_CC
5695if test -n "$CC"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5697$as_echo "$CC" >&6; }
5698else
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700$as_echo "no" >&6; }
5701fi
5702
5703
5704 test -n "$CC" && break
5705 done
5706fi
5707if test -z "$CC"; then
5708 ac_ct_CC=$CC
5709 for ac_prog in cl.exe
5710do
5711 # Extract the first word of "$ac_prog", so it can be a program name with args.
5712set dummy $ac_prog; ac_word=$2
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714$as_echo_n "checking for $ac_word... " >&6; }
5715if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5716 $as_echo_n "(cached) " >&6
5717else
5718 if test -n "$ac_ct_CC"; then
5719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5720else
5721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722for as_dir in $PATH
5723do
5724 IFS=$as_save_IFS
5725 test -z "$as_dir" && as_dir=.
5726 for ac_exec_ext in '' $ac_executable_extensions; do
5727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5728 ac_cv_prog_ac_ct_CC="$ac_prog"
5729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5730 break 2
5731 fi
5732done
5733 done
5734IFS=$as_save_IFS
5735
5736fi
5737fi
5738ac_ct_CC=$ac_cv_prog_ac_ct_CC
5739if test -n "$ac_ct_CC"; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5741$as_echo "$ac_ct_CC" >&6; }
5742else
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744$as_echo "no" >&6; }
5745fi
5746
5747
5748 test -n "$ac_ct_CC" && break
5749done
5750
5751 if test "x$ac_ct_CC" = x; then
5752 CC=""
5753 else
5754 case $cross_compiling:$ac_tool_warned in
5755yes:)
5756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5758ac_tool_warned=yes ;;
5759esac
5760 CC=$ac_ct_CC
5761 fi
5762fi
5763
5764fi
5765
5766
5767test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00005769as_fn_error $? "no acceptable C compiler found in \$PATH
5770See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005771
5772# Provide some information about the compiler.
5773$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5774set X $ac_compile
5775ac_compiler=$2
5776for ac_option in --version -v -V -qversion; do
5777 { { ac_try="$ac_compiler $ac_option >&5"
5778case "(($ac_try" in
5779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780 *) ac_try_echo=$ac_try;;
5781esac
5782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5783$as_echo "$ac_try_echo"; } >&5
5784 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5785 ac_status=$?
5786 if test -s conftest.err; then
5787 sed '10a\
5788... rest of stderr output deleted ...
5789 10q' conftest.err >conftest.er1
5790 cat conftest.er1 >&5
5791 fi
5792 rm -f conftest.er1 conftest.err
5793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5794 test $ac_status = 0; }
5795done
5796
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5798$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5799if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5800 $as_echo_n "(cached) " >&6
5801else
5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803/* end confdefs.h. */
5804
5805int
5806main ()
5807{
5808#ifndef __GNUC__
5809 choke me
5810#endif
5811
5812 ;
5813 return 0;
5814}
5815_ACEOF
5816if ac_fn_c_try_compile "$LINENO"; then :
5817 ac_compiler_gnu=yes
5818else
5819 ac_compiler_gnu=no
5820fi
5821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822ac_cv_c_compiler_gnu=$ac_compiler_gnu
5823
5824fi
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5826$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5827if test $ac_compiler_gnu = yes; then
5828 GCC=yes
5829else
5830 GCC=
5831fi
5832ac_test_CFLAGS=${CFLAGS+set}
5833ac_save_CFLAGS=$CFLAGS
5834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5835$as_echo_n "checking whether $CC accepts -g... " >&6; }
5836if test "${ac_cv_prog_cc_g+set}" = set; then :
5837 $as_echo_n "(cached) " >&6
5838else
5839 ac_save_c_werror_flag=$ac_c_werror_flag
5840 ac_c_werror_flag=yes
5841 ac_cv_prog_cc_g=no
5842 CFLAGS="-g"
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844/* end confdefs.h. */
5845
5846int
5847main ()
5848{
5849
5850 ;
5851 return 0;
5852}
5853_ACEOF
5854if ac_fn_c_try_compile "$LINENO"; then :
5855 ac_cv_prog_cc_g=yes
5856else
5857 CFLAGS=""
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859/* end confdefs.h. */
5860
5861int
5862main ()
5863{
5864
5865 ;
5866 return 0;
5867}
5868_ACEOF
5869if ac_fn_c_try_compile "$LINENO"; then :
5870
5871else
5872 ac_c_werror_flag=$ac_save_c_werror_flag
5873 CFLAGS="-g"
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875/* end confdefs.h. */
5876
5877int
5878main ()
5879{
5880
5881 ;
5882 return 0;
5883}
5884_ACEOF
5885if ac_fn_c_try_compile "$LINENO"; then :
5886 ac_cv_prog_cc_g=yes
5887fi
5888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889fi
5890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891fi
5892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5893 ac_c_werror_flag=$ac_save_c_werror_flag
5894fi
5895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5896$as_echo "$ac_cv_prog_cc_g" >&6; }
5897if test "$ac_test_CFLAGS" = set; then
5898 CFLAGS=$ac_save_CFLAGS
5899elif test $ac_cv_prog_cc_g = yes; then
5900 if test "$GCC" = yes; then
5901 CFLAGS="-g -O2"
5902 else
5903 CFLAGS="-g"
5904 fi
5905else
5906 if test "$GCC" = yes; then
5907 CFLAGS="-O2"
5908 else
5909 CFLAGS=
5910 fi
5911fi
5912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5913$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5914if test "${ac_cv_prog_cc_c89+set}" = set; then :
5915 $as_echo_n "(cached) " >&6
5916else
5917 ac_cv_prog_cc_c89=no
5918ac_save_CC=$CC
5919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920/* end confdefs.h. */
5921#include <stdarg.h>
5922#include <stdio.h>
5923#include <sys/types.h>
5924#include <sys/stat.h>
5925/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5926struct buf { int x; };
5927FILE * (*rcsopen) (struct buf *, struct stat *, int);
5928static char *e (p, i)
5929 char **p;
5930 int i;
5931{
5932 return p[i];
5933}
5934static char *f (char * (*g) (char **, int), char **p, ...)
5935{
5936 char *s;
5937 va_list v;
5938 va_start (v,p);
5939 s = g (p, va_arg (v,int));
5940 va_end (v);
5941 return s;
5942}
5943
5944/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5945 function prototypes and stuff, but not '\xHH' hex character constants.
5946 These don't provoke an error unfortunately, instead are silently treated
5947 as 'x'. The following induces an error, until -std is added to get
5948 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5949 array size at least. It's necessary to write '\x00'==0 to get something
5950 that's true only with -std. */
5951int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5952
5953/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5954 inside strings and character constants. */
5955#define FOO(x) 'x'
5956int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5957
5958int test (int i, double x);
5959struct s1 {int (*f) (int a);};
5960struct s2 {int (*f) (double a);};
5961int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5962int argc;
5963char **argv;
5964int
5965main ()
5966{
5967return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5968 ;
5969 return 0;
5970}
5971_ACEOF
5972for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5973 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5974do
5975 CC="$ac_save_CC $ac_arg"
5976 if ac_fn_c_try_compile "$LINENO"; then :
5977 ac_cv_prog_cc_c89=$ac_arg
5978fi
5979rm -f core conftest.err conftest.$ac_objext
5980 test "x$ac_cv_prog_cc_c89" != "xno" && break
5981done
5982rm -f conftest.$ac_ext
5983CC=$ac_save_CC
5984
5985fi
5986# AC_CACHE_VAL
5987case "x$ac_cv_prog_cc_c89" in
5988 x)
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5990$as_echo "none needed" >&6; } ;;
5991 xno)
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5993$as_echo "unsupported" >&6; } ;;
5994 *)
5995 CC="$CC $ac_cv_prog_cc_c89"
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5997$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5998esac
5999if test "x$ac_cv_prog_cc_c89" != xno; then :
6000
6001fi
6002
6003ac_ext=c
6004ac_cpp='$CPP $CPPFLAGS'
6005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6007ac_compiler_gnu=$ac_cv_c_compiler_gnu
6008
cristy3ed852e2009-09-05 21:47:34 +00006009depcc="$CC" am_compiler_list=
6010
cristy8b350f62009-11-15 23:12:43 +00006011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006012$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006013if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006014 $as_echo_n "(cached) " >&6
6015else
6016 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6017 # We make a subdir and do the tests there. Otherwise we can end up
6018 # making bogus files that we don't know about and never remove. For
6019 # instance it was reported that on HP-UX the gcc test will end up
6020 # making a dummy file named `D' -- because `-MD' means `put the output
6021 # in D'.
6022 mkdir conftest.dir
6023 # Copy depcomp to subdir because otherwise we won't find it if we're
6024 # using a relative directory.
6025 cp "$am_depcomp" conftest.dir
6026 cd conftest.dir
6027 # We will build objects and dependencies in a subdirectory because
6028 # it helps to detect inapplicable dependency modes. For instance
6029 # both Tru64's cc and ICC support -MD to output dependencies as a
6030 # side effect of compilation, but ICC will put the dependencies in
6031 # the current directory while Tru64 will put them in the object
6032 # directory.
6033 mkdir sub
6034
6035 am_cv_CC_dependencies_compiler_type=none
6036 if test "$am_compiler_list" = ""; then
6037 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6038 fi
6039 am__universal=false
6040 case " $depcc " in #(
6041 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6042 esac
6043
6044 for depmode in $am_compiler_list; do
6045 # Setup a source with many dependencies, because some compilers
6046 # like to wrap large dependency lists on column 80 (with \), and
6047 # we should not choose a depcomp mode which is confused by this.
6048 #
6049 # We need to recreate these files for each test, as the compiler may
6050 # overwrite some of them when testing with obscure command lines.
6051 # This happens at least with the AIX C compiler.
6052 : > sub/conftest.c
6053 for i in 1 2 3 4 5 6; do
6054 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6055 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6056 # Solaris 8's {/usr,}/bin/sh.
6057 touch sub/conftst$i.h
6058 done
6059 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6060
6061 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6062 # mode. It turns out that the SunPro C++ compiler does not properly
6063 # handle `-M -o', and we need to detect this. Also, some Intel
6064 # versions had trouble with output in subdirs
6065 am__obj=sub/conftest.${OBJEXT-o}
6066 am__minus_obj="-o $am__obj"
6067 case $depmode in
6068 gcc)
6069 # This depmode causes a compiler race in universal mode.
6070 test "$am__universal" = false || continue
6071 ;;
6072 nosideeffect)
6073 # after this tag, mechanisms are not by side-effect, so they'll
6074 # only be used when explicitly requested
6075 if test "x$enable_dependency_tracking" = xyes; then
6076 continue
6077 else
6078 break
6079 fi
6080 ;;
6081 msvisualcpp | msvcmsys)
6082 # This compiler won't grok `-c -o', but also, the minuso test has
6083 # not run yet. These depmodes are late enough in the game, and
6084 # so weak that their functioning should not be impacted.
6085 am__obj=conftest.${OBJEXT-o}
6086 am__minus_obj=
6087 ;;
6088 none) break ;;
6089 esac
6090 if depmode=$depmode \
6091 source=sub/conftest.c object=$am__obj \
6092 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6093 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6094 >/dev/null 2>conftest.err &&
6095 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6096 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6097 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6098 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6099 # icc doesn't choke on unknown options, it will just issue warnings
6100 # or remarks (even with -Werror). So we grep stderr for any message
6101 # that says an option was ignored or not supported.
6102 # When given -MP, icc 7.0 and 7.1 complain thusly:
6103 # icc: Command line warning: ignoring option '-M'; no argument required
6104 # The diagnosis changed in icc 8.0:
6105 # icc: Command line remark: option '-MP' not supported
6106 if (grep 'ignoring option' conftest.err ||
6107 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6108 am_cv_CC_dependencies_compiler_type=$depmode
6109 break
6110 fi
6111 fi
6112 done
6113
6114 cd ..
6115 rm -rf conftest.dir
6116else
6117 am_cv_CC_dependencies_compiler_type=none
6118fi
6119
6120fi
cristy8b350f62009-11-15 23:12:43 +00006121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00006122$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6123CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6124
6125 if
6126 test "x$enable_dependency_tracking" != xno \
6127 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6128 am__fastdepCC_TRUE=
6129 am__fastdepCC_FALSE='#'
6130else
6131 am__fastdepCC_TRUE='#'
6132 am__fastdepCC_FALSE=
6133fi
6134
6135
cristy95646052009-11-28 23:05:30 +00006136ac_ext=cpp
6137ac_cpp='$CXXCPP $CPPFLAGS'
6138ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6141if test -z "$CXX"; then
6142 if test -n "$CCC"; then
6143 CXX=$CCC
6144 else
6145 if test -n "$ac_tool_prefix"; then
6146 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6147 do
6148 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6149set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151$as_echo_n "checking for $ac_word... " >&6; }
6152if test "${ac_cv_prog_CXX+set}" = set; then :
6153 $as_echo_n "(cached) " >&6
6154else
6155 if test -n "$CXX"; then
6156 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6157else
6158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159for as_dir in $PATH
6160do
6161 IFS=$as_save_IFS
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6165 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167 break 2
6168 fi
6169done
6170 done
6171IFS=$as_save_IFS
6172
6173fi
6174fi
6175CXX=$ac_cv_prog_CXX
6176if test -n "$CXX"; then
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6178$as_echo "$CXX" >&6; }
6179else
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181$as_echo "no" >&6; }
6182fi
6183
6184
6185 test -n "$CXX" && break
6186 done
6187fi
6188if test -z "$CXX"; then
6189 ac_ct_CXX=$CXX
6190 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6191do
6192 # Extract the first word of "$ac_prog", so it can be a program name with args.
6193set dummy $ac_prog; ac_word=$2
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195$as_echo_n "checking for $ac_word... " >&6; }
6196if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6197 $as_echo_n "(cached) " >&6
6198else
6199 if test -n "$ac_ct_CXX"; then
6200 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6201else
6202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203for as_dir in $PATH
6204do
6205 IFS=$as_save_IFS
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209 ac_cv_prog_ac_ct_CXX="$ac_prog"
6210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 break 2
6212 fi
6213done
6214 done
6215IFS=$as_save_IFS
6216
6217fi
6218fi
6219ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6220if test -n "$ac_ct_CXX"; then
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6222$as_echo "$ac_ct_CXX" >&6; }
6223else
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6225$as_echo "no" >&6; }
6226fi
6227
6228
6229 test -n "$ac_ct_CXX" && break
6230done
6231
6232 if test "x$ac_ct_CXX" = x; then
6233 CXX="g++"
6234 else
6235 case $cross_compiling:$ac_tool_warned in
6236yes:)
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6239ac_tool_warned=yes ;;
6240esac
6241 CXX=$ac_ct_CXX
6242 fi
6243fi
6244
6245 fi
6246fi
6247# Provide some information about the compiler.
6248$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6249set X $ac_compile
6250ac_compiler=$2
6251for ac_option in --version -v -V -qversion; do
6252 { { ac_try="$ac_compiler $ac_option >&5"
6253case "(($ac_try" in
6254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255 *) ac_try_echo=$ac_try;;
6256esac
6257eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6258$as_echo "$ac_try_echo"; } >&5
6259 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6260 ac_status=$?
6261 if test -s conftest.err; then
6262 sed '10a\
6263... rest of stderr output deleted ...
6264 10q' conftest.err >conftest.er1
6265 cat conftest.er1 >&5
6266 fi
6267 rm -f conftest.er1 conftest.err
6268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6269 test $ac_status = 0; }
6270done
6271
6272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6273$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6274if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6275 $as_echo_n "(cached) " >&6
6276else
6277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278/* end confdefs.h. */
6279
6280int
6281main ()
6282{
6283#ifndef __GNUC__
6284 choke me
6285#endif
6286
6287 ;
6288 return 0;
6289}
6290_ACEOF
6291if ac_fn_cxx_try_compile "$LINENO"; then :
6292 ac_compiler_gnu=yes
6293else
6294 ac_compiler_gnu=no
6295fi
6296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6297ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6298
6299fi
6300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6301$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6302if test $ac_compiler_gnu = yes; then
6303 GXX=yes
6304else
6305 GXX=
6306fi
6307ac_test_CXXFLAGS=${CXXFLAGS+set}
6308ac_save_CXXFLAGS=$CXXFLAGS
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6310$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6311if test "${ac_cv_prog_cxx_g+set}" = set; then :
6312 $as_echo_n "(cached) " >&6
6313else
6314 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6315 ac_cxx_werror_flag=yes
6316 ac_cv_prog_cxx_g=no
6317 CXXFLAGS="-g"
6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319/* end confdefs.h. */
6320
6321int
6322main ()
6323{
6324
6325 ;
6326 return 0;
6327}
6328_ACEOF
6329if ac_fn_cxx_try_compile "$LINENO"; then :
6330 ac_cv_prog_cxx_g=yes
6331else
6332 CXXFLAGS=""
6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334/* end confdefs.h. */
6335
6336int
6337main ()
6338{
6339
6340 ;
6341 return 0;
6342}
6343_ACEOF
6344if ac_fn_cxx_try_compile "$LINENO"; then :
6345
6346else
6347 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6348 CXXFLAGS="-g"
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350/* end confdefs.h. */
6351
6352int
6353main ()
6354{
6355
6356 ;
6357 return 0;
6358}
6359_ACEOF
6360if ac_fn_cxx_try_compile "$LINENO"; then :
6361 ac_cv_prog_cxx_g=yes
6362fi
6363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364fi
6365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366fi
6367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6369fi
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6371$as_echo "$ac_cv_prog_cxx_g" >&6; }
6372if test "$ac_test_CXXFLAGS" = set; then
6373 CXXFLAGS=$ac_save_CXXFLAGS
6374elif test $ac_cv_prog_cxx_g = yes; then
6375 if test "$GXX" = yes; then
6376 CXXFLAGS="-g -O2"
6377 else
6378 CXXFLAGS="-g"
6379 fi
6380else
6381 if test "$GXX" = yes; then
6382 CXXFLAGS="-O2"
6383 else
6384 CXXFLAGS=
6385 fi
6386fi
6387ac_ext=c
6388ac_cpp='$CPP $CPPFLAGS'
6389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6391ac_compiler_gnu=$ac_cv_c_compiler_gnu
6392
6393depcc="$CXX" am_compiler_list=
6394
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6396$as_echo_n "checking dependency style of $depcc... " >&6; }
6397if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6398 $as_echo_n "(cached) " >&6
6399else
6400 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6401 # We make a subdir and do the tests there. Otherwise we can end up
6402 # making bogus files that we don't know about and never remove. For
6403 # instance it was reported that on HP-UX the gcc test will end up
6404 # making a dummy file named `D' -- because `-MD' means `put the output
6405 # in D'.
6406 mkdir conftest.dir
6407 # Copy depcomp to subdir because otherwise we won't find it if we're
6408 # using a relative directory.
6409 cp "$am_depcomp" conftest.dir
6410 cd conftest.dir
6411 # We will build objects and dependencies in a subdirectory because
6412 # it helps to detect inapplicable dependency modes. For instance
6413 # both Tru64's cc and ICC support -MD to output dependencies as a
6414 # side effect of compilation, but ICC will put the dependencies in
6415 # the current directory while Tru64 will put them in the object
6416 # directory.
6417 mkdir sub
6418
6419 am_cv_CXX_dependencies_compiler_type=none
6420 if test "$am_compiler_list" = ""; then
6421 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6422 fi
6423 am__universal=false
6424 case " $depcc " in #(
6425 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6426 esac
6427
6428 for depmode in $am_compiler_list; do
6429 # Setup a source with many dependencies, because some compilers
6430 # like to wrap large dependency lists on column 80 (with \), and
6431 # we should not choose a depcomp mode which is confused by this.
6432 #
6433 # We need to recreate these files for each test, as the compiler may
6434 # overwrite some of them when testing with obscure command lines.
6435 # This happens at least with the AIX C compiler.
6436 : > sub/conftest.c
6437 for i in 1 2 3 4 5 6; do
6438 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6439 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6440 # Solaris 8's {/usr,}/bin/sh.
6441 touch sub/conftst$i.h
6442 done
6443 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6444
6445 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6446 # mode. It turns out that the SunPro C++ compiler does not properly
6447 # handle `-M -o', and we need to detect this. Also, some Intel
6448 # versions had trouble with output in subdirs
6449 am__obj=sub/conftest.${OBJEXT-o}
6450 am__minus_obj="-o $am__obj"
6451 case $depmode in
6452 gcc)
6453 # This depmode causes a compiler race in universal mode.
6454 test "$am__universal" = false || continue
6455 ;;
6456 nosideeffect)
6457 # after this tag, mechanisms are not by side-effect, so they'll
6458 # only be used when explicitly requested
6459 if test "x$enable_dependency_tracking" = xyes; then
6460 continue
6461 else
6462 break
6463 fi
6464 ;;
6465 msvisualcpp | msvcmsys)
6466 # This compiler won't grok `-c -o', but also, the minuso test has
6467 # not run yet. These depmodes are late enough in the game, and
6468 # so weak that their functioning should not be impacted.
6469 am__obj=conftest.${OBJEXT-o}
6470 am__minus_obj=
6471 ;;
6472 none) break ;;
6473 esac
6474 if depmode=$depmode \
6475 source=sub/conftest.c object=$am__obj \
6476 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6477 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6478 >/dev/null 2>conftest.err &&
6479 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6480 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6481 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6482 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6483 # icc doesn't choke on unknown options, it will just issue warnings
6484 # or remarks (even with -Werror). So we grep stderr for any message
6485 # that says an option was ignored or not supported.
6486 # When given -MP, icc 7.0 and 7.1 complain thusly:
6487 # icc: Command line warning: ignoring option '-M'; no argument required
6488 # The diagnosis changed in icc 8.0:
6489 # icc: Command line remark: option '-MP' not supported
6490 if (grep 'ignoring option' conftest.err ||
6491 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6492 am_cv_CXX_dependencies_compiler_type=$depmode
6493 break
6494 fi
6495 fi
6496 done
6497
6498 cd ..
6499 rm -rf conftest.dir
6500else
6501 am_cv_CXX_dependencies_compiler_type=none
6502fi
6503
6504fi
6505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6506$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6507CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6508
6509 if
6510 test "x$enable_dependency_tracking" != xno \
6511 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6512 am__fastdepCXX_TRUE=
6513 am__fastdepCXX_FALSE='#'
6514else
6515 am__fastdepCXX_TRUE='#'
6516 am__fastdepCXX_FALSE=
6517fi
6518
6519
cristy8b350f62009-11-15 23:12:43 +00006520 case $ac_cv_prog_cc_stdc in #(
6521 no) :
6522 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6523 *) :
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006525$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006526if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006527 $as_echo_n "(cached) " >&6
6528else
6529 ac_cv_prog_cc_c99=no
6530ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006532/* end confdefs.h. */
6533#include <stdarg.h>
6534#include <stdbool.h>
6535#include <stdlib.h>
6536#include <wchar.h>
6537#include <stdio.h>
6538
6539// Check varargs macros. These examples are taken from C99 6.10.3.5.
6540#define debug(...) fprintf (stderr, __VA_ARGS__)
6541#define showlist(...) puts (#__VA_ARGS__)
6542#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6543static void
6544test_varargs_macros (void)
6545{
6546 int x = 1234;
6547 int y = 5678;
6548 debug ("Flag");
6549 debug ("X = %d\n", x);
6550 showlist (The first, second, and third items.);
6551 report (x>y, "x is %d but y is %d", x, y);
6552}
6553
6554// Check long long types.
6555#define BIG64 18446744073709551615ull
6556#define BIG32 4294967295ul
6557#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6558#if !BIG_OK
6559 your preprocessor is broken;
6560#endif
6561#if BIG_OK
6562#else
6563 your preprocessor is broken;
6564#endif
6565static long long int bignum = -9223372036854775807LL;
6566static unsigned long long int ubignum = BIG64;
6567
6568struct incomplete_array
6569{
6570 int datasize;
6571 double data[];
6572};
6573
6574struct named_init {
6575 int number;
6576 const wchar_t *name;
6577 double average;
6578};
6579
6580typedef const char *ccp;
6581
6582static inline int
6583test_restrict (ccp restrict text)
6584{
6585 // See if C++-style comments work.
6586 // Iterate through items via the restricted pointer.
6587 // Also check for declarations in for loops.
6588 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6589 continue;
6590 return 0;
6591}
6592
6593// Check varargs and va_copy.
6594static void
6595test_varargs (const char *format, ...)
6596{
6597 va_list args;
6598 va_start (args, format);
6599 va_list args_copy;
6600 va_copy (args_copy, args);
6601
6602 const char *str;
6603 int number;
6604 float fnumber;
6605
6606 while (*format)
6607 {
6608 switch (*format++)
6609 {
6610 case 's': // string
6611 str = va_arg (args_copy, const char *);
6612 break;
6613 case 'd': // int
6614 number = va_arg (args_copy, int);
6615 break;
6616 case 'f': // float
6617 fnumber = va_arg (args_copy, double);
6618 break;
6619 default:
6620 break;
6621 }
6622 }
6623 va_end (args_copy);
6624 va_end (args);
6625}
6626
6627int
6628main ()
6629{
6630
6631 // Check bool.
6632 _Bool success = false;
6633
6634 // Check restrict.
6635 if (test_restrict ("String literal") == 0)
6636 success = true;
6637 char *restrict newvar = "Another string";
6638
6639 // Check varargs.
6640 test_varargs ("s, d' f .", "string", 65, 34.234);
6641 test_varargs_macros ();
6642
6643 // Check flexible array members.
6644 struct incomplete_array *ia =
6645 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6646 ia->datasize = 10;
6647 for (int i = 0; i < ia->datasize; ++i)
6648 ia->data[i] = i * 1.234;
6649
6650 // Check named initializers.
6651 struct named_init ni = {
6652 .number = 34,
6653 .name = L"Test wide string",
6654 .average = 543.34343,
6655 };
6656
6657 ni.number = 58;
6658
6659 int dynamic_array[ni.number];
6660 dynamic_array[ni.number - 1] = 543;
6661
6662 // work around unused variable warnings
6663 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6664 || dynamic_array[ni.number - 1] != 543);
6665
6666 ;
6667 return 0;
6668}
6669_ACEOF
6670for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6671do
6672 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006673 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006674 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006675fi
cristy3ed852e2009-09-05 21:47:34 +00006676rm -f core conftest.err conftest.$ac_objext
6677 test "x$ac_cv_prog_cc_c99" != "xno" && break
6678done
6679rm -f conftest.$ac_ext
6680CC=$ac_save_CC
6681
6682fi
6683# AC_CACHE_VAL
6684case "x$ac_cv_prog_cc_c99" in
6685 x)
cristy8b350f62009-11-15 23:12:43 +00006686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006687$as_echo "none needed" >&6; } ;;
6688 xno)
cristy8b350f62009-11-15 23:12:43 +00006689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006690$as_echo "unsupported" >&6; } ;;
6691 *)
6692 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006694$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6695esac
cristy8b350f62009-11-15 23:12:43 +00006696if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006697 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6698else
cristy8b350f62009-11-15 23:12:43 +00006699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006700$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006701if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006702 $as_echo_n "(cached) " >&6
6703else
6704 ac_cv_prog_cc_c89=no
6705ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006707/* end confdefs.h. */
6708#include <stdarg.h>
6709#include <stdio.h>
6710#include <sys/types.h>
6711#include <sys/stat.h>
6712/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6713struct buf { int x; };
6714FILE * (*rcsopen) (struct buf *, struct stat *, int);
6715static char *e (p, i)
6716 char **p;
6717 int i;
6718{
6719 return p[i];
6720}
6721static char *f (char * (*g) (char **, int), char **p, ...)
6722{
6723 char *s;
6724 va_list v;
6725 va_start (v,p);
6726 s = g (p, va_arg (v,int));
6727 va_end (v);
6728 return s;
6729}
6730
6731/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6732 function prototypes and stuff, but not '\xHH' hex character constants.
6733 These don't provoke an error unfortunately, instead are silently treated
6734 as 'x'. The following induces an error, until -std is added to get
6735 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6736 array size at least. It's necessary to write '\x00'==0 to get something
6737 that's true only with -std. */
6738int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6739
6740/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6741 inside strings and character constants. */
6742#define FOO(x) 'x'
6743int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6744
6745int test (int i, double x);
6746struct s1 {int (*f) (int a);};
6747struct s2 {int (*f) (double a);};
6748int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6749int argc;
6750char **argv;
6751int
6752main ()
6753{
6754return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6755 ;
6756 return 0;
6757}
6758_ACEOF
6759for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6760 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6761do
6762 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006763 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006764 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006765fi
cristy3ed852e2009-09-05 21:47:34 +00006766rm -f core conftest.err conftest.$ac_objext
6767 test "x$ac_cv_prog_cc_c89" != "xno" && break
6768done
6769rm -f conftest.$ac_ext
6770CC=$ac_save_CC
6771
6772fi
6773# AC_CACHE_VAL
6774case "x$ac_cv_prog_cc_c89" in
6775 x)
cristy8b350f62009-11-15 23:12:43 +00006776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006777$as_echo "none needed" >&6; } ;;
6778 xno)
cristy8b350f62009-11-15 23:12:43 +00006779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006780$as_echo "unsupported" >&6; } ;;
6781 *)
6782 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006784$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6785esac
cristy8b350f62009-11-15 23:12:43 +00006786if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006787 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6788else
6789 ac_cv_prog_cc_stdc=no
6790fi
6791
cristy3ed852e2009-09-05 21:47:34 +00006792fi
cristy3ed852e2009-09-05 21:47:34 +00006793 ;;
6794esac
cristy8b350f62009-11-15 23:12:43 +00006795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006796$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006797 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006798 $as_echo_n "(cached) " >&6
6799fi
6800
cristy8b350f62009-11-15 23:12:43 +00006801 case $ac_cv_prog_cc_stdc in #(
6802 no) :
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6804$as_echo "unsupported" >&6; } ;; #(
6805 '') :
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6807$as_echo "none needed" >&6; } ;; #(
6808 *) :
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006810$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6811esac
6812
cristy3ed852e2009-09-05 21:47:34 +00006813ac_ext=c
6814ac_cpp='$CPP $CPPFLAGS'
6815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6817ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006819$as_echo_n "checking how to run the C preprocessor... " >&6; }
6820# On Suns, sometimes $CPP names a directory.
6821if test -n "$CPP" && test -d "$CPP"; then
6822 CPP=
6823fi
6824if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00006825 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006826 $as_echo_n "(cached) " >&6
6827else
6828 # Double quotes because CPP needs to be expanded
6829 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6830 do
6831 ac_preproc_ok=false
6832for ac_c_preproc_warn_flag in '' yes
6833do
6834 # Use a header file that comes with gcc, so configuring glibc
6835 # with a fresh cross-compiler works.
6836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6837 # <limits.h> exists even on freestanding compilers.
6838 # On the NeXT, cc -E runs the code through the compiler's parser,
6839 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006841/* end confdefs.h. */
6842#ifdef __STDC__
6843# include <limits.h>
6844#else
6845# include <assert.h>
6846#endif
6847 Syntax error
6848_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006849if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006850
cristy8b350f62009-11-15 23:12:43 +00006851else
cristy3ed852e2009-09-05 21:47:34 +00006852 # Broken: fails on valid input.
6853continue
6854fi
cristy3ed852e2009-09-05 21:47:34 +00006855rm -f conftest.err conftest.$ac_ext
6856
6857 # OK, works on sane cases. Now check whether nonexistent headers
6858 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006860/* end confdefs.h. */
6861#include <ac_nonexistent.h>
6862_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006863if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006864 # Broken: success on invalid input.
6865continue
6866else
cristy3ed852e2009-09-05 21:47:34 +00006867 # Passes both tests.
6868ac_preproc_ok=:
6869break
6870fi
cristy3ed852e2009-09-05 21:47:34 +00006871rm -f conftest.err conftest.$ac_ext
6872
6873done
6874# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6875rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006876if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00006877 break
6878fi
6879
6880 done
6881 ac_cv_prog_CPP=$CPP
6882
6883fi
6884 CPP=$ac_cv_prog_CPP
6885else
6886 ac_cv_prog_CPP=$CPP
6887fi
cristy8b350f62009-11-15 23:12:43 +00006888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006889$as_echo "$CPP" >&6; }
6890ac_preproc_ok=false
6891for ac_c_preproc_warn_flag in '' yes
6892do
6893 # Use a header file that comes with gcc, so configuring glibc
6894 # with a fresh cross-compiler works.
6895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6896 # <limits.h> exists even on freestanding compilers.
6897 # On the NeXT, cc -E runs the code through the compiler's parser,
6898 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006900/* end confdefs.h. */
6901#ifdef __STDC__
6902# include <limits.h>
6903#else
6904# include <assert.h>
6905#endif
6906 Syntax error
6907_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006908if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006909
cristy8b350f62009-11-15 23:12:43 +00006910else
cristy3ed852e2009-09-05 21:47:34 +00006911 # Broken: fails on valid input.
6912continue
6913fi
cristy3ed852e2009-09-05 21:47:34 +00006914rm -f conftest.err conftest.$ac_ext
6915
6916 # OK, works on sane cases. Now check whether nonexistent headers
6917 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006919/* end confdefs.h. */
6920#include <ac_nonexistent.h>
6921_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006922if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006923 # Broken: success on invalid input.
6924continue
6925else
cristy3ed852e2009-09-05 21:47:34 +00006926 # Passes both tests.
6927ac_preproc_ok=:
6928break
6929fi
cristy3ed852e2009-09-05 21:47:34 +00006930rm -f conftest.err conftest.$ac_ext
6931
6932done
6933# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6934rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006935if $ac_preproc_ok; then :
6936
cristy3ed852e2009-09-05 21:47:34 +00006937else
cristy8b350f62009-11-15 23:12:43 +00006938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00006939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00006940as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6941See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00006942fi
6943
6944ac_ext=c
6945ac_cpp='$CPP $CPPFLAGS'
6946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6948ac_compiler_gnu=$ac_cv_c_compiler_gnu
6949
cristy8b350f62009-11-15 23:12:43 +00006950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00006951$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006952if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006953 $as_echo_n "(cached) " >&6
6954else
6955 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6956 for ac_i in 1 2 3 4 5 6 7; do
6957 ac_script="$ac_script$as_nl$ac_script"
6958 done
6959 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00006960 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00006961 if test -z "$SED"; then
6962 ac_path_SED_found=false
6963 # Loop through the user's path and test for each of PROGNAME-LIST
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965for as_dir in $PATH
6966do
6967 IFS=$as_save_IFS
6968 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006969 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00006970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6972 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6973# Check for GNU ac_path_SED and select it if it is found.
6974 # Check for GNU $ac_path_SED
6975case `"$ac_path_SED" --version 2>&1` in
6976*GNU*)
6977 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6978*)
6979 ac_count=0
6980 $as_echo_n 0123456789 >"conftest.in"
6981 while :
6982 do
6983 cat "conftest.in" "conftest.in" >"conftest.tmp"
6984 mv "conftest.tmp" "conftest.in"
6985 cp "conftest.in" "conftest.nl"
6986 $as_echo '' >> "conftest.nl"
6987 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6988 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00006989 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00006990 if test $ac_count -gt ${ac_path_SED_max-0}; then
6991 # Best one so far, save it but keep looking for a better one
6992 ac_cv_path_SED="$ac_path_SED"
6993 ac_path_SED_max=$ac_count
6994 fi
6995 # 10*(2^10) chars as input seems more than enough
6996 test $ac_count -gt 10 && break
6997 done
6998 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6999esac
7000
7001 $ac_path_SED_found && break 3
7002 done
7003 done
cristy8b350f62009-11-15 23:12:43 +00007004 done
cristy3ed852e2009-09-05 21:47:34 +00007005IFS=$as_save_IFS
7006 if test -z "$ac_cv_path_SED"; then
cristyfd9dcd42010-08-08 18:07:02 +00007007 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007008 fi
7009else
7010 ac_cv_path_SED=$SED
7011fi
7012
7013fi
cristy8b350f62009-11-15 23:12:43 +00007014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00007015$as_echo "$ac_cv_path_SED" >&6; }
7016 SED="$ac_cv_path_SED"
7017 rm -f conftest.sed
7018
7019test -z "$SED" && SED=sed
7020Xsed="$SED -e 1s/^X//"
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
cristy8b350f62009-11-15 23:12:43 +00007032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00007033$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007034if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007035 $as_echo_n "(cached) " >&6
7036else
7037 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7038 then ac_cv_path_FGREP="$GREP -F"
7039 else
7040 if test -z "$FGREP"; then
7041 ac_path_FGREP_found=false
7042 # Loop through the user's path and test for each of PROGNAME-LIST
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7045do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007048 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00007049 for ac_exec_ext in '' $ac_executable_extensions; do
7050 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7051 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7052# Check for GNU ac_path_FGREP and select it if it is found.
7053 # Check for GNU $ac_path_FGREP
7054case `"$ac_path_FGREP" --version 2>&1` in
7055*GNU*)
7056 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7057*)
7058 ac_count=0
7059 $as_echo_n 0123456789 >"conftest.in"
7060 while :
7061 do
7062 cat "conftest.in" "conftest.in" >"conftest.tmp"
7063 mv "conftest.tmp" "conftest.in"
7064 cp "conftest.in" "conftest.nl"
7065 $as_echo 'FGREP' >> "conftest.nl"
7066 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7067 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007068 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007069 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7070 # Best one so far, save it but keep looking for a better one
7071 ac_cv_path_FGREP="$ac_path_FGREP"
7072 ac_path_FGREP_max=$ac_count
7073 fi
7074 # 10*(2^10) chars as input seems more than enough
7075 test $ac_count -gt 10 && break
7076 done
7077 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7078esac
7079
7080 $ac_path_FGREP_found && break 3
7081 done
7082 done
cristy8b350f62009-11-15 23:12:43 +00007083 done
cristy3ed852e2009-09-05 21:47:34 +00007084IFS=$as_save_IFS
7085 if test -z "$ac_cv_path_FGREP"; then
cristyfd9dcd42010-08-08 18:07:02 +00007086 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007087 fi
7088else
7089 ac_cv_path_FGREP=$FGREP
7090fi
7091
7092 fi
7093fi
cristy8b350f62009-11-15 23:12:43 +00007094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007095$as_echo "$ac_cv_path_FGREP" >&6; }
7096 FGREP="$ac_cv_path_FGREP"
7097
7098
7099test -z "$GREP" && GREP=grep
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
cristyfd9dcd42010-08-08 18:07:02 +00007117ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7118ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7119ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7120
7121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7122$as_echo_n "checking how to print strings... " >&6; }
7123# Test print first, because it will be a builtin if present.
7124if test "X`print -r -- -n 2>/dev/null`" = X-n && \
7125 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7126 ECHO='print -r --'
7127elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7128 ECHO='printf %s\n'
7129else
7130 # Use this function as a fallback that always works.
7131 func_fallback_echo ()
7132 {
7133 eval 'cat <<_LTECHO_EOF
7134$1
7135_LTECHO_EOF'
7136 }
7137 ECHO='func_fallback_echo'
7138fi
7139
7140# func_echo_all arg...
7141# Invoke $ECHO with all args, space-separated.
7142func_echo_all ()
7143{
7144 $ECHO ""
7145}
7146
7147case "$ECHO" in
7148 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7149$as_echo "printf" >&6; } ;;
7150 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7151$as_echo "print -r" >&6; } ;;
7152 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7153$as_echo "cat" >&6; } ;;
7154esac
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
cristy3ed852e2009-09-05 21:47:34 +00007169
7170
7171# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00007172if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007173 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7174else
7175 with_gnu_ld=no
7176fi
7177
7178ac_prog=ld
7179if test "$GCC" = yes; then
7180 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00007181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007182$as_echo_n "checking for ld used by $CC... " >&6; }
7183 case $host in
7184 *-*-mingw*)
7185 # gcc leaves a trailing carriage return which upsets mingw
7186 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7187 *)
7188 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7189 esac
7190 case $ac_prog in
7191 # Accept absolute paths.
7192 [\\/]* | ?:[\\/]*)
7193 re_direlt='/[^/][^/]*/\.\./'
7194 # Canonicalize the pathname of ld
7195 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7196 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7197 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7198 done
7199 test -z "$LD" && LD="$ac_prog"
7200 ;;
7201 "")
7202 # If it fails, then pretend we aren't using GCC.
7203 ac_prog=ld
7204 ;;
7205 *)
7206 # If it is relative, then search for the first ld in PATH.
7207 with_gnu_ld=unknown
7208 ;;
7209 esac
7210elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007212$as_echo_n "checking for GNU ld... " >&6; }
7213else
cristy8b350f62009-11-15 23:12:43 +00007214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007215$as_echo_n "checking for non-GNU ld... " >&6; }
7216fi
cristy8b350f62009-11-15 23:12:43 +00007217if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007218 $as_echo_n "(cached) " >&6
7219else
7220 if test -z "$LD"; then
7221 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7222 for ac_dir in $PATH; do
7223 IFS="$lt_save_ifs"
7224 test -z "$ac_dir" && ac_dir=.
7225 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7226 lt_cv_path_LD="$ac_dir/$ac_prog"
7227 # Check to see if the program is GNU ld. I'd rather use --version,
7228 # but apparently some variants of GNU ld only accept -v.
7229 # Break only if it was the GNU/non-GNU ld that we prefer.
7230 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7231 *GNU* | *'with BFD'*)
7232 test "$with_gnu_ld" != no && break
7233 ;;
7234 *)
7235 test "$with_gnu_ld" != yes && break
7236 ;;
7237 esac
7238 fi
7239 done
7240 IFS="$lt_save_ifs"
7241else
7242 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7243fi
7244fi
7245
7246LD="$lt_cv_path_LD"
7247if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00007248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00007249$as_echo "$LD" >&6; }
7250else
cristy8b350f62009-11-15 23:12:43 +00007251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007252$as_echo "no" >&6; }
7253fi
cristyfd9dcd42010-08-08 18:07:02 +00007254test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy8b350f62009-11-15 23:12:43 +00007255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007256$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007257if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007258 $as_echo_n "(cached) " >&6
7259else
7260 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7261case `$LD -v 2>&1 </dev/null` in
7262*GNU* | *'with BFD'*)
7263 lt_cv_prog_gnu_ld=yes
7264 ;;
7265*)
7266 lt_cv_prog_gnu_ld=no
7267 ;;
7268esac
7269fi
cristy8b350f62009-11-15 23:12:43 +00007270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007271$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7272with_gnu_ld=$lt_cv_prog_gnu_ld
7273
7274
7275
7276
7277
7278
7279
7280
7281
cristy3ed852e2009-09-05 21:47:34 +00007282
cristy837d6dc2010-02-27 01:16:57 +00007283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7284$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7285if test "${ac_cv_prog_cc_c99+set}" = set; then :
7286 $as_echo_n "(cached) " >&6
7287else
7288 ac_cv_prog_cc_c99=no
7289ac_save_CC=$CC
7290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291/* end confdefs.h. */
7292#include <stdarg.h>
7293#include <stdbool.h>
7294#include <stdlib.h>
7295#include <wchar.h>
7296#include <stdio.h>
7297
7298// Check varargs macros. These examples are taken from C99 6.10.3.5.
7299#define debug(...) fprintf (stderr, __VA_ARGS__)
7300#define showlist(...) puts (#__VA_ARGS__)
7301#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7302static void
7303test_varargs_macros (void)
7304{
7305 int x = 1234;
7306 int y = 5678;
7307 debug ("Flag");
7308 debug ("X = %d\n", x);
7309 showlist (The first, second, and third items.);
7310 report (x>y, "x is %d but y is %d", x, y);
7311}
7312
7313// Check long long types.
7314#define BIG64 18446744073709551615ull
7315#define BIG32 4294967295ul
7316#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7317#if !BIG_OK
7318 your preprocessor is broken;
7319#endif
7320#if BIG_OK
7321#else
7322 your preprocessor is broken;
7323#endif
7324static long long int bignum = -9223372036854775807LL;
7325static unsigned long long int ubignum = BIG64;
7326
7327struct incomplete_array
7328{
7329 int datasize;
7330 double data[];
7331};
7332
7333struct named_init {
7334 int number;
7335 const wchar_t *name;
7336 double average;
7337};
7338
7339typedef const char *ccp;
7340
7341static inline int
7342test_restrict (ccp restrict text)
7343{
7344 // See if C++-style comments work.
7345 // Iterate through items via the restricted pointer.
7346 // Also check for declarations in for loops.
7347 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7348 continue;
7349 return 0;
7350}
7351
7352// Check varargs and va_copy.
7353static void
7354test_varargs (const char *format, ...)
7355{
7356 va_list args;
7357 va_start (args, format);
7358 va_list args_copy;
7359 va_copy (args_copy, args);
7360
7361 const char *str;
7362 int number;
7363 float fnumber;
7364
7365 while (*format)
7366 {
7367 switch (*format++)
7368 {
7369 case 's': // string
7370 str = va_arg (args_copy, const char *);
7371 break;
7372 case 'd': // int
7373 number = va_arg (args_copy, int);
7374 break;
7375 case 'f': // float
7376 fnumber = va_arg (args_copy, double);
7377 break;
7378 default:
7379 break;
7380 }
7381 }
7382 va_end (args_copy);
7383 va_end (args);
7384}
7385
7386int
7387main ()
7388{
7389
7390 // Check bool.
7391 _Bool success = false;
7392
7393 // Check restrict.
7394 if (test_restrict ("String literal") == 0)
7395 success = true;
7396 char *restrict newvar = "Another string";
7397
7398 // Check varargs.
7399 test_varargs ("s, d' f .", "string", 65, 34.234);
7400 test_varargs_macros ();
7401
7402 // Check flexible array members.
7403 struct incomplete_array *ia =
7404 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7405 ia->datasize = 10;
7406 for (int i = 0; i < ia->datasize; ++i)
7407 ia->data[i] = i * 1.234;
7408
7409 // Check named initializers.
7410 struct named_init ni = {
7411 .number = 34,
7412 .name = L"Test wide string",
7413 .average = 543.34343,
7414 };
7415
7416 ni.number = 58;
7417
7418 int dynamic_array[ni.number];
7419 dynamic_array[ni.number - 1] = 543;
7420
7421 // work around unused variable warnings
7422 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7423 || dynamic_array[ni.number - 1] != 543);
7424
7425 ;
7426 return 0;
7427}
7428_ACEOF
7429for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7430do
7431 CC="$ac_save_CC $ac_arg"
7432 if ac_fn_c_try_compile "$LINENO"; then :
7433 ac_cv_prog_cc_c99=$ac_arg
7434fi
7435rm -f core conftest.err conftest.$ac_objext
7436 test "x$ac_cv_prog_cc_c99" != "xno" && break
7437done
7438rm -f conftest.$ac_ext
7439CC=$ac_save_CC
7440
7441fi
7442# AC_CACHE_VAL
7443case "x$ac_cv_prog_cc_c99" in
7444 x)
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7446$as_echo "none needed" >&6; } ;;
7447 xno)
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7449$as_echo "unsupported" >&6; } ;;
7450 *)
7451 CC="$CC $ac_cv_prog_cc_c99"
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7453$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7454esac
7455if test "x$ac_cv_prog_cc_c99" != xno; then :
7456
7457fi
7458
7459
cristy3ed852e2009-09-05 21:47:34 +00007460if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00007461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007462$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7463else
cristy8b350f62009-11-15 23:12:43 +00007464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007465$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7466fi
7467set dummy $CC; ac_cc=`$as_echo "$2" |
7468 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyfd9dcd42010-08-08 18:07:02 +00007469if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007470 $as_echo_n "(cached) " >&6
7471else
cristy8b350f62009-11-15 23:12:43 +00007472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007473/* end confdefs.h. */
7474
7475int
7476main ()
7477{
7478
7479 ;
7480 return 0;
7481}
7482_ACEOF
7483# Make sure it works both with $CC and with simple cc.
7484# We do the test twice because some compilers refuse to overwrite an
7485# existing .o file with -o, though they will create one.
7486ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7487rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007488if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7490 *) ac_try_echo=$ac_try;;
7491esac
cristy8b350f62009-11-15 23:12:43 +00007492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7493$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007494 (eval "$ac_try") 2>&5
7495 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7497 test $ac_status = 0; } &&
7498 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7500 *) ac_try_echo=$ac_try;;
7501esac
cristy8b350f62009-11-15 23:12:43 +00007502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7503$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007504 (eval "$ac_try") 2>&5
7505 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7507 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007508then
7509 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7510 if test "x$CC" != xcc; then
7511 # Test first that cc exists at all.
7512 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00007513 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7515 *) ac_try_echo=$ac_try;;
7516esac
cristy8b350f62009-11-15 23:12:43 +00007517eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7518$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007519 (eval "$ac_try") 2>&5
7520 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7522 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00007523 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7524 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007525 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7527 *) ac_try_echo=$ac_try;;
7528esac
cristy8b350f62009-11-15 23:12:43 +00007529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7530$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007531 (eval "$ac_try") 2>&5
7532 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7534 test $ac_status = 0; } &&
7535 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7538esac
cristy8b350f62009-11-15 23:12:43 +00007539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7540$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007541 (eval "$ac_try") 2>&5
7542 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7544 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007545 then
7546 # cc works too.
7547 :
7548 else
7549 # cc exists but doesn't like -o.
7550 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7551 fi
7552 fi
7553 fi
7554else
7555 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7556fi
7557rm -f core conftest*
7558
7559fi
7560if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00007561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007562$as_echo "yes" >&6; }
7563else
cristy8b350f62009-11-15 23:12:43 +00007564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007565$as_echo "no" >&6; }
7566
cristy8b350f62009-11-15 23:12:43 +00007567$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007568
7569fi
7570
7571# FIXME: we rely on the cache variable name because
7572# there is no other way.
7573set dummy $CC
7574am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7575eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7576if test "$am_t" != yes; then
7577 # Losing compiler, so override with the script.
7578 # FIXME: It is wrong to rewrite CC.
7579 # But if we don't then we get into trouble of one sort or another.
7580 # A longer-term fix would be to have automake use am__CC in this case,
7581 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7582 CC="$am_aux_dir/compile $CC"
7583fi
7584
7585
cristy92703d82010-04-26 00:18:18 +00007586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7587$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7588if test "${ac_cv_cflags_warn_all+set}" = set; then :
7589 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00007590else
cristy92703d82010-04-26 00:18:18 +00007591 ac_cv_cflags_warn_all="no, unknown"
7592
7593 ac_ext=c
7594ac_cpp='$CPP $CPPFLAGS'
7595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7597ac_compiler_gnu=$ac_cv_c_compiler_gnu
7598
7599 ac_save_CFLAGS="$CFLAGS"
7600for 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" #
7601do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603/* end confdefs.h. */
7604
7605int
7606main ()
7607{
7608return 0;
7609 ;
7610 return 0;
7611}
7612_ACEOF
7613if ac_fn_c_try_compile "$LINENO"; then :
7614 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
cristy3ed852e2009-09-05 21:47:34 +00007615fi
cristy92703d82010-04-26 00:18:18 +00007616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617done
7618 CFLAGS="$ac_save_CFLAGS"
7619 ac_ext=c
7620ac_cpp='$CPP $CPPFLAGS'
7621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7623ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00007624
7625
cristy92703d82010-04-26 00:18:18 +00007626fi
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7628$as_echo "$ac_cv_cflags_warn_all" >&6; }
7629case ".$ac_cv_cflags_warn_all" in
7630 .ok|.ok,*) ;;
7631 .|.no|.no,*)
7632 ;;
7633 *)
7634 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7635 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7636 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7637 ac_status=$?
7638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7639 test $ac_status = 0; }
7640 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7641 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7642 ac_status=$?
7643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7644 test $ac_status = 0; }
7645 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7646 fi
7647 ;;
7648esac
cristy3ed852e2009-09-05 21:47:34 +00007649
cristya0b81c32010-01-22 02:54:33 +00007650
7651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7652$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7653set x ${MAKE-make}
7654ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyfd9dcd42010-08-08 18:07:02 +00007655if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
cristya0b81c32010-01-22 02:54:33 +00007656 $as_echo_n "(cached) " >&6
7657else
7658 cat >conftest.make <<\_ACEOF
7659SHELL = /bin/sh
7660all:
7661 @echo '@@@%%%=$(MAKE)=@@@%%%'
7662_ACEOF
cristyfd9dcd42010-08-08 18:07:02 +00007663# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007664case `${MAKE-make} -f conftest.make 2>/dev/null` in
7665 *@@@%%%=?*=@@@%%%*)
7666 eval ac_cv_prog_make_${ac_make}_set=yes;;
7667 *)
7668 eval ac_cv_prog_make_${ac_make}_set=no;;
7669esac
7670rm -f conftest.make
7671fi
7672if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7674$as_echo "yes" >&6; }
7675 SET_MAKE=
7676else
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678$as_echo "no" >&6; }
7679 SET_MAKE="MAKE=${MAKE-make}"
7680fi
7681
cristy8b350f62009-11-15 23:12:43 +00007682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007683$as_echo_n "checking whether ln -s works... " >&6; }
7684LN_S=$as_ln_s
7685if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007687$as_echo "yes" >&6; }
7688else
cristy8b350f62009-11-15 23:12:43 +00007689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007690$as_echo "no, using $LN_S" >&6; }
7691fi
7692
cristy8b350f62009-11-15 23:12:43 +00007693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00007694$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7695
7696# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00007697if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007698 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007700$as_echo "yes" >&6; }
7701
cristy8b350f62009-11-15 23:12:43 +00007702$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007703
7704 LIBS="$LIBS -ldmalloc"
7705 LDFLAGS="$LDFLAGS -g"
7706else
cristy8b350f62009-11-15 23:12:43 +00007707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007708$as_echo "no" >&6; }
7709fi
7710else
cristy8b350f62009-11-15 23:12:43 +00007711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007712$as_echo "no" >&6; }
7713fi
7714
7715
7716
cristy0d3a6382010-04-26 00:45:55 +00007717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7718$as_echo_n "checking for __attribute__... " >&6; }
7719if test "${ax_cv___attribute__+set}" = set; then :
7720 $as_echo_n "(cached) " >&6
7721else
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723/* end confdefs.h. */
7724#include <stdlib.h>
7725 static void foo(void) __attribute__ ((unused));
7726 static void
7727 foo(void) {
7728 exit(1);
7729 }
7730
7731int
7732main ()
7733{
7734
7735 ;
7736 return 0;
7737}
7738_ACEOF
7739if ac_fn_c_try_compile "$LINENO"; then :
7740 ax_cv___attribute__=yes
7741else
7742 ax_cv___attribute__=no
7743
7744fi
7745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7746
7747fi
7748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7749$as_echo "$ax_cv___attribute__" >&6; }
7750 if test "$ax_cv___attribute__" = "yes"; then
7751
7752$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7753
7754 fi
7755
7756
cristy3ed852e2009-09-05 21:47:34 +00007757
7758if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7759 if test -n "$ac_tool_prefix"; then
7760 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7761set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007763$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007764if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007765 $as_echo_n "(cached) " >&6
7766else
7767 case $PKG_CONFIG in
7768 [\\/]* | ?:[\\/]*)
7769 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7770 ;;
7771 *)
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773for as_dir in $PATH
7774do
7775 IFS=$as_save_IFS
7776 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007777 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7779 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007781 break 2
7782 fi
7783done
cristy8b350f62009-11-15 23:12:43 +00007784 done
cristy3ed852e2009-09-05 21:47:34 +00007785IFS=$as_save_IFS
7786
7787 ;;
7788esac
7789fi
7790PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7791if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007793$as_echo "$PKG_CONFIG" >&6; }
7794else
cristy8b350f62009-11-15 23:12:43 +00007795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007796$as_echo "no" >&6; }
7797fi
7798
7799
7800fi
7801if test -z "$ac_cv_path_PKG_CONFIG"; then
7802 ac_pt_PKG_CONFIG=$PKG_CONFIG
7803 # Extract the first word of "pkg-config", so it can be a program name with args.
7804set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007806$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007807if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007808 $as_echo_n "(cached) " >&6
7809else
7810 case $ac_pt_PKG_CONFIG in
7811 [\\/]* | ?:[\\/]*)
7812 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7813 ;;
7814 *)
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816for as_dir in $PATH
7817do
7818 IFS=$as_save_IFS
7819 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007820 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7822 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007824 break 2
7825 fi
7826done
cristy8b350f62009-11-15 23:12:43 +00007827 done
cristy3ed852e2009-09-05 21:47:34 +00007828IFS=$as_save_IFS
7829
7830 ;;
7831esac
7832fi
7833ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7834if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007836$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7837else
cristy8b350f62009-11-15 23:12:43 +00007838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007839$as_echo "no" >&6; }
7840fi
7841
7842 if test "x$ac_pt_PKG_CONFIG" = x; then
7843 PKG_CONFIG=""
7844 else
7845 case $cross_compiling:$ac_tool_warned in
7846yes:)
cristy8b350f62009-11-15 23:12:43 +00007847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00007848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7849ac_tool_warned=yes ;;
7850esac
7851 PKG_CONFIG=$ac_pt_PKG_CONFIG
7852 fi
7853else
7854 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7855fi
7856
7857fi
7858if test -n "$PKG_CONFIG"; then
7859 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00007860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00007861$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7862 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00007863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007864$as_echo "yes" >&6; }
7865 else
cristy8b350f62009-11-15 23:12:43 +00007866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007867$as_echo "no" >&6; }
7868 PKG_CONFIG=""
7869 fi
7870
7871fi
7872
7873#
cristy3ed852e2009-09-05 21:47:34 +00007874# Enable run-time checking.
7875#
7876# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007877if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007878 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7879else
7880 enable_bounds_checking='no'
7881fi
7882
7883
7884if test "$enable_bounds_checking" = yes; then
7885
cristy8b350f62009-11-15 23:12:43 +00007886$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007887
7888fi
7889
7890#
7891# Tests for Windows
7892#
7893
7894
cristy0d3a6382010-04-26 00:45:55 +00007895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7896$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7897if test "${ax_cv_c_compiler_ms+set}" = set; then :
7898 $as_echo_n "(cached) " >&6
7899else
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901/* end confdefs.h. */
7902
7903int
7904main ()
7905{
7906#ifndef _MSC_VER
7907 choke me
7908#endif
7909
7910 ;
7911 return 0;
7912}
7913_ACEOF
7914if ac_fn_c_try_compile "$LINENO"; then :
7915 ax_compiler_ms=yes
7916else
7917 ax_compiler_ms=no
7918fi
7919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7920ax_cv_c_compiler_ms=$ax_compiler_ms
7921
7922fi
7923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7924$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00007925
7926GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007927native_win32_build='no'
7928cygwin_build='no'
7929case "${host_os}" in
7930 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007931 cygwin_build='yes'
7932 GDI32_LIBS='-lgdi32'
7933 ;;
7934 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007935 native_win32_build='yes'
7936 GDI32_LIBS='-lgdi32'
7937 ;;
7938esac
7939if test "${GDI32_LIBS}x" != 'x'; then
7940
cristy8b350f62009-11-15 23:12:43 +00007941$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007942
7943fi
7944
7945 if test "${GDI32_LIBS}x" != 'x' ; then
7946 WINGDI32_DELEGATE_TRUE=
7947 WINGDI32_DELEGATE_FALSE='#'
7948else
7949 WINGDI32_DELEGATE_TRUE='#'
7950 WINGDI32_DELEGATE_FALSE=
7951fi
7952
7953 if test "${native_win32_build}" = 'yes' ; then
7954 WIN32_NATIVE_BUILD_TRUE=
7955 WIN32_NATIVE_BUILD_FALSE='#'
7956else
7957 WIN32_NATIVE_BUILD_TRUE='#'
7958 WIN32_NATIVE_BUILD_FALSE=
7959fi
7960
7961 if test "${cygwin_build}" = 'yes' ; then
7962 CYGWIN_BUILD_TRUE=
7963 CYGWIN_BUILD_FALSE='#'
7964else
7965 CYGWIN_BUILD_TRUE='#'
7966 CYGWIN_BUILD_FALSE=
7967fi
7968
7969 if test "x${CC}" = 'xcl.exe' ; then
7970 USING_CL_TRUE=
7971 USING_CL_FALSE='#'
7972else
7973 USING_CL_TRUE='#'
7974 USING_CL_FALSE=
7975fi
7976
7977
7978WinPathScript="${srcdirfull}/winpath.sh"
7979
7980
7981#
7982# Compiler flags tweaks
7983#
7984if test "${GCC}" != "yes"; then
7985 case "${host}" in
7986 *-*-hpux* )
7987 # aCC: HP ANSI C++ B3910B A.03.34
7988 CFLAGS="${CFLAGS} -Wp,-H30000"
7989 if test -n "${CXXFLAGS}"; then
7990 CXXFLAGS='-AA'
7991 else
7992 CXXFLAGS="${CXXFLAGS} -AA"
7993 fi
7994 ;;
7995 *-dec-osf5.* )
7996 # Compaq alphaev68-dec-osf5.1 compiler
7997 if test -n "${CXXFLAGS}"; then
7998 CXXFLAGS='-std strict_ansi -noimplicit_include'
7999 else
8000 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8001 fi
8002 esac
8003fi
8004
8005# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008007$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008008if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008009 $as_echo_n "(cached) " >&6
8010else
8011
8012im_cv_ld_lazyload='none'
8013case "${host}" in
8014 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8015 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8016 im_cv_ld_lazyload='-Wl,-zlazyload'
8017 fi
8018 ;;
8019esac
8020
8021fi
cristy8b350f62009-11-15 23:12:43 +00008022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008023$as_echo "$im_cv_ld_lazyload" >&6; }
8024if test "${im_cv_ld_lazyload}" != 'none' ; then
8025 if test -z "${LDFLAGS}" ; then
8026 LDFLAGS="${im_cv_ld_lazyload}"
8027 else
8028 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8029 fi
8030fi
8031
8032case "$host" in
8033*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008034 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008035if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008036 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8037else
8038 build_osxuniversal=no
8039fi
8040
8041
8042 if test "${build_osxuniversal}" != no ; then
8043 if test "$enable_dependency_tracking" != no ; then
cristyfd9dcd42010-08-08 18:07:02 +00008044 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008045Please re-run configure with these options:
8046 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008047 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008048 fi
8049 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8050 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8051 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8052 fi
8053 ;;
8054esac
8055
8056# Enable support for threads
8057
8058# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008059if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008060 withval=$with_threads; with_threads=$withval
8061else
8062 with_threads='yes'
8063fi
8064
8065
8066have_threads=no
8067if test "$with_threads" != 'no'; then
8068
8069
8070
8071ac_ext=c
8072ac_cpp='$CPP $CPPFLAGS'
8073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8075ac_compiler_gnu=$ac_cv_c_compiler_gnu
8076
cristy964cb7f2010-04-25 23:18:00 +00008077ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008078
8079# We used to check for pthread.h first, but this fails if pthread.h
8080# requires special compiler flags (e.g. on True64 or Sequent).
8081# It gets checked for in the link test anyway.
8082
8083# First of all, check if the user has set any of the PTHREAD_LIBS,
8084# etcetera environment variables, and if threads linking works using
8085# them:
8086if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8087 save_CFLAGS="$CFLAGS"
8088 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8089 save_LIBS="$LIBS"
8090 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00008091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
cristy3ed852e2009-09-05 21:47:34 +00008092$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008094/* end confdefs.h. */
8095
8096/* Override any GCC internal prototype to avoid an error.
8097 Use char because int might match the return type of a GCC
8098 builtin and then its argument prototype would still apply. */
8099#ifdef __cplusplus
8100extern "C"
8101#endif
8102char pthread_join ();
8103int
8104main ()
8105{
8106return pthread_join ();
8107 ;
8108 return 0;
8109}
8110_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008111if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008112 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008113fi
cristy8b350f62009-11-15 23:12:43 +00008114rm -f core conftest.err conftest.$ac_objext \
8115 conftest$ac_exeext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +00008116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8117$as_echo "$ax_pthread_ok" >&6; }
8118 if test x"$ax_pthread_ok" = xno; then
cristy3ed852e2009-09-05 21:47:34 +00008119 PTHREAD_LIBS=""
8120 PTHREAD_CFLAGS=""
8121 fi
8122 LIBS="$save_LIBS"
8123 CFLAGS="$save_CFLAGS"
8124fi
8125
8126# We must check for the threads library under a number of different
8127# names; the ordering is very important because some systems
8128# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8129# libraries is broken (non-POSIX).
8130
8131# Create a list of thread flags to try. Items starting with a "-" are
8132# C compiler flags, and other items are library names, except for "none"
8133# which indicates that we try without any flags at all, and "pthread-config"
8134# which is a program returning the flags for the Pth emulation library.
8135
cristy964cb7f2010-04-25 23:18:00 +00008136ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy3ed852e2009-09-05 21:47:34 +00008137
8138# The ordering *is* (sometimes) important. Some notes on the
8139# individual items follow:
8140
8141# pthreads: AIX (must check this before -lpthread)
8142# none: in case threads are in libc; should be tried before -Kthread and
8143# other compiler flags to prevent continual compiler warnings
8144# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8145# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8146# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8147# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8148# -pthreads: Solaris/gcc
8149# -mthreads: Mingw32/gcc, Lynx/gcc
8150# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8151# doesn't hurt to check since this sometimes defines pthreads too;
8152# also defines -D_REENTRANT)
8153# ... -mt is also the pthreads flag for HP/aCC
8154# pthread: Linux, etcetera
8155# --thread-safe: KAI C++
8156# pthread-config: use pthread-config program (for GNU Pth library)
8157
8158case "${host_cpu}-${host_os}" in
8159 *solaris*)
8160
8161 # On Solaris (at least, for some versions), libc contains stubbed
8162 # (non-functional) versions of the pthreads routines, so link-based
8163 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8164 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8165 # a function called by this macro, so we could check for that, but
8166 # who knows whether they'll stub that too in a future libc.) So,
8167 # we'll just look for -pthreads and -lpthread first:
8168
cristy964cb7f2010-04-25 23:18:00 +00008169 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
cristy3ed852e2009-09-05 21:47:34 +00008170 ;;
cristy964cb7f2010-04-25 23:18:00 +00008171
8172 *-darwin*)
cristy3b472e52010-09-23 16:11:43 +00008173 ax_pthread_flags="-pthread $ax_pthread_flags"
cristy964cb7f2010-04-25 23:18:00 +00008174 ;;
cristy3ed852e2009-09-05 21:47:34 +00008175esac
8176
cristy964cb7f2010-04-25 23:18:00 +00008177if test x"$ax_pthread_ok" = xno; then
8178for flag in $ax_pthread_flags; do
cristy3ed852e2009-09-05 21:47:34 +00008179
8180 case $flag in
8181 none)
cristy8b350f62009-11-15 23:12:43 +00008182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00008183$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8184 ;;
8185
8186 -*)
cristy8b350f62009-11-15 23:12:43 +00008187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008188$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8189 PTHREAD_CFLAGS="$flag"
8190 ;;
8191
8192 pthread-config)
8193 # Extract the first word of "pthread-config", so it can be a program name with args.
8194set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008196$as_echo_n "checking for $ac_word... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +00008197if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008198 $as_echo_n "(cached) " >&6
8199else
cristy964cb7f2010-04-25 23:18:00 +00008200 if test -n "$ax_pthread_config"; then
8201 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
cristy3ed852e2009-09-05 21:47:34 +00008202else
8203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204for as_dir in $PATH
8205do
8206 IFS=$as_save_IFS
8207 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008208 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy964cb7f2010-04-25 23:18:00 +00008210 ac_cv_prog_ax_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00008211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008212 break 2
8213 fi
8214done
cristy8b350f62009-11-15 23:12:43 +00008215 done
cristy3ed852e2009-09-05 21:47:34 +00008216IFS=$as_save_IFS
8217
cristy964cb7f2010-04-25 23:18:00 +00008218 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
cristy3ed852e2009-09-05 21:47:34 +00008219fi
8220fi
cristy964cb7f2010-04-25 23:18:00 +00008221ax_pthread_config=$ac_cv_prog_ax_pthread_config
8222if test -n "$ax_pthread_config"; then
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8224$as_echo "$ax_pthread_config" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008225else
cristy8b350f62009-11-15 23:12:43 +00008226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008227$as_echo "no" >&6; }
8228fi
8229
8230
cristy964cb7f2010-04-25 23:18:00 +00008231 if test x"$ax_pthread_config" = xno; then continue; fi
cristy3ed852e2009-09-05 21:47:34 +00008232 PTHREAD_CFLAGS="`pthread-config --cflags`"
8233 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8234 ;;
8235
8236 *)
cristy8b350f62009-11-15 23:12:43 +00008237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008238$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8239 PTHREAD_LIBS="-l$flag"
8240 ;;
8241 esac
8242
8243 save_LIBS="$LIBS"
8244 save_CFLAGS="$CFLAGS"
8245 LIBS="$PTHREAD_LIBS $LIBS"
8246 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8247
8248 # Check for various functions. We must include pthread.h,
8249 # since some functions may be macros. (On the Sequent, we
8250 # need a special flag -Kthread to make this header compile.)
8251 # We check for pthread_join because it is in -lpthread on IRIX
8252 # while pthread_create is in libc. We check for pthread_attr_init
8253 # due to DEC craziness with -lpthreads. We check for
8254 # pthread_cleanup_push because it is one of the few pthread
8255 # functions on Solaris that doesn't have a non-functional libc stub.
8256 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00008257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008258/* end confdefs.h. */
8259#include <pthread.h>
cristy964cb7f2010-04-25 23:18:00 +00008260 static void routine(void* a) {a=0;}
8261 static void* start_routine(void* a) {return a;}
cristy3ed852e2009-09-05 21:47:34 +00008262int
8263main ()
8264{
cristy964cb7f2010-04-25 23:18:00 +00008265pthread_t th; pthread_attr_t attr;
cristy3b472e52010-09-23 16:11:43 +00008266 pthread_create(&th,0,start_routine,0);
cristy964cb7f2010-04-25 23:18:00 +00008267 pthread_join(th, 0);
8268 pthread_attr_init(&attr);
8269 pthread_cleanup_push(routine, 0);
cristy964cb7f2010-04-25 23:18:00 +00008270 pthread_cleanup_pop(0);
cristy3ed852e2009-09-05 21:47:34 +00008271 ;
8272 return 0;
8273}
8274_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008275if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008276 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008277fi
cristy8b350f62009-11-15 23:12:43 +00008278rm -f core conftest.err conftest.$ac_objext \
8279 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008280
8281 LIBS="$save_LIBS"
8282 CFLAGS="$save_CFLAGS"
8283
cristy964cb7f2010-04-25 23:18:00 +00008284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8285$as_echo "$ax_pthread_ok" >&6; }
8286 if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008287 break;
8288 fi
8289
8290 PTHREAD_LIBS=""
8291 PTHREAD_CFLAGS=""
8292done
8293fi
8294
8295# Various other checks:
cristy964cb7f2010-04-25 23:18:00 +00008296if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008297 save_LIBS="$LIBS"
8298 LIBS="$PTHREAD_LIBS $LIBS"
8299 save_CFLAGS="$CFLAGS"
8300 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8301
8302 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00008303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00008304$as_echo_n "checking for joinable pthread attribute... " >&6; }
8305 attr_name=unknown
8306 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00008307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008308/* end confdefs.h. */
8309#include <pthread.h>
8310int
8311main ()
8312{
8313int attr=$attr; return attr;
8314 ;
8315 return 0;
8316}
8317_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008318if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008319 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00008320fi
cristy8b350f62009-11-15 23:12:43 +00008321rm -f core conftest.err conftest.$ac_objext \
8322 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008323 done
cristy8b350f62009-11-15 23:12:43 +00008324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00008325$as_echo "$attr_name" >&6; }
8326 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8327
8328cat >>confdefs.h <<_ACEOF
8329#define PTHREAD_CREATE_JOINABLE $attr_name
8330_ACEOF
8331
8332 fi
8333
cristy8b350f62009-11-15 23:12:43 +00008334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00008335$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8336 flag=no
8337 case "${host_cpu}-${host_os}" in
8338 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8339 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8340 esac
cristy8b350f62009-11-15 23:12:43 +00008341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00008342$as_echo "${flag}" >&6; }
8343 if test "x$flag" != xno; then
8344 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8345 fi
8346
8347 LIBS="$save_LIBS"
8348 CFLAGS="$save_CFLAGS"
8349
8350 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00008351 if test x"$GCC" != xyes; then
8352 for ac_prog in xlc_r cc_r
8353do
8354 # Extract the first word of "$ac_prog", so it can be a program name with args.
8355set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008357$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008358if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008359 $as_echo_n "(cached) " >&6
8360else
8361 if test -n "$PTHREAD_CC"; then
8362 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8363else
8364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365for as_dir in $PATH
8366do
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008369 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy736173a2009-09-20 21:18:22 +00008371 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008373 break 2
8374 fi
8375done
cristy8b350f62009-11-15 23:12:43 +00008376 done
cristy3ed852e2009-09-05 21:47:34 +00008377IFS=$as_save_IFS
8378
cristy3ed852e2009-09-05 21:47:34 +00008379fi
8380fi
8381PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8382if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008384$as_echo "$PTHREAD_CC" >&6; }
8385else
cristy8b350f62009-11-15 23:12:43 +00008386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008387$as_echo "no" >&6; }
8388fi
8389
cristy736173a2009-09-20 21:18:22 +00008390
8391 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00008392done
cristy736173a2009-09-20 21:18:22 +00008393test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00008394
cristy736173a2009-09-20 21:18:22 +00008395 else
8396 PTHREAD_CC=$CC
8397 fi
cristy3ed852e2009-09-05 21:47:34 +00008398else
cristy736173a2009-09-20 21:18:22 +00008399 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00008400fi
8401
cristy3ed852e2009-09-05 21:47:34 +00008402
8403
8404
8405
8406# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
cristy964cb7f2010-04-25 23:18:00 +00008407if test x"$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008408
cristy8b350f62009-11-15 23:12:43 +00008409$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008410
8411 :
8412else
cristy964cb7f2010-04-25 23:18:00 +00008413 ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008414
8415fi
8416ac_ext=c
8417ac_cpp='$CPP $CPPFLAGS'
8418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8420ac_compiler_gnu=$ac_cv_c_compiler_gnu
8421
8422
cristyb9de14a2010-09-23 16:02:17 +00008423 if test "$acx_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008424 have_threads=yes
8425 DEF_THREAD="$PTHREAD_CFLAGS"
8426 CFLAGS="$CFLAGS $DEF_THREAD"
8427 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8428 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008429 { $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 +00008430$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8431 CC="$PTHREAD_CC"
8432 fi
cristyb9de14a2010-09-23 16:02:17 +00008433 if test "$CXX" != "$PTHREAD_CXX"; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&5
8435$as_echo "$as_me: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&2;}
8436 CXX="$PTHREAD_CXX"
8437 fi
cristy3ed852e2009-09-05 21:47:34 +00008438 fi
8439fi
8440
8441# Enable support for OpenMP
8442if test "$have_threads" != 'yes'; then
8443 ac_cv_prog_c_openmp=unsupported
8444fi
8445
8446 OPENMP_CFLAGS=
8447 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008448if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008449 enableval=$enable_openmp;
8450fi
8451
8452 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008454$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008455if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008456 $as_echo_n "(cached) " >&6
8457else
cristy8b350f62009-11-15 23:12:43 +00008458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008460
8461#ifndef _OPENMP
8462 choke me
8463#endif
8464#include <omp.h>
8465int main () { return omp_get_num_threads (); }
8466
8467_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008468if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008469 ac_cv_prog_c_openmp='none needed'
8470else
cristy8b350f62009-11-15 23:12:43 +00008471 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008472 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8473 ac_save_CFLAGS=$CFLAGS
8474 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8476/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008477
8478#ifndef _OPENMP
8479 choke me
8480#endif
8481#include <omp.h>
8482int main () { return omp_get_num_threads (); }
8483
8484_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008485if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008486 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008487fi
cristy8b350f62009-11-15 23:12:43 +00008488rm -f core conftest.err conftest.$ac_objext \
8489 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008490 CFLAGS=$ac_save_CFLAGS
8491 if test "$ac_cv_prog_c_openmp" != unsupported; then
8492 break
8493 fi
8494 done
8495fi
cristy8b350f62009-11-15 23:12:43 +00008496rm -f core conftest.err conftest.$ac_objext \
8497 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008498fi
cristy8b350f62009-11-15 23:12:43 +00008499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008500$as_echo "$ac_cv_prog_c_openmp" >&6; }
8501 case $ac_cv_prog_c_openmp in #(
8502 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008503 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008504 *)
cristy8b350f62009-11-15 23:12:43 +00008505 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008506 esac
8507 fi
8508
8509
8510CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8511MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8512
cristy391f1ce2010-09-09 17:23:28 +00008513if test "$enable_openmp" != no; then
8514 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8515 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8516 fi
8517fi
cristy3ed852e2009-09-05 21:47:34 +00008518
cristy736173a2009-09-20 21:18:22 +00008519# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00008520
cristy43596fe2010-01-21 16:46:08 +00008521# Check whether --enable-opencl was given.
8522if test "${enable_opencl+set}" = set; then :
8523 enableval=$enable_opencl; disable_opencl=$enableval
8524else
8525 disable_opencl='yes'
8526fi
8527
8528
8529if test "$disable_opencl" = 'yes'; then
8530 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008531ac_cpp='$CPP $CPPFLAGS'
8532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8534ac_compiler_gnu=$ac_cv_c_compiler_gnu
8535
cristy43596fe2010-01-21 16:46:08 +00008536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00008537$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008538if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008539 $as_echo_n "(cached) " >&6
8540else
cristy8b350f62009-11-15 23:12:43 +00008541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008542/* end confdefs.h. */
8543
8544int
8545main ()
8546{
8547#ifndef _MSC_VER
8548 choke me
8549#endif
8550
8551 ;
8552 return 0;
8553}
8554_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008555if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008556 ax_compiler_ms=yes
8557else
cristy8b350f62009-11-15 23:12:43 +00008558 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00008559fi
cristy736173a2009-09-20 21:18:22 +00008560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8561ax_cv_c_compiler_ms=$ax_compiler_ms
8562
8563fi
cristy8b350f62009-11-15 23:12:43 +00008564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00008565$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy43596fe2010-01-21 16:46:08 +00008566 if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008567 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8568fi
8569
cristy43596fe2010-01-21 16:46:08 +00008570 ax_save_CPPFLAGS=$CPPFLAGS
8571 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8572 for ac_header in CL/cl.h OpenCL/cl.h
cristy8b350f62009-11-15 23:12:43 +00008573do :
8574 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8575ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyfd9dcd42010-08-08 18:07:02 +00008576if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy736173a2009-09-20 21:18:22 +00008577 cat >>confdefs.h <<_ACEOF
8578#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8579_ACEOF
8580
8581fi
8582
8583done
8584
cristy43596fe2010-01-21 16:46:08 +00008585 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00008586
cristy43596fe2010-01-21 16:46:08 +00008587 for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00008588do :
8589 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8590if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008591 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008592#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00008593_ACEOF
8594
8595fi
8596
8597done
8598
8599
8600
8601
cristy43596fe2010-01-21 16:46:08 +00008602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00008603$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008604if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008605 $as_echo_n "(cached) " >&6
8606else
8607 ax_cv_check_cl_libcl=no
cristy43596fe2010-01-21 16:46:08 +00008608 case $host_cpu in
8609 x86_64) ax_check_cl_libdir=lib64 ;;
8610 *) ax_check_cl_libdir=lib ;;
8611 esac
8612 ax_save_CPPFLAGS=$CPPFLAGS
8613 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8614 ax_save_LIBS=$LIBS
8615 LIBS=""
8616 ax_check_libs="-lOpenCL -lCL -lclparser"
8617 for ax_lib in $ax_check_libs; do
8618 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00008619 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8620else
8621 ax_try_lib=$ax_lib
8622fi
cristy43596fe2010-01-21 16:46:08 +00008623 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008625/* end confdefs.h. */
8626
cristy43596fe2010-01-21 16:46:08 +00008627 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8628 # include <windows.h>
8629 # endif
8630 # ifdef HAVE_CL_CL_H
8631 # include <CL/cl.h>
8632 # elif defined(HAVE_OPENCL_CL_H)
8633 # include <OpenCL/cl.h>
8634 # else
8635 # error no CL.h
8636 # endif
cristy736173a2009-09-20 21:18:22 +00008637int
8638main ()
8639{
cristyc7083c12009-10-14 03:16:55 +00008640clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008641 ;
8642 return 0;
8643}
8644_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008645if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008646 ax_cv_check_cl_libcl=$ax_try_lib; break
8647else
cristy8b350f62009-11-15 23:12:43 +00008648 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"
cristy43596fe2010-01-21 16:46:08 +00008649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008650/* end confdefs.h. */
8651
cristy43596fe2010-01-21 16:46:08 +00008652 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8653 # include <windows.h>
8654 # endif
8655 # ifdef HAVE_CL_CL_H
8656 # include <CL/cl.h>
8657 # elif defined(HAVE_OPENCL_CL_H)
8658 # include <OpenCL/cl.h>
8659 # else
8660 # error no CL.h
8661 # endif
cristy736173a2009-09-20 21:18:22 +00008662int
8663main ()
8664{
cristyc7083c12009-10-14 03:16:55 +00008665clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008666 ;
8667 return 0;
8668}
8669_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008670if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008671 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
8672else
cristy4dc44432009-12-30 23:30:06 +00008673 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"
cristy43596fe2010-01-21 16:46:08 +00008674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008675/* end confdefs.h. */
8676
cristy43596fe2010-01-21 16:46:08 +00008677 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8678 # include <windows.h>
8679 # endif
8680 # ifdef HAVE_CL_CL_H
8681 # include <CL/cl.h>
8682 # elif defined(HAVE_OPENCL_CL_H)
8683 # include <OpenCL/cl.h>
8684 # else
8685 # error no CL.h
8686 # endif
cristy736173a2009-09-20 21:18:22 +00008687int
8688main ()
8689{
cristyc7083c12009-10-14 03:16:55 +00008690clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008691 ;
8692 return 0;
8693}
8694_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008695if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008696 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00008697fi
cristy8b350f62009-11-15 23:12:43 +00008698rm -f core conftest.err conftest.$ac_objext \
8699 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008700fi
cristy8b350f62009-11-15 23:12:43 +00008701rm -f core conftest.err conftest.$ac_objext \
8702 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008703fi
cristy8b350f62009-11-15 23:12:43 +00008704rm -f core conftest.err conftest.$ac_objext \
8705 conftest$ac_exeext conftest.$ac_ext
cristy43596fe2010-01-21 16:46:08 +00008706 done
cristy736173a2009-09-20 21:18:22 +00008707
cristy43596fe2010-01-21 16:46:08 +00008708 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00008709 LIBS='-framework OpenCL'
cristy43596fe2010-01-21 16:46:08 +00008710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008711/* end confdefs.h. */
8712
cristy43596fe2010-01-21 16:46:08 +00008713 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8714 # include <windows.h>
8715 # endif
8716 # ifdef HAVE_CL_CL_H
8717 # include <CL/cl.h>
8718 # elif defined(HAVE_OPENCL_CL_H)
8719 # include <OpenCL/cl.h>
8720 # else
8721 # error no CL.h
8722 # endif
cristy736173a2009-09-20 21:18:22 +00008723int
8724main ()
8725{
cristyc7083c12009-10-14 03:16:55 +00008726clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008727 ;
8728 return 0;
8729}
8730_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008731if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008732 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00008733fi
cristy8b350f62009-11-15 23:12:43 +00008734rm -f core conftest.err conftest.$ac_objext \
8735 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008736fi
8737
cristy43596fe2010-01-21 16:46:08 +00008738 LIBS=$ax_save_LIBS
8739 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00008740fi
cristy8b350f62009-11-15 23:12:43 +00008741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00008742$as_echo "$ax_cv_check_cl_libcl" >&6; }
8743
cristy43596fe2010-01-21 16:46:08 +00008744 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008745 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
8746else
cristy99cc3002010-01-21 14:50:11 +00008747 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
8748$as_echo "#define _OPENCL 1" >>confdefs.h
8749
cristy736173a2009-09-20 21:18:22 +00008750fi
cristy43596fe2010-01-21 16:46:08 +00008751 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008752ac_cpp='$CPP $CPPFLAGS'
8753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8755ac_compiler_gnu=$ac_cv_c_compiler_gnu
8756
cristy43596fe2010-01-21 16:46:08 +00008757fi
cristy736173a2009-09-20 21:18:22 +00008758
8759
8760
8761
cristyc7083c12009-10-14 03:16:55 +00008762CFLAGS="$CL_CFLAGS $CFLAGS"
8763LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00008764
cristy391f1ce2010-09-09 17:23:28 +00008765if test "$enable_opencl" != no; then
8766 if test "_OPENCL" = '1'; then
8767 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
8768 fi
cristyfd9dcd42010-08-08 18:07:02 +00008769fi
cristy2e8b51d2009-10-17 18:26:15 +00008770
cristy3ed852e2009-09-05 21:47:34 +00008771########
8772#
8773# Check for large file support
8774#
8775########
8776# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00008777if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008778 enableval=$enable_largefile;
8779fi
8780
8781if test "$enable_largefile" != no; then
8782
cristy8b350f62009-11-15 23:12:43 +00008783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008784$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008785if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008786 $as_echo_n "(cached) " >&6
8787else
8788 ac_cv_sys_largefile_CC=no
8789 if test "$GCC" != yes; then
8790 ac_save_CC=$CC
8791 while :; do
8792 # IRIX 6.2 and later do not support large files by default,
8793 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00008794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008795/* end confdefs.h. */
8796#include <sys/types.h>
8797 /* Check that off_t can represent 2**63 - 1 correctly.
8798 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8799 since some C++ compilers masquerading as C compilers
8800 incorrectly reject 9223372036854775807. */
8801#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8802 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8803 && LARGE_OFF_T % 2147483647 == 1)
8804 ? 1 : -1];
8805int
8806main ()
8807{
8808
8809 ;
8810 return 0;
8811}
8812_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008813 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008814 break
cristy3ed852e2009-09-05 21:47:34 +00008815fi
cristy3ed852e2009-09-05 21:47:34 +00008816rm -f core conftest.err conftest.$ac_objext
8817 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00008818 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008819 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00008820fi
cristy3ed852e2009-09-05 21:47:34 +00008821rm -f core conftest.err conftest.$ac_objext
8822 break
8823 done
8824 CC=$ac_save_CC
8825 rm -f conftest.$ac_ext
8826 fi
8827fi
cristy8b350f62009-11-15 23:12:43 +00008828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008829$as_echo "$ac_cv_sys_largefile_CC" >&6; }
8830 if test "$ac_cv_sys_largefile_CC" != no; then
8831 CC=$CC$ac_cv_sys_largefile_CC
8832 fi
8833
cristy8b350f62009-11-15 23:12:43 +00008834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008835$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008836if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008837 $as_echo_n "(cached) " >&6
8838else
8839 while :; do
cristy8b350f62009-11-15 23:12:43 +00008840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008841/* end confdefs.h. */
8842#include <sys/types.h>
8843 /* Check that off_t can represent 2**63 - 1 correctly.
8844 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8845 since some C++ compilers masquerading as C compilers
8846 incorrectly reject 9223372036854775807. */
8847#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8848 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8849 && LARGE_OFF_T % 2147483647 == 1)
8850 ? 1 : -1];
8851int
8852main ()
8853{
8854
8855 ;
8856 return 0;
8857}
8858_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008859if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008860 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00008861fi
cristy3ed852e2009-09-05 21:47:34 +00008862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00008863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008864/* end confdefs.h. */
8865#define _FILE_OFFSET_BITS 64
8866#include <sys/types.h>
8867 /* Check that off_t can represent 2**63 - 1 correctly.
8868 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8869 since some C++ compilers masquerading as C compilers
8870 incorrectly reject 9223372036854775807. */
8871#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8872 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8873 && LARGE_OFF_T % 2147483647 == 1)
8874 ? 1 : -1];
8875int
8876main ()
8877{
8878
8879 ;
8880 return 0;
8881}
8882_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008883if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008884 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00008885fi
cristy3ed852e2009-09-05 21:47:34 +00008886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8887 ac_cv_sys_file_offset_bits=unknown
8888 break
8889done
8890fi
cristy8b350f62009-11-15 23:12:43 +00008891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00008892$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8893case $ac_cv_sys_file_offset_bits in #(
8894 no | unknown) ;;
8895 *)
8896cat >>confdefs.h <<_ACEOF
8897#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8898_ACEOF
8899;;
8900esac
8901rm -rf conftest*
8902 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00008903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008904$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008905if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008906 $as_echo_n "(cached) " >&6
8907else
8908 while :; do
cristy8b350f62009-11-15 23:12:43 +00008909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008910/* end confdefs.h. */
8911#include <sys/types.h>
8912 /* Check that off_t can represent 2**63 - 1 correctly.
8913 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8914 since some C++ compilers masquerading as C compilers
8915 incorrectly reject 9223372036854775807. */
8916#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8917 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8918 && LARGE_OFF_T % 2147483647 == 1)
8919 ? 1 : -1];
8920int
8921main ()
8922{
8923
8924 ;
8925 return 0;
8926}
8927_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008928if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008929 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00008930fi
cristy3ed852e2009-09-05 21:47:34 +00008931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00008932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008933/* end confdefs.h. */
8934#define _LARGE_FILES 1
8935#include <sys/types.h>
8936 /* Check that off_t can represent 2**63 - 1 correctly.
8937 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8938 since some C++ compilers masquerading as C compilers
8939 incorrectly reject 9223372036854775807. */
8940#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8941 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8942 && LARGE_OFF_T % 2147483647 == 1)
8943 ? 1 : -1];
8944int
8945main ()
8946{
8947
8948 ;
8949 return 0;
8950}
8951_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008952if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008953 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00008954fi
cristy3ed852e2009-09-05 21:47:34 +00008955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8956 ac_cv_sys_large_files=unknown
8957 break
8958done
8959fi
cristy8b350f62009-11-15 23:12:43 +00008960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008961$as_echo "$ac_cv_sys_large_files" >&6; }
8962case $ac_cv_sys_large_files in #(
8963 no | unknown) ;;
8964 *)
8965cat >>confdefs.h <<_ACEOF
8966#define _LARGE_FILES $ac_cv_sys_large_files
8967_ACEOF
8968;;
8969esac
8970rm -rf conftest*
8971 fi
8972fi
8973
cristy8b350f62009-11-15 23:12:43 +00008974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008975$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008976if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008977 $as_echo_n "(cached) " >&6
8978else
8979 while :; do
cristy8b350f62009-11-15 23:12:43 +00008980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008981/* end confdefs.h. */
8982#include <sys/types.h> /* for off_t */
8983 #include <stdio.h>
8984int
8985main ()
8986{
8987int (*fp) (FILE *, off_t, int) = fseeko;
8988 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8989 ;
8990 return 0;
8991}
8992_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008993if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008994 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00008995fi
cristy8b350f62009-11-15 23:12:43 +00008996rm -f core conftest.err conftest.$ac_objext \
8997 conftest$ac_exeext conftest.$ac_ext
8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008999/* end confdefs.h. */
9000#define _LARGEFILE_SOURCE 1
9001#include <sys/types.h> /* for off_t */
9002 #include <stdio.h>
9003int
9004main ()
9005{
9006int (*fp) (FILE *, off_t, int) = fseeko;
9007 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9008 ;
9009 return 0;
9010}
9011_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009012if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009013 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009014fi
cristy8b350f62009-11-15 23:12:43 +00009015rm -f core conftest.err conftest.$ac_objext \
9016 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009017 ac_cv_sys_largefile_source=unknown
9018 break
9019done
9020fi
cristy8b350f62009-11-15 23:12:43 +00009021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009022$as_echo "$ac_cv_sys_largefile_source" >&6; }
9023case $ac_cv_sys_largefile_source in #(
9024 no | unknown) ;;
9025 *)
9026cat >>confdefs.h <<_ACEOF
9027#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9028_ACEOF
9029;;
9030esac
9031rm -rf conftest*
9032
9033# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9034# in glibc 2.1.3, but that breaks too many other things.
9035# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9036if test $ac_cv_sys_largefile_source != unknown; then
9037
cristy8b350f62009-11-15 23:12:43 +00009038$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009039
9040fi
9041
9042LFS_CPPFLAGS=''
9043if test "$enable_largefile" != no; then
9044 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9045 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9046 else
cristy8b350f62009-11-15 23:12:43 +00009047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009048$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009049 if test "$cross_compiling" = yes; then :
9050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009051$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00009052as_fn_error $? "cannot run test program while cross compiling
9053See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009054else
cristy8b350f62009-11-15 23:12:43 +00009055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009057#include <unistd.h>
9058 main () {
9059 exit(!(sizeof(off_t) == 8));
9060 }
9061_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009062if ac_fn_c_try_run "$LINENO"; then :
9063 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009064
cristy8b350f62009-11-15 23:12:43 +00009065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009066$as_echo "yes" >&6; }
9067else
cristy8b350f62009-11-15 23:12:43 +00009068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009069$as_echo "no" >&6; }
9070fi
cristy8b350f62009-11-15 23:12:43 +00009071rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9072 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009073fi
9074
cristy3ed852e2009-09-05 21:47:34 +00009075 fi
9076 if test "$ac_cv_sys_large_files" != 'no'; then
9077 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9078 fi
9079 if test "$ac_cv_sys_largefile_source" != 'no'; then
9080 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9081 fi
9082fi
9083
9084
9085#
9086# Configure libtool & libltdl
9087#
9088# Configure libtool
9089enable_dlopen=yes
9090
9091
9092
9093case `pwd` in
9094 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00009095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00009096$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9097esac
9098
9099
9100
cristyfd9dcd42010-08-08 18:07:02 +00009101macro_version='2.2.10'
9102macro_revision='1.3175'
cristy3ed852e2009-09-05 21:47:34 +00009103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116ltmain="$ac_aux_dir/ltmain.sh"
9117
cristyfd9dcd42010-08-08 18:07:02 +00009118# Backslashify metacharacters that are still active within
9119# double-quoted strings.
9120sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9121
9122# Same as above, but do not quote variable references.
9123double_quote_subst='s/\(["`\\]\)/\\\1/g'
9124
9125# Sed substitution to delay expansion of an escaped shell variable in a
9126# double_quote_subst'ed string.
9127delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9128
9129# Sed substitution to delay expansion of an escaped single quote.
9130delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9131
9132# Sed substitution to avoid accidental globbing in evaled expressions
9133no_glob_subst='s/\*/\\\*/g'
9134
cristy8b350f62009-11-15 23:12:43 +00009135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00009136$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009137if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009138 $as_echo_n "(cached) " >&6
9139else
9140 if test -n "$NM"; then
9141 # Let the user override the test.
9142 lt_cv_path_NM="$NM"
9143else
9144 lt_nm_to_check="${ac_tool_prefix}nm"
9145 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9146 lt_nm_to_check="$lt_nm_to_check nm"
9147 fi
9148 for lt_tmp_nm in $lt_nm_to_check; do
9149 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9150 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9151 IFS="$lt_save_ifs"
9152 test -z "$ac_dir" && ac_dir=.
9153 tmp_nm="$ac_dir/$lt_tmp_nm"
9154 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9155 # Check to see if the nm accepts a BSD-compat flag.
9156 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9157 # nm: unknown option "B" ignored
9158 # Tru64's nm complains that /dev/null is an invalid object file
9159 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9160 */dev/null* | *'Invalid file or object type'*)
9161 lt_cv_path_NM="$tmp_nm -B"
9162 break
9163 ;;
9164 *)
9165 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9166 */dev/null*)
9167 lt_cv_path_NM="$tmp_nm -p"
9168 break
9169 ;;
9170 *)
9171 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9172 continue # so that we can try to find one that supports BSD flags
9173 ;;
9174 esac
9175 ;;
9176 esac
9177 fi
9178 done
9179 IFS="$lt_save_ifs"
9180 done
9181 : ${lt_cv_path_NM=no}
9182fi
9183fi
cristy8b350f62009-11-15 23:12:43 +00009184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00009185$as_echo "$lt_cv_path_NM" >&6; }
9186if test "$lt_cv_path_NM" != "no"; then
9187 NM="$lt_cv_path_NM"
9188else
9189 # Didn't find any BSD compatible name lister, look for dumpbin.
cristyfd9dcd42010-08-08 18:07:02 +00009190 if test -n "$DUMPBIN"; then :
9191 # Let the user override the test.
9192 else
9193 if test -n "$ac_tool_prefix"; then
9194 for ac_prog in dumpbin "link -dump"
cristy3ed852e2009-09-05 21:47:34 +00009195 do
9196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9197set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009199$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009200if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009201 $as_echo_n "(cached) " >&6
9202else
9203 if test -n "$DUMPBIN"; then
9204 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9205else
9206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9207for as_dir in $PATH
9208do
9209 IFS=$as_save_IFS
9210 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009211 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9213 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009215 break 2
9216 fi
9217done
cristy8b350f62009-11-15 23:12:43 +00009218 done
cristy3ed852e2009-09-05 21:47:34 +00009219IFS=$as_save_IFS
9220
9221fi
9222fi
9223DUMPBIN=$ac_cv_prog_DUMPBIN
9224if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009226$as_echo "$DUMPBIN" >&6; }
9227else
cristy8b350f62009-11-15 23:12:43 +00009228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009229$as_echo "no" >&6; }
9230fi
9231
9232
9233 test -n "$DUMPBIN" && break
9234 done
9235fi
9236if test -z "$DUMPBIN"; then
9237 ac_ct_DUMPBIN=$DUMPBIN
cristyfd9dcd42010-08-08 18:07:02 +00009238 for ac_prog in dumpbin "link -dump"
cristy3ed852e2009-09-05 21:47:34 +00009239do
9240 # Extract the first word of "$ac_prog", so it can be a program name with args.
9241set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009243$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009244if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009245 $as_echo_n "(cached) " >&6
9246else
9247 if test -n "$ac_ct_DUMPBIN"; then
9248 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9249else
9250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9251for as_dir in $PATH
9252do
9253 IFS=$as_save_IFS
9254 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009255 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9257 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009259 break 2
9260 fi
9261done
cristy8b350f62009-11-15 23:12:43 +00009262 done
cristy3ed852e2009-09-05 21:47:34 +00009263IFS=$as_save_IFS
9264
9265fi
9266fi
9267ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9268if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009270$as_echo "$ac_ct_DUMPBIN" >&6; }
9271else
cristy8b350f62009-11-15 23:12:43 +00009272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009273$as_echo "no" >&6; }
9274fi
9275
9276
9277 test -n "$ac_ct_DUMPBIN" && break
9278done
9279
9280 if test "x$ac_ct_DUMPBIN" = x; then
9281 DUMPBIN=":"
9282 else
9283 case $cross_compiling:$ac_tool_warned in
9284yes:)
cristy8b350f62009-11-15 23:12:43 +00009285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9287ac_tool_warned=yes ;;
9288esac
9289 DUMPBIN=$ac_ct_DUMPBIN
9290 fi
9291fi
9292
cristyfd9dcd42010-08-08 18:07:02 +00009293 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9294 *COFF*)
9295 DUMPBIN="$DUMPBIN -symbols"
9296 ;;
9297 *)
9298 DUMPBIN=:
9299 ;;
9300 esac
9301 fi
cristy3ed852e2009-09-05 21:47:34 +00009302
9303 if test "$DUMPBIN" != ":"; then
9304 NM="$DUMPBIN"
9305 fi
9306fi
9307test -z "$NM" && NM=nm
9308
9309
9310
9311
9312
9313
cristy8b350f62009-11-15 23:12:43 +00009314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009315$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009316if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009317 $as_echo_n "(cached) " >&6
9318else
9319 lt_cv_nm_interface="BSD nm"
9320 echo "int some_variable = 0;" > conftest.$ac_ext
cristyfd9dcd42010-08-08 18:07:02 +00009321 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009322 (eval "$ac_compile" 2>conftest.err)
9323 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +00009324 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009325 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9326 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +00009327 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009328 cat conftest.out >&5
9329 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9330 lt_cv_nm_interface="MS dumpbin"
9331 fi
9332 rm -f conftest*
9333fi
cristy8b350f62009-11-15 23:12:43 +00009334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009335$as_echo "$lt_cv_nm_interface" >&6; }
9336
9337# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00009338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00009339$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009340if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009341 $as_echo_n "(cached) " >&6
9342else
9343 i=0
9344 teststring="ABCD"
9345
9346 case $build_os in
9347 msdosdjgpp*)
9348 # On DJGPP, this test can blow up pretty badly due to problems in libc
9349 # (any single argument exceeding 2000 bytes causes a buffer overrun
9350 # during glob expansion). Even if it were fixed, the result of this
9351 # check would be larger than it should be.
9352 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9353 ;;
9354
9355 gnu*)
9356 # Under GNU Hurd, this test is not required because there is
9357 # no limit to the length of command line arguments.
9358 # Libtool will interpret -1 as no limit whatsoever
9359 lt_cv_sys_max_cmd_len=-1;
9360 ;;
9361
9362 cygwin* | mingw* | cegcc*)
9363 # On Win9x/ME, this test blows up -- it succeeds, but takes
9364 # about 5 minutes as the teststring grows exponentially.
9365 # Worse, since 9x/ME are not pre-emptively multitasking,
9366 # you end up with a "frozen" computer, even though with patience
9367 # the test eventually succeeds (with a max line length of 256k).
9368 # Instead, let's just punt: use the minimum linelength reported by
9369 # all of the supported platforms: 8192 (on NT/2K/XP).
9370 lt_cv_sys_max_cmd_len=8192;
9371 ;;
9372
cristyfd9dcd42010-08-08 18:07:02 +00009373 mint*)
9374 # On MiNT this can take a long time and run out of memory.
9375 lt_cv_sys_max_cmd_len=8192;
9376 ;;
9377
cristy3ed852e2009-09-05 21:47:34 +00009378 amigaos*)
9379 # On AmigaOS with pdksh, this test takes hours, literally.
9380 # So we just punt and use a minimum line length of 8192.
9381 lt_cv_sys_max_cmd_len=8192;
9382 ;;
9383
9384 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9385 # This has been around since 386BSD, at least. Likely further.
9386 if test -x /sbin/sysctl; then
9387 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9388 elif test -x /usr/sbin/sysctl; then
9389 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9390 else
9391 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9392 fi
9393 # And add a safety zone
9394 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9395 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9396 ;;
9397
9398 interix*)
9399 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9400 lt_cv_sys_max_cmd_len=196608
9401 ;;
9402
9403 osf*)
9404 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9405 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9406 # nice to cause kernel panics so lets avoid the loop below.
9407 # First set a reasonable default.
9408 lt_cv_sys_max_cmd_len=16384
9409 #
9410 if test -x /sbin/sysconfig; then
9411 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9412 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9413 esac
9414 fi
9415 ;;
9416 sco3.2v5*)
9417 lt_cv_sys_max_cmd_len=102400
9418 ;;
9419 sysv5* | sco5v6* | sysv4.2uw2*)
9420 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9421 if test -n "$kargmax"; then
9422 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9423 else
9424 lt_cv_sys_max_cmd_len=32768
9425 fi
9426 ;;
9427 *)
9428 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9429 if test -n "$lt_cv_sys_max_cmd_len"; then
9430 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9431 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9432 else
9433 # Make teststring a little bigger before we do anything with it.
9434 # a 1K string should be a reasonable start.
9435 for i in 1 2 3 4 5 6 7 8 ; do
9436 teststring=$teststring$teststring
9437 done
9438 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9439 # If test is not a shell built-in, we'll probably end up computing a
9440 # maximum length that is only half of the actual maximum length, but
9441 # we can't tell.
cristyfd9dcd42010-08-08 18:07:02 +00009442 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9443 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00009444 test $i != 17 # 1/2 MB should be enough
9445 do
9446 i=`expr $i + 1`
9447 teststring=$teststring$teststring
9448 done
9449 # Only check the string length outside the loop.
9450 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9451 teststring=
9452 # Add a significant safety factor because C++ compilers can tack on
9453 # massive amounts of additional arguments before passing them to the
9454 # linker. It appears as though 1/2 is a usable value.
9455 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9456 fi
9457 ;;
9458 esac
9459
9460fi
9461
9462if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00009463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00009464$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9465else
cristy8b350f62009-11-15 23:12:43 +00009466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00009467$as_echo "none" >&6; }
9468fi
9469max_cmd_len=$lt_cv_sys_max_cmd_len
9470
9471
9472
9473
9474
9475
9476: ${CP="cp -f"}
9477: ${MV="mv -f"}
9478: ${RM="rm -f"}
9479
cristy8b350f62009-11-15 23:12:43 +00009480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00009481$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9482# Try some XSI features
9483xsi_shell=no
9484( _lt_dummy="a/b/c"
9485 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9486 = c,a/b,, \
9487 && eval 'test $(( 1 + 1 )) -eq 2 \
9488 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9489 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00009490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00009491$as_echo "$xsi_shell" >&6; }
9492
9493
cristy8b350f62009-11-15 23:12:43 +00009494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00009495$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9496lt_shell_append=no
9497( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9498 >/dev/null 2>&1 \
9499 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00009500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00009501$as_echo "$lt_shell_append" >&6; }
9502
9503
9504if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9505 lt_unset=unset
9506else
9507 lt_unset=false
9508fi
9509
9510
9511
9512
9513
9514# test EBCDIC or ASCII
9515case `echo X|tr X '\101'` in
9516 A) # ASCII based system
9517 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9518 lt_SP2NL='tr \040 \012'
9519 lt_NL2SP='tr \015\012 \040\040'
9520 ;;
9521 *) # EBCDIC based system
9522 lt_SP2NL='tr \100 \n'
9523 lt_NL2SP='tr \r\n \100\100'
9524 ;;
9525esac
9526
9527
9528
9529
9530
9531
9532
9533
9534
cristy8b350f62009-11-15 23:12:43 +00009535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009536$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009537if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009538 $as_echo_n "(cached) " >&6
9539else
9540 lt_cv_ld_reload_flag='-r'
9541fi
cristy8b350f62009-11-15 23:12:43 +00009542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00009543$as_echo "$lt_cv_ld_reload_flag" >&6; }
9544reload_flag=$lt_cv_ld_reload_flag
9545case $reload_flag in
9546"" | " "*) ;;
9547*) reload_flag=" $reload_flag" ;;
9548esac
9549reload_cmds='$LD$reload_flag -o $output$reload_objs'
9550case $host_os in
9551 darwin*)
9552 if test "$GCC" = yes; then
9553 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9554 else
9555 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9556 fi
9557 ;;
9558esac
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568if test -n "$ac_tool_prefix"; then
9569 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9570set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009572$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009573if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009574 $as_echo_n "(cached) " >&6
9575else
9576 if test -n "$OBJDUMP"; then
9577 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9578else
9579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9580for as_dir in $PATH
9581do
9582 IFS=$as_save_IFS
9583 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009584 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9586 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00009587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009588 break 2
9589 fi
9590done
cristy8b350f62009-11-15 23:12:43 +00009591 done
cristy3ed852e2009-09-05 21:47:34 +00009592IFS=$as_save_IFS
9593
9594fi
9595fi
9596OBJDUMP=$ac_cv_prog_OBJDUMP
9597if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009599$as_echo "$OBJDUMP" >&6; }
9600else
cristy8b350f62009-11-15 23:12:43 +00009601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009602$as_echo "no" >&6; }
9603fi
9604
9605
9606fi
9607if test -z "$ac_cv_prog_OBJDUMP"; then
9608 ac_ct_OBJDUMP=$OBJDUMP
9609 # Extract the first word of "objdump", so it can be a program name with args.
9610set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009612$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009613if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009614 $as_echo_n "(cached) " >&6
9615else
9616 if test -n "$ac_ct_OBJDUMP"; then
9617 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9618else
9619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9620for as_dir in $PATH
9621do
9622 IFS=$as_save_IFS
9623 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009624 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9626 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +00009627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009628 break 2
9629 fi
9630done
cristy8b350f62009-11-15 23:12:43 +00009631 done
cristy3ed852e2009-09-05 21:47:34 +00009632IFS=$as_save_IFS
9633
9634fi
9635fi
9636ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9637if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009639$as_echo "$ac_ct_OBJDUMP" >&6; }
9640else
cristy8b350f62009-11-15 23:12:43 +00009641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009642$as_echo "no" >&6; }
9643fi
9644
9645 if test "x$ac_ct_OBJDUMP" = x; then
9646 OBJDUMP="false"
9647 else
9648 case $cross_compiling:$ac_tool_warned in
9649yes:)
cristy8b350f62009-11-15 23:12:43 +00009650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9652ac_tool_warned=yes ;;
9653esac
9654 OBJDUMP=$ac_ct_OBJDUMP
9655 fi
9656else
9657 OBJDUMP="$ac_cv_prog_OBJDUMP"
9658fi
9659
9660test -z "$OBJDUMP" && OBJDUMP=objdump
9661
9662
9663
9664
9665
9666
cristy8b350f62009-11-15 23:12:43 +00009667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +00009668$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009669if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009670 $as_echo_n "(cached) " >&6
9671else
9672 lt_cv_file_magic_cmd='$MAGIC_CMD'
9673lt_cv_file_magic_test_file=
9674lt_cv_deplibs_check_method='unknown'
9675# Need to set the preceding variable on all platforms that support
9676# interlibrary dependencies.
9677# 'none' -- dependencies not supported.
9678# `unknown' -- same as none, but documents that we really don't know.
9679# 'pass_all' -- all dependencies passed with no checks.
9680# 'test_compile' -- check by making test program.
9681# 'file_magic [[regex]]' -- check by looking for files in library path
9682# which responds to the $file_magic_cmd with a given extended regex.
9683# If you have `file' or equivalent on your system and you're not sure
9684# whether `pass_all' will *always* work, you probably want this one.
9685
9686case $host_os in
9687aix[4-9]*)
9688 lt_cv_deplibs_check_method=pass_all
9689 ;;
9690
9691beos*)
9692 lt_cv_deplibs_check_method=pass_all
9693 ;;
9694
9695bsdi[45]*)
9696 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9697 lt_cv_file_magic_cmd='/usr/bin/file -L'
9698 lt_cv_file_magic_test_file=/shlib/libc.so
9699 ;;
9700
9701cygwin*)
9702 # func_win32_libid is a shell function defined in ltmain.sh
9703 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9704 lt_cv_file_magic_cmd='func_win32_libid'
9705 ;;
9706
9707mingw* | pw32*)
9708 # Base MSYS/MinGW do not provide the 'file' command needed by
9709 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9710 # unless we find 'file', for example because we are cross-compiling.
cristyfd9dcd42010-08-08 18:07:02 +00009711 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
9712 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +00009713 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9714 lt_cv_file_magic_cmd='func_win32_libid'
9715 else
cristyfd9dcd42010-08-08 18:07:02 +00009716 # Keep this pattern in sync with the one in func_win32_libid.
9717 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
cristy3ed852e2009-09-05 21:47:34 +00009718 lt_cv_file_magic_cmd='$OBJDUMP -f'
9719 fi
9720 ;;
9721
cristyfd9dcd42010-08-08 18:07:02 +00009722cegcc*)
cristy3ed852e2009-09-05 21:47:34 +00009723 # use the weaker test based on 'objdump'. See mingw*.
9724 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9725 lt_cv_file_magic_cmd='$OBJDUMP -f'
9726 ;;
9727
9728darwin* | rhapsody*)
9729 lt_cv_deplibs_check_method=pass_all
9730 ;;
9731
9732freebsd* | dragonfly*)
9733 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9734 case $host_cpu in
9735 i*86 )
9736 # Not sure whether the presence of OpenBSD here was a mistake.
9737 # Let's accept both of them until this is cleared up.
9738 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9739 lt_cv_file_magic_cmd=/usr/bin/file
9740 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9741 ;;
9742 esac
9743 else
9744 lt_cv_deplibs_check_method=pass_all
9745 fi
9746 ;;
9747
9748gnu*)
9749 lt_cv_deplibs_check_method=pass_all
9750 ;;
9751
cristyfd9dcd42010-08-08 18:07:02 +00009752haiku*)
9753 lt_cv_deplibs_check_method=pass_all
9754 ;;
9755
cristy3ed852e2009-09-05 21:47:34 +00009756hpux10.20* | hpux11*)
9757 lt_cv_file_magic_cmd=/usr/bin/file
9758 case $host_cpu in
9759 ia64*)
9760 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9761 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9762 ;;
9763 hppa*64*)
cristyfd9dcd42010-08-08 18:07:02 +00009764 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]'
cristy3ed852e2009-09-05 21:47:34 +00009765 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9766 ;;
9767 *)
cristyfd9dcd42010-08-08 18:07:02 +00009768 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
cristy3ed852e2009-09-05 21:47:34 +00009769 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9770 ;;
9771 esac
9772 ;;
9773
9774interix[3-9]*)
9775 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9776 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9777 ;;
9778
9779irix5* | irix6* | nonstopux*)
9780 case $LD in
9781 *-32|*"-32 ") libmagic=32-bit;;
9782 *-n32|*"-n32 ") libmagic=N32;;
9783 *-64|*"-64 ") libmagic=64-bit;;
9784 *) libmagic=never-match;;
9785 esac
9786 lt_cv_deplibs_check_method=pass_all
9787 ;;
9788
9789# This must be Linux ELF.
cristyfd9dcd42010-08-08 18:07:02 +00009790linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +00009791 lt_cv_deplibs_check_method=pass_all
9792 ;;
9793
9794netbsd*)
9795 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9796 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9797 else
9798 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9799 fi
9800 ;;
9801
9802newos6*)
9803 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9804 lt_cv_file_magic_cmd=/usr/bin/file
9805 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9806 ;;
9807
9808*nto* | *qnx*)
9809 lt_cv_deplibs_check_method=pass_all
9810 ;;
9811
9812openbsd*)
9813 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9814 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9815 else
9816 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9817 fi
9818 ;;
9819
9820osf3* | osf4* | osf5*)
9821 lt_cv_deplibs_check_method=pass_all
9822 ;;
9823
9824rdos*)
9825 lt_cv_deplibs_check_method=pass_all
9826 ;;
9827
9828solaris*)
9829 lt_cv_deplibs_check_method=pass_all
9830 ;;
9831
9832sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9833 lt_cv_deplibs_check_method=pass_all
9834 ;;
9835
9836sysv4 | sysv4.3*)
9837 case $host_vendor in
9838 motorola)
9839 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]'
9840 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9841 ;;
9842 ncr)
9843 lt_cv_deplibs_check_method=pass_all
9844 ;;
9845 sequent)
9846 lt_cv_file_magic_cmd='/bin/file'
9847 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9848 ;;
9849 sni)
9850 lt_cv_file_magic_cmd='/bin/file'
9851 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9852 lt_cv_file_magic_test_file=/lib/libc.so
9853 ;;
9854 siemens)
9855 lt_cv_deplibs_check_method=pass_all
9856 ;;
9857 pc)
9858 lt_cv_deplibs_check_method=pass_all
9859 ;;
9860 esac
9861 ;;
9862
9863tpf*)
9864 lt_cv_deplibs_check_method=pass_all
9865 ;;
9866esac
9867
9868fi
cristy8b350f62009-11-15 23:12:43 +00009869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +00009870$as_echo "$lt_cv_deplibs_check_method" >&6; }
9871file_magic_cmd=$lt_cv_file_magic_cmd
9872deplibs_check_method=$lt_cv_deplibs_check_method
9873test -z "$deplibs_check_method" && deplibs_check_method=unknown
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886if test -n "$ac_tool_prefix"; then
9887 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9888set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009890$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009891if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009892 $as_echo_n "(cached) " >&6
9893else
9894 if test -n "$AR"; then
9895 ac_cv_prog_AR="$AR" # Let the user override the test.
9896else
9897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9898for as_dir in $PATH
9899do
9900 IFS=$as_save_IFS
9901 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009902 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9904 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +00009905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009906 break 2
9907 fi
9908done
cristy8b350f62009-11-15 23:12:43 +00009909 done
cristy3ed852e2009-09-05 21:47:34 +00009910IFS=$as_save_IFS
9911
9912fi
9913fi
9914AR=$ac_cv_prog_AR
9915if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +00009916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00009917$as_echo "$AR" >&6; }
9918else
cristy8b350f62009-11-15 23:12:43 +00009919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009920$as_echo "no" >&6; }
9921fi
9922
9923
9924fi
9925if test -z "$ac_cv_prog_AR"; then
9926 ac_ct_AR=$AR
9927 # Extract the first word of "ar", so it can be a program name with args.
9928set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009930$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009931if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009932 $as_echo_n "(cached) " >&6
9933else
9934 if test -n "$ac_ct_AR"; then
9935 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9936else
9937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9938for as_dir in $PATH
9939do
9940 IFS=$as_save_IFS
9941 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009942 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9944 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +00009945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009946 break 2
9947 fi
9948done
cristy8b350f62009-11-15 23:12:43 +00009949 done
cristy3ed852e2009-09-05 21:47:34 +00009950IFS=$as_save_IFS
9951
9952fi
9953fi
9954ac_ct_AR=$ac_cv_prog_ac_ct_AR
9955if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +00009956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00009957$as_echo "$ac_ct_AR" >&6; }
9958else
cristy8b350f62009-11-15 23:12:43 +00009959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009960$as_echo "no" >&6; }
9961fi
9962
9963 if test "x$ac_ct_AR" = x; then
9964 AR="false"
9965 else
9966 case $cross_compiling:$ac_tool_warned in
9967yes:)
cristy8b350f62009-11-15 23:12:43 +00009968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9970ac_tool_warned=yes ;;
9971esac
9972 AR=$ac_ct_AR
9973 fi
9974else
9975 AR="$ac_cv_prog_AR"
9976fi
9977
9978test -z "$AR" && AR=ar
9979test -z "$AR_FLAGS" && AR_FLAGS=cru
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991if test -n "$ac_tool_prefix"; then
9992 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9993set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009995$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009996if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009997 $as_echo_n "(cached) " >&6
9998else
9999 if test -n "$STRIP"; then
10000 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10001else
10002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003for as_dir in $PATH
10004do
10005 IFS=$as_save_IFS
10006 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010007 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10009 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +000010010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010011 break 2
10012 fi
10013done
cristy8b350f62009-11-15 23:12:43 +000010014 done
cristy3ed852e2009-09-05 21:47:34 +000010015IFS=$as_save_IFS
10016
10017fi
10018fi
10019STRIP=$ac_cv_prog_STRIP
10020if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010022$as_echo "$STRIP" >&6; }
10023else
cristy8b350f62009-11-15 23:12:43 +000010024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010025$as_echo "no" >&6; }
10026fi
10027
10028
10029fi
10030if test -z "$ac_cv_prog_STRIP"; then
10031 ac_ct_STRIP=$STRIP
10032 # Extract the first word of "strip", so it can be a program name with args.
10033set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010035$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010036if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010037 $as_echo_n "(cached) " >&6
10038else
10039 if test -n "$ac_ct_STRIP"; then
10040 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10041else
10042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10043for as_dir in $PATH
10044do
10045 IFS=$as_save_IFS
10046 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010047 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10049 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +000010050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010051 break 2
10052 fi
10053done
cristy8b350f62009-11-15 23:12:43 +000010054 done
cristy3ed852e2009-09-05 21:47:34 +000010055IFS=$as_save_IFS
10056
10057fi
10058fi
10059ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10060if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010062$as_echo "$ac_ct_STRIP" >&6; }
10063else
cristy8b350f62009-11-15 23:12:43 +000010064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010065$as_echo "no" >&6; }
10066fi
10067
10068 if test "x$ac_ct_STRIP" = x; then
10069 STRIP=":"
10070 else
10071 case $cross_compiling:$ac_tool_warned in
10072yes:)
cristy8b350f62009-11-15 23:12:43 +000010073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10075ac_tool_warned=yes ;;
10076esac
10077 STRIP=$ac_ct_STRIP
10078 fi
10079else
10080 STRIP="$ac_cv_prog_STRIP"
10081fi
10082
10083test -z "$STRIP" && STRIP=:
10084
10085
10086
10087
10088
10089
10090if test -n "$ac_tool_prefix"; then
10091 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10092set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010094$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010095if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010096 $as_echo_n "(cached) " >&6
10097else
10098 if test -n "$RANLIB"; then
10099 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10100else
10101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10102for as_dir in $PATH
10103do
10104 IFS=$as_save_IFS
10105 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010106 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10108 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +000010109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010110 break 2
10111 fi
10112done
cristy8b350f62009-11-15 23:12:43 +000010113 done
cristy3ed852e2009-09-05 21:47:34 +000010114IFS=$as_save_IFS
10115
10116fi
10117fi
10118RANLIB=$ac_cv_prog_RANLIB
10119if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010121$as_echo "$RANLIB" >&6; }
10122else
cristy8b350f62009-11-15 23:12:43 +000010123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010124$as_echo "no" >&6; }
10125fi
10126
10127
10128fi
10129if test -z "$ac_cv_prog_RANLIB"; then
10130 ac_ct_RANLIB=$RANLIB
10131 # Extract the first word of "ranlib", so it can be a program name with args.
10132set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010134$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010135if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010136 $as_echo_n "(cached) " >&6
10137else
10138 if test -n "$ac_ct_RANLIB"; then
10139 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10140else
10141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10142for as_dir in $PATH
10143do
10144 IFS=$as_save_IFS
10145 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010146 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10148 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +000010149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010150 break 2
10151 fi
10152done
cristy8b350f62009-11-15 23:12:43 +000010153 done
cristy3ed852e2009-09-05 21:47:34 +000010154IFS=$as_save_IFS
10155
10156fi
10157fi
10158ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10159if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010161$as_echo "$ac_ct_RANLIB" >&6; }
10162else
cristy8b350f62009-11-15 23:12:43 +000010163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010164$as_echo "no" >&6; }
10165fi
10166
10167 if test "x$ac_ct_RANLIB" = x; then
10168 RANLIB=":"
10169 else
10170 case $cross_compiling:$ac_tool_warned in
10171yes:)
cristy8b350f62009-11-15 23:12:43 +000010172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10174ac_tool_warned=yes ;;
10175esac
10176 RANLIB=$ac_ct_RANLIB
10177 fi
10178else
10179 RANLIB="$ac_cv_prog_RANLIB"
10180fi
10181
10182test -z "$RANLIB" && RANLIB=:
10183
10184
10185
10186
10187
10188
10189# Determine commands to create old-style static archives.
10190old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10191old_postinstall_cmds='chmod 644 $oldlib'
10192old_postuninstall_cmds=
10193
10194if test -n "$RANLIB"; then
10195 case $host_os in
10196 openbsd*)
10197 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10198 ;;
10199 *)
10200 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10201 ;;
10202 esac
10203 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10204fi
10205
cristyfd9dcd42010-08-08 18:07:02 +000010206case $host_os in
10207 darwin*)
10208 lock_old_archive_extraction=yes ;;
10209 *)
10210 lock_old_archive_extraction=no ;;
10211esac
10212
10213
10214
10215
10216
10217
cristy3ed852e2009-09-05 21:47:34 +000010218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251# If no C compiler was specified, use CC.
10252LTCC=${LTCC-"$CC"}
10253
10254# If no C compiler flags were specified, use CFLAGS.
10255LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10256
10257# Allow CC to be a program name with arguments.
10258compiler=$CC
10259
10260
10261# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +000010262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +000010263$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010264if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010265 $as_echo_n "(cached) " >&6
10266else
10267
10268# These are sane defaults that work on at least a few old systems.
10269# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10270
10271# Character class describing NM global symbol codes.
10272symcode='[BCDEGRST]'
10273
10274# Regexp to match symbols that can be accessed directly from C.
10275sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10276
10277# Define system-specific variables.
10278case $host_os in
10279aix*)
10280 symcode='[BCDT]'
10281 ;;
10282cygwin* | mingw* | pw32* | cegcc*)
10283 symcode='[ABCDGISTW]'
10284 ;;
10285hpux*)
10286 if test "$host_cpu" = ia64; then
10287 symcode='[ABCDEGRST]'
10288 fi
10289 ;;
10290irix* | nonstopux*)
10291 symcode='[BCDEGRST]'
10292 ;;
10293osf*)
10294 symcode='[BCDEGQRST]'
10295 ;;
10296solaris*)
10297 symcode='[BDRT]'
10298 ;;
10299sco3.2v5*)
10300 symcode='[DT]'
10301 ;;
10302sysv4.2uw2*)
10303 symcode='[DT]'
10304 ;;
10305sysv5* | sco5v6* | unixware* | OpenUNIX*)
10306 symcode='[ABDT]'
10307 ;;
10308sysv4)
10309 symcode='[DFNSTU]'
10310 ;;
10311esac
10312
10313# If we're using GNU nm, then use its standard symbol codes.
10314case `$NM -V 2>&1` in
10315*GNU* | *'with BFD'*)
10316 symcode='[ABCDGIRSTW]' ;;
10317esac
10318
10319# Transform an extracted symbol line into a proper C declaration.
10320# Some systems (esp. on ia64) link data and code symbols differently,
10321# so use this general approach.
10322lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10323
10324# Transform an extracted symbol line into symbol name and symbol address
10325lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10326lt_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'"
10327
10328# Handle CRLF in mingw tool chain
10329opt_cr=
10330case $build_os in
10331mingw*)
10332 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10333 ;;
10334esac
10335
10336# Try without a prefix underscore, then with it.
10337for ac_symprfx in "" "_"; do
10338
10339 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10340 symxfrm="\\1 $ac_symprfx\\2 \\2"
10341
10342 # Write the raw and C identifiers.
10343 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10344 # Fake it for dumpbin and say T for any non-static function
10345 # and D for any global variable.
10346 # Also find C++ and __fastcall symbols from MSVC++,
10347 # which start with @ or ?.
10348 lt_cv_sys_global_symbol_pipe="$AWK '"\
10349" {last_section=section; section=\$ 3};"\
10350" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10351" \$ 0!~/External *\|/{next};"\
10352" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10353" {if(hide[section]) next};"\
10354" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10355" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10356" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10357" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10358" ' prfx=^$ac_symprfx"
10359 else
10360 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10361 fi
10362
10363 # Check to see that the pipe works correctly.
10364 pipe_works=no
10365
10366 rm -f conftest*
10367 cat > conftest.$ac_ext <<_LT_EOF
10368#ifdef __cplusplus
10369extern "C" {
10370#endif
10371char nm_test_var;
10372void nm_test_func(void);
10373void nm_test_func(void){}
10374#ifdef __cplusplus
10375}
10376#endif
10377int main(){nm_test_var='a';nm_test_func();return(0);}
10378_LT_EOF
10379
cristy8b350f62009-11-15 23:12:43 +000010380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010381 (eval $ac_compile) 2>&5
10382 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10384 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010385 # Now try to grab the symbols.
10386 nlist=conftest.nm
cristyfd9dcd42010-08-08 18:07:02 +000010387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10388 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +000010389 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10391 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000010392 # Try sorting and uniquifying the output.
10393 if sort "$nlist" | uniq > "$nlist"T; then
10394 mv -f "$nlist"T "$nlist"
10395 else
10396 rm -f "$nlist"T
10397 fi
10398
10399 # Make sure that we snagged all the symbols we need.
10400 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10401 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10402 cat <<_LT_EOF > conftest.$ac_ext
10403#ifdef __cplusplus
10404extern "C" {
10405#endif
10406
10407_LT_EOF
10408 # Now generate the symbol file.
10409 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10410
10411 cat <<_LT_EOF >> conftest.$ac_ext
10412
10413/* The mapping between symbol names and symbols. */
10414const struct {
10415 const char *name;
10416 void *address;
10417}
10418lt__PROGRAM__LTX_preloaded_symbols[] =
10419{
10420 { "@PROGRAM@", (void *) 0 },
10421_LT_EOF
10422 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10423 cat <<\_LT_EOF >> conftest.$ac_ext
10424 {0, (void *) 0}
10425};
10426
10427/* This works around a problem in FreeBSD linker */
10428#ifdef FREEBSD_WORKAROUND
10429static const void *lt_preloaded_setup() {
10430 return lt__PROGRAM__LTX_preloaded_symbols;
10431}
10432#endif
10433
10434#ifdef __cplusplus
10435}
10436#endif
10437_LT_EOF
10438 # Now try linking the two files.
10439 mv conftest.$ac_objext conftstm.$ac_objext
10440 lt_save_LIBS="$LIBS"
10441 lt_save_CFLAGS="$CFLAGS"
10442 LIBS="conftstm.$ac_objext"
10443 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +000010444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010445 (eval $ac_link) 2>&5
10446 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10448 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +000010449 pipe_works=yes
10450 fi
10451 LIBS="$lt_save_LIBS"
10452 CFLAGS="$lt_save_CFLAGS"
10453 else
10454 echo "cannot find nm_test_func in $nlist" >&5
10455 fi
10456 else
10457 echo "cannot find nm_test_var in $nlist" >&5
10458 fi
10459 else
10460 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10461 fi
10462 else
10463 echo "$progname: failed program was:" >&5
10464 cat conftest.$ac_ext >&5
10465 fi
10466 rm -rf conftest* conftst*
10467
10468 # Do not use the global_symbol_pipe unless it works.
10469 if test "$pipe_works" = yes; then
10470 break
10471 else
10472 lt_cv_sys_global_symbol_pipe=
10473 fi
10474done
10475
10476fi
10477
10478if test -z "$lt_cv_sys_global_symbol_pipe"; then
10479 lt_cv_sys_global_symbol_to_cdecl=
10480fi
10481if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +000010482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +000010483$as_echo "failed" >&6; }
10484else
cristy8b350f62009-11-15 23:12:43 +000010485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000010486$as_echo "ok" >&6; }
10487fi
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +000010511if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010512 enableval=$enable_libtool_lock;
10513fi
10514
10515test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10516
10517# Some flags need to be propagated to the compiler or linker for good
10518# libtool support.
10519case $host in
10520ia64-*-hpux*)
10521 # Find out which ABI we are using.
10522 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010524 (eval $ac_compile) 2>&5
10525 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10527 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010528 case `/usr/bin/file conftest.$ac_objext` in
10529 *ELF-32*)
10530 HPUX_IA64_MODE="32"
10531 ;;
10532 *ELF-64*)
10533 HPUX_IA64_MODE="64"
10534 ;;
10535 esac
10536 fi
10537 rm -rf conftest*
10538 ;;
10539*-*-irix6*)
10540 # Find out which ABI we are using.
cristyfd9dcd42010-08-08 18:07:02 +000010541 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010543 (eval $ac_compile) 2>&5
10544 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10546 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010547 if test "$lt_cv_prog_gnu_ld" = yes; then
10548 case `/usr/bin/file conftest.$ac_objext` in
10549 *32-bit*)
10550 LD="${LD-ld} -melf32bsmip"
10551 ;;
10552 *N32*)
10553 LD="${LD-ld} -melf32bmipn32"
10554 ;;
10555 *64-bit*)
10556 LD="${LD-ld} -melf64bmip"
10557 ;;
10558 esac
10559 else
10560 case `/usr/bin/file conftest.$ac_objext` in
10561 *32-bit*)
10562 LD="${LD-ld} -32"
10563 ;;
10564 *N32*)
10565 LD="${LD-ld} -n32"
10566 ;;
10567 *64-bit*)
10568 LD="${LD-ld} -64"
10569 ;;
10570 esac
10571 fi
10572 fi
10573 rm -rf conftest*
10574 ;;
10575
10576x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10577s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10578 # Find out which ABI we are using.
10579 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010581 (eval $ac_compile) 2>&5
10582 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10584 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010585 case `/usr/bin/file conftest.o` in
10586 *32-bit*)
10587 case $host in
10588 x86_64-*kfreebsd*-gnu)
10589 LD="${LD-ld} -m elf_i386_fbsd"
10590 ;;
10591 x86_64-*linux*)
10592 LD="${LD-ld} -m elf_i386"
10593 ;;
10594 ppc64-*linux*|powerpc64-*linux*)
10595 LD="${LD-ld} -m elf32ppclinux"
10596 ;;
10597 s390x-*linux*)
10598 LD="${LD-ld} -m elf_s390"
10599 ;;
10600 sparc64-*linux*)
10601 LD="${LD-ld} -m elf32_sparc"
10602 ;;
10603 esac
10604 ;;
10605 *64-bit*)
10606 case $host in
10607 x86_64-*kfreebsd*-gnu)
10608 LD="${LD-ld} -m elf_x86_64_fbsd"
10609 ;;
10610 x86_64-*linux*)
10611 LD="${LD-ld} -m elf_x86_64"
10612 ;;
10613 ppc*-*linux*|powerpc*-*linux*)
10614 LD="${LD-ld} -m elf64ppc"
10615 ;;
10616 s390*-*linux*|s390*-*tpf*)
10617 LD="${LD-ld} -m elf64_s390"
10618 ;;
10619 sparc*-*linux*)
10620 LD="${LD-ld} -m elf64_sparc"
10621 ;;
10622 esac
10623 ;;
10624 esac
10625 fi
10626 rm -rf conftest*
10627 ;;
10628
10629*-*-sco3.2v5*)
10630 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10631 SAVE_CFLAGS="$CFLAGS"
10632 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +000010633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000010634$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010635if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010636 $as_echo_n "(cached) " >&6
10637else
10638 ac_ext=c
10639ac_cpp='$CPP $CPPFLAGS'
10640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10642ac_compiler_gnu=$ac_cv_c_compiler_gnu
10643
cristy8b350f62009-11-15 23:12:43 +000010644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010645/* end confdefs.h. */
10646
10647int
10648main ()
10649{
10650
10651 ;
10652 return 0;
10653}
10654_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010655if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010656 lt_cv_cc_needs_belf=yes
10657else
cristy8b350f62009-11-15 23:12:43 +000010658 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +000010659fi
cristy8b350f62009-11-15 23:12:43 +000010660rm -f core conftest.err conftest.$ac_objext \
10661 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010662 ac_ext=c
10663ac_cpp='$CPP $CPPFLAGS'
10664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10666ac_compiler_gnu=$ac_cv_c_compiler_gnu
10667
10668fi
cristy8b350f62009-11-15 23:12:43 +000010669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000010670$as_echo "$lt_cv_cc_needs_belf" >&6; }
10671 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10672 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10673 CFLAGS="$SAVE_CFLAGS"
10674 fi
10675 ;;
10676sparc*-*solaris*)
10677 # Find out which ABI we are using.
10678 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010680 (eval $ac_compile) 2>&5
10681 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10683 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010684 case `/usr/bin/file conftest.o` in
10685 *64-bit*)
10686 case $lt_cv_prog_gnu_ld in
10687 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10688 *)
10689 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10690 LD="${LD-ld} -64"
10691 fi
10692 ;;
10693 esac
10694 ;;
10695 esac
10696 fi
10697 rm -rf conftest*
10698 ;;
10699esac
10700
10701need_locks="$enable_libtool_lock"
10702
10703
10704 case $host_os in
10705 rhapsody* | darwin*)
10706 if test -n "$ac_tool_prefix"; then
10707 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10708set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010710$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010711if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010712 $as_echo_n "(cached) " >&6
10713else
10714 if test -n "$DSYMUTIL"; then
10715 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10716else
10717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718for as_dir in $PATH
10719do
10720 IFS=$as_save_IFS
10721 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010722 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10724 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +000010725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010726 break 2
10727 fi
10728done
cristy8b350f62009-11-15 23:12:43 +000010729 done
cristy3ed852e2009-09-05 21:47:34 +000010730IFS=$as_save_IFS
10731
10732fi
10733fi
10734DSYMUTIL=$ac_cv_prog_DSYMUTIL
10735if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000010736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010737$as_echo "$DSYMUTIL" >&6; }
10738else
cristy8b350f62009-11-15 23:12:43 +000010739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010740$as_echo "no" >&6; }
10741fi
10742
10743
10744fi
10745if test -z "$ac_cv_prog_DSYMUTIL"; then
10746 ac_ct_DSYMUTIL=$DSYMUTIL
10747 # Extract the first word of "dsymutil", so it can be a program name with args.
10748set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010750$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010751if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010752 $as_echo_n "(cached) " >&6
10753else
10754 if test -n "$ac_ct_DSYMUTIL"; then
10755 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10756else
10757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10758for as_dir in $PATH
10759do
10760 IFS=$as_save_IFS
10761 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010762 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10764 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +000010765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010766 break 2
10767 fi
10768done
cristy8b350f62009-11-15 23:12:43 +000010769 done
cristy3ed852e2009-09-05 21:47:34 +000010770IFS=$as_save_IFS
10771
10772fi
10773fi
10774ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10775if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000010776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010777$as_echo "$ac_ct_DSYMUTIL" >&6; }
10778else
cristy8b350f62009-11-15 23:12:43 +000010779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010780$as_echo "no" >&6; }
10781fi
10782
10783 if test "x$ac_ct_DSYMUTIL" = x; then
10784 DSYMUTIL=":"
10785 else
10786 case $cross_compiling:$ac_tool_warned in
10787yes:)
cristy8b350f62009-11-15 23:12:43 +000010788{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10790ac_tool_warned=yes ;;
10791esac
10792 DSYMUTIL=$ac_ct_DSYMUTIL
10793 fi
10794else
10795 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10796fi
10797
10798 if test -n "$ac_tool_prefix"; then
10799 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10800set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010802$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010803if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010804 $as_echo_n "(cached) " >&6
10805else
10806 if test -n "$NMEDIT"; then
10807 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10808else
10809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10810for as_dir in $PATH
10811do
10812 IFS=$as_save_IFS
10813 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010814 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10816 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +000010817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010818 break 2
10819 fi
10820done
cristy8b350f62009-11-15 23:12:43 +000010821 done
cristy3ed852e2009-09-05 21:47:34 +000010822IFS=$as_save_IFS
10823
10824fi
10825fi
10826NMEDIT=$ac_cv_prog_NMEDIT
10827if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000010828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000010829$as_echo "$NMEDIT" >&6; }
10830else
cristy8b350f62009-11-15 23:12:43 +000010831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010832$as_echo "no" >&6; }
10833fi
10834
10835
10836fi
10837if test -z "$ac_cv_prog_NMEDIT"; then
10838 ac_ct_NMEDIT=$NMEDIT
10839 # Extract the first word of "nmedit", so it can be a program name with args.
10840set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010842$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010843if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010844 $as_echo_n "(cached) " >&6
10845else
10846 if test -n "$ac_ct_NMEDIT"; then
10847 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10848else
10849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10850for as_dir in $PATH
10851do
10852 IFS=$as_save_IFS
10853 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010854 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10856 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +000010857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010858 break 2
10859 fi
10860done
cristy8b350f62009-11-15 23:12:43 +000010861 done
cristy3ed852e2009-09-05 21:47:34 +000010862IFS=$as_save_IFS
10863
10864fi
10865fi
10866ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10867if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000010868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000010869$as_echo "$ac_ct_NMEDIT" >&6; }
10870else
cristy8b350f62009-11-15 23:12:43 +000010871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010872$as_echo "no" >&6; }
10873fi
10874
10875 if test "x$ac_ct_NMEDIT" = x; then
10876 NMEDIT=":"
10877 else
10878 case $cross_compiling:$ac_tool_warned in
10879yes:)
cristy8b350f62009-11-15 23:12:43 +000010880{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10882ac_tool_warned=yes ;;
10883esac
10884 NMEDIT=$ac_ct_NMEDIT
10885 fi
10886else
10887 NMEDIT="$ac_cv_prog_NMEDIT"
10888fi
10889
10890 if test -n "$ac_tool_prefix"; then
10891 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10892set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010894$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010895if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010896 $as_echo_n "(cached) " >&6
10897else
10898 if test -n "$LIPO"; then
10899 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10900else
10901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10902for as_dir in $PATH
10903do
10904 IFS=$as_save_IFS
10905 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010906 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10908 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +000010909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010910 break 2
10911 fi
10912done
cristy8b350f62009-11-15 23:12:43 +000010913 done
cristy3ed852e2009-09-05 21:47:34 +000010914IFS=$as_save_IFS
10915
10916fi
10917fi
10918LIPO=$ac_cv_prog_LIPO
10919if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000010920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000010921$as_echo "$LIPO" >&6; }
10922else
cristy8b350f62009-11-15 23:12:43 +000010923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010924$as_echo "no" >&6; }
10925fi
10926
10927
10928fi
10929if test -z "$ac_cv_prog_LIPO"; then
10930 ac_ct_LIPO=$LIPO
10931 # Extract the first word of "lipo", so it can be a program name with args.
10932set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010934$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010935if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010936 $as_echo_n "(cached) " >&6
10937else
10938 if test -n "$ac_ct_LIPO"; then
10939 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10940else
10941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10942for as_dir in $PATH
10943do
10944 IFS=$as_save_IFS
10945 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010946 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10948 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +000010949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010950 break 2
10951 fi
10952done
cristy8b350f62009-11-15 23:12:43 +000010953 done
cristy3ed852e2009-09-05 21:47:34 +000010954IFS=$as_save_IFS
10955
10956fi
10957fi
10958ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10959if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000010960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000010961$as_echo "$ac_ct_LIPO" >&6; }
10962else
cristy8b350f62009-11-15 23:12:43 +000010963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010964$as_echo "no" >&6; }
10965fi
10966
10967 if test "x$ac_ct_LIPO" = x; then
10968 LIPO=":"
10969 else
10970 case $cross_compiling:$ac_tool_warned in
10971yes:)
cristy8b350f62009-11-15 23:12:43 +000010972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10974ac_tool_warned=yes ;;
10975esac
10976 LIPO=$ac_ct_LIPO
10977 fi
10978else
10979 LIPO="$ac_cv_prog_LIPO"
10980fi
10981
10982 if test -n "$ac_tool_prefix"; then
10983 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10984set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010986$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010987if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010988 $as_echo_n "(cached) " >&6
10989else
10990 if test -n "$OTOOL"; then
10991 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10992else
10993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10994for as_dir in $PATH
10995do
10996 IFS=$as_save_IFS
10997 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010998 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11000 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +000011001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011002 break 2
11003 fi
11004done
cristy8b350f62009-11-15 23:12:43 +000011005 done
cristy3ed852e2009-09-05 21:47:34 +000011006IFS=$as_save_IFS
11007
11008fi
11009fi
11010OTOOL=$ac_cv_prog_OTOOL
11011if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011013$as_echo "$OTOOL" >&6; }
11014else
cristy8b350f62009-11-15 23:12:43 +000011015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011016$as_echo "no" >&6; }
11017fi
11018
11019
11020fi
11021if test -z "$ac_cv_prog_OTOOL"; then
11022 ac_ct_OTOOL=$OTOOL
11023 # Extract the first word of "otool", so it can be a program name with args.
11024set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011026$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011027if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011028 $as_echo_n "(cached) " >&6
11029else
11030 if test -n "$ac_ct_OTOOL"; then
11031 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11032else
11033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11034for as_dir in $PATH
11035do
11036 IFS=$as_save_IFS
11037 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011038 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11040 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +000011041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011042 break 2
11043 fi
11044done
cristy8b350f62009-11-15 23:12:43 +000011045 done
cristy3ed852e2009-09-05 21:47:34 +000011046IFS=$as_save_IFS
11047
11048fi
11049fi
11050ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11051if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011053$as_echo "$ac_ct_OTOOL" >&6; }
11054else
cristy8b350f62009-11-15 23:12:43 +000011055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011056$as_echo "no" >&6; }
11057fi
11058
11059 if test "x$ac_ct_OTOOL" = x; then
11060 OTOOL=":"
11061 else
11062 case $cross_compiling:$ac_tool_warned in
11063yes:)
cristy8b350f62009-11-15 23:12:43 +000011064{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11066ac_tool_warned=yes ;;
11067esac
11068 OTOOL=$ac_ct_OTOOL
11069 fi
11070else
11071 OTOOL="$ac_cv_prog_OTOOL"
11072fi
11073
11074 if test -n "$ac_tool_prefix"; then
11075 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11076set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011078$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011079if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011080 $as_echo_n "(cached) " >&6
11081else
11082 if test -n "$OTOOL64"; then
11083 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11084else
11085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11086for as_dir in $PATH
11087do
11088 IFS=$as_save_IFS
11089 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011090 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11092 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000011093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011094 break 2
11095 fi
11096done
cristy8b350f62009-11-15 23:12:43 +000011097 done
cristy3ed852e2009-09-05 21:47:34 +000011098IFS=$as_save_IFS
11099
11100fi
11101fi
11102OTOOL64=$ac_cv_prog_OTOOL64
11103if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011105$as_echo "$OTOOL64" >&6; }
11106else
cristy8b350f62009-11-15 23:12:43 +000011107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011108$as_echo "no" >&6; }
11109fi
11110
11111
11112fi
11113if test -z "$ac_cv_prog_OTOOL64"; then
11114 ac_ct_OTOOL64=$OTOOL64
11115 # Extract the first word of "otool64", so it can be a program name with args.
11116set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011118$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011119if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011120 $as_echo_n "(cached) " >&6
11121else
11122 if test -n "$ac_ct_OTOOL64"; then
11123 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11124else
11125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11126for as_dir in $PATH
11127do
11128 IFS=$as_save_IFS
11129 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011130 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11132 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000011133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011134 break 2
11135 fi
11136done
cristy8b350f62009-11-15 23:12:43 +000011137 done
cristy3ed852e2009-09-05 21:47:34 +000011138IFS=$as_save_IFS
11139
11140fi
11141fi
11142ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11143if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011145$as_echo "$ac_ct_OTOOL64" >&6; }
11146else
cristy8b350f62009-11-15 23:12:43 +000011147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011148$as_echo "no" >&6; }
11149fi
11150
11151 if test "x$ac_ct_OTOOL64" = x; then
11152 OTOOL64=":"
11153 else
11154 case $cross_compiling:$ac_tool_warned in
11155yes:)
cristy8b350f62009-11-15 23:12:43 +000011156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11158ac_tool_warned=yes ;;
11159esac
11160 OTOOL64=$ac_ct_OTOOL64
11161 fi
11162else
11163 OTOOL64="$ac_cv_prog_OTOOL64"
11164fi
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
cristy8b350f62009-11-15 23:12:43 +000011192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011193$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011194if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011195 $as_echo_n "(cached) " >&6
11196else
11197 lt_cv_apple_cc_single_mod=no
11198 if test -z "${LT_MULTI_MODULE}"; then
11199 # By default we will add the -single_module flag. You can override
11200 # by either setting the environment variable LT_MULTI_MODULE
11201 # non-empty at configure time, or by adding -multi_module to the
11202 # link flags.
11203 rm -rf libconftest.dylib*
11204 echo "int foo(void){return 1;}" > conftest.c
11205 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11206-dynamiclib -Wl,-single_module conftest.c" >&5
11207 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11208 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11209 _lt_result=$?
11210 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11211 lt_cv_apple_cc_single_mod=yes
11212 else
11213 cat conftest.err >&5
11214 fi
11215 rm -rf libconftest.dylib*
11216 rm -f conftest.*
11217 fi
11218fi
cristy8b350f62009-11-15 23:12:43 +000011219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000011220$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011222$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011223if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011224 $as_echo_n "(cached) " >&6
11225else
11226 lt_cv_ld_exported_symbols_list=no
11227 save_LDFLAGS=$LDFLAGS
11228 echo "_main" > conftest.sym
11229 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000011230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011231/* end confdefs.h. */
11232
11233int
11234main ()
11235{
11236
11237 ;
11238 return 0;
11239}
11240_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011241if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011242 lt_cv_ld_exported_symbols_list=yes
11243else
cristy8b350f62009-11-15 23:12:43 +000011244 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000011245fi
cristy8b350f62009-11-15 23:12:43 +000011246rm -f core conftest.err conftest.$ac_objext \
11247 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011248 LDFLAGS="$save_LDFLAGS"
11249
11250fi
cristy8b350f62009-11-15 23:12:43 +000011251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000011252$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000011253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11254$as_echo_n "checking for -force_load linker flag... " >&6; }
11255if test "${lt_cv_ld_force_load+set}" = set; then :
11256 $as_echo_n "(cached) " >&6
11257else
11258 lt_cv_ld_force_load=no
11259 cat > conftest.c << _LT_EOF
11260int forced_loaded() { return 2;}
11261_LT_EOF
11262 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11263 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11264 echo "$AR cru libconftest.a conftest.o" >&5
11265 $AR cru libconftest.a conftest.o 2>&5
11266 echo "$RANLIB libconftest.a" >&5
11267 $RANLIB libconftest.a 2>&5
11268 cat > conftest.c << _LT_EOF
11269int main() { return 0;}
11270_LT_EOF
11271 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11272 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11273 _lt_result=$?
11274 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11275 lt_cv_ld_force_load=yes
11276 else
11277 cat conftest.err >&5
11278 fi
11279 rm -f conftest.err libconftest.a conftest conftest.c
11280 rm -rf conftest.dSYM
11281
11282fi
11283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11284$as_echo "$lt_cv_ld_force_load" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011285 case $host_os in
11286 rhapsody* | darwin1.[012])
11287 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11288 darwin1.*)
11289 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11290 darwin*) # darwin 5.x on
11291 # if running on 10.5 or later, the deployment target defaults
11292 # to the OS version, if on x86, and 10.4, the deployment
11293 # target defaults to 10.4. Don't you love it?
11294 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11295 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11296 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11297 10.[012]*)
11298 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11299 10.*)
11300 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11301 esac
11302 ;;
11303 esac
11304 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11305 _lt_dar_single_mod='$single_module'
11306 fi
11307 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11308 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11309 else
11310 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11311 fi
cristyfd9dcd42010-08-08 18:07:02 +000011312 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy3ed852e2009-09-05 21:47:34 +000011313 _lt_dsymutil='~$DSYMUTIL $lib || :'
11314 else
11315 _lt_dsymutil=
11316 fi
11317 ;;
11318 esac
11319
cristy3ed852e2009-09-05 21:47:34 +000011320for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000011321do :
11322 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11323"
11324if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011325 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011326#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000011327_ACEOF
11328
11329fi
11330
11331done
11332
11333
11334
cristy3ed852e2009-09-05 21:47:34 +000011335
11336
11337
11338# Set options
11339enable_win32_dll=yes
11340
11341case $host in
cristyfd9dcd42010-08-08 18:07:02 +000011342*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000011343 if test -n "$ac_tool_prefix"; then
11344 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11345set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011347$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011348if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011349 $as_echo_n "(cached) " >&6
11350else
11351 if test -n "$AS"; then
11352 ac_cv_prog_AS="$AS" # Let the user override the test.
11353else
11354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355for as_dir in $PATH
11356do
11357 IFS=$as_save_IFS
11358 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011359 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11361 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000011362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011363 break 2
11364 fi
11365done
cristy8b350f62009-11-15 23:12:43 +000011366 done
cristy3ed852e2009-09-05 21:47:34 +000011367IFS=$as_save_IFS
11368
11369fi
11370fi
11371AS=$ac_cv_prog_AS
11372if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000011373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011374$as_echo "$AS" >&6; }
11375else
cristy8b350f62009-11-15 23:12:43 +000011376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011377$as_echo "no" >&6; }
11378fi
11379
11380
11381fi
11382if test -z "$ac_cv_prog_AS"; then
11383 ac_ct_AS=$AS
11384 # Extract the first word of "as", so it can be a program name with args.
11385set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011387$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011388if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011389 $as_echo_n "(cached) " >&6
11390else
11391 if test -n "$ac_ct_AS"; then
11392 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11393else
11394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11395for as_dir in $PATH
11396do
11397 IFS=$as_save_IFS
11398 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011399 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11401 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000011402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011403 break 2
11404 fi
11405done
cristy8b350f62009-11-15 23:12:43 +000011406 done
cristy3ed852e2009-09-05 21:47:34 +000011407IFS=$as_save_IFS
11408
11409fi
11410fi
11411ac_ct_AS=$ac_cv_prog_ac_ct_AS
11412if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000011413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011414$as_echo "$ac_ct_AS" >&6; }
11415else
cristy8b350f62009-11-15 23:12:43 +000011416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011417$as_echo "no" >&6; }
11418fi
11419
11420 if test "x$ac_ct_AS" = x; then
11421 AS="false"
11422 else
11423 case $cross_compiling:$ac_tool_warned in
11424yes:)
cristy8b350f62009-11-15 23:12:43 +000011425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11427ac_tool_warned=yes ;;
11428esac
11429 AS=$ac_ct_AS
11430 fi
11431else
11432 AS="$ac_cv_prog_AS"
11433fi
11434
11435 if test -n "$ac_tool_prefix"; then
11436 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11437set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011439$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011440if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011441 $as_echo_n "(cached) " >&6
11442else
11443 if test -n "$DLLTOOL"; then
11444 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11445else
11446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11447for as_dir in $PATH
11448do
11449 IFS=$as_save_IFS
11450 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011451 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11453 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000011454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011455 break 2
11456 fi
11457done
cristy8b350f62009-11-15 23:12:43 +000011458 done
cristy3ed852e2009-09-05 21:47:34 +000011459IFS=$as_save_IFS
11460
11461fi
11462fi
11463DLLTOOL=$ac_cv_prog_DLLTOOL
11464if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011466$as_echo "$DLLTOOL" >&6; }
11467else
cristy8b350f62009-11-15 23:12:43 +000011468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011469$as_echo "no" >&6; }
11470fi
11471
11472
11473fi
11474if test -z "$ac_cv_prog_DLLTOOL"; then
11475 ac_ct_DLLTOOL=$DLLTOOL
11476 # Extract the first word of "dlltool", so it can be a program name with args.
11477set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011479$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011480if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011481 $as_echo_n "(cached) " >&6
11482else
11483 if test -n "$ac_ct_DLLTOOL"; then
11484 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11485else
11486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11487for as_dir in $PATH
11488do
11489 IFS=$as_save_IFS
11490 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011491 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11493 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000011494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011495 break 2
11496 fi
11497done
cristy8b350f62009-11-15 23:12:43 +000011498 done
cristy3ed852e2009-09-05 21:47:34 +000011499IFS=$as_save_IFS
11500
11501fi
11502fi
11503ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11504if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011506$as_echo "$ac_ct_DLLTOOL" >&6; }
11507else
cristy8b350f62009-11-15 23:12:43 +000011508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011509$as_echo "no" >&6; }
11510fi
11511
11512 if test "x$ac_ct_DLLTOOL" = x; then
11513 DLLTOOL="false"
11514 else
11515 case $cross_compiling:$ac_tool_warned in
11516yes:)
cristy8b350f62009-11-15 23:12:43 +000011517{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011518$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11519ac_tool_warned=yes ;;
11520esac
11521 DLLTOOL=$ac_ct_DLLTOOL
11522 fi
11523else
11524 DLLTOOL="$ac_cv_prog_DLLTOOL"
11525fi
11526
11527 if test -n "$ac_tool_prefix"; then
11528 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11529set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011531$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011532if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011533 $as_echo_n "(cached) " >&6
11534else
11535 if test -n "$OBJDUMP"; then
11536 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11537else
11538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11539for as_dir in $PATH
11540do
11541 IFS=$as_save_IFS
11542 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011543 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11545 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000011546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011547 break 2
11548 fi
11549done
cristy8b350f62009-11-15 23:12:43 +000011550 done
cristy3ed852e2009-09-05 21:47:34 +000011551IFS=$as_save_IFS
11552
11553fi
11554fi
11555OBJDUMP=$ac_cv_prog_OBJDUMP
11556if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011558$as_echo "$OBJDUMP" >&6; }
11559else
cristy8b350f62009-11-15 23:12:43 +000011560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011561$as_echo "no" >&6; }
11562fi
11563
11564
11565fi
11566if test -z "$ac_cv_prog_OBJDUMP"; then
11567 ac_ct_OBJDUMP=$OBJDUMP
11568 # Extract the first word of "objdump", so it can be a program name with args.
11569set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011571$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011572if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011573 $as_echo_n "(cached) " >&6
11574else
11575 if test -n "$ac_ct_OBJDUMP"; then
11576 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11577else
11578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11579for as_dir in $PATH
11580do
11581 IFS=$as_save_IFS
11582 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011583 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11585 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000011586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011587 break 2
11588 fi
11589done
cristy8b350f62009-11-15 23:12:43 +000011590 done
cristy3ed852e2009-09-05 21:47:34 +000011591IFS=$as_save_IFS
11592
11593fi
11594fi
11595ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11596if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011598$as_echo "$ac_ct_OBJDUMP" >&6; }
11599else
cristy8b350f62009-11-15 23:12:43 +000011600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011601$as_echo "no" >&6; }
11602fi
11603
11604 if test "x$ac_ct_OBJDUMP" = x; then
11605 OBJDUMP="false"
11606 else
11607 case $cross_compiling:$ac_tool_warned in
11608yes:)
cristy8b350f62009-11-15 23:12:43 +000011609{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011610$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11611ac_tool_warned=yes ;;
11612esac
11613 OBJDUMP=$ac_ct_OBJDUMP
11614 fi
11615else
11616 OBJDUMP="$ac_cv_prog_OBJDUMP"
11617fi
11618
11619 ;;
11620esac
11621
11622test -z "$AS" && AS=as
11623
11624
11625
11626
11627
11628test -z "$DLLTOOL" && DLLTOOL=dlltool
11629
11630
11631
11632
11633
11634test -z "$OBJDUMP" && OBJDUMP=objdump
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000011645if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011646 enableval=$enable_shared; p=${PACKAGE-default}
11647 case $enableval in
11648 yes) enable_shared=yes ;;
11649 no) enable_shared=no ;;
11650 *)
11651 enable_shared=no
11652 # Look at the argument we got. We use all the common list separators.
11653 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11654 for pkg in $enableval; do
11655 IFS="$lt_save_ifs"
11656 if test "X$pkg" = "X$p"; then
11657 enable_shared=yes
11658 fi
11659 done
11660 IFS="$lt_save_ifs"
11661 ;;
11662 esac
11663else
11664 enable_shared=yes
11665fi
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000011676if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011677 enableval=$enable_static; p=${PACKAGE-default}
11678 case $enableval in
11679 yes) enable_static=yes ;;
11680 no) enable_static=no ;;
11681 *)
11682 enable_static=no
11683 # Look at the argument we got. We use all the common list separators.
11684 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11685 for pkg in $enableval; do
11686 IFS="$lt_save_ifs"
11687 if test "X$pkg" = "X$p"; then
11688 enable_static=yes
11689 fi
11690 done
11691 IFS="$lt_save_ifs"
11692 ;;
11693 esac
11694else
11695 enable_static=yes
11696fi
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000011708if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011709 withval=$with_pic; pic_mode="$withval"
11710else
11711 pic_mode=default
11712fi
11713
11714
11715test -z "$pic_mode" && pic_mode=default
11716
11717
11718
11719
11720
11721
11722
11723 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000011724if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011725 enableval=$enable_fast_install; p=${PACKAGE-default}
11726 case $enableval in
11727 yes) enable_fast_install=yes ;;
11728 no) enable_fast_install=no ;;
11729 *)
11730 enable_fast_install=no
11731 # Look at the argument we got. We use all the common list separators.
11732 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11733 for pkg in $enableval; do
11734 IFS="$lt_save_ifs"
11735 if test "X$pkg" = "X$p"; then
11736 enable_fast_install=yes
11737 fi
11738 done
11739 IFS="$lt_save_ifs"
11740 ;;
11741 esac
11742else
11743 enable_fast_install=yes
11744fi
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756# This can be used to rebuild libtool when needed
11757LIBTOOL_DEPS="$ltmain"
11758
11759# Always use our own libtool.
11760LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
cristyfd9dcd42010-08-08 18:07:02 +000011786
cristy3ed852e2009-09-05 21:47:34 +000011787test -z "$LN_S" && LN_S="ln -s"
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802if test -n "${ZSH_VERSION+set}" ; then
11803 setopt NO_GLOB_SUBST
11804fi
11805
cristy8b350f62009-11-15 23:12:43 +000011806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000011807$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011808if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011809 $as_echo_n "(cached) " >&6
11810else
11811 rm -f .libs 2>/dev/null
11812mkdir .libs 2>/dev/null
11813if test -d .libs; then
11814 lt_cv_objdir=.libs
11815else
11816 # MS-DOS does not allow filenames that begin with a dot.
11817 lt_cv_objdir=_libs
11818fi
11819rmdir .libs 2>/dev/null
11820fi
cristy8b350f62009-11-15 23:12:43 +000011821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000011822$as_echo "$lt_cv_objdir" >&6; }
11823objdir=$lt_cv_objdir
11824
11825
11826
11827
11828
11829cat >>confdefs.h <<_ACEOF
11830#define LT_OBJDIR "$lt_cv_objdir/"
11831_ACEOF
11832
11833
11834
11835
cristy3ed852e2009-09-05 21:47:34 +000011836case $host_os in
11837aix3*)
11838 # AIX sometimes has problems with the GCC collect2 program. For some
11839 # reason, if we set the COLLECT_NAMES environment variable, the problems
11840 # vanish in a puff of smoke.
11841 if test "X${COLLECT_NAMES+set}" != Xset; then
11842 COLLECT_NAMES=
11843 export COLLECT_NAMES
11844 fi
11845 ;;
11846esac
11847
cristy3ed852e2009-09-05 21:47:34 +000011848# Global variables:
11849ofile=libtool
11850can_build_shared=yes
11851
11852# All known linkers require a `.a' archive for static linking (except MSVC,
11853# which needs '.lib').
11854libext=a
11855
11856with_gnu_ld="$lt_cv_prog_gnu_ld"
11857
11858old_CC="$CC"
11859old_CFLAGS="$CFLAGS"
11860
11861# Set sane defaults for various variables
11862test -z "$CC" && CC=cc
11863test -z "$LTCC" && LTCC=$CC
11864test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11865test -z "$LD" && LD=ld
11866test -z "$ac_objext" && ac_objext=o
11867
11868for cc_temp in $compiler""; do
11869 case $cc_temp in
11870 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11871 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11872 \-*) ;;
11873 *) break;;
11874 esac
11875done
cristyfd9dcd42010-08-08 18:07:02 +000011876cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000011877
11878
11879# Only perform the check for file, if the check method requires it
11880test -z "$MAGIC_CMD" && MAGIC_CMD=file
11881case $deplibs_check_method in
11882file_magic*)
11883 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000011884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000011885$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011886if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011887 $as_echo_n "(cached) " >&6
11888else
11889 case $MAGIC_CMD in
11890[\\/*] | ?:[\\/]*)
11891 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11892 ;;
11893*)
11894 lt_save_MAGIC_CMD="$MAGIC_CMD"
11895 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11896 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11897 for ac_dir in $ac_dummy; do
11898 IFS="$lt_save_ifs"
11899 test -z "$ac_dir" && ac_dir=.
11900 if test -f $ac_dir/${ac_tool_prefix}file; then
11901 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11902 if test -n "$file_magic_test_file"; then
11903 case $deplibs_check_method in
11904 "file_magic "*)
11905 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11906 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11907 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11908 $EGREP "$file_magic_regex" > /dev/null; then
11909 :
11910 else
11911 cat <<_LT_EOF 1>&2
11912
11913*** Warning: the command libtool uses to detect shared libraries,
11914*** $file_magic_cmd, produces output that libtool cannot recognize.
11915*** The result is that libtool may fail to recognize shared libraries
11916*** as such. This will affect the creation of libtool libraries that
11917*** depend on shared libraries, but programs linked with such libtool
11918*** libraries will work regardless of this problem. Nevertheless, you
11919*** may want to report the problem to your system manager and/or to
11920*** bug-libtool@gnu.org
11921
11922_LT_EOF
11923 fi ;;
11924 esac
11925 fi
11926 break
11927 fi
11928 done
11929 IFS="$lt_save_ifs"
11930 MAGIC_CMD="$lt_save_MAGIC_CMD"
11931 ;;
11932esac
11933fi
11934
11935MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11936if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000011937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000011938$as_echo "$MAGIC_CMD" >&6; }
11939else
cristy8b350f62009-11-15 23:12:43 +000011940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011941$as_echo "no" >&6; }
11942fi
11943
11944
11945
11946
11947
11948if test -z "$lt_cv_path_MAGIC_CMD"; then
11949 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000011950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000011951$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011952if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011953 $as_echo_n "(cached) " >&6
11954else
11955 case $MAGIC_CMD in
11956[\\/*] | ?:[\\/]*)
11957 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11958 ;;
11959*)
11960 lt_save_MAGIC_CMD="$MAGIC_CMD"
11961 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11962 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11963 for ac_dir in $ac_dummy; do
11964 IFS="$lt_save_ifs"
11965 test -z "$ac_dir" && ac_dir=.
11966 if test -f $ac_dir/file; then
11967 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11968 if test -n "$file_magic_test_file"; then
11969 case $deplibs_check_method in
11970 "file_magic "*)
11971 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11972 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11973 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11974 $EGREP "$file_magic_regex" > /dev/null; then
11975 :
11976 else
11977 cat <<_LT_EOF 1>&2
11978
11979*** Warning: the command libtool uses to detect shared libraries,
11980*** $file_magic_cmd, produces output that libtool cannot recognize.
11981*** The result is that libtool may fail to recognize shared libraries
11982*** as such. This will affect the creation of libtool libraries that
11983*** depend on shared libraries, but programs linked with such libtool
11984*** libraries will work regardless of this problem. Nevertheless, you
11985*** may want to report the problem to your system manager and/or to
11986*** bug-libtool@gnu.org
11987
11988_LT_EOF
11989 fi ;;
11990 esac
11991 fi
11992 break
11993 fi
11994 done
11995 IFS="$lt_save_ifs"
11996 MAGIC_CMD="$lt_save_MAGIC_CMD"
11997 ;;
11998esac
11999fi
12000
12001MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12002if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012004$as_echo "$MAGIC_CMD" >&6; }
12005else
cristy8b350f62009-11-15 23:12:43 +000012006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012007$as_echo "no" >&6; }
12008fi
12009
12010
12011 else
12012 MAGIC_CMD=:
12013 fi
12014fi
12015
12016 fi
12017 ;;
12018esac
12019
12020# Use C for the default configuration in the libtool script
12021
12022lt_save_CC="$CC"
12023ac_ext=c
12024ac_cpp='$CPP $CPPFLAGS'
12025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12027ac_compiler_gnu=$ac_cv_c_compiler_gnu
12028
12029
12030# Source file extension for C test sources.
12031ac_ext=c
12032
12033# Object file extension for compiled C test sources.
12034objext=o
12035objext=$objext
12036
12037# Code to be used in simple compile tests
12038lt_simple_compile_test_code="int some_variable = 0;"
12039
12040# Code to be used in simple link tests
12041lt_simple_link_test_code='int main(){return(0);}'
12042
12043
12044
12045
12046
12047
12048
12049# If no C compiler was specified, use CC.
12050LTCC=${LTCC-"$CC"}
12051
12052# If no C compiler flags were specified, use CFLAGS.
12053LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12054
12055# Allow CC to be a program name with arguments.
12056compiler=$CC
12057
12058# Save the default compiler, since it gets overwritten when the other
12059# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12060compiler_DEFAULT=$CC
12061
12062# save warnings/boilerplate of simple test code
12063ac_outfile=conftest.$ac_objext
12064echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12065eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12066_lt_compiler_boilerplate=`cat conftest.err`
12067$RM conftest*
12068
12069ac_outfile=conftest.$ac_objext
12070echo "$lt_simple_link_test_code" >conftest.$ac_ext
12071eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12072_lt_linker_boilerplate=`cat conftest.err`
12073$RM -r conftest*
12074
12075
12076## CAVEAT EMPTOR:
12077## There is no encapsulation within the following macros, do not change
12078## the running order or otherwise move them around unless you know exactly
12079## what you are doing...
12080if test -n "$compiler"; then
12081
12082lt_prog_compiler_no_builtin_flag=
12083
12084if test "$GCC" = yes; then
cristyfd9dcd42010-08-08 18:07:02 +000012085 case $cc_basename in
12086 nvcc*)
12087 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12088 *)
12089 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12090 esac
cristy3ed852e2009-09-05 21:47:34 +000012091
cristy8b350f62009-11-15 23:12:43 +000012092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012093$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012094if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012095 $as_echo_n "(cached) " >&6
12096else
12097 lt_cv_prog_compiler_rtti_exceptions=no
12098 ac_outfile=conftest.$ac_objext
12099 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12100 lt_compiler_flag="-fno-rtti -fno-exceptions"
12101 # Insert the option either (1) after the last *FLAGS variable, or
12102 # (2) before a word containing "conftest.", or (3) at the end.
12103 # Note that $ac_compile itself does not contain backslashes and begins
12104 # with a dollar sign (not a hyphen), so the echo should work correctly.
12105 # The option is referenced via a variable to avoid confusing sed.
12106 lt_compile=`echo "$ac_compile" | $SED \
12107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12109 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000012110 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012111 (eval "$lt_compile" 2>conftest.err)
12112 ac_status=$?
12113 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000012114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012115 if (exit $ac_status) && test -s "$ac_outfile"; then
12116 # The compiler can only warn and ignore the option if not recognized
12117 # So say no if there are warnings other than the usual output.
cristyfd9dcd42010-08-08 18:07:02 +000012118 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012119 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12120 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12121 lt_cv_prog_compiler_rtti_exceptions=yes
12122 fi
12123 fi
12124 $RM conftest*
12125
12126fi
cristy8b350f62009-11-15 23:12:43 +000012127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012128$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12129
12130if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12131 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12132else
12133 :
12134fi
12135
12136fi
12137
12138
12139
12140
12141
12142
12143 lt_prog_compiler_wl=
12144lt_prog_compiler_pic=
12145lt_prog_compiler_static=
12146
cristy8b350f62009-11-15 23:12:43 +000012147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000012148$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12149
12150 if test "$GCC" = yes; then
12151 lt_prog_compiler_wl='-Wl,'
12152 lt_prog_compiler_static='-static'
12153
12154 case $host_os in
12155 aix*)
12156 # All AIX code is PIC.
12157 if test "$host_cpu" = ia64; then
12158 # AIX 5 now supports IA64 processor
12159 lt_prog_compiler_static='-Bstatic'
12160 fi
12161 ;;
12162
12163 amigaos*)
12164 case $host_cpu in
12165 powerpc)
12166 # see comment about AmigaOS4 .so support
12167 lt_prog_compiler_pic='-fPIC'
12168 ;;
12169 m68k)
12170 # FIXME: we need at least 68020 code to build shared libraries, but
12171 # adding the `-m68020' flag to GCC prevents building anything better,
12172 # like `-m68040'.
12173 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12174 ;;
12175 esac
12176 ;;
12177
12178 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12179 # PIC is the default for these OSes.
12180 ;;
12181
12182 mingw* | cygwin* | pw32* | os2* | cegcc*)
12183 # This hack is so that the source file can tell whether it is being
12184 # built for inclusion in a dll (and should export symbols for example).
12185 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12186 # (--disable-auto-import) libraries
12187 lt_prog_compiler_pic='-DDLL_EXPORT'
12188 ;;
12189
12190 darwin* | rhapsody*)
12191 # PIC is the default on this platform
12192 # Common symbols not allowed in MH_DYLIB files
12193 lt_prog_compiler_pic='-fno-common'
12194 ;;
12195
cristyfd9dcd42010-08-08 18:07:02 +000012196 haiku*)
12197 # PIC is the default for Haiku.
12198 # The "-static" flag exists, but is broken.
12199 lt_prog_compiler_static=
12200 ;;
12201
cristy3ed852e2009-09-05 21:47:34 +000012202 hpux*)
12203 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12204 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12205 # sets the default TLS model and affects inlining.
12206 case $host_cpu in
12207 hppa*64*)
12208 # +Z the default
12209 ;;
12210 *)
12211 lt_prog_compiler_pic='-fPIC'
12212 ;;
12213 esac
12214 ;;
12215
12216 interix[3-9]*)
12217 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12218 # Instead, we relocate shared libraries at runtime.
12219 ;;
12220
12221 msdosdjgpp*)
12222 # Just because we use GCC doesn't mean we suddenly get shared libraries
12223 # on systems that don't support them.
12224 lt_prog_compiler_can_build_shared=no
12225 enable_shared=no
12226 ;;
12227
12228 *nto* | *qnx*)
12229 # QNX uses GNU C++, but need to define -shared option too, otherwise
12230 # it will coredump.
12231 lt_prog_compiler_pic='-fPIC -shared'
12232 ;;
12233
12234 sysv4*MP*)
12235 if test -d /usr/nec; then
12236 lt_prog_compiler_pic=-Kconform_pic
12237 fi
12238 ;;
12239
12240 *)
12241 lt_prog_compiler_pic='-fPIC'
12242 ;;
12243 esac
cristyfd9dcd42010-08-08 18:07:02 +000012244
12245 case $cc_basename in
12246 nvcc*) # Cuda Compiler Driver 2.2
12247 lt_prog_compiler_wl='-Xlinker '
12248 lt_prog_compiler_pic='-Xcompiler -fPIC'
12249 ;;
12250 esac
cristy3ed852e2009-09-05 21:47:34 +000012251 else
12252 # PORTME Check for flag to pass linker flags through the system compiler.
12253 case $host_os in
12254 aix*)
12255 lt_prog_compiler_wl='-Wl,'
12256 if test "$host_cpu" = ia64; then
12257 # AIX 5 now supports IA64 processor
12258 lt_prog_compiler_static='-Bstatic'
12259 else
12260 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12261 fi
12262 ;;
12263
12264 mingw* | cygwin* | pw32* | os2* | cegcc*)
12265 # This hack is so that the source file can tell whether it is being
12266 # built for inclusion in a dll (and should export symbols for example).
12267 lt_prog_compiler_pic='-DDLL_EXPORT'
12268 ;;
12269
12270 hpux9* | hpux10* | hpux11*)
12271 lt_prog_compiler_wl='-Wl,'
12272 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12273 # not for PA HP-UX.
12274 case $host_cpu in
12275 hppa*64*|ia64*)
12276 # +Z the default
12277 ;;
12278 *)
12279 lt_prog_compiler_pic='+Z'
12280 ;;
12281 esac
12282 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12283 lt_prog_compiler_static='${wl}-a ${wl}archive'
12284 ;;
12285
12286 irix5* | irix6* | nonstopux*)
12287 lt_prog_compiler_wl='-Wl,'
12288 # PIC (with -KPIC) is the default.
12289 lt_prog_compiler_static='-non_shared'
12290 ;;
12291
cristyfd9dcd42010-08-08 18:07:02 +000012292 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000012293 case $cc_basename in
12294 # old Intel for x86_64 which still supported -KPIC.
12295 ecc*)
12296 lt_prog_compiler_wl='-Wl,'
12297 lt_prog_compiler_pic='-KPIC'
12298 lt_prog_compiler_static='-static'
12299 ;;
12300 # icc used to be incompatible with GCC.
12301 # ICC 10 doesn't accept -KPIC any more.
12302 icc* | ifort*)
12303 lt_prog_compiler_wl='-Wl,'
12304 lt_prog_compiler_pic='-fPIC'
12305 lt_prog_compiler_static='-static'
12306 ;;
12307 # Lahey Fortran 8.1.
12308 lf95*)
12309 lt_prog_compiler_wl='-Wl,'
12310 lt_prog_compiler_pic='--shared'
12311 lt_prog_compiler_static='--static'
12312 ;;
cristyfd9dcd42010-08-08 18:07:02 +000012313 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy3ed852e2009-09-05 21:47:34 +000012314 # Portland Group compilers (*not* the Pentium gcc compiler,
12315 # which looks to be a dead project)
12316 lt_prog_compiler_wl='-Wl,'
12317 lt_prog_compiler_pic='-fpic'
12318 lt_prog_compiler_static='-Bstatic'
12319 ;;
12320 ccc*)
12321 lt_prog_compiler_wl='-Wl,'
12322 # All Alpha code is PIC.
12323 lt_prog_compiler_static='-non_shared'
12324 ;;
cristyfd9dcd42010-08-08 18:07:02 +000012325 xl* | bgxl* | bgf* | mpixl*)
12326 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy3ed852e2009-09-05 21:47:34 +000012327 lt_prog_compiler_wl='-Wl,'
12328 lt_prog_compiler_pic='-qpic'
12329 lt_prog_compiler_static='-qstaticlink'
12330 ;;
12331 *)
12332 case `$CC -V 2>&1 | sed 5q` in
cristyfd9dcd42010-08-08 18:07:02 +000012333 *Sun\ F* | *Sun*Fortran*)
12334 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12335 lt_prog_compiler_pic='-KPIC'
12336 lt_prog_compiler_static='-Bstatic'
12337 lt_prog_compiler_wl=''
12338 ;;
cristy3ed852e2009-09-05 21:47:34 +000012339 *Sun\ C*)
12340 # Sun C 5.9
12341 lt_prog_compiler_pic='-KPIC'
12342 lt_prog_compiler_static='-Bstatic'
12343 lt_prog_compiler_wl='-Wl,'
12344 ;;
cristy3ed852e2009-09-05 21:47:34 +000012345 esac
12346 ;;
12347 esac
12348 ;;
12349
12350 newsos6)
12351 lt_prog_compiler_pic='-KPIC'
12352 lt_prog_compiler_static='-Bstatic'
12353 ;;
12354
12355 *nto* | *qnx*)
12356 # QNX uses GNU C++, but need to define -shared option too, otherwise
12357 # it will coredump.
12358 lt_prog_compiler_pic='-fPIC -shared'
12359 ;;
12360
12361 osf3* | osf4* | osf5*)
12362 lt_prog_compiler_wl='-Wl,'
12363 # All OSF/1 code is PIC.
12364 lt_prog_compiler_static='-non_shared'
12365 ;;
12366
12367 rdos*)
12368 lt_prog_compiler_static='-non_shared'
12369 ;;
12370
12371 solaris*)
12372 lt_prog_compiler_pic='-KPIC'
12373 lt_prog_compiler_static='-Bstatic'
12374 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000012375 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy3ed852e2009-09-05 21:47:34 +000012376 lt_prog_compiler_wl='-Qoption ld ';;
12377 *)
12378 lt_prog_compiler_wl='-Wl,';;
12379 esac
12380 ;;
12381
12382 sunos4*)
12383 lt_prog_compiler_wl='-Qoption ld '
12384 lt_prog_compiler_pic='-PIC'
12385 lt_prog_compiler_static='-Bstatic'
12386 ;;
12387
12388 sysv4 | sysv4.2uw2* | sysv4.3*)
12389 lt_prog_compiler_wl='-Wl,'
12390 lt_prog_compiler_pic='-KPIC'
12391 lt_prog_compiler_static='-Bstatic'
12392 ;;
12393
12394 sysv4*MP*)
12395 if test -d /usr/nec ;then
12396 lt_prog_compiler_pic='-Kconform_pic'
12397 lt_prog_compiler_static='-Bstatic'
12398 fi
12399 ;;
12400
12401 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12402 lt_prog_compiler_wl='-Wl,'
12403 lt_prog_compiler_pic='-KPIC'
12404 lt_prog_compiler_static='-Bstatic'
12405 ;;
12406
12407 unicos*)
12408 lt_prog_compiler_wl='-Wl,'
12409 lt_prog_compiler_can_build_shared=no
12410 ;;
12411
12412 uts4*)
12413 lt_prog_compiler_pic='-pic'
12414 lt_prog_compiler_static='-Bstatic'
12415 ;;
12416
12417 *)
12418 lt_prog_compiler_can_build_shared=no
12419 ;;
12420 esac
12421 fi
12422
12423case $host_os in
12424 # For platforms which do not support PIC, -DPIC is meaningless:
12425 *djgpp*)
12426 lt_prog_compiler_pic=
12427 ;;
12428 *)
12429 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12430 ;;
12431esac
cristy8b350f62009-11-15 23:12:43 +000012432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000012433$as_echo "$lt_prog_compiler_pic" >&6; }
12434
12435
12436
12437
12438
12439
12440#
12441# Check to make sure the PIC flag actually works.
12442#
12443if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000012444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012445$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012446if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012447 $as_echo_n "(cached) " >&6
12448else
12449 lt_cv_prog_compiler_pic_works=no
12450 ac_outfile=conftest.$ac_objext
12451 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12452 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12453 # Insert the option either (1) after the last *FLAGS variable, or
12454 # (2) before a word containing "conftest.", or (3) at the end.
12455 # Note that $ac_compile itself does not contain backslashes and begins
12456 # with a dollar sign (not a hyphen), so the echo should work correctly.
12457 # The option is referenced via a variable to avoid confusing sed.
12458 lt_compile=`echo "$ac_compile" | $SED \
12459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12461 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000012462 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012463 (eval "$lt_compile" 2>conftest.err)
12464 ac_status=$?
12465 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000012466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012467 if (exit $ac_status) && test -s "$ac_outfile"; then
12468 # The compiler can only warn and ignore the option if not recognized
12469 # So say no if there are warnings other than the usual output.
cristyfd9dcd42010-08-08 18:07:02 +000012470 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12472 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12473 lt_cv_prog_compiler_pic_works=yes
12474 fi
12475 fi
12476 $RM conftest*
12477
12478fi
cristy8b350f62009-11-15 23:12:43 +000012479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012480$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12481
12482if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12483 case $lt_prog_compiler_pic in
12484 "" | " "*) ;;
12485 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12486 esac
12487else
12488 lt_prog_compiler_pic=
12489 lt_prog_compiler_can_build_shared=no
12490fi
12491
12492fi
12493
12494
12495
12496
12497
12498
12499#
12500# Check to make sure the static flag actually works.
12501#
12502wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000012503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012504$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012505if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012506 $as_echo_n "(cached) " >&6
12507else
12508 lt_cv_prog_compiler_static_works=no
12509 save_LDFLAGS="$LDFLAGS"
12510 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12511 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12512 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12513 # The linker can only warn and ignore the option if not recognized
12514 # So say no if there are warnings
12515 if test -s conftest.err; then
12516 # Append any errors to the config.log.
12517 cat conftest.err 1>&5
cristyfd9dcd42010-08-08 18:07:02 +000012518 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012519 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12520 if diff conftest.exp conftest.er2 >/dev/null; then
12521 lt_cv_prog_compiler_static_works=yes
12522 fi
12523 else
12524 lt_cv_prog_compiler_static_works=yes
12525 fi
12526 fi
12527 $RM -r conftest*
12528 LDFLAGS="$save_LDFLAGS"
12529
12530fi
cristy8b350f62009-11-15 23:12:43 +000012531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012532$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12533
12534if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12535 :
12536else
12537 lt_prog_compiler_static=
12538fi
12539
12540
12541
12542
12543
12544
12545
cristy8b350f62009-11-15 23:12:43 +000012546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012547$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012548if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012549 $as_echo_n "(cached) " >&6
12550else
12551 lt_cv_prog_compiler_c_o=no
12552 $RM -r conftest 2>/dev/null
12553 mkdir conftest
12554 cd conftest
12555 mkdir out
12556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12557
12558 lt_compiler_flag="-o out/conftest2.$ac_objext"
12559 # Insert the option either (1) after the last *FLAGS variable, or
12560 # (2) before a word containing "conftest.", or (3) at the end.
12561 # Note that $ac_compile itself does not contain backslashes and begins
12562 # with a dollar sign (not a hyphen), so the echo should work correctly.
12563 lt_compile=`echo "$ac_compile" | $SED \
12564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12566 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000012567 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012568 (eval "$lt_compile" 2>out/conftest.err)
12569 ac_status=$?
12570 cat out/conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000012571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012572 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12573 then
12574 # The compiler can only warn and ignore the option if not recognized
12575 # So say no if there are warnings
cristyfd9dcd42010-08-08 18:07:02 +000012576 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012577 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12578 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12579 lt_cv_prog_compiler_c_o=yes
12580 fi
12581 fi
12582 chmod u+w . 2>&5
12583 $RM conftest*
12584 # SGI C++ compiler will create directory out/ii_files/ for
12585 # template instantiation
12586 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12587 $RM out/* && rmdir out
12588 cd ..
12589 $RM -r conftest
12590 $RM conftest*
12591
12592fi
cristy8b350f62009-11-15 23:12:43 +000012593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012594$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12595
12596
12597
12598
12599
12600
cristy8b350f62009-11-15 23:12:43 +000012601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012602$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012603if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012604 $as_echo_n "(cached) " >&6
12605else
12606 lt_cv_prog_compiler_c_o=no
12607 $RM -r conftest 2>/dev/null
12608 mkdir conftest
12609 cd conftest
12610 mkdir out
12611 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12612
12613 lt_compiler_flag="-o out/conftest2.$ac_objext"
12614 # Insert the option either (1) after the last *FLAGS variable, or
12615 # (2) before a word containing "conftest.", or (3) at the end.
12616 # Note that $ac_compile itself does not contain backslashes and begins
12617 # with a dollar sign (not a hyphen), so the echo should work correctly.
12618 lt_compile=`echo "$ac_compile" | $SED \
12619 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12620 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12621 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000012622 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012623 (eval "$lt_compile" 2>out/conftest.err)
12624 ac_status=$?
12625 cat out/conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000012626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012627 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12628 then
12629 # The compiler can only warn and ignore the option if not recognized
12630 # So say no if there are warnings
cristyfd9dcd42010-08-08 18:07:02 +000012631 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012632 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12633 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12634 lt_cv_prog_compiler_c_o=yes
12635 fi
12636 fi
12637 chmod u+w . 2>&5
12638 $RM conftest*
12639 # SGI C++ compiler will create directory out/ii_files/ for
12640 # template instantiation
12641 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12642 $RM out/* && rmdir out
12643 cd ..
12644 $RM -r conftest
12645 $RM conftest*
12646
12647fi
cristy8b350f62009-11-15 23:12:43 +000012648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012649$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12650
12651
12652
12653
12654hard_links="nottested"
12655if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12656 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000012657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000012658$as_echo_n "checking if we can lock with hard links... " >&6; }
12659 hard_links=yes
12660 $RM conftest*
12661 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12662 touch conftest.a
12663 ln conftest.a conftest.b 2>&5 || hard_links=no
12664 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000012665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000012666$as_echo "$hard_links" >&6; }
12667 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000012668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cristy3ed852e2009-09-05 21:47:34 +000012669$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12670 need_locks=warn
12671 fi
12672else
12673 need_locks=no
12674fi
12675
12676
12677
12678
12679
12680
cristy8b350f62009-11-15 23:12:43 +000012681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000012682$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12683
12684 runpath_var=
12685 allow_undefined_flag=
12686 always_export_symbols=no
12687 archive_cmds=
12688 archive_expsym_cmds=
12689 compiler_needs_object=no
12690 enable_shared_with_static_runtimes=no
12691 export_dynamic_flag_spec=
12692 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12693 hardcode_automatic=no
12694 hardcode_direct=no
12695 hardcode_direct_absolute=no
12696 hardcode_libdir_flag_spec=
12697 hardcode_libdir_flag_spec_ld=
12698 hardcode_libdir_separator=
12699 hardcode_minus_L=no
12700 hardcode_shlibpath_var=unsupported
12701 inherit_rpath=no
12702 link_all_deplibs=unknown
12703 module_cmds=
12704 module_expsym_cmds=
12705 old_archive_from_new_cmds=
12706 old_archive_from_expsyms_cmds=
12707 thread_safe_flag_spec=
12708 whole_archive_flag_spec=
12709 # include_expsyms should be a list of space-separated symbols to be *always*
12710 # included in the symbol list
12711 include_expsyms=
12712 # exclude_expsyms can be an extended regexp of symbols to exclude
12713 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12714 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12715 # as well as any symbol that contains `d'.
12716 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12717 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12718 # platforms (ab)use it in PIC code, but their linkers get confused if
12719 # the symbol is explicitly referenced. Since portable code cannot
12720 # rely on this symbol name, it's probably fine to never include it in
12721 # preloaded symbol tables.
12722 # Exclude shared library initialization/finalization symbols.
12723 extract_expsyms_cmds=
12724
12725 case $host_os in
12726 cygwin* | mingw* | pw32* | cegcc*)
12727 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12728 # When not using gcc, we currently assume that we are using
12729 # Microsoft Visual C++.
12730 if test "$GCC" != yes; then
12731 with_gnu_ld=no
12732 fi
12733 ;;
12734 interix*)
12735 # we just hope/assume this is gcc and not c89 (= MSVC++)
12736 with_gnu_ld=yes
12737 ;;
12738 openbsd*)
12739 with_gnu_ld=no
12740 ;;
12741 esac
12742
12743 ld_shlibs=yes
cristyfd9dcd42010-08-08 18:07:02 +000012744
12745 # On some targets, GNU ld is compatible enough with the native linker
12746 # that we're better off using the native interface for both.
12747 lt_use_gnu_ld_interface=no
cristy3ed852e2009-09-05 21:47:34 +000012748 if test "$with_gnu_ld" = yes; then
cristyfd9dcd42010-08-08 18:07:02 +000012749 case $host_os in
12750 aix*)
12751 # The AIX port of GNU ld has always aspired to compatibility
12752 # with the native linker. However, as the warning in the GNU ld
12753 # block says, versions before 2.19.5* couldn't really create working
12754 # shared libraries, regardless of the interface used.
12755 case `$LD -v 2>&1` in
12756 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12757 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12758 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12759 *)
12760 lt_use_gnu_ld_interface=yes
12761 ;;
12762 esac
12763 ;;
12764 *)
12765 lt_use_gnu_ld_interface=yes
12766 ;;
12767 esac
12768 fi
12769
12770 if test "$lt_use_gnu_ld_interface" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000012771 # If archive_cmds runs LD, not CC, wlarc should be empty
12772 wlarc='${wl}'
12773
12774 # Set some defaults for GNU ld with shared library support. These
12775 # are reset later if shared libraries are not supported. Putting them
12776 # here allows them to be overridden if necessary.
12777 runpath_var=LD_RUN_PATH
12778 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12779 export_dynamic_flag_spec='${wl}--export-dynamic'
12780 # ancient GNU ld didn't support --whole-archive et. al.
12781 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12782 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12783 else
12784 whole_archive_flag_spec=
12785 fi
12786 supports_anon_versioning=no
12787 case `$LD -v 2>&1` in
cristyfd9dcd42010-08-08 18:07:02 +000012788 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy3ed852e2009-09-05 21:47:34 +000012789 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12790 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12791 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12792 *\ 2.11.*) ;; # other 2.11 versions
12793 *) supports_anon_versioning=yes ;;
12794 esac
12795
12796 # See if GNU ld supports shared libraries.
12797 case $host_os in
12798 aix[3-9]*)
12799 # On AIX/PPC, the GNU linker is very broken
12800 if test "$host_cpu" != ia64; then
12801 ld_shlibs=no
12802 cat <<_LT_EOF 1>&2
12803
cristyfd9dcd42010-08-08 18:07:02 +000012804*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy3ed852e2009-09-05 21:47:34 +000012805*** to be unable to reliably create shared libraries on AIX.
12806*** Therefore, libtool is disabling shared libraries support. If you
cristyfd9dcd42010-08-08 18:07:02 +000012807*** really care for shared libraries, you may want to install binutils
12808*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12809*** You will then need to restart the configuration process.
cristy3ed852e2009-09-05 21:47:34 +000012810
12811_LT_EOF
12812 fi
12813 ;;
12814
12815 amigaos*)
12816 case $host_cpu in
12817 powerpc)
12818 # see comment about AmigaOS4 .so support
12819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12820 archive_expsym_cmds=''
12821 ;;
12822 m68k)
12823 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)'
12824 hardcode_libdir_flag_spec='-L$libdir'
12825 hardcode_minus_L=yes
12826 ;;
12827 esac
12828 ;;
12829
12830 beos*)
12831 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12832 allow_undefined_flag=unsupported
12833 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12834 # support --undefined. This deserves some investigation. FIXME
12835 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12836 else
12837 ld_shlibs=no
12838 fi
12839 ;;
12840
12841 cygwin* | mingw* | pw32* | cegcc*)
12842 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12843 # as there is no search path for DLLs.
12844 hardcode_libdir_flag_spec='-L$libdir'
cristyfd9dcd42010-08-08 18:07:02 +000012845 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy3ed852e2009-09-05 21:47:34 +000012846 allow_undefined_flag=unsupported
12847 always_export_symbols=no
12848 enable_shared_with_static_runtimes=yes
12849 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12850
12851 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12852 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12853 # If the export-symbols file already is a .def file (1st line
12854 # is EXPORTS), use it as is; otherwise, prepend...
12855 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12856 cp $export_symbols $output_objdir/$soname.def;
12857 else
12858 echo EXPORTS > $output_objdir/$soname.def;
12859 cat $export_symbols >> $output_objdir/$soname.def;
12860 fi~
12861 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12862 else
12863 ld_shlibs=no
12864 fi
12865 ;;
12866
cristyfd9dcd42010-08-08 18:07:02 +000012867 haiku*)
12868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12869 link_all_deplibs=yes
12870 ;;
12871
cristy3ed852e2009-09-05 21:47:34 +000012872 interix[3-9]*)
12873 hardcode_direct=no
12874 hardcode_shlibpath_var=no
12875 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12876 export_dynamic_flag_spec='${wl}-E'
12877 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12878 # Instead, shared libraries are loaded at an image base (0x10000000 by
12879 # default) and relocated if they conflict, which is a slow very memory
12880 # consuming and fragmenting process. To avoid this, we pick a random,
12881 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12882 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12883 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12884 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'
12885 ;;
12886
cristyfd9dcd42010-08-08 18:07:02 +000012887 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000012888 tmp_diet=no
12889 if test "$host_os" = linux-dietlibc; then
12890 case $cc_basename in
12891 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12892 esac
12893 fi
12894 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12895 && test "$tmp_diet" = no
12896 then
12897 tmp_addflag=
12898 tmp_sharedflag='-shared'
12899 case $cc_basename,$host_cpu in
12900 pgcc*) # Portland Group C compiler
cristyfd9dcd42010-08-08 18:07:02 +000012901 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'
cristy3ed852e2009-09-05 21:47:34 +000012902 tmp_addflag=' $pic_flag'
12903 ;;
cristyfd9dcd42010-08-08 18:07:02 +000012904 pgf77* | pgf90* | pgf95* | pgfortran*)
12905 # Portland Group f77 and f90 compilers
12906 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'
cristy3ed852e2009-09-05 21:47:34 +000012907 tmp_addflag=' $pic_flag -Mnomain' ;;
12908 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12909 tmp_addflag=' -i_dynamic' ;;
12910 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12911 tmp_addflag=' -i_dynamic -nofor_main' ;;
12912 ifc* | ifort*) # Intel Fortran compiler
12913 tmp_addflag=' -nofor_main' ;;
12914 lf95*) # Lahey Fortran 8.1
12915 whole_archive_flag_spec=
12916 tmp_sharedflag='--shared' ;;
cristyfd9dcd42010-08-08 18:07:02 +000012917 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000012918 tmp_sharedflag='-qmkshrobj'
12919 tmp_addflag= ;;
cristyfd9dcd42010-08-08 18:07:02 +000012920 nvcc*) # Cuda Compiler Driver 2.2
12921 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'
12922 compiler_needs_object=yes
12923 ;;
cristy3ed852e2009-09-05 21:47:34 +000012924 esac
12925 case `$CC -V 2>&1 | sed 5q` in
12926 *Sun\ C*) # Sun C 5.9
cristyfd9dcd42010-08-08 18:07:02 +000012927 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'
cristy3ed852e2009-09-05 21:47:34 +000012928 compiler_needs_object=yes
12929 tmp_sharedflag='-G' ;;
12930 *Sun\ F*) # Sun Fortran 8.3
12931 tmp_sharedflag='-G' ;;
12932 esac
12933 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12934
12935 if test "x$supports_anon_versioning" = xyes; then
12936 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12937 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12938 echo "local: *; };" >> $output_objdir/$libname.ver~
12939 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12940 fi
12941
12942 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000012943 xlf* | bgf* | bgxlf* | mpixlf*)
cristy3ed852e2009-09-05 21:47:34 +000012944 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12945 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12946 hardcode_libdir_flag_spec=
12947 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristyfd9dcd42010-08-08 18:07:02 +000012948 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000012949 if test "x$supports_anon_versioning" = xyes; then
12950 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12951 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12952 echo "local: *; };" >> $output_objdir/$libname.ver~
cristyfd9dcd42010-08-08 18:07:02 +000012953 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000012954 fi
12955 ;;
12956 esac
12957 else
12958 ld_shlibs=no
12959 fi
12960 ;;
12961
12962 netbsd*)
12963 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12964 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12965 wlarc=
12966 else
12967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12968 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12969 fi
12970 ;;
12971
12972 solaris*)
12973 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12974 ld_shlibs=no
12975 cat <<_LT_EOF 1>&2
12976
12977*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12978*** create shared libraries on Solaris systems. Therefore, libtool
12979*** is disabling shared libraries support. We urge you to upgrade GNU
12980*** binutils to release 2.9.1 or newer. Another option is to modify
12981*** your PATH or compiler configuration so that the native linker is
12982*** used, and then restart.
12983
12984_LT_EOF
12985 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12987 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12988 else
12989 ld_shlibs=no
12990 fi
12991 ;;
12992
12993 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12994 case `$LD -v 2>&1` in
12995 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12996 ld_shlibs=no
12997 cat <<_LT_EOF 1>&2
12998
12999*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13000*** reliably create shared libraries on SCO systems. Therefore, libtool
13001*** is disabling shared libraries support. We urge you to upgrade GNU
13002*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13003*** your PATH or compiler configuration so that the native linker is
13004*** used, and then restart.
13005
13006_LT_EOF
13007 ;;
13008 *)
13009 # For security reasons, it is highly recommended that you always
13010 # use absolute paths for naming shared libraries, and exclude the
13011 # DT_RUNPATH tag from executables and libraries. But doing so
13012 # requires that you compile everything twice, which is a pain.
13013 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13017 else
13018 ld_shlibs=no
13019 fi
13020 ;;
13021 esac
13022 ;;
13023
13024 sunos4*)
13025 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13026 wlarc=
13027 hardcode_direct=yes
13028 hardcode_shlibpath_var=no
13029 ;;
13030
13031 *)
13032 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13034 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13035 else
13036 ld_shlibs=no
13037 fi
13038 ;;
13039 esac
13040
13041 if test "$ld_shlibs" = no; then
13042 runpath_var=
13043 hardcode_libdir_flag_spec=
13044 export_dynamic_flag_spec=
13045 whole_archive_flag_spec=
13046 fi
13047 else
13048 # PORTME fill in a description of your system's linker (not GNU ld)
13049 case $host_os in
13050 aix3*)
13051 allow_undefined_flag=unsupported
13052 always_export_symbols=yes
13053 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'
13054 # Note: this linker hardcodes the directories in LIBPATH if there
13055 # are no directories specified by -L.
13056 hardcode_minus_L=yes
13057 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13058 # Neither direct hardcoding nor static linking is supported with a
13059 # broken collect2.
13060 hardcode_direct=unsupported
13061 fi
13062 ;;
13063
13064 aix[4-9]*)
13065 if test "$host_cpu" = ia64; then
13066 # On IA64, the linker does run time linking by default, so we don't
13067 # have to do anything special.
13068 aix_use_runtimelinking=no
13069 exp_sym_flag='-Bexport'
13070 no_entry_flag=""
13071 else
13072 # If we're using GNU nm, then we don't want the "-C" option.
13073 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristyfd9dcd42010-08-08 18:07:02 +000013074 # Also, AIX nm treats weak defined symbols like other global
13075 # defined symbols, whereas GNU nm marks them as "W".
cristy3ed852e2009-09-05 21:47:34 +000013076 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristyfd9dcd42010-08-08 18:07:02 +000013077 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'
cristy3ed852e2009-09-05 21:47:34 +000013078 else
13079 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'
13080 fi
13081 aix_use_runtimelinking=no
13082
13083 # Test if we are trying to use run time linking or normal
13084 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13085 # need to do runtime linking.
13086 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13087 for ld_flag in $LDFLAGS; do
13088 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13089 aix_use_runtimelinking=yes
13090 break
13091 fi
13092 done
13093 ;;
13094 esac
13095
13096 exp_sym_flag='-bexport'
13097 no_entry_flag='-bnoentry'
13098 fi
13099
13100 # When large executables or shared objects are built, AIX ld can
13101 # have problems creating the table of contents. If linking a library
13102 # or program results in "error TOC overflow" add -mminimal-toc to
13103 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13104 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13105
13106 archive_cmds=''
13107 hardcode_direct=yes
13108 hardcode_direct_absolute=yes
13109 hardcode_libdir_separator=':'
13110 link_all_deplibs=yes
13111 file_list_spec='${wl}-f,'
13112
13113 if test "$GCC" = yes; then
13114 case $host_os in aix4.[012]|aix4.[012].*)
13115 # We only want to do this on AIX 4.2 and lower, the check
13116 # below for broken collect2 doesn't work under 4.3+
13117 collect2name=`${CC} -print-prog-name=collect2`
13118 if test -f "$collect2name" &&
13119 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13120 then
13121 # We have reworked collect2
13122 :
13123 else
13124 # We have old collect2
13125 hardcode_direct=unsupported
13126 # It fails to find uninstalled libraries when the uninstalled
13127 # path is not listed in the libpath. Setting hardcode_minus_L
13128 # to unsupported forces relinking
13129 hardcode_minus_L=yes
13130 hardcode_libdir_flag_spec='-L$libdir'
13131 hardcode_libdir_separator=
13132 fi
13133 ;;
13134 esac
13135 shared_flag='-shared'
13136 if test "$aix_use_runtimelinking" = yes; then
13137 shared_flag="$shared_flag "'${wl}-G'
13138 fi
13139 else
13140 # not using gcc
13141 if test "$host_cpu" = ia64; then
13142 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13143 # chokes on -Wl,-G. The following line is correct:
13144 shared_flag='-G'
13145 else
13146 if test "$aix_use_runtimelinking" = yes; then
13147 shared_flag='${wl}-G'
13148 else
13149 shared_flag='${wl}-bM:SRE'
13150 fi
13151 fi
13152 fi
13153
13154 export_dynamic_flag_spec='${wl}-bexpall'
13155 # It seems that -bexpall does not export symbols beginning with
13156 # underscore (_), so it is better to generate a list of symbols to export.
13157 always_export_symbols=yes
13158 if test "$aix_use_runtimelinking" = yes; then
13159 # Warning - without using the other runtime loading flags (-brtl),
13160 # -berok will link without error, but may produce a broken library.
13161 allow_undefined_flag='-berok'
13162 # Determine the default libpath from the value encoded in an
13163 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013165/* end confdefs.h. */
13166
13167int
13168main ()
13169{
13170
13171 ;
13172 return 0;
13173}
13174_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013175if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013176
13177lt_aix_libpath_sed='
13178 /Import File Strings/,/^$/ {
13179 /^0/ {
13180 s/^0 *\(.*\)$/\1/
13181 p
13182 }
13183 }'
13184aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13185# Check for a 64-bit object if we didn't find anything.
13186if test -z "$aix_libpath"; then
13187 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13188fi
cristy3ed852e2009-09-05 21:47:34 +000013189fi
cristy8b350f62009-11-15 23:12:43 +000013190rm -f core conftest.err conftest.$ac_objext \
13191 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013192if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13193
13194 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristyfd9dcd42010-08-08 18:07:02 +000013195 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"
cristy3ed852e2009-09-05 21:47:34 +000013196 else
13197 if test "$host_cpu" = ia64; then
13198 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13199 allow_undefined_flag="-z nodefs"
13200 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"
13201 else
13202 # Determine the default libpath from the value encoded in an
13203 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013205/* end confdefs.h. */
13206
13207int
13208main ()
13209{
13210
13211 ;
13212 return 0;
13213}
13214_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013215if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013216
13217lt_aix_libpath_sed='
13218 /Import File Strings/,/^$/ {
13219 /^0/ {
13220 s/^0 *\(.*\)$/\1/
13221 p
13222 }
13223 }'
13224aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13225# Check for a 64-bit object if we didn't find anything.
13226if test -z "$aix_libpath"; then
13227 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13228fi
cristy3ed852e2009-09-05 21:47:34 +000013229fi
cristy8b350f62009-11-15 23:12:43 +000013230rm -f core conftest.err conftest.$ac_objext \
13231 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013232if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13233
13234 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13235 # Warning - without using the other run time loading flags,
13236 # -berok will link without error, but may produce a broken library.
13237 no_undefined_flag=' ${wl}-bernotok'
13238 allow_undefined_flag=' ${wl}-berok'
cristyfd9dcd42010-08-08 18:07:02 +000013239 if test "$with_gnu_ld" = yes; then
13240 # We only use this code for GNU lds that support --whole-archive.
13241 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13242 else
13243 # Exported symbols can be pulled into shared objects from archives
13244 whole_archive_flag_spec='$convenience'
13245 fi
cristy3ed852e2009-09-05 21:47:34 +000013246 archive_cmds_need_lc=yes
13247 # This is similar to how AIX traditionally builds its shared libraries.
13248 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'
13249 fi
13250 fi
13251 ;;
13252
13253 amigaos*)
13254 case $host_cpu in
13255 powerpc)
13256 # see comment about AmigaOS4 .so support
13257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13258 archive_expsym_cmds=''
13259 ;;
13260 m68k)
13261 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)'
13262 hardcode_libdir_flag_spec='-L$libdir'
13263 hardcode_minus_L=yes
13264 ;;
13265 esac
13266 ;;
13267
13268 bsdi[45]*)
13269 export_dynamic_flag_spec=-rdynamic
13270 ;;
13271
13272 cygwin* | mingw* | pw32* | cegcc*)
13273 # When not using gcc, we currently assume that we are using
13274 # Microsoft Visual C++.
13275 # hardcode_libdir_flag_spec is actually meaningless, as there is
13276 # no search path for DLLs.
13277 hardcode_libdir_flag_spec=' '
13278 allow_undefined_flag=unsupported
13279 # Tell ltmain to make .lib files, not .a files.
13280 libext=lib
13281 # Tell ltmain to make .dll files, not .so files.
13282 shrext_cmds=".dll"
13283 # FIXME: Setting linknames here is a bad hack.
cristyfd9dcd42010-08-08 18:07:02 +000013284 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000013285 # The linker will automatically build a .lib file if we build a DLL.
13286 old_archive_from_new_cmds='true'
13287 # FIXME: Should let the user specify the lib program.
13288 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13289 fix_srcfile_path='`cygpath -w "$srcfile"`'
13290 enable_shared_with_static_runtimes=yes
13291 ;;
13292
13293 darwin* | rhapsody*)
13294
13295
13296 archive_cmds_need_lc=no
13297 hardcode_direct=no
13298 hardcode_automatic=yes
13299 hardcode_shlibpath_var=unsupported
cristyfd9dcd42010-08-08 18:07:02 +000013300 if test "$lt_cv_ld_force_load" = "yes"; then
13301 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\"`'
13302 else
13303 whole_archive_flag_spec=''
13304 fi
cristy3ed852e2009-09-05 21:47:34 +000013305 link_all_deplibs=yes
13306 allow_undefined_flag="$_lt_dar_allow_undefined"
13307 case $cc_basename in
13308 ifort*) _lt_dar_can_shared=yes ;;
13309 *) _lt_dar_can_shared=$GCC ;;
13310 esac
13311 if test "$_lt_dar_can_shared" = "yes"; then
cristyfd9dcd42010-08-08 18:07:02 +000013312 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000013313 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13314 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13315 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}"
13316 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}"
13317
13318 else
13319 ld_shlibs=no
13320 fi
13321
13322 ;;
13323
13324 dgux*)
13325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13326 hardcode_libdir_flag_spec='-L$libdir'
13327 hardcode_shlibpath_var=no
13328 ;;
13329
13330 freebsd1*)
13331 ld_shlibs=no
13332 ;;
13333
13334 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13335 # support. Future versions do this automatically, but an explicit c++rt0.o
13336 # does not break anything, and helps significantly (at the cost of a little
13337 # extra space).
13338 freebsd2.2*)
13339 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13340 hardcode_libdir_flag_spec='-R$libdir'
13341 hardcode_direct=yes
13342 hardcode_shlibpath_var=no
13343 ;;
13344
13345 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13346 freebsd2*)
13347 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13348 hardcode_direct=yes
13349 hardcode_minus_L=yes
13350 hardcode_shlibpath_var=no
13351 ;;
13352
13353 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13354 freebsd* | dragonfly*)
13355 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13356 hardcode_libdir_flag_spec='-R$libdir'
13357 hardcode_direct=yes
13358 hardcode_shlibpath_var=no
13359 ;;
13360
13361 hpux9*)
13362 if test "$GCC" = yes; then
13363 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'
13364 else
13365 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'
13366 fi
13367 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13368 hardcode_libdir_separator=:
13369 hardcode_direct=yes
13370
13371 # hardcode_minus_L: Not really in the search PATH,
13372 # but as the default location of the library.
13373 hardcode_minus_L=yes
13374 export_dynamic_flag_spec='${wl}-E'
13375 ;;
13376
13377 hpux10*)
cristyfd9dcd42010-08-08 18:07:02 +000013378 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013379 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13380 else
13381 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13382 fi
13383 if test "$with_gnu_ld" = no; then
13384 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13385 hardcode_libdir_flag_spec_ld='+b $libdir'
13386 hardcode_libdir_separator=:
13387 hardcode_direct=yes
13388 hardcode_direct_absolute=yes
13389 export_dynamic_flag_spec='${wl}-E'
13390 # hardcode_minus_L: Not really in the search PATH,
13391 # but as the default location of the library.
13392 hardcode_minus_L=yes
13393 fi
13394 ;;
13395
13396 hpux11*)
cristyfd9dcd42010-08-08 18:07:02 +000013397 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013398 case $host_cpu in
13399 hppa*64*)
13400 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13401 ;;
13402 ia64*)
13403 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13404 ;;
13405 *)
13406 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13407 ;;
13408 esac
13409 else
13410 case $host_cpu in
13411 hppa*64*)
13412 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13413 ;;
13414 ia64*)
13415 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13416 ;;
13417 *)
cristyfd9dcd42010-08-08 18:07:02 +000013418
13419 # Older versions of the 11.00 compiler do not understand -b yet
13420 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13422$as_echo_n "checking if $CC understands -b... " >&6; }
13423if test "${lt_cv_prog_compiler__b+set}" = set; then :
13424 $as_echo_n "(cached) " >&6
13425else
13426 lt_cv_prog_compiler__b=no
13427 save_LDFLAGS="$LDFLAGS"
13428 LDFLAGS="$LDFLAGS -b"
13429 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13430 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13431 # The linker can only warn and ignore the option if not recognized
13432 # So say no if there are warnings
13433 if test -s conftest.err; then
13434 # Append any errors to the config.log.
13435 cat conftest.err 1>&5
13436 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13437 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13438 if diff conftest.exp conftest.er2 >/dev/null; then
13439 lt_cv_prog_compiler__b=yes
13440 fi
13441 else
13442 lt_cv_prog_compiler__b=yes
13443 fi
13444 fi
13445 $RM -r conftest*
13446 LDFLAGS="$save_LDFLAGS"
13447
13448fi
13449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13450$as_echo "$lt_cv_prog_compiler__b" >&6; }
13451
13452if test x"$lt_cv_prog_compiler__b" = xyes; then
13453 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13454else
13455 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13456fi
13457
cristy3ed852e2009-09-05 21:47:34 +000013458 ;;
13459 esac
13460 fi
13461 if test "$with_gnu_ld" = no; then
13462 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13463 hardcode_libdir_separator=:
13464
13465 case $host_cpu in
13466 hppa*64*|ia64*)
13467 hardcode_direct=no
13468 hardcode_shlibpath_var=no
13469 ;;
13470 *)
13471 hardcode_direct=yes
13472 hardcode_direct_absolute=yes
13473 export_dynamic_flag_spec='${wl}-E'
13474
13475 # hardcode_minus_L: Not really in the search PATH,
13476 # but as the default location of the library.
13477 hardcode_minus_L=yes
13478 ;;
13479 esac
13480 fi
13481 ;;
13482
13483 irix5* | irix6* | nonstopux*)
13484 if test "$GCC" = yes; then
cristyfd9dcd42010-08-08 18:07:02 +000013485 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'
cristy3ed852e2009-09-05 21:47:34 +000013486 # Try to use the -exported_symbol ld option, if it does not
13487 # work, assume that -exports_file does not work either and
13488 # implicitly export all symbols.
13489 save_LDFLAGS="$LDFLAGS"
13490 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000013491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13492/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000013493int foo(void) {}
13494_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013495if ac_fn_c_try_link "$LINENO"; then :
cristyfd9dcd42010-08-08 18:07:02 +000013496 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'
cristy3ed852e2009-09-05 21:47:34 +000013497
cristy3ed852e2009-09-05 21:47:34 +000013498fi
cristy8b350f62009-11-15 23:12:43 +000013499rm -f core conftest.err conftest.$ac_objext \
13500 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013501 LDFLAGS="$save_LDFLAGS"
13502 else
cristyfd9dcd42010-08-08 18:07:02 +000013503 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'
13504 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'
cristy3ed852e2009-09-05 21:47:34 +000013505 fi
13506 archive_cmds_need_lc='no'
13507 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13508 hardcode_libdir_separator=:
13509 inherit_rpath=yes
13510 link_all_deplibs=yes
13511 ;;
13512
13513 netbsd*)
13514 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13515 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13516 else
13517 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13518 fi
13519 hardcode_libdir_flag_spec='-R$libdir'
13520 hardcode_direct=yes
13521 hardcode_shlibpath_var=no
13522 ;;
13523
13524 newsos6)
13525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13526 hardcode_direct=yes
13527 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13528 hardcode_libdir_separator=:
13529 hardcode_shlibpath_var=no
13530 ;;
13531
13532 *nto* | *qnx*)
13533 ;;
13534
13535 openbsd*)
13536 if test -f /usr/libexec/ld.so; then
13537 hardcode_direct=yes
13538 hardcode_shlibpath_var=no
13539 hardcode_direct_absolute=yes
13540 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13541 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13542 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13543 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13544 export_dynamic_flag_spec='${wl}-E'
13545 else
13546 case $host_os in
13547 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13548 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13549 hardcode_libdir_flag_spec='-R$libdir'
13550 ;;
13551 *)
13552 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13553 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13554 ;;
13555 esac
13556 fi
13557 else
13558 ld_shlibs=no
13559 fi
13560 ;;
13561
13562 os2*)
13563 hardcode_libdir_flag_spec='-L$libdir'
13564 hardcode_minus_L=yes
13565 allow_undefined_flag=unsupported
cristyfd9dcd42010-08-08 18:07:02 +000013566 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'
cristy3ed852e2009-09-05 21:47:34 +000013567 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13568 ;;
13569
13570 osf3*)
13571 if test "$GCC" = yes; then
13572 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyfd9dcd42010-08-08 18:07:02 +000013573 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'
cristy3ed852e2009-09-05 21:47:34 +000013574 else
13575 allow_undefined_flag=' -expect_unresolved \*'
cristyfd9dcd42010-08-08 18:07:02 +000013576 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'
cristy3ed852e2009-09-05 21:47:34 +000013577 fi
13578 archive_cmds_need_lc='no'
13579 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13580 hardcode_libdir_separator=:
13581 ;;
13582
13583 osf4* | osf5*) # as osf3* with the addition of -msym flag
13584 if test "$GCC" = yes; then
13585 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyfd9dcd42010-08-08 18:07:02 +000013586 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'
cristy3ed852e2009-09-05 21:47:34 +000013587 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13588 else
13589 allow_undefined_flag=' -expect_unresolved \*'
cristyfd9dcd42010-08-08 18:07:02 +000013590 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'
cristy3ed852e2009-09-05 21:47:34 +000013591 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~
cristyfd9dcd42010-08-08 18:07:02 +000013592 $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'
cristy3ed852e2009-09-05 21:47:34 +000013593
13594 # Both c and cxx compiler support -rpath directly
13595 hardcode_libdir_flag_spec='-rpath $libdir'
13596 fi
13597 archive_cmds_need_lc='no'
13598 hardcode_libdir_separator=:
13599 ;;
13600
13601 solaris*)
13602 no_undefined_flag=' -z defs'
13603 if test "$GCC" = yes; then
13604 wlarc='${wl}'
13605 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13606 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13607 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13608 else
13609 case `$CC -V 2>&1` in
13610 *"Compilers 5.0"*)
13611 wlarc=''
13612 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13613 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13614 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13615 ;;
13616 *)
13617 wlarc='${wl}'
13618 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13619 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13620 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13621 ;;
13622 esac
13623 fi
13624 hardcode_libdir_flag_spec='-R$libdir'
13625 hardcode_shlibpath_var=no
13626 case $host_os in
13627 solaris2.[0-5] | solaris2.[0-5].*) ;;
13628 *)
13629 # The compiler driver will combine and reorder linker options,
13630 # but understands `-z linker_flag'. GCC discards it without `$wl',
13631 # but is careful enough not to reorder.
13632 # Supported since Solaris 2.6 (maybe 2.5.1?)
13633 if test "$GCC" = yes; then
13634 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13635 else
13636 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13637 fi
13638 ;;
13639 esac
13640 link_all_deplibs=yes
13641 ;;
13642
13643 sunos4*)
13644 if test "x$host_vendor" = xsequent; then
13645 # Use $CC to link under sequent, because it throws in some extra .o
13646 # files that make .init and .fini sections work.
13647 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13648 else
13649 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13650 fi
13651 hardcode_libdir_flag_spec='-L$libdir'
13652 hardcode_direct=yes
13653 hardcode_minus_L=yes
13654 hardcode_shlibpath_var=no
13655 ;;
13656
13657 sysv4)
13658 case $host_vendor in
13659 sni)
13660 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13661 hardcode_direct=yes # is this really true???
13662 ;;
13663 siemens)
13664 ## LD is ld it makes a PLAMLIB
13665 ## CC just makes a GrossModule.
13666 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13667 reload_cmds='$CC -r -o $output$reload_objs'
13668 hardcode_direct=no
13669 ;;
13670 motorola)
13671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13672 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13673 ;;
13674 esac
13675 runpath_var='LD_RUN_PATH'
13676 hardcode_shlibpath_var=no
13677 ;;
13678
13679 sysv4.3*)
13680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13681 hardcode_shlibpath_var=no
13682 export_dynamic_flag_spec='-Bexport'
13683 ;;
13684
13685 sysv4*MP*)
13686 if test -d /usr/nec; then
13687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13688 hardcode_shlibpath_var=no
13689 runpath_var=LD_RUN_PATH
13690 hardcode_runpath_var=yes
13691 ld_shlibs=yes
13692 fi
13693 ;;
13694
13695 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13696 no_undefined_flag='${wl}-z,text'
13697 archive_cmds_need_lc=no
13698 hardcode_shlibpath_var=no
13699 runpath_var='LD_RUN_PATH'
13700
13701 if test "$GCC" = yes; then
13702 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13703 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13704 else
13705 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13706 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13707 fi
13708 ;;
13709
13710 sysv5* | sco3.2v5* | sco5v6*)
13711 # Note: We can NOT use -z defs as we might desire, because we do not
13712 # link with -lc, and that would cause any symbols used from libc to
13713 # always be unresolved, which means just about no library would
13714 # ever link correctly. If we're not using GNU ld we use -z text
13715 # though, which does catch some bad symbols but isn't as heavy-handed
13716 # as -z defs.
13717 no_undefined_flag='${wl}-z,text'
13718 allow_undefined_flag='${wl}-z,nodefs'
13719 archive_cmds_need_lc=no
13720 hardcode_shlibpath_var=no
13721 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13722 hardcode_libdir_separator=':'
13723 link_all_deplibs=yes
13724 export_dynamic_flag_spec='${wl}-Bexport'
13725 runpath_var='LD_RUN_PATH'
13726
13727 if test "$GCC" = yes; then
13728 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13729 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13730 else
13731 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13732 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13733 fi
13734 ;;
13735
13736 uts4*)
13737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13738 hardcode_libdir_flag_spec='-L$libdir'
13739 hardcode_shlibpath_var=no
13740 ;;
13741
13742 *)
13743 ld_shlibs=no
13744 ;;
13745 esac
13746
13747 if test x$host_vendor = xsni; then
13748 case $host in
13749 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13750 export_dynamic_flag_spec='${wl}-Blargedynsym'
13751 ;;
13752 esac
13753 fi
13754 fi
13755
cristy8b350f62009-11-15 23:12:43 +000013756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000013757$as_echo "$ld_shlibs" >&6; }
13758test "$ld_shlibs" = no && can_build_shared=no
13759
13760with_gnu_ld=$with_gnu_ld
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776#
13777# Do we need to explicitly link libc?
13778#
13779case "x$archive_cmds_need_lc" in
13780x|xyes)
13781 # Assume -lc should be added
13782 archive_cmds_need_lc=yes
13783
13784 if test "$enable_shared" = yes && test "$GCC" = yes; then
13785 case $archive_cmds in
13786 *'~'*)
13787 # FIXME: we may have to deal with multi-command sequences.
13788 ;;
13789 '$CC '*)
13790 # Test whether the compiler implicitly links with -lc since on some
13791 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13792 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000013793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000013794$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000013795if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
13796 $as_echo_n "(cached) " >&6
13797else
13798 $RM conftest*
13799 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013800
cristyfd9dcd42010-08-08 18:07:02 +000013801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000013802 (eval $ac_compile) 2>&5
13803 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000013804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13805 test $ac_status = 0; } 2>conftest.err; then
cristyfd9dcd42010-08-08 18:07:02 +000013806 soname=conftest
13807 lib=conftest
13808 libobjs=conftest.$ac_objext
13809 deplibs=
13810 wl=$lt_prog_compiler_wl
13811 pic_flag=$lt_prog_compiler_pic
13812 compiler_flags=-v
13813 linker_flags=-v
13814 verstring=
13815 output_objdir=.
13816 libname=conftest
13817 lt_save_allow_undefined_flag=$allow_undefined_flag
13818 allow_undefined_flag=
13819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000013820 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13821 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000013822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13823 test $ac_status = 0; }
cristyfd9dcd42010-08-08 18:07:02 +000013824 then
13825 lt_cv_archive_cmds_need_lc=no
13826 else
13827 lt_cv_archive_cmds_need_lc=yes
13828 fi
13829 allow_undefined_flag=$lt_save_allow_undefined_flag
13830 else
13831 cat conftest.err 1>&5
13832 fi
13833 $RM conftest*
13834
13835fi
13836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13837$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13838 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy3ed852e2009-09-05 21:47:34 +000013839 ;;
13840 esac
13841 fi
13842 ;;
13843esac
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
cristy8b350f62009-11-15 23:12:43 +000014001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000014002$as_echo_n "checking dynamic linker characteristics... " >&6; }
14003
14004if test "$GCC" = yes; then
14005 case $host_os in
14006 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14007 *) lt_awk_arg="/^libraries:/" ;;
14008 esac
cristyfd9dcd42010-08-08 18:07:02 +000014009 case $host_os in
14010 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14011 *) lt_sed_strip_eq="s,=/,/,g" ;;
14012 esac
14013 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14014 case $lt_search_path_spec in
14015 *\;*)
cristy3ed852e2009-09-05 21:47:34 +000014016 # if the path contains ";" then we assume it to be the separator
14017 # otherwise default to the standard path separator (i.e. ":") - it is
14018 # assumed that no part of a normal pathname contains ";" but that should
14019 # okay in the real world where ";" in dirpaths is itself problematic.
cristyfd9dcd42010-08-08 18:07:02 +000014020 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14021 ;;
14022 *)
14023 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14024 ;;
14025 esac
cristy3ed852e2009-09-05 21:47:34 +000014026 # Ok, now we have the path, separated by spaces, we can step through it
14027 # and add multilib dir if necessary.
14028 lt_tmp_lt_search_path_spec=
14029 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14030 for lt_sys_path in $lt_search_path_spec; do
14031 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14032 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14033 else
14034 test -d "$lt_sys_path" && \
14035 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14036 fi
14037 done
cristyfd9dcd42010-08-08 18:07:02 +000014038 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy3ed852e2009-09-05 21:47:34 +000014039BEGIN {RS=" "; FS="/|\n";} {
14040 lt_foo="";
14041 lt_count=0;
14042 for (lt_i = NF; lt_i > 0; lt_i--) {
14043 if ($lt_i != "" && $lt_i != ".") {
14044 if ($lt_i == "..") {
14045 lt_count++;
14046 } else {
14047 if (lt_count == 0) {
14048 lt_foo="/" $lt_i lt_foo;
14049 } else {
14050 lt_count--;
14051 }
14052 }
14053 }
14054 }
14055 if (lt_foo != "") { lt_freq[lt_foo]++; }
14056 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14057}'`
cristyfd9dcd42010-08-08 18:07:02 +000014058 # AWK program above erroneously prepends '/' to C:/dos/paths
14059 # for these hosts.
14060 case $host_os in
14061 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14062 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14063 esac
14064 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy3ed852e2009-09-05 21:47:34 +000014065else
14066 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14067fi
14068library_names_spec=
14069libname_spec='lib$name'
14070soname_spec=
14071shrext_cmds=".so"
14072postinstall_cmds=
14073postuninstall_cmds=
14074finish_cmds=
14075finish_eval=
14076shlibpath_var=
14077shlibpath_overrides_runpath=unknown
14078version_type=none
14079dynamic_linker="$host_os ld.so"
14080sys_lib_dlsearch_path_spec="/lib /usr/lib"
14081need_lib_prefix=unknown
14082hardcode_into_libs=no
14083
14084# when you set need_version to no, make sure it does not cause -set_version
14085# flags to be left without arguments
14086need_version=unknown
14087
14088case $host_os in
14089aix3*)
14090 version_type=linux
14091 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14092 shlibpath_var=LIBPATH
14093
14094 # AIX 3 has no versioning support, so we append a major version to the name.
14095 soname_spec='${libname}${release}${shared_ext}$major'
14096 ;;
14097
14098aix[4-9]*)
14099 version_type=linux
14100 need_lib_prefix=no
14101 need_version=no
14102 hardcode_into_libs=yes
14103 if test "$host_cpu" = ia64; then
14104 # AIX 5 supports IA64
14105 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14106 shlibpath_var=LD_LIBRARY_PATH
14107 else
14108 # With GCC up to 2.95.x, collect2 would create an import file
14109 # for dependence libraries. The import file would start with
14110 # the line `#! .'. This would cause the generated library to
14111 # depend on `.', always an invalid library. This was fixed in
14112 # development snapshots of GCC prior to 3.0.
14113 case $host_os in
14114 aix4 | aix4.[01] | aix4.[01].*)
14115 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14116 echo ' yes '
14117 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14118 :
14119 else
14120 can_build_shared=no
14121 fi
14122 ;;
14123 esac
14124 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14125 # soname into executable. Probably we can add versioning support to
14126 # collect2, so additional links can be useful in future.
14127 if test "$aix_use_runtimelinking" = yes; then
14128 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14129 # instead of lib<name>.a to let people know that these are not
14130 # typical AIX shared libraries.
14131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14132 else
14133 # We preserve .a as extension for shared libraries through AIX4.2
14134 # and later when we are not doing run time linking.
14135 library_names_spec='${libname}${release}.a $libname.a'
14136 soname_spec='${libname}${release}${shared_ext}$major'
14137 fi
14138 shlibpath_var=LIBPATH
14139 fi
14140 ;;
14141
14142amigaos*)
14143 case $host_cpu in
14144 powerpc)
14145 # Since July 2007 AmigaOS4 officially supports .so libraries.
14146 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14148 ;;
14149 m68k)
14150 library_names_spec='$libname.ixlibrary $libname.a'
14151 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristyfd9dcd42010-08-08 18:07:02 +000014152 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'
cristy3ed852e2009-09-05 21:47:34 +000014153 ;;
14154 esac
14155 ;;
14156
14157beos*)
14158 library_names_spec='${libname}${shared_ext}'
14159 dynamic_linker="$host_os ld.so"
14160 shlibpath_var=LIBRARY_PATH
14161 ;;
14162
14163bsdi[45]*)
14164 version_type=linux
14165 need_version=no
14166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14167 soname_spec='${libname}${release}${shared_ext}$major'
14168 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14169 shlibpath_var=LD_LIBRARY_PATH
14170 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14171 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14172 # the default ld.so.conf also contains /usr/contrib/lib and
14173 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14174 # libtool to hard-code these into programs
14175 ;;
14176
14177cygwin* | mingw* | pw32* | cegcc*)
14178 version_type=windows
14179 shrext_cmds=".dll"
14180 need_version=no
14181 need_lib_prefix=no
14182
14183 case $GCC,$host_os in
14184 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14185 library_names_spec='$libname.dll.a'
14186 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14187 postinstall_cmds='base_file=`basename \${file}`~
14188 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14189 dldir=$destdir/`dirname \$dlpath`~
14190 test -d \$dldir || mkdir -p \$dldir~
14191 $install_prog $dir/$dlname \$dldir/$dlname~
14192 chmod a+x \$dldir/$dlname~
14193 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14194 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14195 fi'
14196 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14197 dlpath=$dir/\$dldll~
14198 $RM \$dlpath'
14199 shlibpath_overrides_runpath=yes
14200
14201 case $host_os in
14202 cygwin*)
14203 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14204 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristyfd9dcd42010-08-08 18:07:02 +000014205
14206 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy3ed852e2009-09-05 21:47:34 +000014207 ;;
14208 mingw* | cegcc*)
14209 # MinGW DLLs use traditional 'lib' prefix
14210 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy3ed852e2009-09-05 21:47:34 +000014211 ;;
14212 pw32*)
14213 # pw32 DLLs use 'pw' prefix rather than 'lib'
14214 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14215 ;;
14216 esac
14217 ;;
14218
14219 *)
14220 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14221 ;;
14222 esac
14223 dynamic_linker='Win32 ld.exe'
14224 # FIXME: first we should search . and the directory the executable is in
14225 shlibpath_var=PATH
14226 ;;
14227
14228darwin* | rhapsody*)
14229 dynamic_linker="$host_os dyld"
14230 version_type=darwin
14231 need_lib_prefix=no
14232 need_version=no
14233 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14234 soname_spec='${libname}${release}${major}$shared_ext'
14235 shlibpath_overrides_runpath=yes
14236 shlibpath_var=DYLD_LIBRARY_PATH
14237 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14238
14239 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14240 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14241 ;;
14242
14243dgux*)
14244 version_type=linux
14245 need_lib_prefix=no
14246 need_version=no
14247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14248 soname_spec='${libname}${release}${shared_ext}$major'
14249 shlibpath_var=LD_LIBRARY_PATH
14250 ;;
14251
14252freebsd1*)
14253 dynamic_linker=no
14254 ;;
14255
14256freebsd* | dragonfly*)
14257 # DragonFly does not have aout. When/if they implement a new
14258 # versioning mechanism, adjust this.
14259 if test -x /usr/bin/objformat; then
14260 objformat=`/usr/bin/objformat`
14261 else
14262 case $host_os in
14263 freebsd[123]*) objformat=aout ;;
14264 *) objformat=elf ;;
14265 esac
14266 fi
14267 version_type=freebsd-$objformat
14268 case $version_type in
14269 freebsd-elf*)
14270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14271 need_version=no
14272 need_lib_prefix=no
14273 ;;
14274 freebsd-*)
14275 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14276 need_version=yes
14277 ;;
14278 esac
14279 shlibpath_var=LD_LIBRARY_PATH
14280 case $host_os in
14281 freebsd2*)
14282 shlibpath_overrides_runpath=yes
14283 ;;
14284 freebsd3.[01]* | freebsdelf3.[01]*)
14285 shlibpath_overrides_runpath=yes
14286 hardcode_into_libs=yes
14287 ;;
14288 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14289 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14290 shlibpath_overrides_runpath=no
14291 hardcode_into_libs=yes
14292 ;;
14293 *) # from 4.6 on, and DragonFly
14294 shlibpath_overrides_runpath=yes
14295 hardcode_into_libs=yes
14296 ;;
14297 esac
14298 ;;
14299
14300gnu*)
14301 version_type=linux
14302 need_lib_prefix=no
14303 need_version=no
14304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14305 soname_spec='${libname}${release}${shared_ext}$major'
14306 shlibpath_var=LD_LIBRARY_PATH
14307 hardcode_into_libs=yes
14308 ;;
14309
cristyfd9dcd42010-08-08 18:07:02 +000014310haiku*)
14311 version_type=linux
14312 need_lib_prefix=no
14313 need_version=no
14314 dynamic_linker="$host_os runtime_loader"
14315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14316 soname_spec='${libname}${release}${shared_ext}$major'
14317 shlibpath_var=LIBRARY_PATH
14318 shlibpath_overrides_runpath=yes
14319 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14320 hardcode_into_libs=yes
14321 ;;
14322
cristy3ed852e2009-09-05 21:47:34 +000014323hpux9* | hpux10* | hpux11*)
14324 # Give a soname corresponding to the major version so that dld.sl refuses to
14325 # link against other versions.
14326 version_type=sunos
14327 need_lib_prefix=no
14328 need_version=no
14329 case $host_cpu in
14330 ia64*)
14331 shrext_cmds='.so'
14332 hardcode_into_libs=yes
14333 dynamic_linker="$host_os dld.so"
14334 shlibpath_var=LD_LIBRARY_PATH
14335 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14337 soname_spec='${libname}${release}${shared_ext}$major'
14338 if test "X$HPUX_IA64_MODE" = X32; then
14339 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14340 else
14341 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14342 fi
14343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14344 ;;
14345 hppa*64*)
14346 shrext_cmds='.sl'
14347 hardcode_into_libs=yes
14348 dynamic_linker="$host_os dld.sl"
14349 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14350 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14352 soname_spec='${libname}${release}${shared_ext}$major'
14353 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14355 ;;
14356 *)
14357 shrext_cmds='.sl'
14358 dynamic_linker="$host_os dld.sl"
14359 shlibpath_var=SHLIB_PATH
14360 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14362 soname_spec='${libname}${release}${shared_ext}$major'
14363 ;;
14364 esac
cristyfd9dcd42010-08-08 18:07:02 +000014365 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy3ed852e2009-09-05 21:47:34 +000014366 postinstall_cmds='chmod 555 $lib'
cristyfd9dcd42010-08-08 18:07:02 +000014367 # or fails outright, so override atomically:
14368 install_override_mode=555
cristy3ed852e2009-09-05 21:47:34 +000014369 ;;
14370
14371interix[3-9]*)
14372 version_type=linux
14373 need_lib_prefix=no
14374 need_version=no
14375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14376 soname_spec='${libname}${release}${shared_ext}$major'
14377 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14378 shlibpath_var=LD_LIBRARY_PATH
14379 shlibpath_overrides_runpath=no
14380 hardcode_into_libs=yes
14381 ;;
14382
14383irix5* | irix6* | nonstopux*)
14384 case $host_os in
14385 nonstopux*) version_type=nonstopux ;;
14386 *)
14387 if test "$lt_cv_prog_gnu_ld" = yes; then
14388 version_type=linux
14389 else
14390 version_type=irix
14391 fi ;;
14392 esac
14393 need_lib_prefix=no
14394 need_version=no
14395 soname_spec='${libname}${release}${shared_ext}$major'
14396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14397 case $host_os in
14398 irix5* | nonstopux*)
14399 libsuff= shlibsuff=
14400 ;;
14401 *)
14402 case $LD in # libtool.m4 will add one of these switches to LD
14403 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14404 libsuff= shlibsuff= libmagic=32-bit;;
14405 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14406 libsuff=32 shlibsuff=N32 libmagic=N32;;
14407 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14408 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14409 *) libsuff= shlibsuff= libmagic=never-match;;
14410 esac
14411 ;;
14412 esac
14413 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14414 shlibpath_overrides_runpath=no
14415 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14416 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14417 hardcode_into_libs=yes
14418 ;;
14419
14420# No shared lib support for Linux oldld, aout, or coff.
14421linux*oldld* | linux*aout* | linux*coff*)
14422 dynamic_linker=no
14423 ;;
14424
14425# This must be Linux ELF.
cristyfd9dcd42010-08-08 18:07:02 +000014426linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000014427 version_type=linux
14428 need_lib_prefix=no
14429 need_version=no
14430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14431 soname_spec='${libname}${release}${shared_ext}$major'
14432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14433 shlibpath_var=LD_LIBRARY_PATH
14434 shlibpath_overrides_runpath=no
cristyfd9dcd42010-08-08 18:07:02 +000014435
cristy3ed852e2009-09-05 21:47:34 +000014436 # Some binutils ld are patched to set DT_RUNPATH
cristyfd9dcd42010-08-08 18:07:02 +000014437 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14438 $as_echo_n "(cached) " >&6
14439else
14440 lt_cv_shlibpath_overrides_runpath=no
14441 save_LDFLAGS=$LDFLAGS
14442 save_libdir=$libdir
14443 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14444 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014446/* end confdefs.h. */
14447
14448int
14449main ()
14450{
14451
14452 ;
14453 return 0;
14454}
14455_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014456if ac_fn_c_try_link "$LINENO"; then :
14457 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristyfd9dcd42010-08-08 18:07:02 +000014458 lt_cv_shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000014459fi
cristy3ed852e2009-09-05 21:47:34 +000014460fi
cristy8b350f62009-11-15 23:12:43 +000014461rm -f core conftest.err conftest.$ac_objext \
14462 conftest$ac_exeext conftest.$ac_ext
cristyfd9dcd42010-08-08 18:07:02 +000014463 LDFLAGS=$save_LDFLAGS
14464 libdir=$save_libdir
14465
14466fi
14467
14468 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy3ed852e2009-09-05 21:47:34 +000014469
14470 # This implies no fast_install, which is unacceptable.
14471 # Some rework will be needed to allow for fast_install
14472 # before this can be enabled.
14473 hardcode_into_libs=yes
14474
cristy679ed8e2009-12-05 02:37:41 +000014475 # Add ABI-specific directories to the system library path.
14476 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14477
cristy3ed852e2009-09-05 21:47:34 +000014478 # Append ld.so.conf contents to the search path
14479 if test -f /etc/ld.so.conf; then
cristyfd9dcd42010-08-08 18:07:02 +000014480 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' ' '`
cristy679ed8e2009-12-05 02:37:41 +000014481 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristyfd9dcd42010-08-08 18:07:02 +000014482
cristy3ed852e2009-09-05 21:47:34 +000014483 fi
14484
14485 # We used to test for /lib/ld.so.1 and disable shared libraries on
14486 # powerpc, because MkLinux only supported shared libraries with the
14487 # GNU dynamic linker. Since this was broken with cross compilers,
14488 # most powerpc-linux boxes support dynamic linking these days and
14489 # people can always --disable-shared, the test was removed, and we
14490 # assume the GNU/Linux dynamic linker is in use.
14491 dynamic_linker='GNU/Linux ld.so'
14492 ;;
14493
14494netbsd*)
14495 version_type=sunos
14496 need_lib_prefix=no
14497 need_version=no
14498 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14500 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14501 dynamic_linker='NetBSD (a.out) ld.so'
14502 else
14503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14504 soname_spec='${libname}${release}${shared_ext}$major'
14505 dynamic_linker='NetBSD ld.elf_so'
14506 fi
14507 shlibpath_var=LD_LIBRARY_PATH
14508 shlibpath_overrides_runpath=yes
14509 hardcode_into_libs=yes
14510 ;;
14511
14512newsos6)
14513 version_type=linux
14514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14515 shlibpath_var=LD_LIBRARY_PATH
14516 shlibpath_overrides_runpath=yes
14517 ;;
14518
14519*nto* | *qnx*)
14520 version_type=qnx
14521 need_lib_prefix=no
14522 need_version=no
14523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14524 soname_spec='${libname}${release}${shared_ext}$major'
14525 shlibpath_var=LD_LIBRARY_PATH
14526 shlibpath_overrides_runpath=no
14527 hardcode_into_libs=yes
14528 dynamic_linker='ldqnx.so'
14529 ;;
14530
14531openbsd*)
14532 version_type=sunos
14533 sys_lib_dlsearch_path_spec="/usr/lib"
14534 need_lib_prefix=no
14535 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14536 case $host_os in
14537 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14538 *) need_version=no ;;
14539 esac
14540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14541 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14542 shlibpath_var=LD_LIBRARY_PATH
14543 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14544 case $host_os in
14545 openbsd2.[89] | openbsd2.[89].*)
14546 shlibpath_overrides_runpath=no
14547 ;;
14548 *)
14549 shlibpath_overrides_runpath=yes
14550 ;;
14551 esac
14552 else
14553 shlibpath_overrides_runpath=yes
14554 fi
14555 ;;
14556
14557os2*)
14558 libname_spec='$name'
14559 shrext_cmds=".dll"
14560 need_lib_prefix=no
14561 library_names_spec='$libname${shared_ext} $libname.a'
14562 dynamic_linker='OS/2 ld.exe'
14563 shlibpath_var=LIBPATH
14564 ;;
14565
14566osf3* | osf4* | osf5*)
14567 version_type=osf
14568 need_lib_prefix=no
14569 need_version=no
14570 soname_spec='${libname}${release}${shared_ext}$major'
14571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14572 shlibpath_var=LD_LIBRARY_PATH
14573 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14574 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14575 ;;
14576
14577rdos*)
14578 dynamic_linker=no
14579 ;;
14580
14581solaris*)
14582 version_type=linux
14583 need_lib_prefix=no
14584 need_version=no
14585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14586 soname_spec='${libname}${release}${shared_ext}$major'
14587 shlibpath_var=LD_LIBRARY_PATH
14588 shlibpath_overrides_runpath=yes
14589 hardcode_into_libs=yes
14590 # ldd complains unless libraries are executable
14591 postinstall_cmds='chmod +x $lib'
14592 ;;
14593
14594sunos4*)
14595 version_type=sunos
14596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14597 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14598 shlibpath_var=LD_LIBRARY_PATH
14599 shlibpath_overrides_runpath=yes
14600 if test "$with_gnu_ld" = yes; then
14601 need_lib_prefix=no
14602 fi
14603 need_version=yes
14604 ;;
14605
14606sysv4 | sysv4.3*)
14607 version_type=linux
14608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14609 soname_spec='${libname}${release}${shared_ext}$major'
14610 shlibpath_var=LD_LIBRARY_PATH
14611 case $host_vendor in
14612 sni)
14613 shlibpath_overrides_runpath=no
14614 need_lib_prefix=no
14615 runpath_var=LD_RUN_PATH
14616 ;;
14617 siemens)
14618 need_lib_prefix=no
14619 ;;
14620 motorola)
14621 need_lib_prefix=no
14622 need_version=no
14623 shlibpath_overrides_runpath=no
14624 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14625 ;;
14626 esac
14627 ;;
14628
14629sysv4*MP*)
14630 if test -d /usr/nec ;then
14631 version_type=linux
14632 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14633 soname_spec='$libname${shared_ext}.$major'
14634 shlibpath_var=LD_LIBRARY_PATH
14635 fi
14636 ;;
14637
14638sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14639 version_type=freebsd-elf
14640 need_lib_prefix=no
14641 need_version=no
14642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14643 soname_spec='${libname}${release}${shared_ext}$major'
14644 shlibpath_var=LD_LIBRARY_PATH
14645 shlibpath_overrides_runpath=yes
14646 hardcode_into_libs=yes
14647 if test "$with_gnu_ld" = yes; then
14648 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14649 else
14650 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14651 case $host_os in
14652 sco3.2v5*)
14653 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14654 ;;
14655 esac
14656 fi
14657 sys_lib_dlsearch_path_spec='/usr/lib'
14658 ;;
14659
14660tpf*)
14661 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14662 version_type=linux
14663 need_lib_prefix=no
14664 need_version=no
14665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14666 shlibpath_var=LD_LIBRARY_PATH
14667 shlibpath_overrides_runpath=no
14668 hardcode_into_libs=yes
14669 ;;
14670
14671uts4*)
14672 version_type=linux
14673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14674 soname_spec='${libname}${release}${shared_ext}$major'
14675 shlibpath_var=LD_LIBRARY_PATH
14676 ;;
14677
14678*)
14679 dynamic_linker=no
14680 ;;
14681esac
cristy8b350f62009-11-15 23:12:43 +000014682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000014683$as_echo "$dynamic_linker" >&6; }
14684test "$dynamic_linker" = no && can_build_shared=no
14685
14686variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14687if test "$GCC" = yes; then
14688 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14689fi
14690
14691if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14692 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14693fi
14694if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14695 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14696fi
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
cristyfd9dcd42010-08-08 18:07:02 +000014784
14785
14786
14787
14788
cristy8b350f62009-11-15 23:12:43 +000014789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014790$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14791hardcode_action=
14792if test -n "$hardcode_libdir_flag_spec" ||
14793 test -n "$runpath_var" ||
14794 test "X$hardcode_automatic" = "Xyes" ; then
14795
14796 # We can hardcode non-existent directories.
14797 if test "$hardcode_direct" != no &&
14798 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14799 # have to relink, otherwise we might link with an installed library
14800 # when we should be linking with a yet-to-be-installed one
14801 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14802 test "$hardcode_minus_L" != no; then
14803 # Linking always hardcodes the temporary library directory.
14804 hardcode_action=relink
14805 else
14806 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14807 hardcode_action=immediate
14808 fi
14809else
14810 # We cannot hardcode anything, or else we can only hardcode existing
14811 # directories.
14812 hardcode_action=unsupported
14813fi
cristy8b350f62009-11-15 23:12:43 +000014814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000014815$as_echo "$hardcode_action" >&6; }
14816
14817if test "$hardcode_action" = relink ||
14818 test "$inherit_rpath" = yes; then
14819 # Fast installation is not supported
14820 enable_fast_install=no
14821elif test "$shlibpath_overrides_runpath" = yes ||
14822 test "$enable_shared" = no; then
14823 # Fast installation is not necessary
14824 enable_fast_install=needless
14825fi
14826
14827
14828
14829
14830
14831
14832 if test "x$enable_dlopen" != xyes; then
14833 enable_dlopen=unknown
14834 enable_dlopen_self=unknown
14835 enable_dlopen_self_static=unknown
14836else
14837 lt_cv_dlopen=no
14838 lt_cv_dlopen_libs=
14839
14840 case $host_os in
14841 beos*)
14842 lt_cv_dlopen="load_add_on"
14843 lt_cv_dlopen_libs=
14844 lt_cv_dlopen_self=yes
14845 ;;
14846
14847 mingw* | pw32* | cegcc*)
14848 lt_cv_dlopen="LoadLibrary"
14849 lt_cv_dlopen_libs=
14850 ;;
14851
14852 cygwin*)
14853 lt_cv_dlopen="dlopen"
14854 lt_cv_dlopen_libs=
14855 ;;
14856
14857 darwin*)
14858 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000014859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000014860$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014861if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014862 $as_echo_n "(cached) " >&6
14863else
14864 ac_check_lib_save_LIBS=$LIBS
14865LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014867/* end confdefs.h. */
14868
14869/* Override any GCC internal prototype to avoid an error.
14870 Use char because int might match the return type of a GCC
14871 builtin and then its argument prototype would still apply. */
14872#ifdef __cplusplus
14873extern "C"
14874#endif
14875char dlopen ();
14876int
14877main ()
14878{
14879return dlopen ();
14880 ;
14881 return 0;
14882}
14883_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014884if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014885 ac_cv_lib_dl_dlopen=yes
14886else
cristy8b350f62009-11-15 23:12:43 +000014887 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014888fi
cristy8b350f62009-11-15 23:12:43 +000014889rm -f core conftest.err conftest.$ac_objext \
14890 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014891LIBS=$ac_check_lib_save_LIBS
14892fi
cristy8b350f62009-11-15 23:12:43 +000014893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014894$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014895if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014896 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14897else
14898
14899 lt_cv_dlopen="dyld"
14900 lt_cv_dlopen_libs=
14901 lt_cv_dlopen_self=yes
14902
14903fi
14904
14905 ;;
14906
14907 *)
cristy8b350f62009-11-15 23:12:43 +000014908 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14909if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014910 lt_cv_dlopen="shl_load"
14911else
cristy8b350f62009-11-15 23:12:43 +000014912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014913$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014914if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014915 $as_echo_n "(cached) " >&6
14916else
14917 ac_check_lib_save_LIBS=$LIBS
14918LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014920/* end confdefs.h. */
14921
14922/* Override any GCC internal prototype to avoid an error.
14923 Use char because int might match the return type of a GCC
14924 builtin and then its argument prototype would still apply. */
14925#ifdef __cplusplus
14926extern "C"
14927#endif
14928char shl_load ();
14929int
14930main ()
14931{
14932return shl_load ();
14933 ;
14934 return 0;
14935}
14936_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014937if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014938 ac_cv_lib_dld_shl_load=yes
14939else
cristy8b350f62009-11-15 23:12:43 +000014940 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000014941fi
cristy8b350f62009-11-15 23:12:43 +000014942rm -f core conftest.err conftest.$ac_objext \
14943 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014944LIBS=$ac_check_lib_save_LIBS
14945fi
cristy8b350f62009-11-15 23:12:43 +000014946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000014947$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014948if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014949 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14950else
cristy8b350f62009-11-15 23:12:43 +000014951 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14952if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014953 lt_cv_dlopen="dlopen"
14954else
cristy8b350f62009-11-15 23:12:43 +000014955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000014956$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014957if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014958 $as_echo_n "(cached) " >&6
14959else
14960 ac_check_lib_save_LIBS=$LIBS
14961LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014963/* end confdefs.h. */
14964
14965/* Override any GCC internal prototype to avoid an error.
14966 Use char because int might match the return type of a GCC
14967 builtin and then its argument prototype would still apply. */
14968#ifdef __cplusplus
14969extern "C"
14970#endif
14971char dlopen ();
14972int
14973main ()
14974{
14975return dlopen ();
14976 ;
14977 return 0;
14978}
14979_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014980if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014981 ac_cv_lib_dl_dlopen=yes
14982else
cristy8b350f62009-11-15 23:12:43 +000014983 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014984fi
cristy8b350f62009-11-15 23:12:43 +000014985rm -f core conftest.err conftest.$ac_objext \
14986 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014987LIBS=$ac_check_lib_save_LIBS
14988fi
cristy8b350f62009-11-15 23:12:43 +000014989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014990$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014991if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014992 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14993else
cristy8b350f62009-11-15 23:12:43 +000014994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014995$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014996if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014997 $as_echo_n "(cached) " >&6
14998else
14999 ac_check_lib_save_LIBS=$LIBS
15000LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015002/* end confdefs.h. */
15003
15004/* Override any GCC internal prototype to avoid an error.
15005 Use char because int might match the return type of a GCC
15006 builtin and then its argument prototype would still apply. */
15007#ifdef __cplusplus
15008extern "C"
15009#endif
15010char dlopen ();
15011int
15012main ()
15013{
15014return dlopen ();
15015 ;
15016 return 0;
15017}
15018_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015019if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015020 ac_cv_lib_svld_dlopen=yes
15021else
cristy8b350f62009-11-15 23:12:43 +000015022 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015023fi
cristy8b350f62009-11-15 23:12:43 +000015024rm -f core conftest.err conftest.$ac_objext \
15025 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015026LIBS=$ac_check_lib_save_LIBS
15027fi
cristy8b350f62009-11-15 23:12:43 +000015028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015029$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015030if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015031 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15032else
cristy8b350f62009-11-15 23:12:43 +000015033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015034$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015035if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015036 $as_echo_n "(cached) " >&6
15037else
15038 ac_check_lib_save_LIBS=$LIBS
15039LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015041/* end confdefs.h. */
15042
15043/* Override any GCC internal prototype to avoid an error.
15044 Use char because int might match the return type of a GCC
15045 builtin and then its argument prototype would still apply. */
15046#ifdef __cplusplus
15047extern "C"
15048#endif
15049char dld_link ();
15050int
15051main ()
15052{
15053return dld_link ();
15054 ;
15055 return 0;
15056}
15057_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015058if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015059 ac_cv_lib_dld_dld_link=yes
15060else
cristy8b350f62009-11-15 23:12:43 +000015061 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000015062fi
cristy8b350f62009-11-15 23:12:43 +000015063rm -f core conftest.err conftest.$ac_objext \
15064 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015065LIBS=$ac_check_lib_save_LIBS
15066fi
cristy8b350f62009-11-15 23:12:43 +000015067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000015068$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015069if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015070 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15071fi
15072
15073
15074fi
15075
15076
15077fi
15078
15079
15080fi
15081
15082
15083fi
15084
15085
15086fi
15087
15088 ;;
15089 esac
15090
15091 if test "x$lt_cv_dlopen" != xno; then
15092 enable_dlopen=yes
15093 else
15094 enable_dlopen=no
15095 fi
15096
15097 case $lt_cv_dlopen in
15098 dlopen)
15099 save_CPPFLAGS="$CPPFLAGS"
15100 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15101
15102 save_LDFLAGS="$LDFLAGS"
15103 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15104
15105 save_LIBS="$LIBS"
15106 LIBS="$lt_cv_dlopen_libs $LIBS"
15107
cristy8b350f62009-11-15 23:12:43 +000015108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015109$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015110if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015111 $as_echo_n "(cached) " >&6
15112else
15113 if test "$cross_compiling" = yes; then :
15114 lt_cv_dlopen_self=cross
15115else
15116 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15117 lt_status=$lt_dlunknown
15118 cat > conftest.$ac_ext <<_LT_EOF
cristyfd9dcd42010-08-08 18:07:02 +000015119#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000015120#include "confdefs.h"
15121
15122#if HAVE_DLFCN_H
15123#include <dlfcn.h>
15124#endif
15125
15126#include <stdio.h>
15127
15128#ifdef RTLD_GLOBAL
15129# define LT_DLGLOBAL RTLD_GLOBAL
15130#else
15131# ifdef DL_GLOBAL
15132# define LT_DLGLOBAL DL_GLOBAL
15133# else
15134# define LT_DLGLOBAL 0
15135# endif
15136#endif
15137
15138/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15139 find out it does not work in some platform. */
15140#ifndef LT_DLLAZY_OR_NOW
15141# ifdef RTLD_LAZY
15142# define LT_DLLAZY_OR_NOW RTLD_LAZY
15143# else
15144# ifdef DL_LAZY
15145# define LT_DLLAZY_OR_NOW DL_LAZY
15146# else
15147# ifdef RTLD_NOW
15148# define LT_DLLAZY_OR_NOW RTLD_NOW
15149# else
15150# ifdef DL_NOW
15151# define LT_DLLAZY_OR_NOW DL_NOW
15152# else
15153# define LT_DLLAZY_OR_NOW 0
15154# endif
15155# endif
15156# endif
15157# endif
15158#endif
15159
cristyfd9dcd42010-08-08 18:07:02 +000015160/* When -fvisbility=hidden is used, assume the code has been annotated
15161 correspondingly for the symbols needed. */
15162#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15163void fnord () __attribute__((visibility("default")));
15164#endif
15165
15166void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000015167int main ()
15168{
15169 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15170 int status = $lt_dlunknown;
15171
15172 if (self)
15173 {
15174 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristyfd9dcd42010-08-08 18:07:02 +000015175 else
15176 {
15177 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15178 else puts (dlerror ());
15179 }
cristy3ed852e2009-09-05 21:47:34 +000015180 /* dlclose (self); */
15181 }
15182 else
15183 puts (dlerror ());
15184
15185 return status;
15186}
15187_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015189 (eval $ac_link) 2>&5
15190 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15192 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015193 (./conftest; exit; ) >&5 2>/dev/null
15194 lt_status=$?
15195 case x$lt_status in
15196 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15197 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15198 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15199 esac
15200 else :
15201 # compilation failed
15202 lt_cv_dlopen_self=no
15203 fi
15204fi
15205rm -fr conftest*
15206
15207
15208fi
cristy8b350f62009-11-15 23:12:43 +000015209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000015210$as_echo "$lt_cv_dlopen_self" >&6; }
15211
15212 if test "x$lt_cv_dlopen_self" = xyes; then
15213 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000015214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015215$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015216if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015217 $as_echo_n "(cached) " >&6
15218else
15219 if test "$cross_compiling" = yes; then :
15220 lt_cv_dlopen_self_static=cross
15221else
15222 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15223 lt_status=$lt_dlunknown
15224 cat > conftest.$ac_ext <<_LT_EOF
cristyfd9dcd42010-08-08 18:07:02 +000015225#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000015226#include "confdefs.h"
15227
15228#if HAVE_DLFCN_H
15229#include <dlfcn.h>
15230#endif
15231
15232#include <stdio.h>
15233
15234#ifdef RTLD_GLOBAL
15235# define LT_DLGLOBAL RTLD_GLOBAL
15236#else
15237# ifdef DL_GLOBAL
15238# define LT_DLGLOBAL DL_GLOBAL
15239# else
15240# define LT_DLGLOBAL 0
15241# endif
15242#endif
15243
15244/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15245 find out it does not work in some platform. */
15246#ifndef LT_DLLAZY_OR_NOW
15247# ifdef RTLD_LAZY
15248# define LT_DLLAZY_OR_NOW RTLD_LAZY
15249# else
15250# ifdef DL_LAZY
15251# define LT_DLLAZY_OR_NOW DL_LAZY
15252# else
15253# ifdef RTLD_NOW
15254# define LT_DLLAZY_OR_NOW RTLD_NOW
15255# else
15256# ifdef DL_NOW
15257# define LT_DLLAZY_OR_NOW DL_NOW
15258# else
15259# define LT_DLLAZY_OR_NOW 0
15260# endif
15261# endif
15262# endif
15263# endif
15264#endif
15265
cristyfd9dcd42010-08-08 18:07:02 +000015266/* When -fvisbility=hidden is used, assume the code has been annotated
15267 correspondingly for the symbols needed. */
15268#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15269void fnord () __attribute__((visibility("default")));
15270#endif
15271
15272void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000015273int main ()
15274{
15275 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15276 int status = $lt_dlunknown;
15277
15278 if (self)
15279 {
15280 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristyfd9dcd42010-08-08 18:07:02 +000015281 else
15282 {
15283 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15284 else puts (dlerror ());
15285 }
cristy3ed852e2009-09-05 21:47:34 +000015286 /* dlclose (self); */
15287 }
15288 else
15289 puts (dlerror ());
15290
15291 return status;
15292}
15293_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015295 (eval $ac_link) 2>&5
15296 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15298 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015299 (./conftest; exit; ) >&5 2>/dev/null
15300 lt_status=$?
15301 case x$lt_status in
15302 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15303 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15304 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15305 esac
15306 else :
15307 # compilation failed
15308 lt_cv_dlopen_self_static=no
15309 fi
15310fi
15311rm -fr conftest*
15312
15313
15314fi
cristy8b350f62009-11-15 23:12:43 +000015315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015316$as_echo "$lt_cv_dlopen_self_static" >&6; }
15317 fi
15318
15319 CPPFLAGS="$save_CPPFLAGS"
15320 LDFLAGS="$save_LDFLAGS"
15321 LIBS="$save_LIBS"
15322 ;;
15323 esac
15324
15325 case $lt_cv_dlopen_self in
15326 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15327 *) enable_dlopen_self=unknown ;;
15328 esac
15329
15330 case $lt_cv_dlopen_self_static in
15331 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15332 *) enable_dlopen_self_static=unknown ;;
15333 esac
15334fi
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352striplib=
15353old_striplib=
cristy8b350f62009-11-15 23:12:43 +000015354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000015355$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15356if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15357 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15358 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000015359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015360$as_echo "yes" >&6; }
15361else
15362# FIXME - insert some real tests, host_os isn't really good enough
15363 case $host_os in
15364 darwin*)
15365 if test -n "$STRIP" ; then
15366 striplib="$STRIP -x"
15367 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000015368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015369$as_echo "yes" >&6; }
15370 else
cristy8b350f62009-11-15 23:12:43 +000015371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015372$as_echo "no" >&6; }
15373 fi
15374 ;;
15375 *)
cristy8b350f62009-11-15 23:12:43 +000015376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015377$as_echo "no" >&6; }
15378 ;;
15379 esac
15380fi
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000015394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015395$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015397$as_echo "$can_build_shared" >&6; }
15398
cristy8b350f62009-11-15 23:12:43 +000015399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015400$as_echo_n "checking whether to build shared libraries... " >&6; }
15401 test "$can_build_shared" = "no" && enable_shared=no
15402
15403 # On AIX, shared libraries and static libraries use the same namespace, and
15404 # are all built from PIC.
15405 case $host_os in
15406 aix3*)
15407 test "$enable_shared" = yes && enable_static=no
15408 if test -n "$RANLIB"; then
15409 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15410 postinstall_cmds='$RANLIB $lib'
15411 fi
15412 ;;
15413
15414 aix[4-9]*)
15415 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15416 test "$enable_shared" = yes && enable_static=no
15417 fi
15418 ;;
15419 esac
cristy8b350f62009-11-15 23:12:43 +000015420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015421$as_echo "$enable_shared" >&6; }
15422
cristy8b350f62009-11-15 23:12:43 +000015423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015424$as_echo_n "checking whether to build static libraries... " >&6; }
15425 # Make sure either enable_shared or enable_static is yes.
15426 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000015427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015428$as_echo "$enable_static" >&6; }
15429
15430
15431
15432
15433fi
15434ac_ext=c
15435ac_cpp='$CPP $CPPFLAGS'
15436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15438ac_compiler_gnu=$ac_cv_c_compiler_gnu
15439
15440CC="$lt_save_CC"
15441
cristyfd9dcd42010-08-08 18:07:02 +000015442 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15443 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15444 (test "X$CXX" != "Xg++"))) ; then
15445 ac_ext=cpp
15446ac_cpp='$CXXCPP $CPPFLAGS'
15447ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15448ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15449ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15451$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15452if test -z "$CXXCPP"; then
15453 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
15454 $as_echo_n "(cached) " >&6
15455else
15456 # Double quotes because CXXCPP needs to be expanded
15457 for CXXCPP in "$CXX -E" "/lib/cpp"
15458 do
15459 ac_preproc_ok=false
15460for ac_cxx_preproc_warn_flag in '' yes
15461do
15462 # Use a header file that comes with gcc, so configuring glibc
15463 # with a fresh cross-compiler works.
15464 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15465 # <limits.h> exists even on freestanding compilers.
15466 # On the NeXT, cc -E runs the code through the compiler's parser,
15467 # not just through cpp. "Syntax error" is here to catch this case.
15468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15469/* end confdefs.h. */
15470#ifdef __STDC__
15471# include <limits.h>
15472#else
15473# include <assert.h>
15474#endif
15475 Syntax error
15476_ACEOF
15477if ac_fn_cxx_try_cpp "$LINENO"; then :
15478
15479else
15480 # Broken: fails on valid input.
15481continue
15482fi
15483rm -f conftest.err conftest.$ac_ext
15484
15485 # OK, works on sane cases. Now check whether nonexistent headers
15486 # can be detected and how.
15487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15488/* end confdefs.h. */
15489#include <ac_nonexistent.h>
15490_ACEOF
15491if ac_fn_cxx_try_cpp "$LINENO"; then :
15492 # Broken: success on invalid input.
15493continue
15494else
15495 # Passes both tests.
15496ac_preproc_ok=:
15497break
15498fi
15499rm -f conftest.err conftest.$ac_ext
15500
15501done
15502# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15503rm -f conftest.err conftest.$ac_ext
15504if $ac_preproc_ok; then :
15505 break
15506fi
15507
15508 done
15509 ac_cv_prog_CXXCPP=$CXXCPP
15510
15511fi
15512 CXXCPP=$ac_cv_prog_CXXCPP
15513else
15514 ac_cv_prog_CXXCPP=$CXXCPP
15515fi
15516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15517$as_echo "$CXXCPP" >&6; }
15518ac_preproc_ok=false
15519for ac_cxx_preproc_warn_flag in '' yes
15520do
15521 # Use a header file that comes with gcc, so configuring glibc
15522 # with a fresh cross-compiler works.
15523 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15524 # <limits.h> exists even on freestanding compilers.
15525 # On the NeXT, cc -E runs the code through the compiler's parser,
15526 # not just through cpp. "Syntax error" is here to catch this case.
15527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15528/* end confdefs.h. */
15529#ifdef __STDC__
15530# include <limits.h>
15531#else
15532# include <assert.h>
15533#endif
15534 Syntax error
15535_ACEOF
15536if ac_fn_cxx_try_cpp "$LINENO"; then :
15537
15538else
15539 # Broken: fails on valid input.
15540continue
15541fi
15542rm -f conftest.err conftest.$ac_ext
15543
15544 # OK, works on sane cases. Now check whether nonexistent headers
15545 # can be detected and how.
15546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15547/* end confdefs.h. */
15548#include <ac_nonexistent.h>
15549_ACEOF
15550if ac_fn_cxx_try_cpp "$LINENO"; then :
15551 # Broken: success on invalid input.
15552continue
15553else
15554 # Passes both tests.
15555ac_preproc_ok=:
15556break
15557fi
15558rm -f conftest.err conftest.$ac_ext
15559
15560done
15561# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15562rm -f conftest.err conftest.$ac_ext
15563if $ac_preproc_ok; then :
15564
15565else
15566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15567$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15568as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15569See \`config.log' for more details" "$LINENO" 5; }
15570fi
15571
15572ac_ext=c
15573ac_cpp='$CPP $CPPFLAGS'
15574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15576ac_compiler_gnu=$ac_cv_c_compiler_gnu
15577
15578else
15579 _lt_caught_CXX_error=yes
15580fi
cristy3ed852e2009-09-05 21:47:34 +000015581
15582ac_ext=cpp
15583ac_cpp='$CXXCPP $CPPFLAGS'
15584ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15585ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15586ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15587
15588archive_cmds_need_lc_CXX=no
15589allow_undefined_flag_CXX=
15590always_export_symbols_CXX=no
15591archive_expsym_cmds_CXX=
15592compiler_needs_object_CXX=no
15593export_dynamic_flag_spec_CXX=
15594hardcode_direct_CXX=no
15595hardcode_direct_absolute_CXX=no
15596hardcode_libdir_flag_spec_CXX=
15597hardcode_libdir_flag_spec_ld_CXX=
15598hardcode_libdir_separator_CXX=
15599hardcode_minus_L_CXX=no
15600hardcode_shlibpath_var_CXX=unsupported
15601hardcode_automatic_CXX=no
15602inherit_rpath_CXX=no
15603module_cmds_CXX=
15604module_expsym_cmds_CXX=
15605link_all_deplibs_CXX=unknown
15606old_archive_cmds_CXX=$old_archive_cmds
cristyfd9dcd42010-08-08 18:07:02 +000015607reload_flag_CXX=$reload_flag
15608reload_cmds_CXX=$reload_cmds
cristy3ed852e2009-09-05 21:47:34 +000015609no_undefined_flag_CXX=
15610whole_archive_flag_spec_CXX=
15611enable_shared_with_static_runtimes_CXX=no
15612
15613# Source file extension for C++ test sources.
15614ac_ext=cpp
15615
15616# Object file extension for compiled C++ test sources.
15617objext=o
15618objext_CXX=$objext
15619
15620# No sense in running all these tests if we already determined that
15621# the CXX compiler isn't working. Some variables (like enable_shared)
15622# are currently assumed to apply to all compilers on this platform,
15623# and will be corrupted by setting them based on a non-working compiler.
15624if test "$_lt_caught_CXX_error" != yes; then
15625 # Code to be used in simple compile tests
15626 lt_simple_compile_test_code="int some_variable = 0;"
15627
15628 # Code to be used in simple link tests
15629 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15630
15631 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15632
15633
15634
15635
15636
15637
15638# If no C compiler was specified, use CC.
15639LTCC=${LTCC-"$CC"}
15640
15641# If no C compiler flags were specified, use CFLAGS.
15642LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15643
15644# Allow CC to be a program name with arguments.
15645compiler=$CC
15646
15647
15648 # save warnings/boilerplate of simple test code
15649 ac_outfile=conftest.$ac_objext
15650echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15651eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15652_lt_compiler_boilerplate=`cat conftest.err`
15653$RM conftest*
15654
15655 ac_outfile=conftest.$ac_objext
15656echo "$lt_simple_link_test_code" >conftest.$ac_ext
15657eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15658_lt_linker_boilerplate=`cat conftest.err`
15659$RM -r conftest*
15660
15661
15662 # Allow CC to be a program name with arguments.
15663 lt_save_CC=$CC
15664 lt_save_LD=$LD
15665 lt_save_GCC=$GCC
15666 GCC=$GXX
15667 lt_save_with_gnu_ld=$with_gnu_ld
15668 lt_save_path_LD=$lt_cv_path_LD
15669 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15670 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15671 else
15672 $as_unset lt_cv_prog_gnu_ld
15673 fi
15674 if test -n "${lt_cv_path_LDCXX+set}"; then
15675 lt_cv_path_LD=$lt_cv_path_LDCXX
15676 else
15677 $as_unset lt_cv_path_LD
15678 fi
15679 test -z "${LDCXX+set}" || LD=$LDCXX
15680 CC=${CXX-"c++"}
15681 compiler=$CC
15682 compiler_CXX=$CC
15683 for cc_temp in $compiler""; do
15684 case $cc_temp in
15685 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15686 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15687 \-*) ;;
15688 *) break;;
15689 esac
15690done
cristyfd9dcd42010-08-08 18:07:02 +000015691cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000015692
15693
15694 if test -n "$compiler"; then
15695 # We don't want -fno-exception when compiling C++ code, so set the
15696 # no_builtin_flag separately
15697 if test "$GXX" = yes; then
15698 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15699 else
15700 lt_prog_compiler_no_builtin_flag_CXX=
15701 fi
15702
15703 if test "$GXX" = yes; then
15704 # Set up default GNU C++ configuration
15705
15706
15707
15708# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000015709if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015710 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15711else
15712 with_gnu_ld=no
15713fi
15714
15715ac_prog=ld
15716if test "$GCC" = yes; then
15717 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000015718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000015719$as_echo_n "checking for ld used by $CC... " >&6; }
15720 case $host in
15721 *-*-mingw*)
15722 # gcc leaves a trailing carriage return which upsets mingw
15723 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15724 *)
15725 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15726 esac
15727 case $ac_prog in
15728 # Accept absolute paths.
15729 [\\/]* | ?:[\\/]*)
15730 re_direlt='/[^/][^/]*/\.\./'
15731 # Canonicalize the pathname of ld
15732 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15733 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15734 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15735 done
15736 test -z "$LD" && LD="$ac_prog"
15737 ;;
15738 "")
15739 # If it fails, then pretend we aren't using GCC.
15740 ac_prog=ld
15741 ;;
15742 *)
15743 # If it is relative, then search for the first ld in PATH.
15744 with_gnu_ld=unknown
15745 ;;
15746 esac
15747elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000015748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015749$as_echo_n "checking for GNU ld... " >&6; }
15750else
cristy8b350f62009-11-15 23:12:43 +000015751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015752$as_echo_n "checking for non-GNU ld... " >&6; }
15753fi
cristy8b350f62009-11-15 23:12:43 +000015754if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015755 $as_echo_n "(cached) " >&6
15756else
15757 if test -z "$LD"; then
15758 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15759 for ac_dir in $PATH; do
15760 IFS="$lt_save_ifs"
15761 test -z "$ac_dir" && ac_dir=.
15762 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15763 lt_cv_path_LD="$ac_dir/$ac_prog"
15764 # Check to see if the program is GNU ld. I'd rather use --version,
15765 # but apparently some variants of GNU ld only accept -v.
15766 # Break only if it was the GNU/non-GNU ld that we prefer.
15767 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15768 *GNU* | *'with BFD'*)
15769 test "$with_gnu_ld" != no && break
15770 ;;
15771 *)
15772 test "$with_gnu_ld" != yes && break
15773 ;;
15774 esac
15775 fi
15776 done
15777 IFS="$lt_save_ifs"
15778else
15779 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15780fi
15781fi
15782
15783LD="$lt_cv_path_LD"
15784if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000015785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000015786$as_echo "$LD" >&6; }
15787else
cristy8b350f62009-11-15 23:12:43 +000015788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015789$as_echo "no" >&6; }
15790fi
cristyfd9dcd42010-08-08 18:07:02 +000015791test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy8b350f62009-11-15 23:12:43 +000015792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015793$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015794if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015795 $as_echo_n "(cached) " >&6
15796else
15797 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15798case `$LD -v 2>&1 </dev/null` in
15799*GNU* | *'with BFD'*)
15800 lt_cv_prog_gnu_ld=yes
15801 ;;
15802*)
15803 lt_cv_prog_gnu_ld=no
15804 ;;
15805esac
15806fi
cristy8b350f62009-11-15 23:12:43 +000015807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015808$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15809with_gnu_ld=$lt_cv_prog_gnu_ld
15810
15811
15812
15813
15814
15815
15816
15817 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15818 # archiving commands below assume that GNU ld is being used.
15819 if test "$with_gnu_ld" = yes; then
15820 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15821 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'
15822
15823 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15824 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15825
15826 # If archive_cmds runs LD, not CC, wlarc should be empty
15827 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15828 # investigate it a little bit more. (MM)
15829 wlarc='${wl}'
15830
15831 # ancient GNU ld didn't support --whole-archive et. al.
15832 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15833 $GREP 'no-whole-archive' > /dev/null; then
15834 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15835 else
15836 whole_archive_flag_spec_CXX=
15837 fi
15838 else
15839 with_gnu_ld=no
15840 wlarc=
15841
15842 # A generic and very simple default shared library creation
15843 # command for GNU C++ for the case where it uses the native
15844 # linker, instead of GNU ld. If possible, this setting should
15845 # overridden to take advantage of the native linker features on
15846 # the platform it is being used on.
15847 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15848 fi
15849
15850 # Commands to make compiler produce verbose output that lists
15851 # what "hidden" libraries, object files and flags are used when
15852 # linking a shared library.
cristyfd9dcd42010-08-08 18:07:02 +000015853 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015854
15855 else
15856 GXX=no
15857 with_gnu_ld=no
15858 wlarc=
15859 fi
15860
15861 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000015862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015863$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15864 ld_shlibs_CXX=yes
15865 case $host_os in
15866 aix3*)
15867 # FIXME: insert proper C++ library support
15868 ld_shlibs_CXX=no
15869 ;;
15870 aix[4-9]*)
15871 if test "$host_cpu" = ia64; then
15872 # On IA64, the linker does run time linking by default, so we don't
15873 # have to do anything special.
15874 aix_use_runtimelinking=no
15875 exp_sym_flag='-Bexport'
15876 no_entry_flag=""
15877 else
15878 aix_use_runtimelinking=no
15879
15880 # Test if we are trying to use run time linking or normal
15881 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15882 # need to do runtime linking.
15883 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15884 for ld_flag in $LDFLAGS; do
15885 case $ld_flag in
15886 *-brtl*)
15887 aix_use_runtimelinking=yes
15888 break
15889 ;;
15890 esac
15891 done
15892 ;;
15893 esac
15894
15895 exp_sym_flag='-bexport'
15896 no_entry_flag='-bnoentry'
15897 fi
15898
15899 # When large executables or shared objects are built, AIX ld can
15900 # have problems creating the table of contents. If linking a library
15901 # or program results in "error TOC overflow" add -mminimal-toc to
15902 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15903 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15904
15905 archive_cmds_CXX=''
15906 hardcode_direct_CXX=yes
15907 hardcode_direct_absolute_CXX=yes
15908 hardcode_libdir_separator_CXX=':'
15909 link_all_deplibs_CXX=yes
15910 file_list_spec_CXX='${wl}-f,'
15911
15912 if test "$GXX" = yes; then
15913 case $host_os in aix4.[012]|aix4.[012].*)
15914 # We only want to do this on AIX 4.2 and lower, the check
15915 # below for broken collect2 doesn't work under 4.3+
15916 collect2name=`${CC} -print-prog-name=collect2`
15917 if test -f "$collect2name" &&
15918 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15919 then
15920 # We have reworked collect2
15921 :
15922 else
15923 # We have old collect2
15924 hardcode_direct_CXX=unsupported
15925 # It fails to find uninstalled libraries when the uninstalled
15926 # path is not listed in the libpath. Setting hardcode_minus_L
15927 # to unsupported forces relinking
15928 hardcode_minus_L_CXX=yes
15929 hardcode_libdir_flag_spec_CXX='-L$libdir'
15930 hardcode_libdir_separator_CXX=
15931 fi
15932 esac
15933 shared_flag='-shared'
15934 if test "$aix_use_runtimelinking" = yes; then
15935 shared_flag="$shared_flag "'${wl}-G'
15936 fi
15937 else
15938 # not using gcc
15939 if test "$host_cpu" = ia64; then
15940 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15941 # chokes on -Wl,-G. The following line is correct:
15942 shared_flag='-G'
15943 else
15944 if test "$aix_use_runtimelinking" = yes; then
15945 shared_flag='${wl}-G'
15946 else
15947 shared_flag='${wl}-bM:SRE'
15948 fi
15949 fi
15950 fi
15951
15952 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15953 # It seems that -bexpall does not export symbols beginning with
15954 # underscore (_), so it is better to generate a list of symbols to
15955 # export.
15956 always_export_symbols_CXX=yes
15957 if test "$aix_use_runtimelinking" = yes; then
15958 # Warning - without using the other runtime loading flags (-brtl),
15959 # -berok will link without error, but may produce a broken library.
15960 allow_undefined_flag_CXX='-berok'
15961 # Determine the default libpath from the value encoded in an empty
15962 # executable.
cristy8b350f62009-11-15 23:12:43 +000015963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015964/* end confdefs.h. */
15965
15966int
15967main ()
15968{
15969
15970 ;
15971 return 0;
15972}
15973_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015974if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015975
15976lt_aix_libpath_sed='
15977 /Import File Strings/,/^$/ {
15978 /^0/ {
15979 s/^0 *\(.*\)$/\1/
15980 p
15981 }
15982 }'
15983aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15984# Check for a 64-bit object if we didn't find anything.
15985if test -z "$aix_libpath"; then
15986 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15987fi
cristy3ed852e2009-09-05 21:47:34 +000015988fi
cristy8b350f62009-11-15 23:12:43 +000015989rm -f core conftest.err conftest.$ac_objext \
15990 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015991if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15992
15993 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15994
cristyfd9dcd42010-08-08 18:07:02 +000015995 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"
cristy3ed852e2009-09-05 21:47:34 +000015996 else
15997 if test "$host_cpu" = ia64; then
15998 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15999 allow_undefined_flag_CXX="-z nodefs"
16000 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"
16001 else
16002 # Determine the default libpath from the value encoded in an
16003 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000016004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016005/* end confdefs.h. */
16006
16007int
16008main ()
16009{
16010
16011 ;
16012 return 0;
16013}
16014_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016015if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016016
16017lt_aix_libpath_sed='
16018 /Import File Strings/,/^$/ {
16019 /^0/ {
16020 s/^0 *\(.*\)$/\1/
16021 p
16022 }
16023 }'
16024aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16025# Check for a 64-bit object if we didn't find anything.
16026if test -z "$aix_libpath"; then
16027 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16028fi
cristy3ed852e2009-09-05 21:47:34 +000016029fi
cristy8b350f62009-11-15 23:12:43 +000016030rm -f core conftest.err conftest.$ac_objext \
16031 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016032if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16033
16034 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16035 # Warning - without using the other run time loading flags,
16036 # -berok will link without error, but may produce a broken library.
16037 no_undefined_flag_CXX=' ${wl}-bernotok'
16038 allow_undefined_flag_CXX=' ${wl}-berok'
cristyfd9dcd42010-08-08 18:07:02 +000016039 if test "$with_gnu_ld" = yes; then
16040 # We only use this code for GNU lds that support --whole-archive.
16041 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16042 else
16043 # Exported symbols can be pulled into shared objects from archives
16044 whole_archive_flag_spec_CXX='$convenience'
16045 fi
cristy3ed852e2009-09-05 21:47:34 +000016046 archive_cmds_need_lc_CXX=yes
16047 # This is similar to how AIX traditionally builds its shared
16048 # libraries.
16049 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'
16050 fi
16051 fi
16052 ;;
16053
16054 beos*)
16055 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16056 allow_undefined_flag_CXX=unsupported
16057 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16058 # support --undefined. This deserves some investigation. FIXME
16059 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16060 else
16061 ld_shlibs_CXX=no
16062 fi
16063 ;;
16064
16065 chorus*)
16066 case $cc_basename in
16067 *)
16068 # FIXME: insert proper C++ library support
16069 ld_shlibs_CXX=no
16070 ;;
16071 esac
16072 ;;
16073
16074 cygwin* | mingw* | pw32* | cegcc*)
16075 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16076 # as there is no search path for DLLs.
16077 hardcode_libdir_flag_spec_CXX='-L$libdir'
cristyfd9dcd42010-08-08 18:07:02 +000016078 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
cristy3ed852e2009-09-05 21:47:34 +000016079 allow_undefined_flag_CXX=unsupported
16080 always_export_symbols_CXX=no
16081 enable_shared_with_static_runtimes_CXX=yes
16082
16083 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16084 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'
16085 # If the export-symbols file already is a .def file (1st line
16086 # is EXPORTS), use it as is; otherwise, prepend...
16087 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16088 cp $export_symbols $output_objdir/$soname.def;
16089 else
16090 echo EXPORTS > $output_objdir/$soname.def;
16091 cat $export_symbols >> $output_objdir/$soname.def;
16092 fi~
16093 $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'
16094 else
16095 ld_shlibs_CXX=no
16096 fi
16097 ;;
16098 darwin* | rhapsody*)
16099
16100
16101 archive_cmds_need_lc_CXX=no
16102 hardcode_direct_CXX=no
16103 hardcode_automatic_CXX=yes
16104 hardcode_shlibpath_var_CXX=unsupported
cristyfd9dcd42010-08-08 18:07:02 +000016105 if test "$lt_cv_ld_force_load" = "yes"; then
16106 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\"`'
16107 else
16108 whole_archive_flag_spec_CXX=''
16109 fi
cristy3ed852e2009-09-05 21:47:34 +000016110 link_all_deplibs_CXX=yes
16111 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16112 case $cc_basename in
16113 ifort*) _lt_dar_can_shared=yes ;;
16114 *) _lt_dar_can_shared=$GCC ;;
16115 esac
16116 if test "$_lt_dar_can_shared" = "yes"; then
cristyfd9dcd42010-08-08 18:07:02 +000016117 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000016118 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}"
16119 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16120 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}"
16121 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}"
16122 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16123 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}"
16124 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}"
16125 fi
16126
16127 else
16128 ld_shlibs_CXX=no
16129 fi
16130
16131 ;;
16132
16133 dgux*)
16134 case $cc_basename in
16135 ec++*)
16136 # FIXME: insert proper C++ library support
16137 ld_shlibs_CXX=no
16138 ;;
16139 ghcx*)
16140 # Green Hills C++ Compiler
16141 # FIXME: insert proper C++ library support
16142 ld_shlibs_CXX=no
16143 ;;
16144 *)
16145 # FIXME: insert proper C++ library support
16146 ld_shlibs_CXX=no
16147 ;;
16148 esac
16149 ;;
16150
16151 freebsd[12]*)
16152 # C++ shared libraries reported to be fairly broken before
16153 # switch to ELF
16154 ld_shlibs_CXX=no
16155 ;;
16156
16157 freebsd-elf*)
16158 archive_cmds_need_lc_CXX=no
16159 ;;
16160
16161 freebsd* | dragonfly*)
16162 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16163 # conventions
16164 ld_shlibs_CXX=yes
16165 ;;
16166
16167 gnu*)
16168 ;;
16169
cristyfd9dcd42010-08-08 18:07:02 +000016170 haiku*)
16171 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16172 link_all_deplibs_CXX=yes
16173 ;;
16174
cristy3ed852e2009-09-05 21:47:34 +000016175 hpux9*)
16176 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16177 hardcode_libdir_separator_CXX=:
16178 export_dynamic_flag_spec_CXX='${wl}-E'
16179 hardcode_direct_CXX=yes
16180 hardcode_minus_L_CXX=yes # Not in the search PATH,
16181 # but as the default
16182 # location of the library.
16183
16184 case $cc_basename in
16185 CC*)
16186 # FIXME: insert proper C++ library support
16187 ld_shlibs_CXX=no
16188 ;;
16189 aCC*)
16190 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'
16191 # Commands to make compiler produce verbose output that lists
16192 # what "hidden" libraries, object files and flags are used when
16193 # linking a shared library.
16194 #
16195 # There doesn't appear to be a way to prevent this compiler from
16196 # explicitly linking system object files so we need to strip them
16197 # from the output so that they don't get included in the library
16198 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016199 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"'
cristy3ed852e2009-09-05 21:47:34 +000016200 ;;
16201 *)
16202 if test "$GXX" = yes; then
16203 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'
16204 else
16205 # FIXME: insert proper C++ library support
16206 ld_shlibs_CXX=no
16207 fi
16208 ;;
16209 esac
16210 ;;
16211
16212 hpux10*|hpux11*)
16213 if test $with_gnu_ld = no; then
16214 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16215 hardcode_libdir_separator_CXX=:
16216
16217 case $host_cpu in
16218 hppa*64*|ia64*)
16219 ;;
16220 *)
16221 export_dynamic_flag_spec_CXX='${wl}-E'
16222 ;;
16223 esac
16224 fi
16225 case $host_cpu in
16226 hppa*64*|ia64*)
16227 hardcode_direct_CXX=no
16228 hardcode_shlibpath_var_CXX=no
16229 ;;
16230 *)
16231 hardcode_direct_CXX=yes
16232 hardcode_direct_absolute_CXX=yes
16233 hardcode_minus_L_CXX=yes # Not in the search PATH,
16234 # but as the default
16235 # location of the library.
16236 ;;
16237 esac
16238
16239 case $cc_basename in
16240 CC*)
16241 # FIXME: insert proper C++ library support
16242 ld_shlibs_CXX=no
16243 ;;
16244 aCC*)
16245 case $host_cpu in
16246 hppa*64*)
16247 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16248 ;;
16249 ia64*)
16250 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16251 ;;
16252 *)
16253 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16254 ;;
16255 esac
16256 # Commands to make compiler produce verbose output that lists
16257 # what "hidden" libraries, object files and flags are used when
16258 # linking a shared library.
16259 #
16260 # There doesn't appear to be a way to prevent this compiler from
16261 # explicitly linking system object files so we need to strip them
16262 # from the output so that they don't get included in the library
16263 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016264 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"'
cristy3ed852e2009-09-05 21:47:34 +000016265 ;;
16266 *)
16267 if test "$GXX" = yes; then
16268 if test $with_gnu_ld = no; then
16269 case $host_cpu in
16270 hppa*64*)
16271 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16272 ;;
16273 ia64*)
16274 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16275 ;;
16276 *)
16277 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'
16278 ;;
16279 esac
16280 fi
16281 else
16282 # FIXME: insert proper C++ library support
16283 ld_shlibs_CXX=no
16284 fi
16285 ;;
16286 esac
16287 ;;
16288
16289 interix[3-9]*)
16290 hardcode_direct_CXX=no
16291 hardcode_shlibpath_var_CXX=no
16292 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16293 export_dynamic_flag_spec_CXX='${wl}-E'
16294 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16295 # Instead, shared libraries are loaded at an image base (0x10000000 by
16296 # default) and relocated if they conflict, which is a slow very memory
16297 # consuming and fragmenting process. To avoid this, we pick a random,
16298 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16299 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16300 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'
16301 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'
16302 ;;
16303 irix5* | irix6*)
16304 case $cc_basename in
16305 CC*)
16306 # SGI C++
cristyfd9dcd42010-08-08 18:07:02 +000016307 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'
cristy3ed852e2009-09-05 21:47:34 +000016308
16309 # Archives containing C++ object files must be created using
16310 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16311 # necessary to make sure instantiated templates are included
16312 # in the archive.
16313 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16314 ;;
16315 *)
16316 if test "$GXX" = yes; then
16317 if test "$with_gnu_ld" = no; then
cristyfd9dcd42010-08-08 18:07:02 +000016318 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'
cristy3ed852e2009-09-05 21:47:34 +000016319 else
cristyfd9dcd42010-08-08 18:07:02 +000016320 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'
cristy3ed852e2009-09-05 21:47:34 +000016321 fi
16322 fi
16323 link_all_deplibs_CXX=yes
16324 ;;
16325 esac
16326 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16327 hardcode_libdir_separator_CXX=:
16328 inherit_rpath_CXX=yes
16329 ;;
16330
cristyfd9dcd42010-08-08 18:07:02 +000016331 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016332 case $cc_basename in
16333 KCC*)
16334 # Kuck and Associates, Inc. (KAI) C++ Compiler
16335
16336 # KCC will only create a shared library if the output file
16337 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16338 # to its proper name (with version) after linking.
16339 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'
16340 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'
16341 # Commands to make compiler produce verbose output that lists
16342 # what "hidden" libraries, object files and flags are used when
16343 # linking a shared library.
16344 #
16345 # There doesn't appear to be a way to prevent this compiler from
16346 # explicitly linking system object files so we need to strip them
16347 # from the output so that they don't get included in the library
16348 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016349 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"'
cristy3ed852e2009-09-05 21:47:34 +000016350
16351 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16352 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16353
16354 # Archives containing C++ object files must be created using
16355 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16356 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16357 ;;
16358 icpc* | ecpc* )
16359 # Intel C++
16360 with_gnu_ld=yes
16361 # version 8.0 and above of icpc choke on multiply defined symbols
16362 # if we add $predep_objects and $postdep_objects, however 7.1 and
16363 # earlier do not add the objects themselves.
16364 case `$CC -V 2>&1` in
16365 *"Version 7."*)
16366 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16367 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'
16368 ;;
16369 *) # Version 8.0 or newer
16370 tmp_idyn=
16371 case $host_cpu in
16372 ia64*) tmp_idyn=' -i_dynamic';;
16373 esac
16374 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16375 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'
16376 ;;
16377 esac
16378 archive_cmds_need_lc_CXX=no
16379 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16380 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16381 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16382 ;;
16383 pgCC* | pgcpp*)
16384 # Portland Group C++ compiler
16385 case `$CC -V` in
cristyfd9dcd42010-08-08 18:07:02 +000016386 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy3ed852e2009-09-05 21:47:34 +000016387 prelink_cmds_CXX='tpldir=Template.dir~
16388 rm -rf $tpldir~
16389 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristyfd9dcd42010-08-08 18:07:02 +000016390 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy3ed852e2009-09-05 21:47:34 +000016391 old_archive_cmds_CXX='tpldir=Template.dir~
16392 rm -rf $tpldir~
16393 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristyfd9dcd42010-08-08 18:07:02 +000016394 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy3ed852e2009-09-05 21:47:34 +000016395 $RANLIB $oldlib'
16396 archive_cmds_CXX='tpldir=Template.dir~
16397 rm -rf $tpldir~
16398 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristyfd9dcd42010-08-08 18:07:02 +000016399 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000016400 archive_expsym_cmds_CXX='tpldir=Template.dir~
16401 rm -rf $tpldir~
16402 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristyfd9dcd42010-08-08 18:07:02 +000016403 $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'
cristy3ed852e2009-09-05 21:47:34 +000016404 ;;
cristyfd9dcd42010-08-08 18:07:02 +000016405 *) # Version 6 and above use weak symbols
cristy3ed852e2009-09-05 21:47:34 +000016406 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16407 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'
16408 ;;
16409 esac
16410
16411 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16412 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristyfd9dcd42010-08-08 18:07:02 +000016413 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'
cristy3ed852e2009-09-05 21:47:34 +000016414 ;;
16415 cxx*)
16416 # Compaq C++
16417 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16418 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'
16419
16420 runpath_var=LD_RUN_PATH
16421 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16422 hardcode_libdir_separator_CXX=:
16423
16424 # Commands to make compiler produce verbose output that lists
16425 # what "hidden" libraries, object files and flags are used when
16426 # linking a shared library.
16427 #
16428 # There doesn't appear to be a way to prevent this compiler from
16429 # explicitly linking system object files so we need to strip them
16430 # from the output so that they don't get included in the library
16431 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016432 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'
cristy3ed852e2009-09-05 21:47:34 +000016433 ;;
cristyfd9dcd42010-08-08 18:07:02 +000016434 xl* | mpixl* | bgxl*)
cristy3ed852e2009-09-05 21:47:34 +000016435 # IBM XL 8.0 on PPC, with GNU ld
16436 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16437 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16438 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16439 if test "x$supports_anon_versioning" = xyes; then
16440 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16441 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16442 echo "local: *; };" >> $output_objdir/$libname.ver~
16443 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16444 fi
16445 ;;
16446 *)
16447 case `$CC -V 2>&1 | sed 5q` in
16448 *Sun\ C*)
16449 # Sun C++ 5.9
16450 no_undefined_flag_CXX=' -zdefs'
16451 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16452 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'
16453 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristyfd9dcd42010-08-08 18:07:02 +000016454 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'
cristy3ed852e2009-09-05 21:47:34 +000016455 compiler_needs_object_CXX=yes
16456
16457 # Not sure whether something based on
16458 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16459 # would be better.
cristyfd9dcd42010-08-08 18:07:02 +000016460 output_verbose_link_cmd='func_echo_all'
cristy3ed852e2009-09-05 21:47:34 +000016461
16462 # Archives containing C++ object files must be created using
16463 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16464 # necessary to make sure instantiated templates are included
16465 # in the archive.
16466 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16467 ;;
16468 esac
16469 ;;
16470 esac
16471 ;;
16472
16473 lynxos*)
16474 # FIXME: insert proper C++ library support
16475 ld_shlibs_CXX=no
16476 ;;
16477
16478 m88k*)
16479 # FIXME: insert proper C++ library support
16480 ld_shlibs_CXX=no
16481 ;;
16482
16483 mvs*)
16484 case $cc_basename in
16485 cxx*)
16486 # FIXME: insert proper C++ library support
16487 ld_shlibs_CXX=no
16488 ;;
16489 *)
16490 # FIXME: insert proper C++ library support
16491 ld_shlibs_CXX=no
16492 ;;
16493 esac
16494 ;;
16495
16496 netbsd*)
16497 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16498 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16499 wlarc=
16500 hardcode_libdir_flag_spec_CXX='-R$libdir'
16501 hardcode_direct_CXX=yes
16502 hardcode_shlibpath_var_CXX=no
16503 fi
16504 # Workaround some broken pre-1.5 toolchains
16505 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16506 ;;
16507
16508 *nto* | *qnx*)
16509 ld_shlibs_CXX=yes
16510 ;;
16511
16512 openbsd2*)
16513 # C++ shared libraries are fairly broken
16514 ld_shlibs_CXX=no
16515 ;;
16516
16517 openbsd*)
16518 if test -f /usr/libexec/ld.so; then
16519 hardcode_direct_CXX=yes
16520 hardcode_shlibpath_var_CXX=no
16521 hardcode_direct_absolute_CXX=yes
16522 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16523 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16524 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16525 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16526 export_dynamic_flag_spec_CXX='${wl}-E'
16527 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16528 fi
cristyfd9dcd42010-08-08 18:07:02 +000016529 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000016530 else
16531 ld_shlibs_CXX=no
16532 fi
16533 ;;
16534
16535 osf3* | osf4* | osf5*)
16536 case $cc_basename in
16537 KCC*)
16538 # Kuck and Associates, Inc. (KAI) C++ Compiler
16539
16540 # KCC will only create a shared library if the output file
16541 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16542 # to its proper name (with version) after linking.
16543 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'
16544
16545 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16546 hardcode_libdir_separator_CXX=:
16547
16548 # Archives containing C++ object files must be created using
16549 # the KAI C++ compiler.
16550 case $host in
16551 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16552 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16553 esac
16554 ;;
16555 RCC*)
16556 # Rational C++ 2.4.1
16557 # FIXME: insert proper C++ library support
16558 ld_shlibs_CXX=no
16559 ;;
16560 cxx*)
16561 case $host in
16562 osf3*)
16563 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristyfd9dcd42010-08-08 18:07:02 +000016564 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'
cristy3ed852e2009-09-05 21:47:34 +000016565 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16566 ;;
16567 *)
16568 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristyfd9dcd42010-08-08 18:07:02 +000016569 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'
cristy3ed852e2009-09-05 21:47:34 +000016570 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16571 echo "-hidden">> $lib.exp~
cristyfd9dcd42010-08-08 18:07:02 +000016572 $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~
cristy3ed852e2009-09-05 21:47:34 +000016573 $RM $lib.exp'
16574 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16575 ;;
16576 esac
16577
16578 hardcode_libdir_separator_CXX=:
16579
16580 # Commands to make compiler produce verbose output that lists
16581 # what "hidden" libraries, object files and flags are used when
16582 # linking a shared library.
16583 #
16584 # There doesn't appear to be a way to prevent this compiler from
16585 # explicitly linking system object files so we need to strip them
16586 # from the output so that they don't get included in the library
16587 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016588 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"'
cristy3ed852e2009-09-05 21:47:34 +000016589 ;;
16590 *)
16591 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16592 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16593 case $host in
16594 osf3*)
cristyfd9dcd42010-08-08 18:07:02 +000016595 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'
cristy3ed852e2009-09-05 21:47:34 +000016596 ;;
16597 *)
cristyfd9dcd42010-08-08 18:07:02 +000016598 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'
cristy3ed852e2009-09-05 21:47:34 +000016599 ;;
16600 esac
16601
16602 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16603 hardcode_libdir_separator_CXX=:
16604
16605 # Commands to make compiler produce verbose output that lists
16606 # what "hidden" libraries, object files and flags are used when
16607 # linking a shared library.
cristyfd9dcd42010-08-08 18:07:02 +000016608 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016609
16610 else
16611 # FIXME: insert proper C++ library support
16612 ld_shlibs_CXX=no
16613 fi
16614 ;;
16615 esac
16616 ;;
16617
16618 psos*)
16619 # FIXME: insert proper C++ library support
16620 ld_shlibs_CXX=no
16621 ;;
16622
16623 sunos4*)
16624 case $cc_basename in
16625 CC*)
16626 # Sun C++ 4.x
16627 # FIXME: insert proper C++ library support
16628 ld_shlibs_CXX=no
16629 ;;
16630 lcc*)
16631 # Lucid
16632 # FIXME: insert proper C++ library support
16633 ld_shlibs_CXX=no
16634 ;;
16635 *)
16636 # FIXME: insert proper C++ library support
16637 ld_shlibs_CXX=no
16638 ;;
16639 esac
16640 ;;
16641
16642 solaris*)
16643 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000016644 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000016645 # Sun C++ 4.2, 5.x and Centerline C++
16646 archive_cmds_need_lc_CXX=yes
16647 no_undefined_flag_CXX=' -zdefs'
16648 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16649 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16650 $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'
16651
16652 hardcode_libdir_flag_spec_CXX='-R$libdir'
16653 hardcode_shlibpath_var_CXX=no
16654 case $host_os in
16655 solaris2.[0-5] | solaris2.[0-5].*) ;;
16656 *)
16657 # The compiler driver will combine and reorder linker options,
16658 # but understands `-z linker_flag'.
16659 # Supported since Solaris 2.6 (maybe 2.5.1?)
16660 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16661 ;;
16662 esac
16663 link_all_deplibs_CXX=yes
16664
cristyfd9dcd42010-08-08 18:07:02 +000016665 output_verbose_link_cmd='func_echo_all'
cristy3ed852e2009-09-05 21:47:34 +000016666
16667 # Archives containing C++ object files must be created using
16668 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16669 # necessary to make sure instantiated templates are included
16670 # in the archive.
16671 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16672 ;;
16673 gcx*)
16674 # Green Hills C++ Compiler
16675 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16676
16677 # The C++ compiler must be used to create the archive.
16678 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16679 ;;
16680 *)
16681 # GNU C++ compiler with Solaris linker
16682 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16683 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16684 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16685 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16686 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16687 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16688
16689 # Commands to make compiler produce verbose output that lists
16690 # what "hidden" libraries, object files and flags are used when
16691 # linking a shared library.
cristyfd9dcd42010-08-08 18:07:02 +000016692 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016693 else
16694 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16695 # platform.
16696 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16697 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16698 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16699
16700 # Commands to make compiler produce verbose output that lists
16701 # what "hidden" libraries, object files and flags are used when
16702 # linking a shared library.
cristyfd9dcd42010-08-08 18:07:02 +000016703 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016704 fi
16705
16706 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16707 case $host_os in
16708 solaris2.[0-5] | solaris2.[0-5].*) ;;
16709 *)
16710 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16711 ;;
16712 esac
16713 fi
16714 ;;
16715 esac
16716 ;;
16717
16718 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16719 no_undefined_flag_CXX='${wl}-z,text'
16720 archive_cmds_need_lc_CXX=no
16721 hardcode_shlibpath_var_CXX=no
16722 runpath_var='LD_RUN_PATH'
16723
16724 case $cc_basename in
16725 CC*)
16726 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16727 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16728 ;;
16729 *)
16730 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16731 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16732 ;;
16733 esac
16734 ;;
16735
16736 sysv5* | sco3.2v5* | sco5v6*)
16737 # Note: We can NOT use -z defs as we might desire, because we do not
16738 # link with -lc, and that would cause any symbols used from libc to
16739 # always be unresolved, which means just about no library would
16740 # ever link correctly. If we're not using GNU ld we use -z text
16741 # though, which does catch some bad symbols but isn't as heavy-handed
16742 # as -z defs.
16743 no_undefined_flag_CXX='${wl}-z,text'
16744 allow_undefined_flag_CXX='${wl}-z,nodefs'
16745 archive_cmds_need_lc_CXX=no
16746 hardcode_shlibpath_var_CXX=no
16747 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16748 hardcode_libdir_separator_CXX=':'
16749 link_all_deplibs_CXX=yes
16750 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16751 runpath_var='LD_RUN_PATH'
16752
16753 case $cc_basename in
16754 CC*)
16755 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16756 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristyfd9dcd42010-08-08 18:07:02 +000016757 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16758 '"$old_archive_cmds_CXX"
16759 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16760 '"$reload_cmds_CXX"
cristy3ed852e2009-09-05 21:47:34 +000016761 ;;
16762 *)
16763 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16764 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16765 ;;
16766 esac
16767 ;;
16768
16769 tandem*)
16770 case $cc_basename in
16771 NCC*)
16772 # NonStop-UX NCC 3.20
16773 # FIXME: insert proper C++ library support
16774 ld_shlibs_CXX=no
16775 ;;
16776 *)
16777 # FIXME: insert proper C++ library support
16778 ld_shlibs_CXX=no
16779 ;;
16780 esac
16781 ;;
16782
16783 vxworks*)
16784 # FIXME: insert proper C++ library support
16785 ld_shlibs_CXX=no
16786 ;;
16787
16788 *)
16789 # FIXME: insert proper C++ library support
16790 ld_shlibs_CXX=no
16791 ;;
16792 esac
16793
cristy8b350f62009-11-15 23:12:43 +000016794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016795$as_echo "$ld_shlibs_CXX" >&6; }
16796 test "$ld_shlibs_CXX" = no && can_build_shared=no
16797
16798 GCC_CXX="$GXX"
16799 LD_CXX="$LD"
16800
16801 ## CAVEAT EMPTOR:
16802 ## There is no encapsulation within the following macros, do not change
16803 ## the running order or otherwise move them around unless you know exactly
16804 ## what you are doing...
16805 # Dependencies to place before and after the object being linked:
16806predep_objects_CXX=
16807postdep_objects_CXX=
16808predeps_CXX=
16809postdeps_CXX=
16810compiler_lib_search_path_CXX=
16811
16812cat > conftest.$ac_ext <<_LT_EOF
16813class Foo
16814{
16815public:
16816 Foo (void) { a = 0; }
16817private:
16818 int a;
16819};
16820_LT_EOF
16821
cristy8b350f62009-11-15 23:12:43 +000016822if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000016823 (eval $ac_compile) 2>&5
16824 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16826 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000016827 # Parse the compiler output and extract the necessary
16828 # objects, libraries and library flags.
16829
16830 # Sentinel used to keep track of whether or not we are before
16831 # the conftest object file.
16832 pre_test_object_deps_done=no
16833
16834 for p in `eval "$output_verbose_link_cmd"`; do
16835 case $p in
16836
16837 -L* | -R* | -l*)
16838 # Some compilers place space between "-{L,R}" and the path.
16839 # Remove the space.
16840 if test $p = "-L" ||
16841 test $p = "-R"; then
16842 prev=$p
16843 continue
16844 else
16845 prev=
16846 fi
16847
16848 if test "$pre_test_object_deps_done" = no; then
16849 case $p in
16850 -L* | -R*)
16851 # Internal compiler library paths should come after those
16852 # provided the user. The postdeps already come after the
16853 # user supplied libs so there is no need to process them.
16854 if test -z "$compiler_lib_search_path_CXX"; then
16855 compiler_lib_search_path_CXX="${prev}${p}"
16856 else
16857 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16858 fi
16859 ;;
16860 # The "-l" case would never come before the object being
16861 # linked, so don't bother handling this case.
16862 esac
16863 else
16864 if test -z "$postdeps_CXX"; then
16865 postdeps_CXX="${prev}${p}"
16866 else
16867 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16868 fi
16869 fi
16870 ;;
16871
16872 *.$objext)
16873 # This assumes that the test object file only shows up
16874 # once in the compiler output.
16875 if test "$p" = "conftest.$objext"; then
16876 pre_test_object_deps_done=yes
16877 continue
16878 fi
16879
16880 if test "$pre_test_object_deps_done" = no; then
16881 if test -z "$predep_objects_CXX"; then
16882 predep_objects_CXX="$p"
16883 else
16884 predep_objects_CXX="$predep_objects_CXX $p"
16885 fi
16886 else
16887 if test -z "$postdep_objects_CXX"; then
16888 postdep_objects_CXX="$p"
16889 else
16890 postdep_objects_CXX="$postdep_objects_CXX $p"
16891 fi
16892 fi
16893 ;;
16894
16895 *) ;; # Ignore the rest.
16896
16897 esac
16898 done
16899
16900 # Clean up.
16901 rm -f a.out a.exe
16902else
16903 echo "libtool.m4: error: problem compiling CXX test program"
16904fi
16905
16906$RM -f confest.$objext
16907
16908# PORTME: override above test on systems where it is broken
16909case $host_os in
16910interix[3-9]*)
16911 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16912 # hack all around it, let's just trust "g++" to DTRT.
16913 predep_objects_CXX=
16914 postdep_objects_CXX=
16915 postdeps_CXX=
16916 ;;
16917
16918linux*)
16919 case `$CC -V 2>&1 | sed 5q` in
16920 *Sun\ C*)
16921 # Sun C++ 5.9
16922
16923 # The more standards-conforming stlport4 library is
16924 # incompatible with the Cstd library. Avoid specifying
16925 # it if it's in CXXFLAGS. Ignore libCrun as
16926 # -library=stlport4 depends on it.
16927 case " $CXX $CXXFLAGS " in
16928 *" -library=stlport4 "*)
16929 solaris_use_stlport4=yes
16930 ;;
16931 esac
16932
16933 if test "$solaris_use_stlport4" != yes; then
16934 postdeps_CXX='-library=Cstd -library=Crun'
16935 fi
16936 ;;
16937 esac
16938 ;;
16939
16940solaris*)
16941 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000016942 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000016943 # The more standards-conforming stlport4 library is
16944 # incompatible with the Cstd library. Avoid specifying
16945 # it if it's in CXXFLAGS. Ignore libCrun as
16946 # -library=stlport4 depends on it.
16947 case " $CXX $CXXFLAGS " in
16948 *" -library=stlport4 "*)
16949 solaris_use_stlport4=yes
16950 ;;
16951 esac
16952
16953 # Adding this requires a known-good setup of shared libraries for
16954 # Sun compiler versions before 5.6, else PIC objects from an old
16955 # archive will be linked into the output, leading to subtle bugs.
16956 if test "$solaris_use_stlport4" != yes; then
16957 postdeps_CXX='-library=Cstd -library=Crun'
16958 fi
16959 ;;
16960 esac
16961 ;;
16962esac
16963
16964
16965case " $postdeps_CXX " in
16966*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16967esac
16968 compiler_lib_search_dirs_CXX=
16969if test -n "${compiler_lib_search_path_CXX}"; then
16970 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16971fi
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003 lt_prog_compiler_wl_CXX=
17004lt_prog_compiler_pic_CXX=
17005lt_prog_compiler_static_CXX=
17006
cristy8b350f62009-11-15 23:12:43 +000017007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000017008$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17009
17010 # C++ specific cases for pic, static, wl, etc.
17011 if test "$GXX" = yes; then
17012 lt_prog_compiler_wl_CXX='-Wl,'
17013 lt_prog_compiler_static_CXX='-static'
17014
17015 case $host_os in
17016 aix*)
17017 # All AIX code is PIC.
17018 if test "$host_cpu" = ia64; then
17019 # AIX 5 now supports IA64 processor
17020 lt_prog_compiler_static_CXX='-Bstatic'
17021 fi
17022 ;;
17023
17024 amigaos*)
17025 case $host_cpu in
17026 powerpc)
17027 # see comment about AmigaOS4 .so support
17028 lt_prog_compiler_pic_CXX='-fPIC'
17029 ;;
17030 m68k)
17031 # FIXME: we need at least 68020 code to build shared libraries, but
17032 # adding the `-m68020' flag to GCC prevents building anything better,
17033 # like `-m68040'.
17034 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17035 ;;
17036 esac
17037 ;;
17038
17039 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17040 # PIC is the default for these OSes.
17041 ;;
17042 mingw* | cygwin* | os2* | pw32* | cegcc*)
17043 # This hack is so that the source file can tell whether it is being
17044 # built for inclusion in a dll (and should export symbols for example).
17045 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17046 # (--disable-auto-import) libraries
17047 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17048 ;;
17049 darwin* | rhapsody*)
17050 # PIC is the default on this platform
17051 # Common symbols not allowed in MH_DYLIB files
17052 lt_prog_compiler_pic_CXX='-fno-common'
17053 ;;
17054 *djgpp*)
17055 # DJGPP does not support shared libraries at all
17056 lt_prog_compiler_pic_CXX=
17057 ;;
cristyfd9dcd42010-08-08 18:07:02 +000017058 haiku*)
17059 # PIC is the default for Haiku.
17060 # The "-static" flag exists, but is broken.
17061 lt_prog_compiler_static_CXX=
17062 ;;
cristy3ed852e2009-09-05 21:47:34 +000017063 interix[3-9]*)
17064 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17065 # Instead, we relocate shared libraries at runtime.
17066 ;;
17067 sysv4*MP*)
17068 if test -d /usr/nec; then
17069 lt_prog_compiler_pic_CXX=-Kconform_pic
17070 fi
17071 ;;
17072 hpux*)
17073 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17074 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17075 # sets the default TLS model and affects inlining.
17076 case $host_cpu in
17077 hppa*64*)
17078 ;;
17079 *)
17080 lt_prog_compiler_pic_CXX='-fPIC'
17081 ;;
17082 esac
17083 ;;
17084 *qnx* | *nto*)
17085 # QNX uses GNU C++, but need to define -shared option too, otherwise
17086 # it will coredump.
17087 lt_prog_compiler_pic_CXX='-fPIC -shared'
17088 ;;
17089 *)
17090 lt_prog_compiler_pic_CXX='-fPIC'
17091 ;;
17092 esac
17093 else
17094 case $host_os in
17095 aix[4-9]*)
17096 # All AIX code is PIC.
17097 if test "$host_cpu" = ia64; then
17098 # AIX 5 now supports IA64 processor
17099 lt_prog_compiler_static_CXX='-Bstatic'
17100 else
17101 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17102 fi
17103 ;;
17104 chorus*)
17105 case $cc_basename in
17106 cxch68*)
17107 # Green Hills C++ Compiler
17108 # _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"
17109 ;;
17110 esac
17111 ;;
17112 dgux*)
17113 case $cc_basename in
17114 ec++*)
17115 lt_prog_compiler_pic_CXX='-KPIC'
17116 ;;
17117 ghcx*)
17118 # Green Hills C++ Compiler
17119 lt_prog_compiler_pic_CXX='-pic'
17120 ;;
17121 *)
17122 ;;
17123 esac
17124 ;;
17125 freebsd* | dragonfly*)
17126 # FreeBSD uses GNU C++
17127 ;;
17128 hpux9* | hpux10* | hpux11*)
17129 case $cc_basename in
17130 CC*)
17131 lt_prog_compiler_wl_CXX='-Wl,'
17132 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17133 if test "$host_cpu" != ia64; then
17134 lt_prog_compiler_pic_CXX='+Z'
17135 fi
17136 ;;
17137 aCC*)
17138 lt_prog_compiler_wl_CXX='-Wl,'
17139 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17140 case $host_cpu in
17141 hppa*64*|ia64*)
17142 # +Z the default
17143 ;;
17144 *)
17145 lt_prog_compiler_pic_CXX='+Z'
17146 ;;
17147 esac
17148 ;;
17149 *)
17150 ;;
17151 esac
17152 ;;
17153 interix*)
17154 # This is c89, which is MS Visual C++ (no shared libs)
17155 # Anyone wants to do a port?
17156 ;;
17157 irix5* | irix6* | nonstopux*)
17158 case $cc_basename in
17159 CC*)
17160 lt_prog_compiler_wl_CXX='-Wl,'
17161 lt_prog_compiler_static_CXX='-non_shared'
17162 # CC pic flag -KPIC is the default.
17163 ;;
17164 *)
17165 ;;
17166 esac
17167 ;;
cristyfd9dcd42010-08-08 18:07:02 +000017168 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017169 case $cc_basename in
17170 KCC*)
17171 # KAI C++ Compiler
17172 lt_prog_compiler_wl_CXX='--backend -Wl,'
17173 lt_prog_compiler_pic_CXX='-fPIC'
17174 ;;
17175 ecpc* )
17176 # old Intel C++ for x86_64 which still supported -KPIC.
17177 lt_prog_compiler_wl_CXX='-Wl,'
17178 lt_prog_compiler_pic_CXX='-KPIC'
17179 lt_prog_compiler_static_CXX='-static'
17180 ;;
17181 icpc* )
17182 # Intel C++, used to be incompatible with GCC.
17183 # ICC 10 doesn't accept -KPIC any more.
17184 lt_prog_compiler_wl_CXX='-Wl,'
17185 lt_prog_compiler_pic_CXX='-fPIC'
17186 lt_prog_compiler_static_CXX='-static'
17187 ;;
17188 pgCC* | pgcpp*)
17189 # Portland Group C++ compiler
17190 lt_prog_compiler_wl_CXX='-Wl,'
17191 lt_prog_compiler_pic_CXX='-fpic'
17192 lt_prog_compiler_static_CXX='-Bstatic'
17193 ;;
17194 cxx*)
17195 # Compaq C++
17196 # Make sure the PIC flag is empty. It appears that all Alpha
17197 # Linux and Compaq Tru64 Unix objects are PIC.
17198 lt_prog_compiler_pic_CXX=
17199 lt_prog_compiler_static_CXX='-non_shared'
17200 ;;
cristyfd9dcd42010-08-08 18:07:02 +000017201 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17202 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy3ed852e2009-09-05 21:47:34 +000017203 lt_prog_compiler_wl_CXX='-Wl,'
17204 lt_prog_compiler_pic_CXX='-qpic'
17205 lt_prog_compiler_static_CXX='-qstaticlink'
17206 ;;
17207 *)
17208 case `$CC -V 2>&1 | sed 5q` in
17209 *Sun\ C*)
17210 # Sun C++ 5.9
17211 lt_prog_compiler_pic_CXX='-KPIC'
17212 lt_prog_compiler_static_CXX='-Bstatic'
17213 lt_prog_compiler_wl_CXX='-Qoption ld '
17214 ;;
17215 esac
17216 ;;
17217 esac
17218 ;;
17219 lynxos*)
17220 ;;
17221 m88k*)
17222 ;;
17223 mvs*)
17224 case $cc_basename in
17225 cxx*)
17226 lt_prog_compiler_pic_CXX='-W c,exportall'
17227 ;;
17228 *)
17229 ;;
17230 esac
17231 ;;
17232 netbsd*)
17233 ;;
17234 *qnx* | *nto*)
17235 # QNX uses GNU C++, but need to define -shared option too, otherwise
17236 # it will coredump.
17237 lt_prog_compiler_pic_CXX='-fPIC -shared'
17238 ;;
17239 osf3* | osf4* | osf5*)
17240 case $cc_basename in
17241 KCC*)
17242 lt_prog_compiler_wl_CXX='--backend -Wl,'
17243 ;;
17244 RCC*)
17245 # Rational C++ 2.4.1
17246 lt_prog_compiler_pic_CXX='-pic'
17247 ;;
17248 cxx*)
17249 # Digital/Compaq C++
17250 lt_prog_compiler_wl_CXX='-Wl,'
17251 # Make sure the PIC flag is empty. It appears that all Alpha
17252 # Linux and Compaq Tru64 Unix objects are PIC.
17253 lt_prog_compiler_pic_CXX=
17254 lt_prog_compiler_static_CXX='-non_shared'
17255 ;;
17256 *)
17257 ;;
17258 esac
17259 ;;
17260 psos*)
17261 ;;
17262 solaris*)
17263 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000017264 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000017265 # Sun C++ 4.2, 5.x and Centerline C++
17266 lt_prog_compiler_pic_CXX='-KPIC'
17267 lt_prog_compiler_static_CXX='-Bstatic'
17268 lt_prog_compiler_wl_CXX='-Qoption ld '
17269 ;;
17270 gcx*)
17271 # Green Hills C++ Compiler
17272 lt_prog_compiler_pic_CXX='-PIC'
17273 ;;
17274 *)
17275 ;;
17276 esac
17277 ;;
17278 sunos4*)
17279 case $cc_basename in
17280 CC*)
17281 # Sun C++ 4.x
17282 lt_prog_compiler_pic_CXX='-pic'
17283 lt_prog_compiler_static_CXX='-Bstatic'
17284 ;;
17285 lcc*)
17286 # Lucid
17287 lt_prog_compiler_pic_CXX='-pic'
17288 ;;
17289 *)
17290 ;;
17291 esac
17292 ;;
17293 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17294 case $cc_basename in
17295 CC*)
17296 lt_prog_compiler_wl_CXX='-Wl,'
17297 lt_prog_compiler_pic_CXX='-KPIC'
17298 lt_prog_compiler_static_CXX='-Bstatic'
17299 ;;
17300 esac
17301 ;;
17302 tandem*)
17303 case $cc_basename in
17304 NCC*)
17305 # NonStop-UX NCC 3.20
17306 lt_prog_compiler_pic_CXX='-KPIC'
17307 ;;
17308 *)
17309 ;;
17310 esac
17311 ;;
17312 vxworks*)
17313 ;;
17314 *)
17315 lt_prog_compiler_can_build_shared_CXX=no
17316 ;;
17317 esac
17318 fi
17319
17320case $host_os in
17321 # For platforms which do not support PIC, -DPIC is meaningless:
17322 *djgpp*)
17323 lt_prog_compiler_pic_CXX=
17324 ;;
17325 *)
17326 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17327 ;;
17328esac
cristy8b350f62009-11-15 23:12:43 +000017329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017330$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17331
17332
17333
17334#
17335# Check to make sure the PIC flag actually works.
17336#
17337if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000017338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
cristy3ed852e2009-09-05 21:47:34 +000017339$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017340if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017341 $as_echo_n "(cached) " >&6
17342else
17343 lt_cv_prog_compiler_pic_works_CXX=no
17344 ac_outfile=conftest.$ac_objext
17345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17346 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17347 # Insert the option either (1) after the last *FLAGS variable, or
17348 # (2) before a word containing "conftest.", or (3) at the end.
17349 # Note that $ac_compile itself does not contain backslashes and begins
17350 # with a dollar sign (not a hyphen), so the echo should work correctly.
17351 # The option is referenced via a variable to avoid confusing sed.
17352 lt_compile=`echo "$ac_compile" | $SED \
17353 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17355 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000017356 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017357 (eval "$lt_compile" 2>conftest.err)
17358 ac_status=$?
17359 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000017360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017361 if (exit $ac_status) && test -s "$ac_outfile"; then
17362 # The compiler can only warn and ignore the option if not recognized
17363 # So say no if there are warnings other than the usual output.
cristyfd9dcd42010-08-08 18:07:02 +000017364 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017365 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17366 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17367 lt_cv_prog_compiler_pic_works_CXX=yes
17368 fi
17369 fi
17370 $RM conftest*
17371
17372fi
cristy8b350f62009-11-15 23:12:43 +000017373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017374$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17375
17376if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17377 case $lt_prog_compiler_pic_CXX in
17378 "" | " "*) ;;
17379 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17380 esac
17381else
17382 lt_prog_compiler_pic_CXX=
17383 lt_prog_compiler_can_build_shared_CXX=no
17384fi
17385
17386fi
17387
17388
17389
17390#
17391# Check to make sure the static flag actually works.
17392#
17393wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000017394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000017395$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017396if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017397 $as_echo_n "(cached) " >&6
17398else
17399 lt_cv_prog_compiler_static_works_CXX=no
17400 save_LDFLAGS="$LDFLAGS"
17401 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17402 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17403 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17404 # The linker can only warn and ignore the option if not recognized
17405 # So say no if there are warnings
17406 if test -s conftest.err; then
17407 # Append any errors to the config.log.
17408 cat conftest.err 1>&5
cristyfd9dcd42010-08-08 18:07:02 +000017409 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017410 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17411 if diff conftest.exp conftest.er2 >/dev/null; then
17412 lt_cv_prog_compiler_static_works_CXX=yes
17413 fi
17414 else
17415 lt_cv_prog_compiler_static_works_CXX=yes
17416 fi
17417 fi
17418 $RM -r conftest*
17419 LDFLAGS="$save_LDFLAGS"
17420
17421fi
cristy8b350f62009-11-15 23:12:43 +000017422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017423$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17424
17425if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17426 :
17427else
17428 lt_prog_compiler_static_CXX=
17429fi
17430
17431
17432
17433
cristy8b350f62009-11-15 23:12:43 +000017434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017435$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017436if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017437 $as_echo_n "(cached) " >&6
17438else
17439 lt_cv_prog_compiler_c_o_CXX=no
17440 $RM -r conftest 2>/dev/null
17441 mkdir conftest
17442 cd conftest
17443 mkdir out
17444 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17445
17446 lt_compiler_flag="-o out/conftest2.$ac_objext"
17447 # Insert the option either (1) after the last *FLAGS variable, or
17448 # (2) before a word containing "conftest.", or (3) at the end.
17449 # Note that $ac_compile itself does not contain backslashes and begins
17450 # with a dollar sign (not a hyphen), so the echo should work correctly.
17451 lt_compile=`echo "$ac_compile" | $SED \
17452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17454 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000017455 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017456 (eval "$lt_compile" 2>out/conftest.err)
17457 ac_status=$?
17458 cat out/conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000017459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017460 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17461 then
17462 # The compiler can only warn and ignore the option if not recognized
17463 # So say no if there are warnings
cristyfd9dcd42010-08-08 18:07:02 +000017464 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017465 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17466 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17467 lt_cv_prog_compiler_c_o_CXX=yes
17468 fi
17469 fi
17470 chmod u+w . 2>&5
17471 $RM conftest*
17472 # SGI C++ compiler will create directory out/ii_files/ for
17473 # template instantiation
17474 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17475 $RM out/* && rmdir out
17476 cd ..
17477 $RM -r conftest
17478 $RM conftest*
17479
17480fi
cristy8b350f62009-11-15 23:12:43 +000017481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017482$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17483
17484
17485
cristy8b350f62009-11-15 23:12:43 +000017486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017487$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017488if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017489 $as_echo_n "(cached) " >&6
17490else
17491 lt_cv_prog_compiler_c_o_CXX=no
17492 $RM -r conftest 2>/dev/null
17493 mkdir conftest
17494 cd conftest
17495 mkdir out
17496 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17497
17498 lt_compiler_flag="-o out/conftest2.$ac_objext"
17499 # Insert the option either (1) after the last *FLAGS variable, or
17500 # (2) before a word containing "conftest.", or (3) at the end.
17501 # Note that $ac_compile itself does not contain backslashes and begins
17502 # with a dollar sign (not a hyphen), so the echo should work correctly.
17503 lt_compile=`echo "$ac_compile" | $SED \
17504 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17506 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000017507 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017508 (eval "$lt_compile" 2>out/conftest.err)
17509 ac_status=$?
17510 cat out/conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000017511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017512 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17513 then
17514 # The compiler can only warn and ignore the option if not recognized
17515 # So say no if there are warnings
cristyfd9dcd42010-08-08 18:07:02 +000017516 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017517 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17518 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17519 lt_cv_prog_compiler_c_o_CXX=yes
17520 fi
17521 fi
17522 chmod u+w . 2>&5
17523 $RM conftest*
17524 # SGI C++ compiler will create directory out/ii_files/ for
17525 # template instantiation
17526 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17527 $RM out/* && rmdir out
17528 cd ..
17529 $RM -r conftest
17530 $RM conftest*
17531
17532fi
cristy8b350f62009-11-15 23:12:43 +000017533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017534$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17535
17536
17537
17538
17539hard_links="nottested"
17540if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17541 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000017542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017543$as_echo_n "checking if we can lock with hard links... " >&6; }
17544 hard_links=yes
17545 $RM conftest*
17546 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17547 touch conftest.a
17548 ln conftest.a conftest.b 2>&5 || hard_links=no
17549 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000017550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017551$as_echo "$hard_links" >&6; }
17552 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000017553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cristy3ed852e2009-09-05 21:47:34 +000017554$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17555 need_locks=warn
17556 fi
17557else
17558 need_locks=no
17559fi
17560
17561
17562
cristy8b350f62009-11-15 23:12:43 +000017563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000017564$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17565
17566 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17567 case $host_os in
17568 aix[4-9]*)
17569 # If we're using GNU nm, then we don't want the "-C" option.
17570 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristyfd9dcd42010-08-08 18:07:02 +000017571 # Also, AIX nm treats weak defined symbols like other global defined
17572 # symbols, whereas GNU nm marks them as "W".
cristy3ed852e2009-09-05 21:47:34 +000017573 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristyfd9dcd42010-08-08 18:07:02 +000017574 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'
cristy3ed852e2009-09-05 21:47:34 +000017575 else
17576 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'
17577 fi
17578 ;;
17579 pw32*)
17580 export_symbols_cmds_CXX="$ltdll_cmds"
17581 ;;
17582 cygwin* | mingw* | cegcc*)
17583 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'
17584 ;;
17585 *)
17586 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17587 ;;
17588 esac
17589 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17590
cristy8b350f62009-11-15 23:12:43 +000017591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017592$as_echo "$ld_shlibs_CXX" >&6; }
17593test "$ld_shlibs_CXX" = no && can_build_shared=no
17594
17595with_gnu_ld_CXX=$with_gnu_ld
17596
17597
17598
17599
17600
17601
17602#
17603# Do we need to explicitly link libc?
17604#
17605case "x$archive_cmds_need_lc_CXX" in
17606x|xyes)
17607 # Assume -lc should be added
17608 archive_cmds_need_lc_CXX=yes
17609
17610 if test "$enable_shared" = yes && test "$GCC" = yes; then
17611 case $archive_cmds_CXX in
17612 *'~'*)
17613 # FIXME: we may have to deal with multi-command sequences.
17614 ;;
17615 '$CC '*)
17616 # Test whether the compiler implicitly links with -lc since on some
17617 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17618 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000017619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000017620$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000017621if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
17622 $as_echo_n "(cached) " >&6
17623else
17624 $RM conftest*
17625 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017626
cristyfd9dcd42010-08-08 18:07:02 +000017627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017628 (eval $ac_compile) 2>&5
17629 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17631 test $ac_status = 0; } 2>conftest.err; then
cristyfd9dcd42010-08-08 18:07:02 +000017632 soname=conftest
17633 lib=conftest
17634 libobjs=conftest.$ac_objext
17635 deplibs=
17636 wl=$lt_prog_compiler_wl_CXX
17637 pic_flag=$lt_prog_compiler_pic_CXX
17638 compiler_flags=-v
17639 linker_flags=-v
17640 verstring=
17641 output_objdir=.
17642 libname=conftest
17643 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17644 allow_undefined_flag_CXX=
17645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017646 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17647 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17649 test $ac_status = 0; }
cristyfd9dcd42010-08-08 18:07:02 +000017650 then
17651 lt_cv_archive_cmds_need_lc_CXX=no
17652 else
17653 lt_cv_archive_cmds_need_lc_CXX=yes
17654 fi
17655 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17656 else
17657 cat conftest.err 1>&5
17658 fi
17659 $RM conftest*
17660
17661fi
17662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17663$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17664 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy3ed852e2009-09-05 21:47:34 +000017665 ;;
17666 esac
17667 fi
17668 ;;
17669esac
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
cristy8b350f62009-11-15 23:12:43 +000017734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000017735$as_echo_n "checking dynamic linker characteristics... " >&6; }
17736
17737library_names_spec=
17738libname_spec='lib$name'
17739soname_spec=
17740shrext_cmds=".so"
17741postinstall_cmds=
17742postuninstall_cmds=
17743finish_cmds=
17744finish_eval=
17745shlibpath_var=
17746shlibpath_overrides_runpath=unknown
17747version_type=none
17748dynamic_linker="$host_os ld.so"
17749sys_lib_dlsearch_path_spec="/lib /usr/lib"
17750need_lib_prefix=unknown
17751hardcode_into_libs=no
17752
17753# when you set need_version to no, make sure it does not cause -set_version
17754# flags to be left without arguments
17755need_version=unknown
17756
17757case $host_os in
17758aix3*)
17759 version_type=linux
17760 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17761 shlibpath_var=LIBPATH
17762
17763 # AIX 3 has no versioning support, so we append a major version to the name.
17764 soname_spec='${libname}${release}${shared_ext}$major'
17765 ;;
17766
17767aix[4-9]*)
17768 version_type=linux
17769 need_lib_prefix=no
17770 need_version=no
17771 hardcode_into_libs=yes
17772 if test "$host_cpu" = ia64; then
17773 # AIX 5 supports IA64
17774 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17775 shlibpath_var=LD_LIBRARY_PATH
17776 else
17777 # With GCC up to 2.95.x, collect2 would create an import file
17778 # for dependence libraries. The import file would start with
17779 # the line `#! .'. This would cause the generated library to
17780 # depend on `.', always an invalid library. This was fixed in
17781 # development snapshots of GCC prior to 3.0.
17782 case $host_os in
17783 aix4 | aix4.[01] | aix4.[01].*)
17784 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17785 echo ' yes '
17786 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17787 :
17788 else
17789 can_build_shared=no
17790 fi
17791 ;;
17792 esac
17793 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17794 # soname into executable. Probably we can add versioning support to
17795 # collect2, so additional links can be useful in future.
17796 if test "$aix_use_runtimelinking" = yes; then
17797 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17798 # instead of lib<name>.a to let people know that these are not
17799 # typical AIX shared libraries.
17800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17801 else
17802 # We preserve .a as extension for shared libraries through AIX4.2
17803 # and later when we are not doing run time linking.
17804 library_names_spec='${libname}${release}.a $libname.a'
17805 soname_spec='${libname}${release}${shared_ext}$major'
17806 fi
17807 shlibpath_var=LIBPATH
17808 fi
17809 ;;
17810
17811amigaos*)
17812 case $host_cpu in
17813 powerpc)
17814 # Since July 2007 AmigaOS4 officially supports .so libraries.
17815 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17817 ;;
17818 m68k)
17819 library_names_spec='$libname.ixlibrary $libname.a'
17820 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristyfd9dcd42010-08-08 18:07:02 +000017821 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'
cristy3ed852e2009-09-05 21:47:34 +000017822 ;;
17823 esac
17824 ;;
17825
17826beos*)
17827 library_names_spec='${libname}${shared_ext}'
17828 dynamic_linker="$host_os ld.so"
17829 shlibpath_var=LIBRARY_PATH
17830 ;;
17831
17832bsdi[45]*)
17833 version_type=linux
17834 need_version=no
17835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17836 soname_spec='${libname}${release}${shared_ext}$major'
17837 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17838 shlibpath_var=LD_LIBRARY_PATH
17839 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17840 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17841 # the default ld.so.conf also contains /usr/contrib/lib and
17842 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17843 # libtool to hard-code these into programs
17844 ;;
17845
17846cygwin* | mingw* | pw32* | cegcc*)
17847 version_type=windows
17848 shrext_cmds=".dll"
17849 need_version=no
17850 need_lib_prefix=no
17851
17852 case $GCC,$host_os in
17853 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17854 library_names_spec='$libname.dll.a'
17855 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17856 postinstall_cmds='base_file=`basename \${file}`~
17857 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17858 dldir=$destdir/`dirname \$dlpath`~
17859 test -d \$dldir || mkdir -p \$dldir~
17860 $install_prog $dir/$dlname \$dldir/$dlname~
17861 chmod a+x \$dldir/$dlname~
17862 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17863 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17864 fi'
17865 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17866 dlpath=$dir/\$dldll~
17867 $RM \$dlpath'
17868 shlibpath_overrides_runpath=yes
17869
17870 case $host_os in
17871 cygwin*)
17872 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17873 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristyfd9dcd42010-08-08 18:07:02 +000017874
cristy3ed852e2009-09-05 21:47:34 +000017875 ;;
17876 mingw* | cegcc*)
17877 # MinGW DLLs use traditional 'lib' prefix
17878 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy3ed852e2009-09-05 21:47:34 +000017879 ;;
17880 pw32*)
17881 # pw32 DLLs use 'pw' prefix rather than 'lib'
17882 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17883 ;;
17884 esac
17885 ;;
17886
17887 *)
17888 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17889 ;;
17890 esac
17891 dynamic_linker='Win32 ld.exe'
17892 # FIXME: first we should search . and the directory the executable is in
17893 shlibpath_var=PATH
17894 ;;
17895
17896darwin* | rhapsody*)
17897 dynamic_linker="$host_os dyld"
17898 version_type=darwin
17899 need_lib_prefix=no
17900 need_version=no
17901 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17902 soname_spec='${libname}${release}${major}$shared_ext'
17903 shlibpath_overrides_runpath=yes
17904 shlibpath_var=DYLD_LIBRARY_PATH
17905 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17906
17907 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17908 ;;
17909
17910dgux*)
17911 version_type=linux
17912 need_lib_prefix=no
17913 need_version=no
17914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17915 soname_spec='${libname}${release}${shared_ext}$major'
17916 shlibpath_var=LD_LIBRARY_PATH
17917 ;;
17918
17919freebsd1*)
17920 dynamic_linker=no
17921 ;;
17922
17923freebsd* | dragonfly*)
17924 # DragonFly does not have aout. When/if they implement a new
17925 # versioning mechanism, adjust this.
17926 if test -x /usr/bin/objformat; then
17927 objformat=`/usr/bin/objformat`
17928 else
17929 case $host_os in
17930 freebsd[123]*) objformat=aout ;;
17931 *) objformat=elf ;;
17932 esac
17933 fi
17934 version_type=freebsd-$objformat
17935 case $version_type in
17936 freebsd-elf*)
17937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17938 need_version=no
17939 need_lib_prefix=no
17940 ;;
17941 freebsd-*)
17942 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17943 need_version=yes
17944 ;;
17945 esac
17946 shlibpath_var=LD_LIBRARY_PATH
17947 case $host_os in
17948 freebsd2*)
17949 shlibpath_overrides_runpath=yes
17950 ;;
17951 freebsd3.[01]* | freebsdelf3.[01]*)
17952 shlibpath_overrides_runpath=yes
17953 hardcode_into_libs=yes
17954 ;;
17955 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17956 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17957 shlibpath_overrides_runpath=no
17958 hardcode_into_libs=yes
17959 ;;
17960 *) # from 4.6 on, and DragonFly
17961 shlibpath_overrides_runpath=yes
17962 hardcode_into_libs=yes
17963 ;;
17964 esac
17965 ;;
17966
17967gnu*)
17968 version_type=linux
17969 need_lib_prefix=no
17970 need_version=no
17971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17972 soname_spec='${libname}${release}${shared_ext}$major'
17973 shlibpath_var=LD_LIBRARY_PATH
17974 hardcode_into_libs=yes
17975 ;;
17976
cristyfd9dcd42010-08-08 18:07:02 +000017977haiku*)
17978 version_type=linux
17979 need_lib_prefix=no
17980 need_version=no
17981 dynamic_linker="$host_os runtime_loader"
17982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17983 soname_spec='${libname}${release}${shared_ext}$major'
17984 shlibpath_var=LIBRARY_PATH
17985 shlibpath_overrides_runpath=yes
17986 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17987 hardcode_into_libs=yes
17988 ;;
17989
cristy3ed852e2009-09-05 21:47:34 +000017990hpux9* | hpux10* | hpux11*)
17991 # Give a soname corresponding to the major version so that dld.sl refuses to
17992 # link against other versions.
17993 version_type=sunos
17994 need_lib_prefix=no
17995 need_version=no
17996 case $host_cpu in
17997 ia64*)
17998 shrext_cmds='.so'
17999 hardcode_into_libs=yes
18000 dynamic_linker="$host_os dld.so"
18001 shlibpath_var=LD_LIBRARY_PATH
18002 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18004 soname_spec='${libname}${release}${shared_ext}$major'
18005 if test "X$HPUX_IA64_MODE" = X32; then
18006 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18007 else
18008 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18009 fi
18010 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18011 ;;
18012 hppa*64*)
18013 shrext_cmds='.sl'
18014 hardcode_into_libs=yes
18015 dynamic_linker="$host_os dld.sl"
18016 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18017 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18019 soname_spec='${libname}${release}${shared_ext}$major'
18020 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18021 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18022 ;;
18023 *)
18024 shrext_cmds='.sl'
18025 dynamic_linker="$host_os dld.sl"
18026 shlibpath_var=SHLIB_PATH
18027 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18029 soname_spec='${libname}${release}${shared_ext}$major'
18030 ;;
18031 esac
cristyfd9dcd42010-08-08 18:07:02 +000018032 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy3ed852e2009-09-05 21:47:34 +000018033 postinstall_cmds='chmod 555 $lib'
cristyfd9dcd42010-08-08 18:07:02 +000018034 # or fails outright, so override atomically:
18035 install_override_mode=555
cristy3ed852e2009-09-05 21:47:34 +000018036 ;;
18037
18038interix[3-9]*)
18039 version_type=linux
18040 need_lib_prefix=no
18041 need_version=no
18042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18043 soname_spec='${libname}${release}${shared_ext}$major'
18044 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18045 shlibpath_var=LD_LIBRARY_PATH
18046 shlibpath_overrides_runpath=no
18047 hardcode_into_libs=yes
18048 ;;
18049
18050irix5* | irix6* | nonstopux*)
18051 case $host_os in
18052 nonstopux*) version_type=nonstopux ;;
18053 *)
18054 if test "$lt_cv_prog_gnu_ld" = yes; then
18055 version_type=linux
18056 else
18057 version_type=irix
18058 fi ;;
18059 esac
18060 need_lib_prefix=no
18061 need_version=no
18062 soname_spec='${libname}${release}${shared_ext}$major'
18063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18064 case $host_os in
18065 irix5* | nonstopux*)
18066 libsuff= shlibsuff=
18067 ;;
18068 *)
18069 case $LD in # libtool.m4 will add one of these switches to LD
18070 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18071 libsuff= shlibsuff= libmagic=32-bit;;
18072 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18073 libsuff=32 shlibsuff=N32 libmagic=N32;;
18074 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18075 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18076 *) libsuff= shlibsuff= libmagic=never-match;;
18077 esac
18078 ;;
18079 esac
18080 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18081 shlibpath_overrides_runpath=no
18082 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18083 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18084 hardcode_into_libs=yes
18085 ;;
18086
18087# No shared lib support for Linux oldld, aout, or coff.
18088linux*oldld* | linux*aout* | linux*coff*)
18089 dynamic_linker=no
18090 ;;
18091
18092# This must be Linux ELF.
cristyfd9dcd42010-08-08 18:07:02 +000018093linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018094 version_type=linux
18095 need_lib_prefix=no
18096 need_version=no
18097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18098 soname_spec='${libname}${release}${shared_ext}$major'
18099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18100 shlibpath_var=LD_LIBRARY_PATH
18101 shlibpath_overrides_runpath=no
cristyfd9dcd42010-08-08 18:07:02 +000018102
cristy3ed852e2009-09-05 21:47:34 +000018103 # Some binutils ld are patched to set DT_RUNPATH
cristyfd9dcd42010-08-08 18:07:02 +000018104 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
18105 $as_echo_n "(cached) " >&6
18106else
18107 lt_cv_shlibpath_overrides_runpath=no
18108 save_LDFLAGS=$LDFLAGS
18109 save_libdir=$libdir
18110 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18111 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018113/* end confdefs.h. */
18114
18115int
18116main ()
18117{
18118
18119 ;
18120 return 0;
18121}
18122_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018123if ac_fn_cxx_try_link "$LINENO"; then :
18124 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristyfd9dcd42010-08-08 18:07:02 +000018125 lt_cv_shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000018126fi
cristy3ed852e2009-09-05 21:47:34 +000018127fi
cristy8b350f62009-11-15 23:12:43 +000018128rm -f core conftest.err conftest.$ac_objext \
18129 conftest$ac_exeext conftest.$ac_ext
cristyfd9dcd42010-08-08 18:07:02 +000018130 LDFLAGS=$save_LDFLAGS
18131 libdir=$save_libdir
18132
18133fi
18134
18135 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy3ed852e2009-09-05 21:47:34 +000018136
18137 # This implies no fast_install, which is unacceptable.
18138 # Some rework will be needed to allow for fast_install
18139 # before this can be enabled.
18140 hardcode_into_libs=yes
18141
cristy679ed8e2009-12-05 02:37:41 +000018142 # Add ABI-specific directories to the system library path.
18143 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18144
cristy3ed852e2009-09-05 21:47:34 +000018145 # Append ld.so.conf contents to the search path
18146 if test -f /etc/ld.so.conf; then
cristyfd9dcd42010-08-08 18:07:02 +000018147 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' ' '`
cristy679ed8e2009-12-05 02:37:41 +000018148 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristyfd9dcd42010-08-08 18:07:02 +000018149
cristy3ed852e2009-09-05 21:47:34 +000018150 fi
18151
18152 # We used to test for /lib/ld.so.1 and disable shared libraries on
18153 # powerpc, because MkLinux only supported shared libraries with the
18154 # GNU dynamic linker. Since this was broken with cross compilers,
18155 # most powerpc-linux boxes support dynamic linking these days and
18156 # people can always --disable-shared, the test was removed, and we
18157 # assume the GNU/Linux dynamic linker is in use.
18158 dynamic_linker='GNU/Linux ld.so'
18159 ;;
18160
18161netbsd*)
18162 version_type=sunos
18163 need_lib_prefix=no
18164 need_version=no
18165 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18168 dynamic_linker='NetBSD (a.out) ld.so'
18169 else
18170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18171 soname_spec='${libname}${release}${shared_ext}$major'
18172 dynamic_linker='NetBSD ld.elf_so'
18173 fi
18174 shlibpath_var=LD_LIBRARY_PATH
18175 shlibpath_overrides_runpath=yes
18176 hardcode_into_libs=yes
18177 ;;
18178
18179newsos6)
18180 version_type=linux
18181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18182 shlibpath_var=LD_LIBRARY_PATH
18183 shlibpath_overrides_runpath=yes
18184 ;;
18185
18186*nto* | *qnx*)
18187 version_type=qnx
18188 need_lib_prefix=no
18189 need_version=no
18190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18191 soname_spec='${libname}${release}${shared_ext}$major'
18192 shlibpath_var=LD_LIBRARY_PATH
18193 shlibpath_overrides_runpath=no
18194 hardcode_into_libs=yes
18195 dynamic_linker='ldqnx.so'
18196 ;;
18197
18198openbsd*)
18199 version_type=sunos
18200 sys_lib_dlsearch_path_spec="/usr/lib"
18201 need_lib_prefix=no
18202 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18203 case $host_os in
18204 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18205 *) need_version=no ;;
18206 esac
18207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18209 shlibpath_var=LD_LIBRARY_PATH
18210 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18211 case $host_os in
18212 openbsd2.[89] | openbsd2.[89].*)
18213 shlibpath_overrides_runpath=no
18214 ;;
18215 *)
18216 shlibpath_overrides_runpath=yes
18217 ;;
18218 esac
18219 else
18220 shlibpath_overrides_runpath=yes
18221 fi
18222 ;;
18223
18224os2*)
18225 libname_spec='$name'
18226 shrext_cmds=".dll"
18227 need_lib_prefix=no
18228 library_names_spec='$libname${shared_ext} $libname.a'
18229 dynamic_linker='OS/2 ld.exe'
18230 shlibpath_var=LIBPATH
18231 ;;
18232
18233osf3* | osf4* | osf5*)
18234 version_type=osf
18235 need_lib_prefix=no
18236 need_version=no
18237 soname_spec='${libname}${release}${shared_ext}$major'
18238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18239 shlibpath_var=LD_LIBRARY_PATH
18240 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18241 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18242 ;;
18243
18244rdos*)
18245 dynamic_linker=no
18246 ;;
18247
18248solaris*)
18249 version_type=linux
18250 need_lib_prefix=no
18251 need_version=no
18252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18253 soname_spec='${libname}${release}${shared_ext}$major'
18254 shlibpath_var=LD_LIBRARY_PATH
18255 shlibpath_overrides_runpath=yes
18256 hardcode_into_libs=yes
18257 # ldd complains unless libraries are executable
18258 postinstall_cmds='chmod +x $lib'
18259 ;;
18260
18261sunos4*)
18262 version_type=sunos
18263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18264 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18265 shlibpath_var=LD_LIBRARY_PATH
18266 shlibpath_overrides_runpath=yes
18267 if test "$with_gnu_ld" = yes; then
18268 need_lib_prefix=no
18269 fi
18270 need_version=yes
18271 ;;
18272
18273sysv4 | sysv4.3*)
18274 version_type=linux
18275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18276 soname_spec='${libname}${release}${shared_ext}$major'
18277 shlibpath_var=LD_LIBRARY_PATH
18278 case $host_vendor in
18279 sni)
18280 shlibpath_overrides_runpath=no
18281 need_lib_prefix=no
18282 runpath_var=LD_RUN_PATH
18283 ;;
18284 siemens)
18285 need_lib_prefix=no
18286 ;;
18287 motorola)
18288 need_lib_prefix=no
18289 need_version=no
18290 shlibpath_overrides_runpath=no
18291 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18292 ;;
18293 esac
18294 ;;
18295
18296sysv4*MP*)
18297 if test -d /usr/nec ;then
18298 version_type=linux
18299 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18300 soname_spec='$libname${shared_ext}.$major'
18301 shlibpath_var=LD_LIBRARY_PATH
18302 fi
18303 ;;
18304
18305sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18306 version_type=freebsd-elf
18307 need_lib_prefix=no
18308 need_version=no
18309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18310 soname_spec='${libname}${release}${shared_ext}$major'
18311 shlibpath_var=LD_LIBRARY_PATH
18312 shlibpath_overrides_runpath=yes
18313 hardcode_into_libs=yes
18314 if test "$with_gnu_ld" = yes; then
18315 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18316 else
18317 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18318 case $host_os in
18319 sco3.2v5*)
18320 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18321 ;;
18322 esac
18323 fi
18324 sys_lib_dlsearch_path_spec='/usr/lib'
18325 ;;
18326
18327tpf*)
18328 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18329 version_type=linux
18330 need_lib_prefix=no
18331 need_version=no
18332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18333 shlibpath_var=LD_LIBRARY_PATH
18334 shlibpath_overrides_runpath=no
18335 hardcode_into_libs=yes
18336 ;;
18337
18338uts4*)
18339 version_type=linux
18340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18341 soname_spec='${libname}${release}${shared_ext}$major'
18342 shlibpath_var=LD_LIBRARY_PATH
18343 ;;
18344
18345*)
18346 dynamic_linker=no
18347 ;;
18348esac
cristy8b350f62009-11-15 23:12:43 +000018349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000018350$as_echo "$dynamic_linker" >&6; }
18351test "$dynamic_linker" = no && can_build_shared=no
18352
18353variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18354if test "$GCC" = yes; then
18355 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18356fi
18357
18358if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18359 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18360fi
18361if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18362 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18363fi
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
cristyfd9dcd42010-08-08 18:07:02 +000018400
18401
cristy8b350f62009-11-15 23:12:43 +000018402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018403$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18404hardcode_action_CXX=
18405if test -n "$hardcode_libdir_flag_spec_CXX" ||
18406 test -n "$runpath_var_CXX" ||
18407 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18408
18409 # We can hardcode non-existent directories.
18410 if test "$hardcode_direct_CXX" != no &&
18411 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18412 # have to relink, otherwise we might link with an installed library
18413 # when we should be linking with a yet-to-be-installed one
18414 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18415 test "$hardcode_minus_L_CXX" != no; then
18416 # Linking always hardcodes the temporary library directory.
18417 hardcode_action_CXX=relink
18418 else
18419 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18420 hardcode_action_CXX=immediate
18421 fi
18422else
18423 # We cannot hardcode anything, or else we can only hardcode existing
18424 # directories.
18425 hardcode_action_CXX=unsupported
18426fi
cristy8b350f62009-11-15 23:12:43 +000018427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018428$as_echo "$hardcode_action_CXX" >&6; }
18429
18430if test "$hardcode_action_CXX" = relink ||
18431 test "$inherit_rpath_CXX" = yes; then
18432 # Fast installation is not supported
18433 enable_fast_install=no
18434elif test "$shlibpath_overrides_runpath" = yes ||
18435 test "$enable_shared" = no; then
18436 # Fast installation is not necessary
18437 enable_fast_install=needless
18438fi
18439
18440
18441
18442
18443
18444
18445
18446 fi # test -n "$compiler"
18447
18448 CC=$lt_save_CC
18449 LDCXX=$LD
18450 LD=$lt_save_LD
18451 GCC=$lt_save_GCC
18452 with_gnu_ld=$lt_save_with_gnu_ld
18453 lt_cv_path_LDCXX=$lt_cv_path_LD
18454 lt_cv_path_LD=$lt_save_path_LD
18455 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18456 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18457fi # test "$_lt_caught_CXX_error" != yes
18458
18459ac_ext=c
18460ac_cpp='$CPP $CPPFLAGS'
18461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18463ac_compiler_gnu=$ac_cv_c_compiler_gnu
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477 ac_config_commands="$ac_config_commands libtool"
18478
18479
18480
18481
18482# Only expand once:
18483
18484
18485
18486
18487
18488# Configure libltdl
18489
18490
18491
18492
18493
18494
18495
cristy8b350f62009-11-15 23:12:43 +000018496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000018497$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018498if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018499 $as_echo_n "(cached) " >&6
18500else
18501
18502module=yes
18503eval libltdl_cv_shlibext=$shrext_cmds
18504
18505fi
cristy8b350f62009-11-15 23:12:43 +000018506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000018507$as_echo "$libltdl_cv_shlibext" >&6; }
18508if test -n "$libltdl_cv_shlibext"; then
18509
18510cat >>confdefs.h <<_ACEOF
18511#define LT_MODULE_EXT "$libltdl_cv_shlibext"
18512_ACEOF
18513
18514fi
18515
cristy8b350f62009-11-15 23:12:43 +000018516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018517$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018518if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018519 $as_echo_n "(cached) " >&6
18520else
18521 lt_cv_module_path_var="$shlibpath_var"
18522fi
cristy8b350f62009-11-15 23:12:43 +000018523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000018524$as_echo "$lt_cv_module_path_var" >&6; }
18525if test -n "$lt_cv_module_path_var"; then
18526
18527cat >>confdefs.h <<_ACEOF
18528#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18529_ACEOF
18530
18531fi
18532
cristy8b350f62009-11-15 23:12:43 +000018533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018534$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018535if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018536 $as_echo_n "(cached) " >&6
18537else
18538 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18539fi
cristy8b350f62009-11-15 23:12:43 +000018540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018541$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18542if test -n "$lt_cv_sys_dlsearch_path"; then
18543 sys_dlsearch_path=
18544 for dir in $lt_cv_sys_dlsearch_path; do
18545 if test -z "$sys_dlsearch_path"; then
18546 sys_dlsearch_path="$dir"
18547 else
18548 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18549 fi
18550 done
18551
18552cat >>confdefs.h <<_ACEOF
18553#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18554_ACEOF
18555
18556fi
18557
18558
18559LT_DLLOADERS=
18560
18561
18562ac_ext=c
18563ac_cpp='$CPP $CPPFLAGS'
18564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18566ac_compiler_gnu=$ac_cv_c_compiler_gnu
18567
18568
18569LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000018570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018571$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018572if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018573 $as_echo_n "(cached) " >&6
18574else
18575 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000018576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018577/* end confdefs.h. */
18578
18579/* Override any GCC internal prototype to avoid an error.
18580 Use char because int might match the return type of a GCC
18581 builtin and then its argument prototype would still apply. */
18582#ifdef __cplusplus
18583extern "C"
18584#endif
18585char dlopen ();
18586int
18587main ()
18588{
18589return dlopen ();
18590 ;
18591 return 0;
18592}
18593_ACEOF
18594for ac_lib in '' dl; do
18595 if test -z "$ac_lib"; then
18596 ac_res="none required"
18597 else
18598 ac_res=-l$ac_lib
18599 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18600 fi
cristy8b350f62009-11-15 23:12:43 +000018601 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018602 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000018603fi
cristy8b350f62009-11-15 23:12:43 +000018604rm -f core conftest.err conftest.$ac_objext \
18605 conftest$ac_exeext
18606 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018607 break
18608fi
18609done
cristy8b350f62009-11-15 23:12:43 +000018610if test "${ac_cv_search_dlopen+set}" = set; then :
18611
cristy3ed852e2009-09-05 21:47:34 +000018612else
18613 ac_cv_search_dlopen=no
18614fi
18615rm conftest.$ac_ext
18616LIBS=$ac_func_search_save_LIBS
18617fi
cristy8b350f62009-11-15 23:12:43 +000018618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018619$as_echo "$ac_cv_search_dlopen" >&6; }
18620ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000018621if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000018622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18623
cristy8b350f62009-11-15 23:12:43 +000018624$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018625
18626 if test "$ac_cv_search_dlopen" != "none required" ; then
18627 LIBADD_DLOPEN="-ldl"
18628 fi
18629 libltdl_cv_lib_dl_dlopen="yes"
18630 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18631else
cristy8b350f62009-11-15 23:12:43 +000018632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018633/* end confdefs.h. */
18634#if HAVE_DLFCN_H
18635# include <dlfcn.h>
18636#endif
18637
18638int
18639main ()
18640{
18641dlopen(0, 0);
18642 ;
18643 return 0;
18644}
18645_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018646if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018647
cristy8b350f62009-11-15 23:12:43 +000018648$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018649
18650 libltdl_cv_func_dlopen="yes"
18651 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18652else
cristy8b350f62009-11-15 23:12:43 +000018653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000018654$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018655if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018656 $as_echo_n "(cached) " >&6
18657else
18658 ac_check_lib_save_LIBS=$LIBS
18659LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018661/* end confdefs.h. */
18662
18663/* Override any GCC internal prototype to avoid an error.
18664 Use char because int might match the return type of a GCC
18665 builtin and then its argument prototype would still apply. */
18666#ifdef __cplusplus
18667extern "C"
18668#endif
18669char dlopen ();
18670int
18671main ()
18672{
18673return dlopen ();
18674 ;
18675 return 0;
18676}
18677_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018678if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018679 ac_cv_lib_svld_dlopen=yes
18680else
cristy8b350f62009-11-15 23:12:43 +000018681 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000018682fi
cristy8b350f62009-11-15 23:12:43 +000018683rm -f core conftest.err conftest.$ac_objext \
18684 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018685LIBS=$ac_check_lib_save_LIBS
18686fi
cristy8b350f62009-11-15 23:12:43 +000018687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018688$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018689if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018690
cristy8b350f62009-11-15 23:12:43 +000018691$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018692
18693 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
18694 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18695fi
18696
18697fi
cristy8b350f62009-11-15 23:12:43 +000018698rm -f core conftest.err conftest.$ac_objext \
18699 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018700fi
18701
18702if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
18703then
18704 lt_save_LIBS="$LIBS"
18705 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000018706 for ac_func in dlerror
18707do :
18708 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
18709if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018710 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018711#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000018712_ACEOF
18713
18714fi
18715done
18716
18717 LIBS="$lt_save_LIBS"
18718fi
18719
18720
18721LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000018722ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18723if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018724
cristy8b350f62009-11-15 23:12:43 +000018725$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018726
18727 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
18728else
cristy8b350f62009-11-15 23:12:43 +000018729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000018730$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018731if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018732 $as_echo_n "(cached) " >&6
18733else
18734 ac_check_lib_save_LIBS=$LIBS
18735LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018737/* end confdefs.h. */
18738
18739/* Override any GCC internal prototype to avoid an error.
18740 Use char because int might match the return type of a GCC
18741 builtin and then its argument prototype would still apply. */
18742#ifdef __cplusplus
18743extern "C"
18744#endif
18745char shl_load ();
18746int
18747main ()
18748{
18749return shl_load ();
18750 ;
18751 return 0;
18752}
18753_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018754if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018755 ac_cv_lib_dld_shl_load=yes
18756else
cristy8b350f62009-11-15 23:12:43 +000018757 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000018758fi
cristy8b350f62009-11-15 23:12:43 +000018759rm -f core conftest.err conftest.$ac_objext \
18760 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018761LIBS=$ac_check_lib_save_LIBS
18762fi
cristy8b350f62009-11-15 23:12:43 +000018763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000018764$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018765if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018766
cristy8b350f62009-11-15 23:12:43 +000018767$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018768
18769 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
18770 LIBADD_SHL_LOAD="-ldld"
18771fi
18772
18773fi
18774
18775
18776
18777case $host_os in
18778darwin[1567].*)
18779# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000018780 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
18781if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018782
cristy8b350f62009-11-15 23:12:43 +000018783$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018784
18785 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
18786fi
18787
18788 ;;
18789beos*)
18790 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
18791 ;;
18792cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000018793 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
18794"
18795if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
18796 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000018797else
cristy8b350f62009-11-15 23:12:43 +000018798 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000018799fi
18800
cristy3ed852e2009-09-05 21:47:34 +000018801cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018802#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000018803_ACEOF
18804
cristy3ed852e2009-09-05 21:47:34 +000018805 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
18806 ;;
18807esac
18808
cristy8b350f62009-11-15 23:12:43 +000018809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000018810$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018811if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018812 $as_echo_n "(cached) " >&6
18813else
18814 ac_check_lib_save_LIBS=$LIBS
18815LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018817/* end confdefs.h. */
18818
18819/* Override any GCC internal prototype to avoid an error.
18820 Use char because int might match the return type of a GCC
18821 builtin and then its argument prototype would still apply. */
18822#ifdef __cplusplus
18823extern "C"
18824#endif
18825char dld_link ();
18826int
18827main ()
18828{
18829return dld_link ();
18830 ;
18831 return 0;
18832}
18833_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018834if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018835 ac_cv_lib_dld_dld_link=yes
18836else
cristy8b350f62009-11-15 23:12:43 +000018837 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000018838fi
cristy8b350f62009-11-15 23:12:43 +000018839rm -f core conftest.err conftest.$ac_objext \
18840 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018841LIBS=$ac_check_lib_save_LIBS
18842fi
cristy8b350f62009-11-15 23:12:43 +000018843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000018844$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018845if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018846
cristy8b350f62009-11-15 23:12:43 +000018847$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018848
18849 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
18850fi
18851
18852
18853
18854
18855LT_DLPREOPEN=
18856if test -n "$LT_DLLOADERS"
18857then
18858 for lt_loader in $LT_DLLOADERS; do
18859 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
18860 done
18861
cristy8b350f62009-11-15 23:12:43 +000018862$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018863
18864fi
18865
18866
18867LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
18868
18869
18870ac_ext=c
18871ac_cpp='$CPP $CPPFLAGS'
18872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18874ac_compiler_gnu=$ac_cv_c_compiler_gnu
18875
18876
cristy8b350f62009-11-15 23:12:43 +000018877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000018878$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018879if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018880 $as_echo_n "(cached) " >&6
18881else
18882 lt_cv_sys_symbol_underscore=no
18883 cat > conftest.$ac_ext <<_LT_EOF
18884void nm_test_func(){}
18885int main(){nm_test_func;return 0;}
18886_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000018887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018888 (eval $ac_compile) 2>&5
18889 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18891 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000018892 # Now try to grab the symbols.
18893 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000018894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018895 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
18896 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18898 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000018899 # See whether the symbols have a leading underscore.
18900 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
18901 lt_cv_sys_symbol_underscore=yes
18902 else
18903 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
18904 :
18905 else
18906 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
18907 fi
18908 fi
18909 else
18910 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
18911 fi
18912 else
18913 echo "configure: failed program was:" >&5
18914 cat conftest.c >&5
18915 fi
18916 rm -rf conftest*
18917
18918fi
cristy8b350f62009-11-15 23:12:43 +000018919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000018920$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
18921 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
18922
18923
18924if test x"$lt_cv_sys_symbol_underscore" = xyes; then
18925 if test x"$libltdl_cv_func_dlopen" = xyes ||
18926 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000018927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000018928$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018929if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018930 $as_echo_n "(cached) " >&6
18931else
18932 libltdl_cv_need_uscore=unknown
18933 save_LIBS="$LIBS"
18934 LIBS="$LIBS $LIBADD_DLOPEN"
18935 if test "$cross_compiling" = yes; then :
18936 libltdl_cv_need_uscore=cross
18937else
18938 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18939 lt_status=$lt_dlunknown
18940 cat > conftest.$ac_ext <<_LT_EOF
cristyfd9dcd42010-08-08 18:07:02 +000018941#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000018942#include "confdefs.h"
18943
18944#if HAVE_DLFCN_H
18945#include <dlfcn.h>
18946#endif
18947
18948#include <stdio.h>
18949
18950#ifdef RTLD_GLOBAL
18951# define LT_DLGLOBAL RTLD_GLOBAL
18952#else
18953# ifdef DL_GLOBAL
18954# define LT_DLGLOBAL DL_GLOBAL
18955# else
18956# define LT_DLGLOBAL 0
18957# endif
18958#endif
18959
18960/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18961 find out it does not work in some platform. */
18962#ifndef LT_DLLAZY_OR_NOW
18963# ifdef RTLD_LAZY
18964# define LT_DLLAZY_OR_NOW RTLD_LAZY
18965# else
18966# ifdef DL_LAZY
18967# define LT_DLLAZY_OR_NOW DL_LAZY
18968# else
18969# ifdef RTLD_NOW
18970# define LT_DLLAZY_OR_NOW RTLD_NOW
18971# else
18972# ifdef DL_NOW
18973# define LT_DLLAZY_OR_NOW DL_NOW
18974# else
18975# define LT_DLLAZY_OR_NOW 0
18976# endif
18977# endif
18978# endif
18979# endif
18980#endif
18981
cristyfd9dcd42010-08-08 18:07:02 +000018982/* When -fvisbility=hidden is used, assume the code has been annotated
18983 correspondingly for the symbols needed. */
18984#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18985void fnord () __attribute__((visibility("default")));
18986#endif
18987
18988void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000018989int main ()
18990{
18991 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18992 int status = $lt_dlunknown;
18993
18994 if (self)
18995 {
18996 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristyfd9dcd42010-08-08 18:07:02 +000018997 else
18998 {
18999 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19000 else puts (dlerror ());
19001 }
cristy3ed852e2009-09-05 21:47:34 +000019002 /* dlclose (self); */
19003 }
19004 else
19005 puts (dlerror ());
19006
19007 return status;
19008}
19009_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019011 (eval $ac_link) 2>&5
19012 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19014 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000019015 (./conftest; exit; ) >&5 2>/dev/null
19016 lt_status=$?
19017 case x$lt_status in
19018 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19019 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19020 x$lt_dlunknown|x*) ;;
19021 esac
19022 else :
19023 # compilation failed
19024
19025 fi
19026fi
19027rm -fr conftest*
19028
19029 LIBS="$save_LIBS"
19030
19031fi
cristy8b350f62009-11-15 23:12:43 +000019032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019033$as_echo "$libltdl_cv_need_uscore" >&6; }
19034 fi
19035fi
19036
19037if test x"$libltdl_cv_need_uscore" = xyes; then
19038
cristy8b350f62009-11-15 23:12:43 +000019039$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019040
19041fi
19042
cristy8b350f62009-11-15 23:12:43 +000019043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019044$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019045if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019046 $as_echo_n "(cached) " >&6
19047else
19048 # PORTME does your system automatically load deplibs for dlopen?
19049 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19050 # For now, we just catch OSes we know something about -- in the
19051 # future, we'll try test this programmatically.
19052 lt_cv_sys_dlopen_deplibs=unknown
19053 case $host_os in
19054 aix3*|aix4.1.*|aix4.2.*)
19055 # Unknown whether this is true for these versions of AIX, but
19056 # we want this `case' here to explicitly catch those versions.
19057 lt_cv_sys_dlopen_deplibs=unknown
19058 ;;
19059 aix[4-9]*)
19060 lt_cv_sys_dlopen_deplibs=yes
19061 ;;
19062 amigaos*)
19063 case $host_cpu in
19064 powerpc)
19065 lt_cv_sys_dlopen_deplibs=no
19066 ;;
19067 esac
19068 ;;
19069 darwin*)
19070 # Assuming the user has installed a libdl from somewhere, this is true
19071 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19072 lt_cv_sys_dlopen_deplibs=yes
19073 ;;
19074 freebsd* | dragonfly*)
19075 lt_cv_sys_dlopen_deplibs=yes
19076 ;;
cristyfd9dcd42010-08-08 18:07:02 +000019077 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000019078 # GNU and its variants, using gnu ld.so (Glibc)
19079 lt_cv_sys_dlopen_deplibs=yes
19080 ;;
19081 hpux10*|hpux11*)
19082 lt_cv_sys_dlopen_deplibs=yes
19083 ;;
19084 interix*)
19085 lt_cv_sys_dlopen_deplibs=yes
19086 ;;
19087 irix[12345]*|irix6.[01]*)
19088 # Catch all versions of IRIX before 6.2, and indicate that we don't
19089 # know how it worked for any of those versions.
19090 lt_cv_sys_dlopen_deplibs=unknown
19091 ;;
19092 irix*)
19093 # The case above catches anything before 6.2, and it's known that
19094 # at 6.2 and later dlopen does load deplibs.
19095 lt_cv_sys_dlopen_deplibs=yes
19096 ;;
19097 netbsd*)
19098 lt_cv_sys_dlopen_deplibs=yes
19099 ;;
19100 openbsd*)
19101 lt_cv_sys_dlopen_deplibs=yes
19102 ;;
19103 osf[1234]*)
19104 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19105 # it did *not* use an RPATH in a shared library to find objects the
19106 # library depends on, so we explicitly say `no'.
19107 lt_cv_sys_dlopen_deplibs=no
19108 ;;
19109 osf5.0|osf5.0a|osf5.1)
19110 # dlopen *does* load deplibs and with the right loader patch applied
19111 # it even uses RPATH in a shared library to search for shared objects
19112 # that the library depends on, but there's no easy way to know if that
19113 # patch is installed. Since this is the case, all we can really
19114 # say is unknown -- it depends on the patch being installed. If
19115 # it is, this changes to `yes'. Without it, it would be `no'.
19116 lt_cv_sys_dlopen_deplibs=unknown
19117 ;;
19118 osf*)
19119 # the two cases above should catch all versions of osf <= 5.1. Read
19120 # the comments above for what we know about them.
19121 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19122 # is used to find them so we can finally say `yes'.
19123 lt_cv_sys_dlopen_deplibs=yes
19124 ;;
19125 qnx*)
19126 lt_cv_sys_dlopen_deplibs=yes
19127 ;;
19128 solaris*)
19129 lt_cv_sys_dlopen_deplibs=yes
19130 ;;
19131 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19132 libltdl_cv_sys_dlopen_deplibs=yes
19133 ;;
19134 esac
19135
19136fi
cristy8b350f62009-11-15 23:12:43 +000019137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000019138$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19139if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19140
cristy8b350f62009-11-15 23:12:43 +000019141$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019142
19143fi
19144
19145:
19146
cristy3ed852e2009-09-05 21:47:34 +000019147for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000019148do :
19149 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19150"
19151if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019152 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019153#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000019154_ACEOF
19155
19156fi
19157
19158done
19159
19160
cristy8b350f62009-11-15 23:12:43 +000019161ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000019162# include <argz.h>
19163#endif
cristy8b350f62009-11-15 23:12:43 +000019164"
19165if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019166
19167cat >>confdefs.h <<_ACEOF
19168#define HAVE_ERROR_T 1
19169_ACEOF
19170
19171
19172else
19173
cristy8b350f62009-11-15 23:12:43 +000019174$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019175
19176
cristy8b350f62009-11-15 23:12:43 +000019177$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019178
19179fi
19180
19181
19182ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000019183for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19184 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000019185do :
19186 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19187ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000019188if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019189 cat >>confdefs.h <<_ACEOF
19190#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19191_ACEOF
19192
19193else
19194 ARGZ_H=argz.h;
19195
19196 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19197
19198fi
19199done
19200
19201
cristy8b350f62009-11-15 23:12:43 +000019202if test -z "$ARGZ_H"; then :
19203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019204$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019205if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019206 $as_echo_n "(cached) " >&6
19207else
19208 case $host_os in #(
19209 *cygwin*)
19210 lt_cv_sys_argz_works=no
19211 if test "$cross_compiling" != no; then
19212 lt_cv_sys_argz_works="guessing no"
19213 else
19214 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19215 save_IFS=$IFS
19216 IFS=-.
19217 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19218 IFS=$save_IFS
19219 lt_os_major=${2-0}
19220 lt_os_minor=${3-0}
19221 lt_os_micro=${4-0}
19222 if test "$lt_os_major" -gt 1 \
19223 || { test "$lt_os_major" -eq 1 \
19224 && { test "$lt_os_minor" -gt 5 \
19225 || { test "$lt_os_minor" -eq 5 \
19226 && test "$lt_os_micro" -gt 24; }; }; }; then
19227 lt_cv_sys_argz_works=yes
19228 fi
19229 fi
19230 ;; #(
19231 *) lt_cv_sys_argz_works=yes ;;
19232 esac
19233fi
cristy8b350f62009-11-15 23:12:43 +000019234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019235$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019236 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019237
cristy8b350f62009-11-15 23:12:43 +000019238$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019239
19240else
19241 ARGZ_H=argz.h
19242
19243
19244 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19245
19246fi
cristy3ed852e2009-09-05 21:47:34 +000019247fi
19248
19249
19250
cristy8b350f62009-11-15 23:12:43 +000019251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019252$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019253if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019254 $as_echo_n "(cached) " >&6
19255else
19256 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19257 libltdl_cv_preloaded_symbols=yes
19258 else
19259 libltdl_cv_preloaded_symbols=no
19260 fi
19261
19262fi
cristy8b350f62009-11-15 23:12:43 +000019263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019264$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19265if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19266
cristy8b350f62009-11-15 23:12:43 +000019267$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019268
19269fi
19270
19271# Set options
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000019284if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019285 withval=$with_included_ltdl;
19286fi
19287
19288
19289if test "x$with_included_ltdl" != xyes; then
19290 # We are not being forced to use the included libltdl sources, so
19291 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000019292 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000019293
cristy8b350f62009-11-15 23:12:43 +000019294"
19295if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19296 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000019297 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000019298"
19299if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000019301$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019302if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019303 $as_echo_n "(cached) " >&6
19304else
19305 ac_check_lib_save_LIBS=$LIBS
19306LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019308/* end confdefs.h. */
19309
19310/* Override any GCC internal prototype to avoid an error.
19311 Use char because int might match the return type of a GCC
19312 builtin and then its argument prototype would still apply. */
19313#ifdef __cplusplus
19314extern "C"
19315#endif
19316char lt_dladvise_preload ();
19317int
19318main ()
19319{
19320return lt_dladvise_preload ();
19321 ;
19322 return 0;
19323}
19324_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019325if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019326 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19327else
cristy8b350f62009-11-15 23:12:43 +000019328 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000019329fi
cristy8b350f62009-11-15 23:12:43 +000019330rm -f core conftest.err conftest.$ac_objext \
19331 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019332LIBS=$ac_check_lib_save_LIBS
19333fi
cristy8b350f62009-11-15 23:12:43 +000019334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000019335$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019336if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019337 with_included_ltdl=no
19338else
19339 with_included_ltdl=yes
19340fi
19341
19342else
19343 with_included_ltdl=yes
19344fi
19345
19346else
19347 with_included_ltdl=yes
19348fi
19349
19350
19351fi
19352
19353
19354
19355
19356# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000019357if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019358 withval=$with_ltdl_include;
19359fi
19360
19361
19362if test -n "$with_ltdl_include"; then
19363 if test -f "$with_ltdl_include/ltdl.h"; then :
19364 else
cristyfd9dcd42010-08-08 18:07:02 +000019365 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019366 fi
19367else
19368 with_ltdl_include=no
19369fi
19370
19371
19372# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000019373if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019374 withval=$with_ltdl_lib;
19375fi
19376
19377
19378if test -n "$with_ltdl_lib"; then
19379 if test -f "$with_ltdl_lib/libltdl.la"; then :
19380 else
cristyfd9dcd42010-08-08 18:07:02 +000019381 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019382 fi
19383else
19384 with_ltdl_lib=no
19385fi
19386
19387case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19388 ,yes,no,no,)
19389 case $enable_ltdl_convenience in
cristyfd9dcd42010-08-08 18:07:02 +000019390 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019391 "") enable_ltdl_convenience=yes
19392 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19393esac
19394LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19395LTDLDEPS=$LIBLTDL
19396LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19397
19398
19399
19400
19401
19402# For backwards non-gettext consistent compatibility...
19403INCLTDL="$LTDLINCL"
19404
19405
19406 ;;
19407 ,no,no,no,)
19408 # If the included ltdl is not to be used, then use the
19409 # preinstalled libltdl we found.
19410
cristy8b350f62009-11-15 23:12:43 +000019411$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019412
19413 LIBLTDL=-lltdl
19414 LTDLDEPS=
19415 LTDLINCL=
19416 ;;
19417 ,no*,no,*)
cristyfd9dcd42010-08-08 18:07:02 +000019418 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019419 ;;
19420 *) with_included_ltdl=no
19421 LIBLTDL="-L$with_ltdl_lib -lltdl"
19422 LTDLDEPS=
19423 LTDLINCL="-I$with_ltdl_include"
19424 ;;
19425esac
19426INCLTDL="$LTDLINCL"
19427
19428# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000019429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000019430$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019432$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000019434$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019436$as_echo "$LIBLTDL" >&6; }
19437
19438
19439
19440# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000019441if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019442 enableval=$enable_ltdl_install;
19443fi
19444
19445
19446case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19447 *yes*) ;;
19448 *) enable_ltdl_convenience=yes ;;
19449esac
19450
19451 if test x"${enable_ltdl_install-no}" != xno; then
19452 INSTALL_LTDL_TRUE=
19453 INSTALL_LTDL_FALSE='#'
19454else
19455 INSTALL_LTDL_TRUE='#'
19456 INSTALL_LTDL_FALSE=
19457fi
19458
19459 if test x"${enable_ltdl_convenience-no}" != xno; then
19460 CONVENIENCE_LTDL_TRUE=
19461 CONVENIENCE_LTDL_FALSE='#'
19462else
19463 CONVENIENCE_LTDL_TRUE='#'
19464 CONVENIENCE_LTDL_FALSE=
19465fi
19466
19467
19468
19469
19470
19471
cristy3ed852e2009-09-05 21:47:34 +000019472# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19473# the user used. This is so that ltdl.h can pick up the parent projects
19474# config.h file, The first file in AC_CONFIG_HEADERS must contain the
19475# definitions required by ltdl.c.
19476# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19477
19478
19479
cristy3ed852e2009-09-05 21:47:34 +000019480for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000019481do :
19482 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19483ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19484"
cristyfd9dcd42010-08-08 18:07:02 +000019485if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019486 cat >>confdefs.h <<_ACEOF
19487#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19488_ACEOF
19489
19490fi
19491
19492done
19493
19494
cristy3ed852e2009-09-05 21:47:34 +000019495for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000019496do :
19497 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19498ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000019499if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019500 cat >>confdefs.h <<_ACEOF
19501#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19502_ACEOF
19503
19504else
19505
19506
19507 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
19508
19509fi
19510done
19511
cristy3ed852e2009-09-05 21:47:34 +000019512for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000019513do :
19514 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19515ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000019516if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019517 cat >>confdefs.h <<_ACEOF
19518#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19519_ACEOF
19520
19521else
19522
19523
19524 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
19525
19526fi
19527done
19528
19529
19530
19531cat >>confdefs.h <<_ACEOF
19532#define LT_LIBEXT "$libext"
19533_ACEOF
19534
19535
19536name=ltdl
19537LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
19538
19539
19540
19541
19542
19543
19544
19545
19546# Only expand once:
19547
19548
19549
19550# Check to see if building shared libraries
19551libtool_build_shared_libs='no'
19552if test "$enable_shared" = 'yes'; then
19553 libtool_build_shared_libs='yes'
19554fi
19555
19556# Check to see if building static libraries
19557libtool_build_static_libs='no'
19558if test "$enable_static" = 'yes'; then
19559 libtool_build_static_libs='yes'
19560fi
19561
cristyfa112112010-01-04 17:48:07 +000019562 if test "${libtool_build_shared_libs}" = 'yes'; then
19563 WITH_SHARED_LIBS_TRUE=
19564 WITH_SHARED_LIBS_FALSE='#'
19565else
19566 WITH_SHARED_LIBS_TRUE='#'
19567 WITH_SHARED_LIBS_FALSE=
cristy3ed852e2009-09-05 21:47:34 +000019568fi
19569
19570#
19571# Enable support for building loadable modules
19572#
19573
19574# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000019575if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019576 withval=$with_modules; with_modules=$withval
19577else
cristy5a1cefd2010-01-06 20:42:35 +000019578 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000019579fi
19580
19581
19582# Only allow building loadable modules if we are building shared libraries
19583if test "$with_modules" != 'no' ; then
19584 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000019585 { $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 +000019586$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
19587 with_modules='no'
19588 fi
19589fi
19590if test "$with_modules" != 'no'; then
19591
cristy8b350f62009-11-15 23:12:43 +000019592$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019593
19594fi
19595 if test "$with_modules" != 'no'; then
19596 WITH_MODULES_TRUE=
19597 WITH_MODULES_FALSE='#'
19598else
19599 WITH_MODULES_TRUE='#'
19600 WITH_MODULES_FALSE=
19601fi
19602
19603
19604# Enable building/use of libltdl if we are building shared libraries regardless
19605# of whether modules are built or not.
19606with_ltdl='no'
19607if test "$libtool_build_shared_libs" != 'no'; then
19608 with_ltdl='yes'
19609fi
19610
19611 if test "$with_ltdl" != 'no'; then
19612 WITH_LTDL_TRUE=
19613 WITH_LTDL_FALSE='#'
19614else
19615 WITH_LTDL_TRUE='#'
19616 WITH_LTDL_FALSE=
19617fi
19618
19619if test "$with_ltdl" != 'no'; then
19620
cristy8b350f62009-11-15 23:12:43 +000019621$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019622
19623
19624 # Set DLLDFLAGS
19625 if test X"$enable_shared" = Xyes; then
19626 DLLDFLAGS=-export-dynamic
19627
19628 fi
19629fi
19630
19631# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000019632# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000019633# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000019634if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019635 enableval=$enable_delegate_build; enable_delegate_build=$enableval
19636else
19637 enable_delegate_build='no'
19638fi
19639
19640
19641# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000019642if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019643 enableval=$enable_deprecated; enable_deprecated=$enableval
19644else
19645 enable_deprecated='no'
19646fi
19647
19648
19649if test "$enable_deprecated" = 'yes'; then
19650
cristy8b350f62009-11-15 23:12:43 +000019651$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019652
19653else
19654 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
19655fi
19656
19657# Build a version of ImageMagick which operates uninstalled.
19658# Used to build distributions located via MAGICK_HOME / executable path
19659# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000019660if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019661 enableval=$enable_installed; enable_installed=$enableval
19662else
19663 enable_installed='yes'
19664fi
19665
19666
19667if test "$enable_installed" = 'yes'; then
19668
cristy8b350f62009-11-15 23:12:43 +000019669$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019670
19671else
19672 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
19673fi
19674
19675# Permit enciphering and deciphering image pixels.
19676# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000019677if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019678 enableval=$enable_cipher; enable_cipher=$enableval
19679else
19680 enable_cipher='yes'
19681fi
19682
19683
19684if test "$enable_cipher" = 'yes'; then
19685
cristy8b350f62009-11-15 23:12:43 +000019686$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019687
19688fi
19689
19690# Build an embeddable version of ImageMagick.
19691# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000019692if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019693 enableval=$enable_embeddable; enable_embeddable=$enableval
19694else
19695 enable_embeddable='no'
19696fi
19697
19698
19699if test "$enable_embeddable" = 'yes'; then
19700
cristy8b350f62009-11-15 23:12:43 +000019701$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019702
19703fi
19704
19705# Build a high dynamic range version of ImageMagick.
19706# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000019707if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019708 enableval=$enable_hdri; enable_hdri=$enableval
19709else
19710 enable_hdri='no'
19711fi
19712
19713
19714MAGICK_HDRI=""
19715if test "$enable_hdri" = 'yes'; then
19716 MAGICK_HDRI="HDRI"
19717
cristy8b350f62009-11-15 23:12:43 +000019718$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019719
cristyfd9dcd42010-08-08 18:07:02 +000019720 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000019721fi
19722
cristy3ed852e2009-09-05 21:47:34 +000019723# Build a version of ImageMagick with assert statements.
19724# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000019725if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019726 enableval=$enable_assert; enable_assert=$enableval
19727else
19728 enable_assert='yes'
19729fi
19730
19731
19732if test "$enable_assert" = 'no'; then
19733
cristy8b350f62009-11-15 23:12:43 +000019734$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019735
19736fi
19737
19738# Add configure option --enable-maintainer-mode which enables dependency
19739# checking and generation useful to package maintainers. This is made an
19740# option to avoid confusing end users.
19741
cristy8b350f62009-11-15 23:12:43 +000019742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000019743$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
19744 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000019745if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019746 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
19747else
19748 USE_MAINTAINER_MODE=no
19749fi
19750
cristy8b350f62009-11-15 23:12:43 +000019751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000019752$as_echo "$USE_MAINTAINER_MODE" >&6; }
19753 if test $USE_MAINTAINER_MODE = yes; then
19754 MAINTAINER_MODE_TRUE=
19755 MAINTAINER_MODE_FALSE='#'
19756else
19757 MAINTAINER_MODE_TRUE='#'
19758 MAINTAINER_MODE_FALSE=
19759fi
19760
19761 MAINT=$MAINTAINER_MODE_TRUE
19762
19763
19764
19765
19766# Enable ccmalloc memory debugging support
19767# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000019768if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019769 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
19770else
19771 enable_ccmalloc='no'
19772fi
19773
19774
19775# Enable Electric Fence memory debugging support
19776# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000019777if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019778 enableval=$enable_efence; enable_efence=$enableval
19779else
19780 enable_efence='no'
19781fi
19782
19783
19784# Enable prof-based profiling support
19785# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000019786if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019787 enableval=$enable_prof; enable_prof=$enableval
19788else
19789 enable_prof='no'
19790fi
19791
19792
19793# Enable gprof-based profiling support
19794# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000019795if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019796 enableval=$enable_gprof; enable_gprof=$enableval
19797else
19798 enable_gprof='no'
19799fi
19800
19801
19802# Enable gcov-based profiling support
19803# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000019804if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019805 enableval=$enable_gcov; enable_gcov=$enableval
19806else
19807 enable_gcov='no'
19808fi
19809
19810
19811enable_profiling='no'
19812if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
19813 enable_profiling='yes'
19814 if test "$libtool_build_shared_libs" = 'yes'; then
19815 echo "Warning: Can not profile code using shared libraries"
19816 fi
19817fi
19818
19819# Magick API method prefix
19820
19821# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000019822if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019823 withval=$with_method_prefix; with_method_prefix=$enableval
19824else
19825 with_method_prefix=''
19826fi
19827
19828
19829if test "$with_method_prefix" != ''; then
19830
19831cat >>confdefs.h <<_ACEOF
19832#define NAMESPACE_PREFIX $with_method_prefix
19833_ACEOF
19834
19835fi
19836
19837# Number of bits in a Quantum
19838
19839# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000019840if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019841 withval=$with_quantum_depth; with_quantum_depth=$withval
19842else
19843 with_quantum_depth=16
19844fi
19845
19846
19847if test "$with_quantum_depth" != '8'; then
19848 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
19849fi
19850
19851case "${with_quantum_depth}" in
19852 8 ) ;;
19853 16 ) ;;
19854 32 ) ;;
19855 64 ) ;;
cristyfd9dcd42010-08-08 18:07:02 +000019856 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019857esac
cristycdae12a2010-09-19 02:24:31 +000019858if test "$enable_hdri" = 'yes'; then
19859 with_quantum_depth=16
19860fi
cristy3ed852e2009-09-05 21:47:34 +000019861QUANTUM_DEPTH="$with_quantum_depth"
19862
19863cat >>confdefs.h <<_ACEOF
19864#define QUANTUM_DEPTH $QUANTUM_DEPTH
19865_ACEOF
19866
19867
19868# Set pixel cache threshold
19869
19870# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000019871if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019872 withval=$with_cache; with_cache=$withval
19873else
19874 with_cache=''
19875fi
19876
19877
19878if test "$with_cache" != ''; then
19879
19880cat >>confdefs.h <<_ACEOF
19881#define PixelCacheThreshold $with_cache
19882_ACEOF
19883
19884 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
19885fi
19886
19887# Disable/Enable support for full delegate paths
19888
19889# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000019890if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019891 withval=$with_frozenpaths; with_frozenpaths=$withval
19892else
19893 with_frozenpaths='no'
19894fi
19895
19896
19897# Enable build/install of Magick++
19898
19899# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000019900if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019901 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
19902else
19903 with_magick_plus_plus='yes'
19904fi
19905
19906
19907# Disable build/install of PerlMagick.
19908
19909# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000019910if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019911 withval=$with_perl; with_perl=$withval
19912else
cristyb5f4e2f2010-04-25 00:49:11 +000019913 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000019914fi
19915
19916
19917# Options to pass when configuring PerlMagick
19918
19919# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000019920if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000019921 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000019922fi
19923
19924
cristy3ed852e2009-09-05 21:47:34 +000019925
19926# Enable umem, object-caching memory allocation library.
19927
19928# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000019929if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019930 withval=$with_umem; with_umem=$withval
19931else
19932 with_umem='no'
19933fi
19934
19935if test "$with_umem" != 'yes' ; then
19936 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
19937fi
19938
19939#
19940# Specify path to shared libstdc++ if not in normal location
19941#
19942
19943# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000019944if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019945 withval=$with_libstdc; with_libstdc=$withval
19946else
19947 with_libstdc=''
19948fi
19949
19950
19951if test "$with_libstdc" != ''; then
19952 if test -d "$with_libstdc"; then
19953 LIBSTDCLDFLAGS="-L$with_libstdc"
19954 fi
19955fi
19956
19957
19958# Does gcc required -traditional?
19959if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000019960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000019961$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019962if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019963 $as_echo_n "(cached) " >&6
19964else
19965 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000019966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019967/* end confdefs.h. */
19968#include <sgtty.h>
19969Autoconf TIOCGETP
19970_ACEOF
19971if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019972 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019973 ac_cv_prog_gcc_traditional=yes
19974else
19975 ac_cv_prog_gcc_traditional=no
19976fi
19977rm -f conftest*
19978
19979
19980 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000019981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019982/* end confdefs.h. */
19983#include <termio.h>
19984Autoconf TCGETA
19985_ACEOF
19986if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019987 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019988 ac_cv_prog_gcc_traditional=yes
19989fi
19990rm -f conftest*
19991
19992 fi
19993fi
cristy8b350f62009-11-15 23:12:43 +000019994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000019995$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
19996 if test $ac_cv_prog_gcc_traditional = yes; then
19997 CC="$CC -traditional"
19998 fi
19999fi
20000
20001
20002########
20003#
20004# Set defines required to build DLLs and modules using MinGW
20005#
20006########
20007# These options are set for multi-thread DLL module build
20008# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20009# module: _DLL
20010# executable/Magick++: _DLL _MAGICKMOD_
20011MODULE_EXTRA_CPPFLAGS=''
20012LIBRARY_EXTRA_CPPFLAGS=''
20013if test "${native_win32_build}" = 'yes'; then
20014 if test "${libtool_build_shared_libs}" = 'yes'; then
20015 CPPFLAGS="$CPPFLAGS -D_DLL"
20016 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20017 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20018 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20019 if test "$with_modules" = 'yes'; then
20020 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20021 else
20022 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20023 fi
20024 else
20025 CPPFLAGS="$CPPFLAGS -D_LIB"
20026 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20027 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20028 fi
20029 if test "$with_threads" = 'yes'; then
20030 CPPFLAGS="$CPPFLAGS -D_MT"
20031 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20032 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20033 fi
20034fi
20035
20036
20037
20038# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000020039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000020040$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020041if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020042 $as_echo_n "(cached) " >&6
20043else
cristy8b350f62009-11-15 23:12:43 +000020044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020045/* end confdefs.h. */
20046#include <stdlib.h>
20047#include <stdarg.h>
20048#include <string.h>
20049#include <float.h>
20050
20051int
20052main ()
20053{
20054
20055 ;
20056 return 0;
20057}
20058_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020059if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020060 ac_cv_header_stdc=yes
20061else
cristy8b350f62009-11-15 23:12:43 +000020062 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020063fi
cristy3ed852e2009-09-05 21:47:34 +000020064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20065
20066if test $ac_cv_header_stdc = yes; then
20067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020069/* end confdefs.h. */
20070#include <string.h>
20071
20072_ACEOF
20073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020074 $EGREP "memchr" >/dev/null 2>&1; then :
20075
cristy3ed852e2009-09-05 21:47:34 +000020076else
20077 ac_cv_header_stdc=no
20078fi
20079rm -f conftest*
20080
20081fi
20082
20083if test $ac_cv_header_stdc = yes; then
20084 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020086/* end confdefs.h. */
20087#include <stdlib.h>
20088
20089_ACEOF
20090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020091 $EGREP "free" >/dev/null 2>&1; then :
20092
cristy3ed852e2009-09-05 21:47:34 +000020093else
20094 ac_cv_header_stdc=no
20095fi
20096rm -f conftest*
20097
20098fi
20099
20100if test $ac_cv_header_stdc = yes; then
20101 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000020102 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020103 :
20104else
cristy8b350f62009-11-15 23:12:43 +000020105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020106/* end confdefs.h. */
20107#include <ctype.h>
20108#include <stdlib.h>
20109#if ((' ' & 0x0FF) == 0x020)
20110# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20111# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20112#else
20113# define ISLOWER(c) \
20114 (('a' <= (c) && (c) <= 'i') \
20115 || ('j' <= (c) && (c) <= 'r') \
20116 || ('s' <= (c) && (c) <= 'z'))
20117# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20118#endif
20119
20120#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20121int
20122main ()
20123{
20124 int i;
20125 for (i = 0; i < 256; i++)
20126 if (XOR (islower (i), ISLOWER (i))
20127 || toupper (i) != TOUPPER (i))
20128 return 2;
20129 return 0;
20130}
20131_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020132if ac_fn_c_try_run "$LINENO"; then :
20133
cristy3ed852e2009-09-05 21:47:34 +000020134else
cristy8b350f62009-11-15 23:12:43 +000020135 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020136fi
cristy8b350f62009-11-15 23:12:43 +000020137rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20138 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020139fi
20140
cristy3ed852e2009-09-05 21:47:34 +000020141fi
20142fi
cristy8b350f62009-11-15 23:12:43 +000020143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000020144$as_echo "$ac_cv_header_stdc" >&6; }
20145if test $ac_cv_header_stdc = yes; then
20146
cristy8b350f62009-11-15 23:12:43 +000020147$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020148
20149fi
20150
20151if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000020152 { $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 +000020153 header files. Compilation cannot proceed. Please install the ANSI C
20154 headers and rerun this script." >&5
20155$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20156 header files. Compilation cannot proceed. Please install the ANSI C
20157 headers and rerun this script." >&2;};
20158fi
cristya0b81c32010-01-22 02:54:33 +000020159
20160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20161$as_echo_n "checking whether to enable assertions... " >&6; }
20162 # Check whether --enable-assert was given.
20163if test "${enable_assert+set}" = set; then :
20164 enableval=$enable_assert; ac_enable_assert=$enableval
20165 if test "x$enableval" = xno; then :
20166
20167$as_echo "#define NDEBUG 1" >>confdefs.h
20168
20169elif test "x$enableval" != xyes; then :
20170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20171$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20172 ac_enable_assert=yes
20173fi
20174else
20175 ac_enable_assert=yes
20176fi
20177
20178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20179$as_echo "$ac_enable_assert" >&6; }
20180
cristy3ed852e2009-09-05 21:47:34 +000020181ac_header_dirent=no
20182for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20183 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020185$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000020186if eval "test \"\${$as_ac_Header+set}\"" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020187 $as_echo_n "(cached) " >&6
20188else
cristy8b350f62009-11-15 23:12:43 +000020189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020190/* end confdefs.h. */
20191#include <sys/types.h>
20192#include <$ac_hdr>
20193
20194int
20195main ()
20196{
20197if ((DIR *) 0)
20198return 0;
20199 ;
20200 return 0;
20201}
20202_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020203if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020204 eval "$as_ac_Header=yes"
20205else
cristy8b350f62009-11-15 23:12:43 +000020206 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020207fi
cristy3ed852e2009-09-05 21:47:34 +000020208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20209fi
cristy8b350f62009-11-15 23:12:43 +000020210eval ac_res=\$$as_ac_Header
20211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020212$as_echo "$ac_res" >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000020213if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000020214 cat >>confdefs.h <<_ACEOF
20215#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20216_ACEOF
20217
20218ac_header_dirent=$ac_hdr; break
20219fi
20220
20221done
20222# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20223if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020225$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020226if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020227 $as_echo_n "(cached) " >&6
20228else
20229 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020231/* end confdefs.h. */
20232
20233/* Override any GCC internal prototype to avoid an error.
20234 Use char because int might match the return type of a GCC
20235 builtin and then its argument prototype would still apply. */
20236#ifdef __cplusplus
20237extern "C"
20238#endif
20239char opendir ();
20240int
20241main ()
20242{
20243return opendir ();
20244 ;
20245 return 0;
20246}
20247_ACEOF
20248for ac_lib in '' dir; do
20249 if test -z "$ac_lib"; then
20250 ac_res="none required"
20251 else
20252 ac_res=-l$ac_lib
20253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20254 fi
cristy8b350f62009-11-15 23:12:43 +000020255 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020256 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020257fi
cristy8b350f62009-11-15 23:12:43 +000020258rm -f core conftest.err conftest.$ac_objext \
20259 conftest$ac_exeext
20260 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020261 break
20262fi
20263done
cristy8b350f62009-11-15 23:12:43 +000020264if test "${ac_cv_search_opendir+set}" = set; then :
20265
cristy3ed852e2009-09-05 21:47:34 +000020266else
20267 ac_cv_search_opendir=no
20268fi
20269rm conftest.$ac_ext
20270LIBS=$ac_func_search_save_LIBS
20271fi
cristy8b350f62009-11-15 23:12:43 +000020272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020273$as_echo "$ac_cv_search_opendir" >&6; }
20274ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020275if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020276 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20277
20278fi
20279
20280else
cristy8b350f62009-11-15 23:12:43 +000020281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020282$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020283if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020284 $as_echo_n "(cached) " >&6
20285else
20286 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020288/* end confdefs.h. */
20289
20290/* Override any GCC internal prototype to avoid an error.
20291 Use char because int might match the return type of a GCC
20292 builtin and then its argument prototype would still apply. */
20293#ifdef __cplusplus
20294extern "C"
20295#endif
20296char opendir ();
20297int
20298main ()
20299{
20300return opendir ();
20301 ;
20302 return 0;
20303}
20304_ACEOF
20305for ac_lib in '' x; do
20306 if test -z "$ac_lib"; then
20307 ac_res="none required"
20308 else
20309 ac_res=-l$ac_lib
20310 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20311 fi
cristy8b350f62009-11-15 23:12:43 +000020312 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020313 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020314fi
cristy8b350f62009-11-15 23:12:43 +000020315rm -f core conftest.err conftest.$ac_objext \
20316 conftest$ac_exeext
20317 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020318 break
20319fi
20320done
cristy8b350f62009-11-15 23:12:43 +000020321if test "${ac_cv_search_opendir+set}" = set; then :
20322
cristy3ed852e2009-09-05 21:47:34 +000020323else
20324 ac_cv_search_opendir=no
20325fi
20326rm conftest.$ac_ext
20327LIBS=$ac_func_search_save_LIBS
20328fi
cristy8b350f62009-11-15 23:12:43 +000020329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020330$as_echo "$ac_cv_search_opendir" >&6; }
20331ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020332if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020333 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20334
20335fi
20336
20337fi
20338
20339
20340# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020341for 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 +000020342do :
20343 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20344ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyfd9dcd42010-08-08 18:07:02 +000020345if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000020346 cat >>confdefs.h <<_ACEOF
20347#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20348_ACEOF
20349
20350fi
20351
20352done
20353
20354
20355########
20356#
20357# Checks for typedefs, structures, and compiler characteristics.
20358#
20359########
20360
cristy8b350f62009-11-15 23:12:43 +000020361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020362$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020363if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020364 $as_echo_n "(cached) " >&6
20365else
cristy8b350f62009-11-15 23:12:43 +000020366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020367/* end confdefs.h. */
20368
20369#include <stdbool.h>
20370#ifndef bool
20371 "error: bool is not defined"
20372#endif
20373#ifndef false
20374 "error: false is not defined"
20375#endif
20376#if false
20377 "error: false is not 0"
20378#endif
20379#ifndef true
20380 "error: true is not defined"
20381#endif
20382#if true != 1
20383 "error: true is not 1"
20384#endif
20385#ifndef __bool_true_false_are_defined
20386 "error: __bool_true_false_are_defined is not defined"
20387#endif
20388
20389 struct s { _Bool s: 1; _Bool t; } s;
20390
20391 char a[true == 1 ? 1 : -1];
20392 char b[false == 0 ? 1 : -1];
20393 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20394 char d[(bool) 0.5 == true ? 1 : -1];
20395 bool e = &s;
20396 char f[(_Bool) 0.0 == false ? 1 : -1];
20397 char g[true];
20398 char h[sizeof (_Bool)];
20399 char i[sizeof s.t];
20400 enum { j = false, k = true, l = false * true, m = true * 256 };
20401 /* The following fails for
20402 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20403 _Bool n[m];
20404 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20405 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20406# if defined __xlc__ || defined __GNUC__
20407 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20408 reported by James Lemley on 2005-10-05; see
20409 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20410 This test is not quite right, since xlc is allowed to
20411 reject this program, as the initializer for xlcbug is
20412 not one of the forms that C requires support for.
20413 However, doing the test right would require a runtime
20414 test, and that would make cross-compilation harder.
20415 Let us hope that IBM fixes the xlc bug, and also adds
20416 support for this kind of constant expression. In the
20417 meantime, this test will reject xlc, which is OK, since
20418 our stdbool.h substitute should suffice. We also test
20419 this with GCC, where it should work, to detect more
20420 quickly whether someone messes up the test in the
20421 future. */
20422 char digs[] = "0123456789";
20423 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20424# endif
20425 /* Catch a bug in an HP-UX C compiler. See
20426 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20427 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20428 */
20429 _Bool q = true;
20430 _Bool *pq = &q;
20431
20432int
20433main ()
20434{
20435
20436 *pq |= q;
20437 *pq |= ! q;
20438 /* Refer to every declared value, to avoid compiler optimizations. */
20439 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20440 + !m + !n + !o + !p + !q + !pq);
20441
20442 ;
20443 return 0;
20444}
20445_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020446if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020447 ac_cv_header_stdbool_h=yes
20448else
cristy8b350f62009-11-15 23:12:43 +000020449 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000020450fi
cristy3ed852e2009-09-05 21:47:34 +000020451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20452fi
cristy8b350f62009-11-15 23:12:43 +000020453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000020454$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020455ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20456if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020457
20458cat >>confdefs.h <<_ACEOF
20459#define HAVE__BOOL 1
20460_ACEOF
20461
20462
20463fi
20464
20465if test $ac_cv_header_stdbool_h = yes; then
20466
cristy8b350f62009-11-15 23:12:43 +000020467$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020468
20469fi
20470
cristy8b350f62009-11-15 23:12:43 +000020471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020472$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020473if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020474 $as_echo_n "(cached) " >&6
20475else
cristy8b350f62009-11-15 23:12:43 +000020476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020477/* end confdefs.h. */
20478
20479int
20480main ()
20481{
20482
20483volatile int x;
20484int * volatile y = (int *) 0;
20485return !x && !y;
20486 ;
20487 return 0;
20488}
20489_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020490if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020491 ac_cv_c_volatile=yes
20492else
cristy8b350f62009-11-15 23:12:43 +000020493 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000020494fi
cristy3ed852e2009-09-05 21:47:34 +000020495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20496fi
cristy8b350f62009-11-15 23:12:43 +000020497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020498$as_echo "$ac_cv_c_volatile" >&6; }
20499if test $ac_cv_c_volatile = no; then
20500
cristy8b350f62009-11-15 23:12:43 +000020501$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020502
20503fi
20504
cristy8b350f62009-11-15 23:12:43 +000020505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000020506$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020507if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020508 $as_echo_n "(cached) " >&6
20509else
cristy8b350f62009-11-15 23:12:43 +000020510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020511/* end confdefs.h. */
20512#define x(y) #y
20513
20514char *s = x(teststring);
20515_ACEOF
20516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020517 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020518 ac_cv_c_stringize=no
20519else
20520 ac_cv_c_stringize=yes
20521fi
20522rm -f conftest*
20523
20524fi
cristy8b350f62009-11-15 23:12:43 +000020525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000020526$as_echo "$ac_cv_c_stringize" >&6; }
20527if test $ac_cv_c_stringize = yes; then
20528
cristy8b350f62009-11-15 23:12:43 +000020529$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020530
20531fi
20532
cristy8b350f62009-11-15 23:12:43 +000020533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020534$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020535if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020536 $as_echo_n "(cached) " >&6
20537else
cristy8b350f62009-11-15 23:12:43 +000020538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020539/* end confdefs.h. */
20540#include <sys/types.h>
20541#include <sys/stat.h>
20542
20543#if defined S_ISBLK && defined S_IFDIR
20544extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20545#endif
20546
20547#if defined S_ISBLK && defined S_IFCHR
20548extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20549#endif
20550
20551#if defined S_ISLNK && defined S_IFREG
20552extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20553#endif
20554
20555#if defined S_ISSOCK && defined S_IFREG
20556extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20557#endif
20558
20559_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020560if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020561 ac_cv_header_stat_broken=no
20562else
cristy8b350f62009-11-15 23:12:43 +000020563 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000020564fi
cristy3ed852e2009-09-05 21:47:34 +000020565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20566fi
cristy8b350f62009-11-15 23:12:43 +000020567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020568$as_echo "$ac_cv_header_stat_broken" >&6; }
20569if test $ac_cv_header_stat_broken = yes; then
20570
cristy8b350f62009-11-15 23:12:43 +000020571$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020572
20573fi
20574
cristy8b350f62009-11-15 23:12:43 +000020575{ $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 +000020576$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020577if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020578 $as_echo_n "(cached) " >&6
20579else
cristy8b350f62009-11-15 23:12:43 +000020580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020581/* end confdefs.h. */
20582#include <sys/types.h>
20583#include <sys/time.h>
20584#include <time.h>
20585
20586int
20587main ()
20588{
20589if ((struct tm *) 0)
20590return 0;
20591 ;
20592 return 0;
20593}
20594_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020595if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020596 ac_cv_header_time=yes
20597else
cristy8b350f62009-11-15 23:12:43 +000020598 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000020599fi
cristy3ed852e2009-09-05 21:47:34 +000020600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20601fi
cristy8b350f62009-11-15 23:12:43 +000020602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000020603$as_echo "$ac_cv_header_time" >&6; }
20604if test $ac_cv_header_time = yes; then
20605
cristy8b350f62009-11-15 23:12:43 +000020606$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020607
20608fi
20609
cristy8b350f62009-11-15 23:12:43 +000020610{ $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 +000020611$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020612if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020613 $as_echo_n "(cached) " >&6
20614else
cristy8b350f62009-11-15 23:12:43 +000020615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020616/* end confdefs.h. */
20617#include <sys/types.h>
20618#include <time.h>
20619
20620int
20621main ()
20622{
20623struct tm tm;
20624 int *p = &tm.tm_sec;
20625 return !p;
20626 ;
20627 return 0;
20628}
20629_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020630if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020631 ac_cv_struct_tm=time.h
20632else
cristy8b350f62009-11-15 23:12:43 +000020633 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000020634fi
cristy3ed852e2009-09-05 21:47:34 +000020635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20636fi
cristy8b350f62009-11-15 23:12:43 +000020637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000020638$as_echo "$ac_cv_struct_tm" >&6; }
20639if test $ac_cv_struct_tm = sys/time.h; then
20640
cristy8b350f62009-11-15 23:12:43 +000020641$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020642
20643fi
20644
cristy92703d82010-04-26 00:18:18 +000020645ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
20646#include <$ac_cv_struct_tm>
20647
20648"
20649if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
20650
20651cat >>confdefs.h <<_ACEOF
20652#define HAVE_STRUCT_TM_TM_ZONE 1
20653_ACEOF
20654
20655
20656fi
20657
20658if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20659
20660$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
20661
20662else
20663 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
20664"
20665if test "x$ac_cv_have_decl_tzname" = x""yes; then :
20666 ac_have_decl=1
20667else
20668 ac_have_decl=0
20669fi
20670
20671cat >>confdefs.h <<_ACEOF
20672#define HAVE_DECL_TZNAME $ac_have_decl
20673_ACEOF
20674
20675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
20676$as_echo_n "checking for tzname... " >&6; }
20677if test "${ac_cv_var_tzname+set}" = set; then :
20678 $as_echo_n "(cached) " >&6
20679else
20680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20681/* end confdefs.h. */
20682#include <time.h>
20683#if !HAVE_DECL_TZNAME
20684extern char *tzname[];
20685#endif
20686
20687int
20688main ()
20689{
20690return tzname[0][0];
20691 ;
20692 return 0;
20693}
20694_ACEOF
20695if ac_fn_c_try_link "$LINENO"; then :
20696 ac_cv_var_tzname=yes
20697else
20698 ac_cv_var_tzname=no
20699fi
20700rm -f core conftest.err conftest.$ac_objext \
20701 conftest$ac_exeext conftest.$ac_ext
20702fi
20703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
20704$as_echo "$ac_cv_var_tzname" >&6; }
20705 if test $ac_cv_var_tzname = yes; then
20706
20707$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
20708
20709 fi
20710fi
20711
cristy8b350f62009-11-15 23:12:43 +000020712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000020713$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020714if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020715 $as_echo_n "(cached) " >&6
20716else
20717 echo '#! /bin/cat
20718exit 69
20719' >conftest
20720chmod u+x conftest
20721(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
20722if test $? -ne 69; then
20723 ac_cv_sys_interpreter=yes
20724else
20725 ac_cv_sys_interpreter=no
20726fi
20727rm -f conftest
20728fi
cristy8b350f62009-11-15 23:12:43 +000020729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000020730$as_echo "$ac_cv_sys_interpreter" >&6; }
20731interpval=$ac_cv_sys_interpreter
20732
20733
cristy3ed852e2009-09-05 21:47:34 +000020734# If the C compiler supports the keyword inline, do nothing. Otherwise
20735# define inline to __inline__ or __inline if it accepts one of those,
20736# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000020737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000020738$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020739if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020740 $as_echo_n "(cached) " >&6
20741else
20742 ac_cv_c_inline=no
20743for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000020744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020745/* end confdefs.h. */
20746#ifndef __cplusplus
20747typedef int foo_t;
20748static $ac_kw foo_t static_foo () {return 0; }
20749$ac_kw foo_t foo () {return 0; }
20750#endif
20751
20752_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020753if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020754 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000020755fi
cristy3ed852e2009-09-05 21:47:34 +000020756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20757 test "$ac_cv_c_inline" != no && break
20758done
20759
20760fi
cristy8b350f62009-11-15 23:12:43 +000020761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000020762$as_echo "$ac_cv_c_inline" >&6; }
20763
cristy3ed852e2009-09-05 21:47:34 +000020764case $ac_cv_c_inline in
20765 inline | yes) ;;
20766 *)
20767 case $ac_cv_c_inline in
20768 no) ac_val=;;
20769 *) ac_val=$ac_cv_c_inline;;
20770 esac
20771 cat >>confdefs.h <<_ACEOF
20772#ifndef __cplusplus
20773#define inline $ac_val
20774#endif
20775_ACEOF
20776 ;;
20777esac
20778
20779
20780# If the C compiler supports the keyword restrict, do nothing. Otherwise
20781# define restrict to __restrict__ or __restrict if it accepts one of those,
20782# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000020783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000020784$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020785if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020786 $as_echo_n "(cached) " >&6
20787else
20788 ac_cv_c_restrict=no
20789 # The order here caters to the fact that C++ does not require restrict.
20790 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000020791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020792/* end confdefs.h. */
20793typedef int * int_ptr;
20794 int foo (int_ptr $ac_kw ip) {
20795 return ip[0];
20796 }
20797int
20798main ()
20799{
20800int s[1];
20801 int * $ac_kw t = s;
20802 t[0] = 0;
20803 return foo(t)
20804 ;
20805 return 0;
20806}
20807_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020808if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020809 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000020810fi
cristy3ed852e2009-09-05 21:47:34 +000020811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20812 test "$ac_cv_c_restrict" != no && break
20813 done
20814
20815fi
cristy8b350f62009-11-15 23:12:43 +000020816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000020817$as_echo "$ac_cv_c_restrict" >&6; }
20818
cristy3ed852e2009-09-05 21:47:34 +000020819 case $ac_cv_c_restrict in
20820 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000020821 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020822 ;;
20823 *) cat >>confdefs.h <<_ACEOF
20824#define restrict $ac_cv_c_restrict
20825_ACEOF
20826 ;;
20827 esac
20828
20829
20830# If words are stored with the most significant byte first (like
20831# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000020832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000020833$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020834if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020835 $as_echo_n "(cached) " >&6
20836else
20837 ac_cv_c_bigendian=unknown
20838 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000020839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020840/* end confdefs.h. */
20841#ifndef __APPLE_CC__
20842 not a universal capable compiler
20843 #endif
20844 typedef int dummy;
20845
20846_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020847if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020848
20849 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000020850 # there are at least two -arch flags with different values.
20851 ac_arch=
20852 ac_prev=
20853 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20854 if test -n "$ac_prev"; then
20855 case $ac_word in
20856 i?86 | x86_64 | ppc | ppc64)
20857 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20858 ac_arch=$ac_word
20859 else
20860 ac_cv_c_bigendian=universal
20861 break
20862 fi
20863 ;;
20864 esac
20865 ac_prev=
20866 elif test "x$ac_word" = "x-arch"; then
20867 ac_prev=arch
20868 fi
20869 done
cristy3ed852e2009-09-05 21:47:34 +000020870fi
cristy3ed852e2009-09-05 21:47:34 +000020871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20872 if test $ac_cv_c_bigendian = unknown; then
20873 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000020874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020875/* end confdefs.h. */
20876#include <sys/types.h>
20877 #include <sys/param.h>
20878
20879int
20880main ()
20881{
20882#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20883 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20884 && LITTLE_ENDIAN)
20885 bogus endian macros
20886 #endif
20887
20888 ;
20889 return 0;
20890}
20891_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020892if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020893 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000020894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020895/* end confdefs.h. */
20896#include <sys/types.h>
20897 #include <sys/param.h>
20898
20899int
20900main ()
20901{
20902#if BYTE_ORDER != BIG_ENDIAN
20903 not big endian
20904 #endif
20905
20906 ;
20907 return 0;
20908}
20909_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020910if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020911 ac_cv_c_bigendian=yes
20912else
cristy8b350f62009-11-15 23:12:43 +000020913 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000020914fi
cristy3ed852e2009-09-05 21:47:34 +000020915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020916fi
cristy3ed852e2009-09-05 21:47:34 +000020917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20918 fi
20919 if test $ac_cv_c_bigendian = unknown; then
20920 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000020921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020922/* end confdefs.h. */
20923#include <limits.h>
20924
20925int
20926main ()
20927{
20928#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20929 bogus endian macros
20930 #endif
20931
20932 ;
20933 return 0;
20934}
20935_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020936if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020937 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000020938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020939/* end confdefs.h. */
20940#include <limits.h>
20941
20942int
20943main ()
20944{
20945#ifndef _BIG_ENDIAN
20946 not big endian
20947 #endif
20948
20949 ;
20950 return 0;
20951}
20952_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020953if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020954 ac_cv_c_bigendian=yes
20955else
cristy8b350f62009-11-15 23:12:43 +000020956 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000020957fi
cristy3ed852e2009-09-05 21:47:34 +000020958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020959fi
cristy3ed852e2009-09-05 21:47:34 +000020960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20961 fi
20962 if test $ac_cv_c_bigendian = unknown; then
20963 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000020964 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020965 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000020966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020967/* end confdefs.h. */
20968short int ascii_mm[] =
20969 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20970 short int ascii_ii[] =
20971 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20972 int use_ascii (int i) {
20973 return ascii_mm[i] + ascii_ii[i];
20974 }
20975 short int ebcdic_ii[] =
20976 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20977 short int ebcdic_mm[] =
20978 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20979 int use_ebcdic (int i) {
20980 return ebcdic_mm[i] + ebcdic_ii[i];
20981 }
20982 extern int foo;
20983
20984int
20985main ()
20986{
20987return use_ascii (foo) == use_ebcdic (foo);
20988 ;
20989 return 0;
20990}
20991_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020992if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020993 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20994 ac_cv_c_bigendian=yes
20995 fi
20996 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20997 if test "$ac_cv_c_bigendian" = unknown; then
20998 ac_cv_c_bigendian=no
20999 else
21000 # finding both strings is unlikely to happen, but who knows?
21001 ac_cv_c_bigendian=unknown
21002 fi
21003 fi
cristy3ed852e2009-09-05 21:47:34 +000021004fi
cristy3ed852e2009-09-05 21:47:34 +000021005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21006else
cristy8b350f62009-11-15 23:12:43 +000021007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021008/* end confdefs.h. */
21009$ac_includes_default
21010int
21011main ()
21012{
21013
21014 /* Are we little or big endian? From Harbison&Steele. */
21015 union
21016 {
21017 long int l;
21018 char c[sizeof (long int)];
21019 } u;
21020 u.l = 1;
21021 return u.c[sizeof (long int) - 1] == 1;
21022
21023 ;
21024 return 0;
21025}
21026_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021027if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021028 ac_cv_c_bigendian=no
21029else
cristy8b350f62009-11-15 23:12:43 +000021030 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000021031fi
cristy8b350f62009-11-15 23:12:43 +000021032rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21033 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021034fi
21035
cristy3ed852e2009-09-05 21:47:34 +000021036 fi
21037fi
cristy8b350f62009-11-15 23:12:43 +000021038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021039$as_echo "$ac_cv_c_bigendian" >&6; }
21040 case $ac_cv_c_bigendian in #(
21041 yes)
cristy8b350f62009-11-15 23:12:43 +000021042 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021043;; #(
21044 no)
21045 ;; #(
21046 universal)
21047
cristy8b350f62009-11-15 23:12:43 +000021048$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021049
21050 ;; #(
21051 *)
cristyfd9dcd42010-08-08 18:07:02 +000021052 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000021053 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021054 esac
21055
21056
21057# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021058ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21059if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021060
cristy3ed852e2009-09-05 21:47:34 +000021061else
21062
21063cat >>confdefs.h <<_ACEOF
21064#define mode_t int
21065_ACEOF
21066
21067fi
21068
21069
21070# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021071ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21072if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021073
cristy3ed852e2009-09-05 21:47:34 +000021074else
21075
21076cat >>confdefs.h <<_ACEOF
21077#define off_t long int
21078_ACEOF
21079
21080fi
21081
21082
21083# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021084ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21085if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021086
cristy3ed852e2009-09-05 21:47:34 +000021087else
21088
21089cat >>confdefs.h <<_ACEOF
21090#define pid_t int
21091_ACEOF
21092
21093fi
21094
21095
21096# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021097ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21098if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021099
cristy3ed852e2009-09-05 21:47:34 +000021100else
21101
21102cat >>confdefs.h <<_ACEOF
21103#define size_t unsigned int
21104_ACEOF
21105
21106fi
21107
21108
21109# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021110ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21111if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021112
cristy3ed852e2009-09-05 21:47:34 +000021113else
21114
21115cat >>confdefs.h <<_ACEOF
21116#define ssize_t int
21117_ACEOF
21118
21119fi
21120
21121
21122# If the C compiler supports a working long double type with more range
21123# or precision than the double type, define HAVE_LONG_DOUBLE.
21124
cristy8b350f62009-11-15 23:12:43 +000021125 { $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 +000021126$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021127if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021128 $as_echo_n "(cached) " >&6
21129else
cristy8b350f62009-11-15 23:12:43 +000021130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021131/* end confdefs.h. */
21132#include <float.h>
21133 long double const a[] =
21134 {
21135 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21136 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21137 };
21138 long double
21139 f (long double x)
21140 {
21141 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21142 + (x ? f (x) : 'c'));
21143 }
21144
21145int
21146main ()
21147{
21148static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21149 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21150 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21151 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21152 && (int) LDBL_EPSILON == 0
21153 )];
21154test_array [0] = 0
21155
21156 ;
21157 return 0;
21158}
21159_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021160if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021161 ac_cv_type_long_double_wider=yes
21162else
cristy8b350f62009-11-15 23:12:43 +000021163 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000021164fi
cristy3ed852e2009-09-05 21:47:34 +000021165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21166fi
cristy8b350f62009-11-15 23:12:43 +000021167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000021168$as_echo "$ac_cv_type_long_double_wider" >&6; }
21169 if test $ac_cv_type_long_double_wider = yes; then
21170
cristy8b350f62009-11-15 23:12:43 +000021171$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021172
21173 fi
21174
21175
21176# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21177# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000021178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021179$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021180if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021181 $as_echo_n "(cached) " >&6
21182else
cristy8b350f62009-11-15 23:12:43 +000021183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021184/* end confdefs.h. */
21185$ac_includes_default
21186int
21187main ()
21188{
21189static int test_array [1 - 2 * !(((char) -1) < 0)];
21190test_array [0] = 0
21191
21192 ;
21193 return 0;
21194}
21195_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021196if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021197 ac_cv_c_char_unsigned=no
21198else
cristy8b350f62009-11-15 23:12:43 +000021199 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000021200fi
cristy3ed852e2009-09-05 21:47:34 +000021201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21202fi
cristy8b350f62009-11-15 23:12:43 +000021203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021204$as_echo "$ac_cv_c_char_unsigned" >&6; }
21205if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000021206 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021207
21208fi
21209
21210
21211# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21212# The cast to long int works around a bug in the HP C Compiler
21213# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21214# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21215# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021217$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021218if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021219 $as_echo_n "(cached) " >&6
21220else
cristy8b350f62009-11-15 23:12:43 +000021221 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 +000021222
cristy3ed852e2009-09-05 21:47:34 +000021223else
cristy8b350f62009-11-15 23:12:43 +000021224 if test "$ac_cv_type_signed_short" = yes; then
21225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021227as_fn_error 77 "cannot compute sizeof (signed short)
21228See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021229 else
21230 ac_cv_sizeof_signed_short=0
21231 fi
21232fi
cristy8b350f62009-11-15 23:12:43 +000021233
cristy3ed852e2009-09-05 21:47:34 +000021234fi
cristy8b350f62009-11-15 23:12:43 +000021235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021236$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21237
21238
21239
21240cat >>confdefs.h <<_ACEOF
21241#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21242_ACEOF
21243
21244
21245
21246# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21247# The cast to long int works around a bug in the HP C Compiler
21248# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21249# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21250# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021252$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021253if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021254 $as_echo_n "(cached) " >&6
21255else
cristy8b350f62009-11-15 23:12:43 +000021256 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 +000021257
cristy3ed852e2009-09-05 21:47:34 +000021258else
cristy8b350f62009-11-15 23:12:43 +000021259 if test "$ac_cv_type_unsigned_short" = yes; then
21260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021262as_fn_error 77 "cannot compute sizeof (unsigned short)
21263See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021264 else
21265 ac_cv_sizeof_unsigned_short=0
21266 fi
21267fi
cristy8b350f62009-11-15 23:12:43 +000021268
cristy3ed852e2009-09-05 21:47:34 +000021269fi
cristy8b350f62009-11-15 23:12:43 +000021270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021271$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21272
21273
21274
21275cat >>confdefs.h <<_ACEOF
21276#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21277_ACEOF
21278
21279
21280
21281# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21282# The cast to long int works around a bug in the HP C Compiler
21283# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21284# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21285# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021287$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021288if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021289 $as_echo_n "(cached) " >&6
21290else
cristy8b350f62009-11-15 23:12:43 +000021291 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 +000021292
cristy3ed852e2009-09-05 21:47:34 +000021293else
cristy8b350f62009-11-15 23:12:43 +000021294 if test "$ac_cv_type_signed_int" = yes; then
21295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021296$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021297as_fn_error 77 "cannot compute sizeof (signed int)
21298See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021299 else
21300 ac_cv_sizeof_signed_int=0
21301 fi
21302fi
cristy8b350f62009-11-15 23:12:43 +000021303
cristy3ed852e2009-09-05 21:47:34 +000021304fi
cristy8b350f62009-11-15 23:12:43 +000021305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021306$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21307
21308
21309
21310cat >>confdefs.h <<_ACEOF
21311#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21312_ACEOF
21313
21314
21315
21316# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21317# The cast to long int works around a bug in the HP C Compiler
21318# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21319# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21320# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021322$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021323if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021324 $as_echo_n "(cached) " >&6
21325else
cristy8b350f62009-11-15 23:12:43 +000021326 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 +000021327
cristy3ed852e2009-09-05 21:47:34 +000021328else
cristy8b350f62009-11-15 23:12:43 +000021329 if test "$ac_cv_type_unsigned_int" = yes; then
21330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021331$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021332as_fn_error 77 "cannot compute sizeof (unsigned int)
21333See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021334 else
21335 ac_cv_sizeof_unsigned_int=0
21336 fi
21337fi
cristy8b350f62009-11-15 23:12:43 +000021338
cristy3ed852e2009-09-05 21:47:34 +000021339fi
cristy8b350f62009-11-15 23:12:43 +000021340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021341$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21342
21343
21344
21345cat >>confdefs.h <<_ACEOF
21346#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21347_ACEOF
21348
21349
21350
21351# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21352# The cast to long int works around a bug in the HP C Compiler
21353# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21354# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21355# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021357$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021358if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021359 $as_echo_n "(cached) " >&6
21360else
cristy8b350f62009-11-15 23:12:43 +000021361 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 +000021362
cristy3ed852e2009-09-05 21:47:34 +000021363else
cristy8b350f62009-11-15 23:12:43 +000021364 if test "$ac_cv_type_signed_long" = yes; then
21365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021367as_fn_error 77 "cannot compute sizeof (signed long)
21368See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021369 else
21370 ac_cv_sizeof_signed_long=0
21371 fi
21372fi
cristy8b350f62009-11-15 23:12:43 +000021373
cristy3ed852e2009-09-05 21:47:34 +000021374fi
cristy8b350f62009-11-15 23:12:43 +000021375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021376$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21377
21378
21379
21380cat >>confdefs.h <<_ACEOF
21381#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21382_ACEOF
21383
21384
21385
21386# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21387# The cast to long int works around a bug in the HP C Compiler
21388# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21389# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21390# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021392$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021393if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021394 $as_echo_n "(cached) " >&6
21395else
cristy8b350f62009-11-15 23:12:43 +000021396 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 +000021397
cristy3ed852e2009-09-05 21:47:34 +000021398else
cristy8b350f62009-11-15 23:12:43 +000021399 if test "$ac_cv_type_unsigned_long" = yes; then
21400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021402as_fn_error 77 "cannot compute sizeof (unsigned long)
21403See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021404 else
21405 ac_cv_sizeof_unsigned_long=0
21406 fi
21407fi
cristy8b350f62009-11-15 23:12:43 +000021408
cristy3ed852e2009-09-05 21:47:34 +000021409fi
cristy8b350f62009-11-15 23:12:43 +000021410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021411$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21412
21413
21414
21415cat >>confdefs.h <<_ACEOF
21416#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21417_ACEOF
21418
21419
21420
21421# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21422# 'signed long long' is not supported then the value defined is zero.
21423# The cast to long int works around a bug in the HP C Compiler
21424# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21425# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21426# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021428$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021429if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021430 $as_echo_n "(cached) " >&6
21431else
cristy8b350f62009-11-15 23:12:43 +000021432 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 +000021433
cristy3ed852e2009-09-05 21:47:34 +000021434else
cristy8b350f62009-11-15 23:12:43 +000021435 if test "$ac_cv_type_signed_long_long" = yes; then
21436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021438as_fn_error 77 "cannot compute sizeof (signed long long)
21439See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021440 else
21441 ac_cv_sizeof_signed_long_long=0
21442 fi
21443fi
cristy8b350f62009-11-15 23:12:43 +000021444
cristy3ed852e2009-09-05 21:47:34 +000021445fi
cristy8b350f62009-11-15 23:12:43 +000021446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021447$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21448
21449
21450
21451cat >>confdefs.h <<_ACEOF
21452#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21453_ACEOF
21454
21455
21456
21457# Obtain size of a 'unsigned long long' and define as
21458# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21459# supported then the value defined is zero.
21460# The cast to long int works around a bug in the HP C Compiler
21461# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21462# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21463# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021465$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021466if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021467 $as_echo_n "(cached) " >&6
21468else
cristy8b350f62009-11-15 23:12:43 +000021469 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 +000021470
cristy3ed852e2009-09-05 21:47:34 +000021471else
cristy8b350f62009-11-15 23:12:43 +000021472 if test "$ac_cv_type_unsigned_long_long" = yes; then
21473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021475as_fn_error 77 "cannot compute sizeof (unsigned long long)
21476See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021477 else
21478 ac_cv_sizeof_unsigned_long_long=0
21479 fi
21480fi
cristy8b350f62009-11-15 23:12:43 +000021481
cristy3ed852e2009-09-05 21:47:34 +000021482fi
cristy8b350f62009-11-15 23:12:43 +000021483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021484$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21485
21486
21487
21488cat >>confdefs.h <<_ACEOF
21489#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21490_ACEOF
21491
21492
21493
21494# Obtain size of off_t and define as SIZEOF_OFF_T
21495# The cast to long int works around a bug in the HP C Compiler
21496# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21497# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21498# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021500$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021501if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021502 $as_echo_n "(cached) " >&6
21503else
cristy8b350f62009-11-15 23:12:43 +000021504 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 +000021505
cristy3ed852e2009-09-05 21:47:34 +000021506else
cristy8b350f62009-11-15 23:12:43 +000021507 if test "$ac_cv_type_off_t" = yes; then
21508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021510as_fn_error 77 "cannot compute sizeof (off_t)
21511See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021512 else
21513 ac_cv_sizeof_off_t=0
21514 fi
21515fi
cristy8b350f62009-11-15 23:12:43 +000021516
cristy3ed852e2009-09-05 21:47:34 +000021517fi
cristy8b350f62009-11-15 23:12:43 +000021518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021519$as_echo "$ac_cv_sizeof_off_t" >&6; }
21520
21521
21522
21523cat >>confdefs.h <<_ACEOF
21524#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21525_ACEOF
21526
21527
21528
21529# Obtain size of size_t and define as SIZEOF_SIZE_T
21530# The cast to long int works around a bug in the HP C Compiler
21531# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21532# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21533# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021535$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021536if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021537 $as_echo_n "(cached) " >&6
21538else
cristy8b350f62009-11-15 23:12:43 +000021539 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 +000021540
cristy3ed852e2009-09-05 21:47:34 +000021541else
cristy8b350f62009-11-15 23:12:43 +000021542 if test "$ac_cv_type_size_t" = yes; then
21543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021544$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021545as_fn_error 77 "cannot compute sizeof (size_t)
21546See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021547 else
21548 ac_cv_sizeof_size_t=0
21549 fi
21550fi
cristy8b350f62009-11-15 23:12:43 +000021551
cristy3ed852e2009-09-05 21:47:34 +000021552fi
cristy8b350f62009-11-15 23:12:43 +000021553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021554$as_echo "$ac_cv_sizeof_size_t" >&6; }
21555
21556
21557
21558cat >>confdefs.h <<_ACEOF
21559#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21560_ACEOF
21561
21562
21563
cristy330e9352010-06-01 18:42:49 +000021564# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
21565# The cast to long int works around a bug in the HP C Compiler
21566# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21567# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21568# This bug is HP SR number 8606223364.
21569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
21570$as_echo_n "checking size of ssize_t... " >&6; }
21571if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
21572 $as_echo_n "(cached) " >&6
21573else
21574 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
21575
21576else
21577 if test "$ac_cv_type_ssize_t" = yes; then
21578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021580as_fn_error 77 "cannot compute sizeof (ssize_t)
21581See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000021582 else
21583 ac_cv_sizeof_ssize_t=0
21584 fi
21585fi
21586
21587fi
21588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
21589$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
21590
21591
21592
21593cat >>confdefs.h <<_ACEOF
21594#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
21595_ACEOF
21596
21597
21598
cristy3ed852e2009-09-05 21:47:34 +000021599# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
21600# The cast to long int works around a bug in the HP C Compiler
21601# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21602# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21603# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000021605$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021606if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021607 $as_echo_n "(cached) " >&6
21608else
cristy8b350f62009-11-15 23:12:43 +000021609 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 +000021610
cristy3ed852e2009-09-05 21:47:34 +000021611else
cristy8b350f62009-11-15 23:12:43 +000021612 if test "$ac_cv_type_unsigned_intp" = yes; then
21613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021615as_fn_error 77 "cannot compute sizeof (unsigned int*)
21616See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021617 else
21618 ac_cv_sizeof_unsigned_intp=0
21619 fi
21620fi
cristy8b350f62009-11-15 23:12:43 +000021621
cristy3ed852e2009-09-05 21:47:34 +000021622fi
cristy8b350f62009-11-15 23:12:43 +000021623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021624$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
21625
21626
21627
21628cat >>confdefs.h <<_ACEOF
21629#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
21630_ACEOF
21631
21632
21633
21634#
21635# Compute sized types for current CPU and compiler options.
21636#
21637
cristy8b350f62009-11-15 23:12:43 +000021638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021639$as_echo_n "checking for signed 8-bit type... " >&6; }
21640INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000021641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021642$as_echo "$INT8_T" >&6; }
21643
21644
cristy8b350f62009-11-15 23:12:43 +000021645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021646$as_echo_n "checking for unsigned 8-bit type... " >&6; }
21647UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000021648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021649$as_echo "$UINT8_T" >&6; }
21650
21651
cristy8b350f62009-11-15 23:12:43 +000021652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021653$as_echo_n "checking for signed 16-bit type... " >&6; }
21654INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000021655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021656$as_echo "$INT16_T" >&6; }
21657
21658
cristy8b350f62009-11-15 23:12:43 +000021659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021660$as_echo_n "checking for unsigned 16-bit type... " >&6; }
21661UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000021662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021663$as_echo "$UINT16_T" >&6; }
21664
21665
cristy8b350f62009-11-15 23:12:43 +000021666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021667$as_echo_n "checking for signed 32-bit type... " >&6; }
21668INT32_T='none'
21669if test $ac_cv_sizeof_signed_int -eq 4; then
21670 INT32_T='signed int'
21671elif test $ac_cv_sizeof_signed_long -eq 4; then
21672 INT32_T='signed long'
21673fi
cristy8b350f62009-11-15 23:12:43 +000021674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021675$as_echo "$INT32_T" >&6; }
21676
21677
cristy8b350f62009-11-15 23:12:43 +000021678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021679$as_echo_n "checking for unsigned 32-bit type... " >&6; }
21680UINT32_T='none'
21681if test $ac_cv_sizeof_unsigned_int -eq 4; then
21682 UINT32_T='unsigned int'
21683elif test $ac_cv_sizeof_unsigned_long -eq 4; then
21684 UINT32_T='unsigned long'
21685fi
cristy8b350f62009-11-15 23:12:43 +000021686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021687$as_echo "$UINT32_T" >&6; }
21688
21689
cristy8b350f62009-11-15 23:12:43 +000021690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021691$as_echo_n "checking for signed 64-bit type... " >&6; }
21692INT64_T='none'
21693if test $ac_cv_sizeof_signed_long -eq 8; then
21694 INT64_T='signed long'
21695elif test $ac_cv_sizeof_signed_long_long -eq 8; then
21696 INT64_T='signed long long'
21697fi
cristy8b350f62009-11-15 23:12:43 +000021698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021699$as_echo "$INT64_T" >&6; }
21700
21701
cristy8b350f62009-11-15 23:12:43 +000021702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021703$as_echo_n "checking for unsigned 64-bit type... " >&6; }
21704UINT64_T='none'
21705if test $ac_cv_sizeof_unsigned_long -eq 8; then
21706 UINT64_T='unsigned long'
21707elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
21708 UINT64_T='unsigned long long'
21709fi
cristy8b350f62009-11-15 23:12:43 +000021710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021711$as_echo "$UINT64_T" >&6; }
21712
21713
cristy8b350f62009-11-15 23:12:43 +000021714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021715$as_echo_n "checking for unsigned maximum type... " >&6; }
21716UINTMAX_T='none'
21717if test "$UINT64_T" != 'none'; then
21718 UINTMAX_T=$UINT64_T
21719elif test "$UINT32_T" != 'none'; then
21720 UINTMAX_T=$UINT32_T
21721fi
cristy8b350f62009-11-15 23:12:43 +000021722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021723$as_echo "$UINTMAX_T" >&6; }
21724
21725
cristy8b350f62009-11-15 23:12:43 +000021726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021727$as_echo_n "checking for pointer difference type... " >&6; }
21728UINTPTR_T='none'
21729if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
21730 UINTPTR_T='unsigned long'
21731elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
21732 UINTPTR_T='unsigned long long'
21733fi
cristy8b350f62009-11-15 23:12:43 +000021734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021735$as_echo "$UINTPTR_T" >&6; }
21736
21737
cristy8b350f62009-11-15 23:12:43 +000021738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000021739$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021741/* end confdefs.h. */
21742
21743int
21744main ()
21745{
21746{ const char *func = __func__; return(func != 0 ? 0 : 1); }
21747 ;
21748 return 0;
21749}
21750_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021751if ac_fn_c_try_compile "$LINENO"; then :
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000021753$as_echo "yes" >&6; }
21754else
cristy8b350f62009-11-15 23:12:43 +000021755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000021756$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000021758$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021760/* end confdefs.h. */
21761
21762int
21763main ()
21764{
21765{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
21766 ;
21767 return 0;
21768}
21769_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021770if ac_fn_c_try_compile "$LINENO"; then :
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000021772$as_echo "yes" >&6; }
21773
cristy8b350f62009-11-15 23:12:43 +000021774$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021775
21776else
cristy8b350f62009-11-15 23:12:43 +000021777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000021778$as_echo "no" >&6; }
21779
cristy8b350f62009-11-15 23:12:43 +000021780$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021781
21782fi
cristy3ed852e2009-09-05 21:47:34 +000021783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21784fi
cristy3ed852e2009-09-05 21:47:34 +000021785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21786
21787########
21788#
21789# Check for functions
21790#
21791########
cristy3ed852e2009-09-05 21:47:34 +000021792for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000021793do :
21794 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21795ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyfd9dcd42010-08-08 18:07:02 +000021796if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021797 cat >>confdefs.h <<_ACEOF
21798#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21799_ACEOF
21800
21801fi
21802
21803done
21804
cristy3ed852e2009-09-05 21:47:34 +000021805for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000021806do :
21807 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21808if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021809 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021810#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000021811_ACEOF
21812
21813fi
21814done
21815
cristy8b350f62009-11-15 23:12:43 +000021816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000021817$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021818if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021819 $as_echo_n "(cached) " >&6
21820else
cristy8b350f62009-11-15 23:12:43 +000021821 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021822 magick_cv_func_mmap_fileio=no
21823else
cristy8b350f62009-11-15 23:12:43 +000021824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021825/* end confdefs.h. */
21826$ac_includes_default
21827/* malloc might have been renamed as rpl_malloc. */
21828#undef malloc
21829
21830/*
21831 This test is derived from GNU Autoconf's similar macro.
21832 The purpose of this test is to verify that files may be memory
21833 mapped, and that memory mapping and file I/O are coherent.
21834
21835 The test creates a test file, memory maps the file, updates
21836 the file using the memory map, and then reads the file using
21837 file I/O to verify that the file contains the updates.
21838*/
21839
21840#include <fcntl.h>
21841#include <sys/mman.h>
21842
21843#if !STDC_HEADERS && !HAVE_STDLIB_H
21844char *malloc ();
21845#endif
21846
21847/* This mess was copied from the GNU getpagesize.h. */
21848#if !HAVE_GETPAGESIZE
21849/* Assume that all systems that can run configure have sys/param.h. */
21850# if !HAVE_SYS_PARAM_H
21851# define HAVE_SYS_PARAM_H 1
21852# endif
21853
21854# ifdef _SC_PAGESIZE
21855# define getpagesize() sysconf(_SC_PAGESIZE)
21856# else /* no _SC_PAGESIZE */
21857# if HAVE_SYS_PARAM_H
21858# include <sys/param.h>
21859# ifdef EXEC_PAGESIZE
21860# define getpagesize() EXEC_PAGESIZE
21861# else /* no EXEC_PAGESIZE */
21862# ifdef NBPG
21863# define getpagesize() NBPG * CLSIZE
21864# ifndef CLSIZE
21865# define CLSIZE 1
21866# endif /* no CLSIZE */
21867# else /* no NBPG */
21868# ifdef NBPC
21869# define getpagesize() NBPC
21870# else /* no NBPC */
21871# ifdef PAGESIZE
21872# define getpagesize() PAGESIZE
21873# endif /* PAGESIZE */
21874# endif /* no NBPC */
21875# endif /* no NBPG */
21876# endif /* no EXEC_PAGESIZE */
21877# else /* no HAVE_SYS_PARAM_H */
21878# define getpagesize() 8192 /* punt totally */
21879# endif /* no HAVE_SYS_PARAM_H */
21880# endif /* no _SC_PAGESIZE */
21881
21882#endif /* no HAVE_GETPAGESIZE */
21883
21884int
21885main ()
21886{
21887 char *data, *data2, *data3;
21888 int i, pagesize;
21889 int fd;
21890
21891 pagesize = getpagesize ();
21892
21893 /* First, make a file with some known garbage in it. */
21894 data = (char *) malloc (pagesize);
21895 if (!data)
21896 exit (1);
21897 for (i = 0; i < pagesize; ++i)
21898 *(data + i) = rand ();
21899 umask (0);
21900 fd = creat ("conftest.mmap", 0600);
21901 if (fd < 0)
21902 exit (1);
21903 if (write (fd, data, pagesize) != pagesize)
21904 exit (1);
21905 close (fd);
21906
21907 /* Mmap the file as read/write/shared and verify that we see the
21908 same garbage. */
21909 fd = open ("conftest.mmap", O_RDWR);
21910 if (fd < 0)
21911 exit (1);
21912 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
21913 if (data2 == 0)
21914 exit (1);
21915 for (i = 0; i < pagesize; ++i)
21916 if (*(data + i) != *(data2 + i))
21917 exit (1);
21918
21919 /* Finally, make sure that changes to the mapped area
21920 percolate back to the file as seen by read(). */
21921 for (i = 0; i < pagesize; ++i)
21922 *(data2 + i) = *(data2 + i) + 1;
21923 data3 = (char *) malloc (pagesize);
21924 if (!data3)
21925 exit (1);
21926 if (read (fd, data3, pagesize) != pagesize)
21927 exit (1);
21928 for (i = 0; i < pagesize; ++i)
21929 if (*(data2 + i) != *(data3 + i))
21930 exit (1);
21931 close (fd);
21932 exit (0);
21933}
21934_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021935if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021936 magick_cv_func_mmap_fileio=yes
21937else
cristy8b350f62009-11-15 23:12:43 +000021938 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000021939fi
cristy8b350f62009-11-15 23:12:43 +000021940rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21941 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021942fi
21943
cristy3ed852e2009-09-05 21:47:34 +000021944fi
cristy8b350f62009-11-15 23:12:43 +000021945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000021946$as_echo "$magick_cv_func_mmap_fileio" >&6; }
21947if test $magick_cv_func_mmap_fileio = yes; then
21948
cristy8b350f62009-11-15 23:12:43 +000021949$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021950
21951fi
21952rm -f conftest.mmap
21953
cristy8b350f62009-11-15 23:12:43 +000021954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000021955$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021956if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021957 $as_echo_n "(cached) " >&6
21958else
cristy8b350f62009-11-15 23:12:43 +000021959 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021960 ac_cv_func_closedir_void=yes
21961else
cristy8b350f62009-11-15 23:12:43 +000021962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021963/* end confdefs.h. */
21964$ac_includes_default
21965#include <$ac_header_dirent>
21966#ifndef __cplusplus
21967int closedir ();
21968#endif
21969
21970int
21971main ()
21972{
21973return closedir (opendir (".")) != 0;
21974 ;
21975 return 0;
21976}
21977_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021978if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021979 ac_cv_func_closedir_void=no
21980else
cristy8b350f62009-11-15 23:12:43 +000021981 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000021982fi
cristy8b350f62009-11-15 23:12:43 +000021983rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21984 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021985fi
21986
cristy3ed852e2009-09-05 21:47:34 +000021987fi
cristy8b350f62009-11-15 23:12:43 +000021988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000021989$as_echo "$ac_cv_func_closedir_void" >&6; }
21990if test $ac_cv_func_closedir_void = yes; then
21991
cristy8b350f62009-11-15 23:12:43 +000021992$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021993
21994fi
21995
cristycd4c5312009-11-22 01:19:08 +000021996
21997
21998
21999 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000022000do :
22001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000022002ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22003"
cristyfd9dcd42010-08-08 18:07:02 +000022004if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022005 cat >>confdefs.h <<_ACEOF
22006#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22007_ACEOF
22008
22009fi
22010
22011done
22012
cristycd4c5312009-11-22 01:19:08 +000022013
22014
22015
22016
22017
22018
22019
cristy3ed852e2009-09-05 21:47:34 +000022020for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022021do :
22022 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22023if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022024 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022025#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022026_ACEOF
22027
22028fi
22029done
22030
cristy8b350f62009-11-15 23:12:43 +000022031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000022032$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022033if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022034 $as_echo_n "(cached) " >&6
22035else
cristy8b350f62009-11-15 23:12:43 +000022036 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022037 ac_cv_func_mmap_fixed_mapped=no
22038else
cristy8b350f62009-11-15 23:12:43 +000022039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022040/* end confdefs.h. */
22041$ac_includes_default
22042/* malloc might have been renamed as rpl_malloc. */
22043#undef malloc
22044
22045/* Thanks to Mike Haertel and Jim Avera for this test.
22046 Here is a matrix of mmap possibilities:
22047 mmap private not fixed
22048 mmap private fixed at somewhere currently unmapped
22049 mmap private fixed at somewhere already mapped
22050 mmap shared not fixed
22051 mmap shared fixed at somewhere currently unmapped
22052 mmap shared fixed at somewhere already mapped
22053 For private mappings, we should verify that changes cannot be read()
22054 back from the file, nor mmap's back from the file at a different
22055 address. (There have been systems where private was not correctly
22056 implemented like the infamous i386 svr4.0, and systems where the
22057 VM page cache was not coherent with the file system buffer cache
22058 like early versions of FreeBSD and possibly contemporary NetBSD.)
22059 For shared mappings, we should conversely verify that changes get
22060 propagated back to all the places they're supposed to be.
22061
22062 Grep wants private fixed already mapped.
22063 The main things grep needs to know about mmap are:
22064 * does it exist and is it safe to write into the mmap'd area
22065 * how to use it (BSD variants) */
22066
22067#include <fcntl.h>
22068#include <sys/mman.h>
22069
22070#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22071char *malloc ();
22072#endif
22073
22074/* This mess was copied from the GNU getpagesize.h. */
22075#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000022076# ifdef _SC_PAGESIZE
22077# define getpagesize() sysconf(_SC_PAGESIZE)
22078# else /* no _SC_PAGESIZE */
22079# ifdef HAVE_SYS_PARAM_H
22080# include <sys/param.h>
22081# ifdef EXEC_PAGESIZE
22082# define getpagesize() EXEC_PAGESIZE
22083# else /* no EXEC_PAGESIZE */
22084# ifdef NBPG
22085# define getpagesize() NBPG * CLSIZE
22086# ifndef CLSIZE
22087# define CLSIZE 1
22088# endif /* no CLSIZE */
22089# else /* no NBPG */
22090# ifdef NBPC
22091# define getpagesize() NBPC
22092# else /* no NBPC */
22093# ifdef PAGESIZE
22094# define getpagesize() PAGESIZE
22095# endif /* PAGESIZE */
22096# endif /* no NBPC */
22097# endif /* no NBPG */
22098# endif /* no EXEC_PAGESIZE */
22099# else /* no HAVE_SYS_PARAM_H */
22100# define getpagesize() 8192 /* punt totally */
22101# endif /* no HAVE_SYS_PARAM_H */
22102# endif /* no _SC_PAGESIZE */
22103
22104#endif /* no HAVE_GETPAGESIZE */
22105
22106int
22107main ()
22108{
22109 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000022110 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000022111 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000022112 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000022113
22114 pagesize = getpagesize ();
22115
22116 /* First, make a file with some known garbage in it. */
22117 data = (char *) malloc (pagesize);
22118 if (!data)
22119 return 1;
22120 for (i = 0; i < pagesize; ++i)
22121 *(data + i) = rand ();
22122 umask (0);
22123 fd = creat ("conftest.mmap", 0600);
22124 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022125 return 2;
cristy3ed852e2009-09-05 21:47:34 +000022126 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022127 return 3;
cristy3ed852e2009-09-05 21:47:34 +000022128 close (fd);
22129
cristycd4c5312009-11-22 01:19:08 +000022130 /* Next, check that the tail of a page is zero-filled. File must have
22131 non-zero length, otherwise we risk SIGBUS for entire page. */
22132 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22133 if (fd2 < 0)
22134 return 4;
cristyc54f5d42009-11-27 21:36:31 +000022135 cdata2 = "";
22136 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000022137 return 5;
cristyc54f5d42009-11-27 21:36:31 +000022138 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000022139 if (data2 == MAP_FAILED)
22140 return 6;
22141 for (i = 0; i < pagesize; ++i)
22142 if (*(data2 + i))
22143 return 7;
22144 close (fd2);
22145 if (munmap (data2, pagesize))
22146 return 8;
22147
cristy3ed852e2009-09-05 21:47:34 +000022148 /* Next, try to mmap the file at a fixed address which already has
22149 something else allocated at it. If we can, also make sure that
22150 we see the same garbage. */
22151 fd = open ("conftest.mmap", O_RDWR);
22152 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022153 return 9;
cristy3ed852e2009-09-05 21:47:34 +000022154 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22155 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000022156 return 10;
cristy3ed852e2009-09-05 21:47:34 +000022157 for (i = 0; i < pagesize; ++i)
22158 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000022159 return 11;
cristy3ed852e2009-09-05 21:47:34 +000022160
22161 /* Finally, make sure that changes to the mapped area do not
22162 percolate back to the file as seen by read(). (This is a bug on
22163 some variants of i386 svr4.0.) */
22164 for (i = 0; i < pagesize; ++i)
22165 *(data2 + i) = *(data2 + i) + 1;
22166 data3 = (char *) malloc (pagesize);
22167 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000022168 return 12;
cristy3ed852e2009-09-05 21:47:34 +000022169 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022170 return 13;
cristy3ed852e2009-09-05 21:47:34 +000022171 for (i = 0; i < pagesize; ++i)
22172 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000022173 return 14;
cristy3ed852e2009-09-05 21:47:34 +000022174 close (fd);
22175 return 0;
22176}
22177_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022178if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022179 ac_cv_func_mmap_fixed_mapped=yes
22180else
cristy8b350f62009-11-15 23:12:43 +000022181 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000022182fi
cristy8b350f62009-11-15 23:12:43 +000022183rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22184 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022185fi
22186
cristy3ed852e2009-09-05 21:47:34 +000022187fi
cristy8b350f62009-11-15 23:12:43 +000022188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000022189$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22190if test $ac_cv_func_mmap_fixed_mapped = yes; then
22191
cristy8b350f62009-11-15 23:12:43 +000022192$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022193
22194fi
cristycd4c5312009-11-22 01:19:08 +000022195rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000022196
cristy3ed852e2009-09-05 21:47:34 +000022197for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000022198do :
22199 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22200if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022201 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022202#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000022203_ACEOF
22204
22205fi
22206
22207done
22208
cristy3ed852e2009-09-05 21:47:34 +000022209for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000022210do :
22211 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22212ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000022213if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022214 cat >>confdefs.h <<_ACEOF
22215#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22216_ACEOF
22217
22218fi
22219done
22220
22221if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022223$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022224if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022225 $as_echo_n "(cached) " >&6
22226else
cristy8b350f62009-11-15 23:12:43 +000022227 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022228 ac_cv_func_fork_works=cross
22229else
cristy8b350f62009-11-15 23:12:43 +000022230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022231/* end confdefs.h. */
22232$ac_includes_default
22233int
22234main ()
22235{
22236
22237 /* By Ruediger Kuhlmann. */
22238 return fork () < 0;
22239
22240 ;
22241 return 0;
22242}
22243_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022244if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022245 ac_cv_func_fork_works=yes
22246else
cristy8b350f62009-11-15 23:12:43 +000022247 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022248fi
cristy8b350f62009-11-15 23:12:43 +000022249rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22250 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022251fi
22252
cristy3ed852e2009-09-05 21:47:34 +000022253fi
cristy8b350f62009-11-15 23:12:43 +000022254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022255$as_echo "$ac_cv_func_fork_works" >&6; }
22256
22257else
22258 ac_cv_func_fork_works=$ac_cv_func_fork
22259fi
22260if test "x$ac_cv_func_fork_works" = xcross; then
22261 case $host in
22262 *-*-amigaos* | *-*-msdosdjgpp*)
22263 # Override, as these systems have only a dummy fork() stub
22264 ac_cv_func_fork_works=no
22265 ;;
22266 *)
22267 ac_cv_func_fork_works=yes
22268 ;;
22269 esac
cristy8b350f62009-11-15 23:12:43 +000022270 { $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 +000022271$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22272fi
22273ac_cv_func_vfork_works=$ac_cv_func_vfork
22274if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022276$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022277if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022278 $as_echo_n "(cached) " >&6
22279else
cristy8b350f62009-11-15 23:12:43 +000022280 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022281 ac_cv_func_vfork_works=cross
22282else
cristy8b350f62009-11-15 23:12:43 +000022283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022284/* end confdefs.h. */
22285/* Thanks to Paul Eggert for this test. */
22286$ac_includes_default
22287#include <sys/wait.h>
22288#ifdef HAVE_VFORK_H
22289# include <vfork.h>
22290#endif
22291/* On some sparc systems, changes by the child to local and incoming
22292 argument registers are propagated back to the parent. The compiler
22293 is told about this with #include <vfork.h>, but some compilers
22294 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22295 static variable whose address is put into a register that is
22296 clobbered by the vfork. */
22297static void
22298#ifdef __cplusplus
22299sparc_address_test (int arg)
22300# else
22301sparc_address_test (arg) int arg;
22302#endif
22303{
22304 static pid_t child;
22305 if (!child) {
22306 child = vfork ();
22307 if (child < 0) {
22308 perror ("vfork");
22309 _exit(2);
22310 }
22311 if (!child) {
22312 arg = getpid();
22313 write(-1, "", 0);
22314 _exit (arg);
22315 }
22316 }
22317}
22318
22319int
22320main ()
22321{
22322 pid_t parent = getpid ();
22323 pid_t child;
22324
22325 sparc_address_test (0);
22326
22327 child = vfork ();
22328
22329 if (child == 0) {
22330 /* Here is another test for sparc vfork register problems. This
22331 test uses lots of local variables, at least as many local
22332 variables as main has allocated so far including compiler
22333 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22334 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22335 reuse the register of parent for one of the local variables,
22336 since it will think that parent can't possibly be used any more
22337 in this routine. Assigning to the local variable will thus
22338 munge parent in the parent process. */
22339 pid_t
22340 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22341 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22342 /* Convince the compiler that p..p7 are live; otherwise, it might
22343 use the same hardware register for all 8 local variables. */
22344 if (p != p1 || p != p2 || p != p3 || p != p4
22345 || p != p5 || p != p6 || p != p7)
22346 _exit(1);
22347
22348 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22349 from child file descriptors. If the child closes a descriptor
22350 before it execs or exits, this munges the parent's descriptor
22351 as well. Test for this by closing stdout in the child. */
22352 _exit(close(fileno(stdout)) != 0);
22353 } else {
22354 int status;
22355 struct stat st;
22356
22357 while (wait(&status) != child)
22358 ;
22359 return (
22360 /* Was there some problem with vforking? */
22361 child < 0
22362
22363 /* Did the child fail? (This shouldn't happen.) */
22364 || status
22365
22366 /* Did the vfork/compiler bug occur? */
22367 || parent != getpid()
22368
22369 /* Did the file descriptor bug occur? */
22370 || fstat(fileno(stdout), &st) != 0
22371 );
22372 }
22373}
22374_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022375if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022376 ac_cv_func_vfork_works=yes
22377else
cristy8b350f62009-11-15 23:12:43 +000022378 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022379fi
cristy8b350f62009-11-15 23:12:43 +000022380rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22381 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022382fi
22383
cristy3ed852e2009-09-05 21:47:34 +000022384fi
cristy8b350f62009-11-15 23:12:43 +000022385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022386$as_echo "$ac_cv_func_vfork_works" >&6; }
22387
22388fi;
22389if test "x$ac_cv_func_fork_works" = xcross; then
22390 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022391 { $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 +000022392$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22393fi
22394
22395if test "x$ac_cv_func_vfork_works" = xyes; then
22396
cristy8b350f62009-11-15 23:12:43 +000022397$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022398
22399else
22400
cristy8b350f62009-11-15 23:12:43 +000022401$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022402
22403fi
22404if test "x$ac_cv_func_fork_works" = xyes; then
22405
cristy8b350f62009-11-15 23:12:43 +000022406$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022407
22408fi
22409
cristy8b350f62009-11-15 23:12:43 +000022410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022411$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022412if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022413 $as_echo_n "(cached) " >&6
22414else
cristy8b350f62009-11-15 23:12:43 +000022415 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022416 ac_cv_func_memcmp_working=no
22417else
cristy8b350f62009-11-15 23:12:43 +000022418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022419/* end confdefs.h. */
22420$ac_includes_default
22421int
22422main ()
22423{
22424
22425 /* Some versions of memcmp are not 8-bit clean. */
22426 char c0 = '\100', c1 = '\200', c2 = '\201';
22427 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22428 return 1;
22429
22430 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22431 or more and with at least one buffer not starting on a 4-byte boundary.
22432 William Lewis provided this test program. */
22433 {
22434 char foo[21];
22435 char bar[21];
22436 int i;
22437 for (i = 0; i < 4; i++)
22438 {
22439 char *a = foo + i;
22440 char *b = bar + i;
22441 strcpy (a, "--------01111111");
22442 strcpy (b, "--------10000000");
22443 if (memcmp (a, b, 16) >= 0)
22444 return 1;
22445 }
22446 return 0;
22447 }
22448
22449 ;
22450 return 0;
22451}
22452_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022453if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022454 ac_cv_func_memcmp_working=yes
22455else
cristy8b350f62009-11-15 23:12:43 +000022456 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000022457fi
cristy8b350f62009-11-15 23:12:43 +000022458rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22459 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022460fi
22461
cristy3ed852e2009-09-05 21:47:34 +000022462fi
cristy8b350f62009-11-15 23:12:43 +000022463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000022464$as_echo "$ac_cv_func_memcmp_working" >&6; }
22465test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22466 *" memcmp.$ac_objext "* ) ;;
22467 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22468 ;;
22469esac
22470
22471
cristy3ed852e2009-09-05 21:47:34 +000022472for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000022473do :
22474 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22475ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyfd9dcd42010-08-08 18:07:02 +000022476if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022477 cat >>confdefs.h <<_ACEOF
22478#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22479_ACEOF
22480
22481fi
22482
22483done
22484
cristy8b350f62009-11-15 23:12:43 +000022485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000022486$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022487if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022488 $as_echo_n "(cached) " >&6
22489else
22490 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22491 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22492 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000022493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022494/* end confdefs.h. */
22495$ac_includes_default
22496#ifdef HAVE_SYS_SELECT_H
22497# include <sys/select.h>
22498#endif
22499#ifdef HAVE_SYS_SOCKET_H
22500# include <sys/socket.h>
22501#endif
22502
22503int
22504main ()
22505{
22506extern int select ($ac_arg1,
22507 $ac_arg234, $ac_arg234, $ac_arg234,
22508 $ac_arg5);
22509 ;
22510 return 0;
22511}
22512_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022513if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022514 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000022515fi
cristy3ed852e2009-09-05 21:47:34 +000022516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22517 done
22518 done
22519done
22520# Provide a safe default value.
22521: ${ac_cv_func_select_args='int,int *,struct timeval *'}
22522
22523fi
cristy8b350f62009-11-15 23:12:43 +000022524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000022525$as_echo "$ac_cv_func_select_args" >&6; }
22526ac_save_IFS=$IFS; IFS=','
22527set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22528IFS=$ac_save_IFS
22529shift
22530
22531cat >>confdefs.h <<_ACEOF
22532#define SELECT_TYPE_ARG1 $1
22533_ACEOF
22534
22535
22536cat >>confdefs.h <<_ACEOF
22537#define SELECT_TYPE_ARG234 ($2)
22538_ACEOF
22539
22540
22541cat >>confdefs.h <<_ACEOF
22542#define SELECT_TYPE_ARG5 ($3)
22543_ACEOF
22544
22545rm -f conftest*
22546
cristy8b350f62009-11-15 23:12:43 +000022547if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022548 $as_echo_n "(cached) " >&6
22549else
22550 ac_cv_func_setvbuf_reversed=no
22551fi
22552
22553
cristy8b350f62009-11-15 23:12:43 +000022554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000022555$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022556if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022557 $as_echo_n "(cached) " >&6
22558else
cristy8b350f62009-11-15 23:12:43 +000022559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022560/* end confdefs.h. */
22561#include <sys/types.h>
22562#include <signal.h>
22563
22564int
22565main ()
22566{
22567return *(signal (0, 0)) (0) == 1;
22568 ;
22569 return 0;
22570}
22571_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022572if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022573 ac_cv_type_signal=int
22574else
cristy8b350f62009-11-15 23:12:43 +000022575 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000022576fi
cristy3ed852e2009-09-05 21:47:34 +000022577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22578fi
cristy8b350f62009-11-15 23:12:43 +000022579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000022580$as_echo "$ac_cv_type_signal" >&6; }
22581
22582cat >>confdefs.h <<_ACEOF
22583#define RETSIGTYPE $ac_cv_type_signal
22584_ACEOF
22585
22586
cristy8b350f62009-11-15 23:12:43 +000022587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022588$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022589if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022590 $as_echo_n "(cached) " >&6
22591else
cristy8b350f62009-11-15 23:12:43 +000022592 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022593 ac_cv_func_strtod=no
22594else
cristy8b350f62009-11-15 23:12:43 +000022595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022596/* end confdefs.h. */
22597
22598$ac_includes_default
22599#ifndef strtod
22600double strtod ();
22601#endif
22602int
22603main()
22604{
22605 {
22606 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
22607 char *string = " +69";
22608 char *term;
22609 double value;
22610 value = strtod (string, &term);
22611 if (value != 69 || term != (string + 4))
22612 return 1;
22613 }
22614
22615 {
22616 /* Under Solaris 2.4, strtod returns the wrong value for the
22617 terminating character under some conditions. */
22618 char *string = "NaN";
22619 char *term;
22620 strtod (string, &term);
22621 if (term != string && *(term - 1) == 0)
22622 return 1;
22623 }
22624 return 0;
22625}
22626
22627_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022628if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022629 ac_cv_func_strtod=yes
22630else
cristy8b350f62009-11-15 23:12:43 +000022631 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000022632fi
cristy8b350f62009-11-15 23:12:43 +000022633rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22634 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022635fi
22636
cristy3ed852e2009-09-05 21:47:34 +000022637fi
cristy8b350f62009-11-15 23:12:43 +000022638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022639$as_echo "$ac_cv_func_strtod" >&6; }
22640if test $ac_cv_func_strtod = no; then
22641 case " $LIBOBJS " in
22642 *" strtod.$ac_objext "* ) ;;
22643 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
22644 ;;
22645esac
22646
cristy8b350f62009-11-15 23:12:43 +000022647ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
22648if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022649
cristy3ed852e2009-09-05 21:47:34 +000022650fi
22651
cristy3ed852e2009-09-05 21:47:34 +000022652if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000022653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022654$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022655if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022656 $as_echo_n "(cached) " >&6
22657else
22658 ac_check_lib_save_LIBS=$LIBS
22659LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022661/* end confdefs.h. */
22662
22663/* Override any GCC internal prototype to avoid an error.
22664 Use char because int might match the return type of a GCC
22665 builtin and then its argument prototype would still apply. */
22666#ifdef __cplusplus
22667extern "C"
22668#endif
22669char pow ();
22670int
22671main ()
22672{
22673return pow ();
22674 ;
22675 return 0;
22676}
22677_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022678if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022679 ac_cv_lib_m_pow=yes
22680else
cristy8b350f62009-11-15 23:12:43 +000022681 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000022682fi
cristy8b350f62009-11-15 23:12:43 +000022683rm -f core conftest.err conftest.$ac_objext \
22684 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022685LIBS=$ac_check_lib_save_LIBS
22686fi
cristy8b350f62009-11-15 23:12:43 +000022687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000022688$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022689if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022690 POW_LIB=-lm
22691else
cristy8b350f62009-11-15 23:12:43 +000022692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000022693$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
22694fi
22695
22696fi
22697
22698fi
22699
cristy3ed852e2009-09-05 21:47:34 +000022700for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000022701do :
22702 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
22703if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022704 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022705#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000022706_ACEOF
22707
cristy8b350f62009-11-15 23:12:43 +000022708ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
22709if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022710
cristy8b350f62009-11-15 23:12:43 +000022711$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022712
22713fi
22714
22715fi
22716done
22717
22718
22719
cristy161b9262010-03-20 19:34:32 +000022720#
22721# Find math library
22722#
22723MATH_LIBS=''
22724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
22725$as_echo_n "checking for sqrt in -lm... " >&6; }
22726if test "${ac_cv_lib_m_sqrt+set}" = set; then :
22727 $as_echo_n "(cached) " >&6
22728else
22729 ac_check_lib_save_LIBS=$LIBS
22730LIBS="-lm $LIBS"
22731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22732/* end confdefs.h. */
22733
22734/* Override any GCC internal prototype to avoid an error.
22735 Use char because int might match the return type of a GCC
22736 builtin and then its argument prototype would still apply. */
22737#ifdef __cplusplus
22738extern "C"
22739#endif
22740char sqrt ();
22741int
22742main ()
22743{
22744return sqrt ();
22745 ;
22746 return 0;
22747}
22748_ACEOF
22749if ac_fn_c_try_link "$LINENO"; then :
22750 ac_cv_lib_m_sqrt=yes
22751else
22752 ac_cv_lib_m_sqrt=no
22753fi
22754rm -f core conftest.err conftest.$ac_objext \
22755 conftest$ac_exeext conftest.$ac_ext
22756LIBS=$ac_check_lib_save_LIBS
22757fi
22758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
22759$as_echo "$ac_cv_lib_m_sqrt" >&6; }
22760if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
22761 MATH_LIBS="-lm"
22762fi
22763
22764LIBS="$MATH_LIBS $LIBS"
22765
22766
cristyf1897e32010-08-29 19:59:09 +000022767for 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 +000022768do :
22769 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22770ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000022771if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022772 cat >>confdefs.h <<_ACEOF
22773#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22774_ACEOF
22775
22776fi
22777done
22778
22779
cristye43a45e2009-09-28 14:49:00 +000022780#
22781# Check for clock_gettime().
22782#
cristy8b350f62009-11-15 23:12:43 +000022783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000022784$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022785if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000022786 $as_echo_n "(cached) " >&6
22787else
22788 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000022790/* end confdefs.h. */
22791
22792/* Override any GCC internal prototype to avoid an error.
22793 Use char because int might match the return type of a GCC
22794 builtin and then its argument prototype would still apply. */
22795#ifdef __cplusplus
22796extern "C"
22797#endif
22798char clock_gettime ();
22799int
22800main ()
22801{
22802return clock_gettime ();
22803 ;
22804 return 0;
22805}
22806_ACEOF
22807for ac_lib in '' rt; do
22808 if test -z "$ac_lib"; then
22809 ac_res="none required"
22810 else
22811 ac_res=-l$ac_lib
22812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22813 fi
cristy8b350f62009-11-15 23:12:43 +000022814 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000022815 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000022816fi
cristy8b350f62009-11-15 23:12:43 +000022817rm -f core conftest.err conftest.$ac_objext \
22818 conftest$ac_exeext
22819 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000022820 break
22821fi
22822done
cristy8b350f62009-11-15 23:12:43 +000022823if test "${ac_cv_search_clock_gettime+set}" = set; then :
22824
cristye43a45e2009-09-28 14:49:00 +000022825else
22826 ac_cv_search_clock_gettime=no
22827fi
22828rm conftest.$ac_ext
22829LIBS=$ac_func_search_save_LIBS
22830fi
cristy8b350f62009-11-15 23:12:43 +000022831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000022832$as_echo "$ac_cv_search_clock_gettime" >&6; }
22833ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000022834if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000022835 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22836
22837
cristy8b350f62009-11-15 23:12:43 +000022838$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000022839
cristy8b350f62009-11-15 23:12:43 +000022840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000022841$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000022843/* end confdefs.h. */
22844#include <time.h>
22845int
22846main ()
22847{
22848clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000022849 ;
22850 return 0;
22851}
22852_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022853if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000022854
cristy8b350f62009-11-15 23:12:43 +000022855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000022856$as_echo "yes" >&6; }
22857
cristy8b350f62009-11-15 23:12:43 +000022858$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000022859
22860
22861else
cristy8b350f62009-11-15 23:12:43 +000022862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000022863$as_echo "no" >&6; }
22864
22865fi
cristye43a45e2009-09-28 14:49:00 +000022866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22867
22868else
22869
cristy8b350f62009-11-15 23:12:43 +000022870 for ac_func in gettimeofday ftime
22871do :
22872 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22873ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000022874if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000022875 cat >>confdefs.h <<_ACEOF
22876#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22877_ACEOF
22878 break
22879fi
22880done
22881
22882
22883
22884fi
22885
22886
cristy3ed852e2009-09-05 21:47:34 +000022887########
22888#
22889# Check for function prototypes
22890#
22891########
22892
cristy8b350f62009-11-15 23:12:43 +000022893ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000022894#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000022895"
22896if test "x$ac_cv_have_decl_pread" = x""yes; then :
22897 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000022898else
cristy8b350f62009-11-15 23:12:43 +000022899 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000022900fi
22901
cristy3ed852e2009-09-05 21:47:34 +000022902cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022903#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000022904_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022905ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000022906#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000022907"
22908if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
22909 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000022910else
cristy8b350f62009-11-15 23:12:43 +000022911 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000022912fi
22913
cristy3ed852e2009-09-05 21:47:34 +000022914cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022915#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000022916_ACEOF
22917
22918
cristy8b350f62009-11-15 23:12:43 +000022919ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000022920#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000022921"
22922if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
22923 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000022924else
cristy8b350f62009-11-15 23:12:43 +000022925 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000022926fi
22927
cristy3ed852e2009-09-05 21:47:34 +000022928cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022929#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000022930_ACEOF
22931
22932
cristy8b350f62009-11-15 23:12:43 +000022933ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000022934#include <stdio.h>
22935#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000022936"
22937if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
22938 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000022939else
cristy8b350f62009-11-15 23:12:43 +000022940 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000022941fi
22942
cristy3ed852e2009-09-05 21:47:34 +000022943cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022944#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000022945_ACEOF
22946
22947
cristy3ed852e2009-09-05 21:47:34 +000022948########
22949#
22950# C++ Support Tests (For Magick++)
22951#
22952########
22953have_magick_plus_plus='no'
22954if test "$with_magick_plus_plus" = 'yes'; then
22955 OLIBS="$LIBS"
22956 LIBS=''
22957 ac_ext=cpp
22958ac_cpp='$CXXCPP $CPPFLAGS'
22959ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22960ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22961ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22962
22963
22964 # Full set of headers used...
22965 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
22966 # functional iomanip iosfwd iostream iterator list string strstream utility
22967 ac_ext=cpp
22968ac_cpp='$CXXCPP $CPPFLAGS'
22969ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22970ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22971ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22972
22973 ac_ext=cpp
22974ac_cpp='$CXXCPP $CPPFLAGS'
22975ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22976ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22977ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22978if test -z "$CXX"; then
22979 if test -n "$CCC"; then
22980 CXX=$CCC
22981 else
22982 if test -n "$ac_tool_prefix"; then
22983 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22984 do
22985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22986set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000022987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000022988$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022989if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022990 $as_echo_n "(cached) " >&6
22991else
22992 if test -n "$CXX"; then
22993 ac_cv_prog_CXX="$CXX" # Let the user override the test.
22994else
22995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22996for as_dir in $PATH
22997do
22998 IFS=$as_save_IFS
22999 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023000 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23002 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023004 break 2
23005 fi
23006done
cristy8b350f62009-11-15 23:12:43 +000023007 done
cristy3ed852e2009-09-05 21:47:34 +000023008IFS=$as_save_IFS
23009
23010fi
23011fi
23012CXX=$ac_cv_prog_CXX
23013if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023015$as_echo "$CXX" >&6; }
23016else
cristy8b350f62009-11-15 23:12:43 +000023017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023018$as_echo "no" >&6; }
23019fi
23020
23021
23022 test -n "$CXX" && break
23023 done
23024fi
23025if test -z "$CXX"; then
23026 ac_ct_CXX=$CXX
23027 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23028do
23029 # Extract the first word of "$ac_prog", so it can be a program name with args.
23030set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023032$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023033if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023034 $as_echo_n "(cached) " >&6
23035else
23036 if test -n "$ac_ct_CXX"; then
23037 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23038else
23039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23040for as_dir in $PATH
23041do
23042 IFS=$as_save_IFS
23043 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023044 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23046 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023048 break 2
23049 fi
23050done
cristy8b350f62009-11-15 23:12:43 +000023051 done
cristy3ed852e2009-09-05 21:47:34 +000023052IFS=$as_save_IFS
23053
23054fi
23055fi
23056ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23057if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023059$as_echo "$ac_ct_CXX" >&6; }
23060else
cristy8b350f62009-11-15 23:12:43 +000023061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023062$as_echo "no" >&6; }
23063fi
23064
23065
23066 test -n "$ac_ct_CXX" && break
23067done
23068
23069 if test "x$ac_ct_CXX" = x; then
23070 CXX="g++"
23071 else
23072 case $cross_compiling:$ac_tool_warned in
23073yes:)
cristy8b350f62009-11-15 23:12:43 +000023074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23076ac_tool_warned=yes ;;
23077esac
23078 CXX=$ac_ct_CXX
23079 fi
23080fi
23081
23082 fi
23083fi
23084# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000023085$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000023086set X $ac_compile
23087ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000023088for ac_option in --version -v -V -qversion; do
23089 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000023090case "(($ac_try" in
23091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23092 *) ac_try_echo=$ac_try;;
23093esac
cristy8b350f62009-11-15 23:12:43 +000023094eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23095$as_echo "$ac_try_echo"; } >&5
23096 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000023097 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000023098 if test -s conftest.err; then
23099 sed '10a\
23100... rest of stderr output deleted ...
23101 10q' conftest.err >conftest.er1
23102 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000023103 fi
cristycd4c5312009-11-22 01:19:08 +000023104 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000023105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23106 test $ac_status = 0; }
23107done
cristy3ed852e2009-09-05 21:47:34 +000023108
cristy8b350f62009-11-15 23:12:43 +000023109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000023110$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023111if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023112 $as_echo_n "(cached) " >&6
23113else
cristy8b350f62009-11-15 23:12:43 +000023114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023115/* end confdefs.h. */
23116
23117int
23118main ()
23119{
23120#ifndef __GNUC__
23121 choke me
23122#endif
23123
23124 ;
23125 return 0;
23126}
23127_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023128if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023129 ac_compiler_gnu=yes
23130else
cristy8b350f62009-11-15 23:12:43 +000023131 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000023132fi
cristy3ed852e2009-09-05 21:47:34 +000023133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23134ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23135
23136fi
cristy8b350f62009-11-15 23:12:43 +000023137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000023138$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23139if test $ac_compiler_gnu = yes; then
23140 GXX=yes
23141else
23142 GXX=
23143fi
23144ac_test_CXXFLAGS=${CXXFLAGS+set}
23145ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000023146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023147$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023148if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023149 $as_echo_n "(cached) " >&6
23150else
23151 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23152 ac_cxx_werror_flag=yes
23153 ac_cv_prog_cxx_g=no
23154 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023156/* end confdefs.h. */
23157
23158int
23159main ()
23160{
23161
23162 ;
23163 return 0;
23164}
23165_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023166if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023167 ac_cv_prog_cxx_g=yes
23168else
cristy8b350f62009-11-15 23:12:43 +000023169 CXXFLAGS=""
23170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023171/* end confdefs.h. */
23172
23173int
23174main ()
23175{
23176
23177 ;
23178 return 0;
23179}
23180_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023181if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023182
cristy8b350f62009-11-15 23:12:43 +000023183else
23184 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000023185 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023187/* end confdefs.h. */
23188
23189int
23190main ()
23191{
23192
23193 ;
23194 return 0;
23195}
23196_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023197if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023198 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000023199fi
cristy3ed852e2009-09-05 21:47:34 +000023200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23201fi
cristy3ed852e2009-09-05 21:47:34 +000023202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23203fi
cristy3ed852e2009-09-05 21:47:34 +000023204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23205 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23206fi
cristy8b350f62009-11-15 23:12:43 +000023207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023208$as_echo "$ac_cv_prog_cxx_g" >&6; }
23209if test "$ac_test_CXXFLAGS" = set; then
23210 CXXFLAGS=$ac_save_CXXFLAGS
23211elif test $ac_cv_prog_cxx_g = yes; then
23212 if test "$GXX" = yes; then
23213 CXXFLAGS="-g -O2"
23214 else
23215 CXXFLAGS="-g"
23216 fi
23217else
23218 if test "$GXX" = yes; then
23219 CXXFLAGS="-O2"
23220 else
23221 CXXFLAGS=
23222 fi
23223fi
23224ac_ext=cpp
23225ac_cpp='$CXXCPP $CPPFLAGS'
23226ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23227ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23228ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23229
23230depcc="$CXX" am_compiler_list=
23231
cristy8b350f62009-11-15 23:12:43 +000023232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023233$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023234if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023235 $as_echo_n "(cached) " >&6
23236else
23237 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23238 # We make a subdir and do the tests there. Otherwise we can end up
23239 # making bogus files that we don't know about and never remove. For
23240 # instance it was reported that on HP-UX the gcc test will end up
23241 # making a dummy file named `D' -- because `-MD' means `put the output
23242 # in D'.
23243 mkdir conftest.dir
23244 # Copy depcomp to subdir because otherwise we won't find it if we're
23245 # using a relative directory.
23246 cp "$am_depcomp" conftest.dir
23247 cd conftest.dir
23248 # We will build objects and dependencies in a subdirectory because
23249 # it helps to detect inapplicable dependency modes. For instance
23250 # both Tru64's cc and ICC support -MD to output dependencies as a
23251 # side effect of compilation, but ICC will put the dependencies in
23252 # the current directory while Tru64 will put them in the object
23253 # directory.
23254 mkdir sub
23255
23256 am_cv_CXX_dependencies_compiler_type=none
23257 if test "$am_compiler_list" = ""; then
23258 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23259 fi
23260 am__universal=false
23261 case " $depcc " in #(
23262 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23263 esac
23264
23265 for depmode in $am_compiler_list; do
23266 # Setup a source with many dependencies, because some compilers
23267 # like to wrap large dependency lists on column 80 (with \), and
23268 # we should not choose a depcomp mode which is confused by this.
23269 #
23270 # We need to recreate these files for each test, as the compiler may
23271 # overwrite some of them when testing with obscure command lines.
23272 # This happens at least with the AIX C compiler.
23273 : > sub/conftest.c
23274 for i in 1 2 3 4 5 6; do
23275 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23276 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23277 # Solaris 8's {/usr,}/bin/sh.
23278 touch sub/conftst$i.h
23279 done
23280 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23281
23282 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23283 # mode. It turns out that the SunPro C++ compiler does not properly
23284 # handle `-M -o', and we need to detect this. Also, some Intel
23285 # versions had trouble with output in subdirs
23286 am__obj=sub/conftest.${OBJEXT-o}
23287 am__minus_obj="-o $am__obj"
23288 case $depmode in
23289 gcc)
23290 # This depmode causes a compiler race in universal mode.
23291 test "$am__universal" = false || continue
23292 ;;
23293 nosideeffect)
23294 # after this tag, mechanisms are not by side-effect, so they'll
23295 # only be used when explicitly requested
23296 if test "x$enable_dependency_tracking" = xyes; then
23297 continue
23298 else
23299 break
23300 fi
23301 ;;
23302 msvisualcpp | msvcmsys)
23303 # This compiler won't grok `-c -o', but also, the minuso test has
23304 # not run yet. These depmodes are late enough in the game, and
23305 # so weak that their functioning should not be impacted.
23306 am__obj=conftest.${OBJEXT-o}
23307 am__minus_obj=
23308 ;;
23309 none) break ;;
23310 esac
23311 if depmode=$depmode \
23312 source=sub/conftest.c object=$am__obj \
23313 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23314 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23315 >/dev/null 2>conftest.err &&
23316 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23317 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23318 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23319 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23320 # icc doesn't choke on unknown options, it will just issue warnings
23321 # or remarks (even with -Werror). So we grep stderr for any message
23322 # that says an option was ignored or not supported.
23323 # When given -MP, icc 7.0 and 7.1 complain thusly:
23324 # icc: Command line warning: ignoring option '-M'; no argument required
23325 # The diagnosis changed in icc 8.0:
23326 # icc: Command line remark: option '-MP' not supported
23327 if (grep 'ignoring option' conftest.err ||
23328 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23329 am_cv_CXX_dependencies_compiler_type=$depmode
23330 break
23331 fi
23332 fi
23333 done
23334
23335 cd ..
23336 rm -rf conftest.dir
23337else
23338 am_cv_CXX_dependencies_compiler_type=none
23339fi
23340
23341fi
cristy8b350f62009-11-15 23:12:43 +000023342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023343$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23344CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23345
23346 if
23347 test "x$enable_dependency_tracking" != xno \
23348 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23349 am__fastdepCXX_TRUE=
23350 am__fastdepCXX_FALSE='#'
23351else
23352 am__fastdepCXX_TRUE='#'
23353 am__fastdepCXX_FALSE=
23354fi
23355
23356
cristy8b350f62009-11-15 23:12:43 +000023357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023358$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023359if test "${ax_cv_cxx_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023360 $as_echo_n "(cached) " >&6
23361else
23362
23363 ac_ext=cpp
23364ac_cpp='$CXXCPP $CPPFLAGS'
23365ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23366ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23367ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23368
cristy8b350f62009-11-15 23:12:43 +000023369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023370/* end confdefs.h. */
23371
23372int f(int x){return 1;}
23373int f(char x){return 1;}
23374int f(bool x){return 1;}
23375
23376int
23377main ()
23378{
23379bool b = true; return f(b);
23380 ;
23381 return 0;
23382}
23383_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023384if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023385 ax_cv_cxx_bool=yes
cristy3ed852e2009-09-05 21:47:34 +000023386else
cristy964cb7f2010-04-25 23:18:00 +000023387 ax_cv_cxx_bool=no
cristy3ed852e2009-09-05 21:47:34 +000023388fi
cristy3ed852e2009-09-05 21:47:34 +000023389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23390 ac_ext=cpp
23391ac_cpp='$CXXCPP $CPPFLAGS'
23392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23395
23396
23397fi
cristy964cb7f2010-04-25 23:18:00 +000023398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23399$as_echo "$ax_cv_cxx_bool" >&6; }
23400if test "$ax_cv_cxx_bool" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023401
cristy8b350f62009-11-15 23:12:43 +000023402$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023403
23404fi
23405
cristy8b350f62009-11-15 23:12:43 +000023406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023407$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023408if test "${ax_cv_cxx_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023409 $as_echo_n "(cached) " >&6
23410else
23411
23412 ac_ext=cpp
23413ac_cpp='$CXXCPP $CPPFLAGS'
23414ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23415ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23416ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23417
cristy8b350f62009-11-15 23:12:43 +000023418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023419/* end confdefs.h. */
23420namespace Outer { namespace Inner { int i = 0; }}
23421int
23422main ()
23423{
23424using namespace Outer::Inner; return i;
23425 ;
23426 return 0;
23427}
23428_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023429if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023430 ax_cv_cxx_namespaces=yes
cristy3ed852e2009-09-05 21:47:34 +000023431else
cristy964cb7f2010-04-25 23:18:00 +000023432 ax_cv_cxx_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000023433fi
cristy3ed852e2009-09-05 21:47:34 +000023434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23435 ac_ext=cpp
23436ac_cpp='$CXXCPP $CPPFLAGS'
23437ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23438ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23439ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23440
23441
23442fi
cristy964cb7f2010-04-25 23:18:00 +000023443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23444$as_echo "$ax_cv_cxx_namespaces" >&6; }
23445if test "$ax_cv_cxx_namespaces" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023446
cristy8b350f62009-11-15 23:12:43 +000023447$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023448
23449fi
23450
cristy964cb7f2010-04-25 23:18:00 +000023451
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
23453$as_echo_n "checking if g++ supports namespace std... " >&6; }
23454if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023455 $as_echo_n "(cached) " >&6
23456else
23457
cristy964cb7f2010-04-25 23:18:00 +000023458 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000023459ac_cpp='$CXXCPP $CPPFLAGS'
23460ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23461ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23462ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23463
cristy964cb7f2010-04-25 23:18:00 +000023464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023465/* end confdefs.h. */
23466#include <iostream>
cristy964cb7f2010-04-25 23:18:00 +000023467 std::istream& is = std::cin;
cristy3ed852e2009-09-05 21:47:34 +000023468int
23469main ()
23470{
cristy964cb7f2010-04-25 23:18:00 +000023471
cristy3ed852e2009-09-05 21:47:34 +000023472 ;
23473 return 0;
23474}
23475_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023476if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023477 ax_cv_cxx_have_std_namespace=yes
cristy3ed852e2009-09-05 21:47:34 +000023478else
cristy964cb7f2010-04-25 23:18:00 +000023479 ax_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000023480fi
cristy3ed852e2009-09-05 21:47:34 +000023481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +000023482 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000023483ac_cpp='$CXXCPP $CPPFLAGS'
23484ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23485ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23486ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23487
23488
23489fi
cristy964cb7f2010-04-25 23:18:00 +000023490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
23491$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
23492 if test "$ax_cv_cxx_have_std_namespace" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023493
cristy964cb7f2010-04-25 23:18:00 +000023494$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023495
cristy964cb7f2010-04-25 23:18:00 +000023496 fi
cristy3ed852e2009-09-05 21:47:34 +000023497
cristy8b350f62009-11-15 23:12:43 +000023498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000023499$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023500if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023501 $as_echo_n "(cached) " >&6
23502else
23503
23504
23505 ac_ext=cpp
23506ac_cpp='$CXXCPP $CPPFLAGS'
23507ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23508ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23509ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23510
cristy8b350f62009-11-15 23:12:43 +000023511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023512/* end confdefs.h. */
23513#include <iostream>
23514#include <map>
23515#include <iomanip>
23516#include <cmath>
23517#ifdef HAVE_NAMESPACES
23518using namespace std;
23519#endif
23520int
23521main ()
23522{
23523return 0;
23524 ;
23525 return 0;
23526}
23527_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023528if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023529 ac_cv_cxx_have_std_libs=yes
23530else
cristy8b350f62009-11-15 23:12:43 +000023531 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000023532fi
cristy3ed852e2009-09-05 21:47:34 +000023533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23534 ac_ext=cpp
23535ac_cpp='$CXXCPP $CPPFLAGS'
23536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23539
23540
23541fi
cristy8b350f62009-11-15 23:12:43 +000023542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000023543$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
23544if test "$ac_cv_cxx_have_std_libs" = yes; then
23545
cristy8b350f62009-11-15 23:12:43 +000023546$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023547
23548fi
23549
cristy8b350f62009-11-15 23:12:43 +000023550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000023551$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023552if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023553 $as_echo_n "(cached) " >&6
23554else
23555
23556 ac_ext=cpp
23557ac_cpp='$CXXCPP $CPPFLAGS'
23558ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23559ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23560ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23561
cristy8b350f62009-11-15 23:12:43 +000023562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023563/* end confdefs.h. */
23564const wchar_t* s=L"wide string";
23565_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023566if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023567 ac_cv_cxx_have_lstring=yes
23568else
cristy8b350f62009-11-15 23:12:43 +000023569 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000023570fi
cristy3ed852e2009-09-05 21:47:34 +000023571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23572 ac_ext=cpp
23573ac_cpp='$CXXCPP $CPPFLAGS'
23574ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23575ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23576ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23577
23578
23579fi
cristy8b350f62009-11-15 23:12:43 +000023580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000023581$as_echo "$ac_cv_cxx_have_lstring" >&6; }
23582if test "$ac_cv_cxx_have_lstring" = yes; then
23583
cristy8b350f62009-11-15 23:12:43 +000023584$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023585
23586fi
23587
23588
23589 OPENMP_CXXFLAGS=
23590 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000023591if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023592 enableval=$enable_openmp;
23593fi
23594
23595 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000023596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
23597$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023598if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023599 $as_echo_n "(cached) " >&6
23600else
cristy8b350f62009-11-15 23:12:43 +000023601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23602/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023603
23604#ifndef _OPENMP
23605 choke me
23606#endif
23607#include <omp.h>
23608int main () { return omp_get_num_threads (); }
23609
23610_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023611if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023612 ac_cv_prog_cxx_openmp='none needed'
23613else
cristy8b350f62009-11-15 23:12:43 +000023614 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000023615 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
23616 ac_save_CXXFLAGS=$CXXFLAGS
23617 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000023618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23619/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023620
23621#ifndef _OPENMP
23622 choke me
23623#endif
23624#include <omp.h>
23625int main () { return omp_get_num_threads (); }
23626
23627_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023628if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023629 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000023630fi
cristy8b350f62009-11-15 23:12:43 +000023631rm -f core conftest.err conftest.$ac_objext \
23632 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023633 CXXFLAGS=$ac_save_CXXFLAGS
23634 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
23635 break
23636 fi
23637 done
23638fi
cristy8b350f62009-11-15 23:12:43 +000023639rm -f core conftest.err conftest.$ac_objext \
23640 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023641fi
cristy8b350f62009-11-15 23:12:43 +000023642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023643$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
23644 case $ac_cv_prog_cxx_openmp in #(
23645 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000023646 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000023647 *)
cristy8b350f62009-11-15 23:12:43 +000023648 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000023649 esac
23650 fi
23651
23652
23653 ac_ext=c
23654ac_cpp='$CPP $CPPFLAGS'
23655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23657ac_compiler_gnu=$ac_cv_c_compiler_gnu
23658
23659
cristy8b350f62009-11-15 23:12:43 +000023660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000023661$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
23662 if \
cristy964cb7f2010-04-25 23:18:00 +000023663 test $ax_cv_cxx_bool = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000023664 test $ac_cv_cxx_have_lstring = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000023665 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000023666 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000023667 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000023668 have_magick_plus_plus='yes'
23669 else
23670 have_magick_plus_plus='no (failed tests)'
23671 fi
cristy8b350f62009-11-15 23:12:43 +000023672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000023673$as_echo "$have_magick_plus_plus" >&6; }
23674 LIBS="$OLIBS"
23675fi
23676 if test "$have_magick_plus_plus" = 'yes'; then
23677 WITH_MAGICK_PLUS_PLUS_TRUE=
23678 WITH_MAGICK_PLUS_PLUS_FALSE='#'
23679else
23680 WITH_MAGICK_PLUS_PLUS_TRUE='#'
23681 WITH_MAGICK_PLUS_PLUS_FALSE=
23682fi
23683
23684
23685# Only check for delegate libraries in subdirectories if requested.
23686if test "$enable_delegate_build" != 'no'; then
23687 # Check for delegate sub-directories and add -I & -L options as required.
23688 # This presumes that delegates are installed as detailed in the ImageMagick
23689 # README. If delegates are installed in a standard location where the
23690 # compiler will automatically find them then these options should not be
23691 # required.
23692
23693 #
23694 # Most delegates have includes in the same directory as the library, but not all...
23695 #
23696 # Includes
cristy5850e4b2010-01-08 14:28:24 +000023697 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 +000023698 if test -d "$builddir/$dir"; then
23699 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
23700 else
23701 if test -d "$srcdirfull/$dir"; then
23702 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
23703 fi
23704 fi
23705 done
23706
23707 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000023708 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 +000023709 if test -d "$builddir/$dir/.libs"; then
23710 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
23711 else
23712 if test -d "$srcdirfull/$dir/.libs"; then
23713 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
23714 fi
23715 fi
23716 if test -d "$builddir/$dir"; then
23717 LDFLAGS="$LDFLAGS -L$builddir/$dir"
23718 else
23719 if test -d "$srcdirfull/$dir"; then
23720 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
23721 fi
23722 fi
23723 done
23724fi
23725
23726# Assume that delegate headers reside under same directory as ImageMagick
23727# installation prefix.
23728MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
23729
23730#
23731# Find the X11 RGB database
23732#
cristy8b350f62009-11-15 23:12:43 +000023733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000023734$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023735if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023736 $as_echo_n "(cached) " >&6
23737else
23738 # Look for the header file in a standard set of common directories.
23739# Check X11 before X11Rn because it is often a symlink to the current release.
23740 for ac_dir in \
23741 /lib/usr/lib/X11 \
23742 /usr/X11/lib \
23743 /usr/X11R4/lib \
23744 /usr/X11R5/lib \
23745 /usr/X11R6/lib \
23746 /usr/X11R7/lib \
23747 /usr/X386/lib \
23748 /usr/XFree86/lib/X11 \
23749 /usr/athena/lib \
23750 /usr/lib \
23751 /usr/lib/X11 \
23752 /usr/lib/X11R4 \
23753 /usr/lib/X11R5 \
23754 /usr/lib/X11R6 \
23755 /usr/lib/X11R7 \
23756 /usr/local/X11/lib \
23757 /usr/local/X11R4/lib \
23758 /usr/local/X11R5/lib \
23759 /usr/local/X11R6/lib \
23760 /usr/local/lib \
23761 /usr/local/lib/X11 \
23762 /usr/local/lib/X11R4 \
23763 /usr/local/lib/X11R5 \
23764 /usr/local/lib/X11R6 \
23765 /usr/local/lib/X11R7 \
23766 /usr/local/x11r5/lib \
23767 /usr/lpp/Xamples/lib \
23768 /usr/openwin/lib \
23769 /usr/openwin/share/lib \
23770 /usr/unsupported/lib \
23771 /usr/x386/lib \
23772 ; do
23773 if test -f "$ac_dir/X11/rgb.txt"; then
23774 im_cv_x_configure="$ac_dir/X11/"
23775 break
23776 elif test -f "$ac_dir/rgb.txt"; then
23777 im_cv_x_configure="$ac_dir/"
23778 break
23779 fi
23780
23781 done
23782fi
cristy8b350f62009-11-15 23:12:43 +000023783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000023784$as_echo "$im_cv_x_configure" >&6; }
23785X11_CONFIGURE_PATH="$im_cv_x_configure"
23786case "${build_os}" in
23787 mingw* )
23788 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
23789 ;;
23790esac
23791
23792cat >>confdefs.h <<_ACEOF
23793#define X11_CONFIGURE_PATH "$X11ConfigurePath"
23794_ACEOF
23795
23796
23797#
23798# Find OpenMP library
23799#
23800GOMP_LIBS=''
23801if test "$enable_openmp" != 'no'; then
23802 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000023803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023804$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023805if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023806 $as_echo_n "(cached) " >&6
23807else
23808 ac_check_lib_save_LIBS=$LIBS
23809LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023811/* end confdefs.h. */
23812
23813/* Override any GCC internal prototype to avoid an error.
23814 Use char because int might match the return type of a GCC
23815 builtin and then its argument prototype would still apply. */
23816#ifdef __cplusplus
23817extern "C"
23818#endif
23819char GOMP_parallel_start ();
23820int
23821main ()
23822{
23823return GOMP_parallel_start ();
23824 ;
23825 return 0;
23826}
23827_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023828if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023829 ac_cv_lib_gomp_GOMP_parallel_start=yes
23830else
cristy8b350f62009-11-15 23:12:43 +000023831 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000023832fi
cristy8b350f62009-11-15 23:12:43 +000023833rm -f core conftest.err conftest.$ac_objext \
23834 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023835LIBS=$ac_check_lib_save_LIBS
23836fi
cristy8b350f62009-11-15 23:12:43 +000023837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000023838$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023839if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023840 GOMP_LIBS="-lgomp"
23841fi
23842 # gcc
23843 else
cristy8b350f62009-11-15 23:12:43 +000023844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000023845$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023846if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023847 $as_echo_n "(cached) " >&6
23848else
23849 ac_check_lib_save_LIBS=$LIBS
23850LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023852/* end confdefs.h. */
23853
23854/* Override any GCC internal prototype to avoid an error.
23855 Use char because int might match the return type of a GCC
23856 builtin and then its argument prototype would still apply. */
23857#ifdef __cplusplus
23858extern "C"
23859#endif
23860char sunw_mp_register_warn ();
23861int
23862main ()
23863{
23864return sunw_mp_register_warn ();
23865 ;
23866 return 0;
23867}
23868_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023869if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023870 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
23871else
cristy8b350f62009-11-15 23:12:43 +000023872 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000023873fi
cristy8b350f62009-11-15 23:12:43 +000023874rm -f core conftest.err conftest.$ac_objext \
23875 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023876LIBS=$ac_check_lib_save_LIBS
23877fi
cristy8b350f62009-11-15 23:12:43 +000023878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000023879$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023880if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023881 GOMP_LIBS="-lmtsk"
23882fi
23883 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000023884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023885$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023886if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023887 $as_echo_n "(cached) " >&6
23888else
23889 ac_check_lib_save_LIBS=$LIBS
23890LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023892/* end confdefs.h. */
23893
23894/* Override any GCC internal prototype to avoid an error.
23895 Use char because int might match the return type of a GCC
23896 builtin and then its argument prototype would still apply. */
23897#ifdef __cplusplus
23898extern "C"
23899#endif
23900char _xlsmpFlush ();
23901int
23902main ()
23903{
23904return _xlsmpFlush ();
23905 ;
23906 return 0;
23907}
23908_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023909if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023910 ac_cv_lib_xlsmp__xlsmpFlush=yes
23911else
cristy8b350f62009-11-15 23:12:43 +000023912 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000023913fi
cristy8b350f62009-11-15 23:12:43 +000023914rm -f core conftest.err conftest.$ac_objext \
23915 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023916LIBS=$ac_check_lib_save_LIBS
23917fi
cristy8b350f62009-11-15 23:12:43 +000023918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000023919$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023920if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023921 GOMP_LIBS="-lxlsmp"
23922fi
23923 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000023924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023925$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023926if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023927 $as_echo_n "(cached) " >&6
23928else
23929 ac_check_lib_save_LIBS=$LIBS
23930LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023932/* end confdefs.h. */
23933
23934/* Override any GCC internal prototype to avoid an error.
23935 Use char because int might match the return type of a GCC
23936 builtin and then its argument prototype would still apply. */
23937#ifdef __cplusplus
23938extern "C"
23939#endif
23940char mp_destroy ();
23941int
23942main ()
23943{
23944return mp_destroy ();
23945 ;
23946 return 0;
23947}
23948_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023949if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023950 ac_cv_lib_mp_mp_destroy=yes
23951else
cristy8b350f62009-11-15 23:12:43 +000023952 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000023953fi
cristy8b350f62009-11-15 23:12:43 +000023954rm -f core conftest.err conftest.$ac_objext \
23955 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023956LIBS=$ac_check_lib_save_LIBS
23957fi
cristy8b350f62009-11-15 23:12:43 +000023958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000023959$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023960if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023961 GOMP_LIBS="-lmp"
23962fi
23963 # SGI IRIX 6.5 MIPSpro C/C++
23964 fi
23965 LIBS="$GOMP_LIBS $LIBS"
23966fi
23967
23968
23969#
23970# Find Posix threads library
23971#
23972THREAD_LIBS=''
23973if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
23974
23975 if test "x$PTHREAD_LIBS" = "x"; then
23976 case "${host_cpu}-${host_os}" in
23977 *-freebsd*)
23978
23979
23980
23981ac_ext=c
23982ac_cpp='$CPP $CPPFLAGS'
23983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23985ac_compiler_gnu=$ac_cv_c_compiler_gnu
23986
23987magick_pthread_lib_ok=no
23988
23989LIB=-lc_r
23990save_LIBS="$LIBS"
23991LIBS="$LIBS $LIB"
23992
cristy8b350f62009-11-15 23:12:43 +000023993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023994$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023996/* end confdefs.h. */
23997#include <pthread.h>
23998int
23999main ()
24000{
24001 pthread_t th;
24002 pthread_join(th, 0);
24003 pthread_attr_init(0);
24004 pthread_cleanup_push(0, 0);
24005 pthread_create(0,0,0,0);
24006 pthread_cleanup_pop(0);
24007 ;
24008 return 0;
24009}
24010_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024011if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024012 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024013fi
cristy8b350f62009-11-15 23:12:43 +000024014rm -f core conftest.err conftest.$ac_objext \
24015 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024016
cristy8b350f62009-11-15 23:12:43 +000024017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024018$as_echo "${magick_pthread_lib_ok}" >&6; }
24019if test "$magick_pthread_lib_ok" = yes
24020then
24021 PTHREAD_LIBS=-lc_r
24022 :
24023else
24024
24025 :
24026fi
24027
24028LIBS="$save_LIBS"
24029
24030ac_ext=c
24031ac_cpp='$CPP $CPPFLAGS'
24032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24034ac_compiler_gnu=$ac_cv_c_compiler_gnu
24035
24036 ;;
24037 esac
24038 fi
24039
24040 for lib in pthread pthreads; do
24041 if test "x$PTHREAD_LIBS" = "x"; then
24042
24043
24044
24045ac_ext=c
24046ac_cpp='$CPP $CPPFLAGS'
24047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24049ac_compiler_gnu=$ac_cv_c_compiler_gnu
24050
24051magick_pthread_lib_ok=no
24052
24053LIB=-l$lib
24054save_LIBS="$LIBS"
24055LIBS="$LIBS $LIB"
24056
cristy8b350f62009-11-15 23:12:43 +000024057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024058$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024060/* end confdefs.h. */
24061#include <pthread.h>
24062int
24063main ()
24064{
24065 pthread_t th;
24066 pthread_join(th, 0);
24067 pthread_attr_init(0);
24068 pthread_cleanup_push(0, 0);
24069 pthread_create(0,0,0,0);
24070 pthread_cleanup_pop(0);
24071 ;
24072 return 0;
24073}
24074_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024075if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024076 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024077fi
cristy8b350f62009-11-15 23:12:43 +000024078rm -f core conftest.err conftest.$ac_objext \
24079 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024080
cristy8b350f62009-11-15 23:12:43 +000024081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024082$as_echo "${magick_pthread_lib_ok}" >&6; }
24083if test "$magick_pthread_lib_ok" = yes
24084then
24085 PTHREAD_LIBS=-l$lib
24086 :
24087else
24088
24089 :
24090fi
24091
24092LIBS="$save_LIBS"
24093
24094ac_ext=c
24095ac_cpp='$CPP $CPPFLAGS'
24096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24098ac_compiler_gnu=$ac_cv_c_compiler_gnu
24099
24100
24101 fi
24102 done
24103
24104 THREAD_LIBS="$PTHREAD_LIBS"
24105 LIBS="$LIBS $THREAD_LIBS"
24106fi
24107
24108
24109#
24110# Check for umem.
24111#
24112have_umem='no'
24113UMEM_LIBS=''
24114if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000024116$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024118$as_echo "" >&6; }
24119 failed=0
24120 passed=0
cristy8b350f62009-11-15 23:12:43 +000024121 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24122if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024123 passed=`expr $passed + 1`
24124else
24125 failed=`expr $failed + 1`
24126fi
24127
24128
cristy8b350f62009-11-15 23:12:43 +000024129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024130$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024131if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024132 $as_echo_n "(cached) " >&6
24133else
24134 ac_check_lib_save_LIBS=$LIBS
24135LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024137/* end confdefs.h. */
24138
24139/* Override any GCC internal prototype to avoid an error.
24140 Use char because int might match the return type of a GCC
24141 builtin and then its argument prototype would still apply. */
24142#ifdef __cplusplus
24143extern "C"
24144#endif
24145char umem_alloc ();
24146int
24147main ()
24148{
24149return umem_alloc ();
24150 ;
24151 return 0;
24152}
24153_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024154if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024155 ac_cv_lib_umem_umem_alloc=yes
24156else
cristy8b350f62009-11-15 23:12:43 +000024157 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000024158fi
cristy8b350f62009-11-15 23:12:43 +000024159rm -f core conftest.err conftest.$ac_objext \
24160 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024161LIBS=$ac_check_lib_save_LIBS
24162fi
cristy8b350f62009-11-15 23:12:43 +000024163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024164$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024165if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024166 passed=`expr $passed + 1`
24167else
24168 failed=`expr $failed + 1`
24169fi
24170
cristy8b350f62009-11-15 23:12:43 +000024171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024172$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024173if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024174 $as_echo_n "(cached) " >&6
24175else
24176 ac_check_lib_save_LIBS=$LIBS
24177LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024179/* end confdefs.h. */
24180
24181/* Override any GCC internal prototype to avoid an error.
24182 Use char because int might match the return type of a GCC
24183 builtin and then its argument prototype would still apply. */
24184#ifdef __cplusplus
24185extern "C"
24186#endif
24187char umem_free ();
24188int
24189main ()
24190{
24191return umem_free ();
24192 ;
24193 return 0;
24194}
24195_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024196if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024197 ac_cv_lib_umem_umem_free=yes
24198else
cristy8b350f62009-11-15 23:12:43 +000024199 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000024200fi
cristy8b350f62009-11-15 23:12:43 +000024201rm -f core conftest.err conftest.$ac_objext \
24202 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024203LIBS=$ac_check_lib_save_LIBS
24204fi
cristy8b350f62009-11-15 23:12:43 +000024205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000024206$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024207if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024208 passed=`expr $passed + 1`
24209else
24210 failed=`expr $failed + 1`
24211fi
24212
cristy8b350f62009-11-15 23:12:43 +000024213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024214$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24215 if test $passed -gt 0; then
24216 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024218$as_echo "no -- some components failed test" >&6; }
24219 have_umem='no (failed tests)'
24220 else
24221 UMEM_LIBS='-lumem'
24222 LIBS="$UMEM_LIBS $LIBS"
24223
cristy8b350f62009-11-15 23:12:43 +000024224$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024225
cristy8b350f62009-11-15 23:12:43 +000024226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024227$as_echo "yes" >&6; }
24228 have_umem='yes'
24229 fi
24230 else
cristy8b350f62009-11-15 23:12:43 +000024231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024232$as_echo "no" >&6; }
24233 fi
24234fi
24235 if test "$have_umem" = 'yes'; then
24236 HasUMEM_TRUE=
24237 HasUMEM_FALSE='#'
24238else
24239 HasUMEM_TRUE='#'
24240 HasUMEM_FALSE=
24241fi
24242
24243
24244
24245#
24246# Add support for ccmalloc memory debugging library if requested
24247#
24248have_ccmalloc='no'
24249CCMALLOC_LIBS=''
24250if test "$enable_ccmalloc" = 'yes'; then
24251 # Extract the first word of "ccmalloc", so it can be a program name with args.
24252set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024254$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024255if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024256 $as_echo_n "(cached) " >&6
24257else
24258 case $CCMALLOCDelegate in
24259 [\\/]* | ?:[\\/]*)
24260 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24261 ;;
24262 *)
24263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24264for as_dir in $PATH
24265do
24266 IFS=$as_save_IFS
24267 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024268 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24270 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000024271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024272 break 2
24273 fi
24274done
cristy8b350f62009-11-15 23:12:43 +000024275 done
cristy3ed852e2009-09-05 21:47:34 +000024276IFS=$as_save_IFS
24277
24278 ;;
24279esac
24280fi
24281CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24282if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000024283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024284$as_echo "$CCMALLOCDelegate" >&6; }
24285else
cristy8b350f62009-11-15 23:12:43 +000024286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024287$as_echo "no" >&6; }
24288fi
24289
24290
24291 if test -n "$CCMALLOCDelegate"; then
24292 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24293 OLIBS="$LIBS"
24294 # Assume that gcc is used with ccmalloc.
24295 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000024296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024297$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024298if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024299 $as_echo_n "(cached) " >&6
24300else
24301 ac_check_lib_save_LIBS=$LIBS
24302LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024304/* end confdefs.h. */
24305
24306/* Override any GCC internal prototype to avoid an error.
24307 Use char because int might match the return type of a GCC
24308 builtin and then its argument prototype would still apply. */
24309#ifdef __cplusplus
24310extern "C"
24311#endif
24312char ccmalloc_malloc ();
24313int
24314main ()
24315{
24316return ccmalloc_malloc ();
24317 ;
24318 return 0;
24319}
24320_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024321if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024322 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24323else
cristy8b350f62009-11-15 23:12:43 +000024324 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024325fi
cristy8b350f62009-11-15 23:12:43 +000024326rm -f core conftest.err conftest.$ac_objext \
24327 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024328LIBS=$ac_check_lib_save_LIBS
24329fi
cristy8b350f62009-11-15 23:12:43 +000024330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024331$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024332if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024333 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24334fi
24335
24336 if test -n "$CCMALLOC_LIBS"; then
24337 LIBS="$OLIBS"
24338 LIBS="$LIBS $CCMALLOC_LIBS"
24339 have_ccmalloc='yes'
24340 else
24341 LIBS="$OLIBS"
24342 fi
24343 fi
24344fi
24345
24346#
24347# Add support for efence memory debugging library if requested
24348#
24349if test "$enable_efence" = 'yes'; then
24350 EFENCE_LIBS='-lefence'
24351 LIBS="$EFENCE_LIBS $LIBS"
24352fi
24353
cristy3ed852e2009-09-05 21:47:34 +000024354
24355#
24356# Check for BZLIB
24357#
24358
24359
24360# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024361if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024362 withval=$with_bzlib; with_bzlib=$withval
24363else
24364 with_bzlib='yes'
24365fi
24366
24367
24368if test "$with_bzlib" != 'yes'; then
24369 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24370fi
24371
24372have_bzlib='no'
24373if test "$with_bzlib" != 'no'; then
24374 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024376$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024378$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024380$as_echo "" >&6; }
24381 failed=0
24382 passed=0
24383 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024384 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24385if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024386 passed=`expr $passed + 1`
24387else
24388 failed=`expr $failed + 1`
24389fi
24390
24391
cristy8b350f62009-11-15 23:12:43 +000024392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024393$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024394if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024395 $as_echo_n "(cached) " >&6
24396else
24397 ac_check_lib_save_LIBS=$LIBS
24398LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024400/* end confdefs.h. */
24401
24402/* Override any GCC internal prototype to avoid an error.
24403 Use char because int might match the return type of a GCC
24404 builtin and then its argument prototype would still apply. */
24405#ifdef __cplusplus
24406extern "C"
24407#endif
24408char BZ2_bzDecompress ();
24409int
24410main ()
24411{
24412return BZ2_bzDecompress ();
24413 ;
24414 return 0;
24415}
24416_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024417if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024418 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24419else
cristy8b350f62009-11-15 23:12:43 +000024420 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024421fi
cristy8b350f62009-11-15 23:12:43 +000024422rm -f core conftest.err conftest.$ac_objext \
24423 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024424LIBS=$ac_check_lib_save_LIBS
24425fi
cristy8b350f62009-11-15 23:12:43 +000024426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024427$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024428if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024429 found_libbz=`expr $found_libbz + 1`
24430fi
24431
24432 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024434$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024435if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024436 $as_echo_n "(cached) " >&6
24437else
24438 ac_check_lib_save_LIBS=$LIBS
24439LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024441/* end confdefs.h. */
24442
24443/* Override any GCC internal prototype to avoid an error.
24444 Use char because int might match the return type of a GCC
24445 builtin and then its argument prototype would still apply. */
24446#ifdef __cplusplus
24447extern "C"
24448#endif
24449char _imp__BZ2_decompress ();
24450int
24451main ()
24452{
24453return _imp__BZ2_decompress ();
24454 ;
24455 return 0;
24456}
24457_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024458if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024459 ac_cv_lib_bz2__imp__BZ2_decompress=yes
24460else
cristy8b350f62009-11-15 23:12:43 +000024461 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000024462fi
cristy8b350f62009-11-15 23:12:43 +000024463rm -f core conftest.err conftest.$ac_objext \
24464 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024465LIBS=$ac_check_lib_save_LIBS
24466fi
cristy8b350f62009-11-15 23:12:43 +000024467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024468$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024469if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024470 found_libbz=`expr $found_libbz + 1`
24471fi
24472
24473 fi
24474 if test $found_libbz -gt 0; then
24475 passed=`expr $passed + 1`
24476 else
24477 failed=`expr $failed + 1`
24478 fi
cristy8b350f62009-11-15 23:12:43 +000024479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024480$as_echo_n "checking if BZLIB package is complete... " >&6; }
24481 if test $passed -gt 0; then
24482 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024484$as_echo "no -- some components failed test" >&6; }
24485 have_bzlib='no (failed tests)'
24486 else
24487 BZLIB_LIBS='-lbz2'
24488 LIBS="$BZLIB_LIBS $LIBS"
24489
cristy8b350f62009-11-15 23:12:43 +000024490$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024491
cristy8b350f62009-11-15 23:12:43 +000024492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024493$as_echo "yes" >&6; }
24494 have_bzlib='yes'
24495 fi
24496 else
cristy8b350f62009-11-15 23:12:43 +000024497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024498$as_echo "no" >&6; }
24499 fi
24500fi
24501 if test "$have_bzlib" = 'yes'; then
24502 BZLIB_DELEGATE_TRUE=
24503 BZLIB_DELEGATE_FALSE='#'
24504else
24505 BZLIB_DELEGATE_TRUE='#'
24506 BZLIB_DELEGATE_FALSE=
24507fi
24508
24509
24510
24511#
24512# Find the X11 include and library directories.
24513#
24514IPC_LIBS=''
24515X11_LIBS=''
24516XEXT_LIBS=''
24517XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000024519$as_echo_n "checking for X... " >&6; }
24520
24521
24522# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000024523if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024524 withval=$with_x;
24525fi
24526
24527# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24528if test "x$with_x" = xno; then
24529 # The user explicitly disabled X.
24530 have_x=disabled
24531else
24532 case $x_includes,$x_libraries in #(
cristyfd9dcd42010-08-08 18:07:02 +000024533 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristy8b350f62009-11-15 23:12:43 +000024534 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024535 $as_echo_n "(cached) " >&6
24536else
24537 # One or both of the vars are not set, and there is no cached value.
24538ac_x_includes=no ac_x_libraries=no
24539rm -f -r conftest.dir
24540if mkdir conftest.dir; then
24541 cd conftest.dir
24542 cat >Imakefile <<'_ACEOF'
24543incroot:
24544 @echo incroot='${INCROOT}'
24545usrlibdir:
24546 @echo usrlibdir='${USRLIBDIR}'
24547libdir:
24548 @echo libdir='${LIBDIR}'
24549_ACEOF
24550 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristyfd9dcd42010-08-08 18:07:02 +000024551 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000024552 for ac_var in incroot usrlibdir libdir; do
24553 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24554 done
24555 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24556 for ac_extension in a so sl dylib la dll; do
24557 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24558 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24559 ac_im_usrlibdir=$ac_im_libdir; break
24560 fi
24561 done
24562 # Screen out bogus values from the imake configuration. They are
24563 # bogus both because they are the default anyway, and because
24564 # using them would break gcc on systems where it needs fixed includes.
24565 case $ac_im_incroot in
24566 /usr/include) ac_x_includes= ;;
24567 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24568 esac
24569 case $ac_im_usrlibdir in
24570 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24571 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24572 esac
24573 fi
24574 cd ..
24575 rm -f -r conftest.dir
24576fi
24577
24578# Standard set of common directories for X headers.
24579# Check X11 before X11Rn because it is often a symlink to the current release.
24580ac_x_header_dirs='
24581/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000024582/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024583/usr/X11R6/include
24584/usr/X11R5/include
24585/usr/X11R4/include
24586
24587/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000024588/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024589/usr/include/X11R6
24590/usr/include/X11R5
24591/usr/include/X11R4
24592
24593/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000024594/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024595/usr/local/X11R6/include
24596/usr/local/X11R5/include
24597/usr/local/X11R4/include
24598
24599/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000024600/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024601/usr/local/include/X11R6
24602/usr/local/include/X11R5
24603/usr/local/include/X11R4
24604
24605/usr/X386/include
24606/usr/x386/include
24607/usr/XFree86/include/X11
24608
24609/usr/include
24610/usr/local/include
24611/usr/unsupported/include
24612/usr/athena/include
24613/usr/local/x11r5/include
24614/usr/lpp/Xamples/include
24615
24616/usr/openwin/include
24617/usr/openwin/share/include'
24618
24619if test "$ac_x_includes" = no; then
24620 # Guess where to find include files, by looking for Xlib.h.
24621 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000024622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024623/* end confdefs.h. */
24624#include <X11/Xlib.h>
24625_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024626if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024627 # We can compile using X headers with no special include directory.
24628ac_x_includes=
24629else
cristyc7083c12009-10-14 03:16:55 +000024630 for ac_dir in $ac_x_header_dirs; do
24631 if test -r "$ac_dir/X11/Xlib.h"; then
24632 ac_x_includes=$ac_dir
24633 break
24634 fi
24635done
24636fi
cristyc7083c12009-10-14 03:16:55 +000024637rm -f conftest.err conftest.$ac_ext
24638fi # $ac_x_includes = no
24639
24640if test "$ac_x_libraries" = no; then
24641 # Check for the libraries.
24642 # See if we find them without any special options.
24643 # Don't add to $LIBS permanently.
24644 ac_save_LIBS=$LIBS
24645 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024647/* end confdefs.h. */
24648#include <X11/Xlib.h>
24649int
24650main ()
24651{
24652XrmInitialize ()
24653 ;
24654 return 0;
24655}
24656_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024657if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024658 LIBS=$ac_save_LIBS
24659# We can link X programs with no special library path.
24660ac_x_libraries=
24661else
cristy8b350f62009-11-15 23:12:43 +000024662 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000024663for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24664do
24665 # Don't even attempt the hair of trying to link an X program!
24666 for ac_extension in a so sl dylib la dll; do
24667 if test -r "$ac_dir/libX11.$ac_extension"; then
24668 ac_x_libraries=$ac_dir
24669 break 2
24670 fi
24671 done
24672done
24673fi
cristy8b350f62009-11-15 23:12:43 +000024674rm -f core conftest.err conftest.$ac_objext \
24675 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024676fi # $ac_x_libraries = no
24677
24678case $ac_x_includes,$ac_x_libraries in #(
24679 no,* | *,no | *\'*)
24680 # Didn't find X, or a directory has "'" in its name.
24681 ac_cv_have_x="have_x=no";; #(
24682 *)
24683 # Record where we found X for the cache.
24684 ac_cv_have_x="have_x=yes\
24685 ac_x_includes='$ac_x_includes'\
24686 ac_x_libraries='$ac_x_libraries'"
24687esac
24688fi
24689;; #(
24690 *) have_x=yes;;
24691 esac
24692 eval "$ac_cv_have_x"
24693fi # $with_x != no
24694
24695if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000024696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000024697$as_echo "$have_x" >&6; }
24698 no_x=yes
24699else
24700 # If each of the values was on the command line, it overrides each guess.
24701 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24702 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24703 # Update the cache value to reflect the command line values.
24704 ac_cv_have_x="have_x=yes\
24705 ac_x_includes='$x_includes'\
24706 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000024707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000024708$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24709fi
24710
cristy3ed852e2009-09-05 21:47:34 +000024711if test "$no_x" = yes; then
24712 # Not all programs may use this symbol, but it does not hurt to define it.
24713
cristy8b350f62009-11-15 23:12:43 +000024714$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024715
24716 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24717else
24718 if test -n "$x_includes"; then
24719 X_CFLAGS="$X_CFLAGS -I$x_includes"
24720 fi
24721
24722 # It would also be nice to do this for all -L options, not just this one.
24723 if test -n "$x_libraries"; then
24724 X_LIBS="$X_LIBS -L$x_libraries"
24725 # For Solaris; some versions of Sun CC require a space after -R and
24726 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000024727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000024728$as_echo_n "checking whether -R must be followed by a space... " >&6; }
24729 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24730 ac_xsave_c_werror_flag=$ac_c_werror_flag
24731 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000024732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024733/* end confdefs.h. */
24734
24735int
24736main ()
24737{
24738
24739 ;
24740 return 0;
24741}
24742_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024743if ac_fn_c_try_link "$LINENO"; then :
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024745$as_echo "no" >&6; }
24746 X_LIBS="$X_LIBS -R$x_libraries"
24747else
cristy8b350f62009-11-15 23:12:43 +000024748 LIBS="$ac_xsave_LIBS -R $x_libraries"
24749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024750/* end confdefs.h. */
24751
24752int
24753main ()
24754{
24755
24756 ;
24757 return 0;
24758}
24759_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024760if ac_fn_c_try_link "$LINENO"; then :
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024762$as_echo "yes" >&6; }
24763 X_LIBS="$X_LIBS -R $x_libraries"
24764else
cristy8b350f62009-11-15 23:12:43 +000024765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024766$as_echo "neither works" >&6; }
24767fi
cristy8b350f62009-11-15 23:12:43 +000024768rm -f core conftest.err conftest.$ac_objext \
24769 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024770fi
cristy8b350f62009-11-15 23:12:43 +000024771rm -f core conftest.err conftest.$ac_objext \
24772 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024773 ac_c_werror_flag=$ac_xsave_c_werror_flag
24774 LIBS=$ac_xsave_LIBS
24775 fi
24776
24777 # Check for system-dependent libraries X programs must link with.
24778 # Do this before checking for the system-independent R6 libraries
24779 # (-lICE), since we may need -lsocket or whatever for X linking.
24780
24781 if test "$ISC" = yes; then
24782 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24783 else
24784 # Martyn Johnson says this is needed for Ultrix, if the X
24785 # libraries were built with DECnet support. And Karl Berry says
24786 # the Alpha needs dnet_stub (dnet does not exist).
24787 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000024788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024789/* end confdefs.h. */
24790
24791/* Override any GCC internal prototype to avoid an error.
24792 Use char because int might match the return type of a GCC
24793 builtin and then its argument prototype would still apply. */
24794#ifdef __cplusplus
24795extern "C"
24796#endif
24797char XOpenDisplay ();
24798int
24799main ()
24800{
24801return XOpenDisplay ();
24802 ;
24803 return 0;
24804}
24805_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024806if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024807
cristy8b350f62009-11-15 23:12:43 +000024808else
24809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000024810$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024811if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024812 $as_echo_n "(cached) " >&6
24813else
24814 ac_check_lib_save_LIBS=$LIBS
24815LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024817/* end confdefs.h. */
24818
24819/* Override any GCC internal prototype to avoid an error.
24820 Use char because int might match the return type of a GCC
24821 builtin and then its argument prototype would still apply. */
24822#ifdef __cplusplus
24823extern "C"
24824#endif
24825char dnet_ntoa ();
24826int
24827main ()
24828{
24829return dnet_ntoa ();
24830 ;
24831 return 0;
24832}
24833_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024834if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024835 ac_cv_lib_dnet_dnet_ntoa=yes
24836else
cristy8b350f62009-11-15 23:12:43 +000024837 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000024838fi
cristy8b350f62009-11-15 23:12:43 +000024839rm -f core conftest.err conftest.$ac_objext \
24840 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024841LIBS=$ac_check_lib_save_LIBS
24842fi
cristy8b350f62009-11-15 23:12:43 +000024843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000024844$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024845if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024846 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24847fi
24848
24849 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000024850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000024851$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024852if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024853 $as_echo_n "(cached) " >&6
24854else
24855 ac_check_lib_save_LIBS=$LIBS
24856LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024858/* end confdefs.h. */
24859
24860/* Override any GCC internal prototype to avoid an error.
24861 Use char because int might match the return type of a GCC
24862 builtin and then its argument prototype would still apply. */
24863#ifdef __cplusplus
24864extern "C"
24865#endif
24866char dnet_ntoa ();
24867int
24868main ()
24869{
24870return dnet_ntoa ();
24871 ;
24872 return 0;
24873}
24874_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024875if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024876 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24877else
cristy8b350f62009-11-15 23:12:43 +000024878 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000024879fi
cristy8b350f62009-11-15 23:12:43 +000024880rm -f core conftest.err conftest.$ac_objext \
24881 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024882LIBS=$ac_check_lib_save_LIBS
24883fi
cristy8b350f62009-11-15 23:12:43 +000024884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000024885$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024886if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024887 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24888fi
24889
24890 fi
24891fi
cristy8b350f62009-11-15 23:12:43 +000024892rm -f core conftest.err conftest.$ac_objext \
24893 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024894 LIBS="$ac_xsave_LIBS"
24895
24896 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24897 # to get the SysV transport functions.
24898 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24899 # needs -lnsl.
24900 # The nsl library prevents programs from opening the X display
24901 # on Irix 5.2, according to T.E. Dickey.
24902 # The functions gethostbyname, getservbyname, and inet_addr are
24903 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000024904 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24905if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024906
cristy3ed852e2009-09-05 21:47:34 +000024907fi
24908
cristy3ed852e2009-09-05 21:47:34 +000024909 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000024910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000024911$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024912if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024913 $as_echo_n "(cached) " >&6
24914else
24915 ac_check_lib_save_LIBS=$LIBS
24916LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024918/* end confdefs.h. */
24919
24920/* Override any GCC internal prototype to avoid an error.
24921 Use char because int might match the return type of a GCC
24922 builtin and then its argument prototype would still apply. */
24923#ifdef __cplusplus
24924extern "C"
24925#endif
24926char gethostbyname ();
24927int
24928main ()
24929{
24930return gethostbyname ();
24931 ;
24932 return 0;
24933}
24934_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024935if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024936 ac_cv_lib_nsl_gethostbyname=yes
24937else
cristy8b350f62009-11-15 23:12:43 +000024938 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000024939fi
cristy8b350f62009-11-15 23:12:43 +000024940rm -f core conftest.err conftest.$ac_objext \
24941 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024942LIBS=$ac_check_lib_save_LIBS
24943fi
cristy8b350f62009-11-15 23:12:43 +000024944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000024945$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024946if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024947 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24948fi
24949
24950 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000024951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000024952$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024953if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024954 $as_echo_n "(cached) " >&6
24955else
24956 ac_check_lib_save_LIBS=$LIBS
24957LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024959/* end confdefs.h. */
24960
24961/* Override any GCC internal prototype to avoid an error.
24962 Use char because int might match the return type of a GCC
24963 builtin and then its argument prototype would still apply. */
24964#ifdef __cplusplus
24965extern "C"
24966#endif
24967char gethostbyname ();
24968int
24969main ()
24970{
24971return gethostbyname ();
24972 ;
24973 return 0;
24974}
24975_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024976if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024977 ac_cv_lib_bsd_gethostbyname=yes
24978else
cristy8b350f62009-11-15 23:12:43 +000024979 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000024980fi
cristy8b350f62009-11-15 23:12:43 +000024981rm -f core conftest.err conftest.$ac_objext \
24982 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024983LIBS=$ac_check_lib_save_LIBS
24984fi
cristy8b350f62009-11-15 23:12:43 +000024985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000024986$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024987if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024988 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24989fi
24990
24991 fi
24992 fi
24993
24994 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24995 # socket/setsockopt and other routines are undefined under SCO ODT
24996 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24997 # on later versions), says Simon Leinen: it contains gethostby*
24998 # variants that don't use the name server (or something). -lsocket
24999 # must be given before -lnsl if both are needed. We assume that
25000 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000025001 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25002if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025003
cristy3ed852e2009-09-05 21:47:34 +000025004fi
25005
cristy3ed852e2009-09-05 21:47:34 +000025006 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000025007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000025008$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025009if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025010 $as_echo_n "(cached) " >&6
25011else
25012 ac_check_lib_save_LIBS=$LIBS
25013LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025015/* end confdefs.h. */
25016
25017/* Override any GCC internal prototype to avoid an error.
25018 Use char because int might match the return type of a GCC
25019 builtin and then its argument prototype would still apply. */
25020#ifdef __cplusplus
25021extern "C"
25022#endif
25023char connect ();
25024int
25025main ()
25026{
25027return connect ();
25028 ;
25029 return 0;
25030}
25031_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025032if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025033 ac_cv_lib_socket_connect=yes
25034else
cristy8b350f62009-11-15 23:12:43 +000025035 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000025036fi
cristy8b350f62009-11-15 23:12:43 +000025037rm -f core conftest.err conftest.$ac_objext \
25038 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025039LIBS=$ac_check_lib_save_LIBS
25040fi
cristy8b350f62009-11-15 23:12:43 +000025041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000025042$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025043if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025044 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25045fi
25046
25047 fi
25048
25049 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000025050 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25051if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025052
cristy3ed852e2009-09-05 21:47:34 +000025053fi
25054
cristy3ed852e2009-09-05 21:47:34 +000025055 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000025056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000025057$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025058if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025059 $as_echo_n "(cached) " >&6
25060else
25061 ac_check_lib_save_LIBS=$LIBS
25062LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025064/* end confdefs.h. */
25065
25066/* Override any GCC internal prototype to avoid an error.
25067 Use char because int might match the return type of a GCC
25068 builtin and then its argument prototype would still apply. */
25069#ifdef __cplusplus
25070extern "C"
25071#endif
25072char remove ();
25073int
25074main ()
25075{
25076return remove ();
25077 ;
25078 return 0;
25079}
25080_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025081if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025082 ac_cv_lib_posix_remove=yes
25083else
cristy8b350f62009-11-15 23:12:43 +000025084 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000025085fi
cristy8b350f62009-11-15 23:12:43 +000025086rm -f core conftest.err conftest.$ac_objext \
25087 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025088LIBS=$ac_check_lib_save_LIBS
25089fi
cristy8b350f62009-11-15 23:12:43 +000025090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000025091$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025092if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025093 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25094fi
25095
25096 fi
25097
25098 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000025099 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25100if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025101
cristy3ed852e2009-09-05 21:47:34 +000025102fi
25103
cristy3ed852e2009-09-05 21:47:34 +000025104 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000025105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025106$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025107if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025108 $as_echo_n "(cached) " >&6
25109else
25110 ac_check_lib_save_LIBS=$LIBS
25111LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025113/* end confdefs.h. */
25114
25115/* Override any GCC internal prototype to avoid an error.
25116 Use char because int might match the return type of a GCC
25117 builtin and then its argument prototype would still apply. */
25118#ifdef __cplusplus
25119extern "C"
25120#endif
25121char shmat ();
25122int
25123main ()
25124{
25125return shmat ();
25126 ;
25127 return 0;
25128}
25129_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025130if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025131 ac_cv_lib_ipc_shmat=yes
25132else
cristy8b350f62009-11-15 23:12:43 +000025133 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000025134fi
cristy8b350f62009-11-15 23:12:43 +000025135rm -f core conftest.err conftest.$ac_objext \
25136 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025137LIBS=$ac_check_lib_save_LIBS
25138fi
cristy8b350f62009-11-15 23:12:43 +000025139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000025140$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025141if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025142 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25143fi
25144
25145 fi
25146 fi
25147
25148 # Check for libraries that X11R6 Xt/Xaw programs need.
25149 ac_save_LDFLAGS=$LDFLAGS
25150 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25151 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25152 # check for ICE first), but we must link in the order -lSM -lICE or
25153 # we get undefined symbols. So assume we have SM if we have ICE.
25154 # These have to be linked with before -lX11, unlike the other
25155 # libraries we check for below, so use a different variable.
25156 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000025157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025158$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025159if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025160 $as_echo_n "(cached) " >&6
25161else
25162 ac_check_lib_save_LIBS=$LIBS
25163LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025165/* end confdefs.h. */
25166
25167/* Override any GCC internal prototype to avoid an error.
25168 Use char because int might match the return type of a GCC
25169 builtin and then its argument prototype would still apply. */
25170#ifdef __cplusplus
25171extern "C"
25172#endif
25173char IceConnectionNumber ();
25174int
25175main ()
25176{
25177return IceConnectionNumber ();
25178 ;
25179 return 0;
25180}
25181_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025182if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025183 ac_cv_lib_ICE_IceConnectionNumber=yes
25184else
cristy8b350f62009-11-15 23:12:43 +000025185 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000025186fi
cristy8b350f62009-11-15 23:12:43 +000025187rm -f core conftest.err conftest.$ac_objext \
25188 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025189LIBS=$ac_check_lib_save_LIBS
25190fi
cristy8b350f62009-11-15 23:12:43 +000025191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000025192$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025193if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025194 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25195fi
25196
25197 LDFLAGS=$ac_save_LDFLAGS
25198
25199fi
25200
25201if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025203$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000025205$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025207$as_echo "" >&6; }
25208 LDFLAGS="$LDFLAGS $X_LIBS"
25209 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25210 LIBS="$X11_LIBS $LIBS"
25211 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25212
25213
cristy8b350f62009-11-15 23:12:43 +000025214$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025215
25216 #
25217 # Check for X11 shared memory extension
25218 #
25219 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000025220 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25221if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025222 have_shmctl='yes'
25223fi
25224
25225 if test "$have_shmctl" != 'yes'; then
25226 PERSIST_LIBS=$LIBS
25227 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000025228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025229/* end confdefs.h. */
25230
25231/* Override any GCC internal prototype to avoid an error.
25232 Use char because int might match the return type of a GCC
25233 builtin and then its argument prototype would still apply. */
25234#ifdef __cplusplus
25235extern "C"
25236#endif
25237char shmctl ();
25238int
25239main ()
25240{
25241return shmctl ();
25242 ;
25243 return 0;
25244}
25245_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025246if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025247 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000025248fi
cristy8b350f62009-11-15 23:12:43 +000025249rm -f core conftest.err conftest.$ac_objext \
25250 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025251 LIBS=$PERSIST_LIBS
25252 fi
25253
25254 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025256$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025257if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025258 $as_echo_n "(cached) " >&6
25259else
25260 ac_check_lib_save_LIBS=$LIBS
25261LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025263/* end confdefs.h. */
25264
25265/* Override any GCC internal prototype to avoid an error.
25266 Use char because int might match the return type of a GCC
25267 builtin and then its argument prototype would still apply. */
25268#ifdef __cplusplus
25269extern "C"
25270#endif
25271char XShmAttach ();
25272int
25273main ()
25274{
25275return XShmAttach ();
25276 ;
25277 return 0;
25278}
25279_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025280if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025281 ac_cv_lib_Xext_XShmAttach=yes
25282else
cristy8b350f62009-11-15 23:12:43 +000025283 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025284fi
cristy8b350f62009-11-15 23:12:43 +000025285rm -f core conftest.err conftest.$ac_objext \
25286 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025287LIBS=$ac_check_lib_save_LIBS
25288fi
cristy8b350f62009-11-15 23:12:43 +000025289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025290$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025291if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025292 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025293$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025294
25295fi
25296
25297 fi
25298
25299 #
25300 # Check for X11 shape extension
25301 #
cristy8b350f62009-11-15 23:12:43 +000025302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025303$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025304if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025305 $as_echo_n "(cached) " >&6
25306else
25307 ac_check_lib_save_LIBS=$LIBS
25308LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025310/* end confdefs.h. */
25311
25312/* Override any GCC internal prototype to avoid an error.
25313 Use char because int might match the return type of a GCC
25314 builtin and then its argument prototype would still apply. */
25315#ifdef __cplusplus
25316extern "C"
25317#endif
25318char XShapeCombineMask ();
25319int
25320main ()
25321{
25322return XShapeCombineMask ();
25323 ;
25324 return 0;
25325}
25326_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025327if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025328 ac_cv_lib_Xext_XShapeCombineMask=yes
25329else
cristy8b350f62009-11-15 23:12:43 +000025330 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025331fi
cristy8b350f62009-11-15 23:12:43 +000025332rm -f core conftest.err conftest.$ac_objext \
25333 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025334LIBS=$ac_check_lib_save_LIBS
25335fi
cristy8b350f62009-11-15 23:12:43 +000025336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025337$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025338if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025339 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025340$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025341
25342fi
25343
cristy8b350f62009-11-15 23:12:43 +000025344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025345$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025346if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025347 $as_echo_n "(cached) " >&6
25348else
25349 ac_check_lib_save_LIBS=$LIBS
25350LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025352/* end confdefs.h. */
25353
25354/* Override any GCC internal prototype to avoid an error.
25355 Use char because int might match the return type of a GCC
25356 builtin and then its argument prototype would still apply. */
25357#ifdef __cplusplus
25358extern "C"
25359#endif
25360char XtSetEventDispatcher ();
25361int
25362main ()
25363{
25364return XtSetEventDispatcher ();
25365 ;
25366 return 0;
25367}
25368_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025369if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025370 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25371else
cristy8b350f62009-11-15 23:12:43 +000025372 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025373fi
cristy8b350f62009-11-15 23:12:43 +000025374rm -f core conftest.err conftest.$ac_objext \
25375 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025376LIBS=$ac_check_lib_save_LIBS
25377fi
cristy8b350f62009-11-15 23:12:43 +000025378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025379$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025380if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025381 XT_LIBS='-lXt'
25382fi
25383
25384 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25385fi
25386if test "$no_x" != 'yes'; then
25387 have_x='yes'
25388else
25389 have_x='no'
25390fi
25391 if test "$have_x" = 'yes'; then
25392 X11_DELEGATE_TRUE=
25393 X11_DELEGATE_FALSE='#'
25394else
25395 X11_DELEGATE_TRUE='#'
25396 X11_DELEGATE_FALSE=
25397fi
25398
25399
25400
25401
25402
25403#
25404# Check for ZLIB
25405#
25406
25407# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025408if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025409 withval=$with_zlib; with_zlib=$withval
25410else
25411 with_zlib='yes'
25412fi
25413
25414
25415if test "$with_zlib" != 'yes'; then
25416 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25417fi
25418
25419have_zlib='no'
25420ZLIB_LIBS=''
25421if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025423$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025425$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025427$as_echo "" >&6; }
25428 ZLIB_LIBS=''
25429 failed=0
25430 passed=0
cristy8b350f62009-11-15 23:12:43 +000025431 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25432if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025433 passed=`expr $passed + 1`
25434else
25435 failed=`expr $failed + 1`
25436fi
25437
25438
cristy8b350f62009-11-15 23:12:43 +000025439 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25440if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025441 passed=`expr $passed + 1`
25442else
25443 failed=`expr $failed + 1`
25444fi
25445
25446
cristy8b350f62009-11-15 23:12:43 +000025447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025448$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025449if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025450 $as_echo_n "(cached) " >&6
25451else
25452 ac_check_lib_save_LIBS=$LIBS
25453LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025455/* end confdefs.h. */
25456
25457/* Override any GCC internal prototype to avoid an error.
25458 Use char because int might match the return type of a GCC
25459 builtin and then its argument prototype would still apply. */
25460#ifdef __cplusplus
25461extern "C"
25462#endif
25463char compress ();
25464int
25465main ()
25466{
25467return compress ();
25468 ;
25469 return 0;
25470}
25471_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025472if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025473 ac_cv_lib_z_compress=yes
25474else
cristy8b350f62009-11-15 23:12:43 +000025475 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000025476fi
cristy8b350f62009-11-15 23:12:43 +000025477rm -f core conftest.err conftest.$ac_objext \
25478 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025479LIBS=$ac_check_lib_save_LIBS
25480fi
cristy8b350f62009-11-15 23:12:43 +000025481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025482$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025483if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025484 passed=`expr $passed + 1`
25485else
25486 failed=`expr $failed + 1`
25487fi
25488
cristy8b350f62009-11-15 23:12:43 +000025489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025490$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025491if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025492 $as_echo_n "(cached) " >&6
25493else
25494 ac_check_lib_save_LIBS=$LIBS
25495LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025497/* end confdefs.h. */
25498
25499/* Override any GCC internal prototype to avoid an error.
25500 Use char because int might match the return type of a GCC
25501 builtin and then its argument prototype would still apply. */
25502#ifdef __cplusplus
25503extern "C"
25504#endif
25505char uncompress ();
25506int
25507main ()
25508{
25509return uncompress ();
25510 ;
25511 return 0;
25512}
25513_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025514if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025515 ac_cv_lib_z_uncompress=yes
25516else
cristy8b350f62009-11-15 23:12:43 +000025517 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000025518fi
cristy8b350f62009-11-15 23:12:43 +000025519rm -f core conftest.err conftest.$ac_objext \
25520 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025521LIBS=$ac_check_lib_save_LIBS
25522fi
cristy8b350f62009-11-15 23:12:43 +000025523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025524$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025525if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025526 passed=`expr $passed + 1`
25527else
25528 failed=`expr $failed + 1`
25529fi
25530
cristy8b350f62009-11-15 23:12:43 +000025531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025532$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025533if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025534 $as_echo_n "(cached) " >&6
25535else
25536 ac_check_lib_save_LIBS=$LIBS
25537LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025539/* end confdefs.h. */
25540
25541/* Override any GCC internal prototype to avoid an error.
25542 Use char because int might match the return type of a GCC
25543 builtin and then its argument prototype would still apply. */
25544#ifdef __cplusplus
25545extern "C"
25546#endif
25547char deflate ();
25548int
25549main ()
25550{
25551return deflate ();
25552 ;
25553 return 0;
25554}
25555_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025556if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025557 ac_cv_lib_z_deflate=yes
25558else
cristy8b350f62009-11-15 23:12:43 +000025559 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000025560fi
cristy8b350f62009-11-15 23:12:43 +000025561rm -f core conftest.err conftest.$ac_objext \
25562 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025563LIBS=$ac_check_lib_save_LIBS
25564fi
cristy8b350f62009-11-15 23:12:43 +000025565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025566$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025567if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025568 passed=`expr $passed + 1`
25569else
25570 failed=`expr $failed + 1`
25571fi
25572
cristy8b350f62009-11-15 23:12:43 +000025573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025574$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025575if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025576 $as_echo_n "(cached) " >&6
25577else
25578 ac_check_lib_save_LIBS=$LIBS
25579LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025581/* end confdefs.h. */
25582
25583/* Override any GCC internal prototype to avoid an error.
25584 Use char because int might match the return type of a GCC
25585 builtin and then its argument prototype would still apply. */
25586#ifdef __cplusplus
25587extern "C"
25588#endif
25589char inflate ();
25590int
25591main ()
25592{
25593return inflate ();
25594 ;
25595 return 0;
25596}
25597_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025598if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025599 ac_cv_lib_z_inflate=yes
25600else
cristy8b350f62009-11-15 23:12:43 +000025601 ac_cv_lib_z_inflate=no
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 +000025605LIBS=$ac_check_lib_save_LIBS
25606fi
cristy8b350f62009-11-15 23:12:43 +000025607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025608$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025609if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025610 passed=`expr $passed + 1`
25611else
25612 failed=`expr $failed + 1`
25613fi
25614
cristy8b350f62009-11-15 23:12:43 +000025615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025616$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025617if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025618 $as_echo_n "(cached) " >&6
25619else
25620 ac_check_lib_save_LIBS=$LIBS
25621LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025623/* end confdefs.h. */
25624
25625/* Override any GCC internal prototype to avoid an error.
25626 Use char because int might match the return type of a GCC
25627 builtin and then its argument prototype would still apply. */
25628#ifdef __cplusplus
25629extern "C"
25630#endif
25631char gzseek ();
25632int
25633main ()
25634{
25635return gzseek ();
25636 ;
25637 return 0;
25638}
25639_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025640if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025641 ac_cv_lib_z_gzseek=yes
25642else
cristy8b350f62009-11-15 23:12:43 +000025643 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000025644fi
cristy8b350f62009-11-15 23:12:43 +000025645rm -f core conftest.err conftest.$ac_objext \
25646 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025647LIBS=$ac_check_lib_save_LIBS
25648fi
cristy8b350f62009-11-15 23:12:43 +000025649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000025650$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025651if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025652 passed=`expr $passed + 1`
25653else
25654 failed=`expr $failed + 1`
25655fi
25656
cristy8b350f62009-11-15 23:12:43 +000025657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025658$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025659if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025660 $as_echo_n "(cached) " >&6
25661else
25662 ac_check_lib_save_LIBS=$LIBS
25663LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025665/* end confdefs.h. */
25666
25667/* Override any GCC internal prototype to avoid an error.
25668 Use char because int might match the return type of a GCC
25669 builtin and then its argument prototype would still apply. */
25670#ifdef __cplusplus
25671extern "C"
25672#endif
25673char gztell ();
25674int
25675main ()
25676{
25677return gztell ();
25678 ;
25679 return 0;
25680}
25681_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025682if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025683 ac_cv_lib_z_gztell=yes
25684else
cristy8b350f62009-11-15 23:12:43 +000025685 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000025686fi
cristy8b350f62009-11-15 23:12:43 +000025687rm -f core conftest.err conftest.$ac_objext \
25688 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025689LIBS=$ac_check_lib_save_LIBS
25690fi
cristy8b350f62009-11-15 23:12:43 +000025691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000025692$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025693if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025694 passed=`expr $passed + 1`
25695else
25696 failed=`expr $failed + 1`
25697fi
25698
cristy8b350f62009-11-15 23:12:43 +000025699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025700$as_echo_n "checking if ZLIB package is complete... " >&6; }
25701 if test $passed -gt 0; then
25702 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025704$as_echo "no -- some components failed test" >&6; }
25705 have_zlib='no (failed tests)'
25706 else
25707 ZLIB_LIBS='-lz'
25708 LIBS="$ZLIB_LIBS $LIBS"
25709
cristy8b350f62009-11-15 23:12:43 +000025710$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025711
cristy8b350f62009-11-15 23:12:43 +000025712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025713$as_echo "yes" >&6; }
25714 have_zlib='yes'
25715 fi
25716 else
cristy8b350f62009-11-15 23:12:43 +000025717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025718$as_echo "no" >&6; }
25719 fi
25720fi
25721 if test "$have_zlib" = 'yes'; then
25722 ZLIB_DELEGATE_TRUE=
25723 ZLIB_DELEGATE_FALSE='#'
25724else
25725 ZLIB_DELEGATE_TRUE='#'
25726 ZLIB_DELEGATE_FALSE=
25727fi
25728
25729
25730
25731#
25732# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
25733#
25734LIB_DL=''
25735if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025737$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025738if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025739 $as_echo_n "(cached) " >&6
25740else
25741 ac_check_lib_save_LIBS=$LIBS
25742LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025744/* end confdefs.h. */
25745
25746/* Override any GCC internal prototype to avoid an error.
25747 Use char because int might match the return type of a GCC
25748 builtin and then its argument prototype would still apply. */
25749#ifdef __cplusplus
25750extern "C"
25751#endif
25752char dlopen ();
25753int
25754main ()
25755{
25756return dlopen ();
25757 ;
25758 return 0;
25759}
25760_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025761if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025762 ac_cv_lib_dl_dlopen=yes
25763else
cristy8b350f62009-11-15 23:12:43 +000025764 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000025765fi
cristy8b350f62009-11-15 23:12:43 +000025766rm -f core conftest.err conftest.$ac_objext \
25767 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025768LIBS=$ac_check_lib_save_LIBS
25769fi
cristy8b350f62009-11-15 23:12:43 +000025770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000025771$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025772if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025773 LIB_DL='-ldl'
25774fi
25775
25776 LIBS="$LIB_DL $LIBS"
25777fi
25778
25779
25780
25781#
25782# Check for Autotrace delegate library.
25783#
25784
25785# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000025786if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025787 withval=$with_autotrace; with_autotrace=$withval
25788else
25789 with_autotrace='no'
25790fi
25791
25792
25793if test "$with_autotrace" != 'yes'; then
25794 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
25795fi
25796
25797have_autotrace='no'
25798AUTOTRACE_CFLAGS=""
25799AUTOTRACE_LIBS=""
25800AUTOTRACE_PKG=""
25801if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000025802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025803$as_echo "-------------------------------------------------------------" >&6; }
25804
25805pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000025806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025807$as_echo_n "checking for AUTOTRACE... " >&6; }
25808
25809if test -n "$AUTOTRACE_CFLAGS"; then
25810 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
25811 elif test -n "$PKG_CONFIG"; then
25812 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025813 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025814 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
25815 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25817 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025818 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
25819else
25820 pkg_failed=yes
25821fi
25822 else
25823 pkg_failed=untried
25824fi
25825if test -n "$AUTOTRACE_LIBS"; then
25826 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
25827 elif test -n "$PKG_CONFIG"; then
25828 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025829 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025830 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
25831 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25833 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025834 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
25835else
25836 pkg_failed=yes
25837fi
25838 else
25839 pkg_failed=untried
25840fi
25841
25842
25843
25844if test $pkg_failed = yes; then
25845
25846if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25847 _pkg_short_errors_supported=yes
25848else
25849 _pkg_short_errors_supported=no
25850fi
25851 if test $_pkg_short_errors_supported = yes; then
25852 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
25853 else
25854 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
25855 fi
25856 # Put the nasty error message in config.log where it belongs
25857 echo "$AUTOTRACE_PKG_ERRORS" >&5
25858
cristy8b350f62009-11-15 23:12:43 +000025859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025860$as_echo "no" >&6; }
25861 have_autotrace=no
25862elif test $pkg_failed = untried; then
25863 have_autotrace=no
25864else
25865 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
25866 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000025867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025868$as_echo "yes" >&6; }
25869 have_autotrace=yes
25870fi
cristy8b350f62009-11-15 23:12:43 +000025871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025872$as_echo "" >&6; }
25873fi
25874
25875if test "$have_autotrace" = 'yes'; then
25876 failed=0
25877
cristy8b350f62009-11-15 23:12:43 +000025878$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025879
25880 if test "$with_modules" = 'no'; then
25881 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
25882 fi
25883fi
25884
25885 if test "$have_autotrace" = 'yes'; then
25886 AUTOTRACE_DELEGATE_TRUE=
25887 AUTOTRACE_DELEGATE_FALSE='#'
25888else
25889 AUTOTRACE_DELEGATE_TRUE='#'
25890 AUTOTRACE_DELEGATE_FALSE=
25891fi
25892
25893
25894
25895
25896
25897#
25898# Check for Display Postscript delegate library.
25899#
25900
25901# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000025902if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025903 withval=$with_dps; with_dps=$withval
25904else
25905 with_dps='yes'
25906fi
25907
25908
25909if test "$with_dps" != 'yes'; then
25910 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
25911fi
25912
25913have_dps='no'
25914DPS_LIBS=''
25915if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025917$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000025919$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025921$as_echo "" >&6; }
25922 failed=0
25923 passed=0
25924 PERSIST_CPPFLAGS="$CPPFLAGS"
25925 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000025926 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
25927if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025928 passed=`expr $passed + 1`
25929else
25930 failed=`expr $failed + 1`
25931fi
25932
25933
25934 # DPS issues:
25935 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
25936 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
25937 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
25938 # ImageMagick itself doesn't use -lXt.
25939 have_libdps='no'
25940 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000025941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000025942$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025943if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025944 $as_echo_n "(cached) " >&6
25945else
25946 ac_check_lib_save_LIBS=$LIBS
25947LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025949/* end confdefs.h. */
25950
25951/* Override any GCC internal prototype to avoid an error.
25952 Use char because int might match the return type of a GCC
25953 builtin and then its argument prototype would still apply. */
25954#ifdef __cplusplus
25955extern "C"
25956#endif
25957char DPSInitialize ();
25958int
25959main ()
25960{
25961return DPSInitialize ();
25962 ;
25963 return 0;
25964}
25965_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025966if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025967 ac_cv_lib_dps_DPSInitialize=yes
25968else
cristy8b350f62009-11-15 23:12:43 +000025969 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000025970fi
cristy8b350f62009-11-15 23:12:43 +000025971rm -f core conftest.err conftest.$ac_objext \
25972 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025973LIBS=$ac_check_lib_save_LIBS
25974fi
cristy8b350f62009-11-15 23:12:43 +000025975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000025976$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025977if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025978 have_libdps='yes'
25979else
25980 have_libdps='no'
25981fi
25982
25983 if test "$have_libdps" != 'yes'; then
25984 # Unset cache variable so we can try again.
25985 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000025986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000025987$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025988if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025989 $as_echo_n "(cached) " >&6
25990else
25991 ac_check_lib_save_LIBS=$LIBS
25992LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025994/* end confdefs.h. */
25995
25996/* Override any GCC internal prototype to avoid an error.
25997 Use char because int might match the return type of a GCC
25998 builtin and then its argument prototype would still apply. */
25999#ifdef __cplusplus
26000extern "C"
26001#endif
26002char DPSInitialize ();
26003int
26004main ()
26005{
26006return DPSInitialize ();
26007 ;
26008 return 0;
26009}
26010_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026011if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026012 ac_cv_lib_dps_DPSInitialize=yes
26013else
cristy8b350f62009-11-15 23:12:43 +000026014 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026015fi
cristy8b350f62009-11-15 23:12:43 +000026016rm -f core conftest.err conftest.$ac_objext \
26017 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026018LIBS=$ac_check_lib_save_LIBS
26019fi
cristy8b350f62009-11-15 23:12:43 +000026020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026021$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026022if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026023 have_libdps='yes'
26024else
26025 have_libdps='no'
26026fi
26027
26028 if test "$have_libdps" = 'yes'; then
26029 LIBDPS_XT='-lXt'
26030 fi
26031 fi
26032 if test "$have_libdps" = 'yes'; then
26033 passed=`expr $passed + 1`
26034 else
26035 failed=`expr $failed + 1`
26036 fi
cristy8b350f62009-11-15 23:12:43 +000026037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026038$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026039if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026040 $as_echo_n "(cached) " >&6
26041else
26042 ac_check_lib_save_LIBS=$LIBS
26043LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026045/* end confdefs.h. */
26046
26047/* Override any GCC internal prototype to avoid an error.
26048 Use char because int might match the return type of a GCC
26049 builtin and then its argument prototype would still apply. */
26050#ifdef __cplusplus
26051extern "C"
26052#endif
26053char XDPSPixelsPerPoint ();
26054int
26055main ()
26056{
26057return XDPSPixelsPerPoint ();
26058 ;
26059 return 0;
26060}
26061_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026062if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026063 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26064else
cristy8b350f62009-11-15 23:12:43 +000026065 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000026066fi
cristy8b350f62009-11-15 23:12:43 +000026067rm -f core conftest.err conftest.$ac_objext \
26068 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026069LIBS=$ac_check_lib_save_LIBS
26070fi
cristy8b350f62009-11-15 23:12:43 +000026071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000026072$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026073if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026074 passed=`expr $passed + 1`
26075else
26076 failed=`expr $failed + 1`
26077fi
26078
cristy8b350f62009-11-15 23:12:43 +000026079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026080$as_echo_n "checking if DPS package is complete... " >&6; }
26081 if test $passed -gt 0; then
26082 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026084$as_echo "no -- some components failed test" >&6; }
26085 have_dps='no (failed tests)'
26086 CPPFLAGS="$PERSIST_CPPFLAGS"
26087 else
26088 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26089 LIBS="$DPS_LIBS $LIBS"
26090
cristy8b350f62009-11-15 23:12:43 +000026091$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026092
cristy8b350f62009-11-15 23:12:43 +000026093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026094$as_echo "yes" >&6; }
26095 have_dps='yes'
26096 fi
26097 else
cristy8b350f62009-11-15 23:12:43 +000026098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026099$as_echo "no" >&6; }
26100 CPPFLAGS=$PERSIST_CPPFLAGS
26101 fi
26102fi
26103 if test "$have_dps" = 'yes'; then
26104 DPS_DELEGATE_TRUE=
26105 DPS_DELEGATE_FALSE='#'
26106else
26107 DPS_DELEGATE_TRUE='#'
26108 DPS_DELEGATE_FALSE=
26109fi
26110
26111
26112
26113
26114#
26115# Check for DJVU delegate library.
26116#
26117
26118# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000026119if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026120 withval=$with_djvu; with_djvu=$withval
26121else
26122 with_djvu='yes'
26123fi
26124
26125
26126if test "$with_djvu" != 'yes'; then
26127 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26128fi
26129
26130have_djvu='no'
26131DJVU_LIBS=''
26132if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026134$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000026136$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026138$as_echo "" >&6; }
26139 failed=0
26140 passed=0
cristy8b350f62009-11-15 23:12:43 +000026141 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26142if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026143 passed=`expr $passed + 1`
26144else
26145 failed=`expr $failed + 1`
26146fi
26147
26148
cristy8b350f62009-11-15 23:12:43 +000026149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000026150$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026151if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026152 $as_echo_n "(cached) " >&6
26153else
26154 ac_check_lib_save_LIBS=$LIBS
26155LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026157/* end confdefs.h. */
26158
26159/* Override any GCC internal prototype to avoid an error.
26160 Use char because int might match the return type of a GCC
26161 builtin and then its argument prototype would still apply. */
26162#ifdef __cplusplus
26163extern "C"
26164#endif
26165char ddjvu_context_create ();
26166int
26167main ()
26168{
26169return ddjvu_context_create ();
26170 ;
26171 return 0;
26172}
26173_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026174if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026175 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26176else
cristy8b350f62009-11-15 23:12:43 +000026177 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000026178fi
cristy8b350f62009-11-15 23:12:43 +000026179rm -f core conftest.err conftest.$ac_objext \
26180 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026181LIBS=$ac_check_lib_save_LIBS
26182fi
cristy8b350f62009-11-15 23:12:43 +000026183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000026184$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026185if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026186 passed=`expr $passed + 1`
26187else
26188 failed=`expr $failed + 1`
26189fi
26190
cristy8b350f62009-11-15 23:12:43 +000026191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026192$as_echo_n "checking if DJVU package is complete... " >&6; }
26193 if test $passed -gt 0; then
26194 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026196$as_echo "no -- some components failed test" >&6; }
26197 have_djvu='no (failed tests)'
26198 else
26199 DJVU_LIBS='-ldjvulibre'
26200 LIBS="$DJVU_LIBS $LIBS"
26201
cristy8b350f62009-11-15 23:12:43 +000026202$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026203
cristy8b350f62009-11-15 23:12:43 +000026204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026205$as_echo "yes" >&6; }
26206 have_djvu='yes'
26207 fi
26208 else
cristy8b350f62009-11-15 23:12:43 +000026209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026210$as_echo "no" >&6; }
26211 fi
26212fi
26213 if test "$have_djvu" = 'yes'; then
26214 DJVU_DELEGATE_TRUE=
26215 DJVU_DELEGATE_FALSE='#'
26216else
26217 DJVU_DELEGATE_TRUE='#'
26218 DJVU_DELEGATE_FALSE=
26219fi
26220
26221
26222
26223
26224#
cristy430a7312010-01-21 20:44:04 +000026225# Set DejaVu font directory.
26226#
26227
26228# Check whether --with-dejavu-font-dir was given.
26229if test "${with_dejavu_font_dir+set}" = set; then :
26230 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26231else
26232 with_dejavu_font_dir='default'
26233fi
26234
26235
26236if test "$with_dejavu_font_dir" != 'default'; then
26237 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26238fi
26239
26240
26241#
cristy3ed852e2009-09-05 21:47:34 +000026242# Check for FFTW delegate library.
26243#
26244
26245# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000026246if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026247 withval=$with_fftw; with_fftw=$withval
26248else
26249 with_fftw='yes'
26250fi
26251
26252
26253if test "$with_fftw" != 'yes'; then
26254 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26255fi
26256
26257have_fftw='no'
26258FFTW_LIBS=''
26259if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026261$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026263$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026265$as_echo "" >&6; }
26266 failed=0
26267 passed=0
cristy8b350f62009-11-15 23:12:43 +000026268 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26269if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026270 passed=`expr $passed + 1`
26271else
26272 failed=`expr $failed + 1`
26273fi
26274
26275
cristy8b350f62009-11-15 23:12:43 +000026276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026277$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026278if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026279 $as_echo_n "(cached) " >&6
26280else
26281 ac_check_lib_save_LIBS=$LIBS
26282LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026284/* end confdefs.h. */
26285
26286/* Override any GCC internal prototype to avoid an error.
26287 Use char because int might match the return type of a GCC
26288 builtin and then its argument prototype would still apply. */
26289#ifdef __cplusplus
26290extern "C"
26291#endif
26292char fftw_execute ();
26293int
26294main ()
26295{
26296return fftw_execute ();
26297 ;
26298 return 0;
26299}
26300_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026301if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026302 ac_cv_lib_fftw3_fftw_execute=yes
26303else
cristy8b350f62009-11-15 23:12:43 +000026304 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026305fi
cristy8b350f62009-11-15 23:12:43 +000026306rm -f core conftest.err conftest.$ac_objext \
26307 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026308LIBS=$ac_check_lib_save_LIBS
26309fi
cristy8b350f62009-11-15 23:12:43 +000026310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026311$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026312if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026313 passed=`expr $passed + 1`
26314else
26315 failed=`expr $failed + 1`
26316fi
26317
cristy8b350f62009-11-15 23:12:43 +000026318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026319$as_echo_n "checking if FFTW package is complete... " >&6; }
26320 if test $passed -gt 0; then
26321 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026323$as_echo "no -- some components failed test" >&6; }
26324 have_fftw='no (failed tests)'
26325 else
26326 FFTW_LIBS='-lfftw3'
26327 LIBS="$FFTW_LIBS $LIBS"
26328
cristy8b350f62009-11-15 23:12:43 +000026329$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026330
cristy8b350f62009-11-15 23:12:43 +000026331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026332$as_echo "yes" >&6; }
26333 have_fftw='yes'
26334 fi
26335 else
cristy8b350f62009-11-15 23:12:43 +000026336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026337$as_echo "no" >&6; }
26338 fi
26339fi
26340 if test "$have_fftw" = 'yes'; then
26341 FFTW_DELEGATE_TRUE=
26342 FFTW_DELEGATE_FALSE='#'
26343else
26344 FFTW_DELEGATE_TRUE='#'
26345 FFTW_DELEGATE_FALSE=
26346fi
26347
26348
26349
26350
26351#
26352# Check for FlashPIX delegate library.
26353#
26354
26355# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026356if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026357 withval=$with_fpx; with_fpx=$withval
26358else
26359 with_fpx='yes'
26360fi
26361
26362
26363if test "$with_fpx" != 'yes'; then
26364 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26365fi
26366
26367have_fpx='no'
26368FPX_LIBS=''
26369if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026371$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026373$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026375$as_echo "" >&6; }
26376 failed=0
26377 passed=0
26378 ac_ext=cpp
26379ac_cpp='$CXXCPP $CPPFLAGS'
26380ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26381ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26382ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26383
26384
cristy8b350f62009-11-15 23:12:43 +000026385ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26386if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026387 passed=`expr $passed + 1`
26388else
26389 failed=`expr $failed + 1`
26390fi
26391
26392
cristy8b350f62009-11-15 23:12:43 +000026393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026394$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026395if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026396 $as_echo_n "(cached) " >&6
26397else
26398 ac_check_lib_save_LIBS=$LIBS
26399LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026401/* end confdefs.h. */
26402
26403/* Override any GCC internal prototype to avoid an error.
26404 Use char because int might match the return type of a GCC
26405 builtin and then its argument prototype would still apply. */
26406#ifdef __cplusplus
26407extern "C"
26408#endif
26409char FPX_OpenImageByFilename ();
26410int
26411main ()
26412{
26413return FPX_OpenImageByFilename ();
26414 ;
26415 return 0;
26416}
26417_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026418if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026419 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26420else
cristy8b350f62009-11-15 23:12:43 +000026421 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026422fi
cristy8b350f62009-11-15 23:12:43 +000026423rm -f core conftest.err conftest.$ac_objext \
26424 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026425LIBS=$ac_check_lib_save_LIBS
26426fi
cristy8b350f62009-11-15 23:12:43 +000026427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026428$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026429if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026430 passed=`expr $passed + 1`
26431else
26432 failed=`expr $failed + 1`
26433fi
26434
26435 ac_ext=c
26436ac_cpp='$CPP $CPPFLAGS'
26437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26439ac_compiler_gnu=$ac_cv_c_compiler_gnu
26440
cristy8b350f62009-11-15 23:12:43 +000026441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026442$as_echo_n "checking if FlashPIX package is complete... " >&6; }
26443 if test $passed -gt 0; then
26444 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026446$as_echo "no -- some components failed test" >&6; }
26447 have_fpx='no (failed tests)'
26448 else
26449 FPX_LIBS='-lfpx'
26450
cristy8b350f62009-11-15 23:12:43 +000026451$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026452
cristy8b350f62009-11-15 23:12:43 +000026453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026454$as_echo "yes" >&6; }
26455 have_fpx='yes'
26456 PERLMAINCC="$CXX"
26457 fi
26458 else
cristy8b350f62009-11-15 23:12:43 +000026459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026460$as_echo "no" >&6; }
26461 fi
26462fi
26463 if test "$have_fpx" = 'yes'; then
26464 FPX_DELEGATE_TRUE=
26465 FPX_DELEGATE_FALSE='#'
26466else
26467 FPX_DELEGATE_TRUE='#'
26468 FPX_DELEGATE_FALSE=
26469fi
26470
26471
26472
26473
26474#
26475# Check for fontconfig delegate library.
26476#
26477
26478# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000026479if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026480 withval=$with_fontconfig; with_fontconfig=$withval
26481else
26482 with_fontconfig=$have_x
26483fi
26484
26485
26486if test "$with_fontconfig" != 'yes'; then
26487 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26488fi
26489
26490have_fontconfig='no'
26491FONTCONFIG_CFLAGS=""
26492FONTCONFIG_LIBS=""
26493FONTCONFIG_PKG=""
26494if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026496$as_echo "-------------------------------------------------------------" >&6; }
26497
26498pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026500$as_echo_n "checking for FONTCONFIG... " >&6; }
26501
26502if test -n "$FONTCONFIG_CFLAGS"; then
26503 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26504 elif test -n "$PKG_CONFIG"; then
26505 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026506 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026507 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26508 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26510 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026511 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26512else
26513 pkg_failed=yes
26514fi
26515 else
26516 pkg_failed=untried
26517fi
26518if test -n "$FONTCONFIG_LIBS"; then
26519 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
26520 elif test -n "$PKG_CONFIG"; then
26521 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026522 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026523 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26524 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26526 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026527 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
26528else
26529 pkg_failed=yes
26530fi
26531 else
26532 pkg_failed=untried
26533fi
26534
26535
26536
26537if test $pkg_failed = yes; then
26538
26539if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26540 _pkg_short_errors_supported=yes
26541else
26542 _pkg_short_errors_supported=no
26543fi
26544 if test $_pkg_short_errors_supported = yes; then
26545 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
26546 else
26547 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
26548 fi
26549 # Put the nasty error message in config.log where it belongs
26550 echo "$FONTCONFIG_PKG_ERRORS" >&5
26551
cristy8b350f62009-11-15 23:12:43 +000026552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026553$as_echo "no" >&6; }
26554 have_fontconfig=no
26555elif test $pkg_failed = untried; then
26556 have_fontconfig=no
26557else
26558 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
26559 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000026560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026561$as_echo "yes" >&6; }
26562 have_fontconfig=yes
26563fi
cristy8b350f62009-11-15 23:12:43 +000026564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026565$as_echo "" >&6; }
26566fi
26567
26568if test "$have_fontconfig" = 'yes'; then
26569
cristy8b350f62009-11-15 23:12:43 +000026570$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026571
cristyd09bcf92010-03-25 03:04:45 +000026572 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000026573 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000026574 fi
cristy3ed852e2009-09-05 21:47:34 +000026575fi
26576
26577 if test "$have_fontconfig" = 'yes'; then
26578 FONTCONFIG_DELEGATE_TRUE=
26579 FONTCONFIG_DELEGATE_FALSE='#'
26580else
26581 FONTCONFIG_DELEGATE_TRUE='#'
26582 FONTCONFIG_DELEGATE_FALSE=
26583fi
26584
26585
26586
26587
26588
26589#
26590# Check for freetype delegate library.
26591#
26592
26593# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000026594if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026595 withval=$with_freetype; with_freetype=$withval
26596else
26597 with_freetype='yes'
26598fi
26599
26600
26601
26602if test "$with_freetype" != 'yes'; then
26603 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
26604fi
26605
26606have_freetype='no'
26607FREETYPE_LIBS=''
26608if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026610$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000026612$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026614$as_echo "" >&6; }
26615 failed=0
26616 passed=0
cristy66291112009-10-03 22:44:36 +000026617 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000026618 PERSIST_CPPFLAGS="$CPPFLAGS"
26619 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
26620 :
26621 else
26622 freetype_config=''
26623 for ac_prog in freetype-config
26624do
26625 # Extract the first word of "$ac_prog", so it can be a program name with args.
26626set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026628$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026629if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026630 $as_echo_n "(cached) " >&6
26631else
26632 if test -n "$freetype_config"; then
26633 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
26634else
26635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26636for as_dir in $PATH
26637do
26638 IFS=$as_save_IFS
26639 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026640 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26642 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026644 break 2
26645 fi
26646done
cristy8b350f62009-11-15 23:12:43 +000026647 done
cristy3ed852e2009-09-05 21:47:34 +000026648IFS=$as_save_IFS
26649
26650fi
26651fi
26652freetype_config=$ac_cv_prog_freetype_config
26653if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000026654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000026655$as_echo "$freetype_config" >&6; }
26656else
cristy8b350f62009-11-15 23:12:43 +000026657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026658$as_echo "no" >&6; }
26659fi
26660
26661
26662 test -n "$freetype_config" && break
26663done
26664 if test -n "$freetype_config"; then
26665 freetype_cflags=`$freetype_config --cflags`
26666 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000026667 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000026668 CPPFLAGS="$freetype_cflags $CPPFLAGS"
26669 fi
26670 fi
26671
26672 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000026673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000026674$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026675if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026676 $as_echo_n "(cached) " >&6
26677else
26678 ac_check_lib_save_LIBS=$LIBS
26679LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026681/* end confdefs.h. */
26682
26683/* Override any GCC internal prototype to avoid an error.
26684 Use char because int might match the return type of a GCC
26685 builtin and then its argument prototype would still apply. */
26686#ifdef __cplusplus
26687extern "C"
26688#endif
26689char FT_Init_FreeType ();
26690int
26691main ()
26692{
26693return FT_Init_FreeType ();
26694 ;
26695 return 0;
26696}
26697_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026698if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026699 ac_cv_lib_freetype_FT_Init_FreeType=yes
26700else
cristy8b350f62009-11-15 23:12:43 +000026701 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000026702fi
cristy8b350f62009-11-15 23:12:43 +000026703rm -f core conftest.err conftest.$ac_objext \
26704 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026705LIBS=$ac_check_lib_save_LIBS
26706fi
cristy8b350f62009-11-15 23:12:43 +000026707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000026708$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026709if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026710 FREETYPE_LIBS='-lfreetype'
26711fi
26712
26713 if test "$FREETYPE_LIBS" != ''; then
26714 passed=`expr $passed + 1`
26715 else
26716 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000026717 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000026718 fi
26719 fi
26720
cristy8b350f62009-11-15 23:12:43 +000026721 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
26722if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026723 FT2BUILD_H='#include <ft2build.h>'
26724else
26725 ft2build=''
26726fi
26727
26728
cristy8b350f62009-11-15 23:12:43 +000026729 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
26730"
26731if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026732 have_freetype_h='yes'
26733else
26734 have_freetype_h='no'
26735fi
26736
26737
26738 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
26739 passed=`expr $passed + 1`
26740 else
26741 failed=`expr $failed + 1`
26742 CPPFLAGS="$PERSIST_CPPFLAGS"
26743 fi
26744
cristy8b350f62009-11-15 23:12:43 +000026745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026746$as_echo_n "checking if FreeType package is complete... " >&6; }
26747 if test $passed -gt 0; then
26748 if test $failed -gt 0; then
26749 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026751$as_echo "no -- some components failed test" >&6; }
26752 have_freetype='no (failed tests)'
26753 else
26754 LIBS="$FREETYPE_LIBS $LIBS"
26755
cristy8b350f62009-11-15 23:12:43 +000026756$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026757
26758 if test "$ac_cv_header_ft2build_h" = 'yes'; then
26759
cristy8b350f62009-11-15 23:12:43 +000026760$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026761
26762 fi
cristy8b350f62009-11-15 23:12:43 +000026763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026764$as_echo "yes" >&6; }
26765 have_freetype='yes'
26766 fi
26767 else
cristy8b350f62009-11-15 23:12:43 +000026768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026769$as_echo "no" >&6; }
26770 fi
26771fi
26772 if test "$have_freetype" = 'yes'; then
26773 FREETYPE_DELEGATE_TRUE=
26774 FREETYPE_DELEGATE_FALSE='#'
26775else
26776 FREETYPE_DELEGATE_TRUE='#'
26777 FREETYPE_DELEGATE_FALSE=
26778fi
26779
26780
26781
26782
26783
26784#
26785# Check for Ghostscript library or framework.
26786#
26787# Test for iapi.h & test for gsapi_new_instance in -lgs
26788# or -framework Ghostscript
26789
26790
26791# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000026792if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026793 withval=$with_gslib; with_gslib=$withval
26794else
26795 with_gslib='no'
26796fi
26797
26798
cristyb7931f12009-09-25 10:22:21 +000026799gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000026800if test "$with_gslib" != 'yes'; then
26801 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
26802fi
26803
26804have_gslib='no'
26805GS_LIBS=''
26806if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026808$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000026810$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026812$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000026813 framework=0
cristy3ed852e2009-09-05 21:47:34 +000026814 failed=0
26815 passed=0
cristy8b350f62009-11-15 23:12:43 +000026816 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
26817if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026818 passed=`expr $passed + 1`
26819else
26820 failed=`expr $failed + 1`
26821fi
26822
26823
cristy8b350f62009-11-15 23:12:43 +000026824 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
26825if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026826 passed=`expr $passed + 1`
26827else
26828 failed=`expr $failed + 1`
26829fi
26830
26831
cristy8b350f62009-11-15 23:12:43 +000026832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000026833$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026834if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026835 $as_echo_n "(cached) " >&6
26836else
26837 ac_check_framework_save_LIBS=$LIBS
26838LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026840/* end confdefs.h. */
26841
26842/* Override any GCC internal prototype to avoid an error.
26843 Use char because int might match the return type of a GCC
26844 builtin and then its argument prototype would still apply. */
26845#ifdef __cplusplus
26846extern "C"
26847#endif
26848char gsapi_new_instance ();
26849int
26850main ()
26851{
26852return gsapi_new_instance ();
26853 ;
26854 return 0;
26855}
26856_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026857if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026858 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
26859else
cristy8b350f62009-11-15 23:12:43 +000026860 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000026861fi
cristy8b350f62009-11-15 23:12:43 +000026862rm -f core conftest.err conftest.$ac_objext \
26863 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026864LIBS=$ac_check_framework_save_LIBS
26865fi
cristy8b350f62009-11-15 23:12:43 +000026866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000026867$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026868if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026869 framework=`expr $framework + 1`
26870else
cristy8b350f62009-11-15 23:12:43 +000026871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000026872$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026873if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026874 $as_echo_n "(cached) " >&6
26875else
26876 ac_check_lib_save_LIBS=$LIBS
26877LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026879/* end confdefs.h. */
26880
26881/* Override any GCC internal prototype to avoid an error.
26882 Use char because int might match the return type of a GCC
26883 builtin and then its argument prototype would still apply. */
26884#ifdef __cplusplus
26885extern "C"
26886#endif
26887char gsapi_new_instance ();
26888int
26889main ()
26890{
26891return gsapi_new_instance ();
26892 ;
26893 return 0;
26894}
26895_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026896if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026897 ac_cv_lib_gs_gsapi_new_instance=yes
26898else
cristy8b350f62009-11-15 23:12:43 +000026899 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000026900fi
cristy8b350f62009-11-15 23:12:43 +000026901rm -f core conftest.err conftest.$ac_objext \
26902 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026903LIBS=$ac_check_lib_save_LIBS
26904fi
cristy8b350f62009-11-15 23:12:43 +000026905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000026906$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026907if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026908 passed=`expr $passed + 1`
26909else
26910 failed=`expr $failed + 1`
26911fi
26912
26913fi
cristy8b350f62009-11-15 23:12:43 +000026914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026915$as_echo_n "checking if Ghostscript package is complete... " >&6; }
26916 if test $passed -gt 0; then
26917 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026919$as_echo "no -- some components failed test" >&6; }
26920 have_gslib='no (failed tests)'
26921 else
26922 if test $framework -gt 0; then
26923 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000026924 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000026925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000026926$as_echo "yes, using framework." >&6; }
26927 else
cristy8b350f62009-11-15 23:12:43 +000026928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000026929$as_echo "yes, using library." >&6; }
26930 GS_LIBS='-lgs'
26931 fi
26932 LIBS="$GS_LIBS $LIBS"
26933
cristy8b350f62009-11-15 23:12:43 +000026934$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026935
26936 have_gslib='yes'
26937 fi
26938 else
cristy8b350f62009-11-15 23:12:43 +000026939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026940$as_echo "no" >&6; }
26941 fi
26942fi
26943 if test "$have_gslib" = 'yes'; then
26944 GS_DELEGATE_TRUE=
26945 GS_DELEGATE_FALSE='#'
26946else
26947 GS_DELEGATE_TRUE='#'
26948 GS_DELEGATE_FALSE=
26949fi
26950
26951
26952
26953# Set default font search path
26954
26955# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000026956if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026957 withval=$with_fontpath; with_fontpath=$withval
26958else
26959 with_fontpath=''
26960fi
26961
26962
26963if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
26964 with_fontpath=''
26965else
26966
26967cat >>confdefs.h <<_ACEOF
26968#define MAGICK_FONT_PATH "$with_fontpath"
26969_ACEOF
26970
26971fi
26972if test "$with_fontpath=" != ''; then
26973 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
26974fi
26975
26976# Set Ghostscript font directory
26977
26978# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000026979if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026980 withval=$with_gs_font_dir; with_gs_font_dir=$withval
26981else
26982 with_gs_font_dir='default'
26983fi
26984
26985
26986if test "$with_gs_font_dir" != 'default'; then
26987 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
26988fi
26989
26990
26991#
26992# Check for GVC delegate library.
26993#
26994
26995# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000026996if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026997 withval=$with_gvc; with_gvc=$withval
26998else
26999 with_gvc='yes'
27000fi
27001
27002
27003if test "$with_gvc" != 'yes'; then
27004 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27005fi
27006
27007GVC_PKG=""
27008if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027010$as_echo "-------------------------------------------------------------" >&6; }
27011
27012pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000027014$as_echo_n "checking for GVC... " >&6; }
27015
27016if test -n "$GVC_CFLAGS"; then
27017 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27018 elif test -n "$PKG_CONFIG"; then
27019 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027020 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027021 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27022 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27024 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027025 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27026else
27027 pkg_failed=yes
27028fi
27029 else
27030 pkg_failed=untried
27031fi
27032if test -n "$GVC_LIBS"; then
27033 pkg_cv_GVC_LIBS="$GVC_LIBS"
27034 elif test -n "$PKG_CONFIG"; then
27035 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027036 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027037 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27038 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27040 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027041 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27042else
27043 pkg_failed=yes
27044fi
27045 else
27046 pkg_failed=untried
27047fi
27048
27049
27050
27051if test $pkg_failed = yes; then
27052
27053if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27054 _pkg_short_errors_supported=yes
27055else
27056 _pkg_short_errors_supported=no
27057fi
27058 if test $_pkg_short_errors_supported = yes; then
27059 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27060 else
27061 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27062 fi
27063 # Put the nasty error message in config.log where it belongs
27064 echo "$GVC_PKG_ERRORS" >&5
27065
cristy8b350f62009-11-15 23:12:43 +000027066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027067$as_echo "no" >&6; }
27068 have_gvc=no
27069elif test $pkg_failed = untried; then
27070 have_gvc=no
27071else
27072 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27073 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000027074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027075$as_echo "yes" >&6; }
27076 have_gvc=yes
27077fi
cristy8b350f62009-11-15 23:12:43 +000027078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027079$as_echo "" >&6; }
27080fi
27081
27082if test "$have_gvc" = 'yes'; then
27083
cristy8b350f62009-11-15 23:12:43 +000027084$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027085
27086 if test "$with_modules" = 'no'; then
27087 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27088 fi
27089fi
27090
27091 if test "$have_gvc" = 'yes'; then
27092 GVC_DELEGATE_TRUE=
27093 GVC_DELEGATE_FALSE='#'
27094else
27095 GVC_DELEGATE_TRUE='#'
27096 GVC_DELEGATE_FALSE=
27097fi
27098
27099
27100
27101
27102
27103#
27104# Check for JBIG delegate library.
27105#
27106
27107
27108# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000027109if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027110 withval=$with_jbig; with_jbig=$withval
27111else
27112 with_jbig='yes'
27113fi
27114
27115
27116have_jbig='no'
27117JBIG_LIBS=''
27118if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027120$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027122$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027124$as_echo "" >&6; }
27125 failed=0
27126 passed=0
cristy8b350f62009-11-15 23:12:43 +000027127 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27128if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027129 passed=`expr $passed + 1`
27130else
27131 failed=`expr $failed + 1`
27132fi
27133
27134
cristy8b350f62009-11-15 23:12:43 +000027135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000027136$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027137if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027138 $as_echo_n "(cached) " >&6
27139else
27140 ac_check_lib_save_LIBS=$LIBS
27141LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027143/* end confdefs.h. */
27144
27145/* Override any GCC internal prototype to avoid an error.
27146 Use char because int might match the return type of a GCC
27147 builtin and then its argument prototype would still apply. */
27148#ifdef __cplusplus
27149extern "C"
27150#endif
27151char jbg_dec_init ();
27152int
27153main ()
27154{
27155return jbg_dec_init ();
27156 ;
27157 return 0;
27158}
27159_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027160if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027161 ac_cv_lib_jbig_jbg_dec_init=yes
27162else
cristy8b350f62009-11-15 23:12:43 +000027163 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000027164fi
cristy8b350f62009-11-15 23:12:43 +000027165rm -f core conftest.err conftest.$ac_objext \
27166 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027167LIBS=$ac_check_lib_save_LIBS
27168fi
cristy8b350f62009-11-15 23:12:43 +000027169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000027170$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027171if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027172 passed=`expr $passed + 1`
27173else
27174 failed=`expr $failed + 1`
27175fi
27176
cristy8b350f62009-11-15 23:12:43 +000027177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027178$as_echo_n "checking if JBIG package is complete... " >&6; }
27179 if test $passed -gt 0; then
27180 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027182$as_echo "no -- some components failed test" >&6; }
27183 have_jbig='no (failed tests)'
27184 else
27185 JBIG_LIBS='-ljbig'
27186 LIBS="$JBIG_LIBS $LIBS"
27187
cristy8b350f62009-11-15 23:12:43 +000027188$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027189
cristy8b350f62009-11-15 23:12:43 +000027190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027191$as_echo "yes" >&6; }
27192 have_jbig='yes'
27193 fi
27194 else
cristy8b350f62009-11-15 23:12:43 +000027195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027196$as_echo "no" >&6; }
27197 fi
27198fi
27199 if test "$have_jbig" = 'yes'; then
27200 JBIG_DELEGATE_TRUE=
27201 JBIG_DELEGATE_FALSE='#'
27202else
27203 JBIG_DELEGATE_TRUE='#'
27204 JBIG_DELEGATE_FALSE=
27205fi
27206
27207
27208
27209
27210#
27211# Check for JPEG delegate library.
27212#
27213
27214# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000027215if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027216 withval=$with_jpeg; with_jpeg=$withval
27217else
27218 with_jpeg='yes'
27219fi
27220
27221
27222if test "$with_jpeg" != 'yes'; then
27223 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27224fi
27225
27226have_jpeg='no'
27227JPEG_LIBS=''
27228if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027230$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027232$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027234$as_echo "" >&6; }
27235 failed=0
27236 passed=0
cristy8b350f62009-11-15 23:12:43 +000027237 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27238if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027239 passed=`expr $passed + 1`
27240else
27241 failed=`expr $failed + 1`
27242fi
27243
27244
cristy8b350f62009-11-15 23:12:43 +000027245 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27246if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027247 passed=`expr $passed + 1`
27248else
27249 failed=`expr $failed + 1`
27250fi
27251
27252
cristy8b350f62009-11-15 23:12:43 +000027253 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27254if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027255 passed=`expr $passed + 1`
27256else
27257 failed=`expr $failed + 1`
27258fi
27259
27260
cristy8b350f62009-11-15 23:12:43 +000027261 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27262if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027263 passed=`expr $passed + 1`
27264else
27265 failed=`expr $failed + 1`
27266fi
27267
27268
cristy8b350f62009-11-15 23:12:43 +000027269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027270$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027271if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027272 $as_echo_n "(cached) " >&6
27273else
27274 ac_check_lib_save_LIBS=$LIBS
27275LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027277/* end confdefs.h. */
27278
27279/* Override any GCC internal prototype to avoid an error.
27280 Use char because int might match the return type of a GCC
27281 builtin and then its argument prototype would still apply. */
27282#ifdef __cplusplus
27283extern "C"
27284#endif
27285char jpeg_read_header ();
27286int
27287main ()
27288{
27289return jpeg_read_header ();
27290 ;
27291 return 0;
27292}
27293_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027294if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027295 ac_cv_lib_jpeg_jpeg_read_header=yes
27296else
cristy8b350f62009-11-15 23:12:43 +000027297 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027298fi
cristy8b350f62009-11-15 23:12:43 +000027299rm -f core conftest.err conftest.$ac_objext \
27300 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027301LIBS=$ac_check_lib_save_LIBS
27302fi
cristy8b350f62009-11-15 23:12:43 +000027303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027304$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027305if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027306 passed=`expr $passed + 1`
27307else
27308 failed=`expr $failed + 1`
27309fi
27310
27311
27312# Test for compatible JPEG library
27313if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027315$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027316if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027317 $as_echo_n "(cached) " >&6
27318else
cristy8b350f62009-11-15 23:12:43 +000027319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027320/* end confdefs.h. */
27321#include <stdio.h>
27322#include <stdlib.h>
27323#include <jpeglib.h>
27324
27325int
27326main ()
27327{
27328
27329#if JPEG_LIB_VERSION < 62
27330#error IJG JPEG library must be version 6b or newer!
27331#endif
27332return 0;
27333
27334 ;
27335 return 0;
27336}
27337_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027338if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027339 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27340else
cristy8b350f62009-11-15 23:12:43 +000027341 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027342fi
cristy3ed852e2009-09-05 21:47:34 +000027343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27344fi
cristy8b350f62009-11-15 23:12:43 +000027345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027346$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27347fi
cristy8b350f62009-11-15 23:12:43 +000027348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027349$as_echo_n "checking if JPEG package is complete... " >&6; }
27350 if test $passed -gt 0; then
27351 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027353$as_echo "no -- some components failed test" >&6; }
27354 have_jpeg='no (failed tests)'
27355 else
27356 JPEG_LIBS='-ljpeg'
27357 LIBS="$JPEG_LIBS $LIBS"
27358
cristy8b350f62009-11-15 23:12:43 +000027359$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027360
cristy8b350f62009-11-15 23:12:43 +000027361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027362$as_echo "yes" >&6; }
27363 have_jpeg='yes'
27364 fi
27365 else
cristy8b350f62009-11-15 23:12:43 +000027366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027367$as_echo "no" >&6; }
27368 fi
27369fi
27370 if test "$have_jpeg" = 'yes'; then
27371 JPEG_DELEGATE_TRUE=
27372 JPEG_DELEGATE_FALSE='#'
27373else
27374 JPEG_DELEGATE_TRUE='#'
27375 JPEG_DELEGATE_FALSE=
27376fi
27377
27378
27379
27380
27381#
27382# Check for JPEG Version 2 delegate library.
27383#
27384
27385# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027386if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027387 withval=$with_jp2; with_jp2=$withval
27388else
27389 with_jp2='yes'
27390fi
27391
27392
27393if test "$with_jp2" != 'yes'; then
27394 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27395fi
27396
27397have_jp2='no'
27398JP2_LIBS=''
27399if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027401$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027403$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027405$as_echo "" >&6; }
27406 failed=0
27407 passed=0
cristy8b350f62009-11-15 23:12:43 +000027408 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27409if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027410 passed=`expr $passed + 1`
27411else
27412 failed=`expr $failed + 1`
27413fi
27414
27415
cristy8b350f62009-11-15 23:12:43 +000027416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027417$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027418if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027419 $as_echo_n "(cached) " >&6
27420else
27421 ac_check_lib_save_LIBS=$LIBS
27422LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027424/* end confdefs.h. */
27425
27426/* Override any GCC internal prototype to avoid an error.
27427 Use char because int might match the return type of a GCC
27428 builtin and then its argument prototype would still apply. */
27429#ifdef __cplusplus
27430extern "C"
27431#endif
27432char jas_stream_fopen ();
27433int
27434main ()
27435{
27436return jas_stream_fopen ();
27437 ;
27438 return 0;
27439}
27440_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027441if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027442 ac_cv_lib_jasper_jas_stream_fopen=yes
27443else
cristy8b350f62009-11-15 23:12:43 +000027444 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000027445fi
cristy8b350f62009-11-15 23:12:43 +000027446rm -f core conftest.err conftest.$ac_objext \
27447 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027448LIBS=$ac_check_lib_save_LIBS
27449fi
cristy8b350f62009-11-15 23:12:43 +000027450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027451$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027452if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027453 passed=`expr $passed + 1`
27454else
27455 failed=`expr $failed + 1`
27456fi
27457
cristy8b350f62009-11-15 23:12:43 +000027458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027459$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27460 if test $passed -gt 0; then
27461 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027463$as_echo "no -- some components failed test" >&6; }
27464 have_jp2='no (failed tests)'
27465 else
27466 JP2_LIBS='-ljasper'
27467 LIBS="$JP2_LIBS $LIBS"
27468
cristy8b350f62009-11-15 23:12:43 +000027469$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027470
cristy8b350f62009-11-15 23:12:43 +000027471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027472$as_echo "yes" >&6; }
27473 have_jp2='yes'
27474 fi
27475 else
cristy8b350f62009-11-15 23:12:43 +000027476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027477$as_echo "no" >&6; }
27478 fi
27479fi
27480 if test "$have_jp2" = 'yes'; then
27481 JP2_DELEGATE_TRUE=
27482 JP2_DELEGATE_FALSE='#'
27483else
27484 JP2_DELEGATE_TRUE='#'
27485 JP2_DELEGATE_FALSE=
27486fi
27487
27488
27489
27490
27491#
27492# Check for LCMS delegate library.
27493#
cristy71203402010-06-18 13:12:03 +000027494# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000027495
27496# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000027497if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027498 withval=$with_lcms; with_lcms=$withval
27499else
27500 with_lcms='yes'
27501fi
27502
cristy71203402010-06-18 13:12:03 +000027503if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000027504 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27505fi
27506
cristy71203402010-06-18 13:12:03 +000027507# Disable LCMS2.
27508
27509# Check whether --with-lcms2 was given.
27510if test "${with_lcms2+set}" = set; then :
27511 withval=$with_lcms2; with_lcms2=$withval
27512else
27513 with_lcms2='yes'
27514fi
27515
27516if test "$with_lcms2" != 'yes' ; then
27517 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
27518fi
27519
27520have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000027521LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000027522if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027524$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000027525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
27526$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027528$as_echo "" >&6; }
27529 failed=0
27530 passed=0
27531 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000027532
27533 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000027534 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
27535if test "x$ac_cv_header_lcms2_h" = x""yes; then :
27536 have_lcms_header='yes'
27537fi
27538
27539
27540 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000027541
27542$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
27543
cristy71203402010-06-18 13:12:03 +000027544 passed=`expr $passed + 1`
27545 fi
27546
27547 # Check for <lcms2/lcms2.h)
27548 if test "$have_lcms_header" != 'yes'; then
27549 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
27550if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000027551 have_lcms_header='yes'
27552fi
27553
27554
cristy71203402010-06-18 13:12:03 +000027555 if test "$have_lcms_header" = 'yes'; then
27556 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000027557
cristy71203402010-06-18 13:12:03 +000027558$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000027559
cristy71203402010-06-18 13:12:03 +000027560 fi
cristyd09bcf92010-03-25 03:04:45 +000027561 fi
cristy71203402010-06-18 13:12:03 +000027562
27563 # Failed to find lcms header?
27564 if test "$have_lcms_header" != 'yes'; then
27565 failed=`expr $failed + 1`
27566 fi
27567
27568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
27569$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
27570if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
cristyd09bcf92010-03-25 03:04:45 +000027571 $as_echo_n "(cached) " >&6
27572else
27573 ac_check_lib_save_LIBS=$LIBS
27574LIBS="-llcms2 $LIBS"
27575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27576/* end confdefs.h. */
27577
27578/* Override any GCC internal prototype to avoid an error.
27579 Use char because int might match the return type of a GCC
27580 builtin and then its argument prototype would still apply. */
27581#ifdef __cplusplus
27582extern "C"
27583#endif
cristy71203402010-06-18 13:12:03 +000027584char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000027585int
27586main ()
27587{
cristy71203402010-06-18 13:12:03 +000027588return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000027589 ;
27590 return 0;
27591}
27592_ACEOF
27593if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000027594 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000027595else
cristy71203402010-06-18 13:12:03 +000027596 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000027597fi
27598rm -f core conftest.err conftest.$ac_objext \
27599 conftest$ac_exeext conftest.$ac_ext
27600LIBS=$ac_check_lib_save_LIBS
27601fi
cristy71203402010-06-18 13:12:03 +000027602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
27603$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
27604if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000027605 passed=`expr $passed + 1`
27606else
27607 failed=`expr $failed + 1`
27608fi
27609
cristy71203402010-06-18 13:12:03 +000027610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
27611$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000027612 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000027613 if test $failed -gt 0; then
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000027615$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000027616 have_lcms2='no (failed tests)'
27617 else
27618 LCMS_LIBS='-llcms2'
27619 LIBS="$LCMS_LIBS $LIBS"
27620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000027621$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000027622 have_lcms2='yes'
27623 fi
cristyd09bcf92010-03-25 03:04:45 +000027624 else
cristy71203402010-06-18 13:12:03 +000027625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000027626$as_echo "no" >&6; }
27627 fi
27628fi
27629
cristy71203402010-06-18 13:12:03 +000027630#
27631# Check for LCMS v1 (1.11 or later)
27632#
27633if test $have_lcms2 = 'yes'; then
27634 with_lcms='no'
27635fi
27636
27637have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000027638if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000027639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27640$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000027641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
27642$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000027643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27644$as_echo "" >&6; }
27645 failed=0
27646 passed=0
27647 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000027648
27649 # Check for <lcms.h>
27650 if test "$have_lcms_header" != 'yes'; then
27651 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristy8b350f62009-11-15 23:12:43 +000027652if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027653 have_lcms_header='yes'
27654fi
27655
27656
cristy71203402010-06-18 13:12:03 +000027657 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000027658 passed=`expr $passed + 1`
27659
cristy8b350f62009-11-15 23:12:43 +000027660$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027661
cristy71203402010-06-18 13:12:03 +000027662 fi
27663 fi
27664
27665 # Check for <lcms/lcms.h>
27666 if test "$have_lcms_header" != 'yes'; then
27667 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 +000027668if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027669 have_lcms_header='yes'
27670fi
27671
27672
cristy71203402010-06-18 13:12:03 +000027673 if test "$have_lcms_header" = 'yes'; then
27674 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027675
cristy8b350f62009-11-15 23:12:43 +000027676$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027677
cristy71203402010-06-18 13:12:03 +000027678 fi
cristy3ed852e2009-09-05 21:47:34 +000027679 fi
cristy71203402010-06-18 13:12:03 +000027680
27681 # Failed to find lcms header?
27682 if test "$have_lcms_header" != 'yes'; then
27683 failed=`expr $failed + 1`
27684 fi
27685
27686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
27687$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
27688if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027689 $as_echo_n "(cached) " >&6
27690else
27691 ac_check_lib_save_LIBS=$LIBS
27692LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027694/* end confdefs.h. */
27695
27696/* Override any GCC internal prototype to avoid an error.
27697 Use char because int might match the return type of a GCC
27698 builtin and then its argument prototype would still apply. */
27699#ifdef __cplusplus
27700extern "C"
27701#endif
cristy71203402010-06-18 13:12:03 +000027702char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000027703int
27704main ()
27705{
cristy71203402010-06-18 13:12:03 +000027706return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000027707 ;
27708 return 0;
27709}
27710_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027711if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000027712 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000027713else
cristy71203402010-06-18 13:12:03 +000027714 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000027715fi
cristy8b350f62009-11-15 23:12:43 +000027716rm -f core conftest.err conftest.$ac_objext \
27717 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027718LIBS=$ac_check_lib_save_LIBS
27719fi
cristy71203402010-06-18 13:12:03 +000027720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
27721$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
27722if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027723 passed=`expr $passed + 1`
27724else
27725 failed=`expr $failed + 1`
27726fi
27727
cristy8b350f62009-11-15 23:12:43 +000027728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027729$as_echo_n "checking if LCMS package is complete... " >&6; }
27730 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000027731 if test $failed -gt 0; then
27732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027733$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000027734 have_lcms='no (failed tests)'
27735 else
27736 LCMS_LIBS='-llcms'
27737 LIBS="$LCMS_LIBS $LIBS"
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027739$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000027740 have_lcms='yes'
27741 fi
cristy3ed852e2009-09-05 21:47:34 +000027742 else
cristy71203402010-06-18 13:12:03 +000027743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027744$as_echo "no" >&6; }
27745 fi
27746fi
cristy71203402010-06-18 13:12:03 +000027747
27748 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000027749 LCMS_DELEGATE_TRUE=
27750 LCMS_DELEGATE_FALSE='#'
27751else
27752 LCMS_DELEGATE_TRUE='#'
27753 LCMS_DELEGATE_FALSE=
27754fi
27755
cristy71203402010-06-18 13:12:03 +000027756if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
27757
27758$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
27759
27760fi
27761
cristy3ed852e2009-09-05 21:47:34 +000027762
27763
27764
27765#
27766# Check for the LQR (Liquid Rescale) delegate library.
27767#
27768
27769# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000027770if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027771 withval=$with_lqr; with_lqr=$withval
27772else
27773 with_lqr='yes'
27774fi
27775
27776
27777if test "$with_lqr" != 'yes'; then
27778 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
27779fi
27780
27781have_lqr='no'
27782LQR_CFLAGS=""
27783LQR_LIBS=""
27784LQR_PKG=""
27785if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027787$as_echo "-------------------------------------------------------------" >&6; }
27788
27789pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000027791$as_echo_n "checking for LQR... " >&6; }
27792
27793if test -n "$LQR_CFLAGS"; then
27794 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
27795 elif test -n "$PKG_CONFIG"; then
27796 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027797 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027798 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
27799 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27801 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027802 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
27803else
27804 pkg_failed=yes
27805fi
27806 else
27807 pkg_failed=untried
27808fi
27809if test -n "$LQR_LIBS"; then
27810 pkg_cv_LQR_LIBS="$LQR_LIBS"
27811 elif test -n "$PKG_CONFIG"; then
27812 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027813 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027814 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
27815 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27817 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027818 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
27819else
27820 pkg_failed=yes
27821fi
27822 else
27823 pkg_failed=untried
27824fi
27825
27826
27827
27828if test $pkg_failed = yes; then
27829
27830if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27831 _pkg_short_errors_supported=yes
27832else
27833 _pkg_short_errors_supported=no
27834fi
27835 if test $_pkg_short_errors_supported = yes; then
27836 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
27837 else
27838 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
27839 fi
27840 # Put the nasty error message in config.log where it belongs
27841 echo "$LQR_PKG_ERRORS" >&5
27842
cristy8b350f62009-11-15 23:12:43 +000027843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027844$as_echo "no" >&6; }
27845 have_lqr=no
27846elif test $pkg_failed = untried; then
27847 have_lqr=no
27848else
27849 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
27850 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000027851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027852$as_echo "yes" >&6; }
27853 have_lqr=yes
27854fi
cristy8b350f62009-11-15 23:12:43 +000027855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027856$as_echo "" >&6; }
27857fi
27858
27859if test "$have_lqr" = 'yes'; then
27860
cristy8b350f62009-11-15 23:12:43 +000027861$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027862
27863 CFLAGS="$LQR_CFLAGS $CFLAGS"
27864fi
27865
27866 if test "$have_lqr" = 'yes'; then
27867 LQR_DELEGATE_TRUE=
27868 LQR_DELEGATE_FALSE='#'
27869else
27870 LQR_DELEGATE_TRUE='#'
27871 LQR_DELEGATE_FALSE=
27872fi
27873
27874
27875
27876
27877
27878#
27879# Check for the OpenEXR delegate library.
27880#
27881
27882# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000027883if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027884 withval=$with_openexr; with_openexr=$withval
27885else
27886 with_openexr='yes'
27887fi
27888
27889
27890if test "$with_openexr" != 'yes'; then
27891 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
27892fi
27893
27894have_openexr='no'
27895OPENEXR_CFLAGS=""
27896OPENEXR_LIBS=""
27897OPENEXR_PKG=""
27898if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027900$as_echo "-------------------------------------------------------------" >&6; }
27901
27902pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000027904$as_echo_n "checking for OPENEXR... " >&6; }
27905
27906if test -n "$OPENEXR_CFLAGS"; then
27907 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
27908 elif test -n "$PKG_CONFIG"; then
27909 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027910 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027911 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
27912 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27914 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027915 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
27916else
27917 pkg_failed=yes
27918fi
27919 else
27920 pkg_failed=untried
27921fi
27922if test -n "$OPENEXR_LIBS"; then
27923 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
27924 elif test -n "$PKG_CONFIG"; then
27925 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027926 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027927 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
27928 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27930 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027931 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
27932else
27933 pkg_failed=yes
27934fi
27935 else
27936 pkg_failed=untried
27937fi
27938
27939
27940
27941if test $pkg_failed = yes; then
27942
27943if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27944 _pkg_short_errors_supported=yes
27945else
27946 _pkg_short_errors_supported=no
27947fi
27948 if test $_pkg_short_errors_supported = yes; then
27949 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
27950 else
27951 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
27952 fi
27953 # Put the nasty error message in config.log where it belongs
27954 echo "$OPENEXR_PKG_ERRORS" >&5
27955
cristy8b350f62009-11-15 23:12:43 +000027956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027957$as_echo "no" >&6; }
27958 have_openexr=no
27959elif test $pkg_failed = untried; then
27960 have_openexr=no
27961else
27962 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
27963 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000027964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027965$as_echo "yes" >&6; }
27966 have_openexr=yes
27967fi
cristy8b350f62009-11-15 23:12:43 +000027968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027969$as_echo "" >&6; }
27970fi
27971
27972if test "$have_openexr" = 'yes'; then
27973
cristy8b350f62009-11-15 23:12:43 +000027974$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027975
27976 if test "$with_modules" = 'no'; then
27977 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
27978 fi
27979fi
27980
27981 if test "$have_openexr" = 'yes'; then
27982 OPENEXR_DELEGATE_TRUE=
27983 OPENEXR_DELEGATE_FALSE='#'
27984else
27985 OPENEXR_DELEGATE_TRUE='#'
27986 OPENEXR_DELEGATE_FALSE=
27987fi
27988
27989
27990
27991
27992
27993#
27994# Check for PNG delegate library.
27995#
27996
27997# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000027998if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027999 withval=$with_png; with_png=$withval
28000else
28001 with_png='yes'
28002fi
28003
28004
28005if test "$with_png" != 'yes'; then
28006 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28007fi
28008
28009have_png='no'
28010PNG_LIBS=''
28011if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028013$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028015$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028017$as_echo "" >&6; }
28018 failed=0
28019 passed=0
cristy8b350f62009-11-15 23:12:43 +000028020 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28021if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028022 passed=`expr $passed + 1`
28023else
28024 failed=`expr $failed + 1`
28025fi
28026
28027
cristy8b350f62009-11-15 23:12:43 +000028028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000028029$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028030if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028031 $as_echo_n "(cached) " >&6
28032else
28033 ac_check_lib_save_LIBS=$LIBS
28034LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028036/* end confdefs.h. */
28037
28038/* Override any GCC internal prototype to avoid an error.
28039 Use char because int might match the return type of a GCC
28040 builtin and then its argument prototype would still apply. */
28041#ifdef __cplusplus
28042extern "C"
28043#endif
28044char png_get_io_ptr ();
28045int
28046main ()
28047{
28048return png_get_io_ptr ();
28049 ;
28050 return 0;
28051}
28052_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028053if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028054 ac_cv_lib_png_png_get_io_ptr=yes
28055else
cristy8b350f62009-11-15 23:12:43 +000028056 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000028057fi
cristy8b350f62009-11-15 23:12:43 +000028058rm -f core conftest.err conftest.$ac_objext \
28059 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028060LIBS=$ac_check_lib_save_LIBS
28061fi
cristy8b350f62009-11-15 23:12:43 +000028062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000028063$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028064if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028065 passed=`expr $passed + 1`
28066else
28067 failed=`expr $failed + 1`
28068fi
28069
cristy8b350f62009-11-15 23:12:43 +000028070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028071$as_echo_n "checking if PNG package is complete... " >&6; }
28072 if test $passed -gt 0; then
28073 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028075$as_echo "no -- some components failed test" >&6; }
28076 have_png='no (failed tests)'
28077 else
28078 PNG_LIBS='-lpng'
28079 LIBS="$PNG_LIBS $LIBS"
28080
cristy8b350f62009-11-15 23:12:43 +000028081$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028082
cristy8b350f62009-11-15 23:12:43 +000028083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028084$as_echo "yes" >&6; }
28085 have_png='yes'
28086 fi
28087 else
cristy8b350f62009-11-15 23:12:43 +000028088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028089$as_echo "no" >&6; }
28090 fi
28091fi
28092 if test "$have_png" = 'yes'; then
28093 PNG_DELEGATE_TRUE=
28094 PNG_DELEGATE_FALSE='#'
28095else
28096 PNG_DELEGATE_TRUE='#'
28097 PNG_DELEGATE_FALSE=
28098fi
28099
28100
28101
28102
28103#
28104# Check for RSVG delegate library.
28105#
28106
28107# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000028108if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028109 withval=$with_rsvg; with_rsvg=$withval
28110else
28111 with_rsvg=$have_x
28112fi
28113
28114
28115if test "$with_rsvg" != 'yes'; then
28116 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28117fi
28118
28119have_rsvg='no'
28120have_cairo='no'
28121RSVG_CFLAGS=""
28122RSVG_LIBS=""
28123RSVG_PKG=""
28124if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028126$as_echo "-------------------------------------------------------------" >&6; }
28127
28128pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028130$as_echo_n "checking for RSVG... " >&6; }
28131
28132if test -n "$RSVG_CFLAGS"; then
28133 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28134 elif test -n "$PKG_CONFIG"; then
28135 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028136 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028137 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28138 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28140 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028141 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28142else
28143 pkg_failed=yes
28144fi
28145 else
28146 pkg_failed=untried
28147fi
28148if test -n "$RSVG_LIBS"; then
28149 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28150 elif test -n "$PKG_CONFIG"; then
28151 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028152 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028153 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28154 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28156 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028157 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28158else
28159 pkg_failed=yes
28160fi
28161 else
28162 pkg_failed=untried
28163fi
28164
28165
28166
28167if test $pkg_failed = yes; then
28168
28169if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28170 _pkg_short_errors_supported=yes
28171else
28172 _pkg_short_errors_supported=no
28173fi
28174 if test $_pkg_short_errors_supported = yes; then
28175 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28176 else
28177 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28178 fi
28179 # Put the nasty error message in config.log where it belongs
28180 echo "$RSVG_PKG_ERRORS" >&5
28181
cristy8b350f62009-11-15 23:12:43 +000028182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028183$as_echo "no" >&6; }
28184 have_rsvg=no
28185elif test $pkg_failed = untried; then
28186 have_rsvg=no
28187else
28188 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28189 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028191$as_echo "yes" >&6; }
28192 have_rsvg=yes
28193fi
cristy8b350f62009-11-15 23:12:43 +000028194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028195$as_echo "" >&6; }
28196
28197pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028199$as_echo_n "checking for CAIRO_SVG... " >&6; }
28200
28201if test -n "$CAIRO_SVG_CFLAGS"; then
28202 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28203 elif test -n "$PKG_CONFIG"; then
28204 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028205 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028206 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28207 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28209 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028210 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28211else
28212 pkg_failed=yes
28213fi
28214 else
28215 pkg_failed=untried
28216fi
28217if test -n "$CAIRO_SVG_LIBS"; then
28218 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28219 elif test -n "$PKG_CONFIG"; then
28220 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028221 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028222 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28223 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28225 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028226 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28227else
28228 pkg_failed=yes
28229fi
28230 else
28231 pkg_failed=untried
28232fi
28233
28234
28235
28236if test $pkg_failed = yes; then
28237
28238if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28239 _pkg_short_errors_supported=yes
28240else
28241 _pkg_short_errors_supported=no
28242fi
28243 if test $_pkg_short_errors_supported = yes; then
28244 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28245 else
28246 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28247 fi
28248 # Put the nasty error message in config.log where it belongs
28249 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28250
cristy8b350f62009-11-15 23:12:43 +000028251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028252$as_echo "no" >&6; }
28253 have_cairo=no
28254elif test $pkg_failed = untried; then
28255 have_cairo=no
28256else
28257 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28258 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028260$as_echo "yes" >&6; }
28261 have_cairo=yes
28262fi
cristy8b350f62009-11-15 23:12:43 +000028263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028264$as_echo "" >&6; }
28265fi
28266
28267if test "$have_rsvg" = 'yes'; then
28268
cristy8b350f62009-11-15 23:12:43 +000028269$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028270
28271 if test "$with_modules" = 'no'; then
28272 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28273 fi
28274fi
28275
28276if test "$have_cairo" = 'yes'; then
28277
cristy8b350f62009-11-15 23:12:43 +000028278$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028279
28280 if test "$with_modules" = 'no'; then
28281 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28282 fi
28283fi
28284
28285 if test "$have_rsvg" = 'yes'; then
28286 RSVG_DELEGATE_TRUE=
28287 RSVG_DELEGATE_FALSE='#'
28288else
28289 RSVG_DELEGATE_TRUE='#'
28290 RSVG_DELEGATE_FALSE=
28291fi
28292
28293 if test "$have_cairo" = 'yes'; then
28294 CAIRO_DELEGATE_TRUE=
28295 CAIRO_DELEGATE_FALSE='#'
28296else
28297 CAIRO_DELEGATE_TRUE='#'
28298 CAIRO_DELEGATE_FALSE=
28299fi
28300
28301
28302
28303
28304
28305#
28306# Check for TIFF delegate library.
28307#
28308
28309# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000028310if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028311 withval=$with_tiff; with_tiff=$withval
28312else
28313 with_tiff='yes'
28314fi
28315
28316
28317if test "$with_tiff" != 'yes'; then
28318 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28319fi
28320
28321have_tiff='no'
28322TIFF_LIBS=''
28323if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028325$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028327$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028329$as_echo "" >&6; }
28330 failed=0
28331 passed=0
cristy8b350f62009-11-15 23:12:43 +000028332 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28333if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028334 passed=`expr $passed + 1`
28335else
28336 failed=`expr $failed + 1`
28337fi
28338
28339
cristy8b350f62009-11-15 23:12:43 +000028340 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28341if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028342 passed=`expr $passed + 1`
28343else
28344 failed=`expr $failed + 1`
28345fi
28346
28347
cristy8b350f62009-11-15 23:12:43 +000028348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028349$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028350if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028351 $as_echo_n "(cached) " >&6
28352else
28353 ac_check_lib_save_LIBS=$LIBS
28354LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028356/* end confdefs.h. */
28357
28358/* Override any GCC internal prototype to avoid an error.
28359 Use char because int might match the return type of a GCC
28360 builtin and then its argument prototype would still apply. */
28361#ifdef __cplusplus
28362extern "C"
28363#endif
28364char TIFFOpen ();
28365int
28366main ()
28367{
28368return TIFFOpen ();
28369 ;
28370 return 0;
28371}
28372_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028373if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028374 ac_cv_lib_tiff_TIFFOpen=yes
28375else
cristy8b350f62009-11-15 23:12:43 +000028376 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028377fi
cristy8b350f62009-11-15 23:12:43 +000028378rm -f core conftest.err conftest.$ac_objext \
28379 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028380LIBS=$ac_check_lib_save_LIBS
28381fi
cristy8b350f62009-11-15 23:12:43 +000028382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028383$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028384if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028385 passed=`expr $passed + 1`
28386else
28387 failed=`expr $failed + 1`
28388fi
28389
cristy8b350f62009-11-15 23:12:43 +000028390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028391$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028392if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028393 $as_echo_n "(cached) " >&6
28394else
28395 ac_check_lib_save_LIBS=$LIBS
28396LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028398/* end confdefs.h. */
28399
28400/* Override any GCC internal prototype to avoid an error.
28401 Use char because int might match the return type of a GCC
28402 builtin and then its argument prototype would still apply. */
28403#ifdef __cplusplus
28404extern "C"
28405#endif
28406char TIFFClientOpen ();
28407int
28408main ()
28409{
28410return TIFFClientOpen ();
28411 ;
28412 return 0;
28413}
28414_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028415if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028416 ac_cv_lib_tiff_TIFFClientOpen=yes
28417else
cristy8b350f62009-11-15 23:12:43 +000028418 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028419fi
cristy8b350f62009-11-15 23:12:43 +000028420rm -f core conftest.err conftest.$ac_objext \
28421 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028422LIBS=$ac_check_lib_save_LIBS
28423fi
cristy8b350f62009-11-15 23:12:43 +000028424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028425$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028426if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028427 passed=`expr $passed + 1`
28428else
28429 failed=`expr $failed + 1`
28430fi
28431
cristyb97f1002010-07-26 14:02:57 +000028432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
28433$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
28434if test "${ac_cv_lib_tiff_TIFFIsBigEndian+set}" = set; then :
28435 $as_echo_n "(cached) " >&6
28436else
28437 ac_check_lib_save_LIBS=$LIBS
28438LIBS="-ltiff $LIBS"
28439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28440/* end confdefs.h. */
28441
28442/* Override any GCC internal prototype to avoid an error.
28443 Use char because int might match the return type of a GCC
28444 builtin and then its argument prototype would still apply. */
28445#ifdef __cplusplus
28446extern "C"
28447#endif
28448char TIFFIsBigEndian ();
28449int
28450main ()
28451{
28452return TIFFIsBigEndian ();
28453 ;
28454 return 0;
28455}
28456_ACEOF
28457if ac_fn_c_try_link "$LINENO"; then :
28458 ac_cv_lib_tiff_TIFFIsBigEndian=yes
28459else
28460 ac_cv_lib_tiff_TIFFIsBigEndian=no
28461fi
28462rm -f core conftest.err conftest.$ac_objext \
28463 conftest$ac_exeext conftest.$ac_ext
28464LIBS=$ac_check_lib_save_LIBS
28465fi
28466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
28467$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
28468if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = x""yes; then :
28469 passed=`expr $passed + 1`
28470else
28471 failed=`expr $failed + 1`
28472fi
28473
cristy8b350f62009-11-15 23:12:43 +000028474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028475$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028476if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028477 $as_echo_n "(cached) " >&6
28478else
28479 ac_check_lib_save_LIBS=$LIBS
28480LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028482/* end confdefs.h. */
28483
28484/* Override any GCC internal prototype to avoid an error.
28485 Use char because int might match the return type of a GCC
28486 builtin and then its argument prototype would still apply. */
28487#ifdef __cplusplus
28488extern "C"
28489#endif
28490char TIFFIsByteSwapped ();
28491int
28492main ()
28493{
28494return TIFFIsByteSwapped ();
28495 ;
28496 return 0;
28497}
28498_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028499if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028500 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28501else
cristy8b350f62009-11-15 23:12:43 +000028502 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000028503fi
cristy8b350f62009-11-15 23:12:43 +000028504rm -f core conftest.err conftest.$ac_objext \
28505 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028506LIBS=$ac_check_lib_save_LIBS
28507fi
cristy8b350f62009-11-15 23:12:43 +000028508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000028509$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028510if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028511 passed=`expr $passed + 1`
28512else
28513 failed=`expr $failed + 1`
28514fi
28515
cristy8b350f62009-11-15 23:12:43 +000028516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028517$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028518if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028519 $as_echo_n "(cached) " >&6
28520else
28521 ac_check_lib_save_LIBS=$LIBS
28522LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028524/* end confdefs.h. */
28525
28526/* Override any GCC internal prototype to avoid an error.
28527 Use char because int might match the return type of a GCC
28528 builtin and then its argument prototype would still apply. */
28529#ifdef __cplusplus
28530extern "C"
28531#endif
28532char TIFFReadRGBATile ();
28533int
28534main ()
28535{
28536return TIFFReadRGBATile ();
28537 ;
28538 return 0;
28539}
28540_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028541if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028542 ac_cv_lib_tiff_TIFFReadRGBATile=yes
28543else
cristy8b350f62009-11-15 23:12:43 +000028544 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000028545fi
cristy8b350f62009-11-15 23:12:43 +000028546rm -f core conftest.err conftest.$ac_objext \
28547 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028548LIBS=$ac_check_lib_save_LIBS
28549fi
cristy8b350f62009-11-15 23:12:43 +000028550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000028551$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028552if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028553 passed=`expr $passed + 1`
28554else
28555 failed=`expr $failed + 1`
28556fi
28557
cristy8b350f62009-11-15 23:12:43 +000028558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028559$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028560if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028561 $as_echo_n "(cached) " >&6
28562else
28563 ac_check_lib_save_LIBS=$LIBS
28564LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028566/* end confdefs.h. */
28567
28568/* Override any GCC internal prototype to avoid an error.
28569 Use char because int might match the return type of a GCC
28570 builtin and then its argument prototype would still apply. */
28571#ifdef __cplusplus
28572extern "C"
28573#endif
28574char TIFFReadRGBAStrip ();
28575int
28576main ()
28577{
28578return TIFFReadRGBAStrip ();
28579 ;
28580 return 0;
28581}
28582_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028583if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028584 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
28585else
cristy8b350f62009-11-15 23:12:43 +000028586 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000028587fi
cristy8b350f62009-11-15 23:12:43 +000028588rm -f core conftest.err conftest.$ac_objext \
28589 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028590LIBS=$ac_check_lib_save_LIBS
28591fi
cristy8b350f62009-11-15 23:12:43 +000028592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000028593$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028594if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028595 passed=`expr $passed + 1`
28596else
28597 failed=`expr $failed + 1`
28598fi
28599
cristy8b350f62009-11-15 23:12:43 +000028600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028601$as_echo_n "checking if TIFF package is complete... " >&6; }
28602 if test $passed -gt 0; then
28603 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028605$as_echo "no -- some components failed test" >&6; }
28606 have_tiff='no (failed tests)'
28607 else
28608 TIFF_LIBS='-ltiff'
28609 LIBS="$TIFF_LIBS $LIBS"
28610
cristy8b350f62009-11-15 23:12:43 +000028611$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028612
cristy8b350f62009-11-15 23:12:43 +000028613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028614$as_echo "yes" >&6; }
28615 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000028616 for ac_header in tiffconf.h
28617do :
28618 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
28619if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028620 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028621#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000028622_ACEOF
28623
28624fi
28625
28626done
28627
cristy8b350f62009-11-15 23:12:43 +000028628 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000028629 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
28630 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000028631do :
28632 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28633ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000028634if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000028635 cat >>confdefs.h <<_ACEOF
28636#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28637_ACEOF
28638
28639fi
28640done
28641
28642 fi
28643 else
cristy8b350f62009-11-15 23:12:43 +000028644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028645$as_echo "no" >&6; }
28646 fi
28647fi
28648 if test "$have_tiff" = 'yes'; then
28649 TIFF_DELEGATE_TRUE=
28650 TIFF_DELEGATE_FALSE='#'
28651else
28652 TIFF_DELEGATE_TRUE='#'
28653 TIFF_DELEGATE_FALSE=
28654fi
28655
28656
28657
28658
28659#
28660# Set Windows font directory.
28661#
28662
28663# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028664if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028665 withval=$with_windows_font_dir; with_windows_font_dir=$withval
28666else
28667 with_windows_font_dir=''
28668fi
28669
28670if test "$with_windows_font_dir" != '' ; then
28671 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
28672fi
28673
28674
28675#
28676# Check for WMF delegate library.
28677#
28678
28679# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000028680if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028681 withval=$with_wmf; with_wmf=$withval
28682else
cristy8d63d1d2010-01-06 20:38:37 +000028683 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000028684fi
28685
28686
28687if test "$with_wmf" != 'yes'; then
28688 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
28689fi
28690
28691have_wmf='no'
28692WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000028693if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028695$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028697$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028699$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000028700 failed=0
28701 passed=0
28702 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
28703if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
28704 passed=`expr $passed + 1`
28705else
28706 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028707fi
28708
28709
cristy735e8942010-04-02 20:32:57 +000028710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
28711$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
28712if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028713 $as_echo_n "(cached) " >&6
28714else
28715 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000028716LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028718/* end confdefs.h. */
28719
28720/* Override any GCC internal prototype to avoid an error.
28721 Use char because int might match the return type of a GCC
28722 builtin and then its argument prototype would still apply. */
28723#ifdef __cplusplus
28724extern "C"
28725#endif
cristy735e8942010-04-02 20:32:57 +000028726char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000028727int
28728main ()
28729{
cristy735e8942010-04-02 20:32:57 +000028730return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000028731 ;
28732 return 0;
28733}
28734_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028735if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000028736 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000028737else
cristy735e8942010-04-02 20:32:57 +000028738 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000028739fi
cristy8b350f62009-11-15 23:12:43 +000028740rm -f core conftest.err conftest.$ac_objext \
28741 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028742LIBS=$ac_check_lib_save_LIBS
28743fi
cristy735e8942010-04-02 20:32:57 +000028744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
28745$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
28746if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
28747 passed=`expr $passed + 1`
28748else
28749 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028750fi
28751
cristy735e8942010-04-02 20:32:57 +000028752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
28753$as_echo_n "checking if WMF package is complete... " >&6; }
28754 if test $passed -gt 0; then
28755 if test $failed -gt 0; then
28756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28757$as_echo "no -- some components failed test" >&6; }
28758 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000028759 else
cristy735e8942010-04-02 20:32:57 +000028760 WMF_LIBS='-lwmf -lwmflite'
28761 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028762
cristy8b350f62009-11-15 23:12:43 +000028763$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028764
cristy735e8942010-04-02 20:32:57 +000028765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028766$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000028767 have_wmf='yes'
28768 fi
cristy3ed852e2009-09-05 21:47:34 +000028769 else
cristy8b350f62009-11-15 23:12:43 +000028770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028771$as_echo "no" >&6; }
28772 fi
28773fi
28774 if test "$have_wmf" = 'yes'; then
28775 WMF_DELEGATE_TRUE=
28776 WMF_DELEGATE_FALSE='#'
28777else
28778 WMF_DELEGATE_TRUE='#'
28779 WMF_DELEGATE_FALSE=
28780fi
28781
28782
28783
28784
28785
cristy735e8942010-04-02 20:32:57 +000028786
cristy3ed852e2009-09-05 21:47:34 +000028787#
28788# Check for XML delegate library.
28789#
28790
28791# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000028792if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028793 withval=$with_xml; with_xml=$withval
28794else
28795 with_xml=$have_x
28796fi
28797
28798
28799if test "$with_xml" != 'yes' ; then
28800 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
28801fi
28802
28803have_xml='no'
28804XML_LIBS=''
28805if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028807$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000028809$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028811$as_echo "" >&6; }
28812 PERSIST_LDFLAGS=$LDFLAGS
28813 PERSIST_CPPFLAGS=$CPPFLAGS
28814 xml2_config=''
28815 for ac_prog in xml2-config
28816do
28817 # Extract the first word of "$ac_prog", so it can be a program name with args.
28818set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028820$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028821if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028822 $as_echo_n "(cached) " >&6
28823else
28824 if test -n "$xml2_config"; then
28825 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
28826else
28827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28828for as_dir in $PATH
28829do
28830 IFS=$as_save_IFS
28831 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028832 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28834 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000028835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028836 break 2
28837 fi
28838done
cristy8b350f62009-11-15 23:12:43 +000028839 done
cristy3ed852e2009-09-05 21:47:34 +000028840IFS=$as_save_IFS
28841
28842fi
28843fi
28844xml2_config=$ac_cv_prog_xml2_config
28845if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000028846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000028847$as_echo "$xml2_config" >&6; }
28848else
cristy8b350f62009-11-15 23:12:43 +000028849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028850$as_echo "no" >&6; }
28851fi
28852
28853
28854 test -n "$xml2_config" && break
28855done
28856 if test -n "$xml2_config"; then
28857 # Debian installs libxml headers under /usr/include/libxml2/libxml with
28858 # the shared library installed under /usr/lib, whereas the package
28859 # installs itself under $prefix/libxml and $prefix/lib.
28860 xml2_prefix=`xml2-config --prefix`
28861 if test -d "${xml2_prefix}/include/libxml2"; then
28862 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
28863 fi
28864 if test "${xml2_prefix}" != '/usr'; then
28865 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
28866 fi
28867 fi
28868 failed=0
28869 passed=0
cristy8b350f62009-11-15 23:12:43 +000028870 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
28871if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028872 passed=`expr $passed + 1`
28873else
28874 failed=`expr $failed + 1`
28875fi
28876
28877
cristy8b350f62009-11-15 23:12:43 +000028878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000028879$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028880if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028881 $as_echo_n "(cached) " >&6
28882else
28883 ac_check_lib_save_LIBS=$LIBS
28884LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028886/* end confdefs.h. */
28887
28888/* Override any GCC internal prototype to avoid an error.
28889 Use char because int might match the return type of a GCC
28890 builtin and then its argument prototype would still apply. */
28891#ifdef __cplusplus
28892extern "C"
28893#endif
28894char xmlParseExternalEntity ();
28895int
28896main ()
28897{
28898return xmlParseExternalEntity ();
28899 ;
28900 return 0;
28901}
28902_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028903if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028904 ac_cv_lib_xml2_xmlParseExternalEntity=yes
28905else
cristy8b350f62009-11-15 23:12:43 +000028906 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000028907fi
cristy8b350f62009-11-15 23:12:43 +000028908rm -f core conftest.err conftest.$ac_objext \
28909 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028910LIBS=$ac_check_lib_save_LIBS
28911fi
cristy8b350f62009-11-15 23:12:43 +000028912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000028913$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028914if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028915 passed=`expr $passed + 1`
28916else
28917 failed=`expr $failed + 1`
28918fi
28919
cristy8b350f62009-11-15 23:12:43 +000028920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028921$as_echo_n "checking if XML package is complete... " >&6; }
28922 if test $passed -gt 0; then
28923 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028925$as_echo "no -- some components failed test" >&6; }
28926 have_xml='no (failed tests)'
28927 LDFLAGS="$PERSIST_LDFLAGS"
28928 CPPFLAGS="$PERSIST_CPPFLAGS"
28929 else
28930 XML_LIBS='-lxml2'
28931 LIBS="$XML_LIBS $LIBS"
28932
cristy8b350f62009-11-15 23:12:43 +000028933$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028934
cristy8b350f62009-11-15 23:12:43 +000028935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028936$as_echo "yes" >&6; }
28937 have_xml='yes'
28938 fi
28939 else
cristy8b350f62009-11-15 23:12:43 +000028940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028941$as_echo "no" >&6; }
28942 fi
28943fi
28944 if test "$have_xml" = 'yes'; then
28945 XML_DELEGATE_TRUE=
28946 XML_DELEGATE_FALSE='#'
28947else
28948 XML_DELEGATE_TRUE='#'
28949 XML_DELEGATE_FALSE=
28950fi
28951
28952
28953
28954
28955# Substitute compiler name to build/link PerlMagick
28956#
28957
28958
28959#
28960# Configure install Paths
28961#
28962
28963# Subdirectory under lib to place ImageMagick lib files
28964LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28965
28966cat >>confdefs.h <<_ACEOF
28967#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
28968_ACEOF
28969
28970
28971# Path to ImageMagick bin directory
28972EXECUTABLE_PATH="${BIN_DIR}"
28973DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
28974case "${build_os}" in
28975 mingw* )
28976 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
28977 ;;
28978esac
28979
28980cat >>confdefs.h <<_ACEOF
28981#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
28982_ACEOF
28983
28984
28985
28986# Path to ImageMagick lib
28987LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
28988DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
28989case "${build_os}" in
28990 mingw* )
28991 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
28992 ;;
28993esac
28994
28995cat >>confdefs.h <<_ACEOF
28996#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
28997_ACEOF
28998
28999
29000
29001# Subdirectory under lib to place ImageMagick configuration files
29002CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29003
29004cat >>confdefs.h <<_ACEOF
29005#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29006_ACEOF
29007
29008CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29009DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29010case "${build_os}" in
29011 mingw* )
29012 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29013 ;;
29014esac
29015
29016cat >>confdefs.h <<_ACEOF
29017#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29018_ACEOF
29019
29020
29021
29022#
29023# Subdirectory under lib to place ImageMagick coder module files
29024CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29025
29026cat >>confdefs.h <<_ACEOF
29027#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29028_ACEOF
29029
29030CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29031DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29032case "${build_os}" in
29033 mingw* )
29034 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29035 ;;
29036esac
29037
29038cat >>confdefs.h <<_ACEOF
29039#define CODER_PATH "$DEFINE_CODER_PATH"
29040_ACEOF
29041
29042
29043
29044#
29045# Subdirectory under lib to place ImageMagick filter module files
29046FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29047
29048cat >>confdefs.h <<_ACEOF
29049#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29050_ACEOF
29051
29052FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29053DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29054case "${build_os}" in
29055 mingw* )
29056 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29057 ;;
29058esac
29059
29060cat >>confdefs.h <<_ACEOF
29061#define FILTER_PATH "$DEFINE_FILTER_PATH"
29062_ACEOF
29063
29064
29065
29066#
29067# Path to ImageMagick documentation files
29068DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29069DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29070DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29071case "${build_os}" in
29072 mingw* )
29073 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29074 ;;
29075esac
29076
29077cat >>confdefs.h <<_ACEOF
29078#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29079_ACEOF
29080
29081
29082
29083#
29084# Path to ImageMagick share files
29085SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29086SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29087DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29088case "${build_os}" in
29089 mingw* )
29090 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29091 ;;
29092esac
29093
29094cat >>confdefs.h <<_ACEOF
29095#define SHARE_PATH "$DEFINE_SHARE_PATH"
29096_ACEOF
29097
29098
29099
29100# Subdirectory under share to place ImageMagick configuration files
29101SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29102
29103cat >>confdefs.h <<_ACEOF
29104#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29105_ACEOF
29106
29107SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29108DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29109case "${build_os}" in
29110 mingw* )
29111 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29112 ;;
29113esac
29114
29115cat >>confdefs.h <<_ACEOF
29116#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29117_ACEOF
29118
29119
29120
29121#
29122# program_transform_name is formed for use in a Makefile, so create a
29123# modified version for use in a shell script.
29124configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29125
29126# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000029127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029128$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029130$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029132$as_echo "" >&6; }
29133AutotraceDecodeDelegateDefault='autotrace'
29134AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000029135BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000029136BZIPDelegateDefault='bzip2'
29137BrowseDelegateDefault='xdg-open'
29138CGMDecodeDelegateDefault='ralcgm'
29139CatDelegateDefault='cat'
29140DNGDecodeDelegateDefault='ufraw-batch'
29141GVCDecodeDelegateDefault='dot'
29142DVIDecodeDelegateDefault='dvips'
29143EchoDelegateDefault='echo'
29144EditorDelegateDefault='xterm'
29145FIGDecodeDelegateDefault='fig2dev'
29146ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29147DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29148MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29149GnuplotDecodeDelegateDefault='gnuplot'
29150HDRDecodeDelegateDefault='ra_pfm'
29151HPGLDecodeDelegateDefault='hp2xx'
29152HTMLDecodeDelegateDefault='html2ps'
29153ILBMDecodeDelegateDefault='ilbmtoppm'
29154ILBMEncodeDelegateDefault='ppmtoilbm'
29155LPDelegateDefault='lp'
29156LPRDelegateDefault='lpr'
29157LZWDecodeDelegateDefault='uncompress'
29158LZWEncodeDelegateDefault='compress'
29159LaunchDelegateDefault='gimp'
29160MANDelegateDefault='groff'
29161MPEGDecodeDelegateDefault='ffmpeg'
29162MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000029163MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000029164MVDelegateDefault='mv'
29165PCLDelegateDefault='pcl6'
29166PGPDecodeDelegateDefault='pgpv'
29167POVDelegateDefault='povray'
29168if test "$native_win32_build" = 'yes'; then
29169 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000029170elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029171 PSDelegateDefault='gsc'
29172else
29173 PSDelegateDefault='gs'
29174fi
29175RLEEncodeDelegateDefault='rawtorle'
29176RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000029177RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000029178SCANDecodeDelegateDefault='scanimage'
29179TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000029180UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000029181WMFDecodeDelegateDefault='wmf2eps'
29182WWWDecodeDelegateDefault='curl'
29183XPSDelegateDefault='gxps'
29184ZipDelegateDefault='gzip'
29185
29186# Search for delegates
29187# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29188set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029190$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029191if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029192 $as_echo_n "(cached) " >&6
29193else
29194 case $AutotraceDecodeDelegate in
29195 [\\/]* | ?:[\\/]*)
29196 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29197 ;;
29198 *)
29199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29200for as_dir in $PATH
29201do
29202 IFS=$as_save_IFS
29203 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029204 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29206 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029208 break 2
29209 fi
29210done
cristy8b350f62009-11-15 23:12:43 +000029211 done
cristy3ed852e2009-09-05 21:47:34 +000029212IFS=$as_save_IFS
29213
29214 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29215 ;;
29216esac
29217fi
29218AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29219if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029221$as_echo "$AutotraceDecodeDelegate" >&6; }
29222else
cristy8b350f62009-11-15 23:12:43 +000029223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029224$as_echo "no" >&6; }
29225fi
29226
29227
29228# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29229set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029231$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029232if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029233 $as_echo_n "(cached) " >&6
29234else
29235 case $AVIDecodeDelegate in
29236 [\\/]* | ?:[\\/]*)
29237 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29238 ;;
29239 *)
29240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29241for as_dir in $PATH
29242do
29243 IFS=$as_save_IFS
29244 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029245 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29247 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029249 break 2
29250 fi
29251done
cristy8b350f62009-11-15 23:12:43 +000029252 done
cristy3ed852e2009-09-05 21:47:34 +000029253IFS=$as_save_IFS
29254
29255 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29256 ;;
29257esac
29258fi
29259AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29260if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029262$as_echo "$AVIDecodeDelegate" >&6; }
29263else
cristy8b350f62009-11-15 23:12:43 +000029264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029265$as_echo "no" >&6; }
29266fi
29267
29268
29269# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29270set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029272$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029273if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029274 $as_echo_n "(cached) " >&6
29275else
29276 case $BlenderDecodeDelegate in
29277 [\\/]* | ?:[\\/]*)
29278 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29279 ;;
29280 *)
29281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29282for as_dir in $PATH
29283do
29284 IFS=$as_save_IFS
29285 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029286 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29288 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029290 break 2
29291 fi
29292done
cristy8b350f62009-11-15 23:12:43 +000029293 done
cristy3ed852e2009-09-05 21:47:34 +000029294IFS=$as_save_IFS
29295
29296 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29297 ;;
29298esac
29299fi
29300BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29301if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029303$as_echo "$BlenderDecodeDelegate" >&6; }
29304else
cristy8b350f62009-11-15 23:12:43 +000029305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029306$as_echo "no" >&6; }
29307fi
29308
29309
29310# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29311set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029313$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029314if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029315 $as_echo_n "(cached) " >&6
29316else
29317 case $BZIPDelegate in
29318 [\\/]* | ?:[\\/]*)
29319 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29320 ;;
29321 *)
29322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29323for as_dir in $PATH
29324do
29325 IFS=$as_save_IFS
29326 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029327 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29329 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029331 break 2
29332 fi
29333done
cristy8b350f62009-11-15 23:12:43 +000029334 done
cristy3ed852e2009-09-05 21:47:34 +000029335IFS=$as_save_IFS
29336
29337 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29338 ;;
29339esac
29340fi
29341BZIPDelegate=$ac_cv_path_BZIPDelegate
29342if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029344$as_echo "$BZIPDelegate" >&6; }
29345else
cristy8b350f62009-11-15 23:12:43 +000029346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029347$as_echo "no" >&6; }
29348fi
29349
29350
29351# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29352set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029354$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029355if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029356 $as_echo_n "(cached) " >&6
29357else
29358 case $BrowseDelegate in
29359 [\\/]* | ?:[\\/]*)
29360 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29361 ;;
29362 *)
29363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29364for as_dir in $PATH
29365do
29366 IFS=$as_save_IFS
29367 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029368 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29370 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029372 break 2
29373 fi
29374done
cristy8b350f62009-11-15 23:12:43 +000029375 done
cristy3ed852e2009-09-05 21:47:34 +000029376IFS=$as_save_IFS
29377
29378 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29379 ;;
29380esac
29381fi
29382BrowseDelegate=$ac_cv_path_BrowseDelegate
29383if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029385$as_echo "$BrowseDelegate" >&6; }
29386else
cristy8b350f62009-11-15 23:12:43 +000029387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029388$as_echo "no" >&6; }
29389fi
29390
29391
29392# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29393set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029395$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029396if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029397 $as_echo_n "(cached) " >&6
29398else
29399 case $CGMDecodeDelegate in
29400 [\\/]* | ?:[\\/]*)
29401 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29402 ;;
29403 *)
29404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29405for as_dir in $PATH
29406do
29407 IFS=$as_save_IFS
29408 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029409 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29411 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029413 break 2
29414 fi
29415done
cristy8b350f62009-11-15 23:12:43 +000029416 done
cristy3ed852e2009-09-05 21:47:34 +000029417IFS=$as_save_IFS
29418
29419 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29420 ;;
29421esac
29422fi
29423CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29424if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029426$as_echo "$CGMDecodeDelegate" >&6; }
29427else
cristy8b350f62009-11-15 23:12:43 +000029428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029429$as_echo "no" >&6; }
29430fi
29431
29432
29433# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29434set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029436$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029437if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029438 $as_echo_n "(cached) " >&6
29439else
29440 case $CatDelegate in
29441 [\\/]* | ?:[\\/]*)
29442 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29443 ;;
29444 *)
29445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29446for as_dir in $PATH
29447do
29448 IFS=$as_save_IFS
29449 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029450 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29452 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029454 break 2
29455 fi
29456done
cristy8b350f62009-11-15 23:12:43 +000029457 done
cristy3ed852e2009-09-05 21:47:34 +000029458IFS=$as_save_IFS
29459
29460 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29461 ;;
29462esac
29463fi
29464CatDelegate=$ac_cv_path_CatDelegate
29465if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029467$as_echo "$CatDelegate" >&6; }
29468else
cristy8b350f62009-11-15 23:12:43 +000029469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029470$as_echo "no" >&6; }
29471fi
29472
29473
29474# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29475set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029477$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029478if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029479 $as_echo_n "(cached) " >&6
29480else
29481 case $DNGDecodeDelegate in
29482 [\\/]* | ?:[\\/]*)
29483 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29484 ;;
29485 *)
29486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29487for as_dir in $PATH
29488do
29489 IFS=$as_save_IFS
29490 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029491 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29493 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029495 break 2
29496 fi
29497done
cristy8b350f62009-11-15 23:12:43 +000029498 done
cristy3ed852e2009-09-05 21:47:34 +000029499IFS=$as_save_IFS
29500
29501 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29502 ;;
29503esac
29504fi
29505DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29506if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029508$as_echo "$DNGDecodeDelegate" >&6; }
29509else
cristy8b350f62009-11-15 23:12:43 +000029510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029511$as_echo "no" >&6; }
29512fi
29513
29514
29515# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29516set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029518$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029519if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029520 $as_echo_n "(cached) " >&6
29521else
29522 case $GVCDecodeDelegate in
29523 [\\/]* | ?:[\\/]*)
29524 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29525 ;;
29526 *)
29527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29528for as_dir in $PATH
29529do
29530 IFS=$as_save_IFS
29531 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029532 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29534 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029536 break 2
29537 fi
29538done
cristy8b350f62009-11-15 23:12:43 +000029539 done
cristy3ed852e2009-09-05 21:47:34 +000029540IFS=$as_save_IFS
29541
29542 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29543 ;;
29544esac
29545fi
29546GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29547if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029549$as_echo "$GVCDecodeDelegate" >&6; }
29550else
cristy8b350f62009-11-15 23:12:43 +000029551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029552$as_echo "no" >&6; }
29553fi
29554
29555
29556# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29557set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029559$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029560if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029561 $as_echo_n "(cached) " >&6
29562else
29563 case $DVIDecodeDelegate in
29564 [\\/]* | ?:[\\/]*)
29565 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29566 ;;
29567 *)
29568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29569for as_dir in $PATH
29570do
29571 IFS=$as_save_IFS
29572 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029573 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29575 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029577 break 2
29578 fi
29579done
cristy8b350f62009-11-15 23:12:43 +000029580 done
cristy3ed852e2009-09-05 21:47:34 +000029581IFS=$as_save_IFS
29582
29583 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
29584 ;;
29585esac
29586fi
29587DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
29588if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029590$as_echo "$DVIDecodeDelegate" >&6; }
29591else
cristy8b350f62009-11-15 23:12:43 +000029592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029593$as_echo "no" >&6; }
29594fi
29595
29596
29597# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
29598set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029600$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029601if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029602 $as_echo_n "(cached) " >&6
29603else
29604 case $EchoDelegate in
29605 [\\/]* | ?:[\\/]*)
29606 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
29607 ;;
29608 *)
29609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29610for as_dir in $PATH
29611do
29612 IFS=$as_save_IFS
29613 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029614 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29616 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029618 break 2
29619 fi
29620done
cristy8b350f62009-11-15 23:12:43 +000029621 done
cristy3ed852e2009-09-05 21:47:34 +000029622IFS=$as_save_IFS
29623
29624 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
29625 ;;
29626esac
29627fi
29628EchoDelegate=$ac_cv_path_EchoDelegate
29629if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029631$as_echo "$EchoDelegate" >&6; }
29632else
cristy8b350f62009-11-15 23:12:43 +000029633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029634$as_echo "no" >&6; }
29635fi
29636
29637
29638# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
29639set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029641$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029642if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029643 $as_echo_n "(cached) " >&6
29644else
29645 case $EditorDelegate in
29646 [\\/]* | ?:[\\/]*)
29647 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
29648 ;;
29649 *)
29650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29651for as_dir in $PATH
29652do
29653 IFS=$as_save_IFS
29654 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029655 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29657 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029659 break 2
29660 fi
29661done
cristy8b350f62009-11-15 23:12:43 +000029662 done
cristy3ed852e2009-09-05 21:47:34 +000029663IFS=$as_save_IFS
29664
29665 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
29666 ;;
29667esac
29668fi
29669EditorDelegate=$ac_cv_path_EditorDelegate
29670if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029672$as_echo "$EditorDelegate" >&6; }
29673else
cristy8b350f62009-11-15 23:12:43 +000029674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029675$as_echo "no" >&6; }
29676fi
29677
29678
29679# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
29680set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029682$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029683if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029684 $as_echo_n "(cached) " >&6
29685else
29686 case $FIGDecodeDelegate in
29687 [\\/]* | ?:[\\/]*)
29688 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
29689 ;;
29690 *)
29691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29692for as_dir in $PATH
29693do
29694 IFS=$as_save_IFS
29695 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029696 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29698 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029700 break 2
29701 fi
29702done
cristy8b350f62009-11-15 23:12:43 +000029703 done
cristy3ed852e2009-09-05 21:47:34 +000029704IFS=$as_save_IFS
29705
29706 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
29707 ;;
29708esac
29709fi
29710FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
29711if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029713$as_echo "$FIGDecodeDelegate" >&6; }
29714else
cristy8b350f62009-11-15 23:12:43 +000029715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029716$as_echo "no" >&6; }
29717fi
29718
29719
29720# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
29721set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029723$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029724if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029725 $as_echo_n "(cached) " >&6
29726else
29727 case $ConvertDelegate in
29728 [\\/]* | ?:[\\/]*)
29729 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
29730 ;;
29731 *)
29732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29733for as_dir in $PATH
29734do
29735 IFS=$as_save_IFS
29736 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029737 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29739 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029741 break 2
29742 fi
29743done
cristy8b350f62009-11-15 23:12:43 +000029744 done
cristy3ed852e2009-09-05 21:47:34 +000029745IFS=$as_save_IFS
29746
29747 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
29748 ;;
29749esac
29750fi
29751ConvertDelegate=$ac_cv_path_ConvertDelegate
29752if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029754$as_echo "$ConvertDelegate" >&6; }
29755else
cristy8b350f62009-11-15 23:12:43 +000029756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029757$as_echo "no" >&6; }
29758fi
29759
29760
29761# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
29762set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029764$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029765if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029766 $as_echo_n "(cached) " >&6
29767else
29768 case $DisplayDelegate in
29769 [\\/]* | ?:[\\/]*)
29770 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
29771 ;;
29772 *)
29773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29774for as_dir in $PATH
29775do
29776 IFS=$as_save_IFS
29777 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029778 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29780 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029782 break 2
29783 fi
29784done
cristy8b350f62009-11-15 23:12:43 +000029785 done
cristy3ed852e2009-09-05 21:47:34 +000029786IFS=$as_save_IFS
29787
29788 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
29789 ;;
29790esac
29791fi
29792DisplayDelegate=$ac_cv_path_DisplayDelegate
29793if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029795$as_echo "$DisplayDelegate" >&6; }
29796else
cristy8b350f62009-11-15 23:12:43 +000029797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029798$as_echo "no" >&6; }
29799fi
29800
29801
29802# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
29803set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029805$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029806if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029807 $as_echo_n "(cached) " >&6
29808else
29809 case $MogrifyDelegate in
29810 [\\/]* | ?:[\\/]*)
29811 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
29812 ;;
29813 *)
29814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29815for as_dir in $PATH
29816do
29817 IFS=$as_save_IFS
29818 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029819 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29821 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029823 break 2
29824 fi
29825done
cristy8b350f62009-11-15 23:12:43 +000029826 done
cristy3ed852e2009-09-05 21:47:34 +000029827IFS=$as_save_IFS
29828
29829 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
29830 ;;
29831esac
29832fi
29833MogrifyDelegate=$ac_cv_path_MogrifyDelegate
29834if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029836$as_echo "$MogrifyDelegate" >&6; }
29837else
cristy8b350f62009-11-15 23:12:43 +000029838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029839$as_echo "no" >&6; }
29840fi
29841
29842
29843# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
29844set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029846$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029847if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029848 $as_echo_n "(cached) " >&6
29849else
29850 case $GnuplotDecodeDelegate in
29851 [\\/]* | ?:[\\/]*)
29852 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
29853 ;;
29854 *)
29855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29856for as_dir in $PATH
29857do
29858 IFS=$as_save_IFS
29859 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029860 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29862 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029864 break 2
29865 fi
29866done
cristy8b350f62009-11-15 23:12:43 +000029867 done
cristy3ed852e2009-09-05 21:47:34 +000029868IFS=$as_save_IFS
29869
29870 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
29871 ;;
29872esac
29873fi
29874GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
29875if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029877$as_echo "$GnuplotDecodeDelegate" >&6; }
29878else
cristy8b350f62009-11-15 23:12:43 +000029879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029880$as_echo "no" >&6; }
29881fi
29882
29883
29884# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
29885set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029887$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029888if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029889 $as_echo_n "(cached) " >&6
29890else
29891 case $HDRDecodeDelegate in
29892 [\\/]* | ?:[\\/]*)
29893 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
29894 ;;
29895 *)
29896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29897for as_dir in $PATH
29898do
29899 IFS=$as_save_IFS
29900 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029901 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29903 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029905 break 2
29906 fi
29907done
cristy8b350f62009-11-15 23:12:43 +000029908 done
cristy3ed852e2009-09-05 21:47:34 +000029909IFS=$as_save_IFS
29910
29911 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
29912 ;;
29913esac
29914fi
29915HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
29916if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029918$as_echo "$HDRDecodeDelegate" >&6; }
29919else
cristy8b350f62009-11-15 23:12:43 +000029920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029921$as_echo "no" >&6; }
29922fi
29923
29924
29925# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
29926set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029928$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029929if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029930 $as_echo_n "(cached) " >&6
29931else
29932 case $HPGLDecodeDelegate in
29933 [\\/]* | ?:[\\/]*)
29934 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
29935 ;;
29936 *)
29937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29938for as_dir in $PATH
29939do
29940 IFS=$as_save_IFS
29941 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029942 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29944 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029946 break 2
29947 fi
29948done
cristy8b350f62009-11-15 23:12:43 +000029949 done
cristy3ed852e2009-09-05 21:47:34 +000029950IFS=$as_save_IFS
29951
29952 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
29953 ;;
29954esac
29955fi
29956HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
29957if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029959$as_echo "$HPGLDecodeDelegate" >&6; }
29960else
cristy8b350f62009-11-15 23:12:43 +000029961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029962$as_echo "no" >&6; }
29963fi
29964
29965
29966# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
29967set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029969$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029970if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029971 $as_echo_n "(cached) " >&6
29972else
29973 case $HTMLDecodeDelegate in
29974 [\\/]* | ?:[\\/]*)
29975 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
29976 ;;
29977 *)
29978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29979for as_dir in $PATH
29980do
29981 IFS=$as_save_IFS
29982 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029983 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29985 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029987 break 2
29988 fi
29989done
cristy8b350f62009-11-15 23:12:43 +000029990 done
cristy3ed852e2009-09-05 21:47:34 +000029991IFS=$as_save_IFS
29992
29993 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
29994 ;;
29995esac
29996fi
29997HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
29998if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030000$as_echo "$HTMLDecodeDelegate" >&6; }
30001else
cristy8b350f62009-11-15 23:12:43 +000030002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030003$as_echo "no" >&6; }
30004fi
30005
30006
30007# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30008set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030010$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030011if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030012 $as_echo_n "(cached) " >&6
30013else
30014 case $ILBMDecodeDelegate in
30015 [\\/]* | ?:[\\/]*)
30016 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30017 ;;
30018 *)
30019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30020for as_dir in $PATH
30021do
30022 IFS=$as_save_IFS
30023 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030024 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30026 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030028 break 2
30029 fi
30030done
cristy8b350f62009-11-15 23:12:43 +000030031 done
cristy3ed852e2009-09-05 21:47:34 +000030032IFS=$as_save_IFS
30033
30034 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30035 ;;
30036esac
30037fi
30038ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30039if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030041$as_echo "$ILBMDecodeDelegate" >&6; }
30042else
cristy8b350f62009-11-15 23:12:43 +000030043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030044$as_echo "no" >&6; }
30045fi
30046
30047
30048# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30049set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030051$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030052if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030053 $as_echo_n "(cached) " >&6
30054else
30055 case $ILBMEncodeDelegate in
30056 [\\/]* | ?:[\\/]*)
30057 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30058 ;;
30059 *)
30060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30061for as_dir in $PATH
30062do
30063 IFS=$as_save_IFS
30064 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030065 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30067 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030069 break 2
30070 fi
30071done
cristy8b350f62009-11-15 23:12:43 +000030072 done
cristy3ed852e2009-09-05 21:47:34 +000030073IFS=$as_save_IFS
30074
30075 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30076 ;;
30077esac
30078fi
30079ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30080if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030082$as_echo "$ILBMEncodeDelegate" >&6; }
30083else
cristy8b350f62009-11-15 23:12:43 +000030084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030085$as_echo "no" >&6; }
30086fi
30087
30088
30089# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30090set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030092$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030093if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030094 $as_echo_n "(cached) " >&6
30095else
30096 case $LPDelegate in
30097 [\\/]* | ?:[\\/]*)
30098 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30099 ;;
30100 *)
30101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30102for as_dir in $PATH
30103do
30104 IFS=$as_save_IFS
30105 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030106 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30108 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030110 break 2
30111 fi
30112done
cristy8b350f62009-11-15 23:12:43 +000030113 done
cristy3ed852e2009-09-05 21:47:34 +000030114IFS=$as_save_IFS
30115
30116 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30117 ;;
30118esac
30119fi
30120LPDelegate=$ac_cv_path_LPDelegate
30121if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030123$as_echo "$LPDelegate" >&6; }
30124else
cristy8b350f62009-11-15 23:12:43 +000030125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030126$as_echo "no" >&6; }
30127fi
30128
30129
30130# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30131set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030133$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030134if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030135 $as_echo_n "(cached) " >&6
30136else
30137 case $LPRDelegate in
30138 [\\/]* | ?:[\\/]*)
30139 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30140 ;;
30141 *)
30142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30143for as_dir in $PATH
30144do
30145 IFS=$as_save_IFS
30146 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030147 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30149 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030151 break 2
30152 fi
30153done
cristy8b350f62009-11-15 23:12:43 +000030154 done
cristy3ed852e2009-09-05 21:47:34 +000030155IFS=$as_save_IFS
30156
30157 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30158 ;;
30159esac
30160fi
30161LPRDelegate=$ac_cv_path_LPRDelegate
30162if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030164$as_echo "$LPRDelegate" >&6; }
30165else
cristy8b350f62009-11-15 23:12:43 +000030166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030167$as_echo "no" >&6; }
30168fi
30169
30170
30171# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30172set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030174$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030175if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030176 $as_echo_n "(cached) " >&6
30177else
30178 case $LZWDecodeDelegate in
30179 [\\/]* | ?:[\\/]*)
30180 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30181 ;;
30182 *)
30183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30184for as_dir in $PATH
30185do
30186 IFS=$as_save_IFS
30187 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030188 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30190 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030192 break 2
30193 fi
30194done
cristy8b350f62009-11-15 23:12:43 +000030195 done
cristy3ed852e2009-09-05 21:47:34 +000030196IFS=$as_save_IFS
30197
30198 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30199 ;;
30200esac
30201fi
30202LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30203if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030205$as_echo "$LZWDecodeDelegate" >&6; }
30206else
cristy8b350f62009-11-15 23:12:43 +000030207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030208$as_echo "no" >&6; }
30209fi
30210
30211
30212# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30213set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030215$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030216if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030217 $as_echo_n "(cached) " >&6
30218else
30219 case $LZWEncodeDelegate in
30220 [\\/]* | ?:[\\/]*)
30221 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30222 ;;
30223 *)
30224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30225for as_dir in $PATH
30226do
30227 IFS=$as_save_IFS
30228 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030229 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30231 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030233 break 2
30234 fi
30235done
cristy8b350f62009-11-15 23:12:43 +000030236 done
cristy3ed852e2009-09-05 21:47:34 +000030237IFS=$as_save_IFS
30238
30239 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30240 ;;
30241esac
30242fi
30243LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30244if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030246$as_echo "$LZWEncodeDelegate" >&6; }
30247else
cristy8b350f62009-11-15 23:12:43 +000030248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030249$as_echo "no" >&6; }
30250fi
30251
30252
30253# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30254set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030256$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030257if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030258 $as_echo_n "(cached) " >&6
30259else
30260 case $LaunchDelegate in
30261 [\\/]* | ?:[\\/]*)
30262 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30263 ;;
30264 *)
30265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30266for as_dir in $PATH
30267do
30268 IFS=$as_save_IFS
30269 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030270 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30272 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030274 break 2
30275 fi
30276done
cristy8b350f62009-11-15 23:12:43 +000030277 done
cristy3ed852e2009-09-05 21:47:34 +000030278IFS=$as_save_IFS
30279
30280 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30281 ;;
30282esac
30283fi
30284LaunchDelegate=$ac_cv_path_LaunchDelegate
30285if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030287$as_echo "$LaunchDelegate" >&6; }
30288else
cristy8b350f62009-11-15 23:12:43 +000030289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030290$as_echo "no" >&6; }
30291fi
30292
30293
30294# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30295set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030297$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030298if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030299 $as_echo_n "(cached) " >&6
30300else
30301 case $MANDelegate in
30302 [\\/]* | ?:[\\/]*)
30303 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30304 ;;
30305 *)
30306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30307for as_dir in $PATH
30308do
30309 IFS=$as_save_IFS
30310 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030311 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30313 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030315 break 2
30316 fi
30317done
cristy8b350f62009-11-15 23:12:43 +000030318 done
cristy3ed852e2009-09-05 21:47:34 +000030319IFS=$as_save_IFS
30320
30321 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30322 ;;
30323esac
30324fi
30325MANDelegate=$ac_cv_path_MANDelegate
30326if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030328$as_echo "$MANDelegate" >&6; }
30329else
cristy8b350f62009-11-15 23:12:43 +000030330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030331$as_echo "no" >&6; }
30332fi
30333
30334
30335# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30336set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030338$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030339if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030340 $as_echo_n "(cached) " >&6
30341else
30342 case $MPEGDecodeDelegate in
30343 [\\/]* | ?:[\\/]*)
30344 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30345 ;;
30346 *)
30347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30348for as_dir in $PATH
30349do
30350 IFS=$as_save_IFS
30351 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030352 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30354 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030356 break 2
30357 fi
30358done
cristy8b350f62009-11-15 23:12:43 +000030359 done
cristy3ed852e2009-09-05 21:47:34 +000030360IFS=$as_save_IFS
30361
30362 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30363 ;;
30364esac
30365fi
30366MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30367if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030369$as_echo "$MPEGDecodeDelegate" >&6; }
30370else
cristy8b350f62009-11-15 23:12:43 +000030371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030372$as_echo "no" >&6; }
30373fi
30374
30375
30376# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30377set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030379$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030380if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030381 $as_echo_n "(cached) " >&6
30382else
30383 case $MPEGEncodeDelegate in
30384 [\\/]* | ?:[\\/]*)
30385 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30386 ;;
30387 *)
30388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30389for as_dir in $PATH
30390do
30391 IFS=$as_save_IFS
30392 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030393 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30395 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030397 break 2
30398 fi
30399done
cristy8b350f62009-11-15 23:12:43 +000030400 done
cristy3ed852e2009-09-05 21:47:34 +000030401IFS=$as_save_IFS
30402
30403 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30404 ;;
30405esac
30406fi
30407MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30408if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030410$as_echo "$MPEGEncodeDelegate" >&6; }
30411else
cristy8b350f62009-11-15 23:12:43 +000030412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030413$as_echo "no" >&6; }
30414fi
30415
30416
cristy935c86e2010-06-05 23:50:07 +000030417# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30418set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30420$as_echo_n "checking for $ac_word... " >&6; }
30421if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30422 $as_echo_n "(cached) " >&6
30423else
30424 case $MrSIDDecodeDelegate in
30425 [\\/]* | ?:[\\/]*)
30426 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30427 ;;
30428 *)
30429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30430for as_dir in $PATH
30431do
30432 IFS=$as_save_IFS
30433 test -z "$as_dir" && as_dir=.
30434 for ac_exec_ext in '' $ac_executable_extensions; do
30435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30436 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30438 break 2
30439 fi
30440done
30441 done
30442IFS=$as_save_IFS
30443
30444 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
30445 ;;
30446esac
30447fi
30448MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
30449if test -n "$MrSIDDecodeDelegate"; then
30450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
30451$as_echo "$MrSIDDecodeDelegate" >&6; }
30452else
30453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30454$as_echo "no" >&6; }
30455fi
30456
30457
cristy3ed852e2009-09-05 21:47:34 +000030458# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30459set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030461$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030462if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030463 $as_echo_n "(cached) " >&6
30464else
30465 case $MVDelegate in
30466 [\\/]* | ?:[\\/]*)
30467 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30468 ;;
30469 *)
30470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30471for as_dir in $PATH
30472do
30473 IFS=$as_save_IFS
30474 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030475 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30477 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030479 break 2
30480 fi
30481done
cristy8b350f62009-11-15 23:12:43 +000030482 done
cristy3ed852e2009-09-05 21:47:34 +000030483IFS=$as_save_IFS
30484
30485 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30486 ;;
30487esac
30488fi
30489MVDelegate=$ac_cv_path_MVDelegate
30490if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030492$as_echo "$MVDelegate" >&6; }
30493else
cristy8b350f62009-11-15 23:12:43 +000030494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030495$as_echo "no" >&6; }
30496fi
30497
30498
30499# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30500set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030502$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030503if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030504 $as_echo_n "(cached) " >&6
30505else
30506 case $PCLDelegate in
30507 [\\/]* | ?:[\\/]*)
30508 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30509 ;;
30510 *)
30511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30512for as_dir in $PATH
30513do
30514 IFS=$as_save_IFS
30515 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030516 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30518 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030520 break 2
30521 fi
30522done
cristy8b350f62009-11-15 23:12:43 +000030523 done
cristy3ed852e2009-09-05 21:47:34 +000030524IFS=$as_save_IFS
30525
30526 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30527 ;;
30528esac
30529fi
30530PCLDelegate=$ac_cv_path_PCLDelegate
30531if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030533$as_echo "$PCLDelegate" >&6; }
30534else
cristy8b350f62009-11-15 23:12:43 +000030535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030536$as_echo "no" >&6; }
30537fi
30538
30539
30540# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30541set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030543$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030544if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030545 $as_echo_n "(cached) " >&6
30546else
30547 case $PGPDecodeDelegate in
30548 [\\/]* | ?:[\\/]*)
30549 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30550 ;;
30551 *)
30552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30553for as_dir in $PATH
30554do
30555 IFS=$as_save_IFS
30556 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030557 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30559 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030561 break 2
30562 fi
30563done
cristy8b350f62009-11-15 23:12:43 +000030564 done
cristy3ed852e2009-09-05 21:47:34 +000030565IFS=$as_save_IFS
30566
30567 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30568 ;;
30569esac
30570fi
30571PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30572if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030574$as_echo "$PGPDecodeDelegate" >&6; }
30575else
cristy8b350f62009-11-15 23:12:43 +000030576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030577$as_echo "no" >&6; }
30578fi
30579
30580
30581# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
30582set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030584$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030585if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030586 $as_echo_n "(cached) " >&6
30587else
30588 case $POVDelegate in
30589 [\\/]* | ?:[\\/]*)
30590 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
30591 ;;
30592 *)
30593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30594for as_dir in $PATH
30595do
30596 IFS=$as_save_IFS
30597 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030598 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30600 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030602 break 2
30603 fi
30604done
cristy8b350f62009-11-15 23:12:43 +000030605 done
cristy3ed852e2009-09-05 21:47:34 +000030606IFS=$as_save_IFS
30607
30608 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
30609 ;;
30610esac
30611fi
30612POVDelegate=$ac_cv_path_POVDelegate
30613if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030615$as_echo "$POVDelegate" >&6; }
30616else
cristy8b350f62009-11-15 23:12:43 +000030617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030618$as_echo "no" >&6; }
30619fi
30620
30621
30622for ac_prog in gsx gsc "$PSDelegateDefault"
30623do
30624 # Extract the first word of "$ac_prog", so it can be a program name with args.
30625set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030627$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030628if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030629 $as_echo_n "(cached) " >&6
30630else
30631 case $PSDelegate in
30632 [\\/]* | ?:[\\/]*)
30633 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
30634 ;;
30635 *)
30636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30637for as_dir in $PATH
30638do
30639 IFS=$as_save_IFS
30640 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030641 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30643 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030645 break 2
30646 fi
30647done
cristy8b350f62009-11-15 23:12:43 +000030648 done
cristy3ed852e2009-09-05 21:47:34 +000030649IFS=$as_save_IFS
30650
30651 ;;
30652esac
30653fi
30654PSDelegate=$ac_cv_path_PSDelegate
30655if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030657$as_echo "$PSDelegate" >&6; }
30658else
cristy8b350f62009-11-15 23:12:43 +000030659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030660$as_echo "no" >&6; }
30661fi
30662
30663
30664 test -n "$PSDelegate" && break
30665done
30666test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
30667
30668# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
30669set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030671$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030672if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030673 $as_echo_n "(cached) " >&6
30674else
30675 case $RLEEncodeDelegate in
30676 [\\/]* | ?:[\\/]*)
30677 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
30678 ;;
30679 *)
30680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30681for as_dir in $PATH
30682do
30683 IFS=$as_save_IFS
30684 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030685 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30687 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030689 break 2
30690 fi
30691done
cristy8b350f62009-11-15 23:12:43 +000030692 done
cristy3ed852e2009-09-05 21:47:34 +000030693IFS=$as_save_IFS
30694
30695 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
30696 ;;
30697esac
30698fi
30699RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
30700if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030702$as_echo "$RLEEncodeDelegate" >&6; }
30703else
cristy8b350f62009-11-15 23:12:43 +000030704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030705$as_echo "no" >&6; }
30706fi
30707
30708
30709# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
30710set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030712$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030713if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030714 $as_echo_n "(cached) " >&6
30715else
30716 case $RMDelegate in
30717 [\\/]* | ?:[\\/]*)
30718 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
30719 ;;
30720 *)
30721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30722for as_dir in $PATH
30723do
30724 IFS=$as_save_IFS
30725 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030726 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30728 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030730 break 2
30731 fi
30732done
cristy8b350f62009-11-15 23:12:43 +000030733 done
cristy3ed852e2009-09-05 21:47:34 +000030734IFS=$as_save_IFS
30735
30736 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
30737 ;;
30738esac
30739fi
30740RMDelegate=$ac_cv_path_RMDelegate
30741if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030743$as_echo "$RMDelegate" >&6; }
30744else
cristy8b350f62009-11-15 23:12:43 +000030745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030746$as_echo "no" >&6; }
30747fi
30748
30749
cristy4689cf02010-02-17 21:15:45 +000030750# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
30751set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
30752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30753$as_echo_n "checking for $ac_word... " >&6; }
30754if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
30755 $as_echo_n "(cached) " >&6
30756else
30757 case $RSVGDecodeDelegate in
30758 [\\/]* | ?:[\\/]*)
30759 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
30760 ;;
30761 *)
30762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30763for as_dir in $PATH
30764do
30765 IFS=$as_save_IFS
30766 test -z "$as_dir" && as_dir=.
30767 for ac_exec_ext in '' $ac_executable_extensions; do
30768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30769 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30771 break 2
30772 fi
30773done
30774 done
30775IFS=$as_save_IFS
30776
30777 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
30778 ;;
30779esac
30780fi
30781RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
30782if test -n "$RSVGDecodeDelegate"; then
30783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
30784$as_echo "$RSVGDecodeDelegate" >&6; }
30785else
30786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30787$as_echo "no" >&6; }
30788fi
30789
30790
cristy3ed852e2009-09-05 21:47:34 +000030791# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
30792set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030794$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030795if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030796 $as_echo_n "(cached) " >&6
30797else
30798 case $SCANDecodeDelegate in
30799 [\\/]* | ?:[\\/]*)
30800 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
30801 ;;
30802 *)
30803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30804for as_dir in $PATH
30805do
30806 IFS=$as_save_IFS
30807 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030808 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30810 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030812 break 2
30813 fi
30814done
cristy8b350f62009-11-15 23:12:43 +000030815 done
cristy3ed852e2009-09-05 21:47:34 +000030816IFS=$as_save_IFS
30817
30818 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
30819 ;;
30820esac
30821fi
30822SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
30823if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030825$as_echo "$SCANDecodeDelegate" >&6; }
30826else
cristy8b350f62009-11-15 23:12:43 +000030827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030828$as_echo "no" >&6; }
30829fi
30830
30831
30832# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
30833set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030835$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030836if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030837 $as_echo_n "(cached) " >&6
30838else
30839 case $TXTDelegate in
30840 [\\/]* | ?:[\\/]*)
30841 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
30842 ;;
30843 *)
30844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30845for as_dir in $PATH
30846do
30847 IFS=$as_save_IFS
30848 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030849 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30851 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030853 break 2
30854 fi
30855done
cristy8b350f62009-11-15 23:12:43 +000030856 done
cristy3ed852e2009-09-05 21:47:34 +000030857IFS=$as_save_IFS
30858
30859 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
30860 ;;
30861esac
30862fi
30863TXTDelegate=$ac_cv_path_TXTDelegate
30864if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030866$as_echo "$TXTDelegate" >&6; }
30867else
cristy8b350f62009-11-15 23:12:43 +000030868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030869$as_echo "no" >&6; }
30870fi
30871
30872
cristy5ac9ac82010-07-29 13:24:24 +000030873# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
30874set dummy "$UniconvertorDelegateDefault"; ac_word=$2
30875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30876$as_echo_n "checking for $ac_word... " >&6; }
30877if test "${ac_cv_path_UniconvertorDelegate+set}" = set; then :
30878 $as_echo_n "(cached) " >&6
30879else
30880 case $UniconvertorDelegate in
30881 [\\/]* | ?:[\\/]*)
30882 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
30883 ;;
30884 *)
30885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30886for as_dir in $PATH
30887do
30888 IFS=$as_save_IFS
30889 test -z "$as_dir" && as_dir=.
30890 for ac_exec_ext in '' $ac_executable_extensions; do
30891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30892 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
30893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30894 break 2
30895 fi
30896done
30897 done
30898IFS=$as_save_IFS
30899
30900 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
30901 ;;
30902esac
30903fi
30904UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
30905if test -n "$UniconvertorDelegate"; then
30906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
30907$as_echo "$UniconvertorDelegate" >&6; }
30908else
30909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30910$as_echo "no" >&6; }
30911fi
30912
30913
cristy3ed852e2009-09-05 21:47:34 +000030914# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
30915set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030917$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030918if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030919 $as_echo_n "(cached) " >&6
30920else
30921 case $WMFDecodeDelegate in
30922 [\\/]* | ?:[\\/]*)
30923 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
30924 ;;
30925 *)
30926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30927for as_dir in $PATH
30928do
30929 IFS=$as_save_IFS
30930 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030931 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30933 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030935 break 2
30936 fi
30937done
cristy8b350f62009-11-15 23:12:43 +000030938 done
cristy3ed852e2009-09-05 21:47:34 +000030939IFS=$as_save_IFS
30940
30941 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
30942 ;;
30943esac
30944fi
30945WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
30946if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030948$as_echo "$WMFDecodeDelegate" >&6; }
30949else
cristy8b350f62009-11-15 23:12:43 +000030950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030951$as_echo "no" >&6; }
30952fi
30953
30954
30955# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
30956set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030958$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030959if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030960 $as_echo_n "(cached) " >&6
30961else
30962 case $WWWDecodeDelegate in
30963 [\\/]* | ?:[\\/]*)
30964 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
30965 ;;
30966 *)
30967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30968for as_dir in $PATH
30969do
30970 IFS=$as_save_IFS
30971 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030972 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30974 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030976 break 2
30977 fi
30978done
cristy8b350f62009-11-15 23:12:43 +000030979 done
cristy3ed852e2009-09-05 21:47:34 +000030980IFS=$as_save_IFS
30981
30982 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
30983 ;;
30984esac
30985fi
30986WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
30987if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030989$as_echo "$WWWDecodeDelegate" >&6; }
30990else
cristy8b350f62009-11-15 23:12:43 +000030991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030992$as_echo "no" >&6; }
30993fi
30994
30995
30996# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
30997set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030999$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031000if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031001 $as_echo_n "(cached) " >&6
31002else
31003 case $XPSDelegate in
31004 [\\/]* | ?:[\\/]*)
31005 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31006 ;;
31007 *)
31008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31009for as_dir in $PATH
31010do
31011 IFS=$as_save_IFS
31012 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031013 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31015 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031017 break 2
31018 fi
31019done
cristy8b350f62009-11-15 23:12:43 +000031020 done
cristy3ed852e2009-09-05 21:47:34 +000031021IFS=$as_save_IFS
31022
31023 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31024 ;;
31025esac
31026fi
31027XPSDelegate=$ac_cv_path_XPSDelegate
31028if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031030$as_echo "$XPSDelegate" >&6; }
31031else
cristy8b350f62009-11-15 23:12:43 +000031032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031033$as_echo "no" >&6; }
31034fi
31035
31036
31037# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31038set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031040$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031041if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031042 $as_echo_n "(cached) " >&6
31043else
31044 case $ZipDelegate in
31045 [\\/]* | ?:[\\/]*)
31046 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31047 ;;
31048 *)
31049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31050for as_dir in $PATH
31051do
31052 IFS=$as_save_IFS
31053 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031054 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31056 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031058 break 2
31059 fi
31060done
cristy8b350f62009-11-15 23:12:43 +000031061 done
cristy3ed852e2009-09-05 21:47:34 +000031062IFS=$as_save_IFS
31063
31064 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31065 ;;
31066esac
31067fi
31068ZipDelegate=$ac_cv_path_ZipDelegate
31069if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031071$as_echo "$ZipDelegate" >&6; }
31072else
cristy8b350f62009-11-15 23:12:43 +000031073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031074$as_echo "no" >&6; }
31075fi
31076
31077
31078
31079# Prefer lpr to lp; lp needs options tacked on.
31080if test "$LPRDelegate" != no; then
31081 PrintDelegate="$LPRDelegate"
31082else
31083 PrintDelegate="$LPDelegate -c -s"
31084fi
31085
31086
31087# Installed ImageMagick utiltity paths
31088ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31089DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31090MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31091
31092# Set delegate booleans
31093have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31094have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31095have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31096have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31097have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31098have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000031099have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000031100have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31101have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31102have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31103have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31104have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31105
31106#
31107# Test for font directories
31108#
31109type_include_files=''
31110
cristy430a7312010-01-21 20:44:04 +000031111# Dejavu fonts.
31112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31113$as_echo_n "checking for Dejavu fonts directory... " >&6; }
31114dejavu_font_dir=''
31115if test "${with_dejavu_font_dir}" != 'default'; then
31116 dejavu_font_dir="${with_dejavu_font_dir}/"
31117else
31118 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31119 if test -f "${font_dir}DejaVuSerif.ttf"; then
31120 dejavu_font_dir="${font_dir}"
31121 break 1
31122 fi
31123 done
31124fi
31125if test "${dejavu_font_dir}x" != 'x'; then
31126 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31128$as_echo "$dejavu_font_dir" >&6; }
31129else
31130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31131$as_echo "not found!" >&6; };
31132fi
31133
31134
cristy3ed852e2009-09-05 21:47:34 +000031135# Windows
31136windows_font_dir=''
31137if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31138 windows_font_dir="${with_windows_font_dir}/"
31139fi
cristy430a7312010-01-21 20:44:04 +000031140if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031141 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31142 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31143 fi
31144 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31145 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31146 fi
31147 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31148 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31149 fi
31150fi
cristy430a7312010-01-21 20:44:04 +000031151if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031152 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31153fi
31154
31155
31156# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000031157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000031158$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31159ghostscript_font_dir=''
31160if test "${with_gs_font_dir}" != 'default'; then
31161 ghostscript_font_dir="${with_gs_font_dir}/"
31162else
31163 if test "${native_win32_build}" = 'yes'; then
31164 # Native Windows Build
31165 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31166 if test -f "${font_dir}a010013l.pfb"; then
31167 ghostscript_font_dir="$font_dir"
31168 break 1
31169 fi
31170 done
31171 if test "${PSDelegate}" != 'gswin32c'; then
31172 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31173 fi
31174 else
31175 # Linux / Mac OS X / Unix Build
31176 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
31177 if test -f "${font_dir}a010013l.pfb"; then
31178 ghostscript_font_dir="${font_dir}"
31179 break 1
31180 fi
31181 done
31182 if test "${ghostscript_font_dir}x" = 'x'; then
31183 if test "$PSDelegate" != 'gs'; then
31184 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31185 fi
31186 fi
31187 fi
31188fi
31189if test "${ghostscript_font_dir}x" != 'x'; then
31190 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000031191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000031192$as_echo "$ghostscript_font_dir" >&6; }
31193else
cristy8b350f62009-11-15 23:12:43 +000031194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000031195$as_echo "not found!" >&6; };
31196fi
31197
31198case "${build_os}" in
31199 mingw* )
31200 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31201 ;;
31202esac
31203
31204
31205
31206#
31207# Handle case where user doesn't want frozen paths
31208#
31209if test "$with_frozenpaths" != 'yes'; then
31210 # Re-set delegate definitions to default (no paths)
31211 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31212 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31213 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31214 BZIPDelegate="$BZIPDelegateDefault"
31215 BrowseDelegate="$BrowseDelegateDefault"
31216 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31217 CatDelegate="$CatDelegateDefault"
31218 ConvertDelegate="$ConvertDelegateDefault"
31219 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31220 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31221 EchoDelegate="$EchoDelegateDefault"
31222 EditorDelegate="$EditorDelegateDefault"
31223 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31224 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31225 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31226 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31227 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31228 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31229 LPDelegate="$LPDelegateDefault"
31230 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31231 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31232 LaunchDelegate="$LaunchDelegateDefault"
31233 MANDelegate="$MANDelegateDefault"
31234 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31235 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031236 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000031237 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31238 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031239 PCLDelegate="$PCLDelegateDefault"
31240 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31241 POVDelegate="$POVDelegateDefault"
31242 PSDelegate="$PSDelegateDefault"
31243 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31244 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31245 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000031246 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031247 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31248 ShowImageDelegate="$ShowImageDelegateDefault"
31249 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000031250 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031251 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31252 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31253 XPSDelegate="$XPSDelegateDefault"
31254 ZipDelegate="$ZipDelegateDefault"
31255fi
31256
31257# Delegate substitutions
31258
31259
31260
31261
31262
31263
31264
31265
31266
31267
31268
31269
31270
31271
31272
31273
31274
31275
31276
31277
31278
31279
31280
31281
31282
31283
31284
31285
31286
31287
31288
31289
31290
31291
31292
31293
31294
31295
31296
31297
31298
31299
cristy935c86e2010-06-05 23:50:07 +000031300
cristy5ac9ac82010-07-29 13:24:24 +000031301
cristy3ed852e2009-09-05 21:47:34 +000031302#
31303# RPM support.
31304#
31305RPM=''
31306for ac_prog in gnutar gtar tar
31307do
31308 # Extract the first word of "$ac_prog", so it can be a program name with args.
31309set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031311$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031312if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031313 $as_echo_n "(cached) " >&6
31314else
31315 if test -n "$TAR"; then
31316 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31317else
31318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31319for as_dir in $PATH
31320do
31321 IFS=$as_save_IFS
31322 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031323 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31325 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031327 break 2
31328 fi
31329done
cristy8b350f62009-11-15 23:12:43 +000031330 done
cristy3ed852e2009-09-05 21:47:34 +000031331IFS=$as_save_IFS
31332
31333fi
31334fi
31335TAR=$ac_cv_prog_TAR
31336if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000031337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000031338$as_echo "$TAR" >&6; }
31339else
cristy8b350f62009-11-15 23:12:43 +000031340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031341$as_echo "no" >&6; }
31342fi
31343
31344
31345 test -n "$TAR" && break
31346done
31347
31348for ac_prog in perl
31349do
31350 # Extract the first word of "$ac_prog", so it can be a program name with args.
31351set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031353$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031354if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031355 $as_echo_n "(cached) " >&6
31356else
31357 if test -n "$PERL"; then
31358 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31359else
31360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31361for as_dir in $PATH
31362do
31363 IFS=$as_save_IFS
31364 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031365 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31367 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031369 break 2
31370 fi
31371done
cristy8b350f62009-11-15 23:12:43 +000031372 done
cristy3ed852e2009-09-05 21:47:34 +000031373IFS=$as_save_IFS
31374
31375fi
31376fi
31377PERL=$ac_cv_prog_PERL
31378if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031380$as_echo "$PERL" >&6; }
31381else
cristy8b350f62009-11-15 23:12:43 +000031382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031383$as_echo "no" >&6; }
31384fi
31385
31386
31387 test -n "$PERL" && break
31388done
31389
31390for ac_prog in rpmbuild rpm
31391do
31392 # Extract the first word of "$ac_prog", so it can be a program name with args.
31393set dummy $ac_prog; 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_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031397 $as_echo_n "(cached) " >&6
31398else
31399 if test -n "$RPM"; then
31400 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31401else
31402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31403for as_dir in $PATH
31404do
31405 IFS=$as_save_IFS
31406 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031407 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31409 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031411 break 2
31412 fi
31413done
cristy8b350f62009-11-15 23:12:43 +000031414 done
cristy3ed852e2009-09-05 21:47:34 +000031415IFS=$as_save_IFS
31416
31417fi
31418fi
31419RPM=$ac_cv_prog_RPM
31420if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000031421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000031422$as_echo "$RPM" >&6; }
31423else
cristy8b350f62009-11-15 23:12:43 +000031424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031425$as_echo "no" >&6; }
31426fi
31427
31428
31429 test -n "$RPM" && break
31430done
31431
31432
31433ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31434
31435
31436AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31437
31438
31439AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31440
31441
31442AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31443
31444
31445 if test "x$RPM" != "x" ; then
31446 RPM_DELEGATE_TRUE=
31447 RPM_DELEGATE_FALSE='#'
31448else
31449 RPM_DELEGATE_TRUE='#'
31450 RPM_DELEGATE_FALSE=
31451fi
31452
31453
31454#
31455# 7ZIP support (http://p7zip.sourceforge.net/)
31456#
31457P7ZIP=''
31458for ac_prog in 7za
31459do
31460 # Extract the first word of "$ac_prog", so it can be a program name with args.
31461set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031463$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031464if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031465 $as_echo_n "(cached) " >&6
31466else
31467 if test -n "$P7ZIP"; then
31468 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31469else
31470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31471for as_dir in $PATH
31472do
31473 IFS=$as_save_IFS
31474 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031475 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31477 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031479 break 2
31480 fi
31481done
cristy8b350f62009-11-15 23:12:43 +000031482 done
cristy3ed852e2009-09-05 21:47:34 +000031483IFS=$as_save_IFS
31484
31485fi
31486fi
31487P7ZIP=$ac_cv_prog_P7ZIP
31488if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031490$as_echo "$P7ZIP" >&6; }
31491else
cristy8b350f62009-11-15 23:12:43 +000031492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031493$as_echo "no" >&6; }
31494fi
31495
31496
31497 test -n "$P7ZIP" && break
31498done
31499
31500
31501 if test "x$P7ZIP" != "x" ; then
31502 P7ZIP_DELEGATE_TRUE=
31503 P7ZIP_DELEGATE_FALSE='#'
31504else
31505 P7ZIP_DELEGATE_TRUE='#'
31506 P7ZIP_DELEGATE_FALSE=
31507fi
31508
31509
31510#
31511# ZIP support (http://www.info-zip.org/Zip.html)
31512#
31513ZIP=''
31514for ac_prog in zip
31515do
31516 # Extract the first word of "$ac_prog", so it can be a program name with args.
31517set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031519$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031520if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031521 $as_echo_n "(cached) " >&6
31522else
31523 if test -n "$ZIP"; then
31524 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31525else
31526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31527for as_dir in $PATH
31528do
31529 IFS=$as_save_IFS
31530 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031531 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31533 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031535 break 2
31536 fi
31537done
cristy8b350f62009-11-15 23:12:43 +000031538 done
cristy3ed852e2009-09-05 21:47:34 +000031539IFS=$as_save_IFS
31540
31541fi
31542fi
31543ZIP=$ac_cv_prog_ZIP
31544if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031546$as_echo "$ZIP" >&6; }
31547else
cristy8b350f62009-11-15 23:12:43 +000031548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031549$as_echo "no" >&6; }
31550fi
31551
31552
31553 test -n "$ZIP" && break
31554done
31555
31556
31557 if test "x$ZIP" != "x" ; then
31558 ZIP_DELEGATE_TRUE=
31559 ZIP_DELEGATE_FALSE='#'
31560else
31561 ZIP_DELEGATE_TRUE='#'
31562 ZIP_DELEGATE_FALSE=
31563fi
31564
31565
31566#
31567# GhostPCL related configuration.
31568#
31569PCLColorDevice=ppmraw
31570PCLCMYKDevice=bmpsep8
31571PCLMonoDevice=pbmraw
31572if test -z "$PCLVersion"; then
31573 PCLVersion='unknown'
31574fi
31575if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031577$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031579$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031581$as_echo "" >&6; }
31582 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000031583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031584$as_echo_n "checking for pcl color device... " >&6; }
31585 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31586 :
31587 else
31588 PCLColorDevice=ppmraw
31589 fi
cristy8b350f62009-11-15 23:12:43 +000031590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031591$as_echo "$PCLColorDevice" >&6; }
31592
31593 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031595$as_echo_n "checking for pcl CMYK device... " >&6; }
31596 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31597 :
31598 else
31599 PCLCMYKDevice=$PCLColorDevice
31600 fi
cristy8b350f62009-11-15 23:12:43 +000031601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031602$as_echo "$PCLCMYKDevice" >&6; }
31603
31604 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031606$as_echo_n "checking for pcl mono device... " >&6; }
31607 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31608 :
31609 else
31610 PCLMonoDevice=$PCLColorDevice
31611 fi
cristy8b350f62009-11-15 23:12:43 +000031612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031613$as_echo "$PCLMonoDevice" >&6; }
31614fi
31615
31616
31617
31618
31619
31620
31621#
31622# GhostXPS related configuration.
31623#
31624XPSColorDevice=ppmraw
31625XPSCMYKDevice=bmpsep8
31626XPSMonoDevice=pbmraw
31627if test -z "$XPSVersion"; then
31628 XPSVersion='unknown'
31629fi
31630if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031632$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031634$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031636$as_echo "" >&6; }
31637 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031639$as_echo_n "checking for xps color device... " >&6; }
31640 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31641 :
31642 else
31643 XPSColorDevice=ppmraw
31644 fi
cristy8b350f62009-11-15 23:12:43 +000031645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031646$as_echo "$XPSColorDevice" >&6; }
31647
31648 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031650$as_echo_n "checking for xps CMYK device... " >&6; }
31651 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31652 :
31653 else
31654 XPSCMYKDevice=$XPSColorDevice
31655 fi
cristy8b350f62009-11-15 23:12:43 +000031656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031657$as_echo "$XPSCMYKDevice" >&6; }
31658
31659 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031661$as_echo_n "checking for xps mono device... " >&6; }
31662 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31663 :
31664 else
31665 XPSMonoDevice=$XPSColorDevice
31666 fi
cristy8b350f62009-11-15 23:12:43 +000031667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031668$as_echo "$XPSMonoDevice" >&6; }
31669fi
31670
31671
31672
31673
31674
31675
31676#
31677# Ghostscript related configuration.
31678#
31679if test "$have_png" = 'yes'; then
31680 GSAlphaDevice=pngalpha
31681else
31682 GSAlphaDevice=pnmraw
31683fi
31684GSColorDevice=pnmraw
31685GSCMYKDevice=pam
31686GSMonoDevice=pbmraw
31687GSPDFDevice=pdfwrite
31688GSPSDevice=pswrite
31689GSEPSDevice=epswrite
31690GSVersion='unknown'
31691if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031693$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000031695$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031697$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000031699$as_echo_n "checking for Ghostscript version... " >&6; }
31700 if GSVersion=`$PSDelegate --version`; then
31701 :
31702 else
31703 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
31704 fi
cristy8b350f62009-11-15 23:12:43 +000031705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000031706$as_echo "$GSVersion" >&6; }
31707
31708 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000031709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031710$as_echo_n "checking for gs alpha device... " >&6; }
31711 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31712 :
31713 else
31714 GSAlphaDevice=pnmraw
31715 fi
cristy8b350f62009-11-15 23:12:43 +000031716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031717$as_echo "$GSAlphaDevice" >&6; }
31718
31719 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031721$as_echo_n "checking for gs color device... " >&6; }
31722 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31723 :
31724 else
31725 GSColorDevice=pnmraw
31726 fi
cristy8b350f62009-11-15 23:12:43 +000031727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031728$as_echo "$GSColorDevice" >&6; }
31729
31730 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031732$as_echo_n "checking for gs CMYK device... " >&6; }
31733 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31734 :
31735 else
31736 GSCMYKDevice=bmpsep8
31737 fi
cristy8b350f62009-11-15 23:12:43 +000031738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031739$as_echo "$GSCMYKDevice" >&6; }
31740
31741 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031743$as_echo_n "checking for gs mono device... " >&6; }
31744 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31745 :
31746 else
31747 GSMonoDevice=$GSColorDevice
31748 fi
cristy8b350f62009-11-15 23:12:43 +000031749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031750$as_echo "$GSMonoDevice" >&6; }
31751
31752 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000031753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031754$as_echo_n "checking for gs PDF writing device... " >&6; }
31755 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31756 :
31757 else
31758 GSPDFDevice=nodevice
31759 fi
cristy8b350f62009-11-15 23:12:43 +000031760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031761$as_echo "$GSPDFDevice" >&6; }
31762
31763 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000031764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031765$as_echo_n "checking for gs PS writing device... " >&6; }
31766 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31767 :
31768 else
31769 GSPSDevice=nodevice
31770 fi
cristy8b350f62009-11-15 23:12:43 +000031771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031772$as_echo "$GSPSDevice" >&6; }
31773
31774 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000031775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031776$as_echo_n "checking for gs EPS writing device... " >&6; }
31777 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31778 :
31779 else
31780 GSEPSDevice=nodevice
31781 fi
cristy8b350f62009-11-15 23:12:43 +000031782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031783$as_echo "$GSEPSDevice" >&6; }
31784fi
31785
31786
31787
31788
31789
31790
31791
31792
31793
31794
31795#
31796# PerlMagick-related configuration
31797#
31798
31799# Look for PERL if PerlMagick requested
31800# If name/path of desired PERL interpreter is specified, look for that one first
31801have_perl='no'
31802if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000031803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031804$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000031806$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031808$as_echo "" >&6; }
31809 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000031811$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031812if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031813 $as_echo_n "(cached) " >&6
31814else
31815 ac_cv_path_PERL="$with_perl"
31816fi
cristy8b350f62009-11-15 23:12:43 +000031817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031818$as_echo "$ac_cv_path_PERL" >&6; };
31819 PERL=$ac_cv_path_PERL
31820 have_perl="$ac_cv_path_PERL"
31821 else
31822 for ac_prog in perl perl5
31823do
31824 # Extract the first word of "$ac_prog", so it can be a program name with args.
31825set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031827$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031828if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031829 $as_echo_n "(cached) " >&6
31830else
31831 case $PERL in
31832 [\\/]* | ?:[\\/]*)
31833 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
31834 ;;
31835 *)
31836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31837for as_dir in $PATH
31838do
31839 IFS=$as_save_IFS
31840 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031841 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31843 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031845 break 2
31846 fi
31847done
cristy8b350f62009-11-15 23:12:43 +000031848 done
cristy3ed852e2009-09-05 21:47:34 +000031849IFS=$as_save_IFS
31850
31851 ;;
31852esac
31853fi
31854PERL=$ac_cv_path_PERL
31855if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031857$as_echo "$PERL" >&6; }
31858else
cristy8b350f62009-11-15 23:12:43 +000031859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031860$as_echo "no" >&6; }
31861fi
31862
31863
31864 test -n "$PERL" && break
31865done
31866 if test "$ac_cv_path_PERL"; then
31867 have_perl="$ac_cv_path_PERL"
31868 fi
31869 fi
31870fi
31871
cristy949301e2010-01-06 01:38:40 +000031872if test "$with_perl" != 'yes' ; then
31873 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
31874fi
31875
31876PERL_SUPPORTS_DESTDIR='no'
31877
cristy3ed852e2009-09-05 21:47:34 +000031878with_perl_static='no'
31879with_perl_dynamic='no'
31880if test "$have_perl" != 'no'; then
31881 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
31882 with_perl_static='yes'
31883 fi
31884 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
31885 with_perl_dynamic='yes'
31886 fi
31887 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy964cb7f2010-04-25 23:18:00 +000031888
31889
31890
31891
31892 if test -n "$PERL"; then :
31893
31894 ax_perl_version="5.8.1"
31895
31896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
31897$as_echo_n "checking for perl version... " >&6; }
31898
31899 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
31900
31901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
31902$as_echo "$perl_version" >&6; }
31903
31904 PERL_VERSION=$perl_version
31905
31906
31907
31908
31909
31910 # Used to indicate true or false condition
31911 ax_compare_version=false
31912
31913 # Convert the two version strings to be compared into a format that
31914 # allows a simple string comparison. The end result is that a version
31915 # string of the form 1.12.5-r617 will be converted to the form
31916 # 0001001200050617. In other words, each number is zero padded to four
31917 # digits, and non digits are removed.
31918
31919 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
31920 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
31921 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
31922 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
31923 -e 's/[^0-9]//g'`
31924
31925
31926 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
31927 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
31928 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
31929 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
31930 -e 's/[^0-9]//g'`
31931
31932
31933 ax_compare_version=`echo "x$ax_compare_version_A
31934x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
31935
31936
31937
31938 if test "$ax_compare_version" = "true" ; then
31939
31940 :
31941 PERL_SUPPORTS_DESTDIR='yes'
31942
31943 else
31944 :
31945 PERL_SUPPORTS_DESTDIR='no'
31946
cristy3ed852e2009-09-05 21:47:34 +000031947 fi
cristy3ed852e2009-09-05 21:47:34 +000031948
cristy964cb7f2010-04-25 23:18:00 +000031949
cristy3ed852e2009-09-05 21:47:34 +000031950else
cristy3ed852e2009-09-05 21:47:34 +000031951
cristy964cb7f2010-04-25 23:18:00 +000031952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
31953$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
31954 PERL_SUPPORTS_DESTDIR='no'
cristy3ed852e2009-09-05 21:47:34 +000031955
31956fi
31957
cristy3ed852e2009-09-05 21:47:34 +000031958fi
31959 if test "$have_perl" != 'no'; then
31960 WITH_PERL_TRUE=
31961 WITH_PERL_FALSE='#'
31962else
31963 WITH_PERL_TRUE='#'
31964 WITH_PERL_FALSE=
31965fi
31966
31967 if test $with_perl_static = 'yes'; then
31968 WITH_PERL_STATIC_TRUE=
31969 WITH_PERL_STATIC_FALSE='#'
31970else
31971 WITH_PERL_STATIC_TRUE='#'
31972 WITH_PERL_STATIC_FALSE=
31973fi
31974
31975 if test $with_perl_dynamic = 'yes'; then
31976 WITH_PERL_DYNAMIC_TRUE=
31977 WITH_PERL_DYNAMIC_FALSE='#'
31978else
31979 WITH_PERL_DYNAMIC_TRUE='#'
31980 WITH_PERL_DYNAMIC_FALSE=
31981fi
31982
31983
31984
31985# Determine path to pick up MagickCore library from for use with building PerlMagick
31986MAGICKCORE_PATH="${LIB_DIR}"
31987if test $with_perl_static = 'yes'; then
31988 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
31989 libtool_objdir=$objdir
31990
31991 # Linker search path to library, followed by -lMagickCore
31992 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
31993fi
31994
31995
31996# Create a simple string containing format names for all delegate libraries
31997DELEGATES=''
31998if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
31999if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32000if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32001if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32002if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32003if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32004if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32005if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32006if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32007if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32008if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32009if test "$have_jpeg" = 'yes'; then
32010 DELEGATES="$DELEGATES jpeg";
32011 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32012fi
32013if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000032014if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000032015if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32016if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32017if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32018if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32019if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32020if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32021if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32022if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32023if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32024if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32025if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32026
32027
32028
32029#
32030# Handle special compiler flags
32031#
32032
32033# Add '-p' if prof source profiling support enabled
32034if test "$enable_prof" = 'yes'; then
32035 CFLAGS="-p $CFLAGS"
32036 CXXFLAGS="-p $CXXFLAGS"
32037 LDFLAGS="-p $LDFLAGS"
32038fi
32039
32040# Add '-pg' if gprof source profiling support enabled
32041if test "$enable_gprof" = 'yes'; then
32042 CFLAGS="-pg $CFLAGS"
32043 CXXFLAGS="-pg $CXXFLAGS"
32044 LDFLAGS="-pg $LDFLAGS"
32045fi
32046
32047# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32048# This is a gcc-specific feature
32049if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032051$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032052if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032053 $as_echo_n "(cached) " >&6
32054else
32055 ac_check_lib_save_LIBS=$LIBS
32056LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032058/* end confdefs.h. */
32059
32060/* Override any GCC internal prototype to avoid an error.
32061 Use char because int might match the return type of a GCC
32062 builtin and then its argument prototype would still apply. */
32063#ifdef __cplusplus
32064extern "C"
32065#endif
32066char _gcov_init ();
32067int
32068main ()
32069{
32070return _gcov_init ();
32071 ;
32072 return 0;
32073}
32074_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032075if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032076 ac_cv_lib_gcov__gcov_init=yes
32077else
cristy8b350f62009-11-15 23:12:43 +000032078 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032079fi
cristy8b350f62009-11-15 23:12:43 +000032080rm -f core conftest.err conftest.$ac_objext \
32081 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032082LIBS=$ac_check_lib_save_LIBS
32083fi
cristy8b350f62009-11-15 23:12:43 +000032084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032085$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032086if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032087 cat >>confdefs.h <<_ACEOF
32088#define HAVE_LIBGCOV 1
32089_ACEOF
32090
32091 LIBS="-lgcov $LIBS"
32092
32093fi
32094
cristy8b350f62009-11-15 23:12:43 +000032095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032096$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032097if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032098 $as_echo_n "(cached) " >&6
32099else
32100 ac_check_lib_save_LIBS=$LIBS
32101LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032103/* end confdefs.h. */
32104
32105/* Override any GCC internal prototype to avoid an error.
32106 Use char because int might match the return type of a GCC
32107 builtin and then its argument prototype would still apply. */
32108#ifdef __cplusplus
32109extern "C"
32110#endif
32111char __gcov_init ();
32112int
32113main ()
32114{
32115return __gcov_init ();
32116 ;
32117 return 0;
32118}
32119_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032120if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032121 ac_cv_lib_gcov___gcov_init=yes
32122else
cristy8b350f62009-11-15 23:12:43 +000032123 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032124fi
cristy8b350f62009-11-15 23:12:43 +000032125rm -f core conftest.err conftest.$ac_objext \
32126 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032127LIBS=$ac_check_lib_save_LIBS
32128fi
cristy8b350f62009-11-15 23:12:43 +000032129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032130$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032131if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032132 cat >>confdefs.h <<_ACEOF
32133#define HAVE_LIBGCOV 1
32134_ACEOF
32135
32136 LIBS="-lgcov $LIBS"
32137
32138fi
32139
32140 case "$target_os" in
32141 darwin*)
32142 OSX_GCOV_LDFLAG="-Wl,-single_module"
32143 ;;
32144 *)
32145 OSX_GCOV_LDFLAG=""
32146 ;;
32147 esac
32148
32149 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32150 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32151 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32152fi
32153
32154#
32155# Build library dependency list for libMagickCore
32156#
32157
32158MAGICK_LIBLTDL='' # Libltdl for build
32159MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32160MAGICK_LTDLDEPS='' # extra libltdl dependencies
32161if test "$with_ltdl" != 'no'
32162then
32163 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32164 MAGICK_API_LIBLTDL='-lltdl'
32165 fi
32166 MAGICK_LIBLTDL=${LIBLTDL}
32167 MAGICK_LTDLDEPS=${LTDLDEPS}
32168fi
32169
32170
32171
32172if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000032173 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 +000032174else
cristy2e8b51d2009-10-17 18:26:15 +000032175 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 +000032176fi
32177
32178
32179#
32180# Remove extraneous spaces from output variables (asthetic)
32181#
32182X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32183X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32184X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32185X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32186
32187CC=`echo $CC | sed -e 's/ */ /g'`
32188CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32189CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32190CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32191DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32192DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32193LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32194TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32195MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32196#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32197
32198# Pass only user-provided LIBS as "global" libraries
32199LIBS=$USER_LIBS
32200
32201#AC_SUBST(CPPFLAGS)
32202
32203#AC_SUBST(LDFLAGS)
32204#AC_SUBST(X_PRE_LIBS)
32205#AC_SUBST(X_LIBS)
32206#AC_SUBST(X_EXTRA_LIBS)
32207
32208MAGICK_CFLAGS=$CFLAGS
32209MAGICK_CXXFLAGS="$CXXFLAGS"
32210MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32211MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32212MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32213MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32214
32215
32216
32217
32218
32219
32220
32221
cristyfd9dcd42010-08-08 18:07:02 +000032222
cristy3ed852e2009-09-05 21:47:34 +000032223# Set configured scripts to executable.
32224ac_config_commands="$ac_config_commands default"
32225
32226ac_config_commands="$ac_config_commands MagickCore-config.in"
32227
32228ac_config_commands="$ac_config_commands Magick-config.in"
32229
32230ac_config_commands="$ac_config_commands MagickWand-config.in"
32231
32232ac_config_commands="$ac_config_commands Wand-config.in"
32233
32234ac_config_commands="$ac_config_commands Magick++-config.in"
32235
32236ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32237
32238
cristy8b350f62009-11-15 23:12:43 +000032239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032240$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000032242$as_echo "Update ImageMagick configuration" >&6; }
32243cat >confcache <<\_ACEOF
32244# This file is a shell script that caches the results of configure
32245# tests run on this system so they can be shared between configure
32246# scripts and configure runs, see configure's option --config-cache.
32247# It is not useful on other systems. If it contains results you don't
32248# want to keep, you may remove or edit it.
32249#
32250# config.status only pays attention to the cache file if you give it
32251# the --recheck option to rerun configure.
32252#
32253# `ac_cv_env_foo' variables (set or unset) will be overridden when
32254# loading this file, other *unset* `ac_cv_foo' will be assigned the
32255# following values.
32256
32257_ACEOF
32258
32259# The following way of writing the cache mishandles newlines in values,
32260# but we know of no workaround that is simple, portable, and efficient.
32261# So, we kill variables containing newlines.
32262# Ultrix sh set writes to stderr and can't be redirected directly,
32263# and sets the high bit in the cache file unless we assign to the vars.
32264(
32265 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32266 eval ac_val=\$$ac_var
32267 case $ac_val in #(
32268 *${as_nl}*)
32269 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000032270 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000032271$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32272 esac
32273 case $ac_var in #(
32274 _ | IFS | as_nl) ;; #(
32275 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000032276 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000032277 esac ;;
32278 esac
32279 done
32280
32281 (set) 2>&1 |
32282 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32283 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000032284 # `set' does not quote correctly, so add quotes: double-quote
32285 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000032286 sed -n \
32287 "s/'/'\\\\''/g;
32288 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32289 ;; #(
32290 *)
32291 # `set' quotes correctly as required by POSIX, so do not add quotes.
32292 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32293 ;;
32294 esac |
32295 sort
32296) |
32297 sed '
32298 /^ac_cv_env_/b end
32299 t clear
32300 :clear
32301 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32302 t end
32303 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32304 :end' >>confcache
32305if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32306 if test -w "$cache_file"; then
32307 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000032308 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032309$as_echo "$as_me: updating cache $cache_file" >&6;}
32310 cat confcache >$cache_file
32311 else
cristy8b350f62009-11-15 23:12:43 +000032312 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032313$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32314 fi
32315fi
32316rm -f confcache
32317
32318test "x$prefix" = xNONE && prefix=$ac_default_prefix
32319# Let make expand exec_prefix.
32320test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32321
32322DEFS=-DHAVE_CONFIG_H
32323
32324ac_libobjs=
32325ac_ltlibobjs=
cristyfd9dcd42010-08-08 18:07:02 +000032326U=
cristy3ed852e2009-09-05 21:47:34 +000032327for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32328 # 1. Remove the extension, and $U if already installed.
32329 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32330 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32331 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32332 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000032333 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32334 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000032335done
32336LIBOBJS=$ac_libobjs
32337
32338LTLIBOBJS=$ac_ltlibobjs
32339
32340
32341 if test -n "$EXEEXT"; then
32342 am__EXEEXT_TRUE=
32343 am__EXEEXT_FALSE='#'
32344else
32345 am__EXEEXT_TRUE='#'
32346 am__EXEEXT_FALSE=
32347fi
32348
32349if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032350 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032351Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032352fi
32353if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032354 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032355Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032356fi
cristya0b81c32010-01-22 02:54:33 +000032357if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032358 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristya0b81c32010-01-22 02:54:33 +000032359Usually this means the macro was only invoked conditionally." "$LINENO" 5
32360fi
cristy3ed852e2009-09-05 21:47:34 +000032361if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032362 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032363Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032364fi
32365if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032366 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032367Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032368fi
32369if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032370 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032371Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032372fi
32373if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032374 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032375Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032376fi
32377if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032378 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032379Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032380fi
cristy3ed852e2009-09-05 21:47:34 +000032381if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032382 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032383Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032384fi
32385if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032386 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032387Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032388fi
32389LT_CONFIG_H=config/config.h
32390
32391 _ltdl_libobjs=
32392 _ltdl_ltlibobjs=
32393 if test -n "$_LT_LIBOBJS"; then
32394 # Remove the extension.
32395 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32396 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32397 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32398 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32399 done
32400 fi
32401 ltdl_LIBOBJS=$_ltdl_libobjs
32402
32403 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32404
32405
cristyfa112112010-01-04 17:48:07 +000032406if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032407 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristyfa112112010-01-04 17:48:07 +000032408Usually this means the macro was only invoked conditionally." "$LINENO" 5
32409fi
cristy3ed852e2009-09-05 21:47:34 +000032410if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032411 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032412Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032413fi
32414if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032415 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032416Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032417fi
32418if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032419 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032420Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032421fi
32422
32423if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032424 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032425Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032426fi
32427if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032428 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032429Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032430fi
32431if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032432 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032433Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032434fi
32435if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032436 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032437Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032438fi
32439if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032440 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032441Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032442fi
32443if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032444 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032445Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032446fi
32447if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032448 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032449Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032450fi
32451if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032452 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032453Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032454fi
32455if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032456 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032457Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032458fi
32459if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032460 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032461Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032462fi
32463if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032464 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032465Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032466fi
32467if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032468 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032469Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032470fi
32471if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032472 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032473Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032474fi
32475if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032476 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032477Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032478fi
32479if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032480 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032481Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032482fi
32483if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032484 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032485Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032486fi
32487if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032488 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032489Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032490fi
32491if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032492 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032493Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032494fi
32495if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032496 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032497Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032498fi
32499if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032500 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032501Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032502fi
32503if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032504 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032505Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032506fi
32507if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032508 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032509Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032510fi
32511if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032512 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032513Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032514fi
32515if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032516 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032517Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032518fi
32519if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032520 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032521Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032522fi
32523if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032524 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032525Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032526fi
32527if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032528 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032529Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032530fi
32531if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032532 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032533Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032534fi
32535if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032536 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032537Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032538fi
32539if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032540 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032541Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032542fi
32543if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032544 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032545Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032546fi
32547if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032548 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032549Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032550fi
32551if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032552 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032553Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032554fi
32555
32556: ${CONFIG_STATUS=./config.status}
32557ac_write_fail=0
32558ac_clean_files_save=$ac_clean_files
32559ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000032560{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032561$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032562as_write_fail=0
32563cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032564#! $SHELL
32565# Generated by $as_me.
32566# Run this file to recreate the current configuration.
32567# Compiler output produced by configure, useful for debugging
32568# configure, is in config.log if it exists.
32569
32570debug=false
32571ac_cs_recheck=false
32572ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000032573
cristy8b350f62009-11-15 23:12:43 +000032574SHELL=\${CONFIG_SHELL-$SHELL}
32575export SHELL
32576_ASEOF
32577cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32578## -------------------- ##
32579## M4sh Initialization. ##
32580## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000032581
32582# Be more Bourne compatible
32583DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000032584if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000032585 emulate sh
32586 NULLCMD=:
32587 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32588 # is contrary to our usage. Disable this feature.
32589 alias -g '${1+"$@"}'='"$@"'
32590 setopt NO_GLOB_SUBST
32591else
cristy8b350f62009-11-15 23:12:43 +000032592 case `(set -o) 2>/dev/null` in #(
32593 *posix*) :
32594 set -o posix ;; #(
32595 *) :
32596 ;;
cristy3ed852e2009-09-05 21:47:34 +000032597esac
cristy3ed852e2009-09-05 21:47:34 +000032598fi
32599
32600
cristy3ed852e2009-09-05 21:47:34 +000032601as_nl='
32602'
32603export as_nl
32604# Printing a long string crashes Solaris 7 /usr/bin/printf.
32605as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32606as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32607as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000032608# Prefer a ksh shell builtin over an external printf program on Solaris,
32609# but without wasting forks for bash or zsh.
32610if test -z "$BASH_VERSION$ZSH_VERSION" \
32611 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32612 as_echo='print -r --'
32613 as_echo_n='print -rn --'
32614elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000032615 as_echo='printf %s\n'
32616 as_echo_n='printf %s'
32617else
32618 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32619 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32620 as_echo_n='/usr/ucb/echo -n'
32621 else
32622 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32623 as_echo_n_body='eval
32624 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000032625 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000032626 *"$as_nl"*)
32627 expr "X$arg" : "X\\(.*\\)$as_nl";
32628 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32629 esac;
32630 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32631 '
32632 export as_echo_n_body
32633 as_echo_n='sh -c $as_echo_n_body as_echo'
32634 fi
32635 export as_echo_body
32636 as_echo='sh -c $as_echo_body as_echo'
32637fi
32638
32639# The user is always right.
32640if test "${PATH_SEPARATOR+set}" != set; then
32641 PATH_SEPARATOR=:
32642 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32643 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32644 PATH_SEPARATOR=';'
32645 }
32646fi
32647
cristy3ed852e2009-09-05 21:47:34 +000032648
32649# IFS
32650# We need space, tab and new line, in precisely that order. Quoting is
32651# there to prevent editors from complaining about space-tab.
32652# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32653# splitting by setting IFS to empty value.)
32654IFS=" "" $as_nl"
32655
32656# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000032657case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000032658 *[\\/]* ) as_myself=$0 ;;
32659 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32660for as_dir in $PATH
32661do
32662 IFS=$as_save_IFS
32663 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032664 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32665 done
cristy3ed852e2009-09-05 21:47:34 +000032666IFS=$as_save_IFS
32667
32668 ;;
32669esac
32670# We did not find ourselves, most probably we were run as `sh COMMAND'
32671# in which case we are not to be found in the path.
32672if test "x$as_myself" = x; then
32673 as_myself=$0
32674fi
32675if test ! -f "$as_myself"; then
32676 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000032677 exit 1
cristy3ed852e2009-09-05 21:47:34 +000032678fi
32679
cristy8b350f62009-11-15 23:12:43 +000032680# Unset variables that we do not need and which cause bugs (e.g. in
32681# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32682# suppresses any "Segmentation fault" message there. '((' could
32683# trigger a bug in pdksh 5.2.14.
32684for as_var in BASH_ENV ENV MAIL MAILPATH
32685do eval test x\${$as_var+set} = xset \
32686 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000032687done
32688PS1='$ '
32689PS2='> '
32690PS4='+ '
32691
32692# NLS nuisances.
32693LC_ALL=C
32694export LC_ALL
32695LANGUAGE=C
32696export LANGUAGE
32697
cristy8b350f62009-11-15 23:12:43 +000032698# CDPATH.
32699(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32700
32701
cristyfd9dcd42010-08-08 18:07:02 +000032702# as_fn_error STATUS ERROR [LINENO LOG_FD]
32703# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000032704# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32705# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristyfd9dcd42010-08-08 18:07:02 +000032706# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000032707as_fn_error ()
32708{
cristyfd9dcd42010-08-08 18:07:02 +000032709 as_status=$1; test $as_status -eq 0 && as_status=1
32710 if test "$4"; then
32711 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32712 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000032713 fi
cristyfd9dcd42010-08-08 18:07:02 +000032714 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000032715 as_fn_exit $as_status
32716} # as_fn_error
32717
32718
32719# as_fn_set_status STATUS
32720# -----------------------
32721# Set $? to STATUS, without forking.
32722as_fn_set_status ()
32723{
32724 return $1
32725} # as_fn_set_status
32726
32727# as_fn_exit STATUS
32728# -----------------
32729# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32730as_fn_exit ()
32731{
32732 set +e
32733 as_fn_set_status $1
32734 exit $1
32735} # as_fn_exit
32736
32737# as_fn_unset VAR
32738# ---------------
32739# Portably unset VAR.
32740as_fn_unset ()
32741{
32742 { eval $1=; unset $1;}
32743}
32744as_unset=as_fn_unset
32745# as_fn_append VAR VALUE
32746# ----------------------
32747# Append the text in VALUE to the end of the definition contained in VAR. Take
32748# advantage of any shell optimizations that allow amortized linear growth over
32749# repeated appends, instead of the typical quadratic growth present in naive
32750# implementations.
32751if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32752 eval 'as_fn_append ()
32753 {
32754 eval $1+=\$2
32755 }'
32756else
32757 as_fn_append ()
32758 {
32759 eval $1=\$$1\$2
32760 }
32761fi # as_fn_append
32762
32763# as_fn_arith ARG...
32764# ------------------
32765# Perform arithmetic evaluation on the ARGs, and store the result in the
32766# global $as_val. Take advantage of shells that can avoid forks. The arguments
32767# must be portable across $(()) and expr.
32768if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32769 eval 'as_fn_arith ()
32770 {
32771 as_val=$(( $* ))
32772 }'
32773else
32774 as_fn_arith ()
32775 {
32776 as_val=`expr "$@" || test $? -eq 1`
32777 }
32778fi # as_fn_arith
32779
32780
cristy3ed852e2009-09-05 21:47:34 +000032781if expr a : '\(a\)' >/dev/null 2>&1 &&
32782 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32783 as_expr=expr
32784else
32785 as_expr=false
32786fi
32787
32788if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32789 as_basename=basename
32790else
32791 as_basename=false
32792fi
32793
cristy8b350f62009-11-15 23:12:43 +000032794if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32795 as_dirname=dirname
32796else
32797 as_dirname=false
32798fi
cristy3ed852e2009-09-05 21:47:34 +000032799
cristy3ed852e2009-09-05 21:47:34 +000032800as_me=`$as_basename -- "$0" ||
32801$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32802 X"$0" : 'X\(//\)$' \| \
32803 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32804$as_echo X/"$0" |
32805 sed '/^.*\/\([^/][^/]*\)\/*$/{
32806 s//\1/
32807 q
32808 }
32809 /^X\/\(\/\/\)$/{
32810 s//\1/
32811 q
32812 }
32813 /^X\/\(\/\).*/{
32814 s//\1/
32815 q
32816 }
32817 s/.*/./; q'`
32818
cristy8b350f62009-11-15 23:12:43 +000032819# Avoid depending upon Character Ranges.
32820as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32821as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32822as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32823as_cr_digits='0123456789'
32824as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000032825
32826ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000032827case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000032828-n*)
cristy8b350f62009-11-15 23:12:43 +000032829 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000032830 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000032831 xy) ECHO_C='\c';;
32832 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32833 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000032834 esac;;
32835*)
32836 ECHO_N='-n';;
32837esac
cristy3ed852e2009-09-05 21:47:34 +000032838
32839rm -f conf$$ conf$$.exe conf$$.file
32840if test -d conf$$.dir; then
32841 rm -f conf$$.dir/conf$$.file
32842else
32843 rm -f conf$$.dir
32844 mkdir conf$$.dir 2>/dev/null
32845fi
32846if (echo >conf$$.file) 2>/dev/null; then
32847 if ln -s conf$$.file conf$$ 2>/dev/null; then
32848 as_ln_s='ln -s'
32849 # ... but there are two gotchas:
32850 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32851 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32852 # In both cases, we have to default to `cp -p'.
32853 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32854 as_ln_s='cp -p'
32855 elif ln conf$$.file conf$$ 2>/dev/null; then
32856 as_ln_s=ln
32857 else
32858 as_ln_s='cp -p'
32859 fi
32860else
32861 as_ln_s='cp -p'
32862fi
32863rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32864rmdir conf$$.dir 2>/dev/null
32865
cristy8b350f62009-11-15 23:12:43 +000032866
32867# as_fn_mkdir_p
32868# -------------
32869# Create "$as_dir" as a directory, including parents if necessary.
32870as_fn_mkdir_p ()
32871{
32872
32873 case $as_dir in #(
32874 -*) as_dir=./$as_dir;;
32875 esac
32876 test -d "$as_dir" || eval $as_mkdir_p || {
32877 as_dirs=
32878 while :; do
32879 case $as_dir in #(
32880 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32881 *) as_qdir=$as_dir;;
32882 esac
32883 as_dirs="'$as_qdir' $as_dirs"
32884 as_dir=`$as_dirname -- "$as_dir" ||
32885$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32886 X"$as_dir" : 'X\(//\)[^/]' \| \
32887 X"$as_dir" : 'X\(//\)$' \| \
32888 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32889$as_echo X"$as_dir" |
32890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32891 s//\1/
32892 q
32893 }
32894 /^X\(\/\/\)[^/].*/{
32895 s//\1/
32896 q
32897 }
32898 /^X\(\/\/\)$/{
32899 s//\1/
32900 q
32901 }
32902 /^X\(\/\).*/{
32903 s//\1/
32904 q
32905 }
32906 s/.*/./; q'`
32907 test -d "$as_dir" && break
32908 done
32909 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristyfd9dcd42010-08-08 18:07:02 +000032910 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000032911
32912
32913} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032914if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000032915 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000032916else
32917 test -d ./-p && rmdir ./-p
32918 as_mkdir_p=false
32919fi
32920
32921if test -x / >/dev/null 2>&1; then
32922 as_test_x='test -x'
32923else
32924 if ls -dL / >/dev/null 2>&1; then
32925 as_ls_L_option=L
32926 else
32927 as_ls_L_option=
32928 fi
32929 as_test_x='
32930 eval sh -c '\''
32931 if test -d "$1"; then
32932 test -d "$1/.";
32933 else
cristy8b350f62009-11-15 23:12:43 +000032934 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000032935 -*)set "./$1";;
32936 esac;
cristy8b350f62009-11-15 23:12:43 +000032937 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000032938 ???[sx]*):;;*)false;;esac;fi
32939 '\'' sh
32940 '
32941fi
32942as_executable_p=$as_test_x
32943
32944# Sed expression to map a string onto a valid CPP name.
32945as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32946
32947# Sed expression to map a string onto a valid variable name.
32948as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32949
32950
32951exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000032952## ----------------------------------- ##
32953## Main body of $CONFIG_STATUS script. ##
32954## ----------------------------------- ##
32955_ASEOF
32956test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032957
cristy8b350f62009-11-15 23:12:43 +000032958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32959# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000032960# report actual input values of CONFIG_FILES etc. instead of their
32961# values after options handling.
32962ac_log="
cristy56225732010-09-04 23:44:25 +000032963This file was extended by ImageMagick $as_me 6.6.4, which was
cristyfd9dcd42010-08-08 18:07:02 +000032964generated by GNU Autoconf 2.66. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000032965
32966 CONFIG_FILES = $CONFIG_FILES
32967 CONFIG_HEADERS = $CONFIG_HEADERS
32968 CONFIG_LINKS = $CONFIG_LINKS
32969 CONFIG_COMMANDS = $CONFIG_COMMANDS
32970 $ $0 $@
32971
32972on `(hostname || uname -n) 2>/dev/null | sed 1q`
32973"
32974
32975_ACEOF
32976
32977case $ac_config_files in *"
32978"*) set x $ac_config_files; shift; ac_config_files=$*;;
32979esac
32980
32981case $ac_config_headers in *"
32982"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32983esac
32984
32985
32986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32987# Files that config.status was made for.
32988config_files="$ac_config_files"
32989config_headers="$ac_config_headers"
32990config_commands="$ac_config_commands"
32991
32992_ACEOF
32993
32994cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32995ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000032996\`$as_me' instantiates files and other configuration actions
32997from templates according to the current configuration. Unless the files
32998and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000032999
cristy8b350f62009-11-15 23:12:43 +000033000Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000033001
33002 -h, --help print this help, then exit
33003 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000033004 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000033005 -q, --quiet, --silent
33006 do not print progress messages
33007 -d, --debug don't remove temporary files
33008 --recheck update $as_me by reconfiguring in the same conditions
33009 --file=FILE[:TEMPLATE]
33010 instantiate the configuration file FILE
33011 --header=FILE[:TEMPLATE]
33012 instantiate the configuration header FILE
33013
33014Configuration files:
33015$config_files
33016
33017Configuration headers:
33018$config_headers
33019
33020Configuration commands:
33021$config_commands
33022
cristy8b350f62009-11-15 23:12:43 +000033023Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000033024
33025_ACEOF
33026cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000033027ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000033028ac_cs_version="\\
cristy56225732010-09-04 23:44:25 +000033029ImageMagick config.status 6.6.4
cristyfd9dcd42010-08-08 18:07:02 +000033030configured by $0, generated by GNU Autoconf 2.66,
cristycd4c5312009-11-22 01:19:08 +000033031 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000033032
cristyfd9dcd42010-08-08 18:07:02 +000033033Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033034This config.status script is free software; the Free Software Foundation
33035gives unlimited permission to copy, distribute and modify it."
33036
33037ac_pwd='$ac_pwd'
33038srcdir='$srcdir'
33039INSTALL='$INSTALL'
33040MKDIR_P='$MKDIR_P'
33041AWK='$AWK'
33042test -n "\$AWK" || AWK=awk
33043_ACEOF
33044
33045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33046# The default lists apply if the user does not specify any file.
33047ac_need_defaults=:
33048while test $# != 0
33049do
33050 case $1 in
33051 --*=*)
33052 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33053 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33054 ac_shift=:
33055 ;;
33056 *)
33057 ac_option=$1
33058 ac_optarg=$2
33059 ac_shift=shift
33060 ;;
33061 esac
33062
33063 case $ac_option in
33064 # Handling of the options.
33065 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33066 ac_cs_recheck=: ;;
33067 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33068 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000033069 --config | --confi | --conf | --con | --co | --c )
33070 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000033071 --debug | --debu | --deb | --de | --d | -d )
33072 debug=: ;;
33073 --file | --fil | --fi | --f )
33074 $ac_shift
33075 case $ac_optarg in
33076 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33077 esac
cristy8b350f62009-11-15 23:12:43 +000033078 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033079 ac_need_defaults=false;;
33080 --header | --heade | --head | --hea )
33081 $ac_shift
33082 case $ac_optarg in
33083 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33084 esac
cristy8b350f62009-11-15 23:12:43 +000033085 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033086 ac_need_defaults=false;;
33087 --he | --h)
33088 # Conflict between --help and --header
cristyfd9dcd42010-08-08 18:07:02 +000033089 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033090Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000033091 --help | --hel | -h )
33092 $as_echo "$ac_cs_usage"; exit ;;
33093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33094 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33095 ac_cs_silent=: ;;
33096
33097 # This is an error.
cristyfd9dcd42010-08-08 18:07:02 +000033098 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033099Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000033100
cristy8b350f62009-11-15 23:12:43 +000033101 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000033102 ac_need_defaults=false ;;
33103
33104 esac
33105 shift
33106done
33107
33108ac_configure_extra_args=
33109
33110if $ac_cs_silent; then
33111 exec 6>/dev/null
33112 ac_configure_extra_args="$ac_configure_extra_args --silent"
33113fi
33114
33115_ACEOF
33116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33117if \$ac_cs_recheck; then
33118 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33119 shift
33120 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33121 CONFIG_SHELL='$SHELL'
33122 export CONFIG_SHELL
33123 exec "\$@"
33124fi
33125
33126_ACEOF
33127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33128exec 5>>config.log
33129{
33130 echo
33131 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33132## Running $as_me. ##
33133_ASBOX
33134 $as_echo "$ac_log"
33135} >&5
33136
33137_ACEOF
33138cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33139#
33140# INIT-COMMANDS
33141#
33142PACKAGE="$PACKAGE"
33143AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33144
33145
33146# The HP-UX ksh and POSIX shell print the target directory to stdout
33147# if CDPATH is set.
33148(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33149
33150sed_quote_subst='$sed_quote_subst'
33151double_quote_subst='$double_quote_subst'
33152delay_variable_subst='$delay_variable_subst'
cristyfd9dcd42010-08-08 18:07:02 +000033153SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33154Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33155GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33156EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33157FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33158SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33159ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33160LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33161macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33162macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33163AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
33164DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33165OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33166enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33167enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33168pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33169enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33170host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33171host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33172host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33173build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33174build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33175build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33176NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33177LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33178max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33179ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33180exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33181lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33182lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33183lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33184reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33185reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33186deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33187file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33188AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33189AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33190STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33191RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33192old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33193old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33194old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
33195lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
33196CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
33197CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
33198compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
33199GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
33200lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
33201lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33202lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33203lt_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"`'
33204objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33205MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33206lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33207lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33208lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33209lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33210lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33211need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33212DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33213NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33214LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33215OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
33216OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
33217libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
33218shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
33219extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33220archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
33221enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
33222export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
33223whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
33224compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
33225old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
33226old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33227archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
33228archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33229module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
33230module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33231with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
33232allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
33233no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
33234hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
33235hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
33236hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
33237hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
33238hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
33239hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
33240hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
33241hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33242inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33243link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33244fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
33245always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33246export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33247exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33248include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33249prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33250file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33251variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33252need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33253need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
33254version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
33255runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
33256shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
33257shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
33258libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
33259library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
33260soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
33261install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
33262postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33263postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33264finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
33265finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
33266hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
33267sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
33268sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
33269hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
33270enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
33271enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
33272enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
33273old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
33274striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
33275compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
33276predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
33277postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
33278predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
33279postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
33280compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
33281LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
33282reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
33283reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33284old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33285compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
33286GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
33287lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
33288lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
33289lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
33290lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
33291lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
33292archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
33293enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
33294export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33295whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33296compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
33297old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33298old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33299archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33300archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33301module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33302module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33303with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
33304allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33305no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33306hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33307hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
33308hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
33309hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
33310hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
33311hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
33312hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
33313hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
33314inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
33315link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
33316fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
33317always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
33318export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33319exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33320include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33321prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33322file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
33323hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
33324compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
33325predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33326postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33327predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
33328postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
33329compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000033330
33331LTCC='$LTCC'
33332LTCFLAGS='$LTCFLAGS'
33333compiler='$compiler_DEFAULT'
33334
cristyfd9dcd42010-08-08 18:07:02 +000033335# A function that is used when there is no print builtin or printf.
33336func_fallback_echo ()
33337{
33338 eval 'cat <<_LTECHO_EOF
33339\$1
33340_LTECHO_EOF'
33341}
33342
cristy3ed852e2009-09-05 21:47:34 +000033343# Quote evaled strings.
33344for var in SED \
33345GREP \
33346EGREP \
33347FGREP \
cristyfd9dcd42010-08-08 18:07:02 +000033348SHELL \
33349ECHO \
cristy3ed852e2009-09-05 21:47:34 +000033350LD \
cristyfd9dcd42010-08-08 18:07:02 +000033351AS \
33352DLLTOOL \
33353OBJDUMP \
cristy3ed852e2009-09-05 21:47:34 +000033354NM \
33355LN_S \
33356lt_SP2NL \
33357lt_NL2SP \
33358reload_flag \
33359deplibs_check_method \
33360file_magic_cmd \
33361AR \
33362AR_FLAGS \
33363STRIP \
33364RANLIB \
33365CC \
33366CFLAGS \
33367compiler \
33368lt_cv_sys_global_symbol_pipe \
33369lt_cv_sys_global_symbol_to_cdecl \
33370lt_cv_sys_global_symbol_to_c_name_address \
33371lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy3ed852e2009-09-05 21:47:34 +000033372lt_prog_compiler_no_builtin_flag \
33373lt_prog_compiler_wl \
33374lt_prog_compiler_pic \
33375lt_prog_compiler_static \
33376lt_cv_prog_compiler_c_o \
33377need_locks \
33378DSYMUTIL \
33379NMEDIT \
33380LIPO \
33381OTOOL \
33382OTOOL64 \
33383shrext_cmds \
33384export_dynamic_flag_spec \
33385whole_archive_flag_spec \
33386compiler_needs_object \
33387with_gnu_ld \
33388allow_undefined_flag \
33389no_undefined_flag \
33390hardcode_libdir_flag_spec \
33391hardcode_libdir_flag_spec_ld \
33392hardcode_libdir_separator \
33393fix_srcfile_path \
33394exclude_expsyms \
33395include_expsyms \
33396file_list_spec \
33397variables_saved_for_relink \
33398libname_spec \
33399library_names_spec \
33400soname_spec \
cristyfd9dcd42010-08-08 18:07:02 +000033401install_override_mode \
cristy3ed852e2009-09-05 21:47:34 +000033402finish_eval \
33403old_striplib \
33404striplib \
33405compiler_lib_search_dirs \
33406predep_objects \
33407postdep_objects \
33408predeps \
33409postdeps \
33410compiler_lib_search_path \
33411LD_CXX \
cristyfd9dcd42010-08-08 18:07:02 +000033412reload_flag_CXX \
cristy3ed852e2009-09-05 21:47:34 +000033413compiler_CXX \
33414lt_prog_compiler_no_builtin_flag_CXX \
33415lt_prog_compiler_wl_CXX \
33416lt_prog_compiler_pic_CXX \
33417lt_prog_compiler_static_CXX \
33418lt_cv_prog_compiler_c_o_CXX \
33419export_dynamic_flag_spec_CXX \
33420whole_archive_flag_spec_CXX \
33421compiler_needs_object_CXX \
33422with_gnu_ld_CXX \
33423allow_undefined_flag_CXX \
33424no_undefined_flag_CXX \
33425hardcode_libdir_flag_spec_CXX \
33426hardcode_libdir_flag_spec_ld_CXX \
33427hardcode_libdir_separator_CXX \
33428fix_srcfile_path_CXX \
33429exclude_expsyms_CXX \
33430include_expsyms_CXX \
33431file_list_spec_CXX \
33432compiler_lib_search_dirs_CXX \
33433predep_objects_CXX \
33434postdep_objects_CXX \
33435predeps_CXX \
33436postdeps_CXX \
33437compiler_lib_search_path_CXX; do
cristyfd9dcd42010-08-08 18:07:02 +000033438 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy3ed852e2009-09-05 21:47:34 +000033439 *[\\\\\\\`\\"\\\$]*)
cristyfd9dcd42010-08-08 18:07:02 +000033440 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033441 ;;
33442 *)
33443 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33444 ;;
33445 esac
33446done
33447
33448# Double-quote double-evaled strings.
33449for var in reload_cmds \
33450old_postinstall_cmds \
33451old_postuninstall_cmds \
33452old_archive_cmds \
33453extract_expsyms_cmds \
33454old_archive_from_new_cmds \
33455old_archive_from_expsyms_cmds \
33456archive_cmds \
33457archive_expsym_cmds \
33458module_cmds \
33459module_expsym_cmds \
33460export_symbols_cmds \
33461prelink_cmds \
33462postinstall_cmds \
33463postuninstall_cmds \
33464finish_cmds \
33465sys_lib_search_path_spec \
33466sys_lib_dlsearch_path_spec \
cristyfd9dcd42010-08-08 18:07:02 +000033467reload_cmds_CXX \
cristy3ed852e2009-09-05 21:47:34 +000033468old_archive_cmds_CXX \
33469old_archive_from_new_cmds_CXX \
33470old_archive_from_expsyms_cmds_CXX \
33471archive_cmds_CXX \
33472archive_expsym_cmds_CXX \
33473module_cmds_CXX \
33474module_expsym_cmds_CXX \
33475export_symbols_cmds_CXX \
33476prelink_cmds_CXX; do
cristyfd9dcd42010-08-08 18:07:02 +000033477 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy3ed852e2009-09-05 21:47:34 +000033478 *[\\\\\\\`\\"\\\$]*)
cristyfd9dcd42010-08-08 18:07:02 +000033479 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033480 ;;
33481 *)
33482 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33483 ;;
33484 esac
33485done
33486
cristy3ed852e2009-09-05 21:47:34 +000033487ac_aux_dir='$ac_aux_dir'
33488xsi_shell='$xsi_shell'
33489lt_shell_append='$lt_shell_append'
33490
33491# See if we are running on zsh, and set the options which allow our
33492# commands through without removal of \ escapes INIT.
33493if test -n "\${ZSH_VERSION+set}" ; then
33494 setopt NO_GLOB_SUBST
33495fi
33496
33497
33498 PACKAGE='$PACKAGE'
33499 VERSION='$VERSION'
33500 TIMESTAMP='$TIMESTAMP'
33501 RM='$RM'
33502 ofile='$ofile'
33503
33504
33505
33506
33507
33508
33509_ACEOF
33510
33511cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33512
33513# Handling of arguments.
33514for ac_config_target in $ac_config_targets
33515do
33516 case $ac_config_target in
33517 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33518 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33519 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33520 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33521 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33522 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33523 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000033524 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000033525 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33526 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33527 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33528 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33529 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33530 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33531 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33532 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33533 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33534 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33535 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33536 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33537 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33538 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33539 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33540 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33541 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33542 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33543 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33544 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33545 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33546 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33547 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33548 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33549 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33550 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33551 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33552 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33553 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33554 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33555 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33556 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33557 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
33558 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33559 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33560 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33561 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33562 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33563 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33564 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33565 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33566 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33567
cristyfd9dcd42010-08-08 18:07:02 +000033568 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033569 esac
33570done
33571
33572
33573# If the user did not use the arguments to specify the items to instantiate,
33574# then the envvar interface is used. Set only those that are not.
33575# We use the long form for the default assignment because of an extremely
33576# bizarre bug on SunOS 4.1.3.
33577if $ac_need_defaults; then
33578 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33579 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33580 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33581fi
33582
33583# Have a temporary directory for convenience. Make it in the build tree
33584# simply because there is no reason against having it here, and in addition,
33585# creating and moving files from /tmp can sometimes cause problems.
33586# Hook for its removal unless debugging.
33587# Note that there is a small window in which the directory will not be cleaned:
33588# after its creation but before its name has been assigned to `$tmp'.
33589$debug ||
33590{
33591 tmp=
33592 trap 'exit_status=$?
33593 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33594' 0
cristy8b350f62009-11-15 23:12:43 +000033595 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000033596}
33597# Create a (secure) tmp directory for tmp files.
33598
33599{
33600 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33601 test -n "$tmp" && test -d "$tmp"
33602} ||
33603{
33604 tmp=./conf$$-$RANDOM
33605 (umask 077 && mkdir "$tmp")
cristyfd9dcd42010-08-08 18:07:02 +000033606} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033607
33608# Set up the scripts for CONFIG_FILES section.
33609# No need to generate them if there are no CONFIG_FILES.
33610# This happens for instance with `./config.status config.h'.
33611if test -n "$CONFIG_FILES"; then
33612
33613
cristy8b350f62009-11-15 23:12:43 +000033614ac_cr=`echo X | tr X '\015'`
33615# On cygwin, bash can eat \r inside `` if the user requested igncr.
33616# But we know of no other shell where ac_cr would be empty at this
33617# point, so we can use a bashism as a fallback.
33618if test "x$ac_cr" = x; then
33619 eval ac_cr=\$\'\\r\'
33620fi
cristy3ed852e2009-09-05 21:47:34 +000033621ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33622if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristyfd9dcd42010-08-08 18:07:02 +000033623 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000033624else
33625 ac_cs_awk_cr=$ac_cr
33626fi
33627
33628echo 'BEGIN {' >"$tmp/subs1.awk" &&
33629_ACEOF
33630
33631
33632{
33633 echo "cat >conf$$subs.awk <<_ACEOF" &&
33634 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33635 echo "_ACEOF"
33636} >conf$$subs.sh ||
cristyfd9dcd42010-08-08 18:07:02 +000033637 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33638ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000033639ac_delim='%!_!# '
33640for ac_last_try in false false false false false :; do
33641 . ./conf$$subs.sh ||
cristyfd9dcd42010-08-08 18:07:02 +000033642 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033643
33644 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33645 if test $ac_delim_n = $ac_delim_num; then
33646 break
33647 elif $ac_last_try; then
cristyfd9dcd42010-08-08 18:07:02 +000033648 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033649 else
33650 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33651 fi
33652done
33653rm -f conf$$subs.sh
33654
33655cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33656cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
33657_ACEOF
33658sed -n '
33659h
33660s/^/S["/; s/!.*/"]=/
33661p
33662g
33663s/^[^!]*!//
33664:repl
33665t repl
33666s/'"$ac_delim"'$//
33667t delim
33668:nl
33669h
cristycd4c5312009-11-22 01:19:08 +000033670s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000033671t more1
33672s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33673p
33674n
33675b repl
33676:more1
33677s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33678p
33679g
33680s/.\{148\}//
33681t nl
33682:delim
33683h
cristycd4c5312009-11-22 01:19:08 +000033684s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000033685t more2
33686s/["\\]/\\&/g; s/^/"/; s/$/"/
33687p
33688b
33689:more2
33690s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33691p
33692g
33693s/.\{148\}//
33694t delim
33695' <conf$$subs.awk | sed '
33696/^[^""]/{
33697 N
33698 s/\n//
33699}
33700' >>$CONFIG_STATUS || ac_write_fail=1
33701rm -f conf$$subs.awk
33702cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33703_ACAWK
33704cat >>"\$tmp/subs1.awk" <<_ACAWK &&
33705 for (key in S) S_is_set[key] = 1
33706 FS = ""
33707
33708}
33709{
33710 line = $ 0
33711 nfields = split(line, field, "@")
33712 substed = 0
33713 len = length(field[1])
33714 for (i = 2; i < nfields; i++) {
33715 key = field[i]
33716 keylen = length(key)
33717 if (S_is_set[key]) {
33718 value = S[key]
33719 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33720 len += length(value) + length(field[++i])
33721 substed = 1
33722 } else
33723 len += 1 + keylen
33724 }
33725
33726 print line
33727}
33728
33729_ACAWK
33730_ACEOF
33731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33732if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33733 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33734else
33735 cat
33736fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristyfd9dcd42010-08-08 18:07:02 +000033737 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033738_ACEOF
33739
cristyfd9dcd42010-08-08 18:07:02 +000033740# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33741# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000033742# trailing colons and then remove the whole line if VPATH becomes empty
33743# (actually we leave an empty line to preserve line numbers).
33744if test "x$srcdir" = x.; then
cristyfd9dcd42010-08-08 18:07:02 +000033745 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33746h
33747s///
33748s/^/:/
33749s/[ ]*$/:/
33750s/:\$(srcdir):/:/g
33751s/:\${srcdir}:/:/g
33752s/:@srcdir@:/:/g
33753s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000033754s/:*$//
cristyfd9dcd42010-08-08 18:07:02 +000033755x
33756s/\(=[ ]*\).*/\1/
33757G
33758s/\n//
cristy3ed852e2009-09-05 21:47:34 +000033759s/^[^=]*=[ ]*$//
33760}'
33761fi
33762
33763cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33764fi # test -n "$CONFIG_FILES"
33765
33766# Set up the scripts for CONFIG_HEADERS section.
33767# No need to generate them if there are no CONFIG_HEADERS.
33768# This happens for instance with `./config.status Makefile'.
33769if test -n "$CONFIG_HEADERS"; then
33770cat >"$tmp/defines.awk" <<\_ACAWK ||
33771BEGIN {
33772_ACEOF
33773
33774# Transform confdefs.h into an awk script `defines.awk', embedded as
33775# here-document in config.status, that substitutes the proper values into
33776# config.h.in to produce config.h.
33777
33778# Create a delimiter string that does not exist in confdefs.h, to ease
33779# handling of long lines.
33780ac_delim='%!_!# '
33781for ac_last_try in false false :; do
33782 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
33783 if test -z "$ac_t"; then
33784 break
33785 elif $ac_last_try; then
cristyfd9dcd42010-08-08 18:07:02 +000033786 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033787 else
33788 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33789 fi
33790done
33791
33792# For the awk script, D is an array of macro values keyed by name,
33793# likewise P contains macro parameters if any. Preserve backslash
33794# newline sequences.
33795
33796ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33797sed -n '
33798s/.\{148\}/&'"$ac_delim"'/g
33799t rset
33800:rset
33801s/^[ ]*#[ ]*define[ ][ ]*/ /
33802t def
33803d
33804:def
33805s/\\$//
33806t bsnl
33807s/["\\]/\\&/g
33808s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33809D["\1"]=" \3"/p
33810s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33811d
33812:bsnl
33813s/["\\]/\\&/g
33814s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33815D["\1"]=" \3\\\\\\n"\\/p
33816t cont
33817s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33818t cont
33819d
33820:cont
33821n
33822s/.\{148\}/&'"$ac_delim"'/g
33823t clear
33824:clear
33825s/\\$//
33826t bsnlc
33827s/["\\]/\\&/g; s/^/"/; s/$/"/p
33828d
33829:bsnlc
33830s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33831b cont
33832' <confdefs.h | sed '
33833s/'"$ac_delim"'/"\\\
33834"/g' >>$CONFIG_STATUS || ac_write_fail=1
33835
33836cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33837 for (key in D) D_is_set[key] = 1
33838 FS = ""
33839}
33840/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33841 line = \$ 0
33842 split(line, arg, " ")
33843 if (arg[1] == "#") {
33844 defundef = arg[2]
33845 mac1 = arg[3]
33846 } else {
33847 defundef = substr(arg[1], 2)
33848 mac1 = arg[2]
33849 }
33850 split(mac1, mac2, "(") #)
33851 macro = mac2[1]
33852 prefix = substr(line, 1, index(line, defundef) - 1)
33853 if (D_is_set[macro]) {
33854 # Preserve the white space surrounding the "#".
33855 print prefix "define", macro P[macro] D[macro]
33856 next
33857 } else {
33858 # Replace #undef with comments. This is necessary, for example,
33859 # in the case of _POSIX_SOURCE, which is predefined and required
33860 # on some systems where configure will not decide to define it.
33861 if (defundef == "undef") {
33862 print "/*", prefix defundef, macro, "*/"
33863 next
33864 }
33865 }
33866}
33867{ print }
33868_ACAWK
33869_ACEOF
33870cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristyfd9dcd42010-08-08 18:07:02 +000033871 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033872fi # test -n "$CONFIG_HEADERS"
33873
33874
33875eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
33876shift
33877for ac_tag
33878do
33879 case $ac_tag in
33880 :[FHLC]) ac_mode=$ac_tag; continue;;
33881 esac
33882 case $ac_mode$ac_tag in
33883 :[FHL]*:*);;
cristyfd9dcd42010-08-08 18:07:02 +000033884 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033885 :[FH]-) ac_tag=-:-;;
33886 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33887 esac
33888 ac_save_IFS=$IFS
33889 IFS=:
33890 set x $ac_tag
33891 IFS=$ac_save_IFS
33892 shift
33893 ac_file=$1
33894 shift
33895
33896 case $ac_mode in
33897 :L) ac_source=$1;;
33898 :[FH])
33899 ac_file_inputs=
33900 for ac_f
33901 do
33902 case $ac_f in
33903 -) ac_f="$tmp/stdin";;
33904 *) # Look for the file first in the build tree, then in the source tree
33905 # (if the path is not absolute). The absolute path cannot be DOS-style,
33906 # because $ac_f cannot contain `:'.
33907 test -f "$ac_f" ||
33908 case $ac_f in
33909 [\\/$]*) false;;
33910 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33911 esac ||
cristyfd9dcd42010-08-08 18:07:02 +000033912 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033913 esac
33914 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000033915 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000033916 done
33917
33918 # Let's still pretend it is `configure' which instantiates (i.e., don't
33919 # use $as_me), people would be surprised to read:
33920 # /* config.h. Generated by config.status. */
33921 configure_input='Generated from '`
33922 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33923 `' by configure.'
33924 if test x"$ac_file" != x-; then
33925 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000033926 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000033927$as_echo "$as_me: creating $ac_file" >&6;}
33928 fi
33929 # Neutralize special characters interpreted by sed in replacement strings.
33930 case $configure_input in #(
33931 *\&* | *\|* | *\\* )
33932 ac_sed_conf_input=`$as_echo "$configure_input" |
33933 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33934 *) ac_sed_conf_input=$configure_input;;
33935 esac
33936
33937 case $ac_tag in
33938 *:-:* | *:-) cat >"$tmp/stdin" \
cristyfd9dcd42010-08-08 18:07:02 +000033939 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000033940 esac
33941 ;;
33942 esac
33943
33944 ac_dir=`$as_dirname -- "$ac_file" ||
33945$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33946 X"$ac_file" : 'X\(//\)[^/]' \| \
33947 X"$ac_file" : 'X\(//\)$' \| \
33948 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33949$as_echo X"$ac_file" |
33950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33951 s//\1/
33952 q
33953 }
33954 /^X\(\/\/\)[^/].*/{
33955 s//\1/
33956 q
33957 }
33958 /^X\(\/\/\)$/{
33959 s//\1/
33960 q
33961 }
33962 /^X\(\/\).*/{
33963 s//\1/
33964 q
33965 }
33966 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000033967 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033968 ac_builddir=.
33969
33970case "$ac_dir" in
33971.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33972*)
33973 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33974 # A ".." for each directory in $ac_dir_suffix.
33975 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33976 case $ac_top_builddir_sub in
33977 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33978 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33979 esac ;;
33980esac
33981ac_abs_top_builddir=$ac_pwd
33982ac_abs_builddir=$ac_pwd$ac_dir_suffix
33983# for backward compatibility:
33984ac_top_builddir=$ac_top_build_prefix
33985
33986case $srcdir in
33987 .) # We are building in place.
33988 ac_srcdir=.
33989 ac_top_srcdir=$ac_top_builddir_sub
33990 ac_abs_top_srcdir=$ac_pwd ;;
33991 [\\/]* | ?:[\\/]* ) # Absolute name.
33992 ac_srcdir=$srcdir$ac_dir_suffix;
33993 ac_top_srcdir=$srcdir
33994 ac_abs_top_srcdir=$srcdir ;;
33995 *) # Relative name.
33996 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33997 ac_top_srcdir=$ac_top_build_prefix$srcdir
33998 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33999esac
34000ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34001
34002
34003 case $ac_mode in
34004 :F)
34005 #
34006 # CONFIG_FILE
34007 #
34008
34009 case $INSTALL in
34010 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34011 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34012 esac
34013 ac_MKDIR_P=$MKDIR_P
34014 case $MKDIR_P in
34015 [\\/$]* | ?:[\\/]* ) ;;
34016 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34017 esac
34018_ACEOF
34019
34020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34021# If the template does not know about datarootdir, expand it.
34022# FIXME: This hack should be removed a few years after 2.60.
34023ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000034024ac_sed_dataroot='
34025/datarootdir/ {
34026 p
34027 q
34028}
34029/@datadir@/p
34030/@docdir@/p
34031/@infodir@/p
34032/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000034033/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000034034case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34035*datarootdir*) ac_datarootdir_seen=yes;;
34036*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000034037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000034038$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34039_ACEOF
34040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34041 ac_datarootdir_hack='
34042 s&@datadir@&$datadir&g
34043 s&@docdir@&$docdir&g
34044 s&@infodir@&$infodir&g
34045 s&@localedir@&$localedir&g
34046 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000034047 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000034048esac
34049_ACEOF
34050
34051# Neutralize VPATH when `$srcdir' = `.'.
34052# Shell code in configure.ac might set extrasub.
34053# FIXME: do we really want to maintain this feature?
34054cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34055ac_sed_extra="$ac_vpsub
34056$extrasub
34057_ACEOF
34058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34059:t
34060/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34061s|@configure_input@|$ac_sed_conf_input|;t t
34062s&@top_builddir@&$ac_top_builddir_sub&;t t
34063s&@top_build_prefix@&$ac_top_build_prefix&;t t
34064s&@srcdir@&$ac_srcdir&;t t
34065s&@abs_srcdir@&$ac_abs_srcdir&;t t
34066s&@top_srcdir@&$ac_top_srcdir&;t t
34067s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34068s&@builddir@&$ac_builddir&;t t
34069s&@abs_builddir@&$ac_abs_builddir&;t t
34070s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34071s&@INSTALL@&$ac_INSTALL&;t t
34072s&@MKDIR_P@&$ac_MKDIR_P&;t t
34073$ac_datarootdir_hack
34074"
34075eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristyfd9dcd42010-08-08 18:07:02 +000034076 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034077
34078test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34079 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34080 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000034081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristyfd9dcd42010-08-08 18:07:02 +000034082which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000034083$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristyfd9dcd42010-08-08 18:07:02 +000034084which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000034085
34086 rm -f "$tmp/stdin"
34087 case $ac_file in
34088 -) cat "$tmp/out" && rm -f "$tmp/out";;
34089 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34090 esac \
cristyfd9dcd42010-08-08 18:07:02 +000034091 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034092 ;;
34093 :H)
34094 #
34095 # CONFIG_HEADER
34096 #
34097 if test x"$ac_file" != x-; then
34098 {
34099 $as_echo "/* $configure_input */" \
34100 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34101 } >"$tmp/config.h" \
cristyfd9dcd42010-08-08 18:07:02 +000034102 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034103 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000034104 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034105$as_echo "$as_me: $ac_file is unchanged" >&6;}
34106 else
34107 rm -f "$ac_file"
34108 mv "$tmp/config.h" "$ac_file" \
cristyfd9dcd42010-08-08 18:07:02 +000034109 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034110 fi
34111 else
34112 $as_echo "/* $configure_input */" \
34113 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristyfd9dcd42010-08-08 18:07:02 +000034114 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034115 fi
34116# Compute "$ac_file"'s index in $config_headers.
34117_am_arg="$ac_file"
34118_am_stamp_count=1
34119for _am_header in $config_headers :; do
34120 case $_am_header in
34121 $_am_arg | $_am_arg:* )
34122 break ;;
34123 * )
34124 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34125 esac
34126done
34127echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34128$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34129 X"$_am_arg" : 'X\(//\)[^/]' \| \
34130 X"$_am_arg" : 'X\(//\)$' \| \
34131 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34132$as_echo X"$_am_arg" |
34133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34134 s//\1/
34135 q
34136 }
34137 /^X\(\/\/\)[^/].*/{
34138 s//\1/
34139 q
34140 }
34141 /^X\(\/\/\)$/{
34142 s//\1/
34143 q
34144 }
34145 /^X\(\/\).*/{
34146 s//\1/
34147 q
34148 }
34149 s/.*/./; q'`/stamp-h$_am_stamp_count
34150 ;;
34151
cristy8b350f62009-11-15 23:12:43 +000034152 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000034153$as_echo "$as_me: executing $ac_file commands" >&6;}
34154 ;;
34155 esac
34156
34157
34158 case $ac_file$ac_mode in
34159 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34160ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34161ac_prefix_conf_PKG=`echo MagickCore`
34162ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34163ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34164ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34165if test ".$ac_prefix_conf_INP" = "."; then
34166 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34167 case "$ac_file" in
34168 *.h) ac_prefix_conf_INP=$ac_file ;;
34169 *)
34170 esac
34171 test ".$ac_prefix_conf_INP" != "." && break
34172 done
34173fi
34174if test ".$ac_prefix_conf_INP" = "."; then
34175 case "$ac_prefix_conf_OUT" in
34176 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34177 ;;
34178 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34179 ;;
34180 *) ac_prefix_conf_INP=config.h
34181 ;;
34182 esac
34183fi
34184if test -z "$ac_prefix_conf_PKG" ; then
cristyfd9dcd42010-08-08 18:07:02 +000034185 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034186else
34187 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34188 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34189 fi fi
cristy8b350f62009-11-15 23:12:43 +000034190 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
cristy3ed852e2009-09-05 21:47:34 +000034191$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34192 if test -f $ac_prefix_conf_INP ; then
34193 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34194 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034195 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34196 echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034197 echo "#endif/" >>conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034198 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34199 echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034200 echo "#endif/" >> conftest.prefix
34201 # now executing _script on _DEF input to create _OUT output file
34202 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34203 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34204 echo ' ' >>$tmp/pconfig.h
34205 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34206
34207 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34208 echo ' ' >>$tmp/pconfig.h
34209 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34210 echo "#endif" >>$tmp/pconfig.h
34211 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034212 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034213$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34214 else
34215 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34216$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34217 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34218 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34219 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34220$as_echo X"$ac_prefix_conf_OUT" |
34221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34222 s//\1/
34223 q
34224 }
34225 /^X\(\/\/\)[^/].*/{
34226 s//\1/
34227 q
34228 }
34229 /^X\(\/\/\)$/{
34230 s//\1/
34231 q
34232 }
34233 /^X\(\/\).*/{
34234 s//\1/
34235 q
34236 }
34237 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034238 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034239 rm -f "$ac_prefix_conf_OUT"
34240 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34241 fi
34242 cp conftest.prefix _configs.sed
34243 else
cristyfd9dcd42010-08-08 18:07:02 +000034244 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034245 fi
34246 rm -f conftest.*
34247fi
34248 ;;
34249 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34250 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34251 # are listed without --file. Let's play safe and only enable the eval
34252 # if we detect the quoting.
34253 case $CONFIG_FILES in
34254 *\'*) eval set x "$CONFIG_FILES" ;;
34255 *) set x $CONFIG_FILES ;;
34256 esac
34257 shift
34258 for mf
34259 do
34260 # Strip MF so we end up with the name of the file.
34261 mf=`echo "$mf" | sed -e 's/:.*$//'`
34262 # Check whether this is an Automake generated Makefile or not.
34263 # We used to match only the files named `Makefile.in', but
34264 # some people rename them; so instead we look at the file content.
34265 # Grep'ing the first line is not enough: some people post-process
34266 # each Makefile.in and add a new line on top of each file to say so.
34267 # Grep'ing the whole file is not good either: AIX grep has a line
34268 # limit of 2048, but all sed's we know have understand at least 4000.
34269 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34270 dirpart=`$as_dirname -- "$mf" ||
34271$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34272 X"$mf" : 'X\(//\)[^/]' \| \
34273 X"$mf" : 'X\(//\)$' \| \
34274 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34275$as_echo X"$mf" |
34276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34277 s//\1/
34278 q
34279 }
34280 /^X\(\/\/\)[^/].*/{
34281 s//\1/
34282 q
34283 }
34284 /^X\(\/\/\)$/{
34285 s//\1/
34286 q
34287 }
34288 /^X\(\/\).*/{
34289 s//\1/
34290 q
34291 }
34292 s/.*/./; q'`
34293 else
34294 continue
34295 fi
34296 # Extract the definition of DEPDIR, am__include, and am__quote
34297 # from the Makefile without running `make'.
34298 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34299 test -z "$DEPDIR" && continue
34300 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34301 test -z "am__include" && continue
34302 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34303 # When using ansi2knr, U may be empty or an underscore; expand it
34304 U=`sed -n 's/^U = //p' < "$mf"`
34305 # Find all dependency output files, they are included files with
34306 # $(DEPDIR) in their names. We invoke sed twice because it is the
34307 # simplest approach to changing $(DEPDIR) to its actual value in the
34308 # expansion.
34309 for file in `sed -n "
34310 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34311 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34312 # Make sure the directory exists.
34313 test -f "$dirpart/$file" && continue
34314 fdir=`$as_dirname -- "$file" ||
34315$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34316 X"$file" : 'X\(//\)[^/]' \| \
34317 X"$file" : 'X\(//\)$' \| \
34318 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34319$as_echo X"$file" |
34320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34321 s//\1/
34322 q
34323 }
34324 /^X\(\/\/\)[^/].*/{
34325 s//\1/
34326 q
34327 }
34328 /^X\(\/\/\)$/{
34329 s//\1/
34330 q
34331 }
34332 /^X\(\/\).*/{
34333 s//\1/
34334 q
34335 }
34336 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034337 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034338 # echo "creating $dirpart/$file"
34339 echo '# dummy' > "$dirpart/$file"
34340 done
34341 done
34342}
34343 ;;
34344 "libtool":C)
34345
34346 # See if we are running on zsh, and set the options which allow our
34347 # commands through without removal of \ escapes.
34348 if test -n "${ZSH_VERSION+set}" ; then
34349 setopt NO_GLOB_SUBST
34350 fi
34351
34352 cfgfile="${ofile}T"
34353 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34354 $RM "$cfgfile"
34355
34356 cat <<_LT_EOF >> "$cfgfile"
34357#! $SHELL
34358
34359# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34360# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34361# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34362# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34363#
34364# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristyfd9dcd42010-08-08 18:07:02 +000034365# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
34366# Inc.
cristy3ed852e2009-09-05 21:47:34 +000034367# Written by Gordon Matzigkeit, 1996
34368#
34369# This file is part of GNU Libtool.
34370#
34371# GNU Libtool is free software; you can redistribute it and/or
34372# modify it under the terms of the GNU General Public License as
34373# published by the Free Software Foundation; either version 2 of
34374# the License, or (at your option) any later version.
34375#
34376# As a special exception to the GNU General Public License,
34377# if you distribute this file as part of a program or library that
34378# is built using GNU Libtool, you may include this file under the
34379# same distribution terms that you use for the rest of that program.
34380#
34381# GNU Libtool is distributed in the hope that it will be useful,
34382# but WITHOUT ANY WARRANTY; without even the implied warranty of
34383# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34384# GNU General Public License for more details.
34385#
34386# You should have received a copy of the GNU General Public License
34387# along with GNU Libtool; see the file COPYING. If not, a copy
34388# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34389# obtained by writing to the Free Software Foundation, Inc.,
34390# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34391
34392
34393# The names of the tagged configurations supported by this script.
34394available_tags="CXX "
34395
34396# ### BEGIN LIBTOOL CONFIG
34397
34398# A sed program that does not truncate output.
34399SED=$lt_SED
34400
34401# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34402Xsed="\$SED -e 1s/^X//"
34403
34404# A grep program that handles long lines.
34405GREP=$lt_GREP
34406
34407# An ERE matcher.
34408EGREP=$lt_EGREP
34409
34410# A literal string matcher.
34411FGREP=$lt_FGREP
34412
cristyfd9dcd42010-08-08 18:07:02 +000034413# Shell to use when invoking shell scripts.
34414SHELL=$lt_SHELL
34415
34416# An echo program that protects backslashes.
34417ECHO=$lt_ECHO
34418
cristy3ed852e2009-09-05 21:47:34 +000034419# Which release of libtool.m4 was used?
34420macro_version=$macro_version
34421macro_revision=$macro_revision
34422
34423# Assembler program.
cristyfd9dcd42010-08-08 18:07:02 +000034424AS=$lt_AS
cristy3ed852e2009-09-05 21:47:34 +000034425
34426# DLL creation program.
cristyfd9dcd42010-08-08 18:07:02 +000034427DLLTOOL=$lt_DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000034428
34429# Object dumper program.
cristyfd9dcd42010-08-08 18:07:02 +000034430OBJDUMP=$lt_OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000034431
34432# Whether or not to build shared libraries.
34433build_libtool_libs=$enable_shared
34434
34435# Whether or not to build static libraries.
34436build_old_libs=$enable_static
34437
34438# What type of objects to build.
34439pic_mode=$pic_mode
34440
34441# Whether or not to optimize for fast installation.
34442fast_install=$enable_fast_install
34443
34444# The host system.
34445host_alias=$host_alias
34446host=$host
34447host_os=$host_os
34448
34449# The build system.
34450build_alias=$build_alias
34451build=$build
34452build_os=$build_os
34453
34454# A BSD- or MS-compatible name lister.
34455NM=$lt_NM
34456
34457# Whether we need soft or hard links.
34458LN_S=$lt_LN_S
34459
34460# What is the maximum length of a command?
34461max_cmd_len=$max_cmd_len
34462
34463# Object file suffix (normally "o").
34464objext=$ac_objext
34465
34466# Executable file suffix (normally "").
34467exeext=$exeext
34468
34469# whether the shell understands "unset".
34470lt_unset=$lt_unset
34471
34472# turn spaces into newlines.
34473SP2NL=$lt_lt_SP2NL
34474
34475# turn newlines into spaces.
34476NL2SP=$lt_lt_NL2SP
34477
cristy3ed852e2009-09-05 21:47:34 +000034478# Method to check whether dependent libraries are shared objects.
34479deplibs_check_method=$lt_deplibs_check_method
34480
34481# Command to use when deplibs_check_method == "file_magic".
34482file_magic_cmd=$lt_file_magic_cmd
34483
34484# The archiver.
34485AR=$lt_AR
34486AR_FLAGS=$lt_AR_FLAGS
34487
34488# A symbol stripping program.
34489STRIP=$lt_STRIP
34490
34491# Commands used to install an old-style archive.
34492RANLIB=$lt_RANLIB
34493old_postinstall_cmds=$lt_old_postinstall_cmds
34494old_postuninstall_cmds=$lt_old_postuninstall_cmds
34495
cristyfd9dcd42010-08-08 18:07:02 +000034496# Whether to use a lock for old archive extraction.
34497lock_old_archive_extraction=$lock_old_archive_extraction
34498
cristy3ed852e2009-09-05 21:47:34 +000034499# A C compiler.
34500LTCC=$lt_CC
34501
34502# LTCC compiler flags.
34503LTCFLAGS=$lt_CFLAGS
34504
34505# Take the output of nm and produce a listing of raw symbols and C names.
34506global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34507
34508# Transform the output of nm in a proper C declaration.
34509global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34510
34511# Transform the output of nm in a C name address pair.
34512global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34513
34514# Transform the output of nm in a C name address pair when lib prefix is needed.
34515global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34516
34517# The name of the directory that contains temporary libtool files.
34518objdir=$objdir
34519
cristy3ed852e2009-09-05 21:47:34 +000034520# Used to examine libraries when file_magic_cmd begins with "file".
34521MAGIC_CMD=$MAGIC_CMD
34522
34523# Must we lock files when doing compilation?
34524need_locks=$lt_need_locks
34525
34526# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34527DSYMUTIL=$lt_DSYMUTIL
34528
34529# Tool to change global to local symbols on Mac OS X.
34530NMEDIT=$lt_NMEDIT
34531
34532# Tool to manipulate fat objects and archives on Mac OS X.
34533LIPO=$lt_LIPO
34534
34535# ldd/readelf like tool for Mach-O binaries on Mac OS X.
34536OTOOL=$lt_OTOOL
34537
34538# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34539OTOOL64=$lt_OTOOL64
34540
34541# Old archive suffix (normally "a").
34542libext=$libext
34543
34544# Shared library suffix (normally ".so").
34545shrext_cmds=$lt_shrext_cmds
34546
34547# The commands to extract the exported symbol list from a shared archive.
34548extract_expsyms_cmds=$lt_extract_expsyms_cmds
34549
34550# Variables whose values should be saved in libtool wrapper scripts and
34551# restored at link time.
34552variables_saved_for_relink=$lt_variables_saved_for_relink
34553
34554# Do we need the "lib" prefix for modules?
34555need_lib_prefix=$need_lib_prefix
34556
34557# Do we need a version for libraries?
34558need_version=$need_version
34559
34560# Library versioning type.
34561version_type=$version_type
34562
34563# Shared library runtime path variable.
34564runpath_var=$runpath_var
34565
34566# Shared library path variable.
34567shlibpath_var=$shlibpath_var
34568
34569# Is shlibpath searched before the hard-coded library search path?
34570shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34571
34572# Format of library name prefix.
34573libname_spec=$lt_libname_spec
34574
34575# List of archive names. First name is the real one, the rest are links.
34576# The last name is the one that the linker finds with -lNAME
34577library_names_spec=$lt_library_names_spec
34578
34579# The coded name of the library, if different from the real name.
34580soname_spec=$lt_soname_spec
34581
cristyfd9dcd42010-08-08 18:07:02 +000034582# Permission mode override for installation of shared libraries.
34583install_override_mode=$lt_install_override_mode
34584
cristy3ed852e2009-09-05 21:47:34 +000034585# Command to use after installation of a shared archive.
34586postinstall_cmds=$lt_postinstall_cmds
34587
34588# Command to use after uninstallation of a shared archive.
34589postuninstall_cmds=$lt_postuninstall_cmds
34590
34591# Commands used to finish a libtool library installation in a directory.
34592finish_cmds=$lt_finish_cmds
34593
34594# As "finish_cmds", except a single script fragment to be evaled but
34595# not shown.
34596finish_eval=$lt_finish_eval
34597
34598# Whether we should hardcode library paths into libraries.
34599hardcode_into_libs=$hardcode_into_libs
34600
34601# Compile-time system search path for libraries.
34602sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34603
34604# Run-time system search path for libraries.
34605sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34606
34607# Whether dlopen is supported.
34608dlopen_support=$enable_dlopen
34609
34610# Whether dlopen of programs is supported.
34611dlopen_self=$enable_dlopen_self
34612
34613# Whether dlopen of statically linked programs is supported.
34614dlopen_self_static=$enable_dlopen_self_static
34615
34616# Commands to strip libraries.
34617old_striplib=$lt_old_striplib
34618striplib=$lt_striplib
34619
34620
34621# The linker used to build libraries.
34622LD=$lt_LD
34623
cristyfd9dcd42010-08-08 18:07:02 +000034624# How to create reloadable object files.
34625reload_flag=$lt_reload_flag
34626reload_cmds=$lt_reload_cmds
34627
cristy3ed852e2009-09-05 21:47:34 +000034628# Commands used to build an old-style archive.
34629old_archive_cmds=$lt_old_archive_cmds
34630
34631# A language specific compiler.
34632CC=$lt_compiler
34633
34634# Is the compiler the GNU compiler?
34635with_gcc=$GCC
34636
34637# Compiler flag to turn off builtin functions.
34638no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34639
34640# How to pass a linker flag through the compiler.
34641wl=$lt_lt_prog_compiler_wl
34642
34643# Additional compiler flags for building library objects.
34644pic_flag=$lt_lt_prog_compiler_pic
34645
34646# Compiler flag to prevent dynamic linking.
34647link_static_flag=$lt_lt_prog_compiler_static
34648
34649# Does compiler simultaneously support -c and -o options?
34650compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34651
34652# Whether or not to add -lc for building shared libraries.
34653build_libtool_need_lc=$archive_cmds_need_lc
34654
34655# Whether or not to disallow shared libs when runtime libs are static.
34656allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34657
34658# Compiler flag to allow reflexive dlopens.
34659export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34660
34661# Compiler flag to generate shared objects directly from archives.
34662whole_archive_flag_spec=$lt_whole_archive_flag_spec
34663
34664# Whether the compiler copes with passing no objects directly.
34665compiler_needs_object=$lt_compiler_needs_object
34666
34667# Create an old-style archive from a shared archive.
34668old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34669
34670# Create a temporary old-style archive to link instead of a shared archive.
34671old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34672
34673# Commands used to build a shared archive.
34674archive_cmds=$lt_archive_cmds
34675archive_expsym_cmds=$lt_archive_expsym_cmds
34676
34677# Commands used to build a loadable module if different from building
34678# a shared archive.
34679module_cmds=$lt_module_cmds
34680module_expsym_cmds=$lt_module_expsym_cmds
34681
34682# Whether we are building with GNU ld or not.
34683with_gnu_ld=$lt_with_gnu_ld
34684
34685# Flag that allows shared libraries with undefined symbols to be built.
34686allow_undefined_flag=$lt_allow_undefined_flag
34687
34688# Flag that enforces no undefined symbols.
34689no_undefined_flag=$lt_no_undefined_flag
34690
34691# Flag to hardcode \$libdir into a binary during linking.
34692# This must work even if \$libdir does not exist
34693hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34694
34695# If ld is used when linking, flag to hardcode \$libdir into a binary
34696# during linking. This must work even if \$libdir does not exist.
34697hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
34698
34699# Whether we need a single "-rpath" flag with a separated argument.
34700hardcode_libdir_separator=$lt_hardcode_libdir_separator
34701
34702# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34703# DIR into the resulting binary.
34704hardcode_direct=$hardcode_direct
34705
34706# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34707# DIR into the resulting binary and the resulting library dependency is
34708# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34709# library is relocated.
34710hardcode_direct_absolute=$hardcode_direct_absolute
34711
34712# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34713# into the resulting binary.
34714hardcode_minus_L=$hardcode_minus_L
34715
34716# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34717# into the resulting binary.
34718hardcode_shlibpath_var=$hardcode_shlibpath_var
34719
34720# Set to "yes" if building a shared library automatically hardcodes DIR
34721# into the library and all subsequent libraries and executables linked
34722# against it.
34723hardcode_automatic=$hardcode_automatic
34724
34725# Set to yes if linker adds runtime paths of dependent libraries
34726# to runtime path list.
34727inherit_rpath=$inherit_rpath
34728
34729# Whether libtool must link a program against all its dependency libraries.
34730link_all_deplibs=$link_all_deplibs
34731
34732# Fix the shell variable \$srcfile for the compiler.
34733fix_srcfile_path=$lt_fix_srcfile_path
34734
34735# Set to "yes" if exported symbols are required.
34736always_export_symbols=$always_export_symbols
34737
34738# The commands to list exported symbols.
34739export_symbols_cmds=$lt_export_symbols_cmds
34740
34741# Symbols that should not be listed in the preloaded symbols.
34742exclude_expsyms=$lt_exclude_expsyms
34743
34744# Symbols that must always be exported.
34745include_expsyms=$lt_include_expsyms
34746
34747# Commands necessary for linking programs (against libraries) with templates.
34748prelink_cmds=$lt_prelink_cmds
34749
34750# Specify filename containing input files.
34751file_list_spec=$lt_file_list_spec
34752
34753# How to hardcode a shared library path into an executable.
34754hardcode_action=$hardcode_action
34755
34756# The directories searched by this compiler when creating a shared library.
34757compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
34758
34759# Dependencies to place before and after the objects being linked to
34760# create a shared library.
34761predep_objects=$lt_predep_objects
34762postdep_objects=$lt_postdep_objects
34763predeps=$lt_predeps
34764postdeps=$lt_postdeps
34765
34766# The library search path used internally by the compiler when linking
34767# a shared library.
34768compiler_lib_search_path=$lt_compiler_lib_search_path
34769
34770# ### END LIBTOOL CONFIG
34771
34772_LT_EOF
34773
34774 case $host_os in
34775 aix3*)
34776 cat <<\_LT_EOF >> "$cfgfile"
34777# AIX sometimes has problems with the GCC collect2 program. For some
34778# reason, if we set the COLLECT_NAMES environment variable, the problems
34779# vanish in a puff of smoke.
34780if test "X${COLLECT_NAMES+set}" != Xset; then
34781 COLLECT_NAMES=
34782 export COLLECT_NAMES
34783fi
34784_LT_EOF
34785 ;;
34786 esac
34787
34788
34789ltmain="$ac_aux_dir/ltmain.sh"
34790
34791
34792 # We use sed instead of cat because bash on DJGPP gets confused if
34793 # if finds mixed CR/LF and LF-only lines. Since sed operates in
34794 # text mode, it properly converts lines to CR/LF. This bash problem
34795 # is reportedly fixed, but why not run on old versions too?
34796 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
34797 || (rm -f "$cfgfile"; exit 1)
34798
34799 case $xsi_shell in
34800 yes)
34801 cat << \_LT_EOF >> "$cfgfile"
34802
34803# func_dirname file append nondir_replacement
34804# Compute the dirname of FILE. If nonempty, add APPEND to the result,
34805# otherwise set result to NONDIR_REPLACEMENT.
34806func_dirname ()
34807{
34808 case ${1} in
34809 */*) func_dirname_result="${1%/*}${2}" ;;
34810 * ) func_dirname_result="${3}" ;;
34811 esac
34812}
34813
34814# func_basename file
34815func_basename ()
34816{
34817 func_basename_result="${1##*/}"
34818}
34819
34820# func_dirname_and_basename file append nondir_replacement
34821# perform func_basename and func_dirname in a single function
34822# call:
34823# dirname: Compute the dirname of FILE. If nonempty,
34824# add APPEND to the result, otherwise set result
34825# to NONDIR_REPLACEMENT.
34826# value returned in "$func_dirname_result"
34827# basename: Compute filename of FILE.
34828# value retuned in "$func_basename_result"
34829# Implementation must be kept synchronized with func_dirname
34830# and func_basename. For efficiency, we do not delegate to
34831# those functions but instead duplicate the functionality here.
34832func_dirname_and_basename ()
34833{
34834 case ${1} in
34835 */*) func_dirname_result="${1%/*}${2}" ;;
34836 * ) func_dirname_result="${3}" ;;
34837 esac
34838 func_basename_result="${1##*/}"
34839}
34840
34841# func_stripname prefix suffix name
34842# strip PREFIX and SUFFIX off of NAME.
34843# PREFIX and SUFFIX must not contain globbing or regex special
34844# characters, hashes, percent signs, but SUFFIX may contain a leading
34845# dot (in which case that matches only a dot).
34846func_stripname ()
34847{
34848 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
34849 # positional parameters, so assign one to ordinary parameter first.
34850 func_stripname_result=${3}
34851 func_stripname_result=${func_stripname_result#"${1}"}
34852 func_stripname_result=${func_stripname_result%"${2}"}
34853}
34854
34855# func_opt_split
34856func_opt_split ()
34857{
34858 func_opt_split_opt=${1%%=*}
34859 func_opt_split_arg=${1#*=}
34860}
34861
34862# func_lo2o object
34863func_lo2o ()
34864{
34865 case ${1} in
34866 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
34867 *) func_lo2o_result=${1} ;;
34868 esac
34869}
34870
34871# func_xform libobj-or-source
34872func_xform ()
34873{
34874 func_xform_result=${1%.*}.lo
34875}
34876
34877# func_arith arithmetic-term...
34878func_arith ()
34879{
34880 func_arith_result=$(( $* ))
34881}
34882
34883# func_len string
34884# STRING may not start with a hyphen.
34885func_len ()
34886{
34887 func_len_result=${#1}
34888}
34889
34890_LT_EOF
34891 ;;
34892 *) # Bourne compatible functions.
34893 cat << \_LT_EOF >> "$cfgfile"
34894
34895# func_dirname file append nondir_replacement
34896# Compute the dirname of FILE. If nonempty, add APPEND to the result,
34897# otherwise set result to NONDIR_REPLACEMENT.
34898func_dirname ()
34899{
34900 # Extract subdirectory from the argument.
cristyfd9dcd42010-08-08 18:07:02 +000034901 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000034902 if test "X$func_dirname_result" = "X${1}"; then
34903 func_dirname_result="${3}"
34904 else
34905 func_dirname_result="$func_dirname_result${2}"
34906 fi
34907}
34908
34909# func_basename file
34910func_basename ()
34911{
cristyfd9dcd42010-08-08 18:07:02 +000034912 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000034913}
34914
34915
34916# func_stripname prefix suffix name
34917# strip PREFIX and SUFFIX off of NAME.
34918# PREFIX and SUFFIX must not contain globbing or regex special
34919# characters, hashes, percent signs, but SUFFIX may contain a leading
34920# dot (in which case that matches only a dot).
34921# func_strip_suffix prefix name
34922func_stripname ()
34923{
34924 case ${2} in
cristyfd9dcd42010-08-08 18:07:02 +000034925 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
34926 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000034927 esac
34928}
34929
34930# sed scripts:
34931my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
34932my_sed_long_arg='1s/^-[^=]*=//'
34933
34934# func_opt_split
34935func_opt_split ()
34936{
cristyfd9dcd42010-08-08 18:07:02 +000034937 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
34938 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000034939}
34940
34941# func_lo2o object
34942func_lo2o ()
34943{
cristyfd9dcd42010-08-08 18:07:02 +000034944 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000034945}
34946
34947# func_xform libobj-or-source
34948func_xform ()
34949{
cristyfd9dcd42010-08-08 18:07:02 +000034950 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000034951}
34952
34953# func_arith arithmetic-term...
34954func_arith ()
34955{
34956 func_arith_result=`expr "$@"`
34957}
34958
34959# func_len string
34960# STRING may not start with a hyphen.
34961func_len ()
34962{
34963 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
34964}
34965
34966_LT_EOF
34967esac
34968
34969case $lt_shell_append in
34970 yes)
34971 cat << \_LT_EOF >> "$cfgfile"
34972
34973# func_append var value
34974# Append VALUE to the end of shell variable VAR.
34975func_append ()
34976{
34977 eval "$1+=\$2"
34978}
34979_LT_EOF
34980 ;;
34981 *)
34982 cat << \_LT_EOF >> "$cfgfile"
34983
34984# func_append var value
34985# Append VALUE to the end of shell variable VAR.
34986func_append ()
34987{
34988 eval "$1=\$$1\$2"
34989}
34990
34991_LT_EOF
34992 ;;
34993 esac
34994
34995
34996 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
34997 || (rm -f "$cfgfile"; exit 1)
34998
34999 mv -f "$cfgfile" "$ofile" ||
35000 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35001 chmod +x "$ofile"
35002
35003
35004 cat <<_LT_EOF >> "$ofile"
35005
35006# ### BEGIN LIBTOOL TAG CONFIG: CXX
35007
35008# The linker used to build libraries.
35009LD=$lt_LD_CXX
35010
cristyfd9dcd42010-08-08 18:07:02 +000035011# How to create reloadable object files.
35012reload_flag=$lt_reload_flag_CXX
35013reload_cmds=$lt_reload_cmds_CXX
35014
cristy3ed852e2009-09-05 21:47:34 +000035015# Commands used to build an old-style archive.
35016old_archive_cmds=$lt_old_archive_cmds_CXX
35017
35018# A language specific compiler.
35019CC=$lt_compiler_CXX
35020
35021# Is the compiler the GNU compiler?
35022with_gcc=$GCC_CXX
35023
35024# Compiler flag to turn off builtin functions.
35025no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35026
35027# How to pass a linker flag through the compiler.
35028wl=$lt_lt_prog_compiler_wl_CXX
35029
35030# Additional compiler flags for building library objects.
35031pic_flag=$lt_lt_prog_compiler_pic_CXX
35032
35033# Compiler flag to prevent dynamic linking.
35034link_static_flag=$lt_lt_prog_compiler_static_CXX
35035
35036# Does compiler simultaneously support -c and -o options?
35037compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35038
35039# Whether or not to add -lc for building shared libraries.
35040build_libtool_need_lc=$archive_cmds_need_lc_CXX
35041
35042# Whether or not to disallow shared libs when runtime libs are static.
35043allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35044
35045# Compiler flag to allow reflexive dlopens.
35046export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35047
35048# Compiler flag to generate shared objects directly from archives.
35049whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35050
35051# Whether the compiler copes with passing no objects directly.
35052compiler_needs_object=$lt_compiler_needs_object_CXX
35053
35054# Create an old-style archive from a shared archive.
35055old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35056
35057# Create a temporary old-style archive to link instead of a shared archive.
35058old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35059
35060# Commands used to build a shared archive.
35061archive_cmds=$lt_archive_cmds_CXX
35062archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35063
35064# Commands used to build a loadable module if different from building
35065# a shared archive.
35066module_cmds=$lt_module_cmds_CXX
35067module_expsym_cmds=$lt_module_expsym_cmds_CXX
35068
35069# Whether we are building with GNU ld or not.
35070with_gnu_ld=$lt_with_gnu_ld_CXX
35071
35072# Flag that allows shared libraries with undefined symbols to be built.
35073allow_undefined_flag=$lt_allow_undefined_flag_CXX
35074
35075# Flag that enforces no undefined symbols.
35076no_undefined_flag=$lt_no_undefined_flag_CXX
35077
35078# Flag to hardcode \$libdir into a binary during linking.
35079# This must work even if \$libdir does not exist
35080hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35081
35082# If ld is used when linking, flag to hardcode \$libdir into a binary
35083# during linking. This must work even if \$libdir does not exist.
35084hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35085
35086# Whether we need a single "-rpath" flag with a separated argument.
35087hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35088
35089# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35090# DIR into the resulting binary.
35091hardcode_direct=$hardcode_direct_CXX
35092
35093# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35094# DIR into the resulting binary and the resulting library dependency is
35095# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35096# library is relocated.
35097hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35098
35099# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35100# into the resulting binary.
35101hardcode_minus_L=$hardcode_minus_L_CXX
35102
35103# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35104# into the resulting binary.
35105hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35106
35107# Set to "yes" if building a shared library automatically hardcodes DIR
35108# into the library and all subsequent libraries and executables linked
35109# against it.
35110hardcode_automatic=$hardcode_automatic_CXX
35111
35112# Set to yes if linker adds runtime paths of dependent libraries
35113# to runtime path list.
35114inherit_rpath=$inherit_rpath_CXX
35115
35116# Whether libtool must link a program against all its dependency libraries.
35117link_all_deplibs=$link_all_deplibs_CXX
35118
35119# Fix the shell variable \$srcfile for the compiler.
35120fix_srcfile_path=$lt_fix_srcfile_path_CXX
35121
35122# Set to "yes" if exported symbols are required.
35123always_export_symbols=$always_export_symbols_CXX
35124
35125# The commands to list exported symbols.
35126export_symbols_cmds=$lt_export_symbols_cmds_CXX
35127
35128# Symbols that should not be listed in the preloaded symbols.
35129exclude_expsyms=$lt_exclude_expsyms_CXX
35130
35131# Symbols that must always be exported.
35132include_expsyms=$lt_include_expsyms_CXX
35133
35134# Commands necessary for linking programs (against libraries) with templates.
35135prelink_cmds=$lt_prelink_cmds_CXX
35136
35137# Specify filename containing input files.
35138file_list_spec=$lt_file_list_spec_CXX
35139
35140# How to hardcode a shared library path into an executable.
35141hardcode_action=$hardcode_action_CXX
35142
35143# The directories searched by this compiler when creating a shared library.
35144compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35145
35146# Dependencies to place before and after the objects being linked to
35147# create a shared library.
35148predep_objects=$lt_predep_objects_CXX
35149postdep_objects=$lt_postdep_objects_CXX
35150predeps=$lt_predeps_CXX
35151postdeps=$lt_postdeps_CXX
35152
35153# The library search path used internally by the compiler when linking
35154# a shared library.
35155compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35156
35157# ### END LIBTOOL TAG CONFIG: CXX
35158_LT_EOF
35159
35160 ;;
35161 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35162 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35163 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35164 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35165 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35166 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35167
35168 esac
35169done # for ac_tag
35170
35171
cristy8b350f62009-11-15 23:12:43 +000035172as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000035173_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000035174ac_clean_files=$ac_clean_files_save
35175
35176test $ac_write_fail = 0 ||
cristyfd9dcd42010-08-08 18:07:02 +000035177 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035178
35179
35180# configure is writing to config.log, and then calls config.status.
35181# config.status does its own redirection, appending to config.log.
35182# Unfortunately, on DOS this fails, as config.log is still kept open
35183# by configure, so config.status won't be able to write to it; its
35184# output is simply discarded. So we exec the FD to /dev/null,
35185# effectively closing config.log, so it can be properly (re)opened and
35186# appended to by config.status. When coming back to configure, we
35187# need to make the FD available again.
35188if test "$no_create" != yes; then
35189 ac_cs_success=:
35190 ac_config_status_args=
35191 test "$silent" = yes &&
35192 ac_config_status_args="$ac_config_status_args --quiet"
35193 exec 5>/dev/null
35194 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35195 exec 5>>config.log
35196 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35197 # would make configure fail if this is the last instruction.
cristyfd9dcd42010-08-08 18:07:02 +000035198 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000035199fi
35200if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000035201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000035202$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35203fi
35204
35205
35206rm -f magick-version
35207
cristy430a7312010-01-21 20:44:04 +000035208result_dejavu_font_dir='none'
35209if test "${dejavu_font_dir}x" != 'x'; then
35210 result_dejavu_font_dir=$dejavu_font_dir
35211fi
35212
cristy3ed852e2009-09-05 21:47:34 +000035213result_ghostscript_font_dir='none'
35214if test "${ghostscript_font_dir}x" != 'x'; then
35215 result_ghostscript_font_dir=$ghostscript_font_dir
35216fi
35217
35218result_windows_font_dir='none'
35219if test "${windows_font_dir}x" != 'x'; then
35220 result_windows_font_dir=${windows_font_dir}
35221fi
35222
cristy8b350f62009-11-15 23:12:43 +000035223{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000035224ImageMagick is configured as follows. Please verify that this configuration
35225matches your expectations.
35226
35227Host system type: $host
35228Build system type: $build
35229
35230 Option Value
35231-------------------------------------------------------------------------------
35232Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35233Static libraries --enable-static=$enable_static $libtool_build_static_libs
35234Module support --with-modules=$with_modules $with_modules
35235GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35236Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35237High Dynamic Range Imagery
35238 --enable-hdri=$enable_hdri $enable_hdri
35239
35240Delegate Configuration:
35241BZLIB --with-bzlib=$with_bzlib $have_bzlib
35242Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035243Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035244DJVU --with-djvu=$with_djvu $have_djvu
35245DPS --with-dps=$with_dps $have_dps
35246FFTW --with-fftw=$with_fftw $have_fftw
35247FlashPIX --with-fpx=$with_fpx $have_fpx
35248FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35249FreeType --with-freetype=$with_freetype $have_freetype
35250GhostPCL None $PCLDelegate ($PCLVersion)
35251GhostXPS None $XPSDelegate ($XPSVersion)
35252Ghostscript None $PSDelegate ($GSVersion)
35253Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35254Ghostscript lib --with-gslib=$with_gslib $have_gslib
35255Graphviz --with-gvc=$with_gvc $have_gvc
35256JBIG --with-jbig=$with_jbig $have_jbig
35257JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35258JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035259LCMS v1 --with-lcms=$with_lcms $have_lcms
35260LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035261LQR --with-lqr=$with_lqr $have_lqr
35262Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35263OpenEXR --with-openexr=$with_openexr $have_openexr
35264PERL --with-perl=$with_perl $have_perl
35265PNG --with-png=$with_png $have_png
35266RSVG --with-rsvg=$with_rsvg $have_rsvg
35267TIFF --with-tiff=$with_tiff $have_tiff
35268Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35269WMF --with-wmf=$with_wmf $have_wmf
35270X11 --with-x=$with_x $have_x
35271XML --with-xml=$with_xml $have_xml
35272ZLIB --with-zlib=$with_zlib $have_zlib
35273
35274X11 Configuration:
35275 X_CFLAGS = $X_CFLAGS
35276 X_PRE_LIBS = $X_PRE_LIBS
35277 X_LIBS = $X_LIBS
35278 X_EXTRA_LIBS = $X_EXTRA_LIBS
35279
35280Options used to compile and link:
35281 PREFIX = $PREFIX_DIR
35282 EXEC-PREFIX = $EXEC_PREFIX_DIR
35283 VERSION = $PACKAGE_VERSION
35284 CC = $CC
35285 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035286 CPPFLAGS = $MAGICK_CPPFLAGS
35287 PCFLAGS = $MAGICK_PCFLAGS
35288 DEFS = $DEFS
35289 LDFLAGS = $LDFLAGS
35290 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35291 LIBS = $MAGICK_LIBS
35292 CXX = $CXX
35293 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000035294 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000035295" >&5
35296$as_echo "
35297ImageMagick is configured as follows. Please verify that this configuration
35298matches your expectations.
35299
35300Host system type: $host
35301Build system type: $build
35302
35303 Option Value
35304-------------------------------------------------------------------------------
35305Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35306Static libraries --enable-static=$enable_static $libtool_build_static_libs
35307Module support --with-modules=$with_modules $with_modules
35308GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35309Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35310High Dynamic Range Imagery
35311 --enable-hdri=$enable_hdri $enable_hdri
35312
35313Delegate Configuration:
35314BZLIB --with-bzlib=$with_bzlib $have_bzlib
35315Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035316Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035317DJVU --with-djvu=$with_djvu $have_djvu
35318DPS --with-dps=$with_dps $have_dps
35319FFTW --with-fftw=$with_fftw $have_fftw
35320FlashPIX --with-fpx=$with_fpx $have_fpx
35321FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35322FreeType --with-freetype=$with_freetype $have_freetype
35323GhostPCL None $PCLDelegate ($PCLVersion)
35324GhostXPS None $XPSDelegate ($XPSVersion)
35325Ghostscript None $PSDelegate ($GSVersion)
35326Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35327Ghostscript lib --with-gslib=$with_gslib $have_gslib
35328Graphviz --with-gvc=$with_gvc $have_gvc
35329JBIG --with-jbig=$with_jbig $have_jbig
35330JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35331JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035332LCMS v1 --with-lcms=$with_lcms $have_lcms
35333LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035334LQR --with-lqr=$with_lqr $have_lqr
35335Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35336OpenEXR --with-openexr=$with_openexr $have_openexr
35337PERL --with-perl=$with_perl $have_perl
35338PNG --with-png=$with_png $have_png
35339RSVG --with-rsvg=$with_rsvg $have_rsvg
35340TIFF --with-tiff=$with_tiff $have_tiff
35341Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35342WMF --with-wmf=$with_wmf $have_wmf
35343X11 --with-x=$with_x $have_x
35344XML --with-xml=$with_xml $have_xml
35345ZLIB --with-zlib=$with_zlib $have_zlib
35346
35347X11 Configuration:
35348 X_CFLAGS = $X_CFLAGS
35349 X_PRE_LIBS = $X_PRE_LIBS
35350 X_LIBS = $X_LIBS
35351 X_EXTRA_LIBS = $X_EXTRA_LIBS
35352
35353Options used to compile and link:
35354 PREFIX = $PREFIX_DIR
35355 EXEC-PREFIX = $EXEC_PREFIX_DIR
35356 VERSION = $PACKAGE_VERSION
35357 CC = $CC
35358 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035359 CPPFLAGS = $MAGICK_CPPFLAGS
35360 PCFLAGS = $MAGICK_PCFLAGS
35361 DEFS = $DEFS
35362 LDFLAGS = $LDFLAGS
35363 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35364 LIBS = $MAGICK_LIBS
35365 CXX = $CXX
35366 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000035367 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000035368" >&6; }