blob: f8030e6850e7fe4feabaa27d00f5b5b67e50223f [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristyfd9dcd42010-08-08 18:07:02 +00003# Generated by GNU Autoconf 2.66 for ImageMagick 6.6.3.
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'
cristyfbb4a972010-06-30 17:42:22 +0000569PACKAGE_VERSION='6.6.3'
570PACKAGE_STRING='ImageMagick 6.6.3'
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
cristyfbb4a972010-06-30 17:42:22 +00001693\`configure' configures ImageMagick 6.6.3 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
cristyfbb4a972010-06-30 17:42:22 +00001768 short | recursive ) echo "Configuration of ImageMagick 6.6.3:";;
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
cristyfbb4a972010-06-30 17:42:22 +00001973ImageMagick configure 6.6.3
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
cristyfbb4a972010-06-30 17:42:22 +00002889It was created by ImageMagick $as_me 6.6.3, 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$ac_includes_default
7651
7652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7653$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7654set x ${MAKE-make}
7655ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyfd9dcd42010-08-08 18:07:02 +00007656if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
cristya0b81c32010-01-22 02:54:33 +00007657 $as_echo_n "(cached) " >&6
7658else
7659 cat >conftest.make <<\_ACEOF
7660SHELL = /bin/sh
7661all:
7662 @echo '@@@%%%=$(MAKE)=@@@%%%'
7663_ACEOF
cristyfd9dcd42010-08-08 18:07:02 +00007664# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007665case `${MAKE-make} -f conftest.make 2>/dev/null` in
7666 *@@@%%%=?*=@@@%%%*)
7667 eval ac_cv_prog_make_${ac_make}_set=yes;;
7668 *)
7669 eval ac_cv_prog_make_${ac_make}_set=no;;
7670esac
7671rm -f conftest.make
7672fi
7673if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7675$as_echo "yes" >&6; }
7676 SET_MAKE=
7677else
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679$as_echo "no" >&6; }
7680 SET_MAKE="MAKE=${MAKE-make}"
7681fi
7682
cristy8b350f62009-11-15 23:12:43 +00007683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007684$as_echo_n "checking whether ln -s works... " >&6; }
7685LN_S=$as_ln_s
7686if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007688$as_echo "yes" >&6; }
7689else
cristy8b350f62009-11-15 23:12:43 +00007690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007691$as_echo "no, using $LN_S" >&6; }
7692fi
7693
cristy8b350f62009-11-15 23:12:43 +00007694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00007695$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7696
7697# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00007698if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007699 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007701$as_echo "yes" >&6; }
7702
cristy8b350f62009-11-15 23:12:43 +00007703$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007704
7705 LIBS="$LIBS -ldmalloc"
7706 LDFLAGS="$LDFLAGS -g"
7707else
cristy8b350f62009-11-15 23:12:43 +00007708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007709$as_echo "no" >&6; }
7710fi
7711else
cristy8b350f62009-11-15 23:12:43 +00007712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007713$as_echo "no" >&6; }
7714fi
7715
7716
7717
cristy0d3a6382010-04-26 00:45:55 +00007718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7719$as_echo_n "checking for __attribute__... " >&6; }
7720if test "${ax_cv___attribute__+set}" = set; then :
7721 $as_echo_n "(cached) " >&6
7722else
7723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724/* end confdefs.h. */
7725#include <stdlib.h>
7726 static void foo(void) __attribute__ ((unused));
7727 static void
7728 foo(void) {
7729 exit(1);
7730 }
7731
7732int
7733main ()
7734{
7735
7736 ;
7737 return 0;
7738}
7739_ACEOF
7740if ac_fn_c_try_compile "$LINENO"; then :
7741 ax_cv___attribute__=yes
7742else
7743 ax_cv___attribute__=no
7744
7745fi
7746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7747
7748fi
7749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7750$as_echo "$ax_cv___attribute__" >&6; }
7751 if test "$ax_cv___attribute__" = "yes"; then
7752
7753$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7754
7755 fi
7756
7757
cristy3ed852e2009-09-05 21:47:34 +00007758
7759if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7760 if test -n "$ac_tool_prefix"; then
7761 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7762set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007764$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007765if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007766 $as_echo_n "(cached) " >&6
7767else
7768 case $PKG_CONFIG in
7769 [\\/]* | ?:[\\/]*)
7770 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7771 ;;
7772 *)
7773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774for as_dir in $PATH
7775do
7776 IFS=$as_save_IFS
7777 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007778 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7780 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007782 break 2
7783 fi
7784done
cristy8b350f62009-11-15 23:12:43 +00007785 done
cristy3ed852e2009-09-05 21:47:34 +00007786IFS=$as_save_IFS
7787
7788 ;;
7789esac
7790fi
7791PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7792if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007794$as_echo "$PKG_CONFIG" >&6; }
7795else
cristy8b350f62009-11-15 23:12:43 +00007796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007797$as_echo "no" >&6; }
7798fi
7799
7800
7801fi
7802if test -z "$ac_cv_path_PKG_CONFIG"; then
7803 ac_pt_PKG_CONFIG=$PKG_CONFIG
7804 # Extract the first word of "pkg-config", so it can be a program name with args.
7805set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007807$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007808if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007809 $as_echo_n "(cached) " >&6
7810else
7811 case $ac_pt_PKG_CONFIG in
7812 [\\/]* | ?:[\\/]*)
7813 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7814 ;;
7815 *)
7816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817for as_dir in $PATH
7818do
7819 IFS=$as_save_IFS
7820 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007821 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7823 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007825 break 2
7826 fi
7827done
cristy8b350f62009-11-15 23:12:43 +00007828 done
cristy3ed852e2009-09-05 21:47:34 +00007829IFS=$as_save_IFS
7830
7831 ;;
7832esac
7833fi
7834ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7835if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007837$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7838else
cristy8b350f62009-11-15 23:12:43 +00007839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007840$as_echo "no" >&6; }
7841fi
7842
7843 if test "x$ac_pt_PKG_CONFIG" = x; then
7844 PKG_CONFIG=""
7845 else
7846 case $cross_compiling:$ac_tool_warned in
7847yes:)
cristy8b350f62009-11-15 23:12:43 +00007848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00007849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7850ac_tool_warned=yes ;;
7851esac
7852 PKG_CONFIG=$ac_pt_PKG_CONFIG
7853 fi
7854else
7855 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7856fi
7857
7858fi
7859if test -n "$PKG_CONFIG"; then
7860 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00007861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00007862$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7863 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00007864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007865$as_echo "yes" >&6; }
7866 else
cristy8b350f62009-11-15 23:12:43 +00007867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007868$as_echo "no" >&6; }
7869 PKG_CONFIG=""
7870 fi
7871
7872fi
7873
7874#
cristy3ed852e2009-09-05 21:47:34 +00007875# Enable run-time checking.
7876#
7877# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007878if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007879 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7880else
7881 enable_bounds_checking='no'
7882fi
7883
7884
7885if test "$enable_bounds_checking" = yes; then
7886
cristy8b350f62009-11-15 23:12:43 +00007887$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007888
7889fi
7890
7891#
7892# Tests for Windows
7893#
7894
7895
cristy0d3a6382010-04-26 00:45:55 +00007896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7897$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7898if test "${ax_cv_c_compiler_ms+set}" = set; then :
7899 $as_echo_n "(cached) " >&6
7900else
7901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902/* end confdefs.h. */
7903
7904int
7905main ()
7906{
7907#ifndef _MSC_VER
7908 choke me
7909#endif
7910
7911 ;
7912 return 0;
7913}
7914_ACEOF
7915if ac_fn_c_try_compile "$LINENO"; then :
7916 ax_compiler_ms=yes
7917else
7918 ax_compiler_ms=no
7919fi
7920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7921ax_cv_c_compiler_ms=$ax_compiler_ms
7922
7923fi
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7925$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00007926
7927GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007928native_win32_build='no'
7929cygwin_build='no'
7930case "${host_os}" in
7931 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007932 cygwin_build='yes'
7933 GDI32_LIBS='-lgdi32'
7934 ;;
7935 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007936 native_win32_build='yes'
7937 GDI32_LIBS='-lgdi32'
7938 ;;
7939esac
7940if test "${GDI32_LIBS}x" != 'x'; then
7941
cristy8b350f62009-11-15 23:12:43 +00007942$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007943
7944fi
7945
7946 if test "${GDI32_LIBS}x" != 'x' ; then
7947 WINGDI32_DELEGATE_TRUE=
7948 WINGDI32_DELEGATE_FALSE='#'
7949else
7950 WINGDI32_DELEGATE_TRUE='#'
7951 WINGDI32_DELEGATE_FALSE=
7952fi
7953
7954 if test "${native_win32_build}" = 'yes' ; then
7955 WIN32_NATIVE_BUILD_TRUE=
7956 WIN32_NATIVE_BUILD_FALSE='#'
7957else
7958 WIN32_NATIVE_BUILD_TRUE='#'
7959 WIN32_NATIVE_BUILD_FALSE=
7960fi
7961
7962 if test "${cygwin_build}" = 'yes' ; then
7963 CYGWIN_BUILD_TRUE=
7964 CYGWIN_BUILD_FALSE='#'
7965else
7966 CYGWIN_BUILD_TRUE='#'
7967 CYGWIN_BUILD_FALSE=
7968fi
7969
7970 if test "x${CC}" = 'xcl.exe' ; then
7971 USING_CL_TRUE=
7972 USING_CL_FALSE='#'
7973else
7974 USING_CL_TRUE='#'
7975 USING_CL_FALSE=
7976fi
7977
7978
7979WinPathScript="${srcdirfull}/winpath.sh"
7980
7981
7982#
7983# Compiler flags tweaks
7984#
7985if test "${GCC}" != "yes"; then
7986 case "${host}" in
7987 *-*-hpux* )
7988 # aCC: HP ANSI C++ B3910B A.03.34
7989 CFLAGS="${CFLAGS} -Wp,-H30000"
7990 if test -n "${CXXFLAGS}"; then
7991 CXXFLAGS='-AA'
7992 else
7993 CXXFLAGS="${CXXFLAGS} -AA"
7994 fi
7995 ;;
7996 *-dec-osf5.* )
7997 # Compaq alphaev68-dec-osf5.1 compiler
7998 if test -n "${CXXFLAGS}"; then
7999 CXXFLAGS='-std strict_ansi -noimplicit_include'
8000 else
8001 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8002 fi
8003 esac
8004fi
8005
8006# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008008$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008009if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008010 $as_echo_n "(cached) " >&6
8011else
8012
8013im_cv_ld_lazyload='none'
8014case "${host}" in
8015 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8016 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8017 im_cv_ld_lazyload='-Wl,-zlazyload'
8018 fi
8019 ;;
8020esac
8021
8022fi
cristy8b350f62009-11-15 23:12:43 +00008023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008024$as_echo "$im_cv_ld_lazyload" >&6; }
8025if test "${im_cv_ld_lazyload}" != 'none' ; then
8026 if test -z "${LDFLAGS}" ; then
8027 LDFLAGS="${im_cv_ld_lazyload}"
8028 else
8029 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8030 fi
8031fi
8032
8033case "$host" in
8034*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008035 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008036if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008037 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8038else
8039 build_osxuniversal=no
8040fi
8041
8042
8043 if test "${build_osxuniversal}" != no ; then
8044 if test "$enable_dependency_tracking" != no ; then
cristyfd9dcd42010-08-08 18:07:02 +00008045 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008046Please re-run configure with these options:
8047 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008048 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008049 fi
8050 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8051 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8052 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8053 fi
8054 ;;
8055esac
8056
8057# Enable support for threads
8058
8059# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008060if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008061 withval=$with_threads; with_threads=$withval
8062else
8063 with_threads='yes'
8064fi
8065
8066
8067have_threads=no
8068if test "$with_threads" != 'no'; then
8069
8070
8071
8072ac_ext=c
8073ac_cpp='$CPP $CPPFLAGS'
8074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8076ac_compiler_gnu=$ac_cv_c_compiler_gnu
8077
cristy964cb7f2010-04-25 23:18:00 +00008078ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008079
8080# We used to check for pthread.h first, but this fails if pthread.h
8081# requires special compiler flags (e.g. on True64 or Sequent).
8082# It gets checked for in the link test anyway.
8083
8084# First of all, check if the user has set any of the PTHREAD_LIBS,
8085# etcetera environment variables, and if threads linking works using
8086# them:
8087if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8088 save_CFLAGS="$CFLAGS"
8089 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8090 save_LIBS="$LIBS"
8091 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00008092 { $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 +00008093$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008095/* end confdefs.h. */
8096
8097/* Override any GCC internal prototype to avoid an error.
8098 Use char because int might match the return type of a GCC
8099 builtin and then its argument prototype would still apply. */
8100#ifdef __cplusplus
8101extern "C"
8102#endif
8103char pthread_join ();
8104int
8105main ()
8106{
8107return pthread_join ();
8108 ;
8109 return 0;
8110}
8111_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008112if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008113 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008114fi
cristy8b350f62009-11-15 23:12:43 +00008115rm -f core conftest.err conftest.$ac_objext \
8116 conftest$ac_exeext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +00008117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8118$as_echo "$ax_pthread_ok" >&6; }
8119 if test x"$ax_pthread_ok" = xno; then
cristy3ed852e2009-09-05 21:47:34 +00008120 PTHREAD_LIBS=""
8121 PTHREAD_CFLAGS=""
8122 fi
8123 LIBS="$save_LIBS"
8124 CFLAGS="$save_CFLAGS"
8125fi
8126
8127# We must check for the threads library under a number of different
8128# names; the ordering is very important because some systems
8129# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8130# libraries is broken (non-POSIX).
8131
8132# Create a list of thread flags to try. Items starting with a "-" are
8133# C compiler flags, and other items are library names, except for "none"
8134# which indicates that we try without any flags at all, and "pthread-config"
8135# which is a program returning the flags for the Pth emulation library.
8136
cristy964cb7f2010-04-25 23:18:00 +00008137ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy3ed852e2009-09-05 21:47:34 +00008138
8139# The ordering *is* (sometimes) important. Some notes on the
8140# individual items follow:
8141
8142# pthreads: AIX (must check this before -lpthread)
8143# none: in case threads are in libc; should be tried before -Kthread and
8144# other compiler flags to prevent continual compiler warnings
8145# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8146# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8147# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8148# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8149# -pthreads: Solaris/gcc
8150# -mthreads: Mingw32/gcc, Lynx/gcc
8151# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8152# doesn't hurt to check since this sometimes defines pthreads too;
8153# also defines -D_REENTRANT)
8154# ... -mt is also the pthreads flag for HP/aCC
8155# pthread: Linux, etcetera
8156# --thread-safe: KAI C++
8157# pthread-config: use pthread-config program (for GNU Pth library)
8158
8159case "${host_cpu}-${host_os}" in
8160 *solaris*)
8161
8162 # On Solaris (at least, for some versions), libc contains stubbed
8163 # (non-functional) versions of the pthreads routines, so link-based
8164 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8165 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8166 # a function called by this macro, so we could check for that, but
8167 # who knows whether they'll stub that too in a future libc.) So,
8168 # we'll just look for -pthreads and -lpthread first:
8169
cristy964cb7f2010-04-25 23:18:00 +00008170 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
cristy3ed852e2009-09-05 21:47:34 +00008171 ;;
cristy964cb7f2010-04-25 23:18:00 +00008172
8173 *-darwin*)
8174 acx_pthread_flags="-pthread $acx_pthread_flags"
8175 ;;
cristy3ed852e2009-09-05 21:47:34 +00008176esac
8177
cristy964cb7f2010-04-25 23:18:00 +00008178if test x"$ax_pthread_ok" = xno; then
8179for flag in $ax_pthread_flags; do
cristy3ed852e2009-09-05 21:47:34 +00008180
8181 case $flag in
8182 none)
cristy8b350f62009-11-15 23:12:43 +00008183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00008184$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8185 ;;
8186
8187 -*)
cristy8b350f62009-11-15 23:12:43 +00008188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008189$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8190 PTHREAD_CFLAGS="$flag"
8191 ;;
8192
8193 pthread-config)
8194 # Extract the first word of "pthread-config", so it can be a program name with args.
8195set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008197$as_echo_n "checking for $ac_word... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +00008198if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008199 $as_echo_n "(cached) " >&6
8200else
cristy964cb7f2010-04-25 23:18:00 +00008201 if test -n "$ax_pthread_config"; then
8202 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
cristy3ed852e2009-09-05 21:47:34 +00008203else
8204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205for as_dir in $PATH
8206do
8207 IFS=$as_save_IFS
8208 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008209 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008210 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 +00008211 ac_cv_prog_ax_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00008212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008213 break 2
8214 fi
8215done
cristy8b350f62009-11-15 23:12:43 +00008216 done
cristy3ed852e2009-09-05 21:47:34 +00008217IFS=$as_save_IFS
8218
cristy964cb7f2010-04-25 23:18:00 +00008219 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
cristy3ed852e2009-09-05 21:47:34 +00008220fi
8221fi
cristy964cb7f2010-04-25 23:18:00 +00008222ax_pthread_config=$ac_cv_prog_ax_pthread_config
8223if test -n "$ax_pthread_config"; then
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8225$as_echo "$ax_pthread_config" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008226else
cristy8b350f62009-11-15 23:12:43 +00008227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008228$as_echo "no" >&6; }
8229fi
8230
8231
cristy964cb7f2010-04-25 23:18:00 +00008232 if test x"$ax_pthread_config" = xno; then continue; fi
cristy3ed852e2009-09-05 21:47:34 +00008233 PTHREAD_CFLAGS="`pthread-config --cflags`"
8234 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8235 ;;
8236
8237 *)
cristy8b350f62009-11-15 23:12:43 +00008238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008239$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8240 PTHREAD_LIBS="-l$flag"
8241 ;;
8242 esac
8243
8244 save_LIBS="$LIBS"
8245 save_CFLAGS="$CFLAGS"
8246 LIBS="$PTHREAD_LIBS $LIBS"
8247 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8248
8249 # Check for various functions. We must include pthread.h,
8250 # since some functions may be macros. (On the Sequent, we
8251 # need a special flag -Kthread to make this header compile.)
8252 # We check for pthread_join because it is in -lpthread on IRIX
8253 # while pthread_create is in libc. We check for pthread_attr_init
8254 # due to DEC craziness with -lpthreads. We check for
8255 # pthread_cleanup_push because it is one of the few pthread
8256 # functions on Solaris that doesn't have a non-functional libc stub.
8257 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00008258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008259/* end confdefs.h. */
8260#include <pthread.h>
cristy964cb7f2010-04-25 23:18:00 +00008261 static void routine(void* a) {a=0;}
8262 static void* start_routine(void* a) {return a;}
cristy3ed852e2009-09-05 21:47:34 +00008263int
8264main ()
8265{
cristy964cb7f2010-04-25 23:18:00 +00008266pthread_t th; pthread_attr_t attr;
8267 pthread_join(th, 0);
8268 pthread_attr_init(&attr);
8269 pthread_cleanup_push(routine, 0);
8270 pthread_create(&th,0,start_routine,0);
8271 pthread_cleanup_pop(0);
cristy3ed852e2009-09-05 21:47:34 +00008272 ;
8273 return 0;
8274}
8275_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008276if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008277 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008278fi
cristy8b350f62009-11-15 23:12:43 +00008279rm -f core conftest.err conftest.$ac_objext \
8280 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008281
8282 LIBS="$save_LIBS"
8283 CFLAGS="$save_CFLAGS"
8284
cristy964cb7f2010-04-25 23:18:00 +00008285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8286$as_echo "$ax_pthread_ok" >&6; }
8287 if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008288 break;
8289 fi
8290
8291 PTHREAD_LIBS=""
8292 PTHREAD_CFLAGS=""
8293done
8294fi
8295
8296# Various other checks:
cristy964cb7f2010-04-25 23:18:00 +00008297if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008298 save_LIBS="$LIBS"
8299 LIBS="$PTHREAD_LIBS $LIBS"
8300 save_CFLAGS="$CFLAGS"
8301 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8302
8303 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00008304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00008305$as_echo_n "checking for joinable pthread attribute... " >&6; }
8306 attr_name=unknown
8307 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00008308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008309/* end confdefs.h. */
8310#include <pthread.h>
8311int
8312main ()
8313{
8314int attr=$attr; return attr;
8315 ;
8316 return 0;
8317}
8318_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008319if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008320 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00008321fi
cristy8b350f62009-11-15 23:12:43 +00008322rm -f core conftest.err conftest.$ac_objext \
8323 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008324 done
cristy8b350f62009-11-15 23:12:43 +00008325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00008326$as_echo "$attr_name" >&6; }
8327 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8328
8329cat >>confdefs.h <<_ACEOF
8330#define PTHREAD_CREATE_JOINABLE $attr_name
8331_ACEOF
8332
8333 fi
8334
cristy8b350f62009-11-15 23:12:43 +00008335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00008336$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8337 flag=no
8338 case "${host_cpu}-${host_os}" in
8339 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8340 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8341 esac
cristy8b350f62009-11-15 23:12:43 +00008342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00008343$as_echo "${flag}" >&6; }
8344 if test "x$flag" != xno; then
8345 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8346 fi
8347
8348 LIBS="$save_LIBS"
8349 CFLAGS="$save_CFLAGS"
8350
8351 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00008352 if test x"$GCC" != xyes; then
8353 for ac_prog in xlc_r cc_r
8354do
8355 # Extract the first word of "$ac_prog", so it can be a program name with args.
8356set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008358$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008359if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008360 $as_echo_n "(cached) " >&6
8361else
8362 if test -n "$PTHREAD_CC"; then
8363 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8364else
8365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366for as_dir in $PATH
8367do
8368 IFS=$as_save_IFS
8369 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008370 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008371 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 +00008372 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008374 break 2
8375 fi
8376done
cristy8b350f62009-11-15 23:12:43 +00008377 done
cristy3ed852e2009-09-05 21:47:34 +00008378IFS=$as_save_IFS
8379
cristy3ed852e2009-09-05 21:47:34 +00008380fi
8381fi
8382PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8383if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008385$as_echo "$PTHREAD_CC" >&6; }
8386else
cristy8b350f62009-11-15 23:12:43 +00008387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008388$as_echo "no" >&6; }
8389fi
8390
cristy736173a2009-09-20 21:18:22 +00008391
8392 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00008393done
cristy736173a2009-09-20 21:18:22 +00008394test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00008395
cristy736173a2009-09-20 21:18:22 +00008396 else
8397 PTHREAD_CC=$CC
8398 fi
cristy3ed852e2009-09-05 21:47:34 +00008399else
cristy736173a2009-09-20 21:18:22 +00008400 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00008401fi
8402
cristy3ed852e2009-09-05 21:47:34 +00008403
8404
8405
8406
8407# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
cristy964cb7f2010-04-25 23:18:00 +00008408if test x"$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008409
cristy8b350f62009-11-15 23:12:43 +00008410$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008411
8412 :
8413else
cristy964cb7f2010-04-25 23:18:00 +00008414 ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008415
8416fi
8417ac_ext=c
8418ac_cpp='$CPP $CPPFLAGS'
8419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8421ac_compiler_gnu=$ac_cv_c_compiler_gnu
8422
8423
cristy964cb7f2010-04-25 23:18:00 +00008424 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008425 have_threads=yes
8426 DEF_THREAD="$PTHREAD_CFLAGS"
8427 CFLAGS="$CFLAGS $DEF_THREAD"
8428 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8429 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
cristy3ed852e2009-09-05 21:47:34 +00008431$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8432 CC="$PTHREAD_CC"
8433 fi
8434 fi
8435fi
8436
8437# Enable support for OpenMP
8438if test "$have_threads" != 'yes'; then
8439 ac_cv_prog_c_openmp=unsupported
8440fi
8441
8442 OPENMP_CFLAGS=
8443 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008444if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008445 enableval=$enable_openmp;
8446fi
8447
8448 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008450$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008451if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008452 $as_echo_n "(cached) " >&6
8453else
cristy8b350f62009-11-15 23:12:43 +00008454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008456
8457#ifndef _OPENMP
8458 choke me
8459#endif
8460#include <omp.h>
8461int main () { return omp_get_num_threads (); }
8462
8463_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008464if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008465 ac_cv_prog_c_openmp='none needed'
8466else
cristy8b350f62009-11-15 23:12:43 +00008467 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008468 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8469 ac_save_CFLAGS=$CFLAGS
8470 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008473
8474#ifndef _OPENMP
8475 choke me
8476#endif
8477#include <omp.h>
8478int main () { return omp_get_num_threads (); }
8479
8480_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008481if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008482 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008483fi
cristy8b350f62009-11-15 23:12:43 +00008484rm -f core conftest.err conftest.$ac_objext \
8485 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008486 CFLAGS=$ac_save_CFLAGS
8487 if test "$ac_cv_prog_c_openmp" != unsupported; then
8488 break
8489 fi
8490 done
8491fi
cristy8b350f62009-11-15 23:12:43 +00008492rm -f core conftest.err conftest.$ac_objext \
8493 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008494fi
cristy8b350f62009-11-15 23:12:43 +00008495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008496$as_echo "$ac_cv_prog_c_openmp" >&6; }
8497 case $ac_cv_prog_c_openmp in #(
8498 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008499 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008500 *)
cristy8b350f62009-11-15 23:12:43 +00008501 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008502 esac
8503 fi
8504
8505
8506CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8507MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8508
cristyfd9dcd42010-08-08 18:07:02 +00008509case $ac_cv_prog_c_openmp in #(
8510 "none needed" | unsupported)
8511 ;; #(
8512 *)
8513 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8514esac
cristy3ed852e2009-09-05 21:47:34 +00008515
cristy736173a2009-09-20 21:18:22 +00008516# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00008517
cristy964cb7f2010-04-25 23:18:00 +00008518
8519
8520ac_ext=c
8521ac_cpp='$CPP $CPPFLAGS'
8522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8524ac_compiler_gnu=$ac_cv_c_compiler_gnu
8525
8526ax_pthread_ok=no
8527
8528# We used to check for pthread.h first, but this fails if pthread.h
8529# requires special compiler flags (e.g. on True64 or Sequent).
8530# It gets checked for in the link test anyway.
8531
8532# First of all, check if the user has set any of the PTHREAD_LIBS,
8533# etcetera environment variables, and if threads linking works using
8534# them:
8535if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8536 save_CFLAGS="$CFLAGS"
8537 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8538 save_LIBS="$LIBS"
8539 LIBS="$PTHREAD_LIBS $LIBS"
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8541$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8543/* end confdefs.h. */
8544
8545/* Override any GCC internal prototype to avoid an error.
8546 Use char because int might match the return type of a GCC
8547 builtin and then its argument prototype would still apply. */
8548#ifdef __cplusplus
8549extern "C"
8550#endif
8551char pthread_join ();
8552int
8553main ()
8554{
8555return pthread_join ();
8556 ;
8557 return 0;
8558}
8559_ACEOF
8560if ac_fn_c_try_link "$LINENO"; then :
8561 ax_pthread_ok=yes
8562fi
8563rm -f core conftest.err conftest.$ac_objext \
8564 conftest$ac_exeext conftest.$ac_ext
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8566$as_echo "$ax_pthread_ok" >&6; }
8567 if test x"$ax_pthread_ok" = xno; then
8568 PTHREAD_LIBS=""
8569 PTHREAD_CFLAGS=""
8570 fi
8571 LIBS="$save_LIBS"
8572 CFLAGS="$save_CFLAGS"
8573fi
8574
8575# We must check for the threads library under a number of different
8576# names; the ordering is very important because some systems
8577# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8578# libraries is broken (non-POSIX).
8579
8580# Create a list of thread flags to try. Items starting with a "-" are
8581# C compiler flags, and other items are library names, except for "none"
8582# which indicates that we try without any flags at all, and "pthread-config"
8583# which is a program returning the flags for the Pth emulation library.
8584
8585ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8586
8587# The ordering *is* (sometimes) important. Some notes on the
8588# individual items follow:
8589
8590# pthreads: AIX (must check this before -lpthread)
8591# none: in case threads are in libc; should be tried before -Kthread and
8592# other compiler flags to prevent continual compiler warnings
8593# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8594# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8595# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8596# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8597# -pthreads: Solaris/gcc
8598# -mthreads: Mingw32/gcc, Lynx/gcc
8599# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8600# doesn't hurt to check since this sometimes defines pthreads too;
8601# also defines -D_REENTRANT)
8602# ... -mt is also the pthreads flag for HP/aCC
8603# pthread: Linux, etcetera
8604# --thread-safe: KAI C++
8605# pthread-config: use pthread-config program (for GNU Pth library)
8606
8607case "${host_cpu}-${host_os}" in
8608 *solaris*)
8609
8610 # On Solaris (at least, for some versions), libc contains stubbed
8611 # (non-functional) versions of the pthreads routines, so link-based
8612 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8613 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8614 # a function called by this macro, so we could check for that, but
8615 # who knows whether they'll stub that too in a future libc.) So,
8616 # we'll just look for -pthreads and -lpthread first:
8617
8618 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8619 ;;
8620
8621 *-darwin*)
8622 acx_pthread_flags="-pthread $acx_pthread_flags"
8623 ;;
8624esac
8625
8626if test x"$ax_pthread_ok" = xno; then
8627for flag in $ax_pthread_flags; do
8628
8629 case $flag in
8630 none)
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8632$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8633 ;;
8634
8635 -*)
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8637$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8638 PTHREAD_CFLAGS="$flag"
8639 ;;
8640
8641 pthread-config)
8642 # Extract the first word of "pthread-config", so it can be a program name with args.
8643set dummy pthread-config; ac_word=$2
8644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8645$as_echo_n "checking for $ac_word... " >&6; }
8646if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8647 $as_echo_n "(cached) " >&6
8648else
8649 if test -n "$ax_pthread_config"; then
8650 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8651else
8652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8653for as_dir in $PATH
8654do
8655 IFS=$as_save_IFS
8656 test -z "$as_dir" && as_dir=.
8657 for ac_exec_ext in '' $ac_executable_extensions; do
8658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8659 ac_cv_prog_ax_pthread_config="yes"
8660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8661 break 2
8662 fi
8663done
8664 done
8665IFS=$as_save_IFS
8666
8667 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8668fi
8669fi
8670ax_pthread_config=$ac_cv_prog_ax_pthread_config
8671if test -n "$ax_pthread_config"; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8673$as_echo "$ax_pthread_config" >&6; }
8674else
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8676$as_echo "no" >&6; }
8677fi
8678
8679
8680 if test x"$ax_pthread_config" = xno; then continue; fi
8681 PTHREAD_CFLAGS="`pthread-config --cflags`"
8682 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8683 ;;
8684
8685 *)
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8687$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8688 PTHREAD_LIBS="-l$flag"
8689 ;;
8690 esac
8691
8692 save_LIBS="$LIBS"
8693 save_CFLAGS="$CFLAGS"
8694 LIBS="$PTHREAD_LIBS $LIBS"
8695 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8696
8697 # Check for various functions. We must include pthread.h,
8698 # since some functions may be macros. (On the Sequent, we
8699 # need a special flag -Kthread to make this header compile.)
8700 # We check for pthread_join because it is in -lpthread on IRIX
8701 # while pthread_create is in libc. We check for pthread_attr_init
8702 # due to DEC craziness with -lpthreads. We check for
8703 # pthread_cleanup_push because it is one of the few pthread
8704 # functions on Solaris that doesn't have a non-functional libc stub.
8705 # We try pthread_create on general principles.
8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707/* end confdefs.h. */
8708#include <pthread.h>
8709 static void routine(void* a) {a=0;}
8710 static void* start_routine(void* a) {return a;}
8711int
8712main ()
8713{
8714pthread_t th; pthread_attr_t attr;
8715 pthread_join(th, 0);
8716 pthread_attr_init(&attr);
8717 pthread_cleanup_push(routine, 0);
8718 pthread_create(&th,0,start_routine,0);
8719 pthread_cleanup_pop(0);
8720 ;
8721 return 0;
8722}
8723_ACEOF
8724if ac_fn_c_try_link "$LINENO"; then :
8725 ax_pthread_ok=yes
8726fi
8727rm -f core conftest.err conftest.$ac_objext \
8728 conftest$ac_exeext conftest.$ac_ext
8729
8730 LIBS="$save_LIBS"
8731 CFLAGS="$save_CFLAGS"
8732
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8734$as_echo "$ax_pthread_ok" >&6; }
8735 if test "x$ax_pthread_ok" = xyes; then
8736 break;
8737 fi
8738
8739 PTHREAD_LIBS=""
8740 PTHREAD_CFLAGS=""
8741done
8742fi
8743
8744# Various other checks:
8745if test "x$ax_pthread_ok" = xyes; then
8746 save_LIBS="$LIBS"
8747 LIBS="$PTHREAD_LIBS $LIBS"
8748 save_CFLAGS="$CFLAGS"
8749 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8750
8751 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8753$as_echo_n "checking for joinable pthread attribute... " >&6; }
8754 attr_name=unknown
8755 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8757/* end confdefs.h. */
8758#include <pthread.h>
8759int
8760main ()
8761{
8762int attr=$attr; return attr;
8763 ;
8764 return 0;
8765}
8766_ACEOF
8767if ac_fn_c_try_link "$LINENO"; then :
8768 attr_name=$attr; break
8769fi
8770rm -f core conftest.err conftest.$ac_objext \
8771 conftest$ac_exeext conftest.$ac_ext
8772 done
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8774$as_echo "$attr_name" >&6; }
8775 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8776
8777cat >>confdefs.h <<_ACEOF
8778#define PTHREAD_CREATE_JOINABLE $attr_name
8779_ACEOF
8780
8781 fi
8782
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8784$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8785 flag=no
8786 case "${host_cpu}-${host_os}" in
8787 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8788 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8789 esac
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8791$as_echo "${flag}" >&6; }
8792 if test "x$flag" != xno; then
8793 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8794 fi
8795
8796 LIBS="$save_LIBS"
8797 CFLAGS="$save_CFLAGS"
8798
8799 # More AIX lossage: must compile with xlc_r or cc_r
8800 if test x"$GCC" != xyes; then
8801 for ac_prog in xlc_r cc_r
8802do
8803 # Extract the first word of "$ac_prog", so it can be a program name with args.
8804set dummy $ac_prog; ac_word=$2
8805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8806$as_echo_n "checking for $ac_word... " >&6; }
8807if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8808 $as_echo_n "(cached) " >&6
8809else
8810 if test -n "$PTHREAD_CC"; then
8811 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8812else
8813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8814for as_dir in $PATH
8815do
8816 IFS=$as_save_IFS
8817 test -z "$as_dir" && as_dir=.
8818 for ac_exec_ext in '' $ac_executable_extensions; do
8819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8820 ac_cv_prog_PTHREAD_CC="$ac_prog"
8821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8822 break 2
8823 fi
8824done
8825 done
8826IFS=$as_save_IFS
8827
8828fi
8829fi
8830PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8831if test -n "$PTHREAD_CC"; then
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8833$as_echo "$PTHREAD_CC" >&6; }
8834else
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8836$as_echo "no" >&6; }
8837fi
8838
8839
8840 test -n "$PTHREAD_CC" && break
8841done
8842test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8843
8844 else
8845 PTHREAD_CC=$CC
8846 fi
8847else
8848 PTHREAD_CC="$CC"
8849fi
8850
8851
8852
8853
8854
8855# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8856if test x"$ax_pthread_ok" = xyes; then
8857
8858$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8859
8860 :
8861else
8862 ax_pthread_ok=no
8863
8864fi
8865ac_ext=c
8866ac_cpp='$CPP $CPPFLAGS'
8867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8869ac_compiler_gnu=$ac_cv_c_compiler_gnu
8870
8871
8872
cristy43596fe2010-01-21 16:46:08 +00008873# Check whether --enable-opencl was given.
8874if test "${enable_opencl+set}" = set; then :
8875 enableval=$enable_opencl; disable_opencl=$enableval
8876else
8877 disable_opencl='yes'
8878fi
8879
8880
8881if test "$disable_opencl" = 'yes'; then
8882 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008883ac_cpp='$CPP $CPPFLAGS'
8884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8886ac_compiler_gnu=$ac_cv_c_compiler_gnu
8887
cristy43596fe2010-01-21 16:46:08 +00008888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00008889$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008890if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008891 $as_echo_n "(cached) " >&6
8892else
cristy8b350f62009-11-15 23:12:43 +00008893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008894/* end confdefs.h. */
8895
8896int
8897main ()
8898{
8899#ifndef _MSC_VER
8900 choke me
8901#endif
8902
8903 ;
8904 return 0;
8905}
8906_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008907if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008908 ax_compiler_ms=yes
8909else
cristy8b350f62009-11-15 23:12:43 +00008910 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00008911fi
cristy736173a2009-09-20 21:18:22 +00008912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8913ax_cv_c_compiler_ms=$ax_compiler_ms
8914
8915fi
cristy8b350f62009-11-15 23:12:43 +00008916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00008917$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy43596fe2010-01-21 16:46:08 +00008918 if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008919 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8920fi
8921
cristy43596fe2010-01-21 16:46:08 +00008922 ax_save_CPPFLAGS=$CPPFLAGS
8923 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8924 for ac_header in CL/cl.h OpenCL/cl.h
cristy8b350f62009-11-15 23:12:43 +00008925do :
8926 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8927ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyfd9dcd42010-08-08 18:07:02 +00008928if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy736173a2009-09-20 21:18:22 +00008929 cat >>confdefs.h <<_ACEOF
8930#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8931_ACEOF
8932
8933fi
8934
8935done
8936
cristy43596fe2010-01-21 16:46:08 +00008937 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00008938
cristy43596fe2010-01-21 16:46:08 +00008939 for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00008940do :
8941 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8942if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008943 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008944#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00008945_ACEOF
8946
8947fi
8948
8949done
8950
8951
8952
8953
cristy43596fe2010-01-21 16:46:08 +00008954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00008955$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008956if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008957 $as_echo_n "(cached) " >&6
8958else
8959 ax_cv_check_cl_libcl=no
cristy43596fe2010-01-21 16:46:08 +00008960 case $host_cpu in
8961 x86_64) ax_check_cl_libdir=lib64 ;;
8962 *) ax_check_cl_libdir=lib ;;
8963 esac
8964 ax_save_CPPFLAGS=$CPPFLAGS
8965 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8966 ax_save_LIBS=$LIBS
8967 LIBS=""
8968 ax_check_libs="-lOpenCL -lCL -lclparser"
8969 for ax_lib in $ax_check_libs; do
8970 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00008971 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8972else
8973 ax_try_lib=$ax_lib
8974fi
cristy43596fe2010-01-21 16:46:08 +00008975 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008977/* end confdefs.h. */
8978
cristy43596fe2010-01-21 16:46:08 +00008979 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8980 # include <windows.h>
8981 # endif
8982 # ifdef HAVE_CL_CL_H
8983 # include <CL/cl.h>
8984 # elif defined(HAVE_OPENCL_CL_H)
8985 # include <OpenCL/cl.h>
8986 # else
8987 # error no CL.h
8988 # endif
cristy736173a2009-09-20 21:18:22 +00008989int
8990main ()
8991{
cristyc7083c12009-10-14 03:16:55 +00008992clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008993 ;
8994 return 0;
8995}
8996_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008997if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008998 ax_cv_check_cl_libcl=$ax_try_lib; break
8999else
cristy8b350f62009-11-15 23:12:43 +00009000 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 +00009001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009002/* end confdefs.h. */
9003
cristy43596fe2010-01-21 16:46:08 +00009004 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9005 # include <windows.h>
9006 # endif
9007 # ifdef HAVE_CL_CL_H
9008 # include <CL/cl.h>
9009 # elif defined(HAVE_OPENCL_CL_H)
9010 # include <OpenCL/cl.h>
9011 # else
9012 # error no CL.h
9013 # endif
cristy736173a2009-09-20 21:18:22 +00009014int
9015main ()
9016{
cristyc7083c12009-10-14 03:16:55 +00009017clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009018 ;
9019 return 0;
9020}
9021_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009022if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009023 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9024else
cristy4dc44432009-12-30 23:30:06 +00009025 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 +00009026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009027/* end confdefs.h. */
9028
cristy43596fe2010-01-21 16:46:08 +00009029 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9030 # include <windows.h>
9031 # endif
9032 # ifdef HAVE_CL_CL_H
9033 # include <CL/cl.h>
9034 # elif defined(HAVE_OPENCL_CL_H)
9035 # include <OpenCL/cl.h>
9036 # else
9037 # error no CL.h
9038 # endif
cristy736173a2009-09-20 21:18:22 +00009039int
9040main ()
9041{
cristyc7083c12009-10-14 03:16:55 +00009042clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009043 ;
9044 return 0;
9045}
9046_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009047if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009048 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00009049fi
cristy8b350f62009-11-15 23:12:43 +00009050rm -f core conftest.err conftest.$ac_objext \
9051 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009052fi
cristy8b350f62009-11-15 23:12:43 +00009053rm -f core conftest.err conftest.$ac_objext \
9054 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009055fi
cristy8b350f62009-11-15 23:12:43 +00009056rm -f core conftest.err conftest.$ac_objext \
9057 conftest$ac_exeext conftest.$ac_ext
cristy43596fe2010-01-21 16:46:08 +00009058 done
cristy736173a2009-09-20 21:18:22 +00009059
cristy43596fe2010-01-21 16:46:08 +00009060 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00009061 LIBS='-framework OpenCL'
cristy43596fe2010-01-21 16:46:08 +00009062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009063/* end confdefs.h. */
9064
cristy43596fe2010-01-21 16:46:08 +00009065 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9066 # include <windows.h>
9067 # endif
9068 # ifdef HAVE_CL_CL_H
9069 # include <CL/cl.h>
9070 # elif defined(HAVE_OPENCL_CL_H)
9071 # include <OpenCL/cl.h>
9072 # else
9073 # error no CL.h
9074 # endif
cristy736173a2009-09-20 21:18:22 +00009075int
9076main ()
9077{
cristyc7083c12009-10-14 03:16:55 +00009078clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009079 ;
9080 return 0;
9081}
9082_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009083if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009084 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00009085fi
cristy8b350f62009-11-15 23:12:43 +00009086rm -f core conftest.err conftest.$ac_objext \
9087 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009088fi
9089
cristy43596fe2010-01-21 16:46:08 +00009090 LIBS=$ax_save_LIBS
9091 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00009092fi
cristy8b350f62009-11-15 23:12:43 +00009093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00009094$as_echo "$ax_cv_check_cl_libcl" >&6; }
9095
cristy43596fe2010-01-21 16:46:08 +00009096 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00009097 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9098else
cristy99cc3002010-01-21 14:50:11 +00009099 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9100$as_echo "#define _OPENCL 1" >>confdefs.h
9101
cristy736173a2009-09-20 21:18:22 +00009102fi
cristy43596fe2010-01-21 16:46:08 +00009103 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00009104ac_cpp='$CPP $CPPFLAGS'
9105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9107ac_compiler_gnu=$ac_cv_c_compiler_gnu
9108
cristy43596fe2010-01-21 16:46:08 +00009109fi
cristy736173a2009-09-20 21:18:22 +00009110
9111
9112
9113
cristyc7083c12009-10-14 03:16:55 +00009114CFLAGS="$CL_CFLAGS $CFLAGS"
9115LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009116
cristyfd9dcd42010-08-08 18:07:02 +00009117if test "_OPENCL" = '1'; then
9118 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9119fi
cristy2e8b51d2009-10-17 18:26:15 +00009120
cristy3ed852e2009-09-05 21:47:34 +00009121########
9122#
9123# Check for large file support
9124#
9125########
9126# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009127if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009128 enableval=$enable_largefile;
9129fi
9130
9131if test "$enable_largefile" != no; then
9132
cristy8b350f62009-11-15 23:12:43 +00009133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009134$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009135if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009136 $as_echo_n "(cached) " >&6
9137else
9138 ac_cv_sys_largefile_CC=no
9139 if test "$GCC" != yes; then
9140 ac_save_CC=$CC
9141 while :; do
9142 # IRIX 6.2 and later do not support large files by default,
9143 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009145/* end confdefs.h. */
9146#include <sys/types.h>
9147 /* Check that off_t can represent 2**63 - 1 correctly.
9148 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9149 since some C++ compilers masquerading as C compilers
9150 incorrectly reject 9223372036854775807. */
9151#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9152 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9153 && LARGE_OFF_T % 2147483647 == 1)
9154 ? 1 : -1];
9155int
9156main ()
9157{
9158
9159 ;
9160 return 0;
9161}
9162_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009163 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009164 break
cristy3ed852e2009-09-05 21:47:34 +00009165fi
cristy3ed852e2009-09-05 21:47:34 +00009166rm -f core conftest.err conftest.$ac_objext
9167 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009168 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009169 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009170fi
cristy3ed852e2009-09-05 21:47:34 +00009171rm -f core conftest.err conftest.$ac_objext
9172 break
9173 done
9174 CC=$ac_save_CC
9175 rm -f conftest.$ac_ext
9176 fi
9177fi
cristy8b350f62009-11-15 23:12:43 +00009178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009179$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9180 if test "$ac_cv_sys_largefile_CC" != no; then
9181 CC=$CC$ac_cv_sys_largefile_CC
9182 fi
9183
cristy8b350f62009-11-15 23:12:43 +00009184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009185$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009186if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009187 $as_echo_n "(cached) " >&6
9188else
9189 while :; do
cristy8b350f62009-11-15 23:12:43 +00009190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009191/* end confdefs.h. */
9192#include <sys/types.h>
9193 /* Check that off_t can represent 2**63 - 1 correctly.
9194 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9195 since some C++ compilers masquerading as C compilers
9196 incorrectly reject 9223372036854775807. */
9197#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9198 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9199 && LARGE_OFF_T % 2147483647 == 1)
9200 ? 1 : -1];
9201int
9202main ()
9203{
9204
9205 ;
9206 return 0;
9207}
9208_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009209if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009210 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009211fi
cristy3ed852e2009-09-05 21:47:34 +00009212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009214/* end confdefs.h. */
9215#define _FILE_OFFSET_BITS 64
9216#include <sys/types.h>
9217 /* Check that off_t can represent 2**63 - 1 correctly.
9218 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9219 since some C++ compilers masquerading as C compilers
9220 incorrectly reject 9223372036854775807. */
9221#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9222 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9223 && LARGE_OFF_T % 2147483647 == 1)
9224 ? 1 : -1];
9225int
9226main ()
9227{
9228
9229 ;
9230 return 0;
9231}
9232_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009233if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009234 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009235fi
cristy3ed852e2009-09-05 21:47:34 +00009236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9237 ac_cv_sys_file_offset_bits=unknown
9238 break
9239done
9240fi
cristy8b350f62009-11-15 23:12:43 +00009241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009242$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9243case $ac_cv_sys_file_offset_bits in #(
9244 no | unknown) ;;
9245 *)
9246cat >>confdefs.h <<_ACEOF
9247#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9248_ACEOF
9249;;
9250esac
9251rm -rf conftest*
9252 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009254$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009255if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009256 $as_echo_n "(cached) " >&6
9257else
9258 while :; do
cristy8b350f62009-11-15 23:12:43 +00009259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009260/* end confdefs.h. */
9261#include <sys/types.h>
9262 /* Check that off_t can represent 2**63 - 1 correctly.
9263 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9264 since some C++ compilers masquerading as C compilers
9265 incorrectly reject 9223372036854775807. */
9266#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9267 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9268 && LARGE_OFF_T % 2147483647 == 1)
9269 ? 1 : -1];
9270int
9271main ()
9272{
9273
9274 ;
9275 return 0;
9276}
9277_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009278if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009279 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009280fi
cristy3ed852e2009-09-05 21:47:34 +00009281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009283/* end confdefs.h. */
9284#define _LARGE_FILES 1
9285#include <sys/types.h>
9286 /* Check that off_t can represent 2**63 - 1 correctly.
9287 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9288 since some C++ compilers masquerading as C compilers
9289 incorrectly reject 9223372036854775807. */
9290#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9291 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9292 && LARGE_OFF_T % 2147483647 == 1)
9293 ? 1 : -1];
9294int
9295main ()
9296{
9297
9298 ;
9299 return 0;
9300}
9301_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009302if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009303 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009304fi
cristy3ed852e2009-09-05 21:47:34 +00009305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9306 ac_cv_sys_large_files=unknown
9307 break
9308done
9309fi
cristy8b350f62009-11-15 23:12:43 +00009310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009311$as_echo "$ac_cv_sys_large_files" >&6; }
9312case $ac_cv_sys_large_files in #(
9313 no | unknown) ;;
9314 *)
9315cat >>confdefs.h <<_ACEOF
9316#define _LARGE_FILES $ac_cv_sys_large_files
9317_ACEOF
9318;;
9319esac
9320rm -rf conftest*
9321 fi
9322fi
9323
cristy8b350f62009-11-15 23:12:43 +00009324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009325$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009326if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009327 $as_echo_n "(cached) " >&6
9328else
9329 while :; do
cristy8b350f62009-11-15 23:12:43 +00009330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009331/* end confdefs.h. */
9332#include <sys/types.h> /* for off_t */
9333 #include <stdio.h>
9334int
9335main ()
9336{
9337int (*fp) (FILE *, off_t, int) = fseeko;
9338 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9339 ;
9340 return 0;
9341}
9342_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009343if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009344 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009345fi
cristy8b350f62009-11-15 23:12:43 +00009346rm -f core conftest.err conftest.$ac_objext \
9347 conftest$ac_exeext conftest.$ac_ext
9348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009349/* end confdefs.h. */
9350#define _LARGEFILE_SOURCE 1
9351#include <sys/types.h> /* for off_t */
9352 #include <stdio.h>
9353int
9354main ()
9355{
9356int (*fp) (FILE *, off_t, int) = fseeko;
9357 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9358 ;
9359 return 0;
9360}
9361_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009362if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009363 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009364fi
cristy8b350f62009-11-15 23:12:43 +00009365rm -f core conftest.err conftest.$ac_objext \
9366 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009367 ac_cv_sys_largefile_source=unknown
9368 break
9369done
9370fi
cristy8b350f62009-11-15 23:12:43 +00009371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009372$as_echo "$ac_cv_sys_largefile_source" >&6; }
9373case $ac_cv_sys_largefile_source in #(
9374 no | unknown) ;;
9375 *)
9376cat >>confdefs.h <<_ACEOF
9377#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9378_ACEOF
9379;;
9380esac
9381rm -rf conftest*
9382
9383# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9384# in glibc 2.1.3, but that breaks too many other things.
9385# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9386if test $ac_cv_sys_largefile_source != unknown; then
9387
cristy8b350f62009-11-15 23:12:43 +00009388$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009389
9390fi
9391
9392LFS_CPPFLAGS=''
9393if test "$enable_largefile" != no; then
9394 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9395 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9396 else
cristy8b350f62009-11-15 23:12:43 +00009397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009398$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009399 if test "$cross_compiling" = yes; then :
9400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00009402as_fn_error $? "cannot run test program while cross compiling
9403See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009404else
cristy8b350f62009-11-15 23:12:43 +00009405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9406/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009407#include <unistd.h>
9408 main () {
9409 exit(!(sizeof(off_t) == 8));
9410 }
9411_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009412if ac_fn_c_try_run "$LINENO"; then :
9413 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009414
cristy8b350f62009-11-15 23:12:43 +00009415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009416$as_echo "yes" >&6; }
9417else
cristy8b350f62009-11-15 23:12:43 +00009418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009419$as_echo "no" >&6; }
9420fi
cristy8b350f62009-11-15 23:12:43 +00009421rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9422 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009423fi
9424
cristy3ed852e2009-09-05 21:47:34 +00009425 fi
9426 if test "$ac_cv_sys_large_files" != 'no'; then
9427 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9428 fi
9429 if test "$ac_cv_sys_largefile_source" != 'no'; then
9430 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9431 fi
9432fi
9433
9434
9435#
9436# Configure libtool & libltdl
9437#
9438# Configure libtool
9439enable_dlopen=yes
9440
9441
9442
9443case `pwd` in
9444 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00009445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00009446$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9447esac
9448
9449
9450
cristyfd9dcd42010-08-08 18:07:02 +00009451macro_version='2.2.10'
9452macro_revision='1.3175'
cristy3ed852e2009-09-05 21:47:34 +00009453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466ltmain="$ac_aux_dir/ltmain.sh"
9467
cristyfd9dcd42010-08-08 18:07:02 +00009468# Backslashify metacharacters that are still active within
9469# double-quoted strings.
9470sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9471
9472# Same as above, but do not quote variable references.
9473double_quote_subst='s/\(["`\\]\)/\\\1/g'
9474
9475# Sed substitution to delay expansion of an escaped shell variable in a
9476# double_quote_subst'ed string.
9477delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9478
9479# Sed substitution to delay expansion of an escaped single quote.
9480delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9481
9482# Sed substitution to avoid accidental globbing in evaled expressions
9483no_glob_subst='s/\*/\\\*/g'
9484
cristy8b350f62009-11-15 23:12:43 +00009485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00009486$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009487if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009488 $as_echo_n "(cached) " >&6
9489else
9490 if test -n "$NM"; then
9491 # Let the user override the test.
9492 lt_cv_path_NM="$NM"
9493else
9494 lt_nm_to_check="${ac_tool_prefix}nm"
9495 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9496 lt_nm_to_check="$lt_nm_to_check nm"
9497 fi
9498 for lt_tmp_nm in $lt_nm_to_check; do
9499 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9500 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9501 IFS="$lt_save_ifs"
9502 test -z "$ac_dir" && ac_dir=.
9503 tmp_nm="$ac_dir/$lt_tmp_nm"
9504 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9505 # Check to see if the nm accepts a BSD-compat flag.
9506 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9507 # nm: unknown option "B" ignored
9508 # Tru64's nm complains that /dev/null is an invalid object file
9509 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9510 */dev/null* | *'Invalid file or object type'*)
9511 lt_cv_path_NM="$tmp_nm -B"
9512 break
9513 ;;
9514 *)
9515 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9516 */dev/null*)
9517 lt_cv_path_NM="$tmp_nm -p"
9518 break
9519 ;;
9520 *)
9521 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9522 continue # so that we can try to find one that supports BSD flags
9523 ;;
9524 esac
9525 ;;
9526 esac
9527 fi
9528 done
9529 IFS="$lt_save_ifs"
9530 done
9531 : ${lt_cv_path_NM=no}
9532fi
9533fi
cristy8b350f62009-11-15 23:12:43 +00009534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00009535$as_echo "$lt_cv_path_NM" >&6; }
9536if test "$lt_cv_path_NM" != "no"; then
9537 NM="$lt_cv_path_NM"
9538else
9539 # Didn't find any BSD compatible name lister, look for dumpbin.
cristyfd9dcd42010-08-08 18:07:02 +00009540 if test -n "$DUMPBIN"; then :
9541 # Let the user override the test.
9542 else
9543 if test -n "$ac_tool_prefix"; then
9544 for ac_prog in dumpbin "link -dump"
cristy3ed852e2009-09-05 21:47:34 +00009545 do
9546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9547set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009549$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009550if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009551 $as_echo_n "(cached) " >&6
9552else
9553 if test -n "$DUMPBIN"; then
9554 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9555else
9556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9557for as_dir in $PATH
9558do
9559 IFS=$as_save_IFS
9560 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009561 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9563 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009565 break 2
9566 fi
9567done
cristy8b350f62009-11-15 23:12:43 +00009568 done
cristy3ed852e2009-09-05 21:47:34 +00009569IFS=$as_save_IFS
9570
9571fi
9572fi
9573DUMPBIN=$ac_cv_prog_DUMPBIN
9574if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009576$as_echo "$DUMPBIN" >&6; }
9577else
cristy8b350f62009-11-15 23:12:43 +00009578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009579$as_echo "no" >&6; }
9580fi
9581
9582
9583 test -n "$DUMPBIN" && break
9584 done
9585fi
9586if test -z "$DUMPBIN"; then
9587 ac_ct_DUMPBIN=$DUMPBIN
cristyfd9dcd42010-08-08 18:07:02 +00009588 for ac_prog in dumpbin "link -dump"
cristy3ed852e2009-09-05 21:47:34 +00009589do
9590 # Extract the first word of "$ac_prog", so it can be a program name with args.
9591set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009593$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009594if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009595 $as_echo_n "(cached) " >&6
9596else
9597 if test -n "$ac_ct_DUMPBIN"; then
9598 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9599else
9600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9601for as_dir in $PATH
9602do
9603 IFS=$as_save_IFS
9604 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009605 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9607 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009609 break 2
9610 fi
9611done
cristy8b350f62009-11-15 23:12:43 +00009612 done
cristy3ed852e2009-09-05 21:47:34 +00009613IFS=$as_save_IFS
9614
9615fi
9616fi
9617ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9618if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009620$as_echo "$ac_ct_DUMPBIN" >&6; }
9621else
cristy8b350f62009-11-15 23:12:43 +00009622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009623$as_echo "no" >&6; }
9624fi
9625
9626
9627 test -n "$ac_ct_DUMPBIN" && break
9628done
9629
9630 if test "x$ac_ct_DUMPBIN" = x; then
9631 DUMPBIN=":"
9632 else
9633 case $cross_compiling:$ac_tool_warned in
9634yes:)
cristy8b350f62009-11-15 23:12:43 +00009635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9637ac_tool_warned=yes ;;
9638esac
9639 DUMPBIN=$ac_ct_DUMPBIN
9640 fi
9641fi
9642
cristyfd9dcd42010-08-08 18:07:02 +00009643 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9644 *COFF*)
9645 DUMPBIN="$DUMPBIN -symbols"
9646 ;;
9647 *)
9648 DUMPBIN=:
9649 ;;
9650 esac
9651 fi
cristy3ed852e2009-09-05 21:47:34 +00009652
9653 if test "$DUMPBIN" != ":"; then
9654 NM="$DUMPBIN"
9655 fi
9656fi
9657test -z "$NM" && NM=nm
9658
9659
9660
9661
9662
9663
cristy8b350f62009-11-15 23:12:43 +00009664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009665$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009666if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009667 $as_echo_n "(cached) " >&6
9668else
9669 lt_cv_nm_interface="BSD nm"
9670 echo "int some_variable = 0;" > conftest.$ac_ext
cristyfd9dcd42010-08-08 18:07:02 +00009671 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009672 (eval "$ac_compile" 2>conftest.err)
9673 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +00009674 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009675 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9676 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +00009677 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009678 cat conftest.out >&5
9679 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9680 lt_cv_nm_interface="MS dumpbin"
9681 fi
9682 rm -f conftest*
9683fi
cristy8b350f62009-11-15 23:12:43 +00009684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009685$as_echo "$lt_cv_nm_interface" >&6; }
9686
9687# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00009688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00009689$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009690if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009691 $as_echo_n "(cached) " >&6
9692else
9693 i=0
9694 teststring="ABCD"
9695
9696 case $build_os in
9697 msdosdjgpp*)
9698 # On DJGPP, this test can blow up pretty badly due to problems in libc
9699 # (any single argument exceeding 2000 bytes causes a buffer overrun
9700 # during glob expansion). Even if it were fixed, the result of this
9701 # check would be larger than it should be.
9702 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9703 ;;
9704
9705 gnu*)
9706 # Under GNU Hurd, this test is not required because there is
9707 # no limit to the length of command line arguments.
9708 # Libtool will interpret -1 as no limit whatsoever
9709 lt_cv_sys_max_cmd_len=-1;
9710 ;;
9711
9712 cygwin* | mingw* | cegcc*)
9713 # On Win9x/ME, this test blows up -- it succeeds, but takes
9714 # about 5 minutes as the teststring grows exponentially.
9715 # Worse, since 9x/ME are not pre-emptively multitasking,
9716 # you end up with a "frozen" computer, even though with patience
9717 # the test eventually succeeds (with a max line length of 256k).
9718 # Instead, let's just punt: use the minimum linelength reported by
9719 # all of the supported platforms: 8192 (on NT/2K/XP).
9720 lt_cv_sys_max_cmd_len=8192;
9721 ;;
9722
cristyfd9dcd42010-08-08 18:07:02 +00009723 mint*)
9724 # On MiNT this can take a long time and run out of memory.
9725 lt_cv_sys_max_cmd_len=8192;
9726 ;;
9727
cristy3ed852e2009-09-05 21:47:34 +00009728 amigaos*)
9729 # On AmigaOS with pdksh, this test takes hours, literally.
9730 # So we just punt and use a minimum line length of 8192.
9731 lt_cv_sys_max_cmd_len=8192;
9732 ;;
9733
9734 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9735 # This has been around since 386BSD, at least. Likely further.
9736 if test -x /sbin/sysctl; then
9737 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9738 elif test -x /usr/sbin/sysctl; then
9739 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9740 else
9741 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9742 fi
9743 # And add a safety zone
9744 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9745 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9746 ;;
9747
9748 interix*)
9749 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9750 lt_cv_sys_max_cmd_len=196608
9751 ;;
9752
9753 osf*)
9754 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9755 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9756 # nice to cause kernel panics so lets avoid the loop below.
9757 # First set a reasonable default.
9758 lt_cv_sys_max_cmd_len=16384
9759 #
9760 if test -x /sbin/sysconfig; then
9761 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9762 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9763 esac
9764 fi
9765 ;;
9766 sco3.2v5*)
9767 lt_cv_sys_max_cmd_len=102400
9768 ;;
9769 sysv5* | sco5v6* | sysv4.2uw2*)
9770 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9771 if test -n "$kargmax"; then
9772 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9773 else
9774 lt_cv_sys_max_cmd_len=32768
9775 fi
9776 ;;
9777 *)
9778 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9779 if test -n "$lt_cv_sys_max_cmd_len"; then
9780 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9782 else
9783 # Make teststring a little bigger before we do anything with it.
9784 # a 1K string should be a reasonable start.
9785 for i in 1 2 3 4 5 6 7 8 ; do
9786 teststring=$teststring$teststring
9787 done
9788 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9789 # If test is not a shell built-in, we'll probably end up computing a
9790 # maximum length that is only half of the actual maximum length, but
9791 # we can't tell.
cristyfd9dcd42010-08-08 18:07:02 +00009792 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9793 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00009794 test $i != 17 # 1/2 MB should be enough
9795 do
9796 i=`expr $i + 1`
9797 teststring=$teststring$teststring
9798 done
9799 # Only check the string length outside the loop.
9800 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9801 teststring=
9802 # Add a significant safety factor because C++ compilers can tack on
9803 # massive amounts of additional arguments before passing them to the
9804 # linker. It appears as though 1/2 is a usable value.
9805 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9806 fi
9807 ;;
9808 esac
9809
9810fi
9811
9812if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00009813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00009814$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9815else
cristy8b350f62009-11-15 23:12:43 +00009816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00009817$as_echo "none" >&6; }
9818fi
9819max_cmd_len=$lt_cv_sys_max_cmd_len
9820
9821
9822
9823
9824
9825
9826: ${CP="cp -f"}
9827: ${MV="mv -f"}
9828: ${RM="rm -f"}
9829
cristy8b350f62009-11-15 23:12:43 +00009830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00009831$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9832# Try some XSI features
9833xsi_shell=no
9834( _lt_dummy="a/b/c"
9835 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9836 = c,a/b,, \
9837 && eval 'test $(( 1 + 1 )) -eq 2 \
9838 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9839 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00009840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00009841$as_echo "$xsi_shell" >&6; }
9842
9843
cristy8b350f62009-11-15 23:12:43 +00009844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00009845$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9846lt_shell_append=no
9847( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9848 >/dev/null 2>&1 \
9849 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00009850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00009851$as_echo "$lt_shell_append" >&6; }
9852
9853
9854if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9855 lt_unset=unset
9856else
9857 lt_unset=false
9858fi
9859
9860
9861
9862
9863
9864# test EBCDIC or ASCII
9865case `echo X|tr X '\101'` in
9866 A) # ASCII based system
9867 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9868 lt_SP2NL='tr \040 \012'
9869 lt_NL2SP='tr \015\012 \040\040'
9870 ;;
9871 *) # EBCDIC based system
9872 lt_SP2NL='tr \100 \n'
9873 lt_NL2SP='tr \r\n \100\100'
9874 ;;
9875esac
9876
9877
9878
9879
9880
9881
9882
9883
9884
cristy8b350f62009-11-15 23:12:43 +00009885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009886$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009887if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009888 $as_echo_n "(cached) " >&6
9889else
9890 lt_cv_ld_reload_flag='-r'
9891fi
cristy8b350f62009-11-15 23:12:43 +00009892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00009893$as_echo "$lt_cv_ld_reload_flag" >&6; }
9894reload_flag=$lt_cv_ld_reload_flag
9895case $reload_flag in
9896"" | " "*) ;;
9897*) reload_flag=" $reload_flag" ;;
9898esac
9899reload_cmds='$LD$reload_flag -o $output$reload_objs'
9900case $host_os in
9901 darwin*)
9902 if test "$GCC" = yes; then
9903 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9904 else
9905 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9906 fi
9907 ;;
9908esac
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918if test -n "$ac_tool_prefix"; then
9919 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9920set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009922$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009923if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009924 $as_echo_n "(cached) " >&6
9925else
9926 if test -n "$OBJDUMP"; then
9927 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9928else
9929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9930for as_dir in $PATH
9931do
9932 IFS=$as_save_IFS
9933 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009934 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9936 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00009937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009938 break 2
9939 fi
9940done
cristy8b350f62009-11-15 23:12:43 +00009941 done
cristy3ed852e2009-09-05 21:47:34 +00009942IFS=$as_save_IFS
9943
9944fi
9945fi
9946OBJDUMP=$ac_cv_prog_OBJDUMP
9947if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009949$as_echo "$OBJDUMP" >&6; }
9950else
cristy8b350f62009-11-15 23:12:43 +00009951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009952$as_echo "no" >&6; }
9953fi
9954
9955
9956fi
9957if test -z "$ac_cv_prog_OBJDUMP"; then
9958 ac_ct_OBJDUMP=$OBJDUMP
9959 # Extract the first word of "objdump", so it can be a program name with args.
9960set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009962$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009963if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009964 $as_echo_n "(cached) " >&6
9965else
9966 if test -n "$ac_ct_OBJDUMP"; then
9967 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9968else
9969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9970for as_dir in $PATH
9971do
9972 IFS=$as_save_IFS
9973 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009974 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9976 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +00009977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009978 break 2
9979 fi
9980done
cristy8b350f62009-11-15 23:12:43 +00009981 done
cristy3ed852e2009-09-05 21:47:34 +00009982IFS=$as_save_IFS
9983
9984fi
9985fi
9986ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9987if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009989$as_echo "$ac_ct_OBJDUMP" >&6; }
9990else
cristy8b350f62009-11-15 23:12:43 +00009991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009992$as_echo "no" >&6; }
9993fi
9994
9995 if test "x$ac_ct_OBJDUMP" = x; then
9996 OBJDUMP="false"
9997 else
9998 case $cross_compiling:$ac_tool_warned in
9999yes:)
cristy8b350f62009-11-15 23:12:43 +000010000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10002ac_tool_warned=yes ;;
10003esac
10004 OBJDUMP=$ac_ct_OBJDUMP
10005 fi
10006else
10007 OBJDUMP="$ac_cv_prog_OBJDUMP"
10008fi
10009
10010test -z "$OBJDUMP" && OBJDUMP=objdump
10011
10012
10013
10014
10015
10016
cristy8b350f62009-11-15 23:12:43 +000010017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000010018$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010019if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010020 $as_echo_n "(cached) " >&6
10021else
10022 lt_cv_file_magic_cmd='$MAGIC_CMD'
10023lt_cv_file_magic_test_file=
10024lt_cv_deplibs_check_method='unknown'
10025# Need to set the preceding variable on all platforms that support
10026# interlibrary dependencies.
10027# 'none' -- dependencies not supported.
10028# `unknown' -- same as none, but documents that we really don't know.
10029# 'pass_all' -- all dependencies passed with no checks.
10030# 'test_compile' -- check by making test program.
10031# 'file_magic [[regex]]' -- check by looking for files in library path
10032# which responds to the $file_magic_cmd with a given extended regex.
10033# If you have `file' or equivalent on your system and you're not sure
10034# whether `pass_all' will *always* work, you probably want this one.
10035
10036case $host_os in
10037aix[4-9]*)
10038 lt_cv_deplibs_check_method=pass_all
10039 ;;
10040
10041beos*)
10042 lt_cv_deplibs_check_method=pass_all
10043 ;;
10044
10045bsdi[45]*)
10046 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10047 lt_cv_file_magic_cmd='/usr/bin/file -L'
10048 lt_cv_file_magic_test_file=/shlib/libc.so
10049 ;;
10050
10051cygwin*)
10052 # func_win32_libid is a shell function defined in ltmain.sh
10053 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10054 lt_cv_file_magic_cmd='func_win32_libid'
10055 ;;
10056
10057mingw* | pw32*)
10058 # Base MSYS/MinGW do not provide the 'file' command needed by
10059 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10060 # unless we find 'file', for example because we are cross-compiling.
cristyfd9dcd42010-08-08 18:07:02 +000010061 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10062 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +000010063 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10064 lt_cv_file_magic_cmd='func_win32_libid'
10065 else
cristyfd9dcd42010-08-08 18:07:02 +000010066 # Keep this pattern in sync with the one in func_win32_libid.
10067 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 +000010068 lt_cv_file_magic_cmd='$OBJDUMP -f'
10069 fi
10070 ;;
10071
cristyfd9dcd42010-08-08 18:07:02 +000010072cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000010073 # use the weaker test based on 'objdump'. See mingw*.
10074 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10075 lt_cv_file_magic_cmd='$OBJDUMP -f'
10076 ;;
10077
10078darwin* | rhapsody*)
10079 lt_cv_deplibs_check_method=pass_all
10080 ;;
10081
10082freebsd* | dragonfly*)
10083 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10084 case $host_cpu in
10085 i*86 )
10086 # Not sure whether the presence of OpenBSD here was a mistake.
10087 # Let's accept both of them until this is cleared up.
10088 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10089 lt_cv_file_magic_cmd=/usr/bin/file
10090 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10091 ;;
10092 esac
10093 else
10094 lt_cv_deplibs_check_method=pass_all
10095 fi
10096 ;;
10097
10098gnu*)
10099 lt_cv_deplibs_check_method=pass_all
10100 ;;
10101
cristyfd9dcd42010-08-08 18:07:02 +000010102haiku*)
10103 lt_cv_deplibs_check_method=pass_all
10104 ;;
10105
cristy3ed852e2009-09-05 21:47:34 +000010106hpux10.20* | hpux11*)
10107 lt_cv_file_magic_cmd=/usr/bin/file
10108 case $host_cpu in
10109 ia64*)
10110 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10111 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10112 ;;
10113 hppa*64*)
cristyfd9dcd42010-08-08 18:07:02 +000010114 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 +000010115 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10116 ;;
10117 *)
cristyfd9dcd42010-08-08 18:07:02 +000010118 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 +000010119 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10120 ;;
10121 esac
10122 ;;
10123
10124interix[3-9]*)
10125 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10126 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10127 ;;
10128
10129irix5* | irix6* | nonstopux*)
10130 case $LD in
10131 *-32|*"-32 ") libmagic=32-bit;;
10132 *-n32|*"-n32 ") libmagic=N32;;
10133 *-64|*"-64 ") libmagic=64-bit;;
10134 *) libmagic=never-match;;
10135 esac
10136 lt_cv_deplibs_check_method=pass_all
10137 ;;
10138
10139# This must be Linux ELF.
cristyfd9dcd42010-08-08 18:07:02 +000010140linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000010141 lt_cv_deplibs_check_method=pass_all
10142 ;;
10143
10144netbsd*)
10145 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10146 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10147 else
10148 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10149 fi
10150 ;;
10151
10152newos6*)
10153 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10154 lt_cv_file_magic_cmd=/usr/bin/file
10155 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10156 ;;
10157
10158*nto* | *qnx*)
10159 lt_cv_deplibs_check_method=pass_all
10160 ;;
10161
10162openbsd*)
10163 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10164 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10165 else
10166 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10167 fi
10168 ;;
10169
10170osf3* | osf4* | osf5*)
10171 lt_cv_deplibs_check_method=pass_all
10172 ;;
10173
10174rdos*)
10175 lt_cv_deplibs_check_method=pass_all
10176 ;;
10177
10178solaris*)
10179 lt_cv_deplibs_check_method=pass_all
10180 ;;
10181
10182sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10183 lt_cv_deplibs_check_method=pass_all
10184 ;;
10185
10186sysv4 | sysv4.3*)
10187 case $host_vendor in
10188 motorola)
10189 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]'
10190 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10191 ;;
10192 ncr)
10193 lt_cv_deplibs_check_method=pass_all
10194 ;;
10195 sequent)
10196 lt_cv_file_magic_cmd='/bin/file'
10197 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10198 ;;
10199 sni)
10200 lt_cv_file_magic_cmd='/bin/file'
10201 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10202 lt_cv_file_magic_test_file=/lib/libc.so
10203 ;;
10204 siemens)
10205 lt_cv_deplibs_check_method=pass_all
10206 ;;
10207 pc)
10208 lt_cv_deplibs_check_method=pass_all
10209 ;;
10210 esac
10211 ;;
10212
10213tpf*)
10214 lt_cv_deplibs_check_method=pass_all
10215 ;;
10216esac
10217
10218fi
cristy8b350f62009-11-15 23:12:43 +000010219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +000010220$as_echo "$lt_cv_deplibs_check_method" >&6; }
10221file_magic_cmd=$lt_cv_file_magic_cmd
10222deplibs_check_method=$lt_cv_deplibs_check_method
10223test -z "$deplibs_check_method" && deplibs_check_method=unknown
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236if test -n "$ac_tool_prefix"; then
10237 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10238set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010240$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010241if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010242 $as_echo_n "(cached) " >&6
10243else
10244 if test -n "$AR"; then
10245 ac_cv_prog_AR="$AR" # Let the user override the test.
10246else
10247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10248for as_dir in $PATH
10249do
10250 IFS=$as_save_IFS
10251 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010252 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10254 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +000010255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010256 break 2
10257 fi
10258done
cristy8b350f62009-11-15 23:12:43 +000010259 done
cristy3ed852e2009-09-05 21:47:34 +000010260IFS=$as_save_IFS
10261
10262fi
10263fi
10264AR=$ac_cv_prog_AR
10265if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +000010266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010267$as_echo "$AR" >&6; }
10268else
cristy8b350f62009-11-15 23:12:43 +000010269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010270$as_echo "no" >&6; }
10271fi
10272
10273
10274fi
10275if test -z "$ac_cv_prog_AR"; then
10276 ac_ct_AR=$AR
10277 # Extract the first word of "ar", so it can be a program name with args.
10278set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010280$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010281if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010282 $as_echo_n "(cached) " >&6
10283else
10284 if test -n "$ac_ct_AR"; then
10285 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10286else
10287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10288for as_dir in $PATH
10289do
10290 IFS=$as_save_IFS
10291 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010292 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10294 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +000010295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010296 break 2
10297 fi
10298done
cristy8b350f62009-11-15 23:12:43 +000010299 done
cristy3ed852e2009-09-05 21:47:34 +000010300IFS=$as_save_IFS
10301
10302fi
10303fi
10304ac_ct_AR=$ac_cv_prog_ac_ct_AR
10305if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +000010306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010307$as_echo "$ac_ct_AR" >&6; }
10308else
cristy8b350f62009-11-15 23:12:43 +000010309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010310$as_echo "no" >&6; }
10311fi
10312
10313 if test "x$ac_ct_AR" = x; then
10314 AR="false"
10315 else
10316 case $cross_compiling:$ac_tool_warned in
10317yes:)
cristy8b350f62009-11-15 23:12:43 +000010318{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10320ac_tool_warned=yes ;;
10321esac
10322 AR=$ac_ct_AR
10323 fi
10324else
10325 AR="$ac_cv_prog_AR"
10326fi
10327
10328test -z "$AR" && AR=ar
10329test -z "$AR_FLAGS" && AR_FLAGS=cru
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341if test -n "$ac_tool_prefix"; then
10342 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10343set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010345$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010346if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010347 $as_echo_n "(cached) " >&6
10348else
10349 if test -n "$STRIP"; then
10350 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10351else
10352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10353for as_dir in $PATH
10354do
10355 IFS=$as_save_IFS
10356 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010357 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10359 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +000010360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010361 break 2
10362 fi
10363done
cristy8b350f62009-11-15 23:12:43 +000010364 done
cristy3ed852e2009-09-05 21:47:34 +000010365IFS=$as_save_IFS
10366
10367fi
10368fi
10369STRIP=$ac_cv_prog_STRIP
10370if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010372$as_echo "$STRIP" >&6; }
10373else
cristy8b350f62009-11-15 23:12:43 +000010374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010375$as_echo "no" >&6; }
10376fi
10377
10378
10379fi
10380if test -z "$ac_cv_prog_STRIP"; then
10381 ac_ct_STRIP=$STRIP
10382 # Extract the first word of "strip", so it can be a program name with args.
10383set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010385$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010386if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010387 $as_echo_n "(cached) " >&6
10388else
10389 if test -n "$ac_ct_STRIP"; then
10390 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10391else
10392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10393for as_dir in $PATH
10394do
10395 IFS=$as_save_IFS
10396 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010397 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10399 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +000010400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010401 break 2
10402 fi
10403done
cristy8b350f62009-11-15 23:12:43 +000010404 done
cristy3ed852e2009-09-05 21:47:34 +000010405IFS=$as_save_IFS
10406
10407fi
10408fi
10409ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10410if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010412$as_echo "$ac_ct_STRIP" >&6; }
10413else
cristy8b350f62009-11-15 23:12:43 +000010414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010415$as_echo "no" >&6; }
10416fi
10417
10418 if test "x$ac_ct_STRIP" = x; then
10419 STRIP=":"
10420 else
10421 case $cross_compiling:$ac_tool_warned in
10422yes:)
cristy8b350f62009-11-15 23:12:43 +000010423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10425ac_tool_warned=yes ;;
10426esac
10427 STRIP=$ac_ct_STRIP
10428 fi
10429else
10430 STRIP="$ac_cv_prog_STRIP"
10431fi
10432
10433test -z "$STRIP" && STRIP=:
10434
10435
10436
10437
10438
10439
10440if test -n "$ac_tool_prefix"; then
10441 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10442set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010444$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010445if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010446 $as_echo_n "(cached) " >&6
10447else
10448 if test -n "$RANLIB"; then
10449 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10450else
10451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10452for as_dir in $PATH
10453do
10454 IFS=$as_save_IFS
10455 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010456 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10458 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +000010459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010460 break 2
10461 fi
10462done
cristy8b350f62009-11-15 23:12:43 +000010463 done
cristy3ed852e2009-09-05 21:47:34 +000010464IFS=$as_save_IFS
10465
10466fi
10467fi
10468RANLIB=$ac_cv_prog_RANLIB
10469if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010471$as_echo "$RANLIB" >&6; }
10472else
cristy8b350f62009-11-15 23:12:43 +000010473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010474$as_echo "no" >&6; }
10475fi
10476
10477
10478fi
10479if test -z "$ac_cv_prog_RANLIB"; then
10480 ac_ct_RANLIB=$RANLIB
10481 # Extract the first word of "ranlib", so it can be a program name with args.
10482set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010484$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010485if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010486 $as_echo_n "(cached) " >&6
10487else
10488 if test -n "$ac_ct_RANLIB"; then
10489 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10490else
10491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10492for as_dir in $PATH
10493do
10494 IFS=$as_save_IFS
10495 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010496 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10498 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +000010499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010500 break 2
10501 fi
10502done
cristy8b350f62009-11-15 23:12:43 +000010503 done
cristy3ed852e2009-09-05 21:47:34 +000010504IFS=$as_save_IFS
10505
10506fi
10507fi
10508ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10509if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010511$as_echo "$ac_ct_RANLIB" >&6; }
10512else
cristy8b350f62009-11-15 23:12:43 +000010513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010514$as_echo "no" >&6; }
10515fi
10516
10517 if test "x$ac_ct_RANLIB" = x; then
10518 RANLIB=":"
10519 else
10520 case $cross_compiling:$ac_tool_warned in
10521yes:)
cristy8b350f62009-11-15 23:12:43 +000010522{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010523$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10524ac_tool_warned=yes ;;
10525esac
10526 RANLIB=$ac_ct_RANLIB
10527 fi
10528else
10529 RANLIB="$ac_cv_prog_RANLIB"
10530fi
10531
10532test -z "$RANLIB" && RANLIB=:
10533
10534
10535
10536
10537
10538
10539# Determine commands to create old-style static archives.
10540old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10541old_postinstall_cmds='chmod 644 $oldlib'
10542old_postuninstall_cmds=
10543
10544if test -n "$RANLIB"; then
10545 case $host_os in
10546 openbsd*)
10547 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10548 ;;
10549 *)
10550 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10551 ;;
10552 esac
10553 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10554fi
10555
cristyfd9dcd42010-08-08 18:07:02 +000010556case $host_os in
10557 darwin*)
10558 lock_old_archive_extraction=yes ;;
10559 *)
10560 lock_old_archive_extraction=no ;;
10561esac
10562
10563
10564
10565
10566
10567
cristy3ed852e2009-09-05 21:47:34 +000010568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601# If no C compiler was specified, use CC.
10602LTCC=${LTCC-"$CC"}
10603
10604# If no C compiler flags were specified, use CFLAGS.
10605LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10606
10607# Allow CC to be a program name with arguments.
10608compiler=$CC
10609
10610
10611# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +000010612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +000010613$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010614if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010615 $as_echo_n "(cached) " >&6
10616else
10617
10618# These are sane defaults that work on at least a few old systems.
10619# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10620
10621# Character class describing NM global symbol codes.
10622symcode='[BCDEGRST]'
10623
10624# Regexp to match symbols that can be accessed directly from C.
10625sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10626
10627# Define system-specific variables.
10628case $host_os in
10629aix*)
10630 symcode='[BCDT]'
10631 ;;
10632cygwin* | mingw* | pw32* | cegcc*)
10633 symcode='[ABCDGISTW]'
10634 ;;
10635hpux*)
10636 if test "$host_cpu" = ia64; then
10637 symcode='[ABCDEGRST]'
10638 fi
10639 ;;
10640irix* | nonstopux*)
10641 symcode='[BCDEGRST]'
10642 ;;
10643osf*)
10644 symcode='[BCDEGQRST]'
10645 ;;
10646solaris*)
10647 symcode='[BDRT]'
10648 ;;
10649sco3.2v5*)
10650 symcode='[DT]'
10651 ;;
10652sysv4.2uw2*)
10653 symcode='[DT]'
10654 ;;
10655sysv5* | sco5v6* | unixware* | OpenUNIX*)
10656 symcode='[ABDT]'
10657 ;;
10658sysv4)
10659 symcode='[DFNSTU]'
10660 ;;
10661esac
10662
10663# If we're using GNU nm, then use its standard symbol codes.
10664case `$NM -V 2>&1` in
10665*GNU* | *'with BFD'*)
10666 symcode='[ABCDGIRSTW]' ;;
10667esac
10668
10669# Transform an extracted symbol line into a proper C declaration.
10670# Some systems (esp. on ia64) link data and code symbols differently,
10671# so use this general approach.
10672lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10673
10674# Transform an extracted symbol line into symbol name and symbol address
10675lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10676lt_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'"
10677
10678# Handle CRLF in mingw tool chain
10679opt_cr=
10680case $build_os in
10681mingw*)
10682 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10683 ;;
10684esac
10685
10686# Try without a prefix underscore, then with it.
10687for ac_symprfx in "" "_"; do
10688
10689 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10690 symxfrm="\\1 $ac_symprfx\\2 \\2"
10691
10692 # Write the raw and C identifiers.
10693 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10694 # Fake it for dumpbin and say T for any non-static function
10695 # and D for any global variable.
10696 # Also find C++ and __fastcall symbols from MSVC++,
10697 # which start with @ or ?.
10698 lt_cv_sys_global_symbol_pipe="$AWK '"\
10699" {last_section=section; section=\$ 3};"\
10700" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10701" \$ 0!~/External *\|/{next};"\
10702" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10703" {if(hide[section]) next};"\
10704" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10705" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10706" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10707" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10708" ' prfx=^$ac_symprfx"
10709 else
10710 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10711 fi
10712
10713 # Check to see that the pipe works correctly.
10714 pipe_works=no
10715
10716 rm -f conftest*
10717 cat > conftest.$ac_ext <<_LT_EOF
10718#ifdef __cplusplus
10719extern "C" {
10720#endif
10721char nm_test_var;
10722void nm_test_func(void);
10723void nm_test_func(void){}
10724#ifdef __cplusplus
10725}
10726#endif
10727int main(){nm_test_var='a';nm_test_func();return(0);}
10728_LT_EOF
10729
cristy8b350f62009-11-15 23:12:43 +000010730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010731 (eval $ac_compile) 2>&5
10732 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10734 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010735 # Now try to grab the symbols.
10736 nlist=conftest.nm
cristyfd9dcd42010-08-08 18:07:02 +000010737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10738 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +000010739 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10741 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000010742 # Try sorting and uniquifying the output.
10743 if sort "$nlist" | uniq > "$nlist"T; then
10744 mv -f "$nlist"T "$nlist"
10745 else
10746 rm -f "$nlist"T
10747 fi
10748
10749 # Make sure that we snagged all the symbols we need.
10750 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10751 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10752 cat <<_LT_EOF > conftest.$ac_ext
10753#ifdef __cplusplus
10754extern "C" {
10755#endif
10756
10757_LT_EOF
10758 # Now generate the symbol file.
10759 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10760
10761 cat <<_LT_EOF >> conftest.$ac_ext
10762
10763/* The mapping between symbol names and symbols. */
10764const struct {
10765 const char *name;
10766 void *address;
10767}
10768lt__PROGRAM__LTX_preloaded_symbols[] =
10769{
10770 { "@PROGRAM@", (void *) 0 },
10771_LT_EOF
10772 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10773 cat <<\_LT_EOF >> conftest.$ac_ext
10774 {0, (void *) 0}
10775};
10776
10777/* This works around a problem in FreeBSD linker */
10778#ifdef FREEBSD_WORKAROUND
10779static const void *lt_preloaded_setup() {
10780 return lt__PROGRAM__LTX_preloaded_symbols;
10781}
10782#endif
10783
10784#ifdef __cplusplus
10785}
10786#endif
10787_LT_EOF
10788 # Now try linking the two files.
10789 mv conftest.$ac_objext conftstm.$ac_objext
10790 lt_save_LIBS="$LIBS"
10791 lt_save_CFLAGS="$CFLAGS"
10792 LIBS="conftstm.$ac_objext"
10793 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +000010794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010795 (eval $ac_link) 2>&5
10796 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10798 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +000010799 pipe_works=yes
10800 fi
10801 LIBS="$lt_save_LIBS"
10802 CFLAGS="$lt_save_CFLAGS"
10803 else
10804 echo "cannot find nm_test_func in $nlist" >&5
10805 fi
10806 else
10807 echo "cannot find nm_test_var in $nlist" >&5
10808 fi
10809 else
10810 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10811 fi
10812 else
10813 echo "$progname: failed program was:" >&5
10814 cat conftest.$ac_ext >&5
10815 fi
10816 rm -rf conftest* conftst*
10817
10818 # Do not use the global_symbol_pipe unless it works.
10819 if test "$pipe_works" = yes; then
10820 break
10821 else
10822 lt_cv_sys_global_symbol_pipe=
10823 fi
10824done
10825
10826fi
10827
10828if test -z "$lt_cv_sys_global_symbol_pipe"; then
10829 lt_cv_sys_global_symbol_to_cdecl=
10830fi
10831if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +000010832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +000010833$as_echo "failed" >&6; }
10834else
cristy8b350f62009-11-15 23:12:43 +000010835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000010836$as_echo "ok" >&6; }
10837fi
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +000010861if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010862 enableval=$enable_libtool_lock;
10863fi
10864
10865test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10866
10867# Some flags need to be propagated to the compiler or linker for good
10868# libtool support.
10869case $host in
10870ia64-*-hpux*)
10871 # Find out which ABI we are using.
10872 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010874 (eval $ac_compile) 2>&5
10875 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10877 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010878 case `/usr/bin/file conftest.$ac_objext` in
10879 *ELF-32*)
10880 HPUX_IA64_MODE="32"
10881 ;;
10882 *ELF-64*)
10883 HPUX_IA64_MODE="64"
10884 ;;
10885 esac
10886 fi
10887 rm -rf conftest*
10888 ;;
10889*-*-irix6*)
10890 # Find out which ABI we are using.
cristyfd9dcd42010-08-08 18:07:02 +000010891 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010893 (eval $ac_compile) 2>&5
10894 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10896 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010897 if test "$lt_cv_prog_gnu_ld" = yes; then
10898 case `/usr/bin/file conftest.$ac_objext` in
10899 *32-bit*)
10900 LD="${LD-ld} -melf32bsmip"
10901 ;;
10902 *N32*)
10903 LD="${LD-ld} -melf32bmipn32"
10904 ;;
10905 *64-bit*)
10906 LD="${LD-ld} -melf64bmip"
10907 ;;
10908 esac
10909 else
10910 case `/usr/bin/file conftest.$ac_objext` in
10911 *32-bit*)
10912 LD="${LD-ld} -32"
10913 ;;
10914 *N32*)
10915 LD="${LD-ld} -n32"
10916 ;;
10917 *64-bit*)
10918 LD="${LD-ld} -64"
10919 ;;
10920 esac
10921 fi
10922 fi
10923 rm -rf conftest*
10924 ;;
10925
10926x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10927s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10928 # Find out which ABI we are using.
10929 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010931 (eval $ac_compile) 2>&5
10932 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10934 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010935 case `/usr/bin/file conftest.o` in
10936 *32-bit*)
10937 case $host in
10938 x86_64-*kfreebsd*-gnu)
10939 LD="${LD-ld} -m elf_i386_fbsd"
10940 ;;
10941 x86_64-*linux*)
10942 LD="${LD-ld} -m elf_i386"
10943 ;;
10944 ppc64-*linux*|powerpc64-*linux*)
10945 LD="${LD-ld} -m elf32ppclinux"
10946 ;;
10947 s390x-*linux*)
10948 LD="${LD-ld} -m elf_s390"
10949 ;;
10950 sparc64-*linux*)
10951 LD="${LD-ld} -m elf32_sparc"
10952 ;;
10953 esac
10954 ;;
10955 *64-bit*)
10956 case $host in
10957 x86_64-*kfreebsd*-gnu)
10958 LD="${LD-ld} -m elf_x86_64_fbsd"
10959 ;;
10960 x86_64-*linux*)
10961 LD="${LD-ld} -m elf_x86_64"
10962 ;;
10963 ppc*-*linux*|powerpc*-*linux*)
10964 LD="${LD-ld} -m elf64ppc"
10965 ;;
10966 s390*-*linux*|s390*-*tpf*)
10967 LD="${LD-ld} -m elf64_s390"
10968 ;;
10969 sparc*-*linux*)
10970 LD="${LD-ld} -m elf64_sparc"
10971 ;;
10972 esac
10973 ;;
10974 esac
10975 fi
10976 rm -rf conftest*
10977 ;;
10978
10979*-*-sco3.2v5*)
10980 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10981 SAVE_CFLAGS="$CFLAGS"
10982 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +000010983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000010984$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010985if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010986 $as_echo_n "(cached) " >&6
10987else
10988 ac_ext=c
10989ac_cpp='$CPP $CPPFLAGS'
10990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10992ac_compiler_gnu=$ac_cv_c_compiler_gnu
10993
cristy8b350f62009-11-15 23:12:43 +000010994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010995/* end confdefs.h. */
10996
10997int
10998main ()
10999{
11000
11001 ;
11002 return 0;
11003}
11004_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011005if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011006 lt_cv_cc_needs_belf=yes
11007else
cristy8b350f62009-11-15 23:12:43 +000011008 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +000011009fi
cristy8b350f62009-11-15 23:12:43 +000011010rm -f core conftest.err conftest.$ac_objext \
11011 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011012 ac_ext=c
11013ac_cpp='$CPP $CPPFLAGS'
11014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11016ac_compiler_gnu=$ac_cv_c_compiler_gnu
11017
11018fi
cristy8b350f62009-11-15 23:12:43 +000011019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000011020$as_echo "$lt_cv_cc_needs_belf" >&6; }
11021 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11022 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11023 CFLAGS="$SAVE_CFLAGS"
11024 fi
11025 ;;
11026sparc*-*solaris*)
11027 # Find out which ABI we are using.
11028 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000011030 (eval $ac_compile) 2>&5
11031 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000011032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11033 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000011034 case `/usr/bin/file conftest.o` in
11035 *64-bit*)
11036 case $lt_cv_prog_gnu_ld in
11037 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11038 *)
11039 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11040 LD="${LD-ld} -64"
11041 fi
11042 ;;
11043 esac
11044 ;;
11045 esac
11046 fi
11047 rm -rf conftest*
11048 ;;
11049esac
11050
11051need_locks="$enable_libtool_lock"
11052
11053
11054 case $host_os in
11055 rhapsody* | darwin*)
11056 if test -n "$ac_tool_prefix"; then
11057 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11058set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011060$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011061if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011062 $as_echo_n "(cached) " >&6
11063else
11064 if test -n "$DSYMUTIL"; then
11065 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11066else
11067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11068for as_dir in $PATH
11069do
11070 IFS=$as_save_IFS
11071 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011072 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11074 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011076 break 2
11077 fi
11078done
cristy8b350f62009-11-15 23:12:43 +000011079 done
cristy3ed852e2009-09-05 21:47:34 +000011080IFS=$as_save_IFS
11081
11082fi
11083fi
11084DSYMUTIL=$ac_cv_prog_DSYMUTIL
11085if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011087$as_echo "$DSYMUTIL" >&6; }
11088else
cristy8b350f62009-11-15 23:12:43 +000011089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011090$as_echo "no" >&6; }
11091fi
11092
11093
11094fi
11095if test -z "$ac_cv_prog_DSYMUTIL"; then
11096 ac_ct_DSYMUTIL=$DSYMUTIL
11097 # Extract the first word of "dsymutil", so it can be a program name with args.
11098set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011100$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011101if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011102 $as_echo_n "(cached) " >&6
11103else
11104 if test -n "$ac_ct_DSYMUTIL"; then
11105 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11106else
11107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11108for as_dir in $PATH
11109do
11110 IFS=$as_save_IFS
11111 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011112 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11114 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011116 break 2
11117 fi
11118done
cristy8b350f62009-11-15 23:12:43 +000011119 done
cristy3ed852e2009-09-05 21:47:34 +000011120IFS=$as_save_IFS
11121
11122fi
11123fi
11124ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11125if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011127$as_echo "$ac_ct_DSYMUTIL" >&6; }
11128else
cristy8b350f62009-11-15 23:12:43 +000011129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011130$as_echo "no" >&6; }
11131fi
11132
11133 if test "x$ac_ct_DSYMUTIL" = x; then
11134 DSYMUTIL=":"
11135 else
11136 case $cross_compiling:$ac_tool_warned in
11137yes:)
cristy8b350f62009-11-15 23:12:43 +000011138{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011139$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11140ac_tool_warned=yes ;;
11141esac
11142 DSYMUTIL=$ac_ct_DSYMUTIL
11143 fi
11144else
11145 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11146fi
11147
11148 if test -n "$ac_tool_prefix"; then
11149 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11150set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011152$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011153if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011154 $as_echo_n "(cached) " >&6
11155else
11156 if test -n "$NMEDIT"; then
11157 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11158else
11159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11160for as_dir in $PATH
11161do
11162 IFS=$as_save_IFS
11163 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011164 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11166 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +000011167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011168 break 2
11169 fi
11170done
cristy8b350f62009-11-15 23:12:43 +000011171 done
cristy3ed852e2009-09-05 21:47:34 +000011172IFS=$as_save_IFS
11173
11174fi
11175fi
11176NMEDIT=$ac_cv_prog_NMEDIT
11177if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011179$as_echo "$NMEDIT" >&6; }
11180else
cristy8b350f62009-11-15 23:12:43 +000011181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011182$as_echo "no" >&6; }
11183fi
11184
11185
11186fi
11187if test -z "$ac_cv_prog_NMEDIT"; then
11188 ac_ct_NMEDIT=$NMEDIT
11189 # Extract the first word of "nmedit", so it can be a program name with args.
11190set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011192$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011193if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011194 $as_echo_n "(cached) " >&6
11195else
11196 if test -n "$ac_ct_NMEDIT"; then
11197 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11198else
11199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11200for as_dir in $PATH
11201do
11202 IFS=$as_save_IFS
11203 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011204 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11206 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +000011207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011208 break 2
11209 fi
11210done
cristy8b350f62009-11-15 23:12:43 +000011211 done
cristy3ed852e2009-09-05 21:47:34 +000011212IFS=$as_save_IFS
11213
11214fi
11215fi
11216ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11217if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011219$as_echo "$ac_ct_NMEDIT" >&6; }
11220else
cristy8b350f62009-11-15 23:12:43 +000011221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011222$as_echo "no" >&6; }
11223fi
11224
11225 if test "x$ac_ct_NMEDIT" = x; then
11226 NMEDIT=":"
11227 else
11228 case $cross_compiling:$ac_tool_warned in
11229yes:)
cristy8b350f62009-11-15 23:12:43 +000011230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11232ac_tool_warned=yes ;;
11233esac
11234 NMEDIT=$ac_ct_NMEDIT
11235 fi
11236else
11237 NMEDIT="$ac_cv_prog_NMEDIT"
11238fi
11239
11240 if test -n "$ac_tool_prefix"; then
11241 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11242set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011244$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011245if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011246 $as_echo_n "(cached) " >&6
11247else
11248 if test -n "$LIPO"; then
11249 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11250else
11251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11252for as_dir in $PATH
11253do
11254 IFS=$as_save_IFS
11255 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011256 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11258 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +000011259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011260 break 2
11261 fi
11262done
cristy8b350f62009-11-15 23:12:43 +000011263 done
cristy3ed852e2009-09-05 21:47:34 +000011264IFS=$as_save_IFS
11265
11266fi
11267fi
11268LIPO=$ac_cv_prog_LIPO
11269if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011271$as_echo "$LIPO" >&6; }
11272else
cristy8b350f62009-11-15 23:12:43 +000011273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011274$as_echo "no" >&6; }
11275fi
11276
11277
11278fi
11279if test -z "$ac_cv_prog_LIPO"; then
11280 ac_ct_LIPO=$LIPO
11281 # Extract the first word of "lipo", so it can be a program name with args.
11282set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011284$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011285if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011286 $as_echo_n "(cached) " >&6
11287else
11288 if test -n "$ac_ct_LIPO"; then
11289 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11290else
11291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11292for as_dir in $PATH
11293do
11294 IFS=$as_save_IFS
11295 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011296 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11298 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +000011299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011300 break 2
11301 fi
11302done
cristy8b350f62009-11-15 23:12:43 +000011303 done
cristy3ed852e2009-09-05 21:47:34 +000011304IFS=$as_save_IFS
11305
11306fi
11307fi
11308ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11309if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011311$as_echo "$ac_ct_LIPO" >&6; }
11312else
cristy8b350f62009-11-15 23:12:43 +000011313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011314$as_echo "no" >&6; }
11315fi
11316
11317 if test "x$ac_ct_LIPO" = x; then
11318 LIPO=":"
11319 else
11320 case $cross_compiling:$ac_tool_warned in
11321yes:)
cristy8b350f62009-11-15 23:12:43 +000011322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11324ac_tool_warned=yes ;;
11325esac
11326 LIPO=$ac_ct_LIPO
11327 fi
11328else
11329 LIPO="$ac_cv_prog_LIPO"
11330fi
11331
11332 if test -n "$ac_tool_prefix"; then
11333 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11334set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011336$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011337if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011338 $as_echo_n "(cached) " >&6
11339else
11340 if test -n "$OTOOL"; then
11341 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11342else
11343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11344for as_dir in $PATH
11345do
11346 IFS=$as_save_IFS
11347 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011348 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11350 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +000011351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011352 break 2
11353 fi
11354done
cristy8b350f62009-11-15 23:12:43 +000011355 done
cristy3ed852e2009-09-05 21:47:34 +000011356IFS=$as_save_IFS
11357
11358fi
11359fi
11360OTOOL=$ac_cv_prog_OTOOL
11361if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011363$as_echo "$OTOOL" >&6; }
11364else
cristy8b350f62009-11-15 23:12:43 +000011365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011366$as_echo "no" >&6; }
11367fi
11368
11369
11370fi
11371if test -z "$ac_cv_prog_OTOOL"; then
11372 ac_ct_OTOOL=$OTOOL
11373 # Extract the first word of "otool", so it can be a program name with args.
11374set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011376$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011377if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011378 $as_echo_n "(cached) " >&6
11379else
11380 if test -n "$ac_ct_OTOOL"; then
11381 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11382else
11383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384for as_dir in $PATH
11385do
11386 IFS=$as_save_IFS
11387 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011388 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11390 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +000011391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011392 break 2
11393 fi
11394done
cristy8b350f62009-11-15 23:12:43 +000011395 done
cristy3ed852e2009-09-05 21:47:34 +000011396IFS=$as_save_IFS
11397
11398fi
11399fi
11400ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11401if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011403$as_echo "$ac_ct_OTOOL" >&6; }
11404else
cristy8b350f62009-11-15 23:12:43 +000011405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011406$as_echo "no" >&6; }
11407fi
11408
11409 if test "x$ac_ct_OTOOL" = x; then
11410 OTOOL=":"
11411 else
11412 case $cross_compiling:$ac_tool_warned in
11413yes:)
cristy8b350f62009-11-15 23:12:43 +000011414{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11416ac_tool_warned=yes ;;
11417esac
11418 OTOOL=$ac_ct_OTOOL
11419 fi
11420else
11421 OTOOL="$ac_cv_prog_OTOOL"
11422fi
11423
11424 if test -n "$ac_tool_prefix"; then
11425 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11426set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011428$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011429if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011430 $as_echo_n "(cached) " >&6
11431else
11432 if test -n "$OTOOL64"; then
11433 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11434else
11435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436for as_dir in $PATH
11437do
11438 IFS=$as_save_IFS
11439 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011440 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11442 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000011443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011444 break 2
11445 fi
11446done
cristy8b350f62009-11-15 23:12:43 +000011447 done
cristy3ed852e2009-09-05 21:47:34 +000011448IFS=$as_save_IFS
11449
11450fi
11451fi
11452OTOOL64=$ac_cv_prog_OTOOL64
11453if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011455$as_echo "$OTOOL64" >&6; }
11456else
cristy8b350f62009-11-15 23:12:43 +000011457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011458$as_echo "no" >&6; }
11459fi
11460
11461
11462fi
11463if test -z "$ac_cv_prog_OTOOL64"; then
11464 ac_ct_OTOOL64=$OTOOL64
11465 # Extract the first word of "otool64", so it can be a program name with args.
11466set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011468$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011469if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011470 $as_echo_n "(cached) " >&6
11471else
11472 if test -n "$ac_ct_OTOOL64"; then
11473 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11474else
11475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11476for as_dir in $PATH
11477do
11478 IFS=$as_save_IFS
11479 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011480 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11482 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000011483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011484 break 2
11485 fi
11486done
cristy8b350f62009-11-15 23:12:43 +000011487 done
cristy3ed852e2009-09-05 21:47:34 +000011488IFS=$as_save_IFS
11489
11490fi
11491fi
11492ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11493if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011495$as_echo "$ac_ct_OTOOL64" >&6; }
11496else
cristy8b350f62009-11-15 23:12:43 +000011497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011498$as_echo "no" >&6; }
11499fi
11500
11501 if test "x$ac_ct_OTOOL64" = x; then
11502 OTOOL64=":"
11503 else
11504 case $cross_compiling:$ac_tool_warned in
11505yes:)
cristy8b350f62009-11-15 23:12:43 +000011506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11508ac_tool_warned=yes ;;
11509esac
11510 OTOOL64=$ac_ct_OTOOL64
11511 fi
11512else
11513 OTOOL64="$ac_cv_prog_OTOOL64"
11514fi
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
cristy8b350f62009-11-15 23:12:43 +000011542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011543$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011544if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011545 $as_echo_n "(cached) " >&6
11546else
11547 lt_cv_apple_cc_single_mod=no
11548 if test -z "${LT_MULTI_MODULE}"; then
11549 # By default we will add the -single_module flag. You can override
11550 # by either setting the environment variable LT_MULTI_MODULE
11551 # non-empty at configure time, or by adding -multi_module to the
11552 # link flags.
11553 rm -rf libconftest.dylib*
11554 echo "int foo(void){return 1;}" > conftest.c
11555 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11556-dynamiclib -Wl,-single_module conftest.c" >&5
11557 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11558 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11559 _lt_result=$?
11560 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11561 lt_cv_apple_cc_single_mod=yes
11562 else
11563 cat conftest.err >&5
11564 fi
11565 rm -rf libconftest.dylib*
11566 rm -f conftest.*
11567 fi
11568fi
cristy8b350f62009-11-15 23:12:43 +000011569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000011570$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011572$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011573if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011574 $as_echo_n "(cached) " >&6
11575else
11576 lt_cv_ld_exported_symbols_list=no
11577 save_LDFLAGS=$LDFLAGS
11578 echo "_main" > conftest.sym
11579 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000011580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011581/* end confdefs.h. */
11582
11583int
11584main ()
11585{
11586
11587 ;
11588 return 0;
11589}
11590_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011591if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011592 lt_cv_ld_exported_symbols_list=yes
11593else
cristy8b350f62009-11-15 23:12:43 +000011594 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000011595fi
cristy8b350f62009-11-15 23:12:43 +000011596rm -f core conftest.err conftest.$ac_objext \
11597 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011598 LDFLAGS="$save_LDFLAGS"
11599
11600fi
cristy8b350f62009-11-15 23:12:43 +000011601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000011602$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000011603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11604$as_echo_n "checking for -force_load linker flag... " >&6; }
11605if test "${lt_cv_ld_force_load+set}" = set; then :
11606 $as_echo_n "(cached) " >&6
11607else
11608 lt_cv_ld_force_load=no
11609 cat > conftest.c << _LT_EOF
11610int forced_loaded() { return 2;}
11611_LT_EOF
11612 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11613 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11614 echo "$AR cru libconftest.a conftest.o" >&5
11615 $AR cru libconftest.a conftest.o 2>&5
11616 echo "$RANLIB libconftest.a" >&5
11617 $RANLIB libconftest.a 2>&5
11618 cat > conftest.c << _LT_EOF
11619int main() { return 0;}
11620_LT_EOF
11621 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11622 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11623 _lt_result=$?
11624 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11625 lt_cv_ld_force_load=yes
11626 else
11627 cat conftest.err >&5
11628 fi
11629 rm -f conftest.err libconftest.a conftest conftest.c
11630 rm -rf conftest.dSYM
11631
11632fi
11633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11634$as_echo "$lt_cv_ld_force_load" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011635 case $host_os in
11636 rhapsody* | darwin1.[012])
11637 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11638 darwin1.*)
11639 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11640 darwin*) # darwin 5.x on
11641 # if running on 10.5 or later, the deployment target defaults
11642 # to the OS version, if on x86, and 10.4, the deployment
11643 # target defaults to 10.4. Don't you love it?
11644 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11645 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11646 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11647 10.[012]*)
11648 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11649 10.*)
11650 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11651 esac
11652 ;;
11653 esac
11654 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11655 _lt_dar_single_mod='$single_module'
11656 fi
11657 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11658 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11659 else
11660 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11661 fi
cristyfd9dcd42010-08-08 18:07:02 +000011662 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy3ed852e2009-09-05 21:47:34 +000011663 _lt_dsymutil='~$DSYMUTIL $lib || :'
11664 else
11665 _lt_dsymutil=
11666 fi
11667 ;;
11668 esac
11669
cristy3ed852e2009-09-05 21:47:34 +000011670for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000011671do :
11672 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11673"
11674if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011675 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011676#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000011677_ACEOF
11678
11679fi
11680
11681done
11682
11683
11684
cristy3ed852e2009-09-05 21:47:34 +000011685
11686
11687
11688# Set options
11689enable_win32_dll=yes
11690
11691case $host in
cristyfd9dcd42010-08-08 18:07:02 +000011692*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000011693 if test -n "$ac_tool_prefix"; then
11694 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11695set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011697$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011698if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011699 $as_echo_n "(cached) " >&6
11700else
11701 if test -n "$AS"; then
11702 ac_cv_prog_AS="$AS" # Let the user override the test.
11703else
11704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705for as_dir in $PATH
11706do
11707 IFS=$as_save_IFS
11708 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011709 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11711 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000011712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011713 break 2
11714 fi
11715done
cristy8b350f62009-11-15 23:12:43 +000011716 done
cristy3ed852e2009-09-05 21:47:34 +000011717IFS=$as_save_IFS
11718
11719fi
11720fi
11721AS=$ac_cv_prog_AS
11722if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000011723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011724$as_echo "$AS" >&6; }
11725else
cristy8b350f62009-11-15 23:12:43 +000011726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011727$as_echo "no" >&6; }
11728fi
11729
11730
11731fi
11732if test -z "$ac_cv_prog_AS"; then
11733 ac_ct_AS=$AS
11734 # Extract the first word of "as", so it can be a program name with args.
11735set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011737$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011738if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011739 $as_echo_n "(cached) " >&6
11740else
11741 if test -n "$ac_ct_AS"; then
11742 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11743else
11744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11745for as_dir in $PATH
11746do
11747 IFS=$as_save_IFS
11748 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011749 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11751 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000011752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011753 break 2
11754 fi
11755done
cristy8b350f62009-11-15 23:12:43 +000011756 done
cristy3ed852e2009-09-05 21:47:34 +000011757IFS=$as_save_IFS
11758
11759fi
11760fi
11761ac_ct_AS=$ac_cv_prog_ac_ct_AS
11762if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000011763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011764$as_echo "$ac_ct_AS" >&6; }
11765else
cristy8b350f62009-11-15 23:12:43 +000011766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011767$as_echo "no" >&6; }
11768fi
11769
11770 if test "x$ac_ct_AS" = x; then
11771 AS="false"
11772 else
11773 case $cross_compiling:$ac_tool_warned in
11774yes:)
cristy8b350f62009-11-15 23:12:43 +000011775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11777ac_tool_warned=yes ;;
11778esac
11779 AS=$ac_ct_AS
11780 fi
11781else
11782 AS="$ac_cv_prog_AS"
11783fi
11784
11785 if test -n "$ac_tool_prefix"; then
11786 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11787set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011789$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011790if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011791 $as_echo_n "(cached) " >&6
11792else
11793 if test -n "$DLLTOOL"; then
11794 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11795else
11796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797for as_dir in $PATH
11798do
11799 IFS=$as_save_IFS
11800 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011801 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11803 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000011804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011805 break 2
11806 fi
11807done
cristy8b350f62009-11-15 23:12:43 +000011808 done
cristy3ed852e2009-09-05 21:47:34 +000011809IFS=$as_save_IFS
11810
11811fi
11812fi
11813DLLTOOL=$ac_cv_prog_DLLTOOL
11814if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011816$as_echo "$DLLTOOL" >&6; }
11817else
cristy8b350f62009-11-15 23:12:43 +000011818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011819$as_echo "no" >&6; }
11820fi
11821
11822
11823fi
11824if test -z "$ac_cv_prog_DLLTOOL"; then
11825 ac_ct_DLLTOOL=$DLLTOOL
11826 # Extract the first word of "dlltool", so it can be a program name with args.
11827set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011829$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011830if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011831 $as_echo_n "(cached) " >&6
11832else
11833 if test -n "$ac_ct_DLLTOOL"; then
11834 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11835else
11836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11837for as_dir in $PATH
11838do
11839 IFS=$as_save_IFS
11840 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011841 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11843 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000011844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011845 break 2
11846 fi
11847done
cristy8b350f62009-11-15 23:12:43 +000011848 done
cristy3ed852e2009-09-05 21:47:34 +000011849IFS=$as_save_IFS
11850
11851fi
11852fi
11853ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11854if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011856$as_echo "$ac_ct_DLLTOOL" >&6; }
11857else
cristy8b350f62009-11-15 23:12:43 +000011858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011859$as_echo "no" >&6; }
11860fi
11861
11862 if test "x$ac_ct_DLLTOOL" = x; then
11863 DLLTOOL="false"
11864 else
11865 case $cross_compiling:$ac_tool_warned in
11866yes:)
cristy8b350f62009-11-15 23:12:43 +000011867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11869ac_tool_warned=yes ;;
11870esac
11871 DLLTOOL=$ac_ct_DLLTOOL
11872 fi
11873else
11874 DLLTOOL="$ac_cv_prog_DLLTOOL"
11875fi
11876
11877 if test -n "$ac_tool_prefix"; then
11878 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11879set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011881$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011882if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011883 $as_echo_n "(cached) " >&6
11884else
11885 if test -n "$OBJDUMP"; then
11886 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11887else
11888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11889for as_dir in $PATH
11890do
11891 IFS=$as_save_IFS
11892 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011893 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11895 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000011896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011897 break 2
11898 fi
11899done
cristy8b350f62009-11-15 23:12:43 +000011900 done
cristy3ed852e2009-09-05 21:47:34 +000011901IFS=$as_save_IFS
11902
11903fi
11904fi
11905OBJDUMP=$ac_cv_prog_OBJDUMP
11906if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011908$as_echo "$OBJDUMP" >&6; }
11909else
cristy8b350f62009-11-15 23:12:43 +000011910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011911$as_echo "no" >&6; }
11912fi
11913
11914
11915fi
11916if test -z "$ac_cv_prog_OBJDUMP"; then
11917 ac_ct_OBJDUMP=$OBJDUMP
11918 # Extract the first word of "objdump", so it can be a program name with args.
11919set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011921$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011922if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011923 $as_echo_n "(cached) " >&6
11924else
11925 if test -n "$ac_ct_OBJDUMP"; then
11926 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11927else
11928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11929for as_dir in $PATH
11930do
11931 IFS=$as_save_IFS
11932 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011933 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11935 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000011936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011937 break 2
11938 fi
11939done
cristy8b350f62009-11-15 23:12:43 +000011940 done
cristy3ed852e2009-09-05 21:47:34 +000011941IFS=$as_save_IFS
11942
11943fi
11944fi
11945ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11946if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011948$as_echo "$ac_ct_OBJDUMP" >&6; }
11949else
cristy8b350f62009-11-15 23:12:43 +000011950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011951$as_echo "no" >&6; }
11952fi
11953
11954 if test "x$ac_ct_OBJDUMP" = x; then
11955 OBJDUMP="false"
11956 else
11957 case $cross_compiling:$ac_tool_warned in
11958yes:)
cristy8b350f62009-11-15 23:12:43 +000011959{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011960$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11961ac_tool_warned=yes ;;
11962esac
11963 OBJDUMP=$ac_ct_OBJDUMP
11964 fi
11965else
11966 OBJDUMP="$ac_cv_prog_OBJDUMP"
11967fi
11968
11969 ;;
11970esac
11971
11972test -z "$AS" && AS=as
11973
11974
11975
11976
11977
11978test -z "$DLLTOOL" && DLLTOOL=dlltool
11979
11980
11981
11982
11983
11984test -z "$OBJDUMP" && OBJDUMP=objdump
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000011995if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011996 enableval=$enable_shared; p=${PACKAGE-default}
11997 case $enableval in
11998 yes) enable_shared=yes ;;
11999 no) enable_shared=no ;;
12000 *)
12001 enable_shared=no
12002 # Look at the argument we got. We use all the common list separators.
12003 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12004 for pkg in $enableval; do
12005 IFS="$lt_save_ifs"
12006 if test "X$pkg" = "X$p"; then
12007 enable_shared=yes
12008 fi
12009 done
12010 IFS="$lt_save_ifs"
12011 ;;
12012 esac
12013else
12014 enable_shared=yes
12015fi
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000012026if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012027 enableval=$enable_static; p=${PACKAGE-default}
12028 case $enableval in
12029 yes) enable_static=yes ;;
12030 no) enable_static=no ;;
12031 *)
12032 enable_static=no
12033 # Look at the argument we got. We use all the common list separators.
12034 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12035 for pkg in $enableval; do
12036 IFS="$lt_save_ifs"
12037 if test "X$pkg" = "X$p"; then
12038 enable_static=yes
12039 fi
12040 done
12041 IFS="$lt_save_ifs"
12042 ;;
12043 esac
12044else
12045 enable_static=yes
12046fi
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000012058if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012059 withval=$with_pic; pic_mode="$withval"
12060else
12061 pic_mode=default
12062fi
12063
12064
12065test -z "$pic_mode" && pic_mode=default
12066
12067
12068
12069
12070
12071
12072
12073 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000012074if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012075 enableval=$enable_fast_install; p=${PACKAGE-default}
12076 case $enableval in
12077 yes) enable_fast_install=yes ;;
12078 no) enable_fast_install=no ;;
12079 *)
12080 enable_fast_install=no
12081 # Look at the argument we got. We use all the common list separators.
12082 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12083 for pkg in $enableval; do
12084 IFS="$lt_save_ifs"
12085 if test "X$pkg" = "X$p"; then
12086 enable_fast_install=yes
12087 fi
12088 done
12089 IFS="$lt_save_ifs"
12090 ;;
12091 esac
12092else
12093 enable_fast_install=yes
12094fi
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106# This can be used to rebuild libtool when needed
12107LIBTOOL_DEPS="$ltmain"
12108
12109# Always use our own libtool.
12110LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
cristyfd9dcd42010-08-08 18:07:02 +000012136
cristy3ed852e2009-09-05 21:47:34 +000012137test -z "$LN_S" && LN_S="ln -s"
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152if test -n "${ZSH_VERSION+set}" ; then
12153 setopt NO_GLOB_SUBST
12154fi
12155
cristy8b350f62009-11-15 23:12:43 +000012156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012157$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012158if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012159 $as_echo_n "(cached) " >&6
12160else
12161 rm -f .libs 2>/dev/null
12162mkdir .libs 2>/dev/null
12163if test -d .libs; then
12164 lt_cv_objdir=.libs
12165else
12166 # MS-DOS does not allow filenames that begin with a dot.
12167 lt_cv_objdir=_libs
12168fi
12169rmdir .libs 2>/dev/null
12170fi
cristy8b350f62009-11-15 23:12:43 +000012171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012172$as_echo "$lt_cv_objdir" >&6; }
12173objdir=$lt_cv_objdir
12174
12175
12176
12177
12178
12179cat >>confdefs.h <<_ACEOF
12180#define LT_OBJDIR "$lt_cv_objdir/"
12181_ACEOF
12182
12183
12184
12185
cristy3ed852e2009-09-05 21:47:34 +000012186case $host_os in
12187aix3*)
12188 # AIX sometimes has problems with the GCC collect2 program. For some
12189 # reason, if we set the COLLECT_NAMES environment variable, the problems
12190 # vanish in a puff of smoke.
12191 if test "X${COLLECT_NAMES+set}" != Xset; then
12192 COLLECT_NAMES=
12193 export COLLECT_NAMES
12194 fi
12195 ;;
12196esac
12197
cristy3ed852e2009-09-05 21:47:34 +000012198# Global variables:
12199ofile=libtool
12200can_build_shared=yes
12201
12202# All known linkers require a `.a' archive for static linking (except MSVC,
12203# which needs '.lib').
12204libext=a
12205
12206with_gnu_ld="$lt_cv_prog_gnu_ld"
12207
12208old_CC="$CC"
12209old_CFLAGS="$CFLAGS"
12210
12211# Set sane defaults for various variables
12212test -z "$CC" && CC=cc
12213test -z "$LTCC" && LTCC=$CC
12214test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12215test -z "$LD" && LD=ld
12216test -z "$ac_objext" && ac_objext=o
12217
12218for cc_temp in $compiler""; do
12219 case $cc_temp in
12220 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12221 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12222 \-*) ;;
12223 *) break;;
12224 esac
12225done
cristyfd9dcd42010-08-08 18:07:02 +000012226cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000012227
12228
12229# Only perform the check for file, if the check method requires it
12230test -z "$MAGIC_CMD" && MAGIC_CMD=file
12231case $deplibs_check_method in
12232file_magic*)
12233 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000012234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012235$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012236if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012237 $as_echo_n "(cached) " >&6
12238else
12239 case $MAGIC_CMD in
12240[\\/*] | ?:[\\/]*)
12241 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12242 ;;
12243*)
12244 lt_save_MAGIC_CMD="$MAGIC_CMD"
12245 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12246 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12247 for ac_dir in $ac_dummy; do
12248 IFS="$lt_save_ifs"
12249 test -z "$ac_dir" && ac_dir=.
12250 if test -f $ac_dir/${ac_tool_prefix}file; then
12251 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12252 if test -n "$file_magic_test_file"; then
12253 case $deplibs_check_method in
12254 "file_magic "*)
12255 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12256 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12257 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12258 $EGREP "$file_magic_regex" > /dev/null; then
12259 :
12260 else
12261 cat <<_LT_EOF 1>&2
12262
12263*** Warning: the command libtool uses to detect shared libraries,
12264*** $file_magic_cmd, produces output that libtool cannot recognize.
12265*** The result is that libtool may fail to recognize shared libraries
12266*** as such. This will affect the creation of libtool libraries that
12267*** depend on shared libraries, but programs linked with such libtool
12268*** libraries will work regardless of this problem. Nevertheless, you
12269*** may want to report the problem to your system manager and/or to
12270*** bug-libtool@gnu.org
12271
12272_LT_EOF
12273 fi ;;
12274 esac
12275 fi
12276 break
12277 fi
12278 done
12279 IFS="$lt_save_ifs"
12280 MAGIC_CMD="$lt_save_MAGIC_CMD"
12281 ;;
12282esac
12283fi
12284
12285MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12286if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012288$as_echo "$MAGIC_CMD" >&6; }
12289else
cristy8b350f62009-11-15 23:12:43 +000012290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012291$as_echo "no" >&6; }
12292fi
12293
12294
12295
12296
12297
12298if test -z "$lt_cv_path_MAGIC_CMD"; then
12299 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000012300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012301$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012302if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012303 $as_echo_n "(cached) " >&6
12304else
12305 case $MAGIC_CMD in
12306[\\/*] | ?:[\\/]*)
12307 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12308 ;;
12309*)
12310 lt_save_MAGIC_CMD="$MAGIC_CMD"
12311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12312 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12313 for ac_dir in $ac_dummy; do
12314 IFS="$lt_save_ifs"
12315 test -z "$ac_dir" && ac_dir=.
12316 if test -f $ac_dir/file; then
12317 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12318 if test -n "$file_magic_test_file"; then
12319 case $deplibs_check_method in
12320 "file_magic "*)
12321 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12322 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12323 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12324 $EGREP "$file_magic_regex" > /dev/null; then
12325 :
12326 else
12327 cat <<_LT_EOF 1>&2
12328
12329*** Warning: the command libtool uses to detect shared libraries,
12330*** $file_magic_cmd, produces output that libtool cannot recognize.
12331*** The result is that libtool may fail to recognize shared libraries
12332*** as such. This will affect the creation of libtool libraries that
12333*** depend on shared libraries, but programs linked with such libtool
12334*** libraries will work regardless of this problem. Nevertheless, you
12335*** may want to report the problem to your system manager and/or to
12336*** bug-libtool@gnu.org
12337
12338_LT_EOF
12339 fi ;;
12340 esac
12341 fi
12342 break
12343 fi
12344 done
12345 IFS="$lt_save_ifs"
12346 MAGIC_CMD="$lt_save_MAGIC_CMD"
12347 ;;
12348esac
12349fi
12350
12351MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12352if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012354$as_echo "$MAGIC_CMD" >&6; }
12355else
cristy8b350f62009-11-15 23:12:43 +000012356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012357$as_echo "no" >&6; }
12358fi
12359
12360
12361 else
12362 MAGIC_CMD=:
12363 fi
12364fi
12365
12366 fi
12367 ;;
12368esac
12369
12370# Use C for the default configuration in the libtool script
12371
12372lt_save_CC="$CC"
12373ac_ext=c
12374ac_cpp='$CPP $CPPFLAGS'
12375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12377ac_compiler_gnu=$ac_cv_c_compiler_gnu
12378
12379
12380# Source file extension for C test sources.
12381ac_ext=c
12382
12383# Object file extension for compiled C test sources.
12384objext=o
12385objext=$objext
12386
12387# Code to be used in simple compile tests
12388lt_simple_compile_test_code="int some_variable = 0;"
12389
12390# Code to be used in simple link tests
12391lt_simple_link_test_code='int main(){return(0);}'
12392
12393
12394
12395
12396
12397
12398
12399# If no C compiler was specified, use CC.
12400LTCC=${LTCC-"$CC"}
12401
12402# If no C compiler flags were specified, use CFLAGS.
12403LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12404
12405# Allow CC to be a program name with arguments.
12406compiler=$CC
12407
12408# Save the default compiler, since it gets overwritten when the other
12409# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12410compiler_DEFAULT=$CC
12411
12412# save warnings/boilerplate of simple test code
12413ac_outfile=conftest.$ac_objext
12414echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12415eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12416_lt_compiler_boilerplate=`cat conftest.err`
12417$RM conftest*
12418
12419ac_outfile=conftest.$ac_objext
12420echo "$lt_simple_link_test_code" >conftest.$ac_ext
12421eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12422_lt_linker_boilerplate=`cat conftest.err`
12423$RM -r conftest*
12424
12425
12426## CAVEAT EMPTOR:
12427## There is no encapsulation within the following macros, do not change
12428## the running order or otherwise move them around unless you know exactly
12429## what you are doing...
12430if test -n "$compiler"; then
12431
12432lt_prog_compiler_no_builtin_flag=
12433
12434if test "$GCC" = yes; then
cristyfd9dcd42010-08-08 18:07:02 +000012435 case $cc_basename in
12436 nvcc*)
12437 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12438 *)
12439 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12440 esac
cristy3ed852e2009-09-05 21:47:34 +000012441
cristy8b350f62009-11-15 23:12:43 +000012442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012443$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012444if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012445 $as_echo_n "(cached) " >&6
12446else
12447 lt_cv_prog_compiler_rtti_exceptions=no
12448 ac_outfile=conftest.$ac_objext
12449 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12450 lt_compiler_flag="-fno-rtti -fno-exceptions"
12451 # Insert the option either (1) after the last *FLAGS variable, or
12452 # (2) before a word containing "conftest.", or (3) at the end.
12453 # Note that $ac_compile itself does not contain backslashes and begins
12454 # with a dollar sign (not a hyphen), so the echo should work correctly.
12455 # The option is referenced via a variable to avoid confusing sed.
12456 lt_compile=`echo "$ac_compile" | $SED \
12457 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12458 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12459 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000012460 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012461 (eval "$lt_compile" 2>conftest.err)
12462 ac_status=$?
12463 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000012464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012465 if (exit $ac_status) && test -s "$ac_outfile"; then
12466 # The compiler can only warn and ignore the option if not recognized
12467 # So say no if there are warnings other than the usual output.
cristyfd9dcd42010-08-08 18:07:02 +000012468 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12470 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12471 lt_cv_prog_compiler_rtti_exceptions=yes
12472 fi
12473 fi
12474 $RM conftest*
12475
12476fi
cristy8b350f62009-11-15 23:12:43 +000012477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012478$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12479
12480if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12481 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12482else
12483 :
12484fi
12485
12486fi
12487
12488
12489
12490
12491
12492
12493 lt_prog_compiler_wl=
12494lt_prog_compiler_pic=
12495lt_prog_compiler_static=
12496
cristy8b350f62009-11-15 23:12:43 +000012497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000012498$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12499
12500 if test "$GCC" = yes; then
12501 lt_prog_compiler_wl='-Wl,'
12502 lt_prog_compiler_static='-static'
12503
12504 case $host_os in
12505 aix*)
12506 # All AIX code is PIC.
12507 if test "$host_cpu" = ia64; then
12508 # AIX 5 now supports IA64 processor
12509 lt_prog_compiler_static='-Bstatic'
12510 fi
12511 ;;
12512
12513 amigaos*)
12514 case $host_cpu in
12515 powerpc)
12516 # see comment about AmigaOS4 .so support
12517 lt_prog_compiler_pic='-fPIC'
12518 ;;
12519 m68k)
12520 # FIXME: we need at least 68020 code to build shared libraries, but
12521 # adding the `-m68020' flag to GCC prevents building anything better,
12522 # like `-m68040'.
12523 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12524 ;;
12525 esac
12526 ;;
12527
12528 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12529 # PIC is the default for these OSes.
12530 ;;
12531
12532 mingw* | cygwin* | pw32* | os2* | cegcc*)
12533 # This hack is so that the source file can tell whether it is being
12534 # built for inclusion in a dll (and should export symbols for example).
12535 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12536 # (--disable-auto-import) libraries
12537 lt_prog_compiler_pic='-DDLL_EXPORT'
12538 ;;
12539
12540 darwin* | rhapsody*)
12541 # PIC is the default on this platform
12542 # Common symbols not allowed in MH_DYLIB files
12543 lt_prog_compiler_pic='-fno-common'
12544 ;;
12545
cristyfd9dcd42010-08-08 18:07:02 +000012546 haiku*)
12547 # PIC is the default for Haiku.
12548 # The "-static" flag exists, but is broken.
12549 lt_prog_compiler_static=
12550 ;;
12551
cristy3ed852e2009-09-05 21:47:34 +000012552 hpux*)
12553 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12554 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12555 # sets the default TLS model and affects inlining.
12556 case $host_cpu in
12557 hppa*64*)
12558 # +Z the default
12559 ;;
12560 *)
12561 lt_prog_compiler_pic='-fPIC'
12562 ;;
12563 esac
12564 ;;
12565
12566 interix[3-9]*)
12567 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12568 # Instead, we relocate shared libraries at runtime.
12569 ;;
12570
12571 msdosdjgpp*)
12572 # Just because we use GCC doesn't mean we suddenly get shared libraries
12573 # on systems that don't support them.
12574 lt_prog_compiler_can_build_shared=no
12575 enable_shared=no
12576 ;;
12577
12578 *nto* | *qnx*)
12579 # QNX uses GNU C++, but need to define -shared option too, otherwise
12580 # it will coredump.
12581 lt_prog_compiler_pic='-fPIC -shared'
12582 ;;
12583
12584 sysv4*MP*)
12585 if test -d /usr/nec; then
12586 lt_prog_compiler_pic=-Kconform_pic
12587 fi
12588 ;;
12589
12590 *)
12591 lt_prog_compiler_pic='-fPIC'
12592 ;;
12593 esac
cristyfd9dcd42010-08-08 18:07:02 +000012594
12595 case $cc_basename in
12596 nvcc*) # Cuda Compiler Driver 2.2
12597 lt_prog_compiler_wl='-Xlinker '
12598 lt_prog_compiler_pic='-Xcompiler -fPIC'
12599 ;;
12600 esac
cristy3ed852e2009-09-05 21:47:34 +000012601 else
12602 # PORTME Check for flag to pass linker flags through the system compiler.
12603 case $host_os in
12604 aix*)
12605 lt_prog_compiler_wl='-Wl,'
12606 if test "$host_cpu" = ia64; then
12607 # AIX 5 now supports IA64 processor
12608 lt_prog_compiler_static='-Bstatic'
12609 else
12610 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12611 fi
12612 ;;
12613
12614 mingw* | cygwin* | pw32* | os2* | cegcc*)
12615 # This hack is so that the source file can tell whether it is being
12616 # built for inclusion in a dll (and should export symbols for example).
12617 lt_prog_compiler_pic='-DDLL_EXPORT'
12618 ;;
12619
12620 hpux9* | hpux10* | hpux11*)
12621 lt_prog_compiler_wl='-Wl,'
12622 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12623 # not for PA HP-UX.
12624 case $host_cpu in
12625 hppa*64*|ia64*)
12626 # +Z the default
12627 ;;
12628 *)
12629 lt_prog_compiler_pic='+Z'
12630 ;;
12631 esac
12632 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12633 lt_prog_compiler_static='${wl}-a ${wl}archive'
12634 ;;
12635
12636 irix5* | irix6* | nonstopux*)
12637 lt_prog_compiler_wl='-Wl,'
12638 # PIC (with -KPIC) is the default.
12639 lt_prog_compiler_static='-non_shared'
12640 ;;
12641
cristyfd9dcd42010-08-08 18:07:02 +000012642 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000012643 case $cc_basename in
12644 # old Intel for x86_64 which still supported -KPIC.
12645 ecc*)
12646 lt_prog_compiler_wl='-Wl,'
12647 lt_prog_compiler_pic='-KPIC'
12648 lt_prog_compiler_static='-static'
12649 ;;
12650 # icc used to be incompatible with GCC.
12651 # ICC 10 doesn't accept -KPIC any more.
12652 icc* | ifort*)
12653 lt_prog_compiler_wl='-Wl,'
12654 lt_prog_compiler_pic='-fPIC'
12655 lt_prog_compiler_static='-static'
12656 ;;
12657 # Lahey Fortran 8.1.
12658 lf95*)
12659 lt_prog_compiler_wl='-Wl,'
12660 lt_prog_compiler_pic='--shared'
12661 lt_prog_compiler_static='--static'
12662 ;;
cristyfd9dcd42010-08-08 18:07:02 +000012663 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy3ed852e2009-09-05 21:47:34 +000012664 # Portland Group compilers (*not* the Pentium gcc compiler,
12665 # which looks to be a dead project)
12666 lt_prog_compiler_wl='-Wl,'
12667 lt_prog_compiler_pic='-fpic'
12668 lt_prog_compiler_static='-Bstatic'
12669 ;;
12670 ccc*)
12671 lt_prog_compiler_wl='-Wl,'
12672 # All Alpha code is PIC.
12673 lt_prog_compiler_static='-non_shared'
12674 ;;
cristyfd9dcd42010-08-08 18:07:02 +000012675 xl* | bgxl* | bgf* | mpixl*)
12676 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy3ed852e2009-09-05 21:47:34 +000012677 lt_prog_compiler_wl='-Wl,'
12678 lt_prog_compiler_pic='-qpic'
12679 lt_prog_compiler_static='-qstaticlink'
12680 ;;
12681 *)
12682 case `$CC -V 2>&1 | sed 5q` in
cristyfd9dcd42010-08-08 18:07:02 +000012683 *Sun\ F* | *Sun*Fortran*)
12684 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12685 lt_prog_compiler_pic='-KPIC'
12686 lt_prog_compiler_static='-Bstatic'
12687 lt_prog_compiler_wl=''
12688 ;;
cristy3ed852e2009-09-05 21:47:34 +000012689 *Sun\ C*)
12690 # Sun C 5.9
12691 lt_prog_compiler_pic='-KPIC'
12692 lt_prog_compiler_static='-Bstatic'
12693 lt_prog_compiler_wl='-Wl,'
12694 ;;
cristy3ed852e2009-09-05 21:47:34 +000012695 esac
12696 ;;
12697 esac
12698 ;;
12699
12700 newsos6)
12701 lt_prog_compiler_pic='-KPIC'
12702 lt_prog_compiler_static='-Bstatic'
12703 ;;
12704
12705 *nto* | *qnx*)
12706 # QNX uses GNU C++, but need to define -shared option too, otherwise
12707 # it will coredump.
12708 lt_prog_compiler_pic='-fPIC -shared'
12709 ;;
12710
12711 osf3* | osf4* | osf5*)
12712 lt_prog_compiler_wl='-Wl,'
12713 # All OSF/1 code is PIC.
12714 lt_prog_compiler_static='-non_shared'
12715 ;;
12716
12717 rdos*)
12718 lt_prog_compiler_static='-non_shared'
12719 ;;
12720
12721 solaris*)
12722 lt_prog_compiler_pic='-KPIC'
12723 lt_prog_compiler_static='-Bstatic'
12724 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000012725 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy3ed852e2009-09-05 21:47:34 +000012726 lt_prog_compiler_wl='-Qoption ld ';;
12727 *)
12728 lt_prog_compiler_wl='-Wl,';;
12729 esac
12730 ;;
12731
12732 sunos4*)
12733 lt_prog_compiler_wl='-Qoption ld '
12734 lt_prog_compiler_pic='-PIC'
12735 lt_prog_compiler_static='-Bstatic'
12736 ;;
12737
12738 sysv4 | sysv4.2uw2* | sysv4.3*)
12739 lt_prog_compiler_wl='-Wl,'
12740 lt_prog_compiler_pic='-KPIC'
12741 lt_prog_compiler_static='-Bstatic'
12742 ;;
12743
12744 sysv4*MP*)
12745 if test -d /usr/nec ;then
12746 lt_prog_compiler_pic='-Kconform_pic'
12747 lt_prog_compiler_static='-Bstatic'
12748 fi
12749 ;;
12750
12751 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12752 lt_prog_compiler_wl='-Wl,'
12753 lt_prog_compiler_pic='-KPIC'
12754 lt_prog_compiler_static='-Bstatic'
12755 ;;
12756
12757 unicos*)
12758 lt_prog_compiler_wl='-Wl,'
12759 lt_prog_compiler_can_build_shared=no
12760 ;;
12761
12762 uts4*)
12763 lt_prog_compiler_pic='-pic'
12764 lt_prog_compiler_static='-Bstatic'
12765 ;;
12766
12767 *)
12768 lt_prog_compiler_can_build_shared=no
12769 ;;
12770 esac
12771 fi
12772
12773case $host_os in
12774 # For platforms which do not support PIC, -DPIC is meaningless:
12775 *djgpp*)
12776 lt_prog_compiler_pic=
12777 ;;
12778 *)
12779 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12780 ;;
12781esac
cristy8b350f62009-11-15 23:12:43 +000012782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000012783$as_echo "$lt_prog_compiler_pic" >&6; }
12784
12785
12786
12787
12788
12789
12790#
12791# Check to make sure the PIC flag actually works.
12792#
12793if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000012794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012795$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012796if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012797 $as_echo_n "(cached) " >&6
12798else
12799 lt_cv_prog_compiler_pic_works=no
12800 ac_outfile=conftest.$ac_objext
12801 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12802 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12803 # Insert the option either (1) after the last *FLAGS variable, or
12804 # (2) before a word containing "conftest.", or (3) at the end.
12805 # Note that $ac_compile itself does not contain backslashes and begins
12806 # with a dollar sign (not a hyphen), so the echo should work correctly.
12807 # The option is referenced via a variable to avoid confusing sed.
12808 lt_compile=`echo "$ac_compile" | $SED \
12809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12811 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000012812 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012813 (eval "$lt_compile" 2>conftest.err)
12814 ac_status=$?
12815 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000012816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012817 if (exit $ac_status) && test -s "$ac_outfile"; then
12818 # The compiler can only warn and ignore the option if not recognized
12819 # So say no if there are warnings other than the usual output.
cristyfd9dcd42010-08-08 18:07:02 +000012820 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12822 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12823 lt_cv_prog_compiler_pic_works=yes
12824 fi
12825 fi
12826 $RM conftest*
12827
12828fi
cristy8b350f62009-11-15 23:12:43 +000012829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012830$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12831
12832if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12833 case $lt_prog_compiler_pic in
12834 "" | " "*) ;;
12835 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12836 esac
12837else
12838 lt_prog_compiler_pic=
12839 lt_prog_compiler_can_build_shared=no
12840fi
12841
12842fi
12843
12844
12845
12846
12847
12848
12849#
12850# Check to make sure the static flag actually works.
12851#
12852wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000012853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012854$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012855if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012856 $as_echo_n "(cached) " >&6
12857else
12858 lt_cv_prog_compiler_static_works=no
12859 save_LDFLAGS="$LDFLAGS"
12860 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12861 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12862 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12863 # The linker can only warn and ignore the option if not recognized
12864 # So say no if there are warnings
12865 if test -s conftest.err; then
12866 # Append any errors to the config.log.
12867 cat conftest.err 1>&5
cristyfd9dcd42010-08-08 18:07:02 +000012868 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12870 if diff conftest.exp conftest.er2 >/dev/null; then
12871 lt_cv_prog_compiler_static_works=yes
12872 fi
12873 else
12874 lt_cv_prog_compiler_static_works=yes
12875 fi
12876 fi
12877 $RM -r conftest*
12878 LDFLAGS="$save_LDFLAGS"
12879
12880fi
cristy8b350f62009-11-15 23:12:43 +000012881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012882$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12883
12884if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12885 :
12886else
12887 lt_prog_compiler_static=
12888fi
12889
12890
12891
12892
12893
12894
12895
cristy8b350f62009-11-15 23:12:43 +000012896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012897$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012898if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012899 $as_echo_n "(cached) " >&6
12900else
12901 lt_cv_prog_compiler_c_o=no
12902 $RM -r conftest 2>/dev/null
12903 mkdir conftest
12904 cd conftest
12905 mkdir out
12906 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12907
12908 lt_compiler_flag="-o out/conftest2.$ac_objext"
12909 # Insert the option either (1) after the last *FLAGS variable, or
12910 # (2) before a word containing "conftest.", or (3) at the end.
12911 # Note that $ac_compile itself does not contain backslashes and begins
12912 # with a dollar sign (not a hyphen), so the echo should work correctly.
12913 lt_compile=`echo "$ac_compile" | $SED \
12914 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12916 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000012917 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012918 (eval "$lt_compile" 2>out/conftest.err)
12919 ac_status=$?
12920 cat out/conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000012921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012922 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12923 then
12924 # The compiler can only warn and ignore the option if not recognized
12925 # So say no if there are warnings
cristyfd9dcd42010-08-08 18:07:02 +000012926 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012927 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12928 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12929 lt_cv_prog_compiler_c_o=yes
12930 fi
12931 fi
12932 chmod u+w . 2>&5
12933 $RM conftest*
12934 # SGI C++ compiler will create directory out/ii_files/ for
12935 # template instantiation
12936 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12937 $RM out/* && rmdir out
12938 cd ..
12939 $RM -r conftest
12940 $RM conftest*
12941
12942fi
cristy8b350f62009-11-15 23:12:43 +000012943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012944$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12945
12946
12947
12948
12949
12950
cristy8b350f62009-11-15 23:12:43 +000012951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012952$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012953if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012954 $as_echo_n "(cached) " >&6
12955else
12956 lt_cv_prog_compiler_c_o=no
12957 $RM -r conftest 2>/dev/null
12958 mkdir conftest
12959 cd conftest
12960 mkdir out
12961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12962
12963 lt_compiler_flag="-o out/conftest2.$ac_objext"
12964 # Insert the option either (1) after the last *FLAGS variable, or
12965 # (2) before a word containing "conftest.", or (3) at the end.
12966 # Note that $ac_compile itself does not contain backslashes and begins
12967 # with a dollar sign (not a hyphen), so the echo should work correctly.
12968 lt_compile=`echo "$ac_compile" | $SED \
12969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12971 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000012972 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012973 (eval "$lt_compile" 2>out/conftest.err)
12974 ac_status=$?
12975 cat out/conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000012976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012977 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12978 then
12979 # The compiler can only warn and ignore the option if not recognized
12980 # So say no if there are warnings
cristyfd9dcd42010-08-08 18:07:02 +000012981 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012982 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12983 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12984 lt_cv_prog_compiler_c_o=yes
12985 fi
12986 fi
12987 chmod u+w . 2>&5
12988 $RM conftest*
12989 # SGI C++ compiler will create directory out/ii_files/ for
12990 # template instantiation
12991 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12992 $RM out/* && rmdir out
12993 cd ..
12994 $RM -r conftest
12995 $RM conftest*
12996
12997fi
cristy8b350f62009-11-15 23:12:43 +000012998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012999$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13000
13001
13002
13003
13004hard_links="nottested"
13005if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13006 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000013007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013008$as_echo_n "checking if we can lock with hard links... " >&6; }
13009 hard_links=yes
13010 $RM conftest*
13011 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13012 touch conftest.a
13013 ln conftest.a conftest.b 2>&5 || hard_links=no
13014 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000013015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013016$as_echo "$hard_links" >&6; }
13017 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000013018 { $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 +000013019$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13020 need_locks=warn
13021 fi
13022else
13023 need_locks=no
13024fi
13025
13026
13027
13028
13029
13030
cristy8b350f62009-11-15 23:12:43 +000013031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000013032$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13033
13034 runpath_var=
13035 allow_undefined_flag=
13036 always_export_symbols=no
13037 archive_cmds=
13038 archive_expsym_cmds=
13039 compiler_needs_object=no
13040 enable_shared_with_static_runtimes=no
13041 export_dynamic_flag_spec=
13042 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13043 hardcode_automatic=no
13044 hardcode_direct=no
13045 hardcode_direct_absolute=no
13046 hardcode_libdir_flag_spec=
13047 hardcode_libdir_flag_spec_ld=
13048 hardcode_libdir_separator=
13049 hardcode_minus_L=no
13050 hardcode_shlibpath_var=unsupported
13051 inherit_rpath=no
13052 link_all_deplibs=unknown
13053 module_cmds=
13054 module_expsym_cmds=
13055 old_archive_from_new_cmds=
13056 old_archive_from_expsyms_cmds=
13057 thread_safe_flag_spec=
13058 whole_archive_flag_spec=
13059 # include_expsyms should be a list of space-separated symbols to be *always*
13060 # included in the symbol list
13061 include_expsyms=
13062 # exclude_expsyms can be an extended regexp of symbols to exclude
13063 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13064 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13065 # as well as any symbol that contains `d'.
13066 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13067 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13068 # platforms (ab)use it in PIC code, but their linkers get confused if
13069 # the symbol is explicitly referenced. Since portable code cannot
13070 # rely on this symbol name, it's probably fine to never include it in
13071 # preloaded symbol tables.
13072 # Exclude shared library initialization/finalization symbols.
13073 extract_expsyms_cmds=
13074
13075 case $host_os in
13076 cygwin* | mingw* | pw32* | cegcc*)
13077 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13078 # When not using gcc, we currently assume that we are using
13079 # Microsoft Visual C++.
13080 if test "$GCC" != yes; then
13081 with_gnu_ld=no
13082 fi
13083 ;;
13084 interix*)
13085 # we just hope/assume this is gcc and not c89 (= MSVC++)
13086 with_gnu_ld=yes
13087 ;;
13088 openbsd*)
13089 with_gnu_ld=no
13090 ;;
13091 esac
13092
13093 ld_shlibs=yes
cristyfd9dcd42010-08-08 18:07:02 +000013094
13095 # On some targets, GNU ld is compatible enough with the native linker
13096 # that we're better off using the native interface for both.
13097 lt_use_gnu_ld_interface=no
cristy3ed852e2009-09-05 21:47:34 +000013098 if test "$with_gnu_ld" = yes; then
cristyfd9dcd42010-08-08 18:07:02 +000013099 case $host_os in
13100 aix*)
13101 # The AIX port of GNU ld has always aspired to compatibility
13102 # with the native linker. However, as the warning in the GNU ld
13103 # block says, versions before 2.19.5* couldn't really create working
13104 # shared libraries, regardless of the interface used.
13105 case `$LD -v 2>&1` in
13106 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13107 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13108 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13109 *)
13110 lt_use_gnu_ld_interface=yes
13111 ;;
13112 esac
13113 ;;
13114 *)
13115 lt_use_gnu_ld_interface=yes
13116 ;;
13117 esac
13118 fi
13119
13120 if test "$lt_use_gnu_ld_interface" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000013121 # If archive_cmds runs LD, not CC, wlarc should be empty
13122 wlarc='${wl}'
13123
13124 # Set some defaults for GNU ld with shared library support. These
13125 # are reset later if shared libraries are not supported. Putting them
13126 # here allows them to be overridden if necessary.
13127 runpath_var=LD_RUN_PATH
13128 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13129 export_dynamic_flag_spec='${wl}--export-dynamic'
13130 # ancient GNU ld didn't support --whole-archive et. al.
13131 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13132 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13133 else
13134 whole_archive_flag_spec=
13135 fi
13136 supports_anon_versioning=no
13137 case `$LD -v 2>&1` in
cristyfd9dcd42010-08-08 18:07:02 +000013138 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy3ed852e2009-09-05 21:47:34 +000013139 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13140 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13141 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13142 *\ 2.11.*) ;; # other 2.11 versions
13143 *) supports_anon_versioning=yes ;;
13144 esac
13145
13146 # See if GNU ld supports shared libraries.
13147 case $host_os in
13148 aix[3-9]*)
13149 # On AIX/PPC, the GNU linker is very broken
13150 if test "$host_cpu" != ia64; then
13151 ld_shlibs=no
13152 cat <<_LT_EOF 1>&2
13153
cristyfd9dcd42010-08-08 18:07:02 +000013154*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy3ed852e2009-09-05 21:47:34 +000013155*** to be unable to reliably create shared libraries on AIX.
13156*** Therefore, libtool is disabling shared libraries support. If you
cristyfd9dcd42010-08-08 18:07:02 +000013157*** really care for shared libraries, you may want to install binutils
13158*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13159*** You will then need to restart the configuration process.
cristy3ed852e2009-09-05 21:47:34 +000013160
13161_LT_EOF
13162 fi
13163 ;;
13164
13165 amigaos*)
13166 case $host_cpu in
13167 powerpc)
13168 # see comment about AmigaOS4 .so support
13169 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13170 archive_expsym_cmds=''
13171 ;;
13172 m68k)
13173 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)'
13174 hardcode_libdir_flag_spec='-L$libdir'
13175 hardcode_minus_L=yes
13176 ;;
13177 esac
13178 ;;
13179
13180 beos*)
13181 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13182 allow_undefined_flag=unsupported
13183 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13184 # support --undefined. This deserves some investigation. FIXME
13185 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13186 else
13187 ld_shlibs=no
13188 fi
13189 ;;
13190
13191 cygwin* | mingw* | pw32* | cegcc*)
13192 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13193 # as there is no search path for DLLs.
13194 hardcode_libdir_flag_spec='-L$libdir'
cristyfd9dcd42010-08-08 18:07:02 +000013195 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy3ed852e2009-09-05 21:47:34 +000013196 allow_undefined_flag=unsupported
13197 always_export_symbols=no
13198 enable_shared_with_static_runtimes=yes
13199 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13200
13201 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13202 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13203 # If the export-symbols file already is a .def file (1st line
13204 # is EXPORTS), use it as is; otherwise, prepend...
13205 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13206 cp $export_symbols $output_objdir/$soname.def;
13207 else
13208 echo EXPORTS > $output_objdir/$soname.def;
13209 cat $export_symbols >> $output_objdir/$soname.def;
13210 fi~
13211 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13212 else
13213 ld_shlibs=no
13214 fi
13215 ;;
13216
cristyfd9dcd42010-08-08 18:07:02 +000013217 haiku*)
13218 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13219 link_all_deplibs=yes
13220 ;;
13221
cristy3ed852e2009-09-05 21:47:34 +000013222 interix[3-9]*)
13223 hardcode_direct=no
13224 hardcode_shlibpath_var=no
13225 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13226 export_dynamic_flag_spec='${wl}-E'
13227 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13228 # Instead, shared libraries are loaded at an image base (0x10000000 by
13229 # default) and relocated if they conflict, which is a slow very memory
13230 # consuming and fragmenting process. To avoid this, we pick a random,
13231 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13232 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13233 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13234 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'
13235 ;;
13236
cristyfd9dcd42010-08-08 18:07:02 +000013237 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013238 tmp_diet=no
13239 if test "$host_os" = linux-dietlibc; then
13240 case $cc_basename in
13241 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13242 esac
13243 fi
13244 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13245 && test "$tmp_diet" = no
13246 then
13247 tmp_addflag=
13248 tmp_sharedflag='-shared'
13249 case $cc_basename,$host_cpu in
13250 pgcc*) # Portland Group C compiler
cristyfd9dcd42010-08-08 18:07:02 +000013251 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 +000013252 tmp_addflag=' $pic_flag'
13253 ;;
cristyfd9dcd42010-08-08 18:07:02 +000013254 pgf77* | pgf90* | pgf95* | pgfortran*)
13255 # Portland Group f77 and f90 compilers
13256 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 +000013257 tmp_addflag=' $pic_flag -Mnomain' ;;
13258 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13259 tmp_addflag=' -i_dynamic' ;;
13260 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13261 tmp_addflag=' -i_dynamic -nofor_main' ;;
13262 ifc* | ifort*) # Intel Fortran compiler
13263 tmp_addflag=' -nofor_main' ;;
13264 lf95*) # Lahey Fortran 8.1
13265 whole_archive_flag_spec=
13266 tmp_sharedflag='--shared' ;;
cristyfd9dcd42010-08-08 18:07:02 +000013267 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000013268 tmp_sharedflag='-qmkshrobj'
13269 tmp_addflag= ;;
cristyfd9dcd42010-08-08 18:07:02 +000013270 nvcc*) # Cuda Compiler Driver 2.2
13271 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'
13272 compiler_needs_object=yes
13273 ;;
cristy3ed852e2009-09-05 21:47:34 +000013274 esac
13275 case `$CC -V 2>&1 | sed 5q` in
13276 *Sun\ C*) # Sun C 5.9
cristyfd9dcd42010-08-08 18:07:02 +000013277 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 +000013278 compiler_needs_object=yes
13279 tmp_sharedflag='-G' ;;
13280 *Sun\ F*) # Sun Fortran 8.3
13281 tmp_sharedflag='-G' ;;
13282 esac
13283 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13284
13285 if test "x$supports_anon_versioning" = xyes; then
13286 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13287 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13288 echo "local: *; };" >> $output_objdir/$libname.ver~
13289 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13290 fi
13291
13292 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000013293 xlf* | bgf* | bgxlf* | mpixlf*)
cristy3ed852e2009-09-05 21:47:34 +000013294 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13295 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13296 hardcode_libdir_flag_spec=
13297 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristyfd9dcd42010-08-08 18:07:02 +000013298 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013299 if test "x$supports_anon_versioning" = xyes; then
13300 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13301 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13302 echo "local: *; };" >> $output_objdir/$libname.ver~
cristyfd9dcd42010-08-08 18:07:02 +000013303 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013304 fi
13305 ;;
13306 esac
13307 else
13308 ld_shlibs=no
13309 fi
13310 ;;
13311
13312 netbsd*)
13313 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13314 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13315 wlarc=
13316 else
13317 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13318 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13319 fi
13320 ;;
13321
13322 solaris*)
13323 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13324 ld_shlibs=no
13325 cat <<_LT_EOF 1>&2
13326
13327*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13328*** create shared libraries on Solaris systems. Therefore, libtool
13329*** is disabling shared libraries support. We urge you to upgrade GNU
13330*** binutils to release 2.9.1 or newer. Another option is to modify
13331*** your PATH or compiler configuration so that the native linker is
13332*** used, and then restart.
13333
13334_LT_EOF
13335 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13336 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13337 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13338 else
13339 ld_shlibs=no
13340 fi
13341 ;;
13342
13343 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13344 case `$LD -v 2>&1` in
13345 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13346 ld_shlibs=no
13347 cat <<_LT_EOF 1>&2
13348
13349*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13350*** reliably create shared libraries on SCO systems. Therefore, libtool
13351*** is disabling shared libraries support. We urge you to upgrade GNU
13352*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13353*** your PATH or compiler configuration so that the native linker is
13354*** used, and then restart.
13355
13356_LT_EOF
13357 ;;
13358 *)
13359 # For security reasons, it is highly recommended that you always
13360 # use absolute paths for naming shared libraries, and exclude the
13361 # DT_RUNPATH tag from executables and libraries. But doing so
13362 # requires that you compile everything twice, which is a pain.
13363 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13364 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13365 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13366 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13367 else
13368 ld_shlibs=no
13369 fi
13370 ;;
13371 esac
13372 ;;
13373
13374 sunos4*)
13375 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13376 wlarc=
13377 hardcode_direct=yes
13378 hardcode_shlibpath_var=no
13379 ;;
13380
13381 *)
13382 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13384 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13385 else
13386 ld_shlibs=no
13387 fi
13388 ;;
13389 esac
13390
13391 if test "$ld_shlibs" = no; then
13392 runpath_var=
13393 hardcode_libdir_flag_spec=
13394 export_dynamic_flag_spec=
13395 whole_archive_flag_spec=
13396 fi
13397 else
13398 # PORTME fill in a description of your system's linker (not GNU ld)
13399 case $host_os in
13400 aix3*)
13401 allow_undefined_flag=unsupported
13402 always_export_symbols=yes
13403 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'
13404 # Note: this linker hardcodes the directories in LIBPATH if there
13405 # are no directories specified by -L.
13406 hardcode_minus_L=yes
13407 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13408 # Neither direct hardcoding nor static linking is supported with a
13409 # broken collect2.
13410 hardcode_direct=unsupported
13411 fi
13412 ;;
13413
13414 aix[4-9]*)
13415 if test "$host_cpu" = ia64; then
13416 # On IA64, the linker does run time linking by default, so we don't
13417 # have to do anything special.
13418 aix_use_runtimelinking=no
13419 exp_sym_flag='-Bexport'
13420 no_entry_flag=""
13421 else
13422 # If we're using GNU nm, then we don't want the "-C" option.
13423 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristyfd9dcd42010-08-08 18:07:02 +000013424 # Also, AIX nm treats weak defined symbols like other global
13425 # defined symbols, whereas GNU nm marks them as "W".
cristy3ed852e2009-09-05 21:47:34 +000013426 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristyfd9dcd42010-08-08 18:07:02 +000013427 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 +000013428 else
13429 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'
13430 fi
13431 aix_use_runtimelinking=no
13432
13433 # Test if we are trying to use run time linking or normal
13434 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13435 # need to do runtime linking.
13436 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13437 for ld_flag in $LDFLAGS; do
13438 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13439 aix_use_runtimelinking=yes
13440 break
13441 fi
13442 done
13443 ;;
13444 esac
13445
13446 exp_sym_flag='-bexport'
13447 no_entry_flag='-bnoentry'
13448 fi
13449
13450 # When large executables or shared objects are built, AIX ld can
13451 # have problems creating the table of contents. If linking a library
13452 # or program results in "error TOC overflow" add -mminimal-toc to
13453 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13454 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13455
13456 archive_cmds=''
13457 hardcode_direct=yes
13458 hardcode_direct_absolute=yes
13459 hardcode_libdir_separator=':'
13460 link_all_deplibs=yes
13461 file_list_spec='${wl}-f,'
13462
13463 if test "$GCC" = yes; then
13464 case $host_os in aix4.[012]|aix4.[012].*)
13465 # We only want to do this on AIX 4.2 and lower, the check
13466 # below for broken collect2 doesn't work under 4.3+
13467 collect2name=`${CC} -print-prog-name=collect2`
13468 if test -f "$collect2name" &&
13469 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13470 then
13471 # We have reworked collect2
13472 :
13473 else
13474 # We have old collect2
13475 hardcode_direct=unsupported
13476 # It fails to find uninstalled libraries when the uninstalled
13477 # path is not listed in the libpath. Setting hardcode_minus_L
13478 # to unsupported forces relinking
13479 hardcode_minus_L=yes
13480 hardcode_libdir_flag_spec='-L$libdir'
13481 hardcode_libdir_separator=
13482 fi
13483 ;;
13484 esac
13485 shared_flag='-shared'
13486 if test "$aix_use_runtimelinking" = yes; then
13487 shared_flag="$shared_flag "'${wl}-G'
13488 fi
13489 else
13490 # not using gcc
13491 if test "$host_cpu" = ia64; then
13492 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13493 # chokes on -Wl,-G. The following line is correct:
13494 shared_flag='-G'
13495 else
13496 if test "$aix_use_runtimelinking" = yes; then
13497 shared_flag='${wl}-G'
13498 else
13499 shared_flag='${wl}-bM:SRE'
13500 fi
13501 fi
13502 fi
13503
13504 export_dynamic_flag_spec='${wl}-bexpall'
13505 # It seems that -bexpall does not export symbols beginning with
13506 # underscore (_), so it is better to generate a list of symbols to export.
13507 always_export_symbols=yes
13508 if test "$aix_use_runtimelinking" = yes; then
13509 # Warning - without using the other runtime loading flags (-brtl),
13510 # -berok will link without error, but may produce a broken library.
13511 allow_undefined_flag='-berok'
13512 # Determine the default libpath from the value encoded in an
13513 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013515/* end confdefs.h. */
13516
13517int
13518main ()
13519{
13520
13521 ;
13522 return 0;
13523}
13524_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013525if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013526
13527lt_aix_libpath_sed='
13528 /Import File Strings/,/^$/ {
13529 /^0/ {
13530 s/^0 *\(.*\)$/\1/
13531 p
13532 }
13533 }'
13534aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13535# Check for a 64-bit object if we didn't find anything.
13536if test -z "$aix_libpath"; then
13537 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13538fi
cristy3ed852e2009-09-05 21:47:34 +000013539fi
cristy8b350f62009-11-15 23:12:43 +000013540rm -f core conftest.err conftest.$ac_objext \
13541 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013542if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13543
13544 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristyfd9dcd42010-08-08 18:07:02 +000013545 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 +000013546 else
13547 if test "$host_cpu" = ia64; then
13548 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13549 allow_undefined_flag="-z nodefs"
13550 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"
13551 else
13552 # Determine the default libpath from the value encoded in an
13553 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013555/* end confdefs.h. */
13556
13557int
13558main ()
13559{
13560
13561 ;
13562 return 0;
13563}
13564_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013565if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013566
13567lt_aix_libpath_sed='
13568 /Import File Strings/,/^$/ {
13569 /^0/ {
13570 s/^0 *\(.*\)$/\1/
13571 p
13572 }
13573 }'
13574aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13575# Check for a 64-bit object if we didn't find anything.
13576if test -z "$aix_libpath"; then
13577 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13578fi
cristy3ed852e2009-09-05 21:47:34 +000013579fi
cristy8b350f62009-11-15 23:12:43 +000013580rm -f core conftest.err conftest.$ac_objext \
13581 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013582if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13583
13584 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13585 # Warning - without using the other run time loading flags,
13586 # -berok will link without error, but may produce a broken library.
13587 no_undefined_flag=' ${wl}-bernotok'
13588 allow_undefined_flag=' ${wl}-berok'
cristyfd9dcd42010-08-08 18:07:02 +000013589 if test "$with_gnu_ld" = yes; then
13590 # We only use this code for GNU lds that support --whole-archive.
13591 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13592 else
13593 # Exported symbols can be pulled into shared objects from archives
13594 whole_archive_flag_spec='$convenience'
13595 fi
cristy3ed852e2009-09-05 21:47:34 +000013596 archive_cmds_need_lc=yes
13597 # This is similar to how AIX traditionally builds its shared libraries.
13598 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'
13599 fi
13600 fi
13601 ;;
13602
13603 amigaos*)
13604 case $host_cpu in
13605 powerpc)
13606 # see comment about AmigaOS4 .so support
13607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13608 archive_expsym_cmds=''
13609 ;;
13610 m68k)
13611 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)'
13612 hardcode_libdir_flag_spec='-L$libdir'
13613 hardcode_minus_L=yes
13614 ;;
13615 esac
13616 ;;
13617
13618 bsdi[45]*)
13619 export_dynamic_flag_spec=-rdynamic
13620 ;;
13621
13622 cygwin* | mingw* | pw32* | cegcc*)
13623 # When not using gcc, we currently assume that we are using
13624 # Microsoft Visual C++.
13625 # hardcode_libdir_flag_spec is actually meaningless, as there is
13626 # no search path for DLLs.
13627 hardcode_libdir_flag_spec=' '
13628 allow_undefined_flag=unsupported
13629 # Tell ltmain to make .lib files, not .a files.
13630 libext=lib
13631 # Tell ltmain to make .dll files, not .so files.
13632 shrext_cmds=".dll"
13633 # FIXME: Setting linknames here is a bad hack.
cristyfd9dcd42010-08-08 18:07:02 +000013634 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000013635 # The linker will automatically build a .lib file if we build a DLL.
13636 old_archive_from_new_cmds='true'
13637 # FIXME: Should let the user specify the lib program.
13638 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13639 fix_srcfile_path='`cygpath -w "$srcfile"`'
13640 enable_shared_with_static_runtimes=yes
13641 ;;
13642
13643 darwin* | rhapsody*)
13644
13645
13646 archive_cmds_need_lc=no
13647 hardcode_direct=no
13648 hardcode_automatic=yes
13649 hardcode_shlibpath_var=unsupported
cristyfd9dcd42010-08-08 18:07:02 +000013650 if test "$lt_cv_ld_force_load" = "yes"; then
13651 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\"`'
13652 else
13653 whole_archive_flag_spec=''
13654 fi
cristy3ed852e2009-09-05 21:47:34 +000013655 link_all_deplibs=yes
13656 allow_undefined_flag="$_lt_dar_allow_undefined"
13657 case $cc_basename in
13658 ifort*) _lt_dar_can_shared=yes ;;
13659 *) _lt_dar_can_shared=$GCC ;;
13660 esac
13661 if test "$_lt_dar_can_shared" = "yes"; then
cristyfd9dcd42010-08-08 18:07:02 +000013662 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000013663 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13664 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13665 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}"
13666 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}"
13667
13668 else
13669 ld_shlibs=no
13670 fi
13671
13672 ;;
13673
13674 dgux*)
13675 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13676 hardcode_libdir_flag_spec='-L$libdir'
13677 hardcode_shlibpath_var=no
13678 ;;
13679
13680 freebsd1*)
13681 ld_shlibs=no
13682 ;;
13683
13684 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13685 # support. Future versions do this automatically, but an explicit c++rt0.o
13686 # does not break anything, and helps significantly (at the cost of a little
13687 # extra space).
13688 freebsd2.2*)
13689 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13690 hardcode_libdir_flag_spec='-R$libdir'
13691 hardcode_direct=yes
13692 hardcode_shlibpath_var=no
13693 ;;
13694
13695 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13696 freebsd2*)
13697 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13698 hardcode_direct=yes
13699 hardcode_minus_L=yes
13700 hardcode_shlibpath_var=no
13701 ;;
13702
13703 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13704 freebsd* | dragonfly*)
13705 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13706 hardcode_libdir_flag_spec='-R$libdir'
13707 hardcode_direct=yes
13708 hardcode_shlibpath_var=no
13709 ;;
13710
13711 hpux9*)
13712 if test "$GCC" = yes; then
13713 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'
13714 else
13715 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'
13716 fi
13717 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13718 hardcode_libdir_separator=:
13719 hardcode_direct=yes
13720
13721 # hardcode_minus_L: Not really in the search PATH,
13722 # but as the default location of the library.
13723 hardcode_minus_L=yes
13724 export_dynamic_flag_spec='${wl}-E'
13725 ;;
13726
13727 hpux10*)
cristyfd9dcd42010-08-08 18:07:02 +000013728 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013729 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13730 else
13731 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13732 fi
13733 if test "$with_gnu_ld" = no; then
13734 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13735 hardcode_libdir_flag_spec_ld='+b $libdir'
13736 hardcode_libdir_separator=:
13737 hardcode_direct=yes
13738 hardcode_direct_absolute=yes
13739 export_dynamic_flag_spec='${wl}-E'
13740 # hardcode_minus_L: Not really in the search PATH,
13741 # but as the default location of the library.
13742 hardcode_minus_L=yes
13743 fi
13744 ;;
13745
13746 hpux11*)
cristyfd9dcd42010-08-08 18:07:02 +000013747 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013748 case $host_cpu in
13749 hppa*64*)
13750 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13751 ;;
13752 ia64*)
13753 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13754 ;;
13755 *)
13756 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13757 ;;
13758 esac
13759 else
13760 case $host_cpu in
13761 hppa*64*)
13762 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13763 ;;
13764 ia64*)
13765 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13766 ;;
13767 *)
cristyfd9dcd42010-08-08 18:07:02 +000013768
13769 # Older versions of the 11.00 compiler do not understand -b yet
13770 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13772$as_echo_n "checking if $CC understands -b... " >&6; }
13773if test "${lt_cv_prog_compiler__b+set}" = set; then :
13774 $as_echo_n "(cached) " >&6
13775else
13776 lt_cv_prog_compiler__b=no
13777 save_LDFLAGS="$LDFLAGS"
13778 LDFLAGS="$LDFLAGS -b"
13779 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13780 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13781 # The linker can only warn and ignore the option if not recognized
13782 # So say no if there are warnings
13783 if test -s conftest.err; then
13784 # Append any errors to the config.log.
13785 cat conftest.err 1>&5
13786 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13787 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13788 if diff conftest.exp conftest.er2 >/dev/null; then
13789 lt_cv_prog_compiler__b=yes
13790 fi
13791 else
13792 lt_cv_prog_compiler__b=yes
13793 fi
13794 fi
13795 $RM -r conftest*
13796 LDFLAGS="$save_LDFLAGS"
13797
13798fi
13799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13800$as_echo "$lt_cv_prog_compiler__b" >&6; }
13801
13802if test x"$lt_cv_prog_compiler__b" = xyes; then
13803 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13804else
13805 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13806fi
13807
cristy3ed852e2009-09-05 21:47:34 +000013808 ;;
13809 esac
13810 fi
13811 if test "$with_gnu_ld" = no; then
13812 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13813 hardcode_libdir_separator=:
13814
13815 case $host_cpu in
13816 hppa*64*|ia64*)
13817 hardcode_direct=no
13818 hardcode_shlibpath_var=no
13819 ;;
13820 *)
13821 hardcode_direct=yes
13822 hardcode_direct_absolute=yes
13823 export_dynamic_flag_spec='${wl}-E'
13824
13825 # hardcode_minus_L: Not really in the search PATH,
13826 # but as the default location of the library.
13827 hardcode_minus_L=yes
13828 ;;
13829 esac
13830 fi
13831 ;;
13832
13833 irix5* | irix6* | nonstopux*)
13834 if test "$GCC" = yes; then
cristyfd9dcd42010-08-08 18:07:02 +000013835 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 +000013836 # Try to use the -exported_symbol ld option, if it does not
13837 # work, assume that -exports_file does not work either and
13838 # implicitly export all symbols.
13839 save_LDFLAGS="$LDFLAGS"
13840 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000013841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13842/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000013843int foo(void) {}
13844_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013845if ac_fn_c_try_link "$LINENO"; then :
cristyfd9dcd42010-08-08 18:07:02 +000013846 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 +000013847
cristy3ed852e2009-09-05 21:47:34 +000013848fi
cristy8b350f62009-11-15 23:12:43 +000013849rm -f core conftest.err conftest.$ac_objext \
13850 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013851 LDFLAGS="$save_LDFLAGS"
13852 else
cristyfd9dcd42010-08-08 18:07:02 +000013853 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'
13854 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 +000013855 fi
13856 archive_cmds_need_lc='no'
13857 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13858 hardcode_libdir_separator=:
13859 inherit_rpath=yes
13860 link_all_deplibs=yes
13861 ;;
13862
13863 netbsd*)
13864 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13865 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13866 else
13867 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13868 fi
13869 hardcode_libdir_flag_spec='-R$libdir'
13870 hardcode_direct=yes
13871 hardcode_shlibpath_var=no
13872 ;;
13873
13874 newsos6)
13875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13876 hardcode_direct=yes
13877 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13878 hardcode_libdir_separator=:
13879 hardcode_shlibpath_var=no
13880 ;;
13881
13882 *nto* | *qnx*)
13883 ;;
13884
13885 openbsd*)
13886 if test -f /usr/libexec/ld.so; then
13887 hardcode_direct=yes
13888 hardcode_shlibpath_var=no
13889 hardcode_direct_absolute=yes
13890 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13891 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13892 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13893 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13894 export_dynamic_flag_spec='${wl}-E'
13895 else
13896 case $host_os in
13897 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13899 hardcode_libdir_flag_spec='-R$libdir'
13900 ;;
13901 *)
13902 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13903 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13904 ;;
13905 esac
13906 fi
13907 else
13908 ld_shlibs=no
13909 fi
13910 ;;
13911
13912 os2*)
13913 hardcode_libdir_flag_spec='-L$libdir'
13914 hardcode_minus_L=yes
13915 allow_undefined_flag=unsupported
cristyfd9dcd42010-08-08 18:07:02 +000013916 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 +000013917 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13918 ;;
13919
13920 osf3*)
13921 if test "$GCC" = yes; then
13922 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyfd9dcd42010-08-08 18:07:02 +000013923 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 +000013924 else
13925 allow_undefined_flag=' -expect_unresolved \*'
cristyfd9dcd42010-08-08 18:07:02 +000013926 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 +000013927 fi
13928 archive_cmds_need_lc='no'
13929 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13930 hardcode_libdir_separator=:
13931 ;;
13932
13933 osf4* | osf5*) # as osf3* with the addition of -msym flag
13934 if test "$GCC" = yes; then
13935 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyfd9dcd42010-08-08 18:07:02 +000013936 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 +000013937 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13938 else
13939 allow_undefined_flag=' -expect_unresolved \*'
cristyfd9dcd42010-08-08 18:07:02 +000013940 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 +000013941 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 +000013942 $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 +000013943
13944 # Both c and cxx compiler support -rpath directly
13945 hardcode_libdir_flag_spec='-rpath $libdir'
13946 fi
13947 archive_cmds_need_lc='no'
13948 hardcode_libdir_separator=:
13949 ;;
13950
13951 solaris*)
13952 no_undefined_flag=' -z defs'
13953 if test "$GCC" = yes; then
13954 wlarc='${wl}'
13955 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13956 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13957 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13958 else
13959 case `$CC -V 2>&1` in
13960 *"Compilers 5.0"*)
13961 wlarc=''
13962 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13963 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13964 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13965 ;;
13966 *)
13967 wlarc='${wl}'
13968 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13969 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13970 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13971 ;;
13972 esac
13973 fi
13974 hardcode_libdir_flag_spec='-R$libdir'
13975 hardcode_shlibpath_var=no
13976 case $host_os in
13977 solaris2.[0-5] | solaris2.[0-5].*) ;;
13978 *)
13979 # The compiler driver will combine and reorder linker options,
13980 # but understands `-z linker_flag'. GCC discards it without `$wl',
13981 # but is careful enough not to reorder.
13982 # Supported since Solaris 2.6 (maybe 2.5.1?)
13983 if test "$GCC" = yes; then
13984 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13985 else
13986 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13987 fi
13988 ;;
13989 esac
13990 link_all_deplibs=yes
13991 ;;
13992
13993 sunos4*)
13994 if test "x$host_vendor" = xsequent; then
13995 # Use $CC to link under sequent, because it throws in some extra .o
13996 # files that make .init and .fini sections work.
13997 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13998 else
13999 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14000 fi
14001 hardcode_libdir_flag_spec='-L$libdir'
14002 hardcode_direct=yes
14003 hardcode_minus_L=yes
14004 hardcode_shlibpath_var=no
14005 ;;
14006
14007 sysv4)
14008 case $host_vendor in
14009 sni)
14010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14011 hardcode_direct=yes # is this really true???
14012 ;;
14013 siemens)
14014 ## LD is ld it makes a PLAMLIB
14015 ## CC just makes a GrossModule.
14016 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14017 reload_cmds='$CC -r -o $output$reload_objs'
14018 hardcode_direct=no
14019 ;;
14020 motorola)
14021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14022 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14023 ;;
14024 esac
14025 runpath_var='LD_RUN_PATH'
14026 hardcode_shlibpath_var=no
14027 ;;
14028
14029 sysv4.3*)
14030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14031 hardcode_shlibpath_var=no
14032 export_dynamic_flag_spec='-Bexport'
14033 ;;
14034
14035 sysv4*MP*)
14036 if test -d /usr/nec; then
14037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14038 hardcode_shlibpath_var=no
14039 runpath_var=LD_RUN_PATH
14040 hardcode_runpath_var=yes
14041 ld_shlibs=yes
14042 fi
14043 ;;
14044
14045 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14046 no_undefined_flag='${wl}-z,text'
14047 archive_cmds_need_lc=no
14048 hardcode_shlibpath_var=no
14049 runpath_var='LD_RUN_PATH'
14050
14051 if test "$GCC" = yes; then
14052 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14053 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14054 else
14055 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14056 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14057 fi
14058 ;;
14059
14060 sysv5* | sco3.2v5* | sco5v6*)
14061 # Note: We can NOT use -z defs as we might desire, because we do not
14062 # link with -lc, and that would cause any symbols used from libc to
14063 # always be unresolved, which means just about no library would
14064 # ever link correctly. If we're not using GNU ld we use -z text
14065 # though, which does catch some bad symbols but isn't as heavy-handed
14066 # as -z defs.
14067 no_undefined_flag='${wl}-z,text'
14068 allow_undefined_flag='${wl}-z,nodefs'
14069 archive_cmds_need_lc=no
14070 hardcode_shlibpath_var=no
14071 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14072 hardcode_libdir_separator=':'
14073 link_all_deplibs=yes
14074 export_dynamic_flag_spec='${wl}-Bexport'
14075 runpath_var='LD_RUN_PATH'
14076
14077 if test "$GCC" = yes; then
14078 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14079 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14080 else
14081 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14082 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14083 fi
14084 ;;
14085
14086 uts4*)
14087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14088 hardcode_libdir_flag_spec='-L$libdir'
14089 hardcode_shlibpath_var=no
14090 ;;
14091
14092 *)
14093 ld_shlibs=no
14094 ;;
14095 esac
14096
14097 if test x$host_vendor = xsni; then
14098 case $host in
14099 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14100 export_dynamic_flag_spec='${wl}-Blargedynsym'
14101 ;;
14102 esac
14103 fi
14104 fi
14105
cristy8b350f62009-11-15 23:12:43 +000014106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014107$as_echo "$ld_shlibs" >&6; }
14108test "$ld_shlibs" = no && can_build_shared=no
14109
14110with_gnu_ld=$with_gnu_ld
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126#
14127# Do we need to explicitly link libc?
14128#
14129case "x$archive_cmds_need_lc" in
14130x|xyes)
14131 # Assume -lc should be added
14132 archive_cmds_need_lc=yes
14133
14134 if test "$enable_shared" = yes && test "$GCC" = yes; then
14135 case $archive_cmds in
14136 *'~'*)
14137 # FIXME: we may have to deal with multi-command sequences.
14138 ;;
14139 '$CC '*)
14140 # Test whether the compiler implicitly links with -lc since on some
14141 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14142 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000014143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000014144$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000014145if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
14146 $as_echo_n "(cached) " >&6
14147else
14148 $RM conftest*
14149 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014150
cristyfd9dcd42010-08-08 18:07:02 +000014151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014152 (eval $ac_compile) 2>&5
14153 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14155 test $ac_status = 0; } 2>conftest.err; then
cristyfd9dcd42010-08-08 18:07:02 +000014156 soname=conftest
14157 lib=conftest
14158 libobjs=conftest.$ac_objext
14159 deplibs=
14160 wl=$lt_prog_compiler_wl
14161 pic_flag=$lt_prog_compiler_pic
14162 compiler_flags=-v
14163 linker_flags=-v
14164 verstring=
14165 output_objdir=.
14166 libname=conftest
14167 lt_save_allow_undefined_flag=$allow_undefined_flag
14168 allow_undefined_flag=
14169 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 +000014170 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14171 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14173 test $ac_status = 0; }
cristyfd9dcd42010-08-08 18:07:02 +000014174 then
14175 lt_cv_archive_cmds_need_lc=no
14176 else
14177 lt_cv_archive_cmds_need_lc=yes
14178 fi
14179 allow_undefined_flag=$lt_save_allow_undefined_flag
14180 else
14181 cat conftest.err 1>&5
14182 fi
14183 $RM conftest*
14184
14185fi
14186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14187$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14188 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy3ed852e2009-09-05 21:47:34 +000014189 ;;
14190 esac
14191 fi
14192 ;;
14193esac
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
cristy8b350f62009-11-15 23:12:43 +000014351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000014352$as_echo_n "checking dynamic linker characteristics... " >&6; }
14353
14354if test "$GCC" = yes; then
14355 case $host_os in
14356 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14357 *) lt_awk_arg="/^libraries:/" ;;
14358 esac
cristyfd9dcd42010-08-08 18:07:02 +000014359 case $host_os in
14360 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14361 *) lt_sed_strip_eq="s,=/,/,g" ;;
14362 esac
14363 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14364 case $lt_search_path_spec in
14365 *\;*)
cristy3ed852e2009-09-05 21:47:34 +000014366 # if the path contains ";" then we assume it to be the separator
14367 # otherwise default to the standard path separator (i.e. ":") - it is
14368 # assumed that no part of a normal pathname contains ";" but that should
14369 # okay in the real world where ";" in dirpaths is itself problematic.
cristyfd9dcd42010-08-08 18:07:02 +000014370 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14371 ;;
14372 *)
14373 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14374 ;;
14375 esac
cristy3ed852e2009-09-05 21:47:34 +000014376 # Ok, now we have the path, separated by spaces, we can step through it
14377 # and add multilib dir if necessary.
14378 lt_tmp_lt_search_path_spec=
14379 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14380 for lt_sys_path in $lt_search_path_spec; do
14381 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14382 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14383 else
14384 test -d "$lt_sys_path" && \
14385 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14386 fi
14387 done
cristyfd9dcd42010-08-08 18:07:02 +000014388 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy3ed852e2009-09-05 21:47:34 +000014389BEGIN {RS=" "; FS="/|\n";} {
14390 lt_foo="";
14391 lt_count=0;
14392 for (lt_i = NF; lt_i > 0; lt_i--) {
14393 if ($lt_i != "" && $lt_i != ".") {
14394 if ($lt_i == "..") {
14395 lt_count++;
14396 } else {
14397 if (lt_count == 0) {
14398 lt_foo="/" $lt_i lt_foo;
14399 } else {
14400 lt_count--;
14401 }
14402 }
14403 }
14404 }
14405 if (lt_foo != "") { lt_freq[lt_foo]++; }
14406 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14407}'`
cristyfd9dcd42010-08-08 18:07:02 +000014408 # AWK program above erroneously prepends '/' to C:/dos/paths
14409 # for these hosts.
14410 case $host_os in
14411 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14412 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14413 esac
14414 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy3ed852e2009-09-05 21:47:34 +000014415else
14416 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14417fi
14418library_names_spec=
14419libname_spec='lib$name'
14420soname_spec=
14421shrext_cmds=".so"
14422postinstall_cmds=
14423postuninstall_cmds=
14424finish_cmds=
14425finish_eval=
14426shlibpath_var=
14427shlibpath_overrides_runpath=unknown
14428version_type=none
14429dynamic_linker="$host_os ld.so"
14430sys_lib_dlsearch_path_spec="/lib /usr/lib"
14431need_lib_prefix=unknown
14432hardcode_into_libs=no
14433
14434# when you set need_version to no, make sure it does not cause -set_version
14435# flags to be left without arguments
14436need_version=unknown
14437
14438case $host_os in
14439aix3*)
14440 version_type=linux
14441 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14442 shlibpath_var=LIBPATH
14443
14444 # AIX 3 has no versioning support, so we append a major version to the name.
14445 soname_spec='${libname}${release}${shared_ext}$major'
14446 ;;
14447
14448aix[4-9]*)
14449 version_type=linux
14450 need_lib_prefix=no
14451 need_version=no
14452 hardcode_into_libs=yes
14453 if test "$host_cpu" = ia64; then
14454 # AIX 5 supports IA64
14455 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14456 shlibpath_var=LD_LIBRARY_PATH
14457 else
14458 # With GCC up to 2.95.x, collect2 would create an import file
14459 # for dependence libraries. The import file would start with
14460 # the line `#! .'. This would cause the generated library to
14461 # depend on `.', always an invalid library. This was fixed in
14462 # development snapshots of GCC prior to 3.0.
14463 case $host_os in
14464 aix4 | aix4.[01] | aix4.[01].*)
14465 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14466 echo ' yes '
14467 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14468 :
14469 else
14470 can_build_shared=no
14471 fi
14472 ;;
14473 esac
14474 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14475 # soname into executable. Probably we can add versioning support to
14476 # collect2, so additional links can be useful in future.
14477 if test "$aix_use_runtimelinking" = yes; then
14478 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14479 # instead of lib<name>.a to let people know that these are not
14480 # typical AIX shared libraries.
14481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14482 else
14483 # We preserve .a as extension for shared libraries through AIX4.2
14484 # and later when we are not doing run time linking.
14485 library_names_spec='${libname}${release}.a $libname.a'
14486 soname_spec='${libname}${release}${shared_ext}$major'
14487 fi
14488 shlibpath_var=LIBPATH
14489 fi
14490 ;;
14491
14492amigaos*)
14493 case $host_cpu in
14494 powerpc)
14495 # Since July 2007 AmigaOS4 officially supports .so libraries.
14496 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14498 ;;
14499 m68k)
14500 library_names_spec='$libname.ixlibrary $libname.a'
14501 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristyfd9dcd42010-08-08 18:07:02 +000014502 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 +000014503 ;;
14504 esac
14505 ;;
14506
14507beos*)
14508 library_names_spec='${libname}${shared_ext}'
14509 dynamic_linker="$host_os ld.so"
14510 shlibpath_var=LIBRARY_PATH
14511 ;;
14512
14513bsdi[45]*)
14514 version_type=linux
14515 need_version=no
14516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14517 soname_spec='${libname}${release}${shared_ext}$major'
14518 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14519 shlibpath_var=LD_LIBRARY_PATH
14520 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14521 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14522 # the default ld.so.conf also contains /usr/contrib/lib and
14523 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14524 # libtool to hard-code these into programs
14525 ;;
14526
14527cygwin* | mingw* | pw32* | cegcc*)
14528 version_type=windows
14529 shrext_cmds=".dll"
14530 need_version=no
14531 need_lib_prefix=no
14532
14533 case $GCC,$host_os in
14534 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14535 library_names_spec='$libname.dll.a'
14536 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14537 postinstall_cmds='base_file=`basename \${file}`~
14538 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14539 dldir=$destdir/`dirname \$dlpath`~
14540 test -d \$dldir || mkdir -p \$dldir~
14541 $install_prog $dir/$dlname \$dldir/$dlname~
14542 chmod a+x \$dldir/$dlname~
14543 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14544 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14545 fi'
14546 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14547 dlpath=$dir/\$dldll~
14548 $RM \$dlpath'
14549 shlibpath_overrides_runpath=yes
14550
14551 case $host_os in
14552 cygwin*)
14553 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14554 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristyfd9dcd42010-08-08 18:07:02 +000014555
14556 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy3ed852e2009-09-05 21:47:34 +000014557 ;;
14558 mingw* | cegcc*)
14559 # MinGW DLLs use traditional 'lib' prefix
14560 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy3ed852e2009-09-05 21:47:34 +000014561 ;;
14562 pw32*)
14563 # pw32 DLLs use 'pw' prefix rather than 'lib'
14564 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14565 ;;
14566 esac
14567 ;;
14568
14569 *)
14570 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14571 ;;
14572 esac
14573 dynamic_linker='Win32 ld.exe'
14574 # FIXME: first we should search . and the directory the executable is in
14575 shlibpath_var=PATH
14576 ;;
14577
14578darwin* | rhapsody*)
14579 dynamic_linker="$host_os dyld"
14580 version_type=darwin
14581 need_lib_prefix=no
14582 need_version=no
14583 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14584 soname_spec='${libname}${release}${major}$shared_ext'
14585 shlibpath_overrides_runpath=yes
14586 shlibpath_var=DYLD_LIBRARY_PATH
14587 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14588
14589 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14590 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14591 ;;
14592
14593dgux*)
14594 version_type=linux
14595 need_lib_prefix=no
14596 need_version=no
14597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14598 soname_spec='${libname}${release}${shared_ext}$major'
14599 shlibpath_var=LD_LIBRARY_PATH
14600 ;;
14601
14602freebsd1*)
14603 dynamic_linker=no
14604 ;;
14605
14606freebsd* | dragonfly*)
14607 # DragonFly does not have aout. When/if they implement a new
14608 # versioning mechanism, adjust this.
14609 if test -x /usr/bin/objformat; then
14610 objformat=`/usr/bin/objformat`
14611 else
14612 case $host_os in
14613 freebsd[123]*) objformat=aout ;;
14614 *) objformat=elf ;;
14615 esac
14616 fi
14617 version_type=freebsd-$objformat
14618 case $version_type in
14619 freebsd-elf*)
14620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14621 need_version=no
14622 need_lib_prefix=no
14623 ;;
14624 freebsd-*)
14625 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14626 need_version=yes
14627 ;;
14628 esac
14629 shlibpath_var=LD_LIBRARY_PATH
14630 case $host_os in
14631 freebsd2*)
14632 shlibpath_overrides_runpath=yes
14633 ;;
14634 freebsd3.[01]* | freebsdelf3.[01]*)
14635 shlibpath_overrides_runpath=yes
14636 hardcode_into_libs=yes
14637 ;;
14638 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14639 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14640 shlibpath_overrides_runpath=no
14641 hardcode_into_libs=yes
14642 ;;
14643 *) # from 4.6 on, and DragonFly
14644 shlibpath_overrides_runpath=yes
14645 hardcode_into_libs=yes
14646 ;;
14647 esac
14648 ;;
14649
14650gnu*)
14651 version_type=linux
14652 need_lib_prefix=no
14653 need_version=no
14654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14655 soname_spec='${libname}${release}${shared_ext}$major'
14656 shlibpath_var=LD_LIBRARY_PATH
14657 hardcode_into_libs=yes
14658 ;;
14659
cristyfd9dcd42010-08-08 18:07:02 +000014660haiku*)
14661 version_type=linux
14662 need_lib_prefix=no
14663 need_version=no
14664 dynamic_linker="$host_os runtime_loader"
14665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14666 soname_spec='${libname}${release}${shared_ext}$major'
14667 shlibpath_var=LIBRARY_PATH
14668 shlibpath_overrides_runpath=yes
14669 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14670 hardcode_into_libs=yes
14671 ;;
14672
cristy3ed852e2009-09-05 21:47:34 +000014673hpux9* | hpux10* | hpux11*)
14674 # Give a soname corresponding to the major version so that dld.sl refuses to
14675 # link against other versions.
14676 version_type=sunos
14677 need_lib_prefix=no
14678 need_version=no
14679 case $host_cpu in
14680 ia64*)
14681 shrext_cmds='.so'
14682 hardcode_into_libs=yes
14683 dynamic_linker="$host_os dld.so"
14684 shlibpath_var=LD_LIBRARY_PATH
14685 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14687 soname_spec='${libname}${release}${shared_ext}$major'
14688 if test "X$HPUX_IA64_MODE" = X32; then
14689 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14690 else
14691 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14692 fi
14693 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14694 ;;
14695 hppa*64*)
14696 shrext_cmds='.sl'
14697 hardcode_into_libs=yes
14698 dynamic_linker="$host_os dld.sl"
14699 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14700 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14702 soname_spec='${libname}${release}${shared_ext}$major'
14703 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14704 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14705 ;;
14706 *)
14707 shrext_cmds='.sl'
14708 dynamic_linker="$host_os dld.sl"
14709 shlibpath_var=SHLIB_PATH
14710 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14712 soname_spec='${libname}${release}${shared_ext}$major'
14713 ;;
14714 esac
cristyfd9dcd42010-08-08 18:07:02 +000014715 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy3ed852e2009-09-05 21:47:34 +000014716 postinstall_cmds='chmod 555 $lib'
cristyfd9dcd42010-08-08 18:07:02 +000014717 # or fails outright, so override atomically:
14718 install_override_mode=555
cristy3ed852e2009-09-05 21:47:34 +000014719 ;;
14720
14721interix[3-9]*)
14722 version_type=linux
14723 need_lib_prefix=no
14724 need_version=no
14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14726 soname_spec='${libname}${release}${shared_ext}$major'
14727 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14728 shlibpath_var=LD_LIBRARY_PATH
14729 shlibpath_overrides_runpath=no
14730 hardcode_into_libs=yes
14731 ;;
14732
14733irix5* | irix6* | nonstopux*)
14734 case $host_os in
14735 nonstopux*) version_type=nonstopux ;;
14736 *)
14737 if test "$lt_cv_prog_gnu_ld" = yes; then
14738 version_type=linux
14739 else
14740 version_type=irix
14741 fi ;;
14742 esac
14743 need_lib_prefix=no
14744 need_version=no
14745 soname_spec='${libname}${release}${shared_ext}$major'
14746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14747 case $host_os in
14748 irix5* | nonstopux*)
14749 libsuff= shlibsuff=
14750 ;;
14751 *)
14752 case $LD in # libtool.m4 will add one of these switches to LD
14753 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14754 libsuff= shlibsuff= libmagic=32-bit;;
14755 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14756 libsuff=32 shlibsuff=N32 libmagic=N32;;
14757 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14758 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14759 *) libsuff= shlibsuff= libmagic=never-match;;
14760 esac
14761 ;;
14762 esac
14763 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14764 shlibpath_overrides_runpath=no
14765 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14766 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14767 hardcode_into_libs=yes
14768 ;;
14769
14770# No shared lib support for Linux oldld, aout, or coff.
14771linux*oldld* | linux*aout* | linux*coff*)
14772 dynamic_linker=no
14773 ;;
14774
14775# This must be Linux ELF.
cristyfd9dcd42010-08-08 18:07:02 +000014776linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000014777 version_type=linux
14778 need_lib_prefix=no
14779 need_version=no
14780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14781 soname_spec='${libname}${release}${shared_ext}$major'
14782 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14783 shlibpath_var=LD_LIBRARY_PATH
14784 shlibpath_overrides_runpath=no
cristyfd9dcd42010-08-08 18:07:02 +000014785
cristy3ed852e2009-09-05 21:47:34 +000014786 # Some binutils ld are patched to set DT_RUNPATH
cristyfd9dcd42010-08-08 18:07:02 +000014787 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14788 $as_echo_n "(cached) " >&6
14789else
14790 lt_cv_shlibpath_overrides_runpath=no
14791 save_LDFLAGS=$LDFLAGS
14792 save_libdir=$libdir
14793 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14794 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014796/* end confdefs.h. */
14797
14798int
14799main ()
14800{
14801
14802 ;
14803 return 0;
14804}
14805_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014806if ac_fn_c_try_link "$LINENO"; then :
14807 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristyfd9dcd42010-08-08 18:07:02 +000014808 lt_cv_shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000014809fi
cristy3ed852e2009-09-05 21:47:34 +000014810fi
cristy8b350f62009-11-15 23:12:43 +000014811rm -f core conftest.err conftest.$ac_objext \
14812 conftest$ac_exeext conftest.$ac_ext
cristyfd9dcd42010-08-08 18:07:02 +000014813 LDFLAGS=$save_LDFLAGS
14814 libdir=$save_libdir
14815
14816fi
14817
14818 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy3ed852e2009-09-05 21:47:34 +000014819
14820 # This implies no fast_install, which is unacceptable.
14821 # Some rework will be needed to allow for fast_install
14822 # before this can be enabled.
14823 hardcode_into_libs=yes
14824
cristy679ed8e2009-12-05 02:37:41 +000014825 # Add ABI-specific directories to the system library path.
14826 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14827
cristy3ed852e2009-09-05 21:47:34 +000014828 # Append ld.so.conf contents to the search path
14829 if test -f /etc/ld.so.conf; then
cristyfd9dcd42010-08-08 18:07:02 +000014830 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 +000014831 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristyfd9dcd42010-08-08 18:07:02 +000014832
cristy3ed852e2009-09-05 21:47:34 +000014833 fi
14834
14835 # We used to test for /lib/ld.so.1 and disable shared libraries on
14836 # powerpc, because MkLinux only supported shared libraries with the
14837 # GNU dynamic linker. Since this was broken with cross compilers,
14838 # most powerpc-linux boxes support dynamic linking these days and
14839 # people can always --disable-shared, the test was removed, and we
14840 # assume the GNU/Linux dynamic linker is in use.
14841 dynamic_linker='GNU/Linux ld.so'
14842 ;;
14843
14844netbsd*)
14845 version_type=sunos
14846 need_lib_prefix=no
14847 need_version=no
14848 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14850 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14851 dynamic_linker='NetBSD (a.out) ld.so'
14852 else
14853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14854 soname_spec='${libname}${release}${shared_ext}$major'
14855 dynamic_linker='NetBSD ld.elf_so'
14856 fi
14857 shlibpath_var=LD_LIBRARY_PATH
14858 shlibpath_overrides_runpath=yes
14859 hardcode_into_libs=yes
14860 ;;
14861
14862newsos6)
14863 version_type=linux
14864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14865 shlibpath_var=LD_LIBRARY_PATH
14866 shlibpath_overrides_runpath=yes
14867 ;;
14868
14869*nto* | *qnx*)
14870 version_type=qnx
14871 need_lib_prefix=no
14872 need_version=no
14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14874 soname_spec='${libname}${release}${shared_ext}$major'
14875 shlibpath_var=LD_LIBRARY_PATH
14876 shlibpath_overrides_runpath=no
14877 hardcode_into_libs=yes
14878 dynamic_linker='ldqnx.so'
14879 ;;
14880
14881openbsd*)
14882 version_type=sunos
14883 sys_lib_dlsearch_path_spec="/usr/lib"
14884 need_lib_prefix=no
14885 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14886 case $host_os in
14887 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14888 *) need_version=no ;;
14889 esac
14890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14891 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14892 shlibpath_var=LD_LIBRARY_PATH
14893 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14894 case $host_os in
14895 openbsd2.[89] | openbsd2.[89].*)
14896 shlibpath_overrides_runpath=no
14897 ;;
14898 *)
14899 shlibpath_overrides_runpath=yes
14900 ;;
14901 esac
14902 else
14903 shlibpath_overrides_runpath=yes
14904 fi
14905 ;;
14906
14907os2*)
14908 libname_spec='$name'
14909 shrext_cmds=".dll"
14910 need_lib_prefix=no
14911 library_names_spec='$libname${shared_ext} $libname.a'
14912 dynamic_linker='OS/2 ld.exe'
14913 shlibpath_var=LIBPATH
14914 ;;
14915
14916osf3* | osf4* | osf5*)
14917 version_type=osf
14918 need_lib_prefix=no
14919 need_version=no
14920 soname_spec='${libname}${release}${shared_ext}$major'
14921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14922 shlibpath_var=LD_LIBRARY_PATH
14923 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14924 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14925 ;;
14926
14927rdos*)
14928 dynamic_linker=no
14929 ;;
14930
14931solaris*)
14932 version_type=linux
14933 need_lib_prefix=no
14934 need_version=no
14935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14936 soname_spec='${libname}${release}${shared_ext}$major'
14937 shlibpath_var=LD_LIBRARY_PATH
14938 shlibpath_overrides_runpath=yes
14939 hardcode_into_libs=yes
14940 # ldd complains unless libraries are executable
14941 postinstall_cmds='chmod +x $lib'
14942 ;;
14943
14944sunos4*)
14945 version_type=sunos
14946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14947 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14948 shlibpath_var=LD_LIBRARY_PATH
14949 shlibpath_overrides_runpath=yes
14950 if test "$with_gnu_ld" = yes; then
14951 need_lib_prefix=no
14952 fi
14953 need_version=yes
14954 ;;
14955
14956sysv4 | sysv4.3*)
14957 version_type=linux
14958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14959 soname_spec='${libname}${release}${shared_ext}$major'
14960 shlibpath_var=LD_LIBRARY_PATH
14961 case $host_vendor in
14962 sni)
14963 shlibpath_overrides_runpath=no
14964 need_lib_prefix=no
14965 runpath_var=LD_RUN_PATH
14966 ;;
14967 siemens)
14968 need_lib_prefix=no
14969 ;;
14970 motorola)
14971 need_lib_prefix=no
14972 need_version=no
14973 shlibpath_overrides_runpath=no
14974 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14975 ;;
14976 esac
14977 ;;
14978
14979sysv4*MP*)
14980 if test -d /usr/nec ;then
14981 version_type=linux
14982 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14983 soname_spec='$libname${shared_ext}.$major'
14984 shlibpath_var=LD_LIBRARY_PATH
14985 fi
14986 ;;
14987
14988sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14989 version_type=freebsd-elf
14990 need_lib_prefix=no
14991 need_version=no
14992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14993 soname_spec='${libname}${release}${shared_ext}$major'
14994 shlibpath_var=LD_LIBRARY_PATH
14995 shlibpath_overrides_runpath=yes
14996 hardcode_into_libs=yes
14997 if test "$with_gnu_ld" = yes; then
14998 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14999 else
15000 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15001 case $host_os in
15002 sco3.2v5*)
15003 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15004 ;;
15005 esac
15006 fi
15007 sys_lib_dlsearch_path_spec='/usr/lib'
15008 ;;
15009
15010tpf*)
15011 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15012 version_type=linux
15013 need_lib_prefix=no
15014 need_version=no
15015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15016 shlibpath_var=LD_LIBRARY_PATH
15017 shlibpath_overrides_runpath=no
15018 hardcode_into_libs=yes
15019 ;;
15020
15021uts4*)
15022 version_type=linux
15023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15024 soname_spec='${libname}${release}${shared_ext}$major'
15025 shlibpath_var=LD_LIBRARY_PATH
15026 ;;
15027
15028*)
15029 dynamic_linker=no
15030 ;;
15031esac
cristy8b350f62009-11-15 23:12:43 +000015032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000015033$as_echo "$dynamic_linker" >&6; }
15034test "$dynamic_linker" = no && can_build_shared=no
15035
15036variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15037if test "$GCC" = yes; then
15038 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15039fi
15040
15041if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15042 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15043fi
15044if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15045 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15046fi
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
cristyfd9dcd42010-08-08 18:07:02 +000015134
15135
15136
15137
15138
cristy8b350f62009-11-15 23:12:43 +000015139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000015140$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15141hardcode_action=
15142if test -n "$hardcode_libdir_flag_spec" ||
15143 test -n "$runpath_var" ||
15144 test "X$hardcode_automatic" = "Xyes" ; then
15145
15146 # We can hardcode non-existent directories.
15147 if test "$hardcode_direct" != no &&
15148 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15149 # have to relink, otherwise we might link with an installed library
15150 # when we should be linking with a yet-to-be-installed one
15151 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15152 test "$hardcode_minus_L" != no; then
15153 # Linking always hardcodes the temporary library directory.
15154 hardcode_action=relink
15155 else
15156 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15157 hardcode_action=immediate
15158 fi
15159else
15160 # We cannot hardcode anything, or else we can only hardcode existing
15161 # directories.
15162 hardcode_action=unsupported
15163fi
cristy8b350f62009-11-15 23:12:43 +000015164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000015165$as_echo "$hardcode_action" >&6; }
15166
15167if test "$hardcode_action" = relink ||
15168 test "$inherit_rpath" = yes; then
15169 # Fast installation is not supported
15170 enable_fast_install=no
15171elif test "$shlibpath_overrides_runpath" = yes ||
15172 test "$enable_shared" = no; then
15173 # Fast installation is not necessary
15174 enable_fast_install=needless
15175fi
15176
15177
15178
15179
15180
15181
15182 if test "x$enable_dlopen" != xyes; then
15183 enable_dlopen=unknown
15184 enable_dlopen_self=unknown
15185 enable_dlopen_self_static=unknown
15186else
15187 lt_cv_dlopen=no
15188 lt_cv_dlopen_libs=
15189
15190 case $host_os in
15191 beos*)
15192 lt_cv_dlopen="load_add_on"
15193 lt_cv_dlopen_libs=
15194 lt_cv_dlopen_self=yes
15195 ;;
15196
15197 mingw* | pw32* | cegcc*)
15198 lt_cv_dlopen="LoadLibrary"
15199 lt_cv_dlopen_libs=
15200 ;;
15201
15202 cygwin*)
15203 lt_cv_dlopen="dlopen"
15204 lt_cv_dlopen_libs=
15205 ;;
15206
15207 darwin*)
15208 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000015209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015210$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015211if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015212 $as_echo_n "(cached) " >&6
15213else
15214 ac_check_lib_save_LIBS=$LIBS
15215LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015217/* end confdefs.h. */
15218
15219/* Override any GCC internal prototype to avoid an error.
15220 Use char because int might match the return type of a GCC
15221 builtin and then its argument prototype would still apply. */
15222#ifdef __cplusplus
15223extern "C"
15224#endif
15225char dlopen ();
15226int
15227main ()
15228{
15229return dlopen ();
15230 ;
15231 return 0;
15232}
15233_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015234if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015235 ac_cv_lib_dl_dlopen=yes
15236else
cristy8b350f62009-11-15 23:12:43 +000015237 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015238fi
cristy8b350f62009-11-15 23:12:43 +000015239rm -f core conftest.err conftest.$ac_objext \
15240 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015241LIBS=$ac_check_lib_save_LIBS
15242fi
cristy8b350f62009-11-15 23:12:43 +000015243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015244$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015245if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015246 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15247else
15248
15249 lt_cv_dlopen="dyld"
15250 lt_cv_dlopen_libs=
15251 lt_cv_dlopen_self=yes
15252
15253fi
15254
15255 ;;
15256
15257 *)
cristy8b350f62009-11-15 23:12:43 +000015258 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15259if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015260 lt_cv_dlopen="shl_load"
15261else
cristy8b350f62009-11-15 23:12:43 +000015262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015263$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015264if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015265 $as_echo_n "(cached) " >&6
15266else
15267 ac_check_lib_save_LIBS=$LIBS
15268LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015270/* end confdefs.h. */
15271
15272/* Override any GCC internal prototype to avoid an error.
15273 Use char because int might match the return type of a GCC
15274 builtin and then its argument prototype would still apply. */
15275#ifdef __cplusplus
15276extern "C"
15277#endif
15278char shl_load ();
15279int
15280main ()
15281{
15282return shl_load ();
15283 ;
15284 return 0;
15285}
15286_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015287if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015288 ac_cv_lib_dld_shl_load=yes
15289else
cristy8b350f62009-11-15 23:12:43 +000015290 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000015291fi
cristy8b350f62009-11-15 23:12:43 +000015292rm -f core conftest.err conftest.$ac_objext \
15293 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015294LIBS=$ac_check_lib_save_LIBS
15295fi
cristy8b350f62009-11-15 23:12:43 +000015296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000015297$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015298if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015299 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15300else
cristy8b350f62009-11-15 23:12:43 +000015301 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15302if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015303 lt_cv_dlopen="dlopen"
15304else
cristy8b350f62009-11-15 23:12:43 +000015305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015306$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015307if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015308 $as_echo_n "(cached) " >&6
15309else
15310 ac_check_lib_save_LIBS=$LIBS
15311LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015313/* end confdefs.h. */
15314
15315/* Override any GCC internal prototype to avoid an error.
15316 Use char because int might match the return type of a GCC
15317 builtin and then its argument prototype would still apply. */
15318#ifdef __cplusplus
15319extern "C"
15320#endif
15321char dlopen ();
15322int
15323main ()
15324{
15325return dlopen ();
15326 ;
15327 return 0;
15328}
15329_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015330if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015331 ac_cv_lib_dl_dlopen=yes
15332else
cristy8b350f62009-11-15 23:12:43 +000015333 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015334fi
cristy8b350f62009-11-15 23:12:43 +000015335rm -f core conftest.err conftest.$ac_objext \
15336 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015337LIBS=$ac_check_lib_save_LIBS
15338fi
cristy8b350f62009-11-15 23:12:43 +000015339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015340$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015341if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015342 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15343else
cristy8b350f62009-11-15 23:12:43 +000015344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015345$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015346if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015347 $as_echo_n "(cached) " >&6
15348else
15349 ac_check_lib_save_LIBS=$LIBS
15350LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015352/* end confdefs.h. */
15353
15354/* Override any GCC internal prototype to avoid an error.
15355 Use char because int might match the return type of a GCC
15356 builtin and then its argument prototype would still apply. */
15357#ifdef __cplusplus
15358extern "C"
15359#endif
15360char dlopen ();
15361int
15362main ()
15363{
15364return dlopen ();
15365 ;
15366 return 0;
15367}
15368_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015369if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015370 ac_cv_lib_svld_dlopen=yes
15371else
cristy8b350f62009-11-15 23:12:43 +000015372 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015373fi
cristy8b350f62009-11-15 23:12:43 +000015374rm -f core conftest.err conftest.$ac_objext \
15375 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015376LIBS=$ac_check_lib_save_LIBS
15377fi
cristy8b350f62009-11-15 23:12:43 +000015378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015379$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015380if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015381 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15382else
cristy8b350f62009-11-15 23:12:43 +000015383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015384$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015385if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015386 $as_echo_n "(cached) " >&6
15387else
15388 ac_check_lib_save_LIBS=$LIBS
15389LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015391/* end confdefs.h. */
15392
15393/* Override any GCC internal prototype to avoid an error.
15394 Use char because int might match the return type of a GCC
15395 builtin and then its argument prototype would still apply. */
15396#ifdef __cplusplus
15397extern "C"
15398#endif
15399char dld_link ();
15400int
15401main ()
15402{
15403return dld_link ();
15404 ;
15405 return 0;
15406}
15407_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015408if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015409 ac_cv_lib_dld_dld_link=yes
15410else
cristy8b350f62009-11-15 23:12:43 +000015411 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000015412fi
cristy8b350f62009-11-15 23:12:43 +000015413rm -f core conftest.err conftest.$ac_objext \
15414 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015415LIBS=$ac_check_lib_save_LIBS
15416fi
cristy8b350f62009-11-15 23:12:43 +000015417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000015418$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015419if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015420 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15421fi
15422
15423
15424fi
15425
15426
15427fi
15428
15429
15430fi
15431
15432
15433fi
15434
15435
15436fi
15437
15438 ;;
15439 esac
15440
15441 if test "x$lt_cv_dlopen" != xno; then
15442 enable_dlopen=yes
15443 else
15444 enable_dlopen=no
15445 fi
15446
15447 case $lt_cv_dlopen in
15448 dlopen)
15449 save_CPPFLAGS="$CPPFLAGS"
15450 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15451
15452 save_LDFLAGS="$LDFLAGS"
15453 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15454
15455 save_LIBS="$LIBS"
15456 LIBS="$lt_cv_dlopen_libs $LIBS"
15457
cristy8b350f62009-11-15 23:12:43 +000015458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015459$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015460if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015461 $as_echo_n "(cached) " >&6
15462else
15463 if test "$cross_compiling" = yes; then :
15464 lt_cv_dlopen_self=cross
15465else
15466 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15467 lt_status=$lt_dlunknown
15468 cat > conftest.$ac_ext <<_LT_EOF
cristyfd9dcd42010-08-08 18:07:02 +000015469#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000015470#include "confdefs.h"
15471
15472#if HAVE_DLFCN_H
15473#include <dlfcn.h>
15474#endif
15475
15476#include <stdio.h>
15477
15478#ifdef RTLD_GLOBAL
15479# define LT_DLGLOBAL RTLD_GLOBAL
15480#else
15481# ifdef DL_GLOBAL
15482# define LT_DLGLOBAL DL_GLOBAL
15483# else
15484# define LT_DLGLOBAL 0
15485# endif
15486#endif
15487
15488/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15489 find out it does not work in some platform. */
15490#ifndef LT_DLLAZY_OR_NOW
15491# ifdef RTLD_LAZY
15492# define LT_DLLAZY_OR_NOW RTLD_LAZY
15493# else
15494# ifdef DL_LAZY
15495# define LT_DLLAZY_OR_NOW DL_LAZY
15496# else
15497# ifdef RTLD_NOW
15498# define LT_DLLAZY_OR_NOW RTLD_NOW
15499# else
15500# ifdef DL_NOW
15501# define LT_DLLAZY_OR_NOW DL_NOW
15502# else
15503# define LT_DLLAZY_OR_NOW 0
15504# endif
15505# endif
15506# endif
15507# endif
15508#endif
15509
cristyfd9dcd42010-08-08 18:07:02 +000015510/* When -fvisbility=hidden is used, assume the code has been annotated
15511 correspondingly for the symbols needed. */
15512#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15513void fnord () __attribute__((visibility("default")));
15514#endif
15515
15516void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000015517int main ()
15518{
15519 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15520 int status = $lt_dlunknown;
15521
15522 if (self)
15523 {
15524 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristyfd9dcd42010-08-08 18:07:02 +000015525 else
15526 {
15527 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15528 else puts (dlerror ());
15529 }
cristy3ed852e2009-09-05 21:47:34 +000015530 /* dlclose (self); */
15531 }
15532 else
15533 puts (dlerror ());
15534
15535 return status;
15536}
15537_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015539 (eval $ac_link) 2>&5
15540 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15542 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015543 (./conftest; exit; ) >&5 2>/dev/null
15544 lt_status=$?
15545 case x$lt_status in
15546 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15547 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15548 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15549 esac
15550 else :
15551 # compilation failed
15552 lt_cv_dlopen_self=no
15553 fi
15554fi
15555rm -fr conftest*
15556
15557
15558fi
cristy8b350f62009-11-15 23:12:43 +000015559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000015560$as_echo "$lt_cv_dlopen_self" >&6; }
15561
15562 if test "x$lt_cv_dlopen_self" = xyes; then
15563 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000015564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015565$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015566if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015567 $as_echo_n "(cached) " >&6
15568else
15569 if test "$cross_compiling" = yes; then :
15570 lt_cv_dlopen_self_static=cross
15571else
15572 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15573 lt_status=$lt_dlunknown
15574 cat > conftest.$ac_ext <<_LT_EOF
cristyfd9dcd42010-08-08 18:07:02 +000015575#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000015576#include "confdefs.h"
15577
15578#if HAVE_DLFCN_H
15579#include <dlfcn.h>
15580#endif
15581
15582#include <stdio.h>
15583
15584#ifdef RTLD_GLOBAL
15585# define LT_DLGLOBAL RTLD_GLOBAL
15586#else
15587# ifdef DL_GLOBAL
15588# define LT_DLGLOBAL DL_GLOBAL
15589# else
15590# define LT_DLGLOBAL 0
15591# endif
15592#endif
15593
15594/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15595 find out it does not work in some platform. */
15596#ifndef LT_DLLAZY_OR_NOW
15597# ifdef RTLD_LAZY
15598# define LT_DLLAZY_OR_NOW RTLD_LAZY
15599# else
15600# ifdef DL_LAZY
15601# define LT_DLLAZY_OR_NOW DL_LAZY
15602# else
15603# ifdef RTLD_NOW
15604# define LT_DLLAZY_OR_NOW RTLD_NOW
15605# else
15606# ifdef DL_NOW
15607# define LT_DLLAZY_OR_NOW DL_NOW
15608# else
15609# define LT_DLLAZY_OR_NOW 0
15610# endif
15611# endif
15612# endif
15613# endif
15614#endif
15615
cristyfd9dcd42010-08-08 18:07:02 +000015616/* When -fvisbility=hidden is used, assume the code has been annotated
15617 correspondingly for the symbols needed. */
15618#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15619void fnord () __attribute__((visibility("default")));
15620#endif
15621
15622void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000015623int main ()
15624{
15625 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15626 int status = $lt_dlunknown;
15627
15628 if (self)
15629 {
15630 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristyfd9dcd42010-08-08 18:07:02 +000015631 else
15632 {
15633 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15634 else puts (dlerror ());
15635 }
cristy3ed852e2009-09-05 21:47:34 +000015636 /* dlclose (self); */
15637 }
15638 else
15639 puts (dlerror ());
15640
15641 return status;
15642}
15643_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015645 (eval $ac_link) 2>&5
15646 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15648 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015649 (./conftest; exit; ) >&5 2>/dev/null
15650 lt_status=$?
15651 case x$lt_status in
15652 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15653 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15654 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15655 esac
15656 else :
15657 # compilation failed
15658 lt_cv_dlopen_self_static=no
15659 fi
15660fi
15661rm -fr conftest*
15662
15663
15664fi
cristy8b350f62009-11-15 23:12:43 +000015665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015666$as_echo "$lt_cv_dlopen_self_static" >&6; }
15667 fi
15668
15669 CPPFLAGS="$save_CPPFLAGS"
15670 LDFLAGS="$save_LDFLAGS"
15671 LIBS="$save_LIBS"
15672 ;;
15673 esac
15674
15675 case $lt_cv_dlopen_self in
15676 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15677 *) enable_dlopen_self=unknown ;;
15678 esac
15679
15680 case $lt_cv_dlopen_self_static in
15681 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15682 *) enable_dlopen_self_static=unknown ;;
15683 esac
15684fi
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702striplib=
15703old_striplib=
cristy8b350f62009-11-15 23:12:43 +000015704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000015705$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15706if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15707 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15708 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000015709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015710$as_echo "yes" >&6; }
15711else
15712# FIXME - insert some real tests, host_os isn't really good enough
15713 case $host_os in
15714 darwin*)
15715 if test -n "$STRIP" ; then
15716 striplib="$STRIP -x"
15717 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000015718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015719$as_echo "yes" >&6; }
15720 else
cristy8b350f62009-11-15 23:12:43 +000015721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015722$as_echo "no" >&6; }
15723 fi
15724 ;;
15725 *)
cristy8b350f62009-11-15 23:12:43 +000015726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015727$as_echo "no" >&6; }
15728 ;;
15729 esac
15730fi
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000015744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015745$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015747$as_echo "$can_build_shared" >&6; }
15748
cristy8b350f62009-11-15 23:12:43 +000015749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015750$as_echo_n "checking whether to build shared libraries... " >&6; }
15751 test "$can_build_shared" = "no" && enable_shared=no
15752
15753 # On AIX, shared libraries and static libraries use the same namespace, and
15754 # are all built from PIC.
15755 case $host_os in
15756 aix3*)
15757 test "$enable_shared" = yes && enable_static=no
15758 if test -n "$RANLIB"; then
15759 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15760 postinstall_cmds='$RANLIB $lib'
15761 fi
15762 ;;
15763
15764 aix[4-9]*)
15765 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15766 test "$enable_shared" = yes && enable_static=no
15767 fi
15768 ;;
15769 esac
cristy8b350f62009-11-15 23:12:43 +000015770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015771$as_echo "$enable_shared" >&6; }
15772
cristy8b350f62009-11-15 23:12:43 +000015773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015774$as_echo_n "checking whether to build static libraries... " >&6; }
15775 # Make sure either enable_shared or enable_static is yes.
15776 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000015777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015778$as_echo "$enable_static" >&6; }
15779
15780
15781
15782
15783fi
15784ac_ext=c
15785ac_cpp='$CPP $CPPFLAGS'
15786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15788ac_compiler_gnu=$ac_cv_c_compiler_gnu
15789
15790CC="$lt_save_CC"
15791
cristyfd9dcd42010-08-08 18:07:02 +000015792 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15793 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15794 (test "X$CXX" != "Xg++"))) ; then
15795 ac_ext=cpp
15796ac_cpp='$CXXCPP $CPPFLAGS'
15797ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15798ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15799ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15801$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15802if test -z "$CXXCPP"; then
15803 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
15804 $as_echo_n "(cached) " >&6
15805else
15806 # Double quotes because CXXCPP needs to be expanded
15807 for CXXCPP in "$CXX -E" "/lib/cpp"
15808 do
15809 ac_preproc_ok=false
15810for ac_cxx_preproc_warn_flag in '' yes
15811do
15812 # Use a header file that comes with gcc, so configuring glibc
15813 # with a fresh cross-compiler works.
15814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15815 # <limits.h> exists even on freestanding compilers.
15816 # On the NeXT, cc -E runs the code through the compiler's parser,
15817 # not just through cpp. "Syntax error" is here to catch this case.
15818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15819/* end confdefs.h. */
15820#ifdef __STDC__
15821# include <limits.h>
15822#else
15823# include <assert.h>
15824#endif
15825 Syntax error
15826_ACEOF
15827if ac_fn_cxx_try_cpp "$LINENO"; then :
15828
15829else
15830 # Broken: fails on valid input.
15831continue
15832fi
15833rm -f conftest.err conftest.$ac_ext
15834
15835 # OK, works on sane cases. Now check whether nonexistent headers
15836 # can be detected and how.
15837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15838/* end confdefs.h. */
15839#include <ac_nonexistent.h>
15840_ACEOF
15841if ac_fn_cxx_try_cpp "$LINENO"; then :
15842 # Broken: success on invalid input.
15843continue
15844else
15845 # Passes both tests.
15846ac_preproc_ok=:
15847break
15848fi
15849rm -f conftest.err conftest.$ac_ext
15850
15851done
15852# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15853rm -f conftest.err conftest.$ac_ext
15854if $ac_preproc_ok; then :
15855 break
15856fi
15857
15858 done
15859 ac_cv_prog_CXXCPP=$CXXCPP
15860
15861fi
15862 CXXCPP=$ac_cv_prog_CXXCPP
15863else
15864 ac_cv_prog_CXXCPP=$CXXCPP
15865fi
15866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15867$as_echo "$CXXCPP" >&6; }
15868ac_preproc_ok=false
15869for ac_cxx_preproc_warn_flag in '' yes
15870do
15871 # Use a header file that comes with gcc, so configuring glibc
15872 # with a fresh cross-compiler works.
15873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15874 # <limits.h> exists even on freestanding compilers.
15875 # On the NeXT, cc -E runs the code through the compiler's parser,
15876 # not just through cpp. "Syntax error" is here to catch this case.
15877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878/* end confdefs.h. */
15879#ifdef __STDC__
15880# include <limits.h>
15881#else
15882# include <assert.h>
15883#endif
15884 Syntax error
15885_ACEOF
15886if ac_fn_cxx_try_cpp "$LINENO"; then :
15887
15888else
15889 # Broken: fails on valid input.
15890continue
15891fi
15892rm -f conftest.err conftest.$ac_ext
15893
15894 # OK, works on sane cases. Now check whether nonexistent headers
15895 # can be detected and how.
15896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15897/* end confdefs.h. */
15898#include <ac_nonexistent.h>
15899_ACEOF
15900if ac_fn_cxx_try_cpp "$LINENO"; then :
15901 # Broken: success on invalid input.
15902continue
15903else
15904 # Passes both tests.
15905ac_preproc_ok=:
15906break
15907fi
15908rm -f conftest.err conftest.$ac_ext
15909
15910done
15911# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15912rm -f conftest.err conftest.$ac_ext
15913if $ac_preproc_ok; then :
15914
15915else
15916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15917$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15918as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15919See \`config.log' for more details" "$LINENO" 5; }
15920fi
15921
15922ac_ext=c
15923ac_cpp='$CPP $CPPFLAGS'
15924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15926ac_compiler_gnu=$ac_cv_c_compiler_gnu
15927
15928else
15929 _lt_caught_CXX_error=yes
15930fi
cristy3ed852e2009-09-05 21:47:34 +000015931
15932ac_ext=cpp
15933ac_cpp='$CXXCPP $CPPFLAGS'
15934ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15935ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15936ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15937
15938archive_cmds_need_lc_CXX=no
15939allow_undefined_flag_CXX=
15940always_export_symbols_CXX=no
15941archive_expsym_cmds_CXX=
15942compiler_needs_object_CXX=no
15943export_dynamic_flag_spec_CXX=
15944hardcode_direct_CXX=no
15945hardcode_direct_absolute_CXX=no
15946hardcode_libdir_flag_spec_CXX=
15947hardcode_libdir_flag_spec_ld_CXX=
15948hardcode_libdir_separator_CXX=
15949hardcode_minus_L_CXX=no
15950hardcode_shlibpath_var_CXX=unsupported
15951hardcode_automatic_CXX=no
15952inherit_rpath_CXX=no
15953module_cmds_CXX=
15954module_expsym_cmds_CXX=
15955link_all_deplibs_CXX=unknown
15956old_archive_cmds_CXX=$old_archive_cmds
cristyfd9dcd42010-08-08 18:07:02 +000015957reload_flag_CXX=$reload_flag
15958reload_cmds_CXX=$reload_cmds
cristy3ed852e2009-09-05 21:47:34 +000015959no_undefined_flag_CXX=
15960whole_archive_flag_spec_CXX=
15961enable_shared_with_static_runtimes_CXX=no
15962
15963# Source file extension for C++ test sources.
15964ac_ext=cpp
15965
15966# Object file extension for compiled C++ test sources.
15967objext=o
15968objext_CXX=$objext
15969
15970# No sense in running all these tests if we already determined that
15971# the CXX compiler isn't working. Some variables (like enable_shared)
15972# are currently assumed to apply to all compilers on this platform,
15973# and will be corrupted by setting them based on a non-working compiler.
15974if test "$_lt_caught_CXX_error" != yes; then
15975 # Code to be used in simple compile tests
15976 lt_simple_compile_test_code="int some_variable = 0;"
15977
15978 # Code to be used in simple link tests
15979 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15980
15981 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15982
15983
15984
15985
15986
15987
15988# If no C compiler was specified, use CC.
15989LTCC=${LTCC-"$CC"}
15990
15991# If no C compiler flags were specified, use CFLAGS.
15992LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15993
15994# Allow CC to be a program name with arguments.
15995compiler=$CC
15996
15997
15998 # save warnings/boilerplate of simple test code
15999 ac_outfile=conftest.$ac_objext
16000echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16001eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16002_lt_compiler_boilerplate=`cat conftest.err`
16003$RM conftest*
16004
16005 ac_outfile=conftest.$ac_objext
16006echo "$lt_simple_link_test_code" >conftest.$ac_ext
16007eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16008_lt_linker_boilerplate=`cat conftest.err`
16009$RM -r conftest*
16010
16011
16012 # Allow CC to be a program name with arguments.
16013 lt_save_CC=$CC
16014 lt_save_LD=$LD
16015 lt_save_GCC=$GCC
16016 GCC=$GXX
16017 lt_save_with_gnu_ld=$with_gnu_ld
16018 lt_save_path_LD=$lt_cv_path_LD
16019 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16020 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16021 else
16022 $as_unset lt_cv_prog_gnu_ld
16023 fi
16024 if test -n "${lt_cv_path_LDCXX+set}"; then
16025 lt_cv_path_LD=$lt_cv_path_LDCXX
16026 else
16027 $as_unset lt_cv_path_LD
16028 fi
16029 test -z "${LDCXX+set}" || LD=$LDCXX
16030 CC=${CXX-"c++"}
16031 compiler=$CC
16032 compiler_CXX=$CC
16033 for cc_temp in $compiler""; do
16034 case $cc_temp in
16035 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16036 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16037 \-*) ;;
16038 *) break;;
16039 esac
16040done
cristyfd9dcd42010-08-08 18:07:02 +000016041cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000016042
16043
16044 if test -n "$compiler"; then
16045 # We don't want -fno-exception when compiling C++ code, so set the
16046 # no_builtin_flag separately
16047 if test "$GXX" = yes; then
16048 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16049 else
16050 lt_prog_compiler_no_builtin_flag_CXX=
16051 fi
16052
16053 if test "$GXX" = yes; then
16054 # Set up default GNU C++ configuration
16055
16056
16057
16058# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000016059if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016060 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16061else
16062 with_gnu_ld=no
16063fi
16064
16065ac_prog=ld
16066if test "$GCC" = yes; then
16067 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000016068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016069$as_echo_n "checking for ld used by $CC... " >&6; }
16070 case $host in
16071 *-*-mingw*)
16072 # gcc leaves a trailing carriage return which upsets mingw
16073 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16074 *)
16075 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16076 esac
16077 case $ac_prog in
16078 # Accept absolute paths.
16079 [\\/]* | ?:[\\/]*)
16080 re_direlt='/[^/][^/]*/\.\./'
16081 # Canonicalize the pathname of ld
16082 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16083 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16084 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16085 done
16086 test -z "$LD" && LD="$ac_prog"
16087 ;;
16088 "")
16089 # If it fails, then pretend we aren't using GCC.
16090 ac_prog=ld
16091 ;;
16092 *)
16093 # If it is relative, then search for the first ld in PATH.
16094 with_gnu_ld=unknown
16095 ;;
16096 esac
16097elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000016098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016099$as_echo_n "checking for GNU ld... " >&6; }
16100else
cristy8b350f62009-11-15 23:12:43 +000016101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016102$as_echo_n "checking for non-GNU ld... " >&6; }
16103fi
cristy8b350f62009-11-15 23:12:43 +000016104if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016105 $as_echo_n "(cached) " >&6
16106else
16107 if test -z "$LD"; then
16108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16109 for ac_dir in $PATH; do
16110 IFS="$lt_save_ifs"
16111 test -z "$ac_dir" && ac_dir=.
16112 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16113 lt_cv_path_LD="$ac_dir/$ac_prog"
16114 # Check to see if the program is GNU ld. I'd rather use --version,
16115 # but apparently some variants of GNU ld only accept -v.
16116 # Break only if it was the GNU/non-GNU ld that we prefer.
16117 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16118 *GNU* | *'with BFD'*)
16119 test "$with_gnu_ld" != no && break
16120 ;;
16121 *)
16122 test "$with_gnu_ld" != yes && break
16123 ;;
16124 esac
16125 fi
16126 done
16127 IFS="$lt_save_ifs"
16128else
16129 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16130fi
16131fi
16132
16133LD="$lt_cv_path_LD"
16134if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000016135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000016136$as_echo "$LD" >&6; }
16137else
cristy8b350f62009-11-15 23:12:43 +000016138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016139$as_echo "no" >&6; }
16140fi
cristyfd9dcd42010-08-08 18:07:02 +000016141test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy8b350f62009-11-15 23:12:43 +000016142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016143$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016144if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016145 $as_echo_n "(cached) " >&6
16146else
16147 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16148case `$LD -v 2>&1 </dev/null` in
16149*GNU* | *'with BFD'*)
16150 lt_cv_prog_gnu_ld=yes
16151 ;;
16152*)
16153 lt_cv_prog_gnu_ld=no
16154 ;;
16155esac
16156fi
cristy8b350f62009-11-15 23:12:43 +000016157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016158$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16159with_gnu_ld=$lt_cv_prog_gnu_ld
16160
16161
16162
16163
16164
16165
16166
16167 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16168 # archiving commands below assume that GNU ld is being used.
16169 if test "$with_gnu_ld" = yes; then
16170 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16171 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'
16172
16173 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16174 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16175
16176 # If archive_cmds runs LD, not CC, wlarc should be empty
16177 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16178 # investigate it a little bit more. (MM)
16179 wlarc='${wl}'
16180
16181 # ancient GNU ld didn't support --whole-archive et. al.
16182 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16183 $GREP 'no-whole-archive' > /dev/null; then
16184 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16185 else
16186 whole_archive_flag_spec_CXX=
16187 fi
16188 else
16189 with_gnu_ld=no
16190 wlarc=
16191
16192 # A generic and very simple default shared library creation
16193 # command for GNU C++ for the case where it uses the native
16194 # linker, instead of GNU ld. If possible, this setting should
16195 # overridden to take advantage of the native linker features on
16196 # the platform it is being used on.
16197 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16198 fi
16199
16200 # Commands to make compiler produce verbose output that lists
16201 # what "hidden" libraries, object files and flags are used when
16202 # linking a shared library.
cristyfd9dcd42010-08-08 18:07:02 +000016203 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016204
16205 else
16206 GXX=no
16207 with_gnu_ld=no
16208 wlarc=
16209 fi
16210
16211 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000016212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016213$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16214 ld_shlibs_CXX=yes
16215 case $host_os in
16216 aix3*)
16217 # FIXME: insert proper C++ library support
16218 ld_shlibs_CXX=no
16219 ;;
16220 aix[4-9]*)
16221 if test "$host_cpu" = ia64; then
16222 # On IA64, the linker does run time linking by default, so we don't
16223 # have to do anything special.
16224 aix_use_runtimelinking=no
16225 exp_sym_flag='-Bexport'
16226 no_entry_flag=""
16227 else
16228 aix_use_runtimelinking=no
16229
16230 # Test if we are trying to use run time linking or normal
16231 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16232 # need to do runtime linking.
16233 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16234 for ld_flag in $LDFLAGS; do
16235 case $ld_flag in
16236 *-brtl*)
16237 aix_use_runtimelinking=yes
16238 break
16239 ;;
16240 esac
16241 done
16242 ;;
16243 esac
16244
16245 exp_sym_flag='-bexport'
16246 no_entry_flag='-bnoentry'
16247 fi
16248
16249 # When large executables or shared objects are built, AIX ld can
16250 # have problems creating the table of contents. If linking a library
16251 # or program results in "error TOC overflow" add -mminimal-toc to
16252 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16253 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16254
16255 archive_cmds_CXX=''
16256 hardcode_direct_CXX=yes
16257 hardcode_direct_absolute_CXX=yes
16258 hardcode_libdir_separator_CXX=':'
16259 link_all_deplibs_CXX=yes
16260 file_list_spec_CXX='${wl}-f,'
16261
16262 if test "$GXX" = yes; then
16263 case $host_os in aix4.[012]|aix4.[012].*)
16264 # We only want to do this on AIX 4.2 and lower, the check
16265 # below for broken collect2 doesn't work under 4.3+
16266 collect2name=`${CC} -print-prog-name=collect2`
16267 if test -f "$collect2name" &&
16268 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16269 then
16270 # We have reworked collect2
16271 :
16272 else
16273 # We have old collect2
16274 hardcode_direct_CXX=unsupported
16275 # It fails to find uninstalled libraries when the uninstalled
16276 # path is not listed in the libpath. Setting hardcode_minus_L
16277 # to unsupported forces relinking
16278 hardcode_minus_L_CXX=yes
16279 hardcode_libdir_flag_spec_CXX='-L$libdir'
16280 hardcode_libdir_separator_CXX=
16281 fi
16282 esac
16283 shared_flag='-shared'
16284 if test "$aix_use_runtimelinking" = yes; then
16285 shared_flag="$shared_flag "'${wl}-G'
16286 fi
16287 else
16288 # not using gcc
16289 if test "$host_cpu" = ia64; then
16290 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16291 # chokes on -Wl,-G. The following line is correct:
16292 shared_flag='-G'
16293 else
16294 if test "$aix_use_runtimelinking" = yes; then
16295 shared_flag='${wl}-G'
16296 else
16297 shared_flag='${wl}-bM:SRE'
16298 fi
16299 fi
16300 fi
16301
16302 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16303 # It seems that -bexpall does not export symbols beginning with
16304 # underscore (_), so it is better to generate a list of symbols to
16305 # export.
16306 always_export_symbols_CXX=yes
16307 if test "$aix_use_runtimelinking" = yes; then
16308 # Warning - without using the other runtime loading flags (-brtl),
16309 # -berok will link without error, but may produce a broken library.
16310 allow_undefined_flag_CXX='-berok'
16311 # Determine the default libpath from the value encoded in an empty
16312 # executable.
cristy8b350f62009-11-15 23:12:43 +000016313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016314/* end confdefs.h. */
16315
16316int
16317main ()
16318{
16319
16320 ;
16321 return 0;
16322}
16323_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016324if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016325
16326lt_aix_libpath_sed='
16327 /Import File Strings/,/^$/ {
16328 /^0/ {
16329 s/^0 *\(.*\)$/\1/
16330 p
16331 }
16332 }'
16333aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16334# Check for a 64-bit object if we didn't find anything.
16335if test -z "$aix_libpath"; then
16336 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16337fi
cristy3ed852e2009-09-05 21:47:34 +000016338fi
cristy8b350f62009-11-15 23:12:43 +000016339rm -f core conftest.err conftest.$ac_objext \
16340 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016341if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16342
16343 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16344
cristyfd9dcd42010-08-08 18:07:02 +000016345 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 +000016346 else
16347 if test "$host_cpu" = ia64; then
16348 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16349 allow_undefined_flag_CXX="-z nodefs"
16350 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"
16351 else
16352 # Determine the default libpath from the value encoded in an
16353 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000016354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016355/* end confdefs.h. */
16356
16357int
16358main ()
16359{
16360
16361 ;
16362 return 0;
16363}
16364_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016365if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016366
16367lt_aix_libpath_sed='
16368 /Import File Strings/,/^$/ {
16369 /^0/ {
16370 s/^0 *\(.*\)$/\1/
16371 p
16372 }
16373 }'
16374aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16375# Check for a 64-bit object if we didn't find anything.
16376if test -z "$aix_libpath"; then
16377 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16378fi
cristy3ed852e2009-09-05 21:47:34 +000016379fi
cristy8b350f62009-11-15 23:12:43 +000016380rm -f core conftest.err conftest.$ac_objext \
16381 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016382if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16383
16384 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16385 # Warning - without using the other run time loading flags,
16386 # -berok will link without error, but may produce a broken library.
16387 no_undefined_flag_CXX=' ${wl}-bernotok'
16388 allow_undefined_flag_CXX=' ${wl}-berok'
cristyfd9dcd42010-08-08 18:07:02 +000016389 if test "$with_gnu_ld" = yes; then
16390 # We only use this code for GNU lds that support --whole-archive.
16391 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16392 else
16393 # Exported symbols can be pulled into shared objects from archives
16394 whole_archive_flag_spec_CXX='$convenience'
16395 fi
cristy3ed852e2009-09-05 21:47:34 +000016396 archive_cmds_need_lc_CXX=yes
16397 # This is similar to how AIX traditionally builds its shared
16398 # libraries.
16399 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'
16400 fi
16401 fi
16402 ;;
16403
16404 beos*)
16405 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16406 allow_undefined_flag_CXX=unsupported
16407 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16408 # support --undefined. This deserves some investigation. FIXME
16409 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16410 else
16411 ld_shlibs_CXX=no
16412 fi
16413 ;;
16414
16415 chorus*)
16416 case $cc_basename in
16417 *)
16418 # FIXME: insert proper C++ library support
16419 ld_shlibs_CXX=no
16420 ;;
16421 esac
16422 ;;
16423
16424 cygwin* | mingw* | pw32* | cegcc*)
16425 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16426 # as there is no search path for DLLs.
16427 hardcode_libdir_flag_spec_CXX='-L$libdir'
cristyfd9dcd42010-08-08 18:07:02 +000016428 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
cristy3ed852e2009-09-05 21:47:34 +000016429 allow_undefined_flag_CXX=unsupported
16430 always_export_symbols_CXX=no
16431 enable_shared_with_static_runtimes_CXX=yes
16432
16433 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16434 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'
16435 # If the export-symbols file already is a .def file (1st line
16436 # is EXPORTS), use it as is; otherwise, prepend...
16437 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16438 cp $export_symbols $output_objdir/$soname.def;
16439 else
16440 echo EXPORTS > $output_objdir/$soname.def;
16441 cat $export_symbols >> $output_objdir/$soname.def;
16442 fi~
16443 $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'
16444 else
16445 ld_shlibs_CXX=no
16446 fi
16447 ;;
16448 darwin* | rhapsody*)
16449
16450
16451 archive_cmds_need_lc_CXX=no
16452 hardcode_direct_CXX=no
16453 hardcode_automatic_CXX=yes
16454 hardcode_shlibpath_var_CXX=unsupported
cristyfd9dcd42010-08-08 18:07:02 +000016455 if test "$lt_cv_ld_force_load" = "yes"; then
16456 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\"`'
16457 else
16458 whole_archive_flag_spec_CXX=''
16459 fi
cristy3ed852e2009-09-05 21:47:34 +000016460 link_all_deplibs_CXX=yes
16461 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16462 case $cc_basename in
16463 ifort*) _lt_dar_can_shared=yes ;;
16464 *) _lt_dar_can_shared=$GCC ;;
16465 esac
16466 if test "$_lt_dar_can_shared" = "yes"; then
cristyfd9dcd42010-08-08 18:07:02 +000016467 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000016468 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}"
16469 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16470 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}"
16471 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}"
16472 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16473 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}"
16474 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}"
16475 fi
16476
16477 else
16478 ld_shlibs_CXX=no
16479 fi
16480
16481 ;;
16482
16483 dgux*)
16484 case $cc_basename in
16485 ec++*)
16486 # FIXME: insert proper C++ library support
16487 ld_shlibs_CXX=no
16488 ;;
16489 ghcx*)
16490 # Green Hills C++ Compiler
16491 # FIXME: insert proper C++ library support
16492 ld_shlibs_CXX=no
16493 ;;
16494 *)
16495 # FIXME: insert proper C++ library support
16496 ld_shlibs_CXX=no
16497 ;;
16498 esac
16499 ;;
16500
16501 freebsd[12]*)
16502 # C++ shared libraries reported to be fairly broken before
16503 # switch to ELF
16504 ld_shlibs_CXX=no
16505 ;;
16506
16507 freebsd-elf*)
16508 archive_cmds_need_lc_CXX=no
16509 ;;
16510
16511 freebsd* | dragonfly*)
16512 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16513 # conventions
16514 ld_shlibs_CXX=yes
16515 ;;
16516
16517 gnu*)
16518 ;;
16519
cristyfd9dcd42010-08-08 18:07:02 +000016520 haiku*)
16521 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16522 link_all_deplibs_CXX=yes
16523 ;;
16524
cristy3ed852e2009-09-05 21:47:34 +000016525 hpux9*)
16526 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16527 hardcode_libdir_separator_CXX=:
16528 export_dynamic_flag_spec_CXX='${wl}-E'
16529 hardcode_direct_CXX=yes
16530 hardcode_minus_L_CXX=yes # Not in the search PATH,
16531 # but as the default
16532 # location of the library.
16533
16534 case $cc_basename in
16535 CC*)
16536 # FIXME: insert proper C++ library support
16537 ld_shlibs_CXX=no
16538 ;;
16539 aCC*)
16540 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'
16541 # Commands to make compiler produce verbose output that lists
16542 # what "hidden" libraries, object files and flags are used when
16543 # linking a shared library.
16544 #
16545 # There doesn't appear to be a way to prevent this compiler from
16546 # explicitly linking system object files so we need to strip them
16547 # from the output so that they don't get included in the library
16548 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016549 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 +000016550 ;;
16551 *)
16552 if test "$GXX" = yes; then
16553 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'
16554 else
16555 # FIXME: insert proper C++ library support
16556 ld_shlibs_CXX=no
16557 fi
16558 ;;
16559 esac
16560 ;;
16561
16562 hpux10*|hpux11*)
16563 if test $with_gnu_ld = no; then
16564 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16565 hardcode_libdir_separator_CXX=:
16566
16567 case $host_cpu in
16568 hppa*64*|ia64*)
16569 ;;
16570 *)
16571 export_dynamic_flag_spec_CXX='${wl}-E'
16572 ;;
16573 esac
16574 fi
16575 case $host_cpu in
16576 hppa*64*|ia64*)
16577 hardcode_direct_CXX=no
16578 hardcode_shlibpath_var_CXX=no
16579 ;;
16580 *)
16581 hardcode_direct_CXX=yes
16582 hardcode_direct_absolute_CXX=yes
16583 hardcode_minus_L_CXX=yes # Not in the search PATH,
16584 # but as the default
16585 # location of the library.
16586 ;;
16587 esac
16588
16589 case $cc_basename in
16590 CC*)
16591 # FIXME: insert proper C++ library support
16592 ld_shlibs_CXX=no
16593 ;;
16594 aCC*)
16595 case $host_cpu in
16596 hppa*64*)
16597 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16598 ;;
16599 ia64*)
16600 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16601 ;;
16602 *)
16603 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16604 ;;
16605 esac
16606 # Commands to make compiler produce verbose output that lists
16607 # what "hidden" libraries, object files and flags are used when
16608 # linking a shared library.
16609 #
16610 # There doesn't appear to be a way to prevent this compiler from
16611 # explicitly linking system object files so we need to strip them
16612 # from the output so that they don't get included in the library
16613 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016614 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 +000016615 ;;
16616 *)
16617 if test "$GXX" = yes; then
16618 if test $with_gnu_ld = no; then
16619 case $host_cpu in
16620 hppa*64*)
16621 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16622 ;;
16623 ia64*)
16624 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16625 ;;
16626 *)
16627 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'
16628 ;;
16629 esac
16630 fi
16631 else
16632 # FIXME: insert proper C++ library support
16633 ld_shlibs_CXX=no
16634 fi
16635 ;;
16636 esac
16637 ;;
16638
16639 interix[3-9]*)
16640 hardcode_direct_CXX=no
16641 hardcode_shlibpath_var_CXX=no
16642 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16643 export_dynamic_flag_spec_CXX='${wl}-E'
16644 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16645 # Instead, shared libraries are loaded at an image base (0x10000000 by
16646 # default) and relocated if they conflict, which is a slow very memory
16647 # consuming and fragmenting process. To avoid this, we pick a random,
16648 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16649 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16650 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'
16651 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'
16652 ;;
16653 irix5* | irix6*)
16654 case $cc_basename in
16655 CC*)
16656 # SGI C++
cristyfd9dcd42010-08-08 18:07:02 +000016657 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 +000016658
16659 # Archives containing C++ object files must be created using
16660 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16661 # necessary to make sure instantiated templates are included
16662 # in the archive.
16663 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16664 ;;
16665 *)
16666 if test "$GXX" = yes; then
16667 if test "$with_gnu_ld" = no; then
cristyfd9dcd42010-08-08 18:07:02 +000016668 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 +000016669 else
cristyfd9dcd42010-08-08 18:07:02 +000016670 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 +000016671 fi
16672 fi
16673 link_all_deplibs_CXX=yes
16674 ;;
16675 esac
16676 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16677 hardcode_libdir_separator_CXX=:
16678 inherit_rpath_CXX=yes
16679 ;;
16680
cristyfd9dcd42010-08-08 18:07:02 +000016681 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016682 case $cc_basename in
16683 KCC*)
16684 # Kuck and Associates, Inc. (KAI) C++ Compiler
16685
16686 # KCC will only create a shared library if the output file
16687 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16688 # to its proper name (with version) after linking.
16689 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'
16690 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'
16691 # Commands to make compiler produce verbose output that lists
16692 # what "hidden" libraries, object files and flags are used when
16693 # linking a shared library.
16694 #
16695 # There doesn't appear to be a way to prevent this compiler from
16696 # explicitly linking system object files so we need to strip them
16697 # from the output so that they don't get included in the library
16698 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016699 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 +000016700
16701 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16702 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16703
16704 # Archives containing C++ object files must be created using
16705 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16706 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16707 ;;
16708 icpc* | ecpc* )
16709 # Intel C++
16710 with_gnu_ld=yes
16711 # version 8.0 and above of icpc choke on multiply defined symbols
16712 # if we add $predep_objects and $postdep_objects, however 7.1 and
16713 # earlier do not add the objects themselves.
16714 case `$CC -V 2>&1` in
16715 *"Version 7."*)
16716 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16717 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'
16718 ;;
16719 *) # Version 8.0 or newer
16720 tmp_idyn=
16721 case $host_cpu in
16722 ia64*) tmp_idyn=' -i_dynamic';;
16723 esac
16724 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16725 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'
16726 ;;
16727 esac
16728 archive_cmds_need_lc_CXX=no
16729 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16730 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16731 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16732 ;;
16733 pgCC* | pgcpp*)
16734 # Portland Group C++ compiler
16735 case `$CC -V` in
cristyfd9dcd42010-08-08 18:07:02 +000016736 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy3ed852e2009-09-05 21:47:34 +000016737 prelink_cmds_CXX='tpldir=Template.dir~
16738 rm -rf $tpldir~
16739 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristyfd9dcd42010-08-08 18:07:02 +000016740 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy3ed852e2009-09-05 21:47:34 +000016741 old_archive_cmds_CXX='tpldir=Template.dir~
16742 rm -rf $tpldir~
16743 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristyfd9dcd42010-08-08 18:07:02 +000016744 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy3ed852e2009-09-05 21:47:34 +000016745 $RANLIB $oldlib'
16746 archive_cmds_CXX='tpldir=Template.dir~
16747 rm -rf $tpldir~
16748 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristyfd9dcd42010-08-08 18:07:02 +000016749 $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 +000016750 archive_expsym_cmds_CXX='tpldir=Template.dir~
16751 rm -rf $tpldir~
16752 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristyfd9dcd42010-08-08 18:07:02 +000016753 $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 +000016754 ;;
cristyfd9dcd42010-08-08 18:07:02 +000016755 *) # Version 6 and above use weak symbols
cristy3ed852e2009-09-05 21:47:34 +000016756 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16757 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'
16758 ;;
16759 esac
16760
16761 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16762 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristyfd9dcd42010-08-08 18:07:02 +000016763 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 +000016764 ;;
16765 cxx*)
16766 # Compaq C++
16767 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16768 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'
16769
16770 runpath_var=LD_RUN_PATH
16771 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16772 hardcode_libdir_separator_CXX=:
16773
16774 # Commands to make compiler produce verbose output that lists
16775 # what "hidden" libraries, object files and flags are used when
16776 # linking a shared library.
16777 #
16778 # There doesn't appear to be a way to prevent this compiler from
16779 # explicitly linking system object files so we need to strip them
16780 # from the output so that they don't get included in the library
16781 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016782 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 +000016783 ;;
cristyfd9dcd42010-08-08 18:07:02 +000016784 xl* | mpixl* | bgxl*)
cristy3ed852e2009-09-05 21:47:34 +000016785 # IBM XL 8.0 on PPC, with GNU ld
16786 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16787 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16788 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16789 if test "x$supports_anon_versioning" = xyes; then
16790 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16791 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16792 echo "local: *; };" >> $output_objdir/$libname.ver~
16793 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16794 fi
16795 ;;
16796 *)
16797 case `$CC -V 2>&1 | sed 5q` in
16798 *Sun\ C*)
16799 # Sun C++ 5.9
16800 no_undefined_flag_CXX=' -zdefs'
16801 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16802 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'
16803 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristyfd9dcd42010-08-08 18:07:02 +000016804 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 +000016805 compiler_needs_object_CXX=yes
16806
16807 # Not sure whether something based on
16808 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16809 # would be better.
cristyfd9dcd42010-08-08 18:07:02 +000016810 output_verbose_link_cmd='func_echo_all'
cristy3ed852e2009-09-05 21:47:34 +000016811
16812 # Archives containing C++ object files must be created using
16813 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16814 # necessary to make sure instantiated templates are included
16815 # in the archive.
16816 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16817 ;;
16818 esac
16819 ;;
16820 esac
16821 ;;
16822
16823 lynxos*)
16824 # FIXME: insert proper C++ library support
16825 ld_shlibs_CXX=no
16826 ;;
16827
16828 m88k*)
16829 # FIXME: insert proper C++ library support
16830 ld_shlibs_CXX=no
16831 ;;
16832
16833 mvs*)
16834 case $cc_basename in
16835 cxx*)
16836 # FIXME: insert proper C++ library support
16837 ld_shlibs_CXX=no
16838 ;;
16839 *)
16840 # FIXME: insert proper C++ library support
16841 ld_shlibs_CXX=no
16842 ;;
16843 esac
16844 ;;
16845
16846 netbsd*)
16847 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16848 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16849 wlarc=
16850 hardcode_libdir_flag_spec_CXX='-R$libdir'
16851 hardcode_direct_CXX=yes
16852 hardcode_shlibpath_var_CXX=no
16853 fi
16854 # Workaround some broken pre-1.5 toolchains
16855 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16856 ;;
16857
16858 *nto* | *qnx*)
16859 ld_shlibs_CXX=yes
16860 ;;
16861
16862 openbsd2*)
16863 # C++ shared libraries are fairly broken
16864 ld_shlibs_CXX=no
16865 ;;
16866
16867 openbsd*)
16868 if test -f /usr/libexec/ld.so; then
16869 hardcode_direct_CXX=yes
16870 hardcode_shlibpath_var_CXX=no
16871 hardcode_direct_absolute_CXX=yes
16872 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16873 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16874 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16875 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16876 export_dynamic_flag_spec_CXX='${wl}-E'
16877 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16878 fi
cristyfd9dcd42010-08-08 18:07:02 +000016879 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000016880 else
16881 ld_shlibs_CXX=no
16882 fi
16883 ;;
16884
16885 osf3* | osf4* | osf5*)
16886 case $cc_basename in
16887 KCC*)
16888 # Kuck and Associates, Inc. (KAI) C++ Compiler
16889
16890 # KCC will only create a shared library if the output file
16891 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16892 # to its proper name (with version) after linking.
16893 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'
16894
16895 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16896 hardcode_libdir_separator_CXX=:
16897
16898 # Archives containing C++ object files must be created using
16899 # the KAI C++ compiler.
16900 case $host in
16901 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16902 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16903 esac
16904 ;;
16905 RCC*)
16906 # Rational C++ 2.4.1
16907 # FIXME: insert proper C++ library support
16908 ld_shlibs_CXX=no
16909 ;;
16910 cxx*)
16911 case $host in
16912 osf3*)
16913 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristyfd9dcd42010-08-08 18:07:02 +000016914 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 +000016915 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16916 ;;
16917 *)
16918 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristyfd9dcd42010-08-08 18:07:02 +000016919 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 +000016920 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16921 echo "-hidden">> $lib.exp~
cristyfd9dcd42010-08-08 18:07:02 +000016922 $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 +000016923 $RM $lib.exp'
16924 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16925 ;;
16926 esac
16927
16928 hardcode_libdir_separator_CXX=:
16929
16930 # Commands to make compiler produce verbose output that lists
16931 # what "hidden" libraries, object files and flags are used when
16932 # linking a shared library.
16933 #
16934 # There doesn't appear to be a way to prevent this compiler from
16935 # explicitly linking system object files so we need to strip them
16936 # from the output so that they don't get included in the library
16937 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016938 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 +000016939 ;;
16940 *)
16941 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16942 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16943 case $host in
16944 osf3*)
cristyfd9dcd42010-08-08 18:07:02 +000016945 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 +000016946 ;;
16947 *)
cristyfd9dcd42010-08-08 18:07:02 +000016948 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 +000016949 ;;
16950 esac
16951
16952 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16953 hardcode_libdir_separator_CXX=:
16954
16955 # Commands to make compiler produce verbose output that lists
16956 # what "hidden" libraries, object files and flags are used when
16957 # linking a shared library.
cristyfd9dcd42010-08-08 18:07:02 +000016958 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016959
16960 else
16961 # FIXME: insert proper C++ library support
16962 ld_shlibs_CXX=no
16963 fi
16964 ;;
16965 esac
16966 ;;
16967
16968 psos*)
16969 # FIXME: insert proper C++ library support
16970 ld_shlibs_CXX=no
16971 ;;
16972
16973 sunos4*)
16974 case $cc_basename in
16975 CC*)
16976 # Sun C++ 4.x
16977 # FIXME: insert proper C++ library support
16978 ld_shlibs_CXX=no
16979 ;;
16980 lcc*)
16981 # Lucid
16982 # FIXME: insert proper C++ library support
16983 ld_shlibs_CXX=no
16984 ;;
16985 *)
16986 # FIXME: insert proper C++ library support
16987 ld_shlibs_CXX=no
16988 ;;
16989 esac
16990 ;;
16991
16992 solaris*)
16993 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000016994 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000016995 # Sun C++ 4.2, 5.x and Centerline C++
16996 archive_cmds_need_lc_CXX=yes
16997 no_undefined_flag_CXX=' -zdefs'
16998 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16999 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17000 $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'
17001
17002 hardcode_libdir_flag_spec_CXX='-R$libdir'
17003 hardcode_shlibpath_var_CXX=no
17004 case $host_os in
17005 solaris2.[0-5] | solaris2.[0-5].*) ;;
17006 *)
17007 # The compiler driver will combine and reorder linker options,
17008 # but understands `-z linker_flag'.
17009 # Supported since Solaris 2.6 (maybe 2.5.1?)
17010 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17011 ;;
17012 esac
17013 link_all_deplibs_CXX=yes
17014
cristyfd9dcd42010-08-08 18:07:02 +000017015 output_verbose_link_cmd='func_echo_all'
cristy3ed852e2009-09-05 21:47:34 +000017016
17017 # Archives containing C++ object files must be created using
17018 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17019 # necessary to make sure instantiated templates are included
17020 # in the archive.
17021 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17022 ;;
17023 gcx*)
17024 # Green Hills C++ Compiler
17025 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17026
17027 # The C++ compiler must be used to create the archive.
17028 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17029 ;;
17030 *)
17031 # GNU C++ compiler with Solaris linker
17032 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17033 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17034 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17035 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17036 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17037 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17038
17039 # Commands to make compiler produce verbose output that lists
17040 # what "hidden" libraries, object files and flags are used when
17041 # linking a shared library.
cristyfd9dcd42010-08-08 18:07:02 +000017042 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017043 else
17044 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17045 # platform.
17046 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17047 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17048 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17049
17050 # Commands to make compiler produce verbose output that lists
17051 # what "hidden" libraries, object files and flags are used when
17052 # linking a shared library.
cristyfd9dcd42010-08-08 18:07:02 +000017053 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017054 fi
17055
17056 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17057 case $host_os in
17058 solaris2.[0-5] | solaris2.[0-5].*) ;;
17059 *)
17060 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17061 ;;
17062 esac
17063 fi
17064 ;;
17065 esac
17066 ;;
17067
17068 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17069 no_undefined_flag_CXX='${wl}-z,text'
17070 archive_cmds_need_lc_CXX=no
17071 hardcode_shlibpath_var_CXX=no
17072 runpath_var='LD_RUN_PATH'
17073
17074 case $cc_basename in
17075 CC*)
17076 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17077 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17078 ;;
17079 *)
17080 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17081 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17082 ;;
17083 esac
17084 ;;
17085
17086 sysv5* | sco3.2v5* | sco5v6*)
17087 # Note: We can NOT use -z defs as we might desire, because we do not
17088 # link with -lc, and that would cause any symbols used from libc to
17089 # always be unresolved, which means just about no library would
17090 # ever link correctly. If we're not using GNU ld we use -z text
17091 # though, which does catch some bad symbols but isn't as heavy-handed
17092 # as -z defs.
17093 no_undefined_flag_CXX='${wl}-z,text'
17094 allow_undefined_flag_CXX='${wl}-z,nodefs'
17095 archive_cmds_need_lc_CXX=no
17096 hardcode_shlibpath_var_CXX=no
17097 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17098 hardcode_libdir_separator_CXX=':'
17099 link_all_deplibs_CXX=yes
17100 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17101 runpath_var='LD_RUN_PATH'
17102
17103 case $cc_basename in
17104 CC*)
17105 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17106 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 +000017107 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17108 '"$old_archive_cmds_CXX"
17109 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17110 '"$reload_cmds_CXX"
cristy3ed852e2009-09-05 21:47:34 +000017111 ;;
17112 *)
17113 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17114 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17115 ;;
17116 esac
17117 ;;
17118
17119 tandem*)
17120 case $cc_basename in
17121 NCC*)
17122 # NonStop-UX NCC 3.20
17123 # FIXME: insert proper C++ library support
17124 ld_shlibs_CXX=no
17125 ;;
17126 *)
17127 # FIXME: insert proper C++ library support
17128 ld_shlibs_CXX=no
17129 ;;
17130 esac
17131 ;;
17132
17133 vxworks*)
17134 # FIXME: insert proper C++ library support
17135 ld_shlibs_CXX=no
17136 ;;
17137
17138 *)
17139 # FIXME: insert proper C++ library support
17140 ld_shlibs_CXX=no
17141 ;;
17142 esac
17143
cristy8b350f62009-11-15 23:12:43 +000017144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017145$as_echo "$ld_shlibs_CXX" >&6; }
17146 test "$ld_shlibs_CXX" = no && can_build_shared=no
17147
17148 GCC_CXX="$GXX"
17149 LD_CXX="$LD"
17150
17151 ## CAVEAT EMPTOR:
17152 ## There is no encapsulation within the following macros, do not change
17153 ## the running order or otherwise move them around unless you know exactly
17154 ## what you are doing...
17155 # Dependencies to place before and after the object being linked:
17156predep_objects_CXX=
17157postdep_objects_CXX=
17158predeps_CXX=
17159postdeps_CXX=
17160compiler_lib_search_path_CXX=
17161
17162cat > conftest.$ac_ext <<_LT_EOF
17163class Foo
17164{
17165public:
17166 Foo (void) { a = 0; }
17167private:
17168 int a;
17169};
17170_LT_EOF
17171
cristy8b350f62009-11-15 23:12:43 +000017172if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017173 (eval $ac_compile) 2>&5
17174 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17176 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000017177 # Parse the compiler output and extract the necessary
17178 # objects, libraries and library flags.
17179
17180 # Sentinel used to keep track of whether or not we are before
17181 # the conftest object file.
17182 pre_test_object_deps_done=no
17183
17184 for p in `eval "$output_verbose_link_cmd"`; do
17185 case $p in
17186
17187 -L* | -R* | -l*)
17188 # Some compilers place space between "-{L,R}" and the path.
17189 # Remove the space.
17190 if test $p = "-L" ||
17191 test $p = "-R"; then
17192 prev=$p
17193 continue
17194 else
17195 prev=
17196 fi
17197
17198 if test "$pre_test_object_deps_done" = no; then
17199 case $p in
17200 -L* | -R*)
17201 # Internal compiler library paths should come after those
17202 # provided the user. The postdeps already come after the
17203 # user supplied libs so there is no need to process them.
17204 if test -z "$compiler_lib_search_path_CXX"; then
17205 compiler_lib_search_path_CXX="${prev}${p}"
17206 else
17207 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17208 fi
17209 ;;
17210 # The "-l" case would never come before the object being
17211 # linked, so don't bother handling this case.
17212 esac
17213 else
17214 if test -z "$postdeps_CXX"; then
17215 postdeps_CXX="${prev}${p}"
17216 else
17217 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17218 fi
17219 fi
17220 ;;
17221
17222 *.$objext)
17223 # This assumes that the test object file only shows up
17224 # once in the compiler output.
17225 if test "$p" = "conftest.$objext"; then
17226 pre_test_object_deps_done=yes
17227 continue
17228 fi
17229
17230 if test "$pre_test_object_deps_done" = no; then
17231 if test -z "$predep_objects_CXX"; then
17232 predep_objects_CXX="$p"
17233 else
17234 predep_objects_CXX="$predep_objects_CXX $p"
17235 fi
17236 else
17237 if test -z "$postdep_objects_CXX"; then
17238 postdep_objects_CXX="$p"
17239 else
17240 postdep_objects_CXX="$postdep_objects_CXX $p"
17241 fi
17242 fi
17243 ;;
17244
17245 *) ;; # Ignore the rest.
17246
17247 esac
17248 done
17249
17250 # Clean up.
17251 rm -f a.out a.exe
17252else
17253 echo "libtool.m4: error: problem compiling CXX test program"
17254fi
17255
17256$RM -f confest.$objext
17257
17258# PORTME: override above test on systems where it is broken
17259case $host_os in
17260interix[3-9]*)
17261 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17262 # hack all around it, let's just trust "g++" to DTRT.
17263 predep_objects_CXX=
17264 postdep_objects_CXX=
17265 postdeps_CXX=
17266 ;;
17267
17268linux*)
17269 case `$CC -V 2>&1 | sed 5q` in
17270 *Sun\ C*)
17271 # Sun C++ 5.9
17272
17273 # The more standards-conforming stlport4 library is
17274 # incompatible with the Cstd library. Avoid specifying
17275 # it if it's in CXXFLAGS. Ignore libCrun as
17276 # -library=stlport4 depends on it.
17277 case " $CXX $CXXFLAGS " in
17278 *" -library=stlport4 "*)
17279 solaris_use_stlport4=yes
17280 ;;
17281 esac
17282
17283 if test "$solaris_use_stlport4" != yes; then
17284 postdeps_CXX='-library=Cstd -library=Crun'
17285 fi
17286 ;;
17287 esac
17288 ;;
17289
17290solaris*)
17291 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000017292 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000017293 # The more standards-conforming stlport4 library is
17294 # incompatible with the Cstd library. Avoid specifying
17295 # it if it's in CXXFLAGS. Ignore libCrun as
17296 # -library=stlport4 depends on it.
17297 case " $CXX $CXXFLAGS " in
17298 *" -library=stlport4 "*)
17299 solaris_use_stlport4=yes
17300 ;;
17301 esac
17302
17303 # Adding this requires a known-good setup of shared libraries for
17304 # Sun compiler versions before 5.6, else PIC objects from an old
17305 # archive will be linked into the output, leading to subtle bugs.
17306 if test "$solaris_use_stlport4" != yes; then
17307 postdeps_CXX='-library=Cstd -library=Crun'
17308 fi
17309 ;;
17310 esac
17311 ;;
17312esac
17313
17314
17315case " $postdeps_CXX " in
17316*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17317esac
17318 compiler_lib_search_dirs_CXX=
17319if test -n "${compiler_lib_search_path_CXX}"; then
17320 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17321fi
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353 lt_prog_compiler_wl_CXX=
17354lt_prog_compiler_pic_CXX=
17355lt_prog_compiler_static_CXX=
17356
cristy8b350f62009-11-15 23:12:43 +000017357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000017358$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17359
17360 # C++ specific cases for pic, static, wl, etc.
17361 if test "$GXX" = yes; then
17362 lt_prog_compiler_wl_CXX='-Wl,'
17363 lt_prog_compiler_static_CXX='-static'
17364
17365 case $host_os in
17366 aix*)
17367 # All AIX code is PIC.
17368 if test "$host_cpu" = ia64; then
17369 # AIX 5 now supports IA64 processor
17370 lt_prog_compiler_static_CXX='-Bstatic'
17371 fi
17372 ;;
17373
17374 amigaos*)
17375 case $host_cpu in
17376 powerpc)
17377 # see comment about AmigaOS4 .so support
17378 lt_prog_compiler_pic_CXX='-fPIC'
17379 ;;
17380 m68k)
17381 # FIXME: we need at least 68020 code to build shared libraries, but
17382 # adding the `-m68020' flag to GCC prevents building anything better,
17383 # like `-m68040'.
17384 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17385 ;;
17386 esac
17387 ;;
17388
17389 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17390 # PIC is the default for these OSes.
17391 ;;
17392 mingw* | cygwin* | os2* | pw32* | cegcc*)
17393 # This hack is so that the source file can tell whether it is being
17394 # built for inclusion in a dll (and should export symbols for example).
17395 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17396 # (--disable-auto-import) libraries
17397 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17398 ;;
17399 darwin* | rhapsody*)
17400 # PIC is the default on this platform
17401 # Common symbols not allowed in MH_DYLIB files
17402 lt_prog_compiler_pic_CXX='-fno-common'
17403 ;;
17404 *djgpp*)
17405 # DJGPP does not support shared libraries at all
17406 lt_prog_compiler_pic_CXX=
17407 ;;
cristyfd9dcd42010-08-08 18:07:02 +000017408 haiku*)
17409 # PIC is the default for Haiku.
17410 # The "-static" flag exists, but is broken.
17411 lt_prog_compiler_static_CXX=
17412 ;;
cristy3ed852e2009-09-05 21:47:34 +000017413 interix[3-9]*)
17414 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17415 # Instead, we relocate shared libraries at runtime.
17416 ;;
17417 sysv4*MP*)
17418 if test -d /usr/nec; then
17419 lt_prog_compiler_pic_CXX=-Kconform_pic
17420 fi
17421 ;;
17422 hpux*)
17423 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17424 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17425 # sets the default TLS model and affects inlining.
17426 case $host_cpu in
17427 hppa*64*)
17428 ;;
17429 *)
17430 lt_prog_compiler_pic_CXX='-fPIC'
17431 ;;
17432 esac
17433 ;;
17434 *qnx* | *nto*)
17435 # QNX uses GNU C++, but need to define -shared option too, otherwise
17436 # it will coredump.
17437 lt_prog_compiler_pic_CXX='-fPIC -shared'
17438 ;;
17439 *)
17440 lt_prog_compiler_pic_CXX='-fPIC'
17441 ;;
17442 esac
17443 else
17444 case $host_os in
17445 aix[4-9]*)
17446 # All AIX code is PIC.
17447 if test "$host_cpu" = ia64; then
17448 # AIX 5 now supports IA64 processor
17449 lt_prog_compiler_static_CXX='-Bstatic'
17450 else
17451 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17452 fi
17453 ;;
17454 chorus*)
17455 case $cc_basename in
17456 cxch68*)
17457 # Green Hills C++ Compiler
17458 # _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"
17459 ;;
17460 esac
17461 ;;
17462 dgux*)
17463 case $cc_basename in
17464 ec++*)
17465 lt_prog_compiler_pic_CXX='-KPIC'
17466 ;;
17467 ghcx*)
17468 # Green Hills C++ Compiler
17469 lt_prog_compiler_pic_CXX='-pic'
17470 ;;
17471 *)
17472 ;;
17473 esac
17474 ;;
17475 freebsd* | dragonfly*)
17476 # FreeBSD uses GNU C++
17477 ;;
17478 hpux9* | hpux10* | hpux11*)
17479 case $cc_basename in
17480 CC*)
17481 lt_prog_compiler_wl_CXX='-Wl,'
17482 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17483 if test "$host_cpu" != ia64; then
17484 lt_prog_compiler_pic_CXX='+Z'
17485 fi
17486 ;;
17487 aCC*)
17488 lt_prog_compiler_wl_CXX='-Wl,'
17489 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17490 case $host_cpu in
17491 hppa*64*|ia64*)
17492 # +Z the default
17493 ;;
17494 *)
17495 lt_prog_compiler_pic_CXX='+Z'
17496 ;;
17497 esac
17498 ;;
17499 *)
17500 ;;
17501 esac
17502 ;;
17503 interix*)
17504 # This is c89, which is MS Visual C++ (no shared libs)
17505 # Anyone wants to do a port?
17506 ;;
17507 irix5* | irix6* | nonstopux*)
17508 case $cc_basename in
17509 CC*)
17510 lt_prog_compiler_wl_CXX='-Wl,'
17511 lt_prog_compiler_static_CXX='-non_shared'
17512 # CC pic flag -KPIC is the default.
17513 ;;
17514 *)
17515 ;;
17516 esac
17517 ;;
cristyfd9dcd42010-08-08 18:07:02 +000017518 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017519 case $cc_basename in
17520 KCC*)
17521 # KAI C++ Compiler
17522 lt_prog_compiler_wl_CXX='--backend -Wl,'
17523 lt_prog_compiler_pic_CXX='-fPIC'
17524 ;;
17525 ecpc* )
17526 # old Intel C++ for x86_64 which still supported -KPIC.
17527 lt_prog_compiler_wl_CXX='-Wl,'
17528 lt_prog_compiler_pic_CXX='-KPIC'
17529 lt_prog_compiler_static_CXX='-static'
17530 ;;
17531 icpc* )
17532 # Intel C++, used to be incompatible with GCC.
17533 # ICC 10 doesn't accept -KPIC any more.
17534 lt_prog_compiler_wl_CXX='-Wl,'
17535 lt_prog_compiler_pic_CXX='-fPIC'
17536 lt_prog_compiler_static_CXX='-static'
17537 ;;
17538 pgCC* | pgcpp*)
17539 # Portland Group C++ compiler
17540 lt_prog_compiler_wl_CXX='-Wl,'
17541 lt_prog_compiler_pic_CXX='-fpic'
17542 lt_prog_compiler_static_CXX='-Bstatic'
17543 ;;
17544 cxx*)
17545 # Compaq C++
17546 # Make sure the PIC flag is empty. It appears that all Alpha
17547 # Linux and Compaq Tru64 Unix objects are PIC.
17548 lt_prog_compiler_pic_CXX=
17549 lt_prog_compiler_static_CXX='-non_shared'
17550 ;;
cristyfd9dcd42010-08-08 18:07:02 +000017551 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17552 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy3ed852e2009-09-05 21:47:34 +000017553 lt_prog_compiler_wl_CXX='-Wl,'
17554 lt_prog_compiler_pic_CXX='-qpic'
17555 lt_prog_compiler_static_CXX='-qstaticlink'
17556 ;;
17557 *)
17558 case `$CC -V 2>&1 | sed 5q` in
17559 *Sun\ C*)
17560 # Sun C++ 5.9
17561 lt_prog_compiler_pic_CXX='-KPIC'
17562 lt_prog_compiler_static_CXX='-Bstatic'
17563 lt_prog_compiler_wl_CXX='-Qoption ld '
17564 ;;
17565 esac
17566 ;;
17567 esac
17568 ;;
17569 lynxos*)
17570 ;;
17571 m88k*)
17572 ;;
17573 mvs*)
17574 case $cc_basename in
17575 cxx*)
17576 lt_prog_compiler_pic_CXX='-W c,exportall'
17577 ;;
17578 *)
17579 ;;
17580 esac
17581 ;;
17582 netbsd*)
17583 ;;
17584 *qnx* | *nto*)
17585 # QNX uses GNU C++, but need to define -shared option too, otherwise
17586 # it will coredump.
17587 lt_prog_compiler_pic_CXX='-fPIC -shared'
17588 ;;
17589 osf3* | osf4* | osf5*)
17590 case $cc_basename in
17591 KCC*)
17592 lt_prog_compiler_wl_CXX='--backend -Wl,'
17593 ;;
17594 RCC*)
17595 # Rational C++ 2.4.1
17596 lt_prog_compiler_pic_CXX='-pic'
17597 ;;
17598 cxx*)
17599 # Digital/Compaq C++
17600 lt_prog_compiler_wl_CXX='-Wl,'
17601 # Make sure the PIC flag is empty. It appears that all Alpha
17602 # Linux and Compaq Tru64 Unix objects are PIC.
17603 lt_prog_compiler_pic_CXX=
17604 lt_prog_compiler_static_CXX='-non_shared'
17605 ;;
17606 *)
17607 ;;
17608 esac
17609 ;;
17610 psos*)
17611 ;;
17612 solaris*)
17613 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000017614 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000017615 # Sun C++ 4.2, 5.x and Centerline C++
17616 lt_prog_compiler_pic_CXX='-KPIC'
17617 lt_prog_compiler_static_CXX='-Bstatic'
17618 lt_prog_compiler_wl_CXX='-Qoption ld '
17619 ;;
17620 gcx*)
17621 # Green Hills C++ Compiler
17622 lt_prog_compiler_pic_CXX='-PIC'
17623 ;;
17624 *)
17625 ;;
17626 esac
17627 ;;
17628 sunos4*)
17629 case $cc_basename in
17630 CC*)
17631 # Sun C++ 4.x
17632 lt_prog_compiler_pic_CXX='-pic'
17633 lt_prog_compiler_static_CXX='-Bstatic'
17634 ;;
17635 lcc*)
17636 # Lucid
17637 lt_prog_compiler_pic_CXX='-pic'
17638 ;;
17639 *)
17640 ;;
17641 esac
17642 ;;
17643 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17644 case $cc_basename in
17645 CC*)
17646 lt_prog_compiler_wl_CXX='-Wl,'
17647 lt_prog_compiler_pic_CXX='-KPIC'
17648 lt_prog_compiler_static_CXX='-Bstatic'
17649 ;;
17650 esac
17651 ;;
17652 tandem*)
17653 case $cc_basename in
17654 NCC*)
17655 # NonStop-UX NCC 3.20
17656 lt_prog_compiler_pic_CXX='-KPIC'
17657 ;;
17658 *)
17659 ;;
17660 esac
17661 ;;
17662 vxworks*)
17663 ;;
17664 *)
17665 lt_prog_compiler_can_build_shared_CXX=no
17666 ;;
17667 esac
17668 fi
17669
17670case $host_os in
17671 # For platforms which do not support PIC, -DPIC is meaningless:
17672 *djgpp*)
17673 lt_prog_compiler_pic_CXX=
17674 ;;
17675 *)
17676 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17677 ;;
17678esac
cristy8b350f62009-11-15 23:12:43 +000017679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017680$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17681
17682
17683
17684#
17685# Check to make sure the PIC flag actually works.
17686#
17687if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000017688 { $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 +000017689$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017690if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017691 $as_echo_n "(cached) " >&6
17692else
17693 lt_cv_prog_compiler_pic_works_CXX=no
17694 ac_outfile=conftest.$ac_objext
17695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17696 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17697 # Insert the option either (1) after the last *FLAGS variable, or
17698 # (2) before a word containing "conftest.", or (3) at the end.
17699 # Note that $ac_compile itself does not contain backslashes and begins
17700 # with a dollar sign (not a hyphen), so the echo should work correctly.
17701 # The option is referenced via a variable to avoid confusing sed.
17702 lt_compile=`echo "$ac_compile" | $SED \
17703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17705 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000017706 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017707 (eval "$lt_compile" 2>conftest.err)
17708 ac_status=$?
17709 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000017710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017711 if (exit $ac_status) && test -s "$ac_outfile"; then
17712 # The compiler can only warn and ignore the option if not recognized
17713 # So say no if there are warnings other than the usual output.
cristyfd9dcd42010-08-08 18:07:02 +000017714 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017715 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17716 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17717 lt_cv_prog_compiler_pic_works_CXX=yes
17718 fi
17719 fi
17720 $RM conftest*
17721
17722fi
cristy8b350f62009-11-15 23:12:43 +000017723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017724$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17725
17726if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17727 case $lt_prog_compiler_pic_CXX in
17728 "" | " "*) ;;
17729 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17730 esac
17731else
17732 lt_prog_compiler_pic_CXX=
17733 lt_prog_compiler_can_build_shared_CXX=no
17734fi
17735
17736fi
17737
17738
17739
17740#
17741# Check to make sure the static flag actually works.
17742#
17743wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000017744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000017745$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017746if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017747 $as_echo_n "(cached) " >&6
17748else
17749 lt_cv_prog_compiler_static_works_CXX=no
17750 save_LDFLAGS="$LDFLAGS"
17751 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17752 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17753 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17754 # The linker can only warn and ignore the option if not recognized
17755 # So say no if there are warnings
17756 if test -s conftest.err; then
17757 # Append any errors to the config.log.
17758 cat conftest.err 1>&5
cristyfd9dcd42010-08-08 18:07:02 +000017759 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017760 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17761 if diff conftest.exp conftest.er2 >/dev/null; then
17762 lt_cv_prog_compiler_static_works_CXX=yes
17763 fi
17764 else
17765 lt_cv_prog_compiler_static_works_CXX=yes
17766 fi
17767 fi
17768 $RM -r conftest*
17769 LDFLAGS="$save_LDFLAGS"
17770
17771fi
cristy8b350f62009-11-15 23:12:43 +000017772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017773$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17774
17775if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17776 :
17777else
17778 lt_prog_compiler_static_CXX=
17779fi
17780
17781
17782
17783
cristy8b350f62009-11-15 23:12:43 +000017784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017785$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017786if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017787 $as_echo_n "(cached) " >&6
17788else
17789 lt_cv_prog_compiler_c_o_CXX=no
17790 $RM -r conftest 2>/dev/null
17791 mkdir conftest
17792 cd conftest
17793 mkdir out
17794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17795
17796 lt_compiler_flag="-o out/conftest2.$ac_objext"
17797 # Insert the option either (1) after the last *FLAGS variable, or
17798 # (2) before a word containing "conftest.", or (3) at the end.
17799 # Note that $ac_compile itself does not contain backslashes and begins
17800 # with a dollar sign (not a hyphen), so the echo should work correctly.
17801 lt_compile=`echo "$ac_compile" | $SED \
17802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17804 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000017805 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017806 (eval "$lt_compile" 2>out/conftest.err)
17807 ac_status=$?
17808 cat out/conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000017809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017810 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17811 then
17812 # The compiler can only warn and ignore the option if not recognized
17813 # So say no if there are warnings
cristyfd9dcd42010-08-08 18:07:02 +000017814 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017815 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17816 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17817 lt_cv_prog_compiler_c_o_CXX=yes
17818 fi
17819 fi
17820 chmod u+w . 2>&5
17821 $RM conftest*
17822 # SGI C++ compiler will create directory out/ii_files/ for
17823 # template instantiation
17824 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17825 $RM out/* && rmdir out
17826 cd ..
17827 $RM -r conftest
17828 $RM conftest*
17829
17830fi
cristy8b350f62009-11-15 23:12:43 +000017831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017832$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17833
17834
17835
cristy8b350f62009-11-15 23:12:43 +000017836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017837$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017838if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017839 $as_echo_n "(cached) " >&6
17840else
17841 lt_cv_prog_compiler_c_o_CXX=no
17842 $RM -r conftest 2>/dev/null
17843 mkdir conftest
17844 cd conftest
17845 mkdir out
17846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17847
17848 lt_compiler_flag="-o out/conftest2.$ac_objext"
17849 # Insert the option either (1) after the last *FLAGS variable, or
17850 # (2) before a word containing "conftest.", or (3) at the end.
17851 # Note that $ac_compile itself does not contain backslashes and begins
17852 # with a dollar sign (not a hyphen), so the echo should work correctly.
17853 lt_compile=`echo "$ac_compile" | $SED \
17854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17856 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000017857 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017858 (eval "$lt_compile" 2>out/conftest.err)
17859 ac_status=$?
17860 cat out/conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000017861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017862 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17863 then
17864 # The compiler can only warn and ignore the option if not recognized
17865 # So say no if there are warnings
cristyfd9dcd42010-08-08 18:07:02 +000017866 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017867 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17868 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17869 lt_cv_prog_compiler_c_o_CXX=yes
17870 fi
17871 fi
17872 chmod u+w . 2>&5
17873 $RM conftest*
17874 # SGI C++ compiler will create directory out/ii_files/ for
17875 # template instantiation
17876 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17877 $RM out/* && rmdir out
17878 cd ..
17879 $RM -r conftest
17880 $RM conftest*
17881
17882fi
cristy8b350f62009-11-15 23:12:43 +000017883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017884$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17885
17886
17887
17888
17889hard_links="nottested"
17890if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17891 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000017892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017893$as_echo_n "checking if we can lock with hard links... " >&6; }
17894 hard_links=yes
17895 $RM conftest*
17896 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17897 touch conftest.a
17898 ln conftest.a conftest.b 2>&5 || hard_links=no
17899 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000017900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017901$as_echo "$hard_links" >&6; }
17902 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000017903 { $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 +000017904$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17905 need_locks=warn
17906 fi
17907else
17908 need_locks=no
17909fi
17910
17911
17912
cristy8b350f62009-11-15 23:12:43 +000017913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000017914$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17915
17916 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17917 case $host_os in
17918 aix[4-9]*)
17919 # If we're using GNU nm, then we don't want the "-C" option.
17920 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristyfd9dcd42010-08-08 18:07:02 +000017921 # Also, AIX nm treats weak defined symbols like other global defined
17922 # symbols, whereas GNU nm marks them as "W".
cristy3ed852e2009-09-05 21:47:34 +000017923 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristyfd9dcd42010-08-08 18:07:02 +000017924 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 +000017925 else
17926 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'
17927 fi
17928 ;;
17929 pw32*)
17930 export_symbols_cmds_CXX="$ltdll_cmds"
17931 ;;
17932 cygwin* | mingw* | cegcc*)
17933 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'
17934 ;;
17935 *)
17936 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17937 ;;
17938 esac
17939 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17940
cristy8b350f62009-11-15 23:12:43 +000017941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017942$as_echo "$ld_shlibs_CXX" >&6; }
17943test "$ld_shlibs_CXX" = no && can_build_shared=no
17944
17945with_gnu_ld_CXX=$with_gnu_ld
17946
17947
17948
17949
17950
17951
17952#
17953# Do we need to explicitly link libc?
17954#
17955case "x$archive_cmds_need_lc_CXX" in
17956x|xyes)
17957 # Assume -lc should be added
17958 archive_cmds_need_lc_CXX=yes
17959
17960 if test "$enable_shared" = yes && test "$GCC" = yes; then
17961 case $archive_cmds_CXX in
17962 *'~'*)
17963 # FIXME: we may have to deal with multi-command sequences.
17964 ;;
17965 '$CC '*)
17966 # Test whether the compiler implicitly links with -lc since on some
17967 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17968 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000017969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000017970$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000017971if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
17972 $as_echo_n "(cached) " >&6
17973else
17974 $RM conftest*
17975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017976
cristyfd9dcd42010-08-08 18:07:02 +000017977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017978 (eval $ac_compile) 2>&5
17979 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17981 test $ac_status = 0; } 2>conftest.err; then
cristyfd9dcd42010-08-08 18:07:02 +000017982 soname=conftest
17983 lib=conftest
17984 libobjs=conftest.$ac_objext
17985 deplibs=
17986 wl=$lt_prog_compiler_wl_CXX
17987 pic_flag=$lt_prog_compiler_pic_CXX
17988 compiler_flags=-v
17989 linker_flags=-v
17990 verstring=
17991 output_objdir=.
17992 libname=conftest
17993 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17994 allow_undefined_flag_CXX=
17995 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 +000017996 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17997 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17999 test $ac_status = 0; }
cristyfd9dcd42010-08-08 18:07:02 +000018000 then
18001 lt_cv_archive_cmds_need_lc_CXX=no
18002 else
18003 lt_cv_archive_cmds_need_lc_CXX=yes
18004 fi
18005 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18006 else
18007 cat conftest.err 1>&5
18008 fi
18009 $RM conftest*
18010
18011fi
18012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18013$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18014 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy3ed852e2009-09-05 21:47:34 +000018015 ;;
18016 esac
18017 fi
18018 ;;
18019esac
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
cristy8b350f62009-11-15 23:12:43 +000018084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000018085$as_echo_n "checking dynamic linker characteristics... " >&6; }
18086
18087library_names_spec=
18088libname_spec='lib$name'
18089soname_spec=
18090shrext_cmds=".so"
18091postinstall_cmds=
18092postuninstall_cmds=
18093finish_cmds=
18094finish_eval=
18095shlibpath_var=
18096shlibpath_overrides_runpath=unknown
18097version_type=none
18098dynamic_linker="$host_os ld.so"
18099sys_lib_dlsearch_path_spec="/lib /usr/lib"
18100need_lib_prefix=unknown
18101hardcode_into_libs=no
18102
18103# when you set need_version to no, make sure it does not cause -set_version
18104# flags to be left without arguments
18105need_version=unknown
18106
18107case $host_os in
18108aix3*)
18109 version_type=linux
18110 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18111 shlibpath_var=LIBPATH
18112
18113 # AIX 3 has no versioning support, so we append a major version to the name.
18114 soname_spec='${libname}${release}${shared_ext}$major'
18115 ;;
18116
18117aix[4-9]*)
18118 version_type=linux
18119 need_lib_prefix=no
18120 need_version=no
18121 hardcode_into_libs=yes
18122 if test "$host_cpu" = ia64; then
18123 # AIX 5 supports IA64
18124 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18125 shlibpath_var=LD_LIBRARY_PATH
18126 else
18127 # With GCC up to 2.95.x, collect2 would create an import file
18128 # for dependence libraries. The import file would start with
18129 # the line `#! .'. This would cause the generated library to
18130 # depend on `.', always an invalid library. This was fixed in
18131 # development snapshots of GCC prior to 3.0.
18132 case $host_os in
18133 aix4 | aix4.[01] | aix4.[01].*)
18134 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18135 echo ' yes '
18136 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18137 :
18138 else
18139 can_build_shared=no
18140 fi
18141 ;;
18142 esac
18143 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18144 # soname into executable. Probably we can add versioning support to
18145 # collect2, so additional links can be useful in future.
18146 if test "$aix_use_runtimelinking" = yes; then
18147 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18148 # instead of lib<name>.a to let people know that these are not
18149 # typical AIX shared libraries.
18150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18151 else
18152 # We preserve .a as extension for shared libraries through AIX4.2
18153 # and later when we are not doing run time linking.
18154 library_names_spec='${libname}${release}.a $libname.a'
18155 soname_spec='${libname}${release}${shared_ext}$major'
18156 fi
18157 shlibpath_var=LIBPATH
18158 fi
18159 ;;
18160
18161amigaos*)
18162 case $host_cpu in
18163 powerpc)
18164 # Since July 2007 AmigaOS4 officially supports .so libraries.
18165 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18167 ;;
18168 m68k)
18169 library_names_spec='$libname.ixlibrary $libname.a'
18170 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristyfd9dcd42010-08-08 18:07:02 +000018171 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 +000018172 ;;
18173 esac
18174 ;;
18175
18176beos*)
18177 library_names_spec='${libname}${shared_ext}'
18178 dynamic_linker="$host_os ld.so"
18179 shlibpath_var=LIBRARY_PATH
18180 ;;
18181
18182bsdi[45]*)
18183 version_type=linux
18184 need_version=no
18185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18186 soname_spec='${libname}${release}${shared_ext}$major'
18187 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18188 shlibpath_var=LD_LIBRARY_PATH
18189 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18190 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18191 # the default ld.so.conf also contains /usr/contrib/lib and
18192 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18193 # libtool to hard-code these into programs
18194 ;;
18195
18196cygwin* | mingw* | pw32* | cegcc*)
18197 version_type=windows
18198 shrext_cmds=".dll"
18199 need_version=no
18200 need_lib_prefix=no
18201
18202 case $GCC,$host_os in
18203 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18204 library_names_spec='$libname.dll.a'
18205 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18206 postinstall_cmds='base_file=`basename \${file}`~
18207 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18208 dldir=$destdir/`dirname \$dlpath`~
18209 test -d \$dldir || mkdir -p \$dldir~
18210 $install_prog $dir/$dlname \$dldir/$dlname~
18211 chmod a+x \$dldir/$dlname~
18212 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18213 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18214 fi'
18215 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18216 dlpath=$dir/\$dldll~
18217 $RM \$dlpath'
18218 shlibpath_overrides_runpath=yes
18219
18220 case $host_os in
18221 cygwin*)
18222 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18223 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristyfd9dcd42010-08-08 18:07:02 +000018224
cristy3ed852e2009-09-05 21:47:34 +000018225 ;;
18226 mingw* | cegcc*)
18227 # MinGW DLLs use traditional 'lib' prefix
18228 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy3ed852e2009-09-05 21:47:34 +000018229 ;;
18230 pw32*)
18231 # pw32 DLLs use 'pw' prefix rather than 'lib'
18232 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18233 ;;
18234 esac
18235 ;;
18236
18237 *)
18238 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18239 ;;
18240 esac
18241 dynamic_linker='Win32 ld.exe'
18242 # FIXME: first we should search . and the directory the executable is in
18243 shlibpath_var=PATH
18244 ;;
18245
18246darwin* | rhapsody*)
18247 dynamic_linker="$host_os dyld"
18248 version_type=darwin
18249 need_lib_prefix=no
18250 need_version=no
18251 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18252 soname_spec='${libname}${release}${major}$shared_ext'
18253 shlibpath_overrides_runpath=yes
18254 shlibpath_var=DYLD_LIBRARY_PATH
18255 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18256
18257 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18258 ;;
18259
18260dgux*)
18261 version_type=linux
18262 need_lib_prefix=no
18263 need_version=no
18264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18265 soname_spec='${libname}${release}${shared_ext}$major'
18266 shlibpath_var=LD_LIBRARY_PATH
18267 ;;
18268
18269freebsd1*)
18270 dynamic_linker=no
18271 ;;
18272
18273freebsd* | dragonfly*)
18274 # DragonFly does not have aout. When/if they implement a new
18275 # versioning mechanism, adjust this.
18276 if test -x /usr/bin/objformat; then
18277 objformat=`/usr/bin/objformat`
18278 else
18279 case $host_os in
18280 freebsd[123]*) objformat=aout ;;
18281 *) objformat=elf ;;
18282 esac
18283 fi
18284 version_type=freebsd-$objformat
18285 case $version_type in
18286 freebsd-elf*)
18287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18288 need_version=no
18289 need_lib_prefix=no
18290 ;;
18291 freebsd-*)
18292 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18293 need_version=yes
18294 ;;
18295 esac
18296 shlibpath_var=LD_LIBRARY_PATH
18297 case $host_os in
18298 freebsd2*)
18299 shlibpath_overrides_runpath=yes
18300 ;;
18301 freebsd3.[01]* | freebsdelf3.[01]*)
18302 shlibpath_overrides_runpath=yes
18303 hardcode_into_libs=yes
18304 ;;
18305 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18306 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18307 shlibpath_overrides_runpath=no
18308 hardcode_into_libs=yes
18309 ;;
18310 *) # from 4.6 on, and DragonFly
18311 shlibpath_overrides_runpath=yes
18312 hardcode_into_libs=yes
18313 ;;
18314 esac
18315 ;;
18316
18317gnu*)
18318 version_type=linux
18319 need_lib_prefix=no
18320 need_version=no
18321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18322 soname_spec='${libname}${release}${shared_ext}$major'
18323 shlibpath_var=LD_LIBRARY_PATH
18324 hardcode_into_libs=yes
18325 ;;
18326
cristyfd9dcd42010-08-08 18:07:02 +000018327haiku*)
18328 version_type=linux
18329 need_lib_prefix=no
18330 need_version=no
18331 dynamic_linker="$host_os runtime_loader"
18332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18333 soname_spec='${libname}${release}${shared_ext}$major'
18334 shlibpath_var=LIBRARY_PATH
18335 shlibpath_overrides_runpath=yes
18336 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18337 hardcode_into_libs=yes
18338 ;;
18339
cristy3ed852e2009-09-05 21:47:34 +000018340hpux9* | hpux10* | hpux11*)
18341 # Give a soname corresponding to the major version so that dld.sl refuses to
18342 # link against other versions.
18343 version_type=sunos
18344 need_lib_prefix=no
18345 need_version=no
18346 case $host_cpu in
18347 ia64*)
18348 shrext_cmds='.so'
18349 hardcode_into_libs=yes
18350 dynamic_linker="$host_os dld.so"
18351 shlibpath_var=LD_LIBRARY_PATH
18352 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18354 soname_spec='${libname}${release}${shared_ext}$major'
18355 if test "X$HPUX_IA64_MODE" = X32; then
18356 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18357 else
18358 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18359 fi
18360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18361 ;;
18362 hppa*64*)
18363 shrext_cmds='.sl'
18364 hardcode_into_libs=yes
18365 dynamic_linker="$host_os dld.sl"
18366 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18367 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18369 soname_spec='${libname}${release}${shared_ext}$major'
18370 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18371 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18372 ;;
18373 *)
18374 shrext_cmds='.sl'
18375 dynamic_linker="$host_os dld.sl"
18376 shlibpath_var=SHLIB_PATH
18377 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18379 soname_spec='${libname}${release}${shared_ext}$major'
18380 ;;
18381 esac
cristyfd9dcd42010-08-08 18:07:02 +000018382 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy3ed852e2009-09-05 21:47:34 +000018383 postinstall_cmds='chmod 555 $lib'
cristyfd9dcd42010-08-08 18:07:02 +000018384 # or fails outright, so override atomically:
18385 install_override_mode=555
cristy3ed852e2009-09-05 21:47:34 +000018386 ;;
18387
18388interix[3-9]*)
18389 version_type=linux
18390 need_lib_prefix=no
18391 need_version=no
18392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18393 soname_spec='${libname}${release}${shared_ext}$major'
18394 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18395 shlibpath_var=LD_LIBRARY_PATH
18396 shlibpath_overrides_runpath=no
18397 hardcode_into_libs=yes
18398 ;;
18399
18400irix5* | irix6* | nonstopux*)
18401 case $host_os in
18402 nonstopux*) version_type=nonstopux ;;
18403 *)
18404 if test "$lt_cv_prog_gnu_ld" = yes; then
18405 version_type=linux
18406 else
18407 version_type=irix
18408 fi ;;
18409 esac
18410 need_lib_prefix=no
18411 need_version=no
18412 soname_spec='${libname}${release}${shared_ext}$major'
18413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18414 case $host_os in
18415 irix5* | nonstopux*)
18416 libsuff= shlibsuff=
18417 ;;
18418 *)
18419 case $LD in # libtool.m4 will add one of these switches to LD
18420 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18421 libsuff= shlibsuff= libmagic=32-bit;;
18422 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18423 libsuff=32 shlibsuff=N32 libmagic=N32;;
18424 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18425 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18426 *) libsuff= shlibsuff= libmagic=never-match;;
18427 esac
18428 ;;
18429 esac
18430 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18431 shlibpath_overrides_runpath=no
18432 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18433 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18434 hardcode_into_libs=yes
18435 ;;
18436
18437# No shared lib support for Linux oldld, aout, or coff.
18438linux*oldld* | linux*aout* | linux*coff*)
18439 dynamic_linker=no
18440 ;;
18441
18442# This must be Linux ELF.
cristyfd9dcd42010-08-08 18:07:02 +000018443linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018444 version_type=linux
18445 need_lib_prefix=no
18446 need_version=no
18447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18448 soname_spec='${libname}${release}${shared_ext}$major'
18449 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18450 shlibpath_var=LD_LIBRARY_PATH
18451 shlibpath_overrides_runpath=no
cristyfd9dcd42010-08-08 18:07:02 +000018452
cristy3ed852e2009-09-05 21:47:34 +000018453 # Some binutils ld are patched to set DT_RUNPATH
cristyfd9dcd42010-08-08 18:07:02 +000018454 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
18455 $as_echo_n "(cached) " >&6
18456else
18457 lt_cv_shlibpath_overrides_runpath=no
18458 save_LDFLAGS=$LDFLAGS
18459 save_libdir=$libdir
18460 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18461 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018463/* end confdefs.h. */
18464
18465int
18466main ()
18467{
18468
18469 ;
18470 return 0;
18471}
18472_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018473if ac_fn_cxx_try_link "$LINENO"; then :
18474 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristyfd9dcd42010-08-08 18:07:02 +000018475 lt_cv_shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000018476fi
cristy3ed852e2009-09-05 21:47:34 +000018477fi
cristy8b350f62009-11-15 23:12:43 +000018478rm -f core conftest.err conftest.$ac_objext \
18479 conftest$ac_exeext conftest.$ac_ext
cristyfd9dcd42010-08-08 18:07:02 +000018480 LDFLAGS=$save_LDFLAGS
18481 libdir=$save_libdir
18482
18483fi
18484
18485 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy3ed852e2009-09-05 21:47:34 +000018486
18487 # This implies no fast_install, which is unacceptable.
18488 # Some rework will be needed to allow for fast_install
18489 # before this can be enabled.
18490 hardcode_into_libs=yes
18491
cristy679ed8e2009-12-05 02:37:41 +000018492 # Add ABI-specific directories to the system library path.
18493 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18494
cristy3ed852e2009-09-05 21:47:34 +000018495 # Append ld.so.conf contents to the search path
18496 if test -f /etc/ld.so.conf; then
cristyfd9dcd42010-08-08 18:07:02 +000018497 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 +000018498 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristyfd9dcd42010-08-08 18:07:02 +000018499
cristy3ed852e2009-09-05 21:47:34 +000018500 fi
18501
18502 # We used to test for /lib/ld.so.1 and disable shared libraries on
18503 # powerpc, because MkLinux only supported shared libraries with the
18504 # GNU dynamic linker. Since this was broken with cross compilers,
18505 # most powerpc-linux boxes support dynamic linking these days and
18506 # people can always --disable-shared, the test was removed, and we
18507 # assume the GNU/Linux dynamic linker is in use.
18508 dynamic_linker='GNU/Linux ld.so'
18509 ;;
18510
18511netbsd*)
18512 version_type=sunos
18513 need_lib_prefix=no
18514 need_version=no
18515 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18517 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18518 dynamic_linker='NetBSD (a.out) ld.so'
18519 else
18520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18521 soname_spec='${libname}${release}${shared_ext}$major'
18522 dynamic_linker='NetBSD ld.elf_so'
18523 fi
18524 shlibpath_var=LD_LIBRARY_PATH
18525 shlibpath_overrides_runpath=yes
18526 hardcode_into_libs=yes
18527 ;;
18528
18529newsos6)
18530 version_type=linux
18531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18532 shlibpath_var=LD_LIBRARY_PATH
18533 shlibpath_overrides_runpath=yes
18534 ;;
18535
18536*nto* | *qnx*)
18537 version_type=qnx
18538 need_lib_prefix=no
18539 need_version=no
18540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18541 soname_spec='${libname}${release}${shared_ext}$major'
18542 shlibpath_var=LD_LIBRARY_PATH
18543 shlibpath_overrides_runpath=no
18544 hardcode_into_libs=yes
18545 dynamic_linker='ldqnx.so'
18546 ;;
18547
18548openbsd*)
18549 version_type=sunos
18550 sys_lib_dlsearch_path_spec="/usr/lib"
18551 need_lib_prefix=no
18552 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18553 case $host_os in
18554 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18555 *) need_version=no ;;
18556 esac
18557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18559 shlibpath_var=LD_LIBRARY_PATH
18560 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18561 case $host_os in
18562 openbsd2.[89] | openbsd2.[89].*)
18563 shlibpath_overrides_runpath=no
18564 ;;
18565 *)
18566 shlibpath_overrides_runpath=yes
18567 ;;
18568 esac
18569 else
18570 shlibpath_overrides_runpath=yes
18571 fi
18572 ;;
18573
18574os2*)
18575 libname_spec='$name'
18576 shrext_cmds=".dll"
18577 need_lib_prefix=no
18578 library_names_spec='$libname${shared_ext} $libname.a'
18579 dynamic_linker='OS/2 ld.exe'
18580 shlibpath_var=LIBPATH
18581 ;;
18582
18583osf3* | osf4* | osf5*)
18584 version_type=osf
18585 need_lib_prefix=no
18586 need_version=no
18587 soname_spec='${libname}${release}${shared_ext}$major'
18588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18589 shlibpath_var=LD_LIBRARY_PATH
18590 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18591 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18592 ;;
18593
18594rdos*)
18595 dynamic_linker=no
18596 ;;
18597
18598solaris*)
18599 version_type=linux
18600 need_lib_prefix=no
18601 need_version=no
18602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18603 soname_spec='${libname}${release}${shared_ext}$major'
18604 shlibpath_var=LD_LIBRARY_PATH
18605 shlibpath_overrides_runpath=yes
18606 hardcode_into_libs=yes
18607 # ldd complains unless libraries are executable
18608 postinstall_cmds='chmod +x $lib'
18609 ;;
18610
18611sunos4*)
18612 version_type=sunos
18613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18614 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18615 shlibpath_var=LD_LIBRARY_PATH
18616 shlibpath_overrides_runpath=yes
18617 if test "$with_gnu_ld" = yes; then
18618 need_lib_prefix=no
18619 fi
18620 need_version=yes
18621 ;;
18622
18623sysv4 | sysv4.3*)
18624 version_type=linux
18625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18626 soname_spec='${libname}${release}${shared_ext}$major'
18627 shlibpath_var=LD_LIBRARY_PATH
18628 case $host_vendor in
18629 sni)
18630 shlibpath_overrides_runpath=no
18631 need_lib_prefix=no
18632 runpath_var=LD_RUN_PATH
18633 ;;
18634 siemens)
18635 need_lib_prefix=no
18636 ;;
18637 motorola)
18638 need_lib_prefix=no
18639 need_version=no
18640 shlibpath_overrides_runpath=no
18641 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18642 ;;
18643 esac
18644 ;;
18645
18646sysv4*MP*)
18647 if test -d /usr/nec ;then
18648 version_type=linux
18649 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18650 soname_spec='$libname${shared_ext}.$major'
18651 shlibpath_var=LD_LIBRARY_PATH
18652 fi
18653 ;;
18654
18655sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18656 version_type=freebsd-elf
18657 need_lib_prefix=no
18658 need_version=no
18659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18660 soname_spec='${libname}${release}${shared_ext}$major'
18661 shlibpath_var=LD_LIBRARY_PATH
18662 shlibpath_overrides_runpath=yes
18663 hardcode_into_libs=yes
18664 if test "$with_gnu_ld" = yes; then
18665 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18666 else
18667 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18668 case $host_os in
18669 sco3.2v5*)
18670 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18671 ;;
18672 esac
18673 fi
18674 sys_lib_dlsearch_path_spec='/usr/lib'
18675 ;;
18676
18677tpf*)
18678 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18679 version_type=linux
18680 need_lib_prefix=no
18681 need_version=no
18682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18683 shlibpath_var=LD_LIBRARY_PATH
18684 shlibpath_overrides_runpath=no
18685 hardcode_into_libs=yes
18686 ;;
18687
18688uts4*)
18689 version_type=linux
18690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18691 soname_spec='${libname}${release}${shared_ext}$major'
18692 shlibpath_var=LD_LIBRARY_PATH
18693 ;;
18694
18695*)
18696 dynamic_linker=no
18697 ;;
18698esac
cristy8b350f62009-11-15 23:12:43 +000018699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000018700$as_echo "$dynamic_linker" >&6; }
18701test "$dynamic_linker" = no && can_build_shared=no
18702
18703variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18704if test "$GCC" = yes; then
18705 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18706fi
18707
18708if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18709 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18710fi
18711if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18712 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18713fi
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
cristyfd9dcd42010-08-08 18:07:02 +000018750
18751
cristy8b350f62009-11-15 23:12:43 +000018752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018753$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18754hardcode_action_CXX=
18755if test -n "$hardcode_libdir_flag_spec_CXX" ||
18756 test -n "$runpath_var_CXX" ||
18757 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18758
18759 # We can hardcode non-existent directories.
18760 if test "$hardcode_direct_CXX" != no &&
18761 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18762 # have to relink, otherwise we might link with an installed library
18763 # when we should be linking with a yet-to-be-installed one
18764 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18765 test "$hardcode_minus_L_CXX" != no; then
18766 # Linking always hardcodes the temporary library directory.
18767 hardcode_action_CXX=relink
18768 else
18769 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18770 hardcode_action_CXX=immediate
18771 fi
18772else
18773 # We cannot hardcode anything, or else we can only hardcode existing
18774 # directories.
18775 hardcode_action_CXX=unsupported
18776fi
cristy8b350f62009-11-15 23:12:43 +000018777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018778$as_echo "$hardcode_action_CXX" >&6; }
18779
18780if test "$hardcode_action_CXX" = relink ||
18781 test "$inherit_rpath_CXX" = yes; then
18782 # Fast installation is not supported
18783 enable_fast_install=no
18784elif test "$shlibpath_overrides_runpath" = yes ||
18785 test "$enable_shared" = no; then
18786 # Fast installation is not necessary
18787 enable_fast_install=needless
18788fi
18789
18790
18791
18792
18793
18794
18795
18796 fi # test -n "$compiler"
18797
18798 CC=$lt_save_CC
18799 LDCXX=$LD
18800 LD=$lt_save_LD
18801 GCC=$lt_save_GCC
18802 with_gnu_ld=$lt_save_with_gnu_ld
18803 lt_cv_path_LDCXX=$lt_cv_path_LD
18804 lt_cv_path_LD=$lt_save_path_LD
18805 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18806 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18807fi # test "$_lt_caught_CXX_error" != yes
18808
18809ac_ext=c
18810ac_cpp='$CPP $CPPFLAGS'
18811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18813ac_compiler_gnu=$ac_cv_c_compiler_gnu
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827 ac_config_commands="$ac_config_commands libtool"
18828
18829
18830
18831
18832# Only expand once:
18833
18834
18835
18836
18837
18838# Configure libltdl
18839
18840
18841
18842
18843
18844
18845
cristy8b350f62009-11-15 23:12:43 +000018846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000018847$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018848if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018849 $as_echo_n "(cached) " >&6
18850else
18851
18852module=yes
18853eval libltdl_cv_shlibext=$shrext_cmds
18854
18855fi
cristy8b350f62009-11-15 23:12:43 +000018856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000018857$as_echo "$libltdl_cv_shlibext" >&6; }
18858if test -n "$libltdl_cv_shlibext"; then
18859
18860cat >>confdefs.h <<_ACEOF
18861#define LT_MODULE_EXT "$libltdl_cv_shlibext"
18862_ACEOF
18863
18864fi
18865
cristy8b350f62009-11-15 23:12:43 +000018866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018867$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018868if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018869 $as_echo_n "(cached) " >&6
18870else
18871 lt_cv_module_path_var="$shlibpath_var"
18872fi
cristy8b350f62009-11-15 23:12:43 +000018873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000018874$as_echo "$lt_cv_module_path_var" >&6; }
18875if test -n "$lt_cv_module_path_var"; then
18876
18877cat >>confdefs.h <<_ACEOF
18878#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18879_ACEOF
18880
18881fi
18882
cristy8b350f62009-11-15 23:12:43 +000018883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018884$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018885if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018886 $as_echo_n "(cached) " >&6
18887else
18888 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18889fi
cristy8b350f62009-11-15 23:12:43 +000018890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018891$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18892if test -n "$lt_cv_sys_dlsearch_path"; then
18893 sys_dlsearch_path=
18894 for dir in $lt_cv_sys_dlsearch_path; do
18895 if test -z "$sys_dlsearch_path"; then
18896 sys_dlsearch_path="$dir"
18897 else
18898 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18899 fi
18900 done
18901
18902cat >>confdefs.h <<_ACEOF
18903#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18904_ACEOF
18905
18906fi
18907
18908
18909LT_DLLOADERS=
18910
18911
18912ac_ext=c
18913ac_cpp='$CPP $CPPFLAGS'
18914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18916ac_compiler_gnu=$ac_cv_c_compiler_gnu
18917
18918
18919LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000018920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018921$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018922if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018923 $as_echo_n "(cached) " >&6
18924else
18925 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000018926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018927/* end confdefs.h. */
18928
18929/* Override any GCC internal prototype to avoid an error.
18930 Use char because int might match the return type of a GCC
18931 builtin and then its argument prototype would still apply. */
18932#ifdef __cplusplus
18933extern "C"
18934#endif
18935char dlopen ();
18936int
18937main ()
18938{
18939return dlopen ();
18940 ;
18941 return 0;
18942}
18943_ACEOF
18944for ac_lib in '' dl; do
18945 if test -z "$ac_lib"; then
18946 ac_res="none required"
18947 else
18948 ac_res=-l$ac_lib
18949 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18950 fi
cristy8b350f62009-11-15 23:12:43 +000018951 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018952 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000018953fi
cristy8b350f62009-11-15 23:12:43 +000018954rm -f core conftest.err conftest.$ac_objext \
18955 conftest$ac_exeext
18956 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018957 break
18958fi
18959done
cristy8b350f62009-11-15 23:12:43 +000018960if test "${ac_cv_search_dlopen+set}" = set; then :
18961
cristy3ed852e2009-09-05 21:47:34 +000018962else
18963 ac_cv_search_dlopen=no
18964fi
18965rm conftest.$ac_ext
18966LIBS=$ac_func_search_save_LIBS
18967fi
cristy8b350f62009-11-15 23:12:43 +000018968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018969$as_echo "$ac_cv_search_dlopen" >&6; }
18970ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000018971if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000018972 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18973
cristy8b350f62009-11-15 23:12:43 +000018974$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018975
18976 if test "$ac_cv_search_dlopen" != "none required" ; then
18977 LIBADD_DLOPEN="-ldl"
18978 fi
18979 libltdl_cv_lib_dl_dlopen="yes"
18980 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18981else
cristy8b350f62009-11-15 23:12:43 +000018982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018983/* end confdefs.h. */
18984#if HAVE_DLFCN_H
18985# include <dlfcn.h>
18986#endif
18987
18988int
18989main ()
18990{
18991dlopen(0, 0);
18992 ;
18993 return 0;
18994}
18995_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018996if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018997
cristy8b350f62009-11-15 23:12:43 +000018998$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018999
19000 libltdl_cv_func_dlopen="yes"
19001 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19002else
cristy8b350f62009-11-15 23:12:43 +000019003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019004$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019005if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019006 $as_echo_n "(cached) " >&6
19007else
19008 ac_check_lib_save_LIBS=$LIBS
19009LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019011/* end confdefs.h. */
19012
19013/* Override any GCC internal prototype to avoid an error.
19014 Use char because int might match the return type of a GCC
19015 builtin and then its argument prototype would still apply. */
19016#ifdef __cplusplus
19017extern "C"
19018#endif
19019char dlopen ();
19020int
19021main ()
19022{
19023return dlopen ();
19024 ;
19025 return 0;
19026}
19027_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019028if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019029 ac_cv_lib_svld_dlopen=yes
19030else
cristy8b350f62009-11-15 23:12:43 +000019031 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000019032fi
cristy8b350f62009-11-15 23:12:43 +000019033rm -f core conftest.err conftest.$ac_objext \
19034 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019035LIBS=$ac_check_lib_save_LIBS
19036fi
cristy8b350f62009-11-15 23:12:43 +000019037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019038$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019039if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019040
cristy8b350f62009-11-15 23:12:43 +000019041$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019042
19043 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19044 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19045fi
19046
19047fi
cristy8b350f62009-11-15 23:12:43 +000019048rm -f core conftest.err conftest.$ac_objext \
19049 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019050fi
19051
19052if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19053then
19054 lt_save_LIBS="$LIBS"
19055 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000019056 for ac_func in dlerror
19057do :
19058 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19059if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019060 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019061#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000019062_ACEOF
19063
19064fi
19065done
19066
19067 LIBS="$lt_save_LIBS"
19068fi
19069
19070
19071LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000019072ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19073if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019074
cristy8b350f62009-11-15 23:12:43 +000019075$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019076
19077 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19078else
cristy8b350f62009-11-15 23:12:43 +000019079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019080$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019081if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019082 $as_echo_n "(cached) " >&6
19083else
19084 ac_check_lib_save_LIBS=$LIBS
19085LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019087/* end confdefs.h. */
19088
19089/* Override any GCC internal prototype to avoid an error.
19090 Use char because int might match the return type of a GCC
19091 builtin and then its argument prototype would still apply. */
19092#ifdef __cplusplus
19093extern "C"
19094#endif
19095char shl_load ();
19096int
19097main ()
19098{
19099return shl_load ();
19100 ;
19101 return 0;
19102}
19103_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019104if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019105 ac_cv_lib_dld_shl_load=yes
19106else
cristy8b350f62009-11-15 23:12:43 +000019107 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000019108fi
cristy8b350f62009-11-15 23:12:43 +000019109rm -f core conftest.err conftest.$ac_objext \
19110 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019111LIBS=$ac_check_lib_save_LIBS
19112fi
cristy8b350f62009-11-15 23:12:43 +000019113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000019114$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019115if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019116
cristy8b350f62009-11-15 23:12:43 +000019117$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019118
19119 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19120 LIBADD_SHL_LOAD="-ldld"
19121fi
19122
19123fi
19124
19125
19126
19127case $host_os in
19128darwin[1567].*)
19129# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000019130 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19131if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019132
cristy8b350f62009-11-15 23:12:43 +000019133$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019134
19135 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19136fi
19137
19138 ;;
19139beos*)
19140 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19141 ;;
19142cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000019143 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19144"
19145if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19146 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000019147else
cristy8b350f62009-11-15 23:12:43 +000019148 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000019149fi
19150
cristy3ed852e2009-09-05 21:47:34 +000019151cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019152#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000019153_ACEOF
19154
cristy3ed852e2009-09-05 21:47:34 +000019155 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19156 ;;
19157esac
19158
cristy8b350f62009-11-15 23:12:43 +000019159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019160$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019161if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019162 $as_echo_n "(cached) " >&6
19163else
19164 ac_check_lib_save_LIBS=$LIBS
19165LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019167/* end confdefs.h. */
19168
19169/* Override any GCC internal prototype to avoid an error.
19170 Use char because int might match the return type of a GCC
19171 builtin and then its argument prototype would still apply. */
19172#ifdef __cplusplus
19173extern "C"
19174#endif
19175char dld_link ();
19176int
19177main ()
19178{
19179return dld_link ();
19180 ;
19181 return 0;
19182}
19183_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019184if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019185 ac_cv_lib_dld_dld_link=yes
19186else
cristy8b350f62009-11-15 23:12:43 +000019187 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000019188fi
cristy8b350f62009-11-15 23:12:43 +000019189rm -f core conftest.err conftest.$ac_objext \
19190 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019191LIBS=$ac_check_lib_save_LIBS
19192fi
cristy8b350f62009-11-15 23:12:43 +000019193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000019194$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019195if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019196
cristy8b350f62009-11-15 23:12:43 +000019197$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019198
19199 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19200fi
19201
19202
19203
19204
19205LT_DLPREOPEN=
19206if test -n "$LT_DLLOADERS"
19207then
19208 for lt_loader in $LT_DLLOADERS; do
19209 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19210 done
19211
cristy8b350f62009-11-15 23:12:43 +000019212$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019213
19214fi
19215
19216
19217LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19218
19219
19220ac_ext=c
19221ac_cpp='$CPP $CPPFLAGS'
19222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19224ac_compiler_gnu=$ac_cv_c_compiler_gnu
19225
19226
cristy8b350f62009-11-15 23:12:43 +000019227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019228$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019229if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019230 $as_echo_n "(cached) " >&6
19231else
19232 lt_cv_sys_symbol_underscore=no
19233 cat > conftest.$ac_ext <<_LT_EOF
19234void nm_test_func(){}
19235int main(){nm_test_func;return 0;}
19236_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019238 (eval $ac_compile) 2>&5
19239 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19241 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000019242 # Now try to grab the symbols.
19243 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000019244 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 +000019245 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19246 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19248 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000019249 # See whether the symbols have a leading underscore.
19250 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19251 lt_cv_sys_symbol_underscore=yes
19252 else
19253 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19254 :
19255 else
19256 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19257 fi
19258 fi
19259 else
19260 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19261 fi
19262 else
19263 echo "configure: failed program was:" >&5
19264 cat conftest.c >&5
19265 fi
19266 rm -rf conftest*
19267
19268fi
cristy8b350f62009-11-15 23:12:43 +000019269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019270$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19271 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19272
19273
19274if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19275 if test x"$libltdl_cv_func_dlopen" = xyes ||
19276 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000019277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000019278$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019279if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019280 $as_echo_n "(cached) " >&6
19281else
19282 libltdl_cv_need_uscore=unknown
19283 save_LIBS="$LIBS"
19284 LIBS="$LIBS $LIBADD_DLOPEN"
19285 if test "$cross_compiling" = yes; then :
19286 libltdl_cv_need_uscore=cross
19287else
19288 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19289 lt_status=$lt_dlunknown
19290 cat > conftest.$ac_ext <<_LT_EOF
cristyfd9dcd42010-08-08 18:07:02 +000019291#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000019292#include "confdefs.h"
19293
19294#if HAVE_DLFCN_H
19295#include <dlfcn.h>
19296#endif
19297
19298#include <stdio.h>
19299
19300#ifdef RTLD_GLOBAL
19301# define LT_DLGLOBAL RTLD_GLOBAL
19302#else
19303# ifdef DL_GLOBAL
19304# define LT_DLGLOBAL DL_GLOBAL
19305# else
19306# define LT_DLGLOBAL 0
19307# endif
19308#endif
19309
19310/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19311 find out it does not work in some platform. */
19312#ifndef LT_DLLAZY_OR_NOW
19313# ifdef RTLD_LAZY
19314# define LT_DLLAZY_OR_NOW RTLD_LAZY
19315# else
19316# ifdef DL_LAZY
19317# define LT_DLLAZY_OR_NOW DL_LAZY
19318# else
19319# ifdef RTLD_NOW
19320# define LT_DLLAZY_OR_NOW RTLD_NOW
19321# else
19322# ifdef DL_NOW
19323# define LT_DLLAZY_OR_NOW DL_NOW
19324# else
19325# define LT_DLLAZY_OR_NOW 0
19326# endif
19327# endif
19328# endif
19329# endif
19330#endif
19331
cristyfd9dcd42010-08-08 18:07:02 +000019332/* When -fvisbility=hidden is used, assume the code has been annotated
19333 correspondingly for the symbols needed. */
19334#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19335void fnord () __attribute__((visibility("default")));
19336#endif
19337
19338void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000019339int main ()
19340{
19341 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19342 int status = $lt_dlunknown;
19343
19344 if (self)
19345 {
19346 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristyfd9dcd42010-08-08 18:07:02 +000019347 else
19348 {
19349 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19350 else puts (dlerror ());
19351 }
cristy3ed852e2009-09-05 21:47:34 +000019352 /* dlclose (self); */
19353 }
19354 else
19355 puts (dlerror ());
19356
19357 return status;
19358}
19359_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019361 (eval $ac_link) 2>&5
19362 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19364 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000019365 (./conftest; exit; ) >&5 2>/dev/null
19366 lt_status=$?
19367 case x$lt_status in
19368 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19369 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19370 x$lt_dlunknown|x*) ;;
19371 esac
19372 else :
19373 # compilation failed
19374
19375 fi
19376fi
19377rm -fr conftest*
19378
19379 LIBS="$save_LIBS"
19380
19381fi
cristy8b350f62009-11-15 23:12:43 +000019382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019383$as_echo "$libltdl_cv_need_uscore" >&6; }
19384 fi
19385fi
19386
19387if test x"$libltdl_cv_need_uscore" = xyes; then
19388
cristy8b350f62009-11-15 23:12:43 +000019389$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019390
19391fi
19392
cristy8b350f62009-11-15 23:12:43 +000019393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019394$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019395if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019396 $as_echo_n "(cached) " >&6
19397else
19398 # PORTME does your system automatically load deplibs for dlopen?
19399 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19400 # For now, we just catch OSes we know something about -- in the
19401 # future, we'll try test this programmatically.
19402 lt_cv_sys_dlopen_deplibs=unknown
19403 case $host_os in
19404 aix3*|aix4.1.*|aix4.2.*)
19405 # Unknown whether this is true for these versions of AIX, but
19406 # we want this `case' here to explicitly catch those versions.
19407 lt_cv_sys_dlopen_deplibs=unknown
19408 ;;
19409 aix[4-9]*)
19410 lt_cv_sys_dlopen_deplibs=yes
19411 ;;
19412 amigaos*)
19413 case $host_cpu in
19414 powerpc)
19415 lt_cv_sys_dlopen_deplibs=no
19416 ;;
19417 esac
19418 ;;
19419 darwin*)
19420 # Assuming the user has installed a libdl from somewhere, this is true
19421 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19422 lt_cv_sys_dlopen_deplibs=yes
19423 ;;
19424 freebsd* | dragonfly*)
19425 lt_cv_sys_dlopen_deplibs=yes
19426 ;;
cristyfd9dcd42010-08-08 18:07:02 +000019427 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000019428 # GNU and its variants, using gnu ld.so (Glibc)
19429 lt_cv_sys_dlopen_deplibs=yes
19430 ;;
19431 hpux10*|hpux11*)
19432 lt_cv_sys_dlopen_deplibs=yes
19433 ;;
19434 interix*)
19435 lt_cv_sys_dlopen_deplibs=yes
19436 ;;
19437 irix[12345]*|irix6.[01]*)
19438 # Catch all versions of IRIX before 6.2, and indicate that we don't
19439 # know how it worked for any of those versions.
19440 lt_cv_sys_dlopen_deplibs=unknown
19441 ;;
19442 irix*)
19443 # The case above catches anything before 6.2, and it's known that
19444 # at 6.2 and later dlopen does load deplibs.
19445 lt_cv_sys_dlopen_deplibs=yes
19446 ;;
19447 netbsd*)
19448 lt_cv_sys_dlopen_deplibs=yes
19449 ;;
19450 openbsd*)
19451 lt_cv_sys_dlopen_deplibs=yes
19452 ;;
19453 osf[1234]*)
19454 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19455 # it did *not* use an RPATH in a shared library to find objects the
19456 # library depends on, so we explicitly say `no'.
19457 lt_cv_sys_dlopen_deplibs=no
19458 ;;
19459 osf5.0|osf5.0a|osf5.1)
19460 # dlopen *does* load deplibs and with the right loader patch applied
19461 # it even uses RPATH in a shared library to search for shared objects
19462 # that the library depends on, but there's no easy way to know if that
19463 # patch is installed. Since this is the case, all we can really
19464 # say is unknown -- it depends on the patch being installed. If
19465 # it is, this changes to `yes'. Without it, it would be `no'.
19466 lt_cv_sys_dlopen_deplibs=unknown
19467 ;;
19468 osf*)
19469 # the two cases above should catch all versions of osf <= 5.1. Read
19470 # the comments above for what we know about them.
19471 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19472 # is used to find them so we can finally say `yes'.
19473 lt_cv_sys_dlopen_deplibs=yes
19474 ;;
19475 qnx*)
19476 lt_cv_sys_dlopen_deplibs=yes
19477 ;;
19478 solaris*)
19479 lt_cv_sys_dlopen_deplibs=yes
19480 ;;
19481 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19482 libltdl_cv_sys_dlopen_deplibs=yes
19483 ;;
19484 esac
19485
19486fi
cristy8b350f62009-11-15 23:12:43 +000019487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000019488$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19489if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19490
cristy8b350f62009-11-15 23:12:43 +000019491$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019492
19493fi
19494
19495:
19496
cristy3ed852e2009-09-05 21:47:34 +000019497for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000019498do :
19499 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19500"
19501if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019502 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019503#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000019504_ACEOF
19505
19506fi
19507
19508done
19509
19510
cristy8b350f62009-11-15 23:12:43 +000019511ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000019512# include <argz.h>
19513#endif
cristy8b350f62009-11-15 23:12:43 +000019514"
19515if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019516
19517cat >>confdefs.h <<_ACEOF
19518#define HAVE_ERROR_T 1
19519_ACEOF
19520
19521
19522else
19523
cristy8b350f62009-11-15 23:12:43 +000019524$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019525
19526
cristy8b350f62009-11-15 23:12:43 +000019527$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019528
19529fi
19530
19531
19532ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000019533for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19534 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000019535do :
19536 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19537ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000019538if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019539 cat >>confdefs.h <<_ACEOF
19540#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19541_ACEOF
19542
19543else
19544 ARGZ_H=argz.h;
19545
19546 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19547
19548fi
19549done
19550
19551
cristy8b350f62009-11-15 23:12:43 +000019552if test -z "$ARGZ_H"; then :
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019554$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019555if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019556 $as_echo_n "(cached) " >&6
19557else
19558 case $host_os in #(
19559 *cygwin*)
19560 lt_cv_sys_argz_works=no
19561 if test "$cross_compiling" != no; then
19562 lt_cv_sys_argz_works="guessing no"
19563 else
19564 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19565 save_IFS=$IFS
19566 IFS=-.
19567 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19568 IFS=$save_IFS
19569 lt_os_major=${2-0}
19570 lt_os_minor=${3-0}
19571 lt_os_micro=${4-0}
19572 if test "$lt_os_major" -gt 1 \
19573 || { test "$lt_os_major" -eq 1 \
19574 && { test "$lt_os_minor" -gt 5 \
19575 || { test "$lt_os_minor" -eq 5 \
19576 && test "$lt_os_micro" -gt 24; }; }; }; then
19577 lt_cv_sys_argz_works=yes
19578 fi
19579 fi
19580 ;; #(
19581 *) lt_cv_sys_argz_works=yes ;;
19582 esac
19583fi
cristy8b350f62009-11-15 23:12:43 +000019584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019585$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019586 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019587
cristy8b350f62009-11-15 23:12:43 +000019588$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019589
19590else
19591 ARGZ_H=argz.h
19592
19593
19594 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19595
19596fi
cristy3ed852e2009-09-05 21:47:34 +000019597fi
19598
19599
19600
cristy8b350f62009-11-15 23:12:43 +000019601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019602$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019603if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019604 $as_echo_n "(cached) " >&6
19605else
19606 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19607 libltdl_cv_preloaded_symbols=yes
19608 else
19609 libltdl_cv_preloaded_symbols=no
19610 fi
19611
19612fi
cristy8b350f62009-11-15 23:12:43 +000019613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019614$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19615if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19616
cristy8b350f62009-11-15 23:12:43 +000019617$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019618
19619fi
19620
19621# Set options
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000019634if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019635 withval=$with_included_ltdl;
19636fi
19637
19638
19639if test "x$with_included_ltdl" != xyes; then
19640 # We are not being forced to use the included libltdl sources, so
19641 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000019642 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000019643
cristy8b350f62009-11-15 23:12:43 +000019644"
19645if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19646 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 +000019647 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000019648"
19649if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000019651$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019652if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019653 $as_echo_n "(cached) " >&6
19654else
19655 ac_check_lib_save_LIBS=$LIBS
19656LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019658/* end confdefs.h. */
19659
19660/* Override any GCC internal prototype to avoid an error.
19661 Use char because int might match the return type of a GCC
19662 builtin and then its argument prototype would still apply. */
19663#ifdef __cplusplus
19664extern "C"
19665#endif
19666char lt_dladvise_preload ();
19667int
19668main ()
19669{
19670return lt_dladvise_preload ();
19671 ;
19672 return 0;
19673}
19674_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019675if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019676 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19677else
cristy8b350f62009-11-15 23:12:43 +000019678 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000019679fi
cristy8b350f62009-11-15 23:12:43 +000019680rm -f core conftest.err conftest.$ac_objext \
19681 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019682LIBS=$ac_check_lib_save_LIBS
19683fi
cristy8b350f62009-11-15 23:12:43 +000019684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000019685$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019686if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019687 with_included_ltdl=no
19688else
19689 with_included_ltdl=yes
19690fi
19691
19692else
19693 with_included_ltdl=yes
19694fi
19695
19696else
19697 with_included_ltdl=yes
19698fi
19699
19700
19701fi
19702
19703
19704
19705
19706# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000019707if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019708 withval=$with_ltdl_include;
19709fi
19710
19711
19712if test -n "$with_ltdl_include"; then
19713 if test -f "$with_ltdl_include/ltdl.h"; then :
19714 else
cristyfd9dcd42010-08-08 18:07:02 +000019715 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019716 fi
19717else
19718 with_ltdl_include=no
19719fi
19720
19721
19722# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000019723if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019724 withval=$with_ltdl_lib;
19725fi
19726
19727
19728if test -n "$with_ltdl_lib"; then
19729 if test -f "$with_ltdl_lib/libltdl.la"; then :
19730 else
cristyfd9dcd42010-08-08 18:07:02 +000019731 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019732 fi
19733else
19734 with_ltdl_lib=no
19735fi
19736
19737case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19738 ,yes,no,no,)
19739 case $enable_ltdl_convenience in
cristyfd9dcd42010-08-08 18:07:02 +000019740 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019741 "") enable_ltdl_convenience=yes
19742 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19743esac
19744LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19745LTDLDEPS=$LIBLTDL
19746LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19747
19748
19749
19750
19751
19752# For backwards non-gettext consistent compatibility...
19753INCLTDL="$LTDLINCL"
19754
19755
19756 ;;
19757 ,no,no,no,)
19758 # If the included ltdl is not to be used, then use the
19759 # preinstalled libltdl we found.
19760
cristy8b350f62009-11-15 23:12:43 +000019761$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019762
19763 LIBLTDL=-lltdl
19764 LTDLDEPS=
19765 LTDLINCL=
19766 ;;
19767 ,no*,no,*)
cristyfd9dcd42010-08-08 18:07:02 +000019768 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019769 ;;
19770 *) with_included_ltdl=no
19771 LIBLTDL="-L$with_ltdl_lib -lltdl"
19772 LTDLDEPS=
19773 LTDLINCL="-I$with_ltdl_include"
19774 ;;
19775esac
19776INCLTDL="$LTDLINCL"
19777
19778# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000019779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000019780$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019782$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000019784$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019786$as_echo "$LIBLTDL" >&6; }
19787
19788
19789
19790# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000019791if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019792 enableval=$enable_ltdl_install;
19793fi
19794
19795
19796case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19797 *yes*) ;;
19798 *) enable_ltdl_convenience=yes ;;
19799esac
19800
19801 if test x"${enable_ltdl_install-no}" != xno; then
19802 INSTALL_LTDL_TRUE=
19803 INSTALL_LTDL_FALSE='#'
19804else
19805 INSTALL_LTDL_TRUE='#'
19806 INSTALL_LTDL_FALSE=
19807fi
19808
19809 if test x"${enable_ltdl_convenience-no}" != xno; then
19810 CONVENIENCE_LTDL_TRUE=
19811 CONVENIENCE_LTDL_FALSE='#'
19812else
19813 CONVENIENCE_LTDL_TRUE='#'
19814 CONVENIENCE_LTDL_FALSE=
19815fi
19816
19817
19818
19819
19820
19821
cristy3ed852e2009-09-05 21:47:34 +000019822# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19823# the user used. This is so that ltdl.h can pick up the parent projects
19824# config.h file, The first file in AC_CONFIG_HEADERS must contain the
19825# definitions required by ltdl.c.
19826# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19827
19828
19829
cristy3ed852e2009-09-05 21:47:34 +000019830for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000019831do :
19832 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19833ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19834"
cristyfd9dcd42010-08-08 18:07:02 +000019835if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019836 cat >>confdefs.h <<_ACEOF
19837#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19838_ACEOF
19839
19840fi
19841
19842done
19843
19844
cristy3ed852e2009-09-05 21:47:34 +000019845for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000019846do :
19847 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19848ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000019849if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019850 cat >>confdefs.h <<_ACEOF
19851#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19852_ACEOF
19853
19854else
19855
19856
19857 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
19858
19859fi
19860done
19861
cristy3ed852e2009-09-05 21:47:34 +000019862for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000019863do :
19864 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19865ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000019866if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019867 cat >>confdefs.h <<_ACEOF
19868#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19869_ACEOF
19870
19871else
19872
19873
19874 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
19875
19876fi
19877done
19878
19879
19880
19881cat >>confdefs.h <<_ACEOF
19882#define LT_LIBEXT "$libext"
19883_ACEOF
19884
19885
19886name=ltdl
19887LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
19888
19889
19890
19891
19892
19893
19894
19895
19896# Only expand once:
19897
19898
19899
19900# Check to see if building shared libraries
19901libtool_build_shared_libs='no'
19902if test "$enable_shared" = 'yes'; then
19903 libtool_build_shared_libs='yes'
19904fi
19905
19906# Check to see if building static libraries
19907libtool_build_static_libs='no'
19908if test "$enable_static" = 'yes'; then
19909 libtool_build_static_libs='yes'
19910fi
19911
cristyfa112112010-01-04 17:48:07 +000019912 if test "${libtool_build_shared_libs}" = 'yes'; then
19913 WITH_SHARED_LIBS_TRUE=
19914 WITH_SHARED_LIBS_FALSE='#'
19915else
19916 WITH_SHARED_LIBS_TRUE='#'
19917 WITH_SHARED_LIBS_FALSE=
cristy3ed852e2009-09-05 21:47:34 +000019918fi
19919
19920#
19921# Enable support for building loadable modules
19922#
19923
19924# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000019925if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019926 withval=$with_modules; with_modules=$withval
19927else
cristy5a1cefd2010-01-06 20:42:35 +000019928 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000019929fi
19930
19931
19932# Only allow building loadable modules if we are building shared libraries
19933if test "$with_modules" != 'no' ; then
19934 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000019935 { $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 +000019936$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
19937 with_modules='no'
19938 fi
19939fi
19940if test "$with_modules" != 'no'; then
19941
cristy8b350f62009-11-15 23:12:43 +000019942$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019943
19944fi
19945 if test "$with_modules" != 'no'; then
19946 WITH_MODULES_TRUE=
19947 WITH_MODULES_FALSE='#'
19948else
19949 WITH_MODULES_TRUE='#'
19950 WITH_MODULES_FALSE=
19951fi
19952
19953
19954# Enable building/use of libltdl if we are building shared libraries regardless
19955# of whether modules are built or not.
19956with_ltdl='no'
19957if test "$libtool_build_shared_libs" != 'no'; then
19958 with_ltdl='yes'
19959fi
19960
19961 if test "$with_ltdl" != 'no'; then
19962 WITH_LTDL_TRUE=
19963 WITH_LTDL_FALSE='#'
19964else
19965 WITH_LTDL_TRUE='#'
19966 WITH_LTDL_FALSE=
19967fi
19968
19969if test "$with_ltdl" != 'no'; then
19970
cristy8b350f62009-11-15 23:12:43 +000019971$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019972
19973
19974 # Set DLLDFLAGS
19975 if test X"$enable_shared" = Xyes; then
19976 DLLDFLAGS=-export-dynamic
19977
19978 fi
19979fi
19980
19981# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000019982# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000019983# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000019984if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019985 enableval=$enable_delegate_build; enable_delegate_build=$enableval
19986else
19987 enable_delegate_build='no'
19988fi
19989
19990
19991# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000019992if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019993 enableval=$enable_deprecated; enable_deprecated=$enableval
19994else
19995 enable_deprecated='no'
19996fi
19997
19998
19999if test "$enable_deprecated" = 'yes'; then
20000
cristy8b350f62009-11-15 23:12:43 +000020001$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020002
20003else
20004 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20005fi
20006
20007# Build a version of ImageMagick which operates uninstalled.
20008# Used to build distributions located via MAGICK_HOME / executable path
20009# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020010if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020011 enableval=$enable_installed; enable_installed=$enableval
20012else
20013 enable_installed='yes'
20014fi
20015
20016
20017if test "$enable_installed" = 'yes'; then
20018
cristy8b350f62009-11-15 23:12:43 +000020019$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020020
20021else
20022 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20023fi
20024
20025# Permit enciphering and deciphering image pixels.
20026# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020027if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020028 enableval=$enable_cipher; enable_cipher=$enableval
20029else
20030 enable_cipher='yes'
20031fi
20032
20033
20034if test "$enable_cipher" = 'yes'; then
20035
cristy8b350f62009-11-15 23:12:43 +000020036$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020037
20038fi
20039
20040# Build an embeddable version of ImageMagick.
20041# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020042if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020043 enableval=$enable_embeddable; enable_embeddable=$enableval
20044else
20045 enable_embeddable='no'
20046fi
20047
20048
20049if test "$enable_embeddable" = 'yes'; then
20050
cristy8b350f62009-11-15 23:12:43 +000020051$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020052
20053fi
20054
20055# Build a high dynamic range version of ImageMagick.
20056# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020057if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020058 enableval=$enable_hdri; enable_hdri=$enableval
20059else
20060 enable_hdri='no'
20061fi
20062
20063
20064MAGICK_HDRI=""
20065if test "$enable_hdri" = 'yes'; then
20066 MAGICK_HDRI="HDRI"
20067
cristy8b350f62009-11-15 23:12:43 +000020068$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020069
cristyfd9dcd42010-08-08 18:07:02 +000020070 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020071fi
20072
cristy3ed852e2009-09-05 21:47:34 +000020073# Build a version of ImageMagick with assert statements.
20074# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020075if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020076 enableval=$enable_assert; enable_assert=$enableval
20077else
20078 enable_assert='yes'
20079fi
20080
20081
20082if test "$enable_assert" = 'no'; then
20083
cristy8b350f62009-11-15 23:12:43 +000020084$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020085
20086fi
20087
20088# Add configure option --enable-maintainer-mode which enables dependency
20089# checking and generation useful to package maintainers. This is made an
20090# option to avoid confusing end users.
20091
cristy8b350f62009-11-15 23:12:43 +000020092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000020093$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20094 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000020095if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020096 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20097else
20098 USE_MAINTAINER_MODE=no
20099fi
20100
cristy8b350f62009-11-15 23:12:43 +000020101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000020102$as_echo "$USE_MAINTAINER_MODE" >&6; }
20103 if test $USE_MAINTAINER_MODE = yes; then
20104 MAINTAINER_MODE_TRUE=
20105 MAINTAINER_MODE_FALSE='#'
20106else
20107 MAINTAINER_MODE_TRUE='#'
20108 MAINTAINER_MODE_FALSE=
20109fi
20110
20111 MAINT=$MAINTAINER_MODE_TRUE
20112
20113
20114
20115
20116# Enable ccmalloc memory debugging support
20117# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020118if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020119 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20120else
20121 enable_ccmalloc='no'
20122fi
20123
20124
20125# Enable Electric Fence memory debugging support
20126# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020127if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020128 enableval=$enable_efence; enable_efence=$enableval
20129else
20130 enable_efence='no'
20131fi
20132
20133
20134# Enable prof-based profiling support
20135# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020136if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020137 enableval=$enable_prof; enable_prof=$enableval
20138else
20139 enable_prof='no'
20140fi
20141
20142
20143# Enable gprof-based profiling support
20144# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020145if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020146 enableval=$enable_gprof; enable_gprof=$enableval
20147else
20148 enable_gprof='no'
20149fi
20150
20151
20152# Enable gcov-based profiling support
20153# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020154if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020155 enableval=$enable_gcov; enable_gcov=$enableval
20156else
20157 enable_gcov='no'
20158fi
20159
20160
20161enable_profiling='no'
20162if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20163 enable_profiling='yes'
20164 if test "$libtool_build_shared_libs" = 'yes'; then
20165 echo "Warning: Can not profile code using shared libraries"
20166 fi
20167fi
20168
20169# Magick API method prefix
20170
20171# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020172if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020173 withval=$with_method_prefix; with_method_prefix=$enableval
20174else
20175 with_method_prefix=''
20176fi
20177
20178
20179if test "$with_method_prefix" != ''; then
20180
20181cat >>confdefs.h <<_ACEOF
20182#define NAMESPACE_PREFIX $with_method_prefix
20183_ACEOF
20184
20185fi
20186
20187# Number of bits in a Quantum
20188
20189# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020190if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020191 withval=$with_quantum_depth; with_quantum_depth=$withval
20192else
20193 with_quantum_depth=16
20194fi
20195
20196
20197if test "$with_quantum_depth" != '8'; then
20198 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20199fi
20200
20201case "${with_quantum_depth}" in
20202 8 ) ;;
20203 16 ) ;;
20204 32 ) ;;
20205 64 ) ;;
cristyfd9dcd42010-08-08 18:07:02 +000020206 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000020207esac
20208QUANTUM_DEPTH="$with_quantum_depth"
20209
20210cat >>confdefs.h <<_ACEOF
20211#define QUANTUM_DEPTH $QUANTUM_DEPTH
20212_ACEOF
20213
20214
20215# Set pixel cache threshold
20216
20217# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000020218if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020219 withval=$with_cache; with_cache=$withval
20220else
20221 with_cache=''
20222fi
20223
20224
20225if test "$with_cache" != ''; then
20226
20227cat >>confdefs.h <<_ACEOF
20228#define PixelCacheThreshold $with_cache
20229_ACEOF
20230
20231 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20232fi
20233
20234# Disable/Enable support for full delegate paths
20235
20236# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000020237if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020238 withval=$with_frozenpaths; with_frozenpaths=$withval
20239else
20240 with_frozenpaths='no'
20241fi
20242
20243
20244# Enable build/install of Magick++
20245
20246# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000020247if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020248 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20249else
20250 with_magick_plus_plus='yes'
20251fi
20252
20253
20254# Disable build/install of PerlMagick.
20255
20256# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000020257if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020258 withval=$with_perl; with_perl=$withval
20259else
cristyb5f4e2f2010-04-25 00:49:11 +000020260 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000020261fi
20262
20263
20264# Options to pass when configuring PerlMagick
20265
20266# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000020267if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000020268 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000020269fi
20270
20271
cristy3ed852e2009-09-05 21:47:34 +000020272
20273# Enable umem, object-caching memory allocation library.
20274
20275# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000020276if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020277 withval=$with_umem; with_umem=$withval
20278else
20279 with_umem='no'
20280fi
20281
20282if test "$with_umem" != 'yes' ; then
20283 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20284fi
20285
20286#
20287# Specify path to shared libstdc++ if not in normal location
20288#
20289
20290# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000020291if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020292 withval=$with_libstdc; with_libstdc=$withval
20293else
20294 with_libstdc=''
20295fi
20296
20297
20298if test "$with_libstdc" != ''; then
20299 if test -d "$with_libstdc"; then
20300 LIBSTDCLDFLAGS="-L$with_libstdc"
20301 fi
20302fi
20303
20304
20305# Does gcc required -traditional?
20306if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000020307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020308$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020309if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020310 $as_echo_n "(cached) " >&6
20311else
20312 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000020313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020314/* end confdefs.h. */
20315#include <sgtty.h>
20316Autoconf TIOCGETP
20317_ACEOF
20318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020319 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020320 ac_cv_prog_gcc_traditional=yes
20321else
20322 ac_cv_prog_gcc_traditional=no
20323fi
20324rm -f conftest*
20325
20326
20327 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000020328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020329/* end confdefs.h. */
20330#include <termio.h>
20331Autoconf TCGETA
20332_ACEOF
20333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020334 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020335 ac_cv_prog_gcc_traditional=yes
20336fi
20337rm -f conftest*
20338
20339 fi
20340fi
cristy8b350f62009-11-15 23:12:43 +000020341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020342$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20343 if test $ac_cv_prog_gcc_traditional = yes; then
20344 CC="$CC -traditional"
20345 fi
20346fi
20347
20348
20349########
20350#
20351# Set defines required to build DLLs and modules using MinGW
20352#
20353########
20354# These options are set for multi-thread DLL module build
20355# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20356# module: _DLL
20357# executable/Magick++: _DLL _MAGICKMOD_
20358MODULE_EXTRA_CPPFLAGS=''
20359LIBRARY_EXTRA_CPPFLAGS=''
20360if test "${native_win32_build}" = 'yes'; then
20361 if test "${libtool_build_shared_libs}" = 'yes'; then
20362 CPPFLAGS="$CPPFLAGS -D_DLL"
20363 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20364 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20365 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20366 if test "$with_modules" = 'yes'; then
20367 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20368 else
20369 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20370 fi
20371 else
20372 CPPFLAGS="$CPPFLAGS -D_LIB"
20373 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20374 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20375 fi
20376 if test "$with_threads" = 'yes'; then
20377 CPPFLAGS="$CPPFLAGS -D_MT"
20378 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20379 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20380 fi
20381fi
20382
20383
20384
20385# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000020386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000020387$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020388if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020389 $as_echo_n "(cached) " >&6
20390else
cristy8b350f62009-11-15 23:12:43 +000020391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020392/* end confdefs.h. */
20393#include <stdlib.h>
20394#include <stdarg.h>
20395#include <string.h>
20396#include <float.h>
20397
20398int
20399main ()
20400{
20401
20402 ;
20403 return 0;
20404}
20405_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020406if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020407 ac_cv_header_stdc=yes
20408else
cristy8b350f62009-11-15 23:12:43 +000020409 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020410fi
cristy3ed852e2009-09-05 21:47:34 +000020411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20412
20413if test $ac_cv_header_stdc = yes; then
20414 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020416/* end confdefs.h. */
20417#include <string.h>
20418
20419_ACEOF
20420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020421 $EGREP "memchr" >/dev/null 2>&1; then :
20422
cristy3ed852e2009-09-05 21:47:34 +000020423else
20424 ac_cv_header_stdc=no
20425fi
20426rm -f conftest*
20427
20428fi
20429
20430if test $ac_cv_header_stdc = yes; then
20431 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020433/* end confdefs.h. */
20434#include <stdlib.h>
20435
20436_ACEOF
20437if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020438 $EGREP "free" >/dev/null 2>&1; then :
20439
cristy3ed852e2009-09-05 21:47:34 +000020440else
20441 ac_cv_header_stdc=no
20442fi
20443rm -f conftest*
20444
20445fi
20446
20447if test $ac_cv_header_stdc = yes; then
20448 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000020449 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020450 :
20451else
cristy8b350f62009-11-15 23:12:43 +000020452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020453/* end confdefs.h. */
20454#include <ctype.h>
20455#include <stdlib.h>
20456#if ((' ' & 0x0FF) == 0x020)
20457# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20458# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20459#else
20460# define ISLOWER(c) \
20461 (('a' <= (c) && (c) <= 'i') \
20462 || ('j' <= (c) && (c) <= 'r') \
20463 || ('s' <= (c) && (c) <= 'z'))
20464# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20465#endif
20466
20467#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20468int
20469main ()
20470{
20471 int i;
20472 for (i = 0; i < 256; i++)
20473 if (XOR (islower (i), ISLOWER (i))
20474 || toupper (i) != TOUPPER (i))
20475 return 2;
20476 return 0;
20477}
20478_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020479if ac_fn_c_try_run "$LINENO"; then :
20480
cristy3ed852e2009-09-05 21:47:34 +000020481else
cristy8b350f62009-11-15 23:12:43 +000020482 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020483fi
cristy8b350f62009-11-15 23:12:43 +000020484rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20485 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020486fi
20487
cristy3ed852e2009-09-05 21:47:34 +000020488fi
20489fi
cristy8b350f62009-11-15 23:12:43 +000020490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000020491$as_echo "$ac_cv_header_stdc" >&6; }
20492if test $ac_cv_header_stdc = yes; then
20493
cristy8b350f62009-11-15 23:12:43 +000020494$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020495
20496fi
20497
20498if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000020499 { $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 +000020500 header files. Compilation cannot proceed. Please install the ANSI C
20501 headers and rerun this script." >&5
20502$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20503 header files. Compilation cannot proceed. Please install the ANSI C
20504 headers and rerun this script." >&2;};
20505fi
cristya0b81c32010-01-22 02:54:33 +000020506
20507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20508$as_echo_n "checking whether to enable assertions... " >&6; }
20509 # Check whether --enable-assert was given.
20510if test "${enable_assert+set}" = set; then :
20511 enableval=$enable_assert; ac_enable_assert=$enableval
20512 if test "x$enableval" = xno; then :
20513
20514$as_echo "#define NDEBUG 1" >>confdefs.h
20515
20516elif test "x$enableval" != xyes; then :
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20518$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20519 ac_enable_assert=yes
20520fi
20521else
20522 ac_enable_assert=yes
20523fi
20524
20525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20526$as_echo "$ac_enable_assert" >&6; }
20527
cristy3ed852e2009-09-05 21:47:34 +000020528ac_header_dirent=no
20529for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20530 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020532$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000020533if eval "test \"\${$as_ac_Header+set}\"" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020534 $as_echo_n "(cached) " >&6
20535else
cristy8b350f62009-11-15 23:12:43 +000020536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020537/* end confdefs.h. */
20538#include <sys/types.h>
20539#include <$ac_hdr>
20540
20541int
20542main ()
20543{
20544if ((DIR *) 0)
20545return 0;
20546 ;
20547 return 0;
20548}
20549_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020550if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020551 eval "$as_ac_Header=yes"
20552else
cristy8b350f62009-11-15 23:12:43 +000020553 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020554fi
cristy3ed852e2009-09-05 21:47:34 +000020555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20556fi
cristy8b350f62009-11-15 23:12:43 +000020557eval ac_res=\$$as_ac_Header
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020559$as_echo "$ac_res" >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000020560if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000020561 cat >>confdefs.h <<_ACEOF
20562#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20563_ACEOF
20564
20565ac_header_dirent=$ac_hdr; break
20566fi
20567
20568done
20569# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20570if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020572$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020573if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020574 $as_echo_n "(cached) " >&6
20575else
20576 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020578/* end confdefs.h. */
20579
20580/* Override any GCC internal prototype to avoid an error.
20581 Use char because int might match the return type of a GCC
20582 builtin and then its argument prototype would still apply. */
20583#ifdef __cplusplus
20584extern "C"
20585#endif
20586char opendir ();
20587int
20588main ()
20589{
20590return opendir ();
20591 ;
20592 return 0;
20593}
20594_ACEOF
20595for ac_lib in '' dir; do
20596 if test -z "$ac_lib"; then
20597 ac_res="none required"
20598 else
20599 ac_res=-l$ac_lib
20600 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20601 fi
cristy8b350f62009-11-15 23:12:43 +000020602 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020603 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020604fi
cristy8b350f62009-11-15 23:12:43 +000020605rm -f core conftest.err conftest.$ac_objext \
20606 conftest$ac_exeext
20607 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020608 break
20609fi
20610done
cristy8b350f62009-11-15 23:12:43 +000020611if test "${ac_cv_search_opendir+set}" = set; then :
20612
cristy3ed852e2009-09-05 21:47:34 +000020613else
20614 ac_cv_search_opendir=no
20615fi
20616rm conftest.$ac_ext
20617LIBS=$ac_func_search_save_LIBS
20618fi
cristy8b350f62009-11-15 23:12:43 +000020619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020620$as_echo "$ac_cv_search_opendir" >&6; }
20621ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020622if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020623 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20624
20625fi
20626
20627else
cristy8b350f62009-11-15 23:12:43 +000020628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020629$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020630if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020631 $as_echo_n "(cached) " >&6
20632else
20633 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020635/* end confdefs.h. */
20636
20637/* Override any GCC internal prototype to avoid an error.
20638 Use char because int might match the return type of a GCC
20639 builtin and then its argument prototype would still apply. */
20640#ifdef __cplusplus
20641extern "C"
20642#endif
20643char opendir ();
20644int
20645main ()
20646{
20647return opendir ();
20648 ;
20649 return 0;
20650}
20651_ACEOF
20652for ac_lib in '' x; do
20653 if test -z "$ac_lib"; then
20654 ac_res="none required"
20655 else
20656 ac_res=-l$ac_lib
20657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20658 fi
cristy8b350f62009-11-15 23:12:43 +000020659 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020660 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020661fi
cristy8b350f62009-11-15 23:12:43 +000020662rm -f core conftest.err conftest.$ac_objext \
20663 conftest$ac_exeext
20664 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020665 break
20666fi
20667done
cristy8b350f62009-11-15 23:12:43 +000020668if test "${ac_cv_search_opendir+set}" = set; then :
20669
cristy3ed852e2009-09-05 21:47:34 +000020670else
20671 ac_cv_search_opendir=no
20672fi
20673rm conftest.$ac_ext
20674LIBS=$ac_func_search_save_LIBS
20675fi
cristy8b350f62009-11-15 23:12:43 +000020676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020677$as_echo "$ac_cv_search_opendir" >&6; }
20678ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020679if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020680 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20681
20682fi
20683
20684fi
20685
20686
20687# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020688for 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 +000020689do :
20690 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20691ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyfd9dcd42010-08-08 18:07:02 +000020692if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000020693 cat >>confdefs.h <<_ACEOF
20694#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20695_ACEOF
20696
20697fi
20698
20699done
20700
20701
20702########
20703#
20704# Checks for typedefs, structures, and compiler characteristics.
20705#
20706########
20707
cristy8b350f62009-11-15 23:12:43 +000020708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020709$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020710if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020711 $as_echo_n "(cached) " >&6
20712else
cristy8b350f62009-11-15 23:12:43 +000020713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020714/* end confdefs.h. */
20715
20716#include <stdbool.h>
20717#ifndef bool
20718 "error: bool is not defined"
20719#endif
20720#ifndef false
20721 "error: false is not defined"
20722#endif
20723#if false
20724 "error: false is not 0"
20725#endif
20726#ifndef true
20727 "error: true is not defined"
20728#endif
20729#if true != 1
20730 "error: true is not 1"
20731#endif
20732#ifndef __bool_true_false_are_defined
20733 "error: __bool_true_false_are_defined is not defined"
20734#endif
20735
20736 struct s { _Bool s: 1; _Bool t; } s;
20737
20738 char a[true == 1 ? 1 : -1];
20739 char b[false == 0 ? 1 : -1];
20740 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20741 char d[(bool) 0.5 == true ? 1 : -1];
20742 bool e = &s;
20743 char f[(_Bool) 0.0 == false ? 1 : -1];
20744 char g[true];
20745 char h[sizeof (_Bool)];
20746 char i[sizeof s.t];
20747 enum { j = false, k = true, l = false * true, m = true * 256 };
20748 /* The following fails for
20749 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20750 _Bool n[m];
20751 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20752 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20753# if defined __xlc__ || defined __GNUC__
20754 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20755 reported by James Lemley on 2005-10-05; see
20756 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20757 This test is not quite right, since xlc is allowed to
20758 reject this program, as the initializer for xlcbug is
20759 not one of the forms that C requires support for.
20760 However, doing the test right would require a runtime
20761 test, and that would make cross-compilation harder.
20762 Let us hope that IBM fixes the xlc bug, and also adds
20763 support for this kind of constant expression. In the
20764 meantime, this test will reject xlc, which is OK, since
20765 our stdbool.h substitute should suffice. We also test
20766 this with GCC, where it should work, to detect more
20767 quickly whether someone messes up the test in the
20768 future. */
20769 char digs[] = "0123456789";
20770 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20771# endif
20772 /* Catch a bug in an HP-UX C compiler. See
20773 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20774 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20775 */
20776 _Bool q = true;
20777 _Bool *pq = &q;
20778
20779int
20780main ()
20781{
20782
20783 *pq |= q;
20784 *pq |= ! q;
20785 /* Refer to every declared value, to avoid compiler optimizations. */
20786 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20787 + !m + !n + !o + !p + !q + !pq);
20788
20789 ;
20790 return 0;
20791}
20792_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020793if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020794 ac_cv_header_stdbool_h=yes
20795else
cristy8b350f62009-11-15 23:12:43 +000020796 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000020797fi
cristy3ed852e2009-09-05 21:47:34 +000020798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20799fi
cristy8b350f62009-11-15 23:12:43 +000020800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000020801$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020802ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20803if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020804
20805cat >>confdefs.h <<_ACEOF
20806#define HAVE__BOOL 1
20807_ACEOF
20808
20809
20810fi
20811
20812if test $ac_cv_header_stdbool_h = yes; then
20813
cristy8b350f62009-11-15 23:12:43 +000020814$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020815
20816fi
20817
cristy8b350f62009-11-15 23:12:43 +000020818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020819$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020820if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020821 $as_echo_n "(cached) " >&6
20822else
cristy8b350f62009-11-15 23:12:43 +000020823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020824/* end confdefs.h. */
20825
20826int
20827main ()
20828{
20829
20830volatile int x;
20831int * volatile y = (int *) 0;
20832return !x && !y;
20833 ;
20834 return 0;
20835}
20836_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020837if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020838 ac_cv_c_volatile=yes
20839else
cristy8b350f62009-11-15 23:12:43 +000020840 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000020841fi
cristy3ed852e2009-09-05 21:47:34 +000020842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20843fi
cristy8b350f62009-11-15 23:12:43 +000020844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020845$as_echo "$ac_cv_c_volatile" >&6; }
20846if test $ac_cv_c_volatile = no; then
20847
cristy8b350f62009-11-15 23:12:43 +000020848$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020849
20850fi
20851
cristy8b350f62009-11-15 23:12:43 +000020852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000020853$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020854if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020855 $as_echo_n "(cached) " >&6
20856else
cristy8b350f62009-11-15 23:12:43 +000020857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020858/* end confdefs.h. */
20859#define x(y) #y
20860
20861char *s = x(teststring);
20862_ACEOF
20863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020864 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020865 ac_cv_c_stringize=no
20866else
20867 ac_cv_c_stringize=yes
20868fi
20869rm -f conftest*
20870
20871fi
cristy8b350f62009-11-15 23:12:43 +000020872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000020873$as_echo "$ac_cv_c_stringize" >&6; }
20874if test $ac_cv_c_stringize = yes; then
20875
cristy8b350f62009-11-15 23:12:43 +000020876$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020877
20878fi
20879
cristy8b350f62009-11-15 23:12:43 +000020880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020881$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020882if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020883 $as_echo_n "(cached) " >&6
20884else
cristy8b350f62009-11-15 23:12:43 +000020885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020886/* end confdefs.h. */
20887#include <sys/types.h>
20888#include <sys/stat.h>
20889
20890#if defined S_ISBLK && defined S_IFDIR
20891extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20892#endif
20893
20894#if defined S_ISBLK && defined S_IFCHR
20895extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20896#endif
20897
20898#if defined S_ISLNK && defined S_IFREG
20899extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20900#endif
20901
20902#if defined S_ISSOCK && defined S_IFREG
20903extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20904#endif
20905
20906_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020907if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020908 ac_cv_header_stat_broken=no
20909else
cristy8b350f62009-11-15 23:12:43 +000020910 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000020911fi
cristy3ed852e2009-09-05 21:47:34 +000020912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20913fi
cristy8b350f62009-11-15 23:12:43 +000020914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020915$as_echo "$ac_cv_header_stat_broken" >&6; }
20916if test $ac_cv_header_stat_broken = yes; then
20917
cristy8b350f62009-11-15 23:12:43 +000020918$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020919
20920fi
20921
cristy8b350f62009-11-15 23:12:43 +000020922{ $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 +000020923$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020924if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020925 $as_echo_n "(cached) " >&6
20926else
cristy8b350f62009-11-15 23:12:43 +000020927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020928/* end confdefs.h. */
20929#include <sys/types.h>
20930#include <sys/time.h>
20931#include <time.h>
20932
20933int
20934main ()
20935{
20936if ((struct tm *) 0)
20937return 0;
20938 ;
20939 return 0;
20940}
20941_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020942if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020943 ac_cv_header_time=yes
20944else
cristy8b350f62009-11-15 23:12:43 +000020945 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000020946fi
cristy3ed852e2009-09-05 21:47:34 +000020947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20948fi
cristy8b350f62009-11-15 23:12:43 +000020949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000020950$as_echo "$ac_cv_header_time" >&6; }
20951if test $ac_cv_header_time = yes; then
20952
cristy8b350f62009-11-15 23:12:43 +000020953$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020954
20955fi
20956
cristy8b350f62009-11-15 23:12:43 +000020957{ $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 +000020958$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020959if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020960 $as_echo_n "(cached) " >&6
20961else
cristy8b350f62009-11-15 23:12:43 +000020962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020963/* end confdefs.h. */
20964#include <sys/types.h>
20965#include <time.h>
20966
20967int
20968main ()
20969{
20970struct tm tm;
20971 int *p = &tm.tm_sec;
20972 return !p;
20973 ;
20974 return 0;
20975}
20976_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020977if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020978 ac_cv_struct_tm=time.h
20979else
cristy8b350f62009-11-15 23:12:43 +000020980 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000020981fi
cristy3ed852e2009-09-05 21:47:34 +000020982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20983fi
cristy8b350f62009-11-15 23:12:43 +000020984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000020985$as_echo "$ac_cv_struct_tm" >&6; }
20986if test $ac_cv_struct_tm = sys/time.h; then
20987
cristy8b350f62009-11-15 23:12:43 +000020988$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020989
20990fi
20991
cristy92703d82010-04-26 00:18:18 +000020992ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
20993#include <$ac_cv_struct_tm>
20994
20995"
20996if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
20997
20998cat >>confdefs.h <<_ACEOF
20999#define HAVE_STRUCT_TM_TM_ZONE 1
21000_ACEOF
21001
21002
21003fi
21004
21005if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21006
21007$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21008
21009else
21010 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21011"
21012if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21013 ac_have_decl=1
21014else
21015 ac_have_decl=0
21016fi
21017
21018cat >>confdefs.h <<_ACEOF
21019#define HAVE_DECL_TZNAME $ac_have_decl
21020_ACEOF
21021
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21023$as_echo_n "checking for tzname... " >&6; }
21024if test "${ac_cv_var_tzname+set}" = set; then :
21025 $as_echo_n "(cached) " >&6
21026else
21027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21028/* end confdefs.h. */
21029#include <time.h>
21030#if !HAVE_DECL_TZNAME
21031extern char *tzname[];
21032#endif
21033
21034int
21035main ()
21036{
21037return tzname[0][0];
21038 ;
21039 return 0;
21040}
21041_ACEOF
21042if ac_fn_c_try_link "$LINENO"; then :
21043 ac_cv_var_tzname=yes
21044else
21045 ac_cv_var_tzname=no
21046fi
21047rm -f core conftest.err conftest.$ac_objext \
21048 conftest$ac_exeext conftest.$ac_ext
21049fi
21050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21051$as_echo "$ac_cv_var_tzname" >&6; }
21052 if test $ac_cv_var_tzname = yes; then
21053
21054$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21055
21056 fi
21057fi
21058
cristy8b350f62009-11-15 23:12:43 +000021059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021060$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021061if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021062 $as_echo_n "(cached) " >&6
21063else
21064 echo '#! /bin/cat
21065exit 69
21066' >conftest
21067chmod u+x conftest
21068(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21069if test $? -ne 69; then
21070 ac_cv_sys_interpreter=yes
21071else
21072 ac_cv_sys_interpreter=no
21073fi
21074rm -f conftest
21075fi
cristy8b350f62009-11-15 23:12:43 +000021076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021077$as_echo "$ac_cv_sys_interpreter" >&6; }
21078interpval=$ac_cv_sys_interpreter
21079
21080
cristy3ed852e2009-09-05 21:47:34 +000021081# If the C compiler supports the keyword inline, do nothing. Otherwise
21082# define inline to __inline__ or __inline if it accepts one of those,
21083# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021085$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021086if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021087 $as_echo_n "(cached) " >&6
21088else
21089 ac_cv_c_inline=no
21090for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021092/* end confdefs.h. */
21093#ifndef __cplusplus
21094typedef int foo_t;
21095static $ac_kw foo_t static_foo () {return 0; }
21096$ac_kw foo_t foo () {return 0; }
21097#endif
21098
21099_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021100if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021101 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021102fi
cristy3ed852e2009-09-05 21:47:34 +000021103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21104 test "$ac_cv_c_inline" != no && break
21105done
21106
21107fi
cristy8b350f62009-11-15 23:12:43 +000021108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021109$as_echo "$ac_cv_c_inline" >&6; }
21110
cristy3ed852e2009-09-05 21:47:34 +000021111case $ac_cv_c_inline in
21112 inline | yes) ;;
21113 *)
21114 case $ac_cv_c_inline in
21115 no) ac_val=;;
21116 *) ac_val=$ac_cv_c_inline;;
21117 esac
21118 cat >>confdefs.h <<_ACEOF
21119#ifndef __cplusplus
21120#define inline $ac_val
21121#endif
21122_ACEOF
21123 ;;
21124esac
21125
21126
21127# If the C compiler supports the keyword restrict, do nothing. Otherwise
21128# define restrict to __restrict__ or __restrict if it accepts one of those,
21129# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021131$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021132if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021133 $as_echo_n "(cached) " >&6
21134else
21135 ac_cv_c_restrict=no
21136 # The order here caters to the fact that C++ does not require restrict.
21137 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021139/* end confdefs.h. */
21140typedef int * int_ptr;
21141 int foo (int_ptr $ac_kw ip) {
21142 return ip[0];
21143 }
21144int
21145main ()
21146{
21147int s[1];
21148 int * $ac_kw t = s;
21149 t[0] = 0;
21150 return foo(t)
21151 ;
21152 return 0;
21153}
21154_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021155if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021156 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021157fi
cristy3ed852e2009-09-05 21:47:34 +000021158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21159 test "$ac_cv_c_restrict" != no && break
21160 done
21161
21162fi
cristy8b350f62009-11-15 23:12:43 +000021163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021164$as_echo "$ac_cv_c_restrict" >&6; }
21165
cristy3ed852e2009-09-05 21:47:34 +000021166 case $ac_cv_c_restrict in
21167 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021168 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021169 ;;
21170 *) cat >>confdefs.h <<_ACEOF
21171#define restrict $ac_cv_c_restrict
21172_ACEOF
21173 ;;
21174 esac
21175
21176
21177# If words are stored with the most significant byte first (like
21178# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021180$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021181if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021182 $as_echo_n "(cached) " >&6
21183else
21184 ac_cv_c_bigendian=unknown
21185 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021187/* end confdefs.h. */
21188#ifndef __APPLE_CC__
21189 not a universal capable compiler
21190 #endif
21191 typedef int dummy;
21192
21193_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021194if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021195
21196 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021197 # there are at least two -arch flags with different values.
21198 ac_arch=
21199 ac_prev=
21200 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21201 if test -n "$ac_prev"; then
21202 case $ac_word in
21203 i?86 | x86_64 | ppc | ppc64)
21204 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21205 ac_arch=$ac_word
21206 else
21207 ac_cv_c_bigendian=universal
21208 break
21209 fi
21210 ;;
21211 esac
21212 ac_prev=
21213 elif test "x$ac_word" = "x-arch"; then
21214 ac_prev=arch
21215 fi
21216 done
cristy3ed852e2009-09-05 21:47:34 +000021217fi
cristy3ed852e2009-09-05 21:47:34 +000021218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21219 if test $ac_cv_c_bigendian = unknown; then
21220 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000021221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021222/* end confdefs.h. */
21223#include <sys/types.h>
21224 #include <sys/param.h>
21225
21226int
21227main ()
21228{
21229#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21230 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21231 && LITTLE_ENDIAN)
21232 bogus endian macros
21233 #endif
21234
21235 ;
21236 return 0;
21237}
21238_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021239if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021240 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021242/* end confdefs.h. */
21243#include <sys/types.h>
21244 #include <sys/param.h>
21245
21246int
21247main ()
21248{
21249#if BYTE_ORDER != BIG_ENDIAN
21250 not big endian
21251 #endif
21252
21253 ;
21254 return 0;
21255}
21256_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021257if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021258 ac_cv_c_bigendian=yes
21259else
cristy8b350f62009-11-15 23:12:43 +000021260 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021261fi
cristy3ed852e2009-09-05 21:47:34 +000021262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021263fi
cristy3ed852e2009-09-05 21:47:34 +000021264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21265 fi
21266 if test $ac_cv_c_bigendian = unknown; then
21267 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000021268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021269/* end confdefs.h. */
21270#include <limits.h>
21271
21272int
21273main ()
21274{
21275#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21276 bogus endian macros
21277 #endif
21278
21279 ;
21280 return 0;
21281}
21282_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021283if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021284 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021286/* end confdefs.h. */
21287#include <limits.h>
21288
21289int
21290main ()
21291{
21292#ifndef _BIG_ENDIAN
21293 not big endian
21294 #endif
21295
21296 ;
21297 return 0;
21298}
21299_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021300if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021301 ac_cv_c_bigendian=yes
21302else
cristy8b350f62009-11-15 23:12:43 +000021303 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021304fi
cristy3ed852e2009-09-05 21:47:34 +000021305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021306fi
cristy3ed852e2009-09-05 21:47:34 +000021307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21308 fi
21309 if test $ac_cv_c_bigendian = unknown; then
21310 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000021311 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021312 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000021313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021314/* end confdefs.h. */
21315short int ascii_mm[] =
21316 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21317 short int ascii_ii[] =
21318 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21319 int use_ascii (int i) {
21320 return ascii_mm[i] + ascii_ii[i];
21321 }
21322 short int ebcdic_ii[] =
21323 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21324 short int ebcdic_mm[] =
21325 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21326 int use_ebcdic (int i) {
21327 return ebcdic_mm[i] + ebcdic_ii[i];
21328 }
21329 extern int foo;
21330
21331int
21332main ()
21333{
21334return use_ascii (foo) == use_ebcdic (foo);
21335 ;
21336 return 0;
21337}
21338_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021339if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021340 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21341 ac_cv_c_bigendian=yes
21342 fi
21343 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21344 if test "$ac_cv_c_bigendian" = unknown; then
21345 ac_cv_c_bigendian=no
21346 else
21347 # finding both strings is unlikely to happen, but who knows?
21348 ac_cv_c_bigendian=unknown
21349 fi
21350 fi
cristy3ed852e2009-09-05 21:47:34 +000021351fi
cristy3ed852e2009-09-05 21:47:34 +000021352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21353else
cristy8b350f62009-11-15 23:12:43 +000021354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021355/* end confdefs.h. */
21356$ac_includes_default
21357int
21358main ()
21359{
21360
21361 /* Are we little or big endian? From Harbison&Steele. */
21362 union
21363 {
21364 long int l;
21365 char c[sizeof (long int)];
21366 } u;
21367 u.l = 1;
21368 return u.c[sizeof (long int) - 1] == 1;
21369
21370 ;
21371 return 0;
21372}
21373_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021374if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021375 ac_cv_c_bigendian=no
21376else
cristy8b350f62009-11-15 23:12:43 +000021377 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000021378fi
cristy8b350f62009-11-15 23:12:43 +000021379rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21380 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021381fi
21382
cristy3ed852e2009-09-05 21:47:34 +000021383 fi
21384fi
cristy8b350f62009-11-15 23:12:43 +000021385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021386$as_echo "$ac_cv_c_bigendian" >&6; }
21387 case $ac_cv_c_bigendian in #(
21388 yes)
cristy8b350f62009-11-15 23:12:43 +000021389 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021390;; #(
21391 no)
21392 ;; #(
21393 universal)
21394
cristy8b350f62009-11-15 23:12:43 +000021395$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021396
21397 ;; #(
21398 *)
cristyfd9dcd42010-08-08 18:07:02 +000021399 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000021400 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021401 esac
21402
21403
21404# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021405ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21406if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021407
cristy3ed852e2009-09-05 21:47:34 +000021408else
21409
21410cat >>confdefs.h <<_ACEOF
21411#define mode_t int
21412_ACEOF
21413
21414fi
21415
21416
21417# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021418ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21419if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021420
cristy3ed852e2009-09-05 21:47:34 +000021421else
21422
21423cat >>confdefs.h <<_ACEOF
21424#define off_t long int
21425_ACEOF
21426
21427fi
21428
21429
21430# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021431ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21432if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021433
cristy3ed852e2009-09-05 21:47:34 +000021434else
21435
21436cat >>confdefs.h <<_ACEOF
21437#define pid_t int
21438_ACEOF
21439
21440fi
21441
21442
21443# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021444ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21445if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021446
cristy3ed852e2009-09-05 21:47:34 +000021447else
21448
21449cat >>confdefs.h <<_ACEOF
21450#define size_t unsigned int
21451_ACEOF
21452
21453fi
21454
21455
21456# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021457ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21458if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021459
cristy3ed852e2009-09-05 21:47:34 +000021460else
21461
21462cat >>confdefs.h <<_ACEOF
21463#define ssize_t int
21464_ACEOF
21465
21466fi
21467
21468
21469# If the C compiler supports a working long double type with more range
21470# or precision than the double type, define HAVE_LONG_DOUBLE.
21471
cristy8b350f62009-11-15 23:12:43 +000021472 { $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 +000021473$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021474if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021475 $as_echo_n "(cached) " >&6
21476else
cristy8b350f62009-11-15 23:12:43 +000021477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021478/* end confdefs.h. */
21479#include <float.h>
21480 long double const a[] =
21481 {
21482 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21483 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21484 };
21485 long double
21486 f (long double x)
21487 {
21488 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21489 + (x ? f (x) : 'c'));
21490 }
21491
21492int
21493main ()
21494{
21495static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21496 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21497 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21498 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21499 && (int) LDBL_EPSILON == 0
21500 )];
21501test_array [0] = 0
21502
21503 ;
21504 return 0;
21505}
21506_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021507if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021508 ac_cv_type_long_double_wider=yes
21509else
cristy8b350f62009-11-15 23:12:43 +000021510 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000021511fi
cristy3ed852e2009-09-05 21:47:34 +000021512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21513fi
cristy8b350f62009-11-15 23:12:43 +000021514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000021515$as_echo "$ac_cv_type_long_double_wider" >&6; }
21516 if test $ac_cv_type_long_double_wider = yes; then
21517
cristy8b350f62009-11-15 23:12:43 +000021518$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021519
21520 fi
21521
21522
21523# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21524# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000021525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021526$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021527if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021528 $as_echo_n "(cached) " >&6
21529else
cristy8b350f62009-11-15 23:12:43 +000021530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021531/* end confdefs.h. */
21532$ac_includes_default
21533int
21534main ()
21535{
21536static int test_array [1 - 2 * !(((char) -1) < 0)];
21537test_array [0] = 0
21538
21539 ;
21540 return 0;
21541}
21542_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021543if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021544 ac_cv_c_char_unsigned=no
21545else
cristy8b350f62009-11-15 23:12:43 +000021546 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000021547fi
cristy3ed852e2009-09-05 21:47:34 +000021548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21549fi
cristy8b350f62009-11-15 23:12:43 +000021550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021551$as_echo "$ac_cv_c_char_unsigned" >&6; }
21552if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000021553 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021554
21555fi
21556
21557
21558# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21559# The cast to long int works around a bug in the HP C Compiler
21560# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21561# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21562# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021564$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021565if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021566 $as_echo_n "(cached) " >&6
21567else
cristy8b350f62009-11-15 23:12:43 +000021568 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 +000021569
cristy3ed852e2009-09-05 21:47:34 +000021570else
cristy8b350f62009-11-15 23:12:43 +000021571 if test "$ac_cv_type_signed_short" = yes; then
21572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021574as_fn_error 77 "cannot compute sizeof (signed short)
21575See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021576 else
21577 ac_cv_sizeof_signed_short=0
21578 fi
21579fi
cristy8b350f62009-11-15 23:12:43 +000021580
cristy3ed852e2009-09-05 21:47:34 +000021581fi
cristy8b350f62009-11-15 23:12:43 +000021582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021583$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21584
21585
21586
21587cat >>confdefs.h <<_ACEOF
21588#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21589_ACEOF
21590
21591
21592
21593# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21594# The cast to long int works around a bug in the HP C Compiler
21595# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21596# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21597# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021599$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021600if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021601 $as_echo_n "(cached) " >&6
21602else
cristy8b350f62009-11-15 23:12:43 +000021603 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 +000021604
cristy3ed852e2009-09-05 21:47:34 +000021605else
cristy8b350f62009-11-15 23:12:43 +000021606 if test "$ac_cv_type_unsigned_short" = yes; then
21607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021609as_fn_error 77 "cannot compute sizeof (unsigned short)
21610See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021611 else
21612 ac_cv_sizeof_unsigned_short=0
21613 fi
21614fi
cristy8b350f62009-11-15 23:12:43 +000021615
cristy3ed852e2009-09-05 21:47:34 +000021616fi
cristy8b350f62009-11-15 23:12:43 +000021617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021618$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21619
21620
21621
21622cat >>confdefs.h <<_ACEOF
21623#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21624_ACEOF
21625
21626
21627
21628# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21629# The cast to long int works around a bug in the HP C Compiler
21630# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21631# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21632# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021634$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021635if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021636 $as_echo_n "(cached) " >&6
21637else
cristy8b350f62009-11-15 23:12:43 +000021638 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 +000021639
cristy3ed852e2009-09-05 21:47:34 +000021640else
cristy8b350f62009-11-15 23:12:43 +000021641 if test "$ac_cv_type_signed_int" = yes; then
21642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021644as_fn_error 77 "cannot compute sizeof (signed int)
21645See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021646 else
21647 ac_cv_sizeof_signed_int=0
21648 fi
21649fi
cristy8b350f62009-11-15 23:12:43 +000021650
cristy3ed852e2009-09-05 21:47:34 +000021651fi
cristy8b350f62009-11-15 23:12:43 +000021652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021653$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21654
21655
21656
21657cat >>confdefs.h <<_ACEOF
21658#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21659_ACEOF
21660
21661
21662
21663# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21664# The cast to long int works around a bug in the HP C Compiler
21665# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21666# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21667# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021669$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021670if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021671 $as_echo_n "(cached) " >&6
21672else
cristy8b350f62009-11-15 23:12:43 +000021673 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 +000021674
cristy3ed852e2009-09-05 21:47:34 +000021675else
cristy8b350f62009-11-15 23:12:43 +000021676 if test "$ac_cv_type_unsigned_int" = yes; then
21677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021679as_fn_error 77 "cannot compute sizeof (unsigned int)
21680See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021681 else
21682 ac_cv_sizeof_unsigned_int=0
21683 fi
21684fi
cristy8b350f62009-11-15 23:12:43 +000021685
cristy3ed852e2009-09-05 21:47:34 +000021686fi
cristy8b350f62009-11-15 23:12:43 +000021687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021688$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21689
21690
21691
21692cat >>confdefs.h <<_ACEOF
21693#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21694_ACEOF
21695
21696
21697
21698# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21699# The cast to long int works around a bug in the HP C Compiler
21700# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21701# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21702# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021704$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021705if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021706 $as_echo_n "(cached) " >&6
21707else
cristy8b350f62009-11-15 23:12:43 +000021708 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 +000021709
cristy3ed852e2009-09-05 21:47:34 +000021710else
cristy8b350f62009-11-15 23:12:43 +000021711 if test "$ac_cv_type_signed_long" = yes; then
21712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021714as_fn_error 77 "cannot compute sizeof (signed long)
21715See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021716 else
21717 ac_cv_sizeof_signed_long=0
21718 fi
21719fi
cristy8b350f62009-11-15 23:12:43 +000021720
cristy3ed852e2009-09-05 21:47:34 +000021721fi
cristy8b350f62009-11-15 23:12:43 +000021722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021723$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21724
21725
21726
21727cat >>confdefs.h <<_ACEOF
21728#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21729_ACEOF
21730
21731
21732
21733# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21734# The cast to long int works around a bug in the HP C Compiler
21735# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21736# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21737# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021739$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021740if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021741 $as_echo_n "(cached) " >&6
21742else
cristy8b350f62009-11-15 23:12:43 +000021743 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 +000021744
cristy3ed852e2009-09-05 21:47:34 +000021745else
cristy8b350f62009-11-15 23:12:43 +000021746 if test "$ac_cv_type_unsigned_long" = yes; then
21747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021749as_fn_error 77 "cannot compute sizeof (unsigned long)
21750See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021751 else
21752 ac_cv_sizeof_unsigned_long=0
21753 fi
21754fi
cristy8b350f62009-11-15 23:12:43 +000021755
cristy3ed852e2009-09-05 21:47:34 +000021756fi
cristy8b350f62009-11-15 23:12:43 +000021757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021758$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21759
21760
21761
21762cat >>confdefs.h <<_ACEOF
21763#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21764_ACEOF
21765
21766
21767
21768# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21769# 'signed long long' is not supported then the value defined is zero.
21770# The cast to long int works around a bug in the HP C Compiler
21771# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21772# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21773# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021775$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021776if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021777 $as_echo_n "(cached) " >&6
21778else
cristy8b350f62009-11-15 23:12:43 +000021779 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 +000021780
cristy3ed852e2009-09-05 21:47:34 +000021781else
cristy8b350f62009-11-15 23:12:43 +000021782 if test "$ac_cv_type_signed_long_long" = yes; then
21783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021784$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021785as_fn_error 77 "cannot compute sizeof (signed long long)
21786See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021787 else
21788 ac_cv_sizeof_signed_long_long=0
21789 fi
21790fi
cristy8b350f62009-11-15 23:12:43 +000021791
cristy3ed852e2009-09-05 21:47:34 +000021792fi
cristy8b350f62009-11-15 23:12:43 +000021793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021794$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21795
21796
21797
21798cat >>confdefs.h <<_ACEOF
21799#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21800_ACEOF
21801
21802
21803
21804# Obtain size of a 'unsigned long long' and define as
21805# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21806# supported then the value defined is zero.
21807# The cast to long int works around a bug in the HP C Compiler
21808# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21809# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21810# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021812$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021813if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021814 $as_echo_n "(cached) " >&6
21815else
cristy8b350f62009-11-15 23:12:43 +000021816 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 +000021817
cristy3ed852e2009-09-05 21:47:34 +000021818else
cristy8b350f62009-11-15 23:12:43 +000021819 if test "$ac_cv_type_unsigned_long_long" = yes; then
21820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021822as_fn_error 77 "cannot compute sizeof (unsigned long long)
21823See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021824 else
21825 ac_cv_sizeof_unsigned_long_long=0
21826 fi
21827fi
cristy8b350f62009-11-15 23:12:43 +000021828
cristy3ed852e2009-09-05 21:47:34 +000021829fi
cristy8b350f62009-11-15 23:12:43 +000021830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021831$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21832
21833
21834
21835cat >>confdefs.h <<_ACEOF
21836#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21837_ACEOF
21838
21839
21840
21841# Obtain size of off_t and define as SIZEOF_OFF_T
21842# The cast to long int works around a bug in the HP C Compiler
21843# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21844# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21845# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021847$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021848if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021849 $as_echo_n "(cached) " >&6
21850else
cristy8b350f62009-11-15 23:12:43 +000021851 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 +000021852
cristy3ed852e2009-09-05 21:47:34 +000021853else
cristy8b350f62009-11-15 23:12:43 +000021854 if test "$ac_cv_type_off_t" = yes; then
21855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021857as_fn_error 77 "cannot compute sizeof (off_t)
21858See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021859 else
21860 ac_cv_sizeof_off_t=0
21861 fi
21862fi
cristy8b350f62009-11-15 23:12:43 +000021863
cristy3ed852e2009-09-05 21:47:34 +000021864fi
cristy8b350f62009-11-15 23:12:43 +000021865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021866$as_echo "$ac_cv_sizeof_off_t" >&6; }
21867
21868
21869
21870cat >>confdefs.h <<_ACEOF
21871#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21872_ACEOF
21873
21874
21875
21876# Obtain size of size_t and define as SIZEOF_SIZE_T
21877# The cast to long int works around a bug in the HP C Compiler
21878# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21879# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21880# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021882$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021883if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021884 $as_echo_n "(cached) " >&6
21885else
cristy8b350f62009-11-15 23:12:43 +000021886 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 +000021887
cristy3ed852e2009-09-05 21:47:34 +000021888else
cristy8b350f62009-11-15 23:12:43 +000021889 if test "$ac_cv_type_size_t" = yes; then
21890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021891$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021892as_fn_error 77 "cannot compute sizeof (size_t)
21893See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021894 else
21895 ac_cv_sizeof_size_t=0
21896 fi
21897fi
cristy8b350f62009-11-15 23:12:43 +000021898
cristy3ed852e2009-09-05 21:47:34 +000021899fi
cristy8b350f62009-11-15 23:12:43 +000021900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021901$as_echo "$ac_cv_sizeof_size_t" >&6; }
21902
21903
21904
21905cat >>confdefs.h <<_ACEOF
21906#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21907_ACEOF
21908
21909
21910
cristy330e9352010-06-01 18:42:49 +000021911# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
21912# The cast to long int works around a bug in the HP C Compiler
21913# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21914# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21915# This bug is HP SR number 8606223364.
21916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
21917$as_echo_n "checking size of ssize_t... " >&6; }
21918if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
21919 $as_echo_n "(cached) " >&6
21920else
21921 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
21922
21923else
21924 if test "$ac_cv_type_ssize_t" = yes; then
21925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21926$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021927as_fn_error 77 "cannot compute sizeof (ssize_t)
21928See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000021929 else
21930 ac_cv_sizeof_ssize_t=0
21931 fi
21932fi
21933
21934fi
21935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
21936$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
21937
21938
21939
21940cat >>confdefs.h <<_ACEOF
21941#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
21942_ACEOF
21943
21944
21945
cristy3ed852e2009-09-05 21:47:34 +000021946# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
21947# The cast to long int works around a bug in the HP C Compiler
21948# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21949# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21950# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000021952$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021953if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021954 $as_echo_n "(cached) " >&6
21955else
cristy8b350f62009-11-15 23:12:43 +000021956 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 +000021957
cristy3ed852e2009-09-05 21:47:34 +000021958else
cristy8b350f62009-11-15 23:12:43 +000021959 if test "$ac_cv_type_unsigned_intp" = yes; then
21960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021961$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021962as_fn_error 77 "cannot compute sizeof (unsigned int*)
21963See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021964 else
21965 ac_cv_sizeof_unsigned_intp=0
21966 fi
21967fi
cristy8b350f62009-11-15 23:12:43 +000021968
cristy3ed852e2009-09-05 21:47:34 +000021969fi
cristy8b350f62009-11-15 23:12:43 +000021970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021971$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
21972
21973
21974
21975cat >>confdefs.h <<_ACEOF
21976#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
21977_ACEOF
21978
21979
21980
21981#
21982# Compute sized types for current CPU and compiler options.
21983#
21984
cristy8b350f62009-11-15 23:12:43 +000021985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021986$as_echo_n "checking for signed 8-bit type... " >&6; }
21987INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000021988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021989$as_echo "$INT8_T" >&6; }
21990
21991
cristy8b350f62009-11-15 23:12:43 +000021992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021993$as_echo_n "checking for unsigned 8-bit type... " >&6; }
21994UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000021995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021996$as_echo "$UINT8_T" >&6; }
21997
21998
cristy8b350f62009-11-15 23:12:43 +000021999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022000$as_echo_n "checking for signed 16-bit type... " >&6; }
22001INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022003$as_echo "$INT16_T" >&6; }
22004
22005
cristy8b350f62009-11-15 23:12:43 +000022006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022007$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22008UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022010$as_echo "$UINT16_T" >&6; }
22011
22012
cristy8b350f62009-11-15 23:12:43 +000022013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022014$as_echo_n "checking for signed 32-bit type... " >&6; }
22015INT32_T='none'
22016if test $ac_cv_sizeof_signed_int -eq 4; then
22017 INT32_T='signed int'
22018elif test $ac_cv_sizeof_signed_long -eq 4; then
22019 INT32_T='signed long'
22020fi
cristy8b350f62009-11-15 23:12:43 +000022021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022022$as_echo "$INT32_T" >&6; }
22023
22024
cristy8b350f62009-11-15 23:12:43 +000022025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022026$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22027UINT32_T='none'
22028if test $ac_cv_sizeof_unsigned_int -eq 4; then
22029 UINT32_T='unsigned int'
22030elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22031 UINT32_T='unsigned long'
22032fi
cristy8b350f62009-11-15 23:12:43 +000022033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022034$as_echo "$UINT32_T" >&6; }
22035
22036
cristy8b350f62009-11-15 23:12:43 +000022037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022038$as_echo_n "checking for signed 64-bit type... " >&6; }
22039INT64_T='none'
22040if test $ac_cv_sizeof_signed_long -eq 8; then
22041 INT64_T='signed long'
22042elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22043 INT64_T='signed long long'
22044fi
cristy8b350f62009-11-15 23:12:43 +000022045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022046$as_echo "$INT64_T" >&6; }
22047
22048
cristy8b350f62009-11-15 23:12:43 +000022049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022050$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22051UINT64_T='none'
22052if test $ac_cv_sizeof_unsigned_long -eq 8; then
22053 UINT64_T='unsigned long'
22054elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22055 UINT64_T='unsigned long long'
22056fi
cristy8b350f62009-11-15 23:12:43 +000022057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022058$as_echo "$UINT64_T" >&6; }
22059
22060
cristy8b350f62009-11-15 23:12:43 +000022061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022062$as_echo_n "checking for unsigned maximum type... " >&6; }
22063UINTMAX_T='none'
22064if test "$UINT64_T" != 'none'; then
22065 UINTMAX_T=$UINT64_T
22066elif test "$UINT32_T" != 'none'; then
22067 UINTMAX_T=$UINT32_T
22068fi
cristy8b350f62009-11-15 23:12:43 +000022069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022070$as_echo "$UINTMAX_T" >&6; }
22071
22072
cristy8b350f62009-11-15 23:12:43 +000022073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022074$as_echo_n "checking for pointer difference type... " >&6; }
22075UINTPTR_T='none'
22076if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22077 UINTPTR_T='unsigned long'
22078elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22079 UINTPTR_T='unsigned long long'
22080fi
cristy8b350f62009-11-15 23:12:43 +000022081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022082$as_echo "$UINTPTR_T" >&6; }
22083
22084
cristy8b350f62009-11-15 23:12:43 +000022085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022086$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022088/* end confdefs.h. */
22089
22090int
22091main ()
22092{
22093{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22094 ;
22095 return 0;
22096}
22097_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022098if ac_fn_c_try_compile "$LINENO"; then :
22099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022100$as_echo "yes" >&6; }
22101else
cristy8b350f62009-11-15 23:12:43 +000022102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022103$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022105$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022107/* end confdefs.h. */
22108
22109int
22110main ()
22111{
22112{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22113 ;
22114 return 0;
22115}
22116_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022117if ac_fn_c_try_compile "$LINENO"; then :
22118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022119$as_echo "yes" >&6; }
22120
cristy8b350f62009-11-15 23:12:43 +000022121$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022122
22123else
cristy8b350f62009-11-15 23:12:43 +000022124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022125$as_echo "no" >&6; }
22126
cristy8b350f62009-11-15 23:12:43 +000022127$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022128
22129fi
cristy3ed852e2009-09-05 21:47:34 +000022130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22131fi
cristy3ed852e2009-09-05 21:47:34 +000022132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22133
22134########
22135#
22136# Check for functions
22137#
22138########
cristy3ed852e2009-09-05 21:47:34 +000022139for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000022140do :
22141 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22142ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyfd9dcd42010-08-08 18:07:02 +000022143if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022144 cat >>confdefs.h <<_ACEOF
22145#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22146_ACEOF
22147
22148fi
22149
22150done
22151
cristy3ed852e2009-09-05 21:47:34 +000022152for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022153do :
22154 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22155if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022156 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022157#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022158_ACEOF
22159
22160fi
22161done
22162
cristy8b350f62009-11-15 23:12:43 +000022163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000022164$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022165if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022166 $as_echo_n "(cached) " >&6
22167else
cristy8b350f62009-11-15 23:12:43 +000022168 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022169 magick_cv_func_mmap_fileio=no
22170else
cristy8b350f62009-11-15 23:12:43 +000022171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022172/* end confdefs.h. */
22173$ac_includes_default
22174/* malloc might have been renamed as rpl_malloc. */
22175#undef malloc
22176
22177/*
22178 This test is derived from GNU Autoconf's similar macro.
22179 The purpose of this test is to verify that files may be memory
22180 mapped, and that memory mapping and file I/O are coherent.
22181
22182 The test creates a test file, memory maps the file, updates
22183 the file using the memory map, and then reads the file using
22184 file I/O to verify that the file contains the updates.
22185*/
22186
22187#include <fcntl.h>
22188#include <sys/mman.h>
22189
22190#if !STDC_HEADERS && !HAVE_STDLIB_H
22191char *malloc ();
22192#endif
22193
22194/* This mess was copied from the GNU getpagesize.h. */
22195#if !HAVE_GETPAGESIZE
22196/* Assume that all systems that can run configure have sys/param.h. */
22197# if !HAVE_SYS_PARAM_H
22198# define HAVE_SYS_PARAM_H 1
22199# endif
22200
22201# ifdef _SC_PAGESIZE
22202# define getpagesize() sysconf(_SC_PAGESIZE)
22203# else /* no _SC_PAGESIZE */
22204# if HAVE_SYS_PARAM_H
22205# include <sys/param.h>
22206# ifdef EXEC_PAGESIZE
22207# define getpagesize() EXEC_PAGESIZE
22208# else /* no EXEC_PAGESIZE */
22209# ifdef NBPG
22210# define getpagesize() NBPG * CLSIZE
22211# ifndef CLSIZE
22212# define CLSIZE 1
22213# endif /* no CLSIZE */
22214# else /* no NBPG */
22215# ifdef NBPC
22216# define getpagesize() NBPC
22217# else /* no NBPC */
22218# ifdef PAGESIZE
22219# define getpagesize() PAGESIZE
22220# endif /* PAGESIZE */
22221# endif /* no NBPC */
22222# endif /* no NBPG */
22223# endif /* no EXEC_PAGESIZE */
22224# else /* no HAVE_SYS_PARAM_H */
22225# define getpagesize() 8192 /* punt totally */
22226# endif /* no HAVE_SYS_PARAM_H */
22227# endif /* no _SC_PAGESIZE */
22228
22229#endif /* no HAVE_GETPAGESIZE */
22230
22231int
22232main ()
22233{
22234 char *data, *data2, *data3;
22235 int i, pagesize;
22236 int fd;
22237
22238 pagesize = getpagesize ();
22239
22240 /* First, make a file with some known garbage in it. */
22241 data = (char *) malloc (pagesize);
22242 if (!data)
22243 exit (1);
22244 for (i = 0; i < pagesize; ++i)
22245 *(data + i) = rand ();
22246 umask (0);
22247 fd = creat ("conftest.mmap", 0600);
22248 if (fd < 0)
22249 exit (1);
22250 if (write (fd, data, pagesize) != pagesize)
22251 exit (1);
22252 close (fd);
22253
22254 /* Mmap the file as read/write/shared and verify that we see the
22255 same garbage. */
22256 fd = open ("conftest.mmap", O_RDWR);
22257 if (fd < 0)
22258 exit (1);
22259 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22260 if (data2 == 0)
22261 exit (1);
22262 for (i = 0; i < pagesize; ++i)
22263 if (*(data + i) != *(data2 + i))
22264 exit (1);
22265
22266 /* Finally, make sure that changes to the mapped area
22267 percolate back to the file as seen by read(). */
22268 for (i = 0; i < pagesize; ++i)
22269 *(data2 + i) = *(data2 + i) + 1;
22270 data3 = (char *) malloc (pagesize);
22271 if (!data3)
22272 exit (1);
22273 if (read (fd, data3, pagesize) != pagesize)
22274 exit (1);
22275 for (i = 0; i < pagesize; ++i)
22276 if (*(data2 + i) != *(data3 + i))
22277 exit (1);
22278 close (fd);
22279 exit (0);
22280}
22281_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022282if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022283 magick_cv_func_mmap_fileio=yes
22284else
cristy8b350f62009-11-15 23:12:43 +000022285 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000022286fi
cristy8b350f62009-11-15 23:12:43 +000022287rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22288 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022289fi
22290
cristy3ed852e2009-09-05 21:47:34 +000022291fi
cristy8b350f62009-11-15 23:12:43 +000022292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000022293$as_echo "$magick_cv_func_mmap_fileio" >&6; }
22294if test $magick_cv_func_mmap_fileio = yes; then
22295
cristy8b350f62009-11-15 23:12:43 +000022296$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022297
22298fi
22299rm -f conftest.mmap
22300
cristy8b350f62009-11-15 23:12:43 +000022301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022302$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022303if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022304 $as_echo_n "(cached) " >&6
22305else
cristy8b350f62009-11-15 23:12:43 +000022306 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022307 ac_cv_func_closedir_void=yes
22308else
cristy8b350f62009-11-15 23:12:43 +000022309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022310/* end confdefs.h. */
22311$ac_includes_default
22312#include <$ac_header_dirent>
22313#ifndef __cplusplus
22314int closedir ();
22315#endif
22316
22317int
22318main ()
22319{
22320return closedir (opendir (".")) != 0;
22321 ;
22322 return 0;
22323}
22324_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022325if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022326 ac_cv_func_closedir_void=no
22327else
cristy8b350f62009-11-15 23:12:43 +000022328 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000022329fi
cristy8b350f62009-11-15 23:12:43 +000022330rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22331 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022332fi
22333
cristy3ed852e2009-09-05 21:47:34 +000022334fi
cristy8b350f62009-11-15 23:12:43 +000022335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022336$as_echo "$ac_cv_func_closedir_void" >&6; }
22337if test $ac_cv_func_closedir_void = yes; then
22338
cristy8b350f62009-11-15 23:12:43 +000022339$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022340
22341fi
22342
cristycd4c5312009-11-22 01:19:08 +000022343
22344
22345
22346 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000022347do :
22348 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000022349ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22350"
cristyfd9dcd42010-08-08 18:07:02 +000022351if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022352 cat >>confdefs.h <<_ACEOF
22353#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22354_ACEOF
22355
22356fi
22357
22358done
22359
cristycd4c5312009-11-22 01:19:08 +000022360
22361
22362
22363
22364
22365
22366
cristy3ed852e2009-09-05 21:47:34 +000022367for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022368do :
22369 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22370if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022371 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022372#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022373_ACEOF
22374
22375fi
22376done
22377
cristy8b350f62009-11-15 23:12:43 +000022378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000022379$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022380if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022381 $as_echo_n "(cached) " >&6
22382else
cristy8b350f62009-11-15 23:12:43 +000022383 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022384 ac_cv_func_mmap_fixed_mapped=no
22385else
cristy8b350f62009-11-15 23:12:43 +000022386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022387/* end confdefs.h. */
22388$ac_includes_default
22389/* malloc might have been renamed as rpl_malloc. */
22390#undef malloc
22391
22392/* Thanks to Mike Haertel and Jim Avera for this test.
22393 Here is a matrix of mmap possibilities:
22394 mmap private not fixed
22395 mmap private fixed at somewhere currently unmapped
22396 mmap private fixed at somewhere already mapped
22397 mmap shared not fixed
22398 mmap shared fixed at somewhere currently unmapped
22399 mmap shared fixed at somewhere already mapped
22400 For private mappings, we should verify that changes cannot be read()
22401 back from the file, nor mmap's back from the file at a different
22402 address. (There have been systems where private was not correctly
22403 implemented like the infamous i386 svr4.0, and systems where the
22404 VM page cache was not coherent with the file system buffer cache
22405 like early versions of FreeBSD and possibly contemporary NetBSD.)
22406 For shared mappings, we should conversely verify that changes get
22407 propagated back to all the places they're supposed to be.
22408
22409 Grep wants private fixed already mapped.
22410 The main things grep needs to know about mmap are:
22411 * does it exist and is it safe to write into the mmap'd area
22412 * how to use it (BSD variants) */
22413
22414#include <fcntl.h>
22415#include <sys/mman.h>
22416
22417#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22418char *malloc ();
22419#endif
22420
22421/* This mess was copied from the GNU getpagesize.h. */
22422#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000022423# ifdef _SC_PAGESIZE
22424# define getpagesize() sysconf(_SC_PAGESIZE)
22425# else /* no _SC_PAGESIZE */
22426# ifdef HAVE_SYS_PARAM_H
22427# include <sys/param.h>
22428# ifdef EXEC_PAGESIZE
22429# define getpagesize() EXEC_PAGESIZE
22430# else /* no EXEC_PAGESIZE */
22431# ifdef NBPG
22432# define getpagesize() NBPG * CLSIZE
22433# ifndef CLSIZE
22434# define CLSIZE 1
22435# endif /* no CLSIZE */
22436# else /* no NBPG */
22437# ifdef NBPC
22438# define getpagesize() NBPC
22439# else /* no NBPC */
22440# ifdef PAGESIZE
22441# define getpagesize() PAGESIZE
22442# endif /* PAGESIZE */
22443# endif /* no NBPC */
22444# endif /* no NBPG */
22445# endif /* no EXEC_PAGESIZE */
22446# else /* no HAVE_SYS_PARAM_H */
22447# define getpagesize() 8192 /* punt totally */
22448# endif /* no HAVE_SYS_PARAM_H */
22449# endif /* no _SC_PAGESIZE */
22450
22451#endif /* no HAVE_GETPAGESIZE */
22452
22453int
22454main ()
22455{
22456 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000022457 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000022458 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000022459 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000022460
22461 pagesize = getpagesize ();
22462
22463 /* First, make a file with some known garbage in it. */
22464 data = (char *) malloc (pagesize);
22465 if (!data)
22466 return 1;
22467 for (i = 0; i < pagesize; ++i)
22468 *(data + i) = rand ();
22469 umask (0);
22470 fd = creat ("conftest.mmap", 0600);
22471 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022472 return 2;
cristy3ed852e2009-09-05 21:47:34 +000022473 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022474 return 3;
cristy3ed852e2009-09-05 21:47:34 +000022475 close (fd);
22476
cristycd4c5312009-11-22 01:19:08 +000022477 /* Next, check that the tail of a page is zero-filled. File must have
22478 non-zero length, otherwise we risk SIGBUS for entire page. */
22479 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22480 if (fd2 < 0)
22481 return 4;
cristyc54f5d42009-11-27 21:36:31 +000022482 cdata2 = "";
22483 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000022484 return 5;
cristyc54f5d42009-11-27 21:36:31 +000022485 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000022486 if (data2 == MAP_FAILED)
22487 return 6;
22488 for (i = 0; i < pagesize; ++i)
22489 if (*(data2 + i))
22490 return 7;
22491 close (fd2);
22492 if (munmap (data2, pagesize))
22493 return 8;
22494
cristy3ed852e2009-09-05 21:47:34 +000022495 /* Next, try to mmap the file at a fixed address which already has
22496 something else allocated at it. If we can, also make sure that
22497 we see the same garbage. */
22498 fd = open ("conftest.mmap", O_RDWR);
22499 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022500 return 9;
cristy3ed852e2009-09-05 21:47:34 +000022501 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22502 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000022503 return 10;
cristy3ed852e2009-09-05 21:47:34 +000022504 for (i = 0; i < pagesize; ++i)
22505 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000022506 return 11;
cristy3ed852e2009-09-05 21:47:34 +000022507
22508 /* Finally, make sure that changes to the mapped area do not
22509 percolate back to the file as seen by read(). (This is a bug on
22510 some variants of i386 svr4.0.) */
22511 for (i = 0; i < pagesize; ++i)
22512 *(data2 + i) = *(data2 + i) + 1;
22513 data3 = (char *) malloc (pagesize);
22514 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000022515 return 12;
cristy3ed852e2009-09-05 21:47:34 +000022516 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022517 return 13;
cristy3ed852e2009-09-05 21:47:34 +000022518 for (i = 0; i < pagesize; ++i)
22519 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000022520 return 14;
cristy3ed852e2009-09-05 21:47:34 +000022521 close (fd);
22522 return 0;
22523}
22524_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022525if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022526 ac_cv_func_mmap_fixed_mapped=yes
22527else
cristy8b350f62009-11-15 23:12:43 +000022528 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000022529fi
cristy8b350f62009-11-15 23:12:43 +000022530rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22531 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022532fi
22533
cristy3ed852e2009-09-05 21:47:34 +000022534fi
cristy8b350f62009-11-15 23:12:43 +000022535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000022536$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22537if test $ac_cv_func_mmap_fixed_mapped = yes; then
22538
cristy8b350f62009-11-15 23:12:43 +000022539$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022540
22541fi
cristycd4c5312009-11-22 01:19:08 +000022542rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000022543
cristy3ed852e2009-09-05 21:47:34 +000022544for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000022545do :
22546 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22547if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022548 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022549#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000022550_ACEOF
22551
22552fi
22553
22554done
22555
cristy3ed852e2009-09-05 21:47:34 +000022556for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000022557do :
22558 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22559ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000022560if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022561 cat >>confdefs.h <<_ACEOF
22562#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22563_ACEOF
22564
22565fi
22566done
22567
22568if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022570$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022571if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022572 $as_echo_n "(cached) " >&6
22573else
cristy8b350f62009-11-15 23:12:43 +000022574 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022575 ac_cv_func_fork_works=cross
22576else
cristy8b350f62009-11-15 23:12:43 +000022577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022578/* end confdefs.h. */
22579$ac_includes_default
22580int
22581main ()
22582{
22583
22584 /* By Ruediger Kuhlmann. */
22585 return fork () < 0;
22586
22587 ;
22588 return 0;
22589}
22590_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022591if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022592 ac_cv_func_fork_works=yes
22593else
cristy8b350f62009-11-15 23:12:43 +000022594 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022595fi
cristy8b350f62009-11-15 23:12:43 +000022596rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22597 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022598fi
22599
cristy3ed852e2009-09-05 21:47:34 +000022600fi
cristy8b350f62009-11-15 23:12:43 +000022601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022602$as_echo "$ac_cv_func_fork_works" >&6; }
22603
22604else
22605 ac_cv_func_fork_works=$ac_cv_func_fork
22606fi
22607if test "x$ac_cv_func_fork_works" = xcross; then
22608 case $host in
22609 *-*-amigaos* | *-*-msdosdjgpp*)
22610 # Override, as these systems have only a dummy fork() stub
22611 ac_cv_func_fork_works=no
22612 ;;
22613 *)
22614 ac_cv_func_fork_works=yes
22615 ;;
22616 esac
cristy8b350f62009-11-15 23:12:43 +000022617 { $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 +000022618$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22619fi
22620ac_cv_func_vfork_works=$ac_cv_func_vfork
22621if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022623$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022624if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022625 $as_echo_n "(cached) " >&6
22626else
cristy8b350f62009-11-15 23:12:43 +000022627 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022628 ac_cv_func_vfork_works=cross
22629else
cristy8b350f62009-11-15 23:12:43 +000022630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022631/* end confdefs.h. */
22632/* Thanks to Paul Eggert for this test. */
22633$ac_includes_default
22634#include <sys/wait.h>
22635#ifdef HAVE_VFORK_H
22636# include <vfork.h>
22637#endif
22638/* On some sparc systems, changes by the child to local and incoming
22639 argument registers are propagated back to the parent. The compiler
22640 is told about this with #include <vfork.h>, but some compilers
22641 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22642 static variable whose address is put into a register that is
22643 clobbered by the vfork. */
22644static void
22645#ifdef __cplusplus
22646sparc_address_test (int arg)
22647# else
22648sparc_address_test (arg) int arg;
22649#endif
22650{
22651 static pid_t child;
22652 if (!child) {
22653 child = vfork ();
22654 if (child < 0) {
22655 perror ("vfork");
22656 _exit(2);
22657 }
22658 if (!child) {
22659 arg = getpid();
22660 write(-1, "", 0);
22661 _exit (arg);
22662 }
22663 }
22664}
22665
22666int
22667main ()
22668{
22669 pid_t parent = getpid ();
22670 pid_t child;
22671
22672 sparc_address_test (0);
22673
22674 child = vfork ();
22675
22676 if (child == 0) {
22677 /* Here is another test for sparc vfork register problems. This
22678 test uses lots of local variables, at least as many local
22679 variables as main has allocated so far including compiler
22680 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22681 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22682 reuse the register of parent for one of the local variables,
22683 since it will think that parent can't possibly be used any more
22684 in this routine. Assigning to the local variable will thus
22685 munge parent in the parent process. */
22686 pid_t
22687 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22688 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22689 /* Convince the compiler that p..p7 are live; otherwise, it might
22690 use the same hardware register for all 8 local variables. */
22691 if (p != p1 || p != p2 || p != p3 || p != p4
22692 || p != p5 || p != p6 || p != p7)
22693 _exit(1);
22694
22695 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22696 from child file descriptors. If the child closes a descriptor
22697 before it execs or exits, this munges the parent's descriptor
22698 as well. Test for this by closing stdout in the child. */
22699 _exit(close(fileno(stdout)) != 0);
22700 } else {
22701 int status;
22702 struct stat st;
22703
22704 while (wait(&status) != child)
22705 ;
22706 return (
22707 /* Was there some problem with vforking? */
22708 child < 0
22709
22710 /* Did the child fail? (This shouldn't happen.) */
22711 || status
22712
22713 /* Did the vfork/compiler bug occur? */
22714 || parent != getpid()
22715
22716 /* Did the file descriptor bug occur? */
22717 || fstat(fileno(stdout), &st) != 0
22718 );
22719 }
22720}
22721_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022722if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022723 ac_cv_func_vfork_works=yes
22724else
cristy8b350f62009-11-15 23:12:43 +000022725 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022726fi
cristy8b350f62009-11-15 23:12:43 +000022727rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22728 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022729fi
22730
cristy3ed852e2009-09-05 21:47:34 +000022731fi
cristy8b350f62009-11-15 23:12:43 +000022732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022733$as_echo "$ac_cv_func_vfork_works" >&6; }
22734
22735fi;
22736if test "x$ac_cv_func_fork_works" = xcross; then
22737 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022738 { $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 +000022739$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22740fi
22741
22742if test "x$ac_cv_func_vfork_works" = xyes; then
22743
cristy8b350f62009-11-15 23:12:43 +000022744$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022745
22746else
22747
cristy8b350f62009-11-15 23:12:43 +000022748$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022749
22750fi
22751if test "x$ac_cv_func_fork_works" = xyes; then
22752
cristy8b350f62009-11-15 23:12:43 +000022753$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022754
22755fi
22756
cristy8b350f62009-11-15 23:12:43 +000022757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022758$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022759if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022760 $as_echo_n "(cached) " >&6
22761else
cristy8b350f62009-11-15 23:12:43 +000022762 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022763 ac_cv_func_memcmp_working=no
22764else
cristy8b350f62009-11-15 23:12:43 +000022765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022766/* end confdefs.h. */
22767$ac_includes_default
22768int
22769main ()
22770{
22771
22772 /* Some versions of memcmp are not 8-bit clean. */
22773 char c0 = '\100', c1 = '\200', c2 = '\201';
22774 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22775 return 1;
22776
22777 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22778 or more and with at least one buffer not starting on a 4-byte boundary.
22779 William Lewis provided this test program. */
22780 {
22781 char foo[21];
22782 char bar[21];
22783 int i;
22784 for (i = 0; i < 4; i++)
22785 {
22786 char *a = foo + i;
22787 char *b = bar + i;
22788 strcpy (a, "--------01111111");
22789 strcpy (b, "--------10000000");
22790 if (memcmp (a, b, 16) >= 0)
22791 return 1;
22792 }
22793 return 0;
22794 }
22795
22796 ;
22797 return 0;
22798}
22799_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022800if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022801 ac_cv_func_memcmp_working=yes
22802else
cristy8b350f62009-11-15 23:12:43 +000022803 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000022804fi
cristy8b350f62009-11-15 23:12:43 +000022805rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22806 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022807fi
22808
cristy3ed852e2009-09-05 21:47:34 +000022809fi
cristy8b350f62009-11-15 23:12:43 +000022810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000022811$as_echo "$ac_cv_func_memcmp_working" >&6; }
22812test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22813 *" memcmp.$ac_objext "* ) ;;
22814 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22815 ;;
22816esac
22817
22818
cristy3ed852e2009-09-05 21:47:34 +000022819for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000022820do :
22821 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22822ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyfd9dcd42010-08-08 18:07:02 +000022823if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022824 cat >>confdefs.h <<_ACEOF
22825#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22826_ACEOF
22827
22828fi
22829
22830done
22831
cristy8b350f62009-11-15 23:12:43 +000022832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000022833$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022834if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022835 $as_echo_n "(cached) " >&6
22836else
22837 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22838 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22839 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000022840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022841/* end confdefs.h. */
22842$ac_includes_default
22843#ifdef HAVE_SYS_SELECT_H
22844# include <sys/select.h>
22845#endif
22846#ifdef HAVE_SYS_SOCKET_H
22847# include <sys/socket.h>
22848#endif
22849
22850int
22851main ()
22852{
22853extern int select ($ac_arg1,
22854 $ac_arg234, $ac_arg234, $ac_arg234,
22855 $ac_arg5);
22856 ;
22857 return 0;
22858}
22859_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022860if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022861 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000022862fi
cristy3ed852e2009-09-05 21:47:34 +000022863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22864 done
22865 done
22866done
22867# Provide a safe default value.
22868: ${ac_cv_func_select_args='int,int *,struct timeval *'}
22869
22870fi
cristy8b350f62009-11-15 23:12:43 +000022871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000022872$as_echo "$ac_cv_func_select_args" >&6; }
22873ac_save_IFS=$IFS; IFS=','
22874set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22875IFS=$ac_save_IFS
22876shift
22877
22878cat >>confdefs.h <<_ACEOF
22879#define SELECT_TYPE_ARG1 $1
22880_ACEOF
22881
22882
22883cat >>confdefs.h <<_ACEOF
22884#define SELECT_TYPE_ARG234 ($2)
22885_ACEOF
22886
22887
22888cat >>confdefs.h <<_ACEOF
22889#define SELECT_TYPE_ARG5 ($3)
22890_ACEOF
22891
22892rm -f conftest*
22893
cristy8b350f62009-11-15 23:12:43 +000022894if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022895 $as_echo_n "(cached) " >&6
22896else
22897 ac_cv_func_setvbuf_reversed=no
22898fi
22899
22900
cristy8b350f62009-11-15 23:12:43 +000022901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000022902$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022903if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022904 $as_echo_n "(cached) " >&6
22905else
cristy8b350f62009-11-15 23:12:43 +000022906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022907/* end confdefs.h. */
22908#include <sys/types.h>
22909#include <signal.h>
22910
22911int
22912main ()
22913{
22914return *(signal (0, 0)) (0) == 1;
22915 ;
22916 return 0;
22917}
22918_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022919if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022920 ac_cv_type_signal=int
22921else
cristy8b350f62009-11-15 23:12:43 +000022922 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000022923fi
cristy3ed852e2009-09-05 21:47:34 +000022924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22925fi
cristy8b350f62009-11-15 23:12:43 +000022926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000022927$as_echo "$ac_cv_type_signal" >&6; }
22928
22929cat >>confdefs.h <<_ACEOF
22930#define RETSIGTYPE $ac_cv_type_signal
22931_ACEOF
22932
22933
cristy8b350f62009-11-15 23:12:43 +000022934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022935$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022936if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022937 $as_echo_n "(cached) " >&6
22938else
cristy8b350f62009-11-15 23:12:43 +000022939 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022940 ac_cv_func_strtod=no
22941else
cristy8b350f62009-11-15 23:12:43 +000022942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022943/* end confdefs.h. */
22944
22945$ac_includes_default
22946#ifndef strtod
22947double strtod ();
22948#endif
22949int
22950main()
22951{
22952 {
22953 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
22954 char *string = " +69";
22955 char *term;
22956 double value;
22957 value = strtod (string, &term);
22958 if (value != 69 || term != (string + 4))
22959 return 1;
22960 }
22961
22962 {
22963 /* Under Solaris 2.4, strtod returns the wrong value for the
22964 terminating character under some conditions. */
22965 char *string = "NaN";
22966 char *term;
22967 strtod (string, &term);
22968 if (term != string && *(term - 1) == 0)
22969 return 1;
22970 }
22971 return 0;
22972}
22973
22974_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022975if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022976 ac_cv_func_strtod=yes
22977else
cristy8b350f62009-11-15 23:12:43 +000022978 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000022979fi
cristy8b350f62009-11-15 23:12:43 +000022980rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22981 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022982fi
22983
cristy3ed852e2009-09-05 21:47:34 +000022984fi
cristy8b350f62009-11-15 23:12:43 +000022985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022986$as_echo "$ac_cv_func_strtod" >&6; }
22987if test $ac_cv_func_strtod = no; then
22988 case " $LIBOBJS " in
22989 *" strtod.$ac_objext "* ) ;;
22990 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
22991 ;;
22992esac
22993
cristy8b350f62009-11-15 23:12:43 +000022994ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
22995if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022996
cristy3ed852e2009-09-05 21:47:34 +000022997fi
22998
cristy3ed852e2009-09-05 21:47:34 +000022999if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023001$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023002if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023003 $as_echo_n "(cached) " >&6
23004else
23005 ac_check_lib_save_LIBS=$LIBS
23006LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023008/* end confdefs.h. */
23009
23010/* Override any GCC internal prototype to avoid an error.
23011 Use char because int might match the return type of a GCC
23012 builtin and then its argument prototype would still apply. */
23013#ifdef __cplusplus
23014extern "C"
23015#endif
23016char pow ();
23017int
23018main ()
23019{
23020return pow ();
23021 ;
23022 return 0;
23023}
23024_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023025if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023026 ac_cv_lib_m_pow=yes
23027else
cristy8b350f62009-11-15 23:12:43 +000023028 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023029fi
cristy8b350f62009-11-15 23:12:43 +000023030rm -f core conftest.err conftest.$ac_objext \
23031 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023032LIBS=$ac_check_lib_save_LIBS
23033fi
cristy8b350f62009-11-15 23:12:43 +000023034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023035$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023036if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023037 POW_LIB=-lm
23038else
cristy8b350f62009-11-15 23:12:43 +000023039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023040$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23041fi
23042
23043fi
23044
23045fi
23046
cristy3ed852e2009-09-05 21:47:34 +000023047for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023048do :
23049 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23050if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023051 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023052#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023053_ACEOF
23054
cristy8b350f62009-11-15 23:12:43 +000023055ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23056if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023057
cristy8b350f62009-11-15 23:12:43 +000023058$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023059
23060fi
23061
23062fi
23063done
23064
23065
23066
cristy161b9262010-03-20 19:34:32 +000023067#
23068# Find math library
23069#
23070MATH_LIBS=''
23071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23072$as_echo_n "checking for sqrt in -lm... " >&6; }
23073if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23074 $as_echo_n "(cached) " >&6
23075else
23076 ac_check_lib_save_LIBS=$LIBS
23077LIBS="-lm $LIBS"
23078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23079/* end confdefs.h. */
23080
23081/* Override any GCC internal prototype to avoid an error.
23082 Use char because int might match the return type of a GCC
23083 builtin and then its argument prototype would still apply. */
23084#ifdef __cplusplus
23085extern "C"
23086#endif
23087char sqrt ();
23088int
23089main ()
23090{
23091return sqrt ();
23092 ;
23093 return 0;
23094}
23095_ACEOF
23096if ac_fn_c_try_link "$LINENO"; then :
23097 ac_cv_lib_m_sqrt=yes
23098else
23099 ac_cv_lib_m_sqrt=no
23100fi
23101rm -f core conftest.err conftest.$ac_objext \
23102 conftest$ac_exeext conftest.$ac_ext
23103LIBS=$ac_check_lib_save_LIBS
23104fi
23105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23106$as_echo "$ac_cv_lib_m_sqrt" >&6; }
23107if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23108 MATH_LIBS="-lm"
23109fi
23110
23111LIBS="$MATH_LIBS $LIBS"
23112
23113
cristyf1897e32010-08-29 19:59:09 +000023114for 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 +000023115do :
23116 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23117ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000023118if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023119 cat >>confdefs.h <<_ACEOF
23120#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23121_ACEOF
23122
23123fi
23124done
23125
23126
cristye43a45e2009-09-28 14:49:00 +000023127#
23128# Check for clock_gettime().
23129#
cristy8b350f62009-11-15 23:12:43 +000023130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023131$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023132if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023133 $as_echo_n "(cached) " >&6
23134else
23135 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023137/* end confdefs.h. */
23138
23139/* Override any GCC internal prototype to avoid an error.
23140 Use char because int might match the return type of a GCC
23141 builtin and then its argument prototype would still apply. */
23142#ifdef __cplusplus
23143extern "C"
23144#endif
23145char clock_gettime ();
23146int
23147main ()
23148{
23149return clock_gettime ();
23150 ;
23151 return 0;
23152}
23153_ACEOF
23154for ac_lib in '' rt; do
23155 if test -z "$ac_lib"; then
23156 ac_res="none required"
23157 else
23158 ac_res=-l$ac_lib
23159 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23160 fi
cristy8b350f62009-11-15 23:12:43 +000023161 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023162 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000023163fi
cristy8b350f62009-11-15 23:12:43 +000023164rm -f core conftest.err conftest.$ac_objext \
23165 conftest$ac_exeext
23166 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023167 break
23168fi
23169done
cristy8b350f62009-11-15 23:12:43 +000023170if test "${ac_cv_search_clock_gettime+set}" = set; then :
23171
cristye43a45e2009-09-28 14:49:00 +000023172else
23173 ac_cv_search_clock_gettime=no
23174fi
23175rm conftest.$ac_ext
23176LIBS=$ac_func_search_save_LIBS
23177fi
cristy8b350f62009-11-15 23:12:43 +000023178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023179$as_echo "$ac_cv_search_clock_gettime" >&6; }
23180ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000023181if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000023182 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23183
23184
cristy8b350f62009-11-15 23:12:43 +000023185$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023186
cristy8b350f62009-11-15 23:12:43 +000023187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000023188$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023190/* end confdefs.h. */
23191#include <time.h>
23192int
23193main ()
23194{
23195clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000023196 ;
23197 return 0;
23198}
23199_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023200if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023201
cristy8b350f62009-11-15 23:12:43 +000023202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000023203$as_echo "yes" >&6; }
23204
cristy8b350f62009-11-15 23:12:43 +000023205$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023206
23207
23208else
cristy8b350f62009-11-15 23:12:43 +000023209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000023210$as_echo "no" >&6; }
23211
23212fi
cristye43a45e2009-09-28 14:49:00 +000023213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23214
23215else
23216
cristy8b350f62009-11-15 23:12:43 +000023217 for ac_func in gettimeofday ftime
23218do :
23219 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23220ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000023221if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000023222 cat >>confdefs.h <<_ACEOF
23223#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23224_ACEOF
23225 break
23226fi
23227done
23228
23229
23230
23231fi
23232
23233
cristy3ed852e2009-09-05 21:47:34 +000023234########
23235#
23236# Check for function prototypes
23237#
23238########
23239
cristy8b350f62009-11-15 23:12:43 +000023240ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000023241#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023242"
23243if test "x$ac_cv_have_decl_pread" = x""yes; then :
23244 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023245else
cristy8b350f62009-11-15 23:12:43 +000023246 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023247fi
23248
cristy3ed852e2009-09-05 21:47:34 +000023249cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023250#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023251_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023252ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000023253#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023254"
23255if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23256 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023257else
cristy8b350f62009-11-15 23:12:43 +000023258 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023259fi
23260
cristy3ed852e2009-09-05 21:47:34 +000023261cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023262#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023263_ACEOF
23264
23265
cristy8b350f62009-11-15 23:12:43 +000023266ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000023267#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000023268"
23269if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23270 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023271else
cristy8b350f62009-11-15 23:12:43 +000023272 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023273fi
23274
cristy3ed852e2009-09-05 21:47:34 +000023275cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023276#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023277_ACEOF
23278
23279
cristy8b350f62009-11-15 23:12:43 +000023280ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000023281#include <stdio.h>
23282#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000023283"
23284if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23285 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023286else
cristy8b350f62009-11-15 23:12:43 +000023287 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023288fi
23289
cristy3ed852e2009-09-05 21:47:34 +000023290cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023291#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023292_ACEOF
23293
23294
cristy3ed852e2009-09-05 21:47:34 +000023295########
23296#
23297# C++ Support Tests (For Magick++)
23298#
23299########
23300have_magick_plus_plus='no'
23301if test "$with_magick_plus_plus" = 'yes'; then
23302 OLIBS="$LIBS"
23303 LIBS=''
23304 ac_ext=cpp
23305ac_cpp='$CXXCPP $CPPFLAGS'
23306ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23307ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23308ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23309
23310
23311 # Full set of headers used...
23312 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23313 # functional iomanip iosfwd iostream iterator list string strstream utility
23314 ac_ext=cpp
23315ac_cpp='$CXXCPP $CPPFLAGS'
23316ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23317ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23318ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23319
23320 ac_ext=cpp
23321ac_cpp='$CXXCPP $CPPFLAGS'
23322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23325if test -z "$CXX"; then
23326 if test -n "$CCC"; then
23327 CXX=$CCC
23328 else
23329 if test -n "$ac_tool_prefix"; then
23330 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23331 do
23332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23333set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023335$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023336if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023337 $as_echo_n "(cached) " >&6
23338else
23339 if test -n "$CXX"; then
23340 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23341else
23342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23343for as_dir in $PATH
23344do
23345 IFS=$as_save_IFS
23346 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023347 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23349 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023351 break 2
23352 fi
23353done
cristy8b350f62009-11-15 23:12:43 +000023354 done
cristy3ed852e2009-09-05 21:47:34 +000023355IFS=$as_save_IFS
23356
23357fi
23358fi
23359CXX=$ac_cv_prog_CXX
23360if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023362$as_echo "$CXX" >&6; }
23363else
cristy8b350f62009-11-15 23:12:43 +000023364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023365$as_echo "no" >&6; }
23366fi
23367
23368
23369 test -n "$CXX" && break
23370 done
23371fi
23372if test -z "$CXX"; then
23373 ac_ct_CXX=$CXX
23374 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23375do
23376 # Extract the first word of "$ac_prog", so it can be a program name with args.
23377set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023379$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023380if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023381 $as_echo_n "(cached) " >&6
23382else
23383 if test -n "$ac_ct_CXX"; then
23384 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23385else
23386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23387for as_dir in $PATH
23388do
23389 IFS=$as_save_IFS
23390 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023391 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23393 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023395 break 2
23396 fi
23397done
cristy8b350f62009-11-15 23:12:43 +000023398 done
cristy3ed852e2009-09-05 21:47:34 +000023399IFS=$as_save_IFS
23400
23401fi
23402fi
23403ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23404if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023406$as_echo "$ac_ct_CXX" >&6; }
23407else
cristy8b350f62009-11-15 23:12:43 +000023408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023409$as_echo "no" >&6; }
23410fi
23411
23412
23413 test -n "$ac_ct_CXX" && break
23414done
23415
23416 if test "x$ac_ct_CXX" = x; then
23417 CXX="g++"
23418 else
23419 case $cross_compiling:$ac_tool_warned in
23420yes:)
cristy8b350f62009-11-15 23:12:43 +000023421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23423ac_tool_warned=yes ;;
23424esac
23425 CXX=$ac_ct_CXX
23426 fi
23427fi
23428
23429 fi
23430fi
23431# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000023432$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000023433set X $ac_compile
23434ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000023435for ac_option in --version -v -V -qversion; do
23436 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000023437case "(($ac_try" in
23438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23439 *) ac_try_echo=$ac_try;;
23440esac
cristy8b350f62009-11-15 23:12:43 +000023441eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23442$as_echo "$ac_try_echo"; } >&5
23443 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000023444 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000023445 if test -s conftest.err; then
23446 sed '10a\
23447... rest of stderr output deleted ...
23448 10q' conftest.err >conftest.er1
23449 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000023450 fi
cristycd4c5312009-11-22 01:19:08 +000023451 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000023452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23453 test $ac_status = 0; }
23454done
cristy3ed852e2009-09-05 21:47:34 +000023455
cristy8b350f62009-11-15 23:12:43 +000023456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000023457$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023458if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023459 $as_echo_n "(cached) " >&6
23460else
cristy8b350f62009-11-15 23:12:43 +000023461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023462/* end confdefs.h. */
23463
23464int
23465main ()
23466{
23467#ifndef __GNUC__
23468 choke me
23469#endif
23470
23471 ;
23472 return 0;
23473}
23474_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023475if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023476 ac_compiler_gnu=yes
23477else
cristy8b350f62009-11-15 23:12:43 +000023478 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000023479fi
cristy3ed852e2009-09-05 21:47:34 +000023480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23481ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23482
23483fi
cristy8b350f62009-11-15 23:12:43 +000023484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000023485$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23486if test $ac_compiler_gnu = yes; then
23487 GXX=yes
23488else
23489 GXX=
23490fi
23491ac_test_CXXFLAGS=${CXXFLAGS+set}
23492ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000023493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023494$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023495if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023496 $as_echo_n "(cached) " >&6
23497else
23498 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23499 ac_cxx_werror_flag=yes
23500 ac_cv_prog_cxx_g=no
23501 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023503/* end confdefs.h. */
23504
23505int
23506main ()
23507{
23508
23509 ;
23510 return 0;
23511}
23512_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023513if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023514 ac_cv_prog_cxx_g=yes
23515else
cristy8b350f62009-11-15 23:12:43 +000023516 CXXFLAGS=""
23517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023518/* end confdefs.h. */
23519
23520int
23521main ()
23522{
23523
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
cristy8b350f62009-11-15 23:12:43 +000023530else
23531 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000023532 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023534/* end confdefs.h. */
23535
23536int
23537main ()
23538{
23539
23540 ;
23541 return 0;
23542}
23543_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023544if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023545 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000023546fi
cristy3ed852e2009-09-05 21:47:34 +000023547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23548fi
cristy3ed852e2009-09-05 21:47:34 +000023549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23550fi
cristy3ed852e2009-09-05 21:47:34 +000023551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23552 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23553fi
cristy8b350f62009-11-15 23:12:43 +000023554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023555$as_echo "$ac_cv_prog_cxx_g" >&6; }
23556if test "$ac_test_CXXFLAGS" = set; then
23557 CXXFLAGS=$ac_save_CXXFLAGS
23558elif test $ac_cv_prog_cxx_g = yes; then
23559 if test "$GXX" = yes; then
23560 CXXFLAGS="-g -O2"
23561 else
23562 CXXFLAGS="-g"
23563 fi
23564else
23565 if test "$GXX" = yes; then
23566 CXXFLAGS="-O2"
23567 else
23568 CXXFLAGS=
23569 fi
23570fi
23571ac_ext=cpp
23572ac_cpp='$CXXCPP $CPPFLAGS'
23573ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23574ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23575ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23576
23577depcc="$CXX" am_compiler_list=
23578
cristy8b350f62009-11-15 23:12:43 +000023579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023580$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023581if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023582 $as_echo_n "(cached) " >&6
23583else
23584 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23585 # We make a subdir and do the tests there. Otherwise we can end up
23586 # making bogus files that we don't know about and never remove. For
23587 # instance it was reported that on HP-UX the gcc test will end up
23588 # making a dummy file named `D' -- because `-MD' means `put the output
23589 # in D'.
23590 mkdir conftest.dir
23591 # Copy depcomp to subdir because otherwise we won't find it if we're
23592 # using a relative directory.
23593 cp "$am_depcomp" conftest.dir
23594 cd conftest.dir
23595 # We will build objects and dependencies in a subdirectory because
23596 # it helps to detect inapplicable dependency modes. For instance
23597 # both Tru64's cc and ICC support -MD to output dependencies as a
23598 # side effect of compilation, but ICC will put the dependencies in
23599 # the current directory while Tru64 will put them in the object
23600 # directory.
23601 mkdir sub
23602
23603 am_cv_CXX_dependencies_compiler_type=none
23604 if test "$am_compiler_list" = ""; then
23605 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23606 fi
23607 am__universal=false
23608 case " $depcc " in #(
23609 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23610 esac
23611
23612 for depmode in $am_compiler_list; do
23613 # Setup a source with many dependencies, because some compilers
23614 # like to wrap large dependency lists on column 80 (with \), and
23615 # we should not choose a depcomp mode which is confused by this.
23616 #
23617 # We need to recreate these files for each test, as the compiler may
23618 # overwrite some of them when testing with obscure command lines.
23619 # This happens at least with the AIX C compiler.
23620 : > sub/conftest.c
23621 for i in 1 2 3 4 5 6; do
23622 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23623 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23624 # Solaris 8's {/usr,}/bin/sh.
23625 touch sub/conftst$i.h
23626 done
23627 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23628
23629 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23630 # mode. It turns out that the SunPro C++ compiler does not properly
23631 # handle `-M -o', and we need to detect this. Also, some Intel
23632 # versions had trouble with output in subdirs
23633 am__obj=sub/conftest.${OBJEXT-o}
23634 am__minus_obj="-o $am__obj"
23635 case $depmode in
23636 gcc)
23637 # This depmode causes a compiler race in universal mode.
23638 test "$am__universal" = false || continue
23639 ;;
23640 nosideeffect)
23641 # after this tag, mechanisms are not by side-effect, so they'll
23642 # only be used when explicitly requested
23643 if test "x$enable_dependency_tracking" = xyes; then
23644 continue
23645 else
23646 break
23647 fi
23648 ;;
23649 msvisualcpp | msvcmsys)
23650 # This compiler won't grok `-c -o', but also, the minuso test has
23651 # not run yet. These depmodes are late enough in the game, and
23652 # so weak that their functioning should not be impacted.
23653 am__obj=conftest.${OBJEXT-o}
23654 am__minus_obj=
23655 ;;
23656 none) break ;;
23657 esac
23658 if depmode=$depmode \
23659 source=sub/conftest.c object=$am__obj \
23660 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23661 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23662 >/dev/null 2>conftest.err &&
23663 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23664 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23665 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23666 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23667 # icc doesn't choke on unknown options, it will just issue warnings
23668 # or remarks (even with -Werror). So we grep stderr for any message
23669 # that says an option was ignored or not supported.
23670 # When given -MP, icc 7.0 and 7.1 complain thusly:
23671 # icc: Command line warning: ignoring option '-M'; no argument required
23672 # The diagnosis changed in icc 8.0:
23673 # icc: Command line remark: option '-MP' not supported
23674 if (grep 'ignoring option' conftest.err ||
23675 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23676 am_cv_CXX_dependencies_compiler_type=$depmode
23677 break
23678 fi
23679 fi
23680 done
23681
23682 cd ..
23683 rm -rf conftest.dir
23684else
23685 am_cv_CXX_dependencies_compiler_type=none
23686fi
23687
23688fi
cristy8b350f62009-11-15 23:12:43 +000023689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023690$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23691CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23692
23693 if
23694 test "x$enable_dependency_tracking" != xno \
23695 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23696 am__fastdepCXX_TRUE=
23697 am__fastdepCXX_FALSE='#'
23698else
23699 am__fastdepCXX_TRUE='#'
23700 am__fastdepCXX_FALSE=
23701fi
23702
23703
cristy8b350f62009-11-15 23:12:43 +000023704 { $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 +000023705$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023706if test "${ax_cv_cxx_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023707 $as_echo_n "(cached) " >&6
23708else
23709
23710 ac_ext=cpp
23711ac_cpp='$CXXCPP $CPPFLAGS'
23712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23715
cristy8b350f62009-11-15 23:12:43 +000023716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023717/* end confdefs.h. */
23718
23719int f(int x){return 1;}
23720int f(char x){return 1;}
23721int f(bool x){return 1;}
23722
23723int
23724main ()
23725{
23726bool b = true; return f(b);
23727 ;
23728 return 0;
23729}
23730_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023731if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023732 ax_cv_cxx_bool=yes
cristy3ed852e2009-09-05 21:47:34 +000023733else
cristy964cb7f2010-04-25 23:18:00 +000023734 ax_cv_cxx_bool=no
cristy3ed852e2009-09-05 21:47:34 +000023735fi
cristy3ed852e2009-09-05 21:47:34 +000023736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23737 ac_ext=cpp
23738ac_cpp='$CXXCPP $CPPFLAGS'
23739ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23740ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23741ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23742
23743
23744fi
cristy964cb7f2010-04-25 23:18:00 +000023745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23746$as_echo "$ax_cv_cxx_bool" >&6; }
23747if test "$ax_cv_cxx_bool" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023748
cristy8b350f62009-11-15 23:12:43 +000023749$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023750
23751fi
23752
cristy8b350f62009-11-15 23:12:43 +000023753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023754$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023755if test "${ax_cv_cxx_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023756 $as_echo_n "(cached) " >&6
23757else
23758
23759 ac_ext=cpp
23760ac_cpp='$CXXCPP $CPPFLAGS'
23761ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23762ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23763ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23764
cristy8b350f62009-11-15 23:12:43 +000023765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023766/* end confdefs.h. */
23767namespace Outer { namespace Inner { int i = 0; }}
23768int
23769main ()
23770{
23771using namespace Outer::Inner; return i;
23772 ;
23773 return 0;
23774}
23775_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023776if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023777 ax_cv_cxx_namespaces=yes
cristy3ed852e2009-09-05 21:47:34 +000023778else
cristy964cb7f2010-04-25 23:18:00 +000023779 ax_cv_cxx_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000023780fi
cristy3ed852e2009-09-05 21:47:34 +000023781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23782 ac_ext=cpp
23783ac_cpp='$CXXCPP $CPPFLAGS'
23784ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23785ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23786ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23787
23788
23789fi
cristy964cb7f2010-04-25 23:18:00 +000023790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23791$as_echo "$ax_cv_cxx_namespaces" >&6; }
23792if test "$ax_cv_cxx_namespaces" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023793
cristy8b350f62009-11-15 23:12:43 +000023794$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023795
23796fi
23797
cristy964cb7f2010-04-25 23:18:00 +000023798
23799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
23800$as_echo_n "checking if g++ supports namespace std... " >&6; }
23801if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023802 $as_echo_n "(cached) " >&6
23803else
23804
cristy964cb7f2010-04-25 23:18:00 +000023805 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000023806ac_cpp='$CXXCPP $CPPFLAGS'
23807ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23808ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23809ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23810
cristy964cb7f2010-04-25 23:18:00 +000023811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023812/* end confdefs.h. */
23813#include <iostream>
cristy964cb7f2010-04-25 23:18:00 +000023814 std::istream& is = std::cin;
cristy3ed852e2009-09-05 21:47:34 +000023815int
23816main ()
23817{
cristy964cb7f2010-04-25 23:18:00 +000023818
cristy3ed852e2009-09-05 21:47:34 +000023819 ;
23820 return 0;
23821}
23822_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023823if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023824 ax_cv_cxx_have_std_namespace=yes
cristy3ed852e2009-09-05 21:47:34 +000023825else
cristy964cb7f2010-04-25 23:18:00 +000023826 ax_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000023827fi
cristy3ed852e2009-09-05 21:47:34 +000023828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +000023829 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000023830ac_cpp='$CXXCPP $CPPFLAGS'
23831ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23832ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23833ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23834
23835
23836fi
cristy964cb7f2010-04-25 23:18:00 +000023837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
23838$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
23839 if test "$ax_cv_cxx_have_std_namespace" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023840
cristy964cb7f2010-04-25 23:18:00 +000023841$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023842
cristy964cb7f2010-04-25 23:18:00 +000023843 fi
cristy3ed852e2009-09-05 21:47:34 +000023844
cristy8b350f62009-11-15 23:12:43 +000023845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000023846$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023847if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023848 $as_echo_n "(cached) " >&6
23849else
23850
23851
23852 ac_ext=cpp
23853ac_cpp='$CXXCPP $CPPFLAGS'
23854ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23855ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23856ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23857
cristy8b350f62009-11-15 23:12:43 +000023858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023859/* end confdefs.h. */
23860#include <iostream>
23861#include <map>
23862#include <iomanip>
23863#include <cmath>
23864#ifdef HAVE_NAMESPACES
23865using namespace std;
23866#endif
23867int
23868main ()
23869{
23870return 0;
23871 ;
23872 return 0;
23873}
23874_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023875if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023876 ac_cv_cxx_have_std_libs=yes
23877else
cristy8b350f62009-11-15 23:12:43 +000023878 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000023879fi
cristy3ed852e2009-09-05 21:47:34 +000023880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23881 ac_ext=cpp
23882ac_cpp='$CXXCPP $CPPFLAGS'
23883ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23884ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23885ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23886
23887
23888fi
cristy8b350f62009-11-15 23:12:43 +000023889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000023890$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
23891if test "$ac_cv_cxx_have_std_libs" = yes; then
23892
cristy8b350f62009-11-15 23:12:43 +000023893$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023894
23895fi
23896
cristy8b350f62009-11-15 23:12:43 +000023897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000023898$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023899if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023900 $as_echo_n "(cached) " >&6
23901else
23902
23903 ac_ext=cpp
23904ac_cpp='$CXXCPP $CPPFLAGS'
23905ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23906ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23907ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23908
cristy8b350f62009-11-15 23:12:43 +000023909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023910/* end confdefs.h. */
23911const wchar_t* s=L"wide string";
23912_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023913if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023914 ac_cv_cxx_have_lstring=yes
23915else
cristy8b350f62009-11-15 23:12:43 +000023916 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000023917fi
cristy3ed852e2009-09-05 21:47:34 +000023918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23919 ac_ext=cpp
23920ac_cpp='$CXXCPP $CPPFLAGS'
23921ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23922ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23923ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23924
23925
23926fi
cristy8b350f62009-11-15 23:12:43 +000023927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000023928$as_echo "$ac_cv_cxx_have_lstring" >&6; }
23929if test "$ac_cv_cxx_have_lstring" = yes; then
23930
cristy8b350f62009-11-15 23:12:43 +000023931$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023932
23933fi
23934
23935
23936 OPENMP_CXXFLAGS=
23937 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000023938if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023939 enableval=$enable_openmp;
23940fi
23941
23942 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000023943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
23944$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023945if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023946 $as_echo_n "(cached) " >&6
23947else
cristy8b350f62009-11-15 23:12:43 +000023948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23949/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023950
23951#ifndef _OPENMP
23952 choke me
23953#endif
23954#include <omp.h>
23955int main () { return omp_get_num_threads (); }
23956
23957_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023958if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023959 ac_cv_prog_cxx_openmp='none needed'
23960else
cristy8b350f62009-11-15 23:12:43 +000023961 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000023962 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
23963 ac_save_CXXFLAGS=$CXXFLAGS
23964 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000023965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23966/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023967
23968#ifndef _OPENMP
23969 choke me
23970#endif
23971#include <omp.h>
23972int main () { return omp_get_num_threads (); }
23973
23974_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023975if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023976 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000023977fi
cristy8b350f62009-11-15 23:12:43 +000023978rm -f core conftest.err conftest.$ac_objext \
23979 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023980 CXXFLAGS=$ac_save_CXXFLAGS
23981 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
23982 break
23983 fi
23984 done
23985fi
cristy8b350f62009-11-15 23:12:43 +000023986rm -f core conftest.err conftest.$ac_objext \
23987 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023988fi
cristy8b350f62009-11-15 23:12:43 +000023989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023990$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
23991 case $ac_cv_prog_cxx_openmp in #(
23992 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000023993 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000023994 *)
cristy8b350f62009-11-15 23:12:43 +000023995 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000023996 esac
23997 fi
23998
23999
24000 ac_ext=c
24001ac_cpp='$CPP $CPPFLAGS'
24002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24004ac_compiler_gnu=$ac_cv_c_compiler_gnu
24005
24006
cristy8b350f62009-11-15 23:12:43 +000024007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024008$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24009 if \
cristy964cb7f2010-04-25 23:18:00 +000024010 test $ax_cv_cxx_bool = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024011 test $ac_cv_cxx_have_lstring = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024012 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024013 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024014 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024015 have_magick_plus_plus='yes'
24016 else
24017 have_magick_plus_plus='no (failed tests)'
24018 fi
cristy8b350f62009-11-15 23:12:43 +000024019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024020$as_echo "$have_magick_plus_plus" >&6; }
24021 LIBS="$OLIBS"
24022fi
24023 if test "$have_magick_plus_plus" = 'yes'; then
24024 WITH_MAGICK_PLUS_PLUS_TRUE=
24025 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24026else
24027 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24028 WITH_MAGICK_PLUS_PLUS_FALSE=
24029fi
24030
24031
24032# Only check for delegate libraries in subdirectories if requested.
24033if test "$enable_delegate_build" != 'no'; then
24034 # Check for delegate sub-directories and add -I & -L options as required.
24035 # This presumes that delegates are installed as detailed in the ImageMagick
24036 # README. If delegates are installed in a standard location where the
24037 # compiler will automatically find them then these options should not be
24038 # required.
24039
24040 #
24041 # Most delegates have includes in the same directory as the library, but not all...
24042 #
24043 # Includes
cristy5850e4b2010-01-08 14:28:24 +000024044 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 +000024045 if test -d "$builddir/$dir"; then
24046 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24047 else
24048 if test -d "$srcdirfull/$dir"; then
24049 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24050 fi
24051 fi
24052 done
24053
24054 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000024055 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 +000024056 if test -d "$builddir/$dir/.libs"; then
24057 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24058 else
24059 if test -d "$srcdirfull/$dir/.libs"; then
24060 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24061 fi
24062 fi
24063 if test -d "$builddir/$dir"; then
24064 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24065 else
24066 if test -d "$srcdirfull/$dir"; then
24067 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24068 fi
24069 fi
24070 done
24071fi
24072
24073# Assume that delegate headers reside under same directory as ImageMagick
24074# installation prefix.
24075MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24076
24077#
24078# Find the X11 RGB database
24079#
cristy8b350f62009-11-15 23:12:43 +000024080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024081$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024082if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024083 $as_echo_n "(cached) " >&6
24084else
24085 # Look for the header file in a standard set of common directories.
24086# Check X11 before X11Rn because it is often a symlink to the current release.
24087 for ac_dir in \
24088 /lib/usr/lib/X11 \
24089 /usr/X11/lib \
24090 /usr/X11R4/lib \
24091 /usr/X11R5/lib \
24092 /usr/X11R6/lib \
24093 /usr/X11R7/lib \
24094 /usr/X386/lib \
24095 /usr/XFree86/lib/X11 \
24096 /usr/athena/lib \
24097 /usr/lib \
24098 /usr/lib/X11 \
24099 /usr/lib/X11R4 \
24100 /usr/lib/X11R5 \
24101 /usr/lib/X11R6 \
24102 /usr/lib/X11R7 \
24103 /usr/local/X11/lib \
24104 /usr/local/X11R4/lib \
24105 /usr/local/X11R5/lib \
24106 /usr/local/X11R6/lib \
24107 /usr/local/lib \
24108 /usr/local/lib/X11 \
24109 /usr/local/lib/X11R4 \
24110 /usr/local/lib/X11R5 \
24111 /usr/local/lib/X11R6 \
24112 /usr/local/lib/X11R7 \
24113 /usr/local/x11r5/lib \
24114 /usr/lpp/Xamples/lib \
24115 /usr/openwin/lib \
24116 /usr/openwin/share/lib \
24117 /usr/unsupported/lib \
24118 /usr/x386/lib \
24119 ; do
24120 if test -f "$ac_dir/X11/rgb.txt"; then
24121 im_cv_x_configure="$ac_dir/X11/"
24122 break
24123 elif test -f "$ac_dir/rgb.txt"; then
24124 im_cv_x_configure="$ac_dir/"
24125 break
24126 fi
24127
24128 done
24129fi
cristy8b350f62009-11-15 23:12:43 +000024130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024131$as_echo "$im_cv_x_configure" >&6; }
24132X11_CONFIGURE_PATH="$im_cv_x_configure"
24133case "${build_os}" in
24134 mingw* )
24135 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24136 ;;
24137esac
24138
24139cat >>confdefs.h <<_ACEOF
24140#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24141_ACEOF
24142
24143
24144#
24145# Find OpenMP library
24146#
24147GOMP_LIBS=''
24148if test "$enable_openmp" != 'no'; then
24149 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024151$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024152if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024153 $as_echo_n "(cached) " >&6
24154else
24155 ac_check_lib_save_LIBS=$LIBS
24156LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024158/* end confdefs.h. */
24159
24160/* Override any GCC internal prototype to avoid an error.
24161 Use char because int might match the return type of a GCC
24162 builtin and then its argument prototype would still apply. */
24163#ifdef __cplusplus
24164extern "C"
24165#endif
24166char GOMP_parallel_start ();
24167int
24168main ()
24169{
24170return GOMP_parallel_start ();
24171 ;
24172 return 0;
24173}
24174_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024175if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024176 ac_cv_lib_gomp_GOMP_parallel_start=yes
24177else
cristy8b350f62009-11-15 23:12:43 +000024178 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024179fi
cristy8b350f62009-11-15 23:12:43 +000024180rm -f core conftest.err conftest.$ac_objext \
24181 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024182LIBS=$ac_check_lib_save_LIBS
24183fi
cristy8b350f62009-11-15 23:12:43 +000024184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024185$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024186if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024187 GOMP_LIBS="-lgomp"
24188fi
24189 # gcc
24190 else
cristy8b350f62009-11-15 23:12:43 +000024191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000024192$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024193if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024194 $as_echo_n "(cached) " >&6
24195else
24196 ac_check_lib_save_LIBS=$LIBS
24197LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024199/* end confdefs.h. */
24200
24201/* Override any GCC internal prototype to avoid an error.
24202 Use char because int might match the return type of a GCC
24203 builtin and then its argument prototype would still apply. */
24204#ifdef __cplusplus
24205extern "C"
24206#endif
24207char sunw_mp_register_warn ();
24208int
24209main ()
24210{
24211return sunw_mp_register_warn ();
24212 ;
24213 return 0;
24214}
24215_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024216if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024217 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24218else
cristy8b350f62009-11-15 23:12:43 +000024219 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000024220fi
cristy8b350f62009-11-15 23:12:43 +000024221rm -f core conftest.err conftest.$ac_objext \
24222 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024223LIBS=$ac_check_lib_save_LIBS
24224fi
cristy8b350f62009-11-15 23:12:43 +000024225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000024226$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024227if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024228 GOMP_LIBS="-lmtsk"
24229fi
24230 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000024231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024232$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024233if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024234 $as_echo_n "(cached) " >&6
24235else
24236 ac_check_lib_save_LIBS=$LIBS
24237LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024239/* end confdefs.h. */
24240
24241/* Override any GCC internal prototype to avoid an error.
24242 Use char because int might match the return type of a GCC
24243 builtin and then its argument prototype would still apply. */
24244#ifdef __cplusplus
24245extern "C"
24246#endif
24247char _xlsmpFlush ();
24248int
24249main ()
24250{
24251return _xlsmpFlush ();
24252 ;
24253 return 0;
24254}
24255_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024256if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024257 ac_cv_lib_xlsmp__xlsmpFlush=yes
24258else
cristy8b350f62009-11-15 23:12:43 +000024259 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000024260fi
cristy8b350f62009-11-15 23:12:43 +000024261rm -f core conftest.err conftest.$ac_objext \
24262 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024263LIBS=$ac_check_lib_save_LIBS
24264fi
cristy8b350f62009-11-15 23:12:43 +000024265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000024266$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024267if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024268 GOMP_LIBS="-lxlsmp"
24269fi
24270 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000024271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024272$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024273if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024274 $as_echo_n "(cached) " >&6
24275else
24276 ac_check_lib_save_LIBS=$LIBS
24277LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024279/* end confdefs.h. */
24280
24281/* Override any GCC internal prototype to avoid an error.
24282 Use char because int might match the return type of a GCC
24283 builtin and then its argument prototype would still apply. */
24284#ifdef __cplusplus
24285extern "C"
24286#endif
24287char mp_destroy ();
24288int
24289main ()
24290{
24291return mp_destroy ();
24292 ;
24293 return 0;
24294}
24295_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024296if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024297 ac_cv_lib_mp_mp_destroy=yes
24298else
cristy8b350f62009-11-15 23:12:43 +000024299 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000024300fi
cristy8b350f62009-11-15 23:12:43 +000024301rm -f core conftest.err conftest.$ac_objext \
24302 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024303LIBS=$ac_check_lib_save_LIBS
24304fi
cristy8b350f62009-11-15 23:12:43 +000024305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000024306$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024307if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024308 GOMP_LIBS="-lmp"
24309fi
24310 # SGI IRIX 6.5 MIPSpro C/C++
24311 fi
24312 LIBS="$GOMP_LIBS $LIBS"
24313fi
24314
24315
24316#
24317# Find Posix threads library
24318#
24319THREAD_LIBS=''
24320if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24321
24322 if test "x$PTHREAD_LIBS" = "x"; then
24323 case "${host_cpu}-${host_os}" in
24324 *-freebsd*)
24325
24326
24327
24328ac_ext=c
24329ac_cpp='$CPP $CPPFLAGS'
24330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24332ac_compiler_gnu=$ac_cv_c_compiler_gnu
24333
24334magick_pthread_lib_ok=no
24335
24336LIB=-lc_r
24337save_LIBS="$LIBS"
24338LIBS="$LIBS $LIB"
24339
cristy8b350f62009-11-15 23:12:43 +000024340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024341$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024343/* end confdefs.h. */
24344#include <pthread.h>
24345int
24346main ()
24347{
24348 pthread_t th;
24349 pthread_join(th, 0);
24350 pthread_attr_init(0);
24351 pthread_cleanup_push(0, 0);
24352 pthread_create(0,0,0,0);
24353 pthread_cleanup_pop(0);
24354 ;
24355 return 0;
24356}
24357_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024358if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024359 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024360fi
cristy8b350f62009-11-15 23:12:43 +000024361rm -f core conftest.err conftest.$ac_objext \
24362 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024363
cristy8b350f62009-11-15 23:12:43 +000024364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024365$as_echo "${magick_pthread_lib_ok}" >&6; }
24366if test "$magick_pthread_lib_ok" = yes
24367then
24368 PTHREAD_LIBS=-lc_r
24369 :
24370else
24371
24372 :
24373fi
24374
24375LIBS="$save_LIBS"
24376
24377ac_ext=c
24378ac_cpp='$CPP $CPPFLAGS'
24379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24381ac_compiler_gnu=$ac_cv_c_compiler_gnu
24382
24383 ;;
24384 esac
24385 fi
24386
24387 for lib in pthread pthreads; do
24388 if test "x$PTHREAD_LIBS" = "x"; then
24389
24390
24391
24392ac_ext=c
24393ac_cpp='$CPP $CPPFLAGS'
24394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24396ac_compiler_gnu=$ac_cv_c_compiler_gnu
24397
24398magick_pthread_lib_ok=no
24399
24400LIB=-l$lib
24401save_LIBS="$LIBS"
24402LIBS="$LIBS $LIB"
24403
cristy8b350f62009-11-15 23:12:43 +000024404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024405$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024407/* end confdefs.h. */
24408#include <pthread.h>
24409int
24410main ()
24411{
24412 pthread_t th;
24413 pthread_join(th, 0);
24414 pthread_attr_init(0);
24415 pthread_cleanup_push(0, 0);
24416 pthread_create(0,0,0,0);
24417 pthread_cleanup_pop(0);
24418 ;
24419 return 0;
24420}
24421_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024422if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024423 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024424fi
cristy8b350f62009-11-15 23:12:43 +000024425rm -f core conftest.err conftest.$ac_objext \
24426 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024427
cristy8b350f62009-11-15 23:12:43 +000024428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024429$as_echo "${magick_pthread_lib_ok}" >&6; }
24430if test "$magick_pthread_lib_ok" = yes
24431then
24432 PTHREAD_LIBS=-l$lib
24433 :
24434else
24435
24436 :
24437fi
24438
24439LIBS="$save_LIBS"
24440
24441ac_ext=c
24442ac_cpp='$CPP $CPPFLAGS'
24443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24445ac_compiler_gnu=$ac_cv_c_compiler_gnu
24446
24447
24448 fi
24449 done
24450
24451 THREAD_LIBS="$PTHREAD_LIBS"
24452 LIBS="$LIBS $THREAD_LIBS"
24453fi
24454
24455
24456#
24457# Check for umem.
24458#
24459have_umem='no'
24460UMEM_LIBS=''
24461if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000024463$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024465$as_echo "" >&6; }
24466 failed=0
24467 passed=0
cristy8b350f62009-11-15 23:12:43 +000024468 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24469if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024470 passed=`expr $passed + 1`
24471else
24472 failed=`expr $failed + 1`
24473fi
24474
24475
cristy8b350f62009-11-15 23:12:43 +000024476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024477$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024478if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024479 $as_echo_n "(cached) " >&6
24480else
24481 ac_check_lib_save_LIBS=$LIBS
24482LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024484/* end confdefs.h. */
24485
24486/* Override any GCC internal prototype to avoid an error.
24487 Use char because int might match the return type of a GCC
24488 builtin and then its argument prototype would still apply. */
24489#ifdef __cplusplus
24490extern "C"
24491#endif
24492char umem_alloc ();
24493int
24494main ()
24495{
24496return umem_alloc ();
24497 ;
24498 return 0;
24499}
24500_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024501if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024502 ac_cv_lib_umem_umem_alloc=yes
24503else
cristy8b350f62009-11-15 23:12:43 +000024504 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000024505fi
cristy8b350f62009-11-15 23:12:43 +000024506rm -f core conftest.err conftest.$ac_objext \
24507 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024508LIBS=$ac_check_lib_save_LIBS
24509fi
cristy8b350f62009-11-15 23:12:43 +000024510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024511$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024512if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024513 passed=`expr $passed + 1`
24514else
24515 failed=`expr $failed + 1`
24516fi
24517
cristy8b350f62009-11-15 23:12:43 +000024518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024519$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024520if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024521 $as_echo_n "(cached) " >&6
24522else
24523 ac_check_lib_save_LIBS=$LIBS
24524LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024526/* end confdefs.h. */
24527
24528/* Override any GCC internal prototype to avoid an error.
24529 Use char because int might match the return type of a GCC
24530 builtin and then its argument prototype would still apply. */
24531#ifdef __cplusplus
24532extern "C"
24533#endif
24534char umem_free ();
24535int
24536main ()
24537{
24538return umem_free ();
24539 ;
24540 return 0;
24541}
24542_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024543if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024544 ac_cv_lib_umem_umem_free=yes
24545else
cristy8b350f62009-11-15 23:12:43 +000024546 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000024547fi
cristy8b350f62009-11-15 23:12:43 +000024548rm -f core conftest.err conftest.$ac_objext \
24549 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024550LIBS=$ac_check_lib_save_LIBS
24551fi
cristy8b350f62009-11-15 23:12:43 +000024552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000024553$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024554if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024555 passed=`expr $passed + 1`
24556else
24557 failed=`expr $failed + 1`
24558fi
24559
cristy8b350f62009-11-15 23:12:43 +000024560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024561$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24562 if test $passed -gt 0; then
24563 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024565$as_echo "no -- some components failed test" >&6; }
24566 have_umem='no (failed tests)'
24567 else
24568 UMEM_LIBS='-lumem'
24569 LIBS="$UMEM_LIBS $LIBS"
24570
cristy8b350f62009-11-15 23:12:43 +000024571$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024572
cristy8b350f62009-11-15 23:12:43 +000024573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024574$as_echo "yes" >&6; }
24575 have_umem='yes'
24576 fi
24577 else
cristy8b350f62009-11-15 23:12:43 +000024578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024579$as_echo "no" >&6; }
24580 fi
24581fi
24582 if test "$have_umem" = 'yes'; then
24583 HasUMEM_TRUE=
24584 HasUMEM_FALSE='#'
24585else
24586 HasUMEM_TRUE='#'
24587 HasUMEM_FALSE=
24588fi
24589
24590
24591
24592#
24593# Add support for ccmalloc memory debugging library if requested
24594#
24595have_ccmalloc='no'
24596CCMALLOC_LIBS=''
24597if test "$enable_ccmalloc" = 'yes'; then
24598 # Extract the first word of "ccmalloc", so it can be a program name with args.
24599set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024601$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024602if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024603 $as_echo_n "(cached) " >&6
24604else
24605 case $CCMALLOCDelegate in
24606 [\\/]* | ?:[\\/]*)
24607 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24608 ;;
24609 *)
24610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24611for as_dir in $PATH
24612do
24613 IFS=$as_save_IFS
24614 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024615 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24617 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000024618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024619 break 2
24620 fi
24621done
cristy8b350f62009-11-15 23:12:43 +000024622 done
cristy3ed852e2009-09-05 21:47:34 +000024623IFS=$as_save_IFS
24624
24625 ;;
24626esac
24627fi
24628CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24629if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000024630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024631$as_echo "$CCMALLOCDelegate" >&6; }
24632else
cristy8b350f62009-11-15 23:12:43 +000024633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024634$as_echo "no" >&6; }
24635fi
24636
24637
24638 if test -n "$CCMALLOCDelegate"; then
24639 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24640 OLIBS="$LIBS"
24641 # Assume that gcc is used with ccmalloc.
24642 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000024643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024644$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024645if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024646 $as_echo_n "(cached) " >&6
24647else
24648 ac_check_lib_save_LIBS=$LIBS
24649LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024651/* end confdefs.h. */
24652
24653/* Override any GCC internal prototype to avoid an error.
24654 Use char because int might match the return type of a GCC
24655 builtin and then its argument prototype would still apply. */
24656#ifdef __cplusplus
24657extern "C"
24658#endif
24659char ccmalloc_malloc ();
24660int
24661main ()
24662{
24663return ccmalloc_malloc ();
24664 ;
24665 return 0;
24666}
24667_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024668if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024669 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24670else
cristy8b350f62009-11-15 23:12:43 +000024671 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024672fi
cristy8b350f62009-11-15 23:12:43 +000024673rm -f core conftest.err conftest.$ac_objext \
24674 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024675LIBS=$ac_check_lib_save_LIBS
24676fi
cristy8b350f62009-11-15 23:12:43 +000024677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024678$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024679if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024680 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24681fi
24682
24683 if test -n "$CCMALLOC_LIBS"; then
24684 LIBS="$OLIBS"
24685 LIBS="$LIBS $CCMALLOC_LIBS"
24686 have_ccmalloc='yes'
24687 else
24688 LIBS="$OLIBS"
24689 fi
24690 fi
24691fi
24692
24693#
24694# Add support for efence memory debugging library if requested
24695#
24696if test "$enable_efence" = 'yes'; then
24697 EFENCE_LIBS='-lefence'
24698 LIBS="$EFENCE_LIBS $LIBS"
24699fi
24700
cristy3ed852e2009-09-05 21:47:34 +000024701
24702#
24703# Check for BZLIB
24704#
24705
24706
24707# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024708if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024709 withval=$with_bzlib; with_bzlib=$withval
24710else
24711 with_bzlib='yes'
24712fi
24713
24714
24715if test "$with_bzlib" != 'yes'; then
24716 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24717fi
24718
24719have_bzlib='no'
24720if test "$with_bzlib" != 'no'; then
24721 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024723$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024725$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024727$as_echo "" >&6; }
24728 failed=0
24729 passed=0
24730 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024731 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24732if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024733 passed=`expr $passed + 1`
24734else
24735 failed=`expr $failed + 1`
24736fi
24737
24738
cristy8b350f62009-11-15 23:12:43 +000024739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024740$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024741if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024742 $as_echo_n "(cached) " >&6
24743else
24744 ac_check_lib_save_LIBS=$LIBS
24745LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024747/* end confdefs.h. */
24748
24749/* Override any GCC internal prototype to avoid an error.
24750 Use char because int might match the return type of a GCC
24751 builtin and then its argument prototype would still apply. */
24752#ifdef __cplusplus
24753extern "C"
24754#endif
24755char BZ2_bzDecompress ();
24756int
24757main ()
24758{
24759return BZ2_bzDecompress ();
24760 ;
24761 return 0;
24762}
24763_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024764if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024765 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24766else
cristy8b350f62009-11-15 23:12:43 +000024767 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024768fi
cristy8b350f62009-11-15 23:12:43 +000024769rm -f core conftest.err conftest.$ac_objext \
24770 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024771LIBS=$ac_check_lib_save_LIBS
24772fi
cristy8b350f62009-11-15 23:12:43 +000024773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024774$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024775if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024776 found_libbz=`expr $found_libbz + 1`
24777fi
24778
24779 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024781$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024782if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024783 $as_echo_n "(cached) " >&6
24784else
24785 ac_check_lib_save_LIBS=$LIBS
24786LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024788/* end confdefs.h. */
24789
24790/* Override any GCC internal prototype to avoid an error.
24791 Use char because int might match the return type of a GCC
24792 builtin and then its argument prototype would still apply. */
24793#ifdef __cplusplus
24794extern "C"
24795#endif
24796char _imp__BZ2_decompress ();
24797int
24798main ()
24799{
24800return _imp__BZ2_decompress ();
24801 ;
24802 return 0;
24803}
24804_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024805if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024806 ac_cv_lib_bz2__imp__BZ2_decompress=yes
24807else
cristy8b350f62009-11-15 23:12:43 +000024808 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000024809fi
cristy8b350f62009-11-15 23:12:43 +000024810rm -f core conftest.err conftest.$ac_objext \
24811 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024812LIBS=$ac_check_lib_save_LIBS
24813fi
cristy8b350f62009-11-15 23:12:43 +000024814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024815$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024816if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024817 found_libbz=`expr $found_libbz + 1`
24818fi
24819
24820 fi
24821 if test $found_libbz -gt 0; then
24822 passed=`expr $passed + 1`
24823 else
24824 failed=`expr $failed + 1`
24825 fi
cristy8b350f62009-11-15 23:12:43 +000024826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024827$as_echo_n "checking if BZLIB package is complete... " >&6; }
24828 if test $passed -gt 0; then
24829 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024831$as_echo "no -- some components failed test" >&6; }
24832 have_bzlib='no (failed tests)'
24833 else
24834 BZLIB_LIBS='-lbz2'
24835 LIBS="$BZLIB_LIBS $LIBS"
24836
cristy8b350f62009-11-15 23:12:43 +000024837$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024838
cristy8b350f62009-11-15 23:12:43 +000024839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024840$as_echo "yes" >&6; }
24841 have_bzlib='yes'
24842 fi
24843 else
cristy8b350f62009-11-15 23:12:43 +000024844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024845$as_echo "no" >&6; }
24846 fi
24847fi
24848 if test "$have_bzlib" = 'yes'; then
24849 BZLIB_DELEGATE_TRUE=
24850 BZLIB_DELEGATE_FALSE='#'
24851else
24852 BZLIB_DELEGATE_TRUE='#'
24853 BZLIB_DELEGATE_FALSE=
24854fi
24855
24856
24857
24858#
24859# Find the X11 include and library directories.
24860#
24861IPC_LIBS=''
24862X11_LIBS=''
24863XEXT_LIBS=''
24864XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000024866$as_echo_n "checking for X... " >&6; }
24867
24868
24869# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000024870if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024871 withval=$with_x;
24872fi
24873
24874# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24875if test "x$with_x" = xno; then
24876 # The user explicitly disabled X.
24877 have_x=disabled
24878else
24879 case $x_includes,$x_libraries in #(
cristyfd9dcd42010-08-08 18:07:02 +000024880 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristy8b350f62009-11-15 23:12:43 +000024881 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024882 $as_echo_n "(cached) " >&6
24883else
24884 # One or both of the vars are not set, and there is no cached value.
24885ac_x_includes=no ac_x_libraries=no
24886rm -f -r conftest.dir
24887if mkdir conftest.dir; then
24888 cd conftest.dir
24889 cat >Imakefile <<'_ACEOF'
24890incroot:
24891 @echo incroot='${INCROOT}'
24892usrlibdir:
24893 @echo usrlibdir='${USRLIBDIR}'
24894libdir:
24895 @echo libdir='${LIBDIR}'
24896_ACEOF
24897 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristyfd9dcd42010-08-08 18:07:02 +000024898 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000024899 for ac_var in incroot usrlibdir libdir; do
24900 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24901 done
24902 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24903 for ac_extension in a so sl dylib la dll; do
24904 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24905 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24906 ac_im_usrlibdir=$ac_im_libdir; break
24907 fi
24908 done
24909 # Screen out bogus values from the imake configuration. They are
24910 # bogus both because they are the default anyway, and because
24911 # using them would break gcc on systems where it needs fixed includes.
24912 case $ac_im_incroot in
24913 /usr/include) ac_x_includes= ;;
24914 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24915 esac
24916 case $ac_im_usrlibdir in
24917 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24918 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24919 esac
24920 fi
24921 cd ..
24922 rm -f -r conftest.dir
24923fi
24924
24925# Standard set of common directories for X headers.
24926# Check X11 before X11Rn because it is often a symlink to the current release.
24927ac_x_header_dirs='
24928/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000024929/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024930/usr/X11R6/include
24931/usr/X11R5/include
24932/usr/X11R4/include
24933
24934/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000024935/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024936/usr/include/X11R6
24937/usr/include/X11R5
24938/usr/include/X11R4
24939
24940/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000024941/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024942/usr/local/X11R6/include
24943/usr/local/X11R5/include
24944/usr/local/X11R4/include
24945
24946/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000024947/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024948/usr/local/include/X11R6
24949/usr/local/include/X11R5
24950/usr/local/include/X11R4
24951
24952/usr/X386/include
24953/usr/x386/include
24954/usr/XFree86/include/X11
24955
24956/usr/include
24957/usr/local/include
24958/usr/unsupported/include
24959/usr/athena/include
24960/usr/local/x11r5/include
24961/usr/lpp/Xamples/include
24962
24963/usr/openwin/include
24964/usr/openwin/share/include'
24965
24966if test "$ac_x_includes" = no; then
24967 # Guess where to find include files, by looking for Xlib.h.
24968 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000024969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024970/* end confdefs.h. */
24971#include <X11/Xlib.h>
24972_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024973if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024974 # We can compile using X headers with no special include directory.
24975ac_x_includes=
24976else
cristyc7083c12009-10-14 03:16:55 +000024977 for ac_dir in $ac_x_header_dirs; do
24978 if test -r "$ac_dir/X11/Xlib.h"; then
24979 ac_x_includes=$ac_dir
24980 break
24981 fi
24982done
24983fi
cristyc7083c12009-10-14 03:16:55 +000024984rm -f conftest.err conftest.$ac_ext
24985fi # $ac_x_includes = no
24986
24987if test "$ac_x_libraries" = no; then
24988 # Check for the libraries.
24989 # See if we find them without any special options.
24990 # Don't add to $LIBS permanently.
24991 ac_save_LIBS=$LIBS
24992 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024994/* end confdefs.h. */
24995#include <X11/Xlib.h>
24996int
24997main ()
24998{
24999XrmInitialize ()
25000 ;
25001 return 0;
25002}
25003_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025004if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025005 LIBS=$ac_save_LIBS
25006# We can link X programs with no special library path.
25007ac_x_libraries=
25008else
cristy8b350f62009-11-15 23:12:43 +000025009 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025010for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25011do
25012 # Don't even attempt the hair of trying to link an X program!
25013 for ac_extension in a so sl dylib la dll; do
25014 if test -r "$ac_dir/libX11.$ac_extension"; then
25015 ac_x_libraries=$ac_dir
25016 break 2
25017 fi
25018 done
25019done
25020fi
cristy8b350f62009-11-15 23:12:43 +000025021rm -f core conftest.err conftest.$ac_objext \
25022 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025023fi # $ac_x_libraries = no
25024
25025case $ac_x_includes,$ac_x_libraries in #(
25026 no,* | *,no | *\'*)
25027 # Didn't find X, or a directory has "'" in its name.
25028 ac_cv_have_x="have_x=no";; #(
25029 *)
25030 # Record where we found X for the cache.
25031 ac_cv_have_x="have_x=yes\
25032 ac_x_includes='$ac_x_includes'\
25033 ac_x_libraries='$ac_x_libraries'"
25034esac
25035fi
25036;; #(
25037 *) have_x=yes;;
25038 esac
25039 eval "$ac_cv_have_x"
25040fi # $with_x != no
25041
25042if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025044$as_echo "$have_x" >&6; }
25045 no_x=yes
25046else
25047 # If each of the values was on the command line, it overrides each guess.
25048 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25049 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25050 # Update the cache value to reflect the command line values.
25051 ac_cv_have_x="have_x=yes\
25052 ac_x_includes='$x_includes'\
25053 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025055$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25056fi
25057
cristy3ed852e2009-09-05 21:47:34 +000025058if test "$no_x" = yes; then
25059 # Not all programs may use this symbol, but it does not hurt to define it.
25060
cristy8b350f62009-11-15 23:12:43 +000025061$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025062
25063 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25064else
25065 if test -n "$x_includes"; then
25066 X_CFLAGS="$X_CFLAGS -I$x_includes"
25067 fi
25068
25069 # It would also be nice to do this for all -L options, not just this one.
25070 if test -n "$x_libraries"; then
25071 X_LIBS="$X_LIBS -L$x_libraries"
25072 # For Solaris; some versions of Sun CC require a space after -R and
25073 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025075$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25076 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25077 ac_xsave_c_werror_flag=$ac_c_werror_flag
25078 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025080/* end confdefs.h. */
25081
25082int
25083main ()
25084{
25085
25086 ;
25087 return 0;
25088}
25089_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025090if ac_fn_c_try_link "$LINENO"; then :
25091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025092$as_echo "no" >&6; }
25093 X_LIBS="$X_LIBS -R$x_libraries"
25094else
cristy8b350f62009-11-15 23:12:43 +000025095 LIBS="$ac_xsave_LIBS -R $x_libraries"
25096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025097/* end confdefs.h. */
25098
25099int
25100main ()
25101{
25102
25103 ;
25104 return 0;
25105}
25106_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025107if ac_fn_c_try_link "$LINENO"; then :
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025109$as_echo "yes" >&6; }
25110 X_LIBS="$X_LIBS -R $x_libraries"
25111else
cristy8b350f62009-11-15 23:12:43 +000025112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025113$as_echo "neither works" >&6; }
25114fi
cristy8b350f62009-11-15 23:12:43 +000025115rm -f core conftest.err conftest.$ac_objext \
25116 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025117fi
cristy8b350f62009-11-15 23:12:43 +000025118rm -f core conftest.err conftest.$ac_objext \
25119 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025120 ac_c_werror_flag=$ac_xsave_c_werror_flag
25121 LIBS=$ac_xsave_LIBS
25122 fi
25123
25124 # Check for system-dependent libraries X programs must link with.
25125 # Do this before checking for the system-independent R6 libraries
25126 # (-lICE), since we may need -lsocket or whatever for X linking.
25127
25128 if test "$ISC" = yes; then
25129 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25130 else
25131 # Martyn Johnson says this is needed for Ultrix, if the X
25132 # libraries were built with DECnet support. And Karl Berry says
25133 # the Alpha needs dnet_stub (dnet does not exist).
25134 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025136/* end confdefs.h. */
25137
25138/* Override any GCC internal prototype to avoid an error.
25139 Use char because int might match the return type of a GCC
25140 builtin and then its argument prototype would still apply. */
25141#ifdef __cplusplus
25142extern "C"
25143#endif
25144char XOpenDisplay ();
25145int
25146main ()
25147{
25148return XOpenDisplay ();
25149 ;
25150 return 0;
25151}
25152_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025153if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025154
cristy8b350f62009-11-15 23:12:43 +000025155else
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025157$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025158if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025159 $as_echo_n "(cached) " >&6
25160else
25161 ac_check_lib_save_LIBS=$LIBS
25162LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025164/* end confdefs.h. */
25165
25166/* Override any GCC internal prototype to avoid an error.
25167 Use char because int might match the return type of a GCC
25168 builtin and then its argument prototype would still apply. */
25169#ifdef __cplusplus
25170extern "C"
25171#endif
25172char dnet_ntoa ();
25173int
25174main ()
25175{
25176return dnet_ntoa ();
25177 ;
25178 return 0;
25179}
25180_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025181if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025182 ac_cv_lib_dnet_dnet_ntoa=yes
25183else
cristy8b350f62009-11-15 23:12:43 +000025184 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025185fi
cristy8b350f62009-11-15 23:12:43 +000025186rm -f core conftest.err conftest.$ac_objext \
25187 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025188LIBS=$ac_check_lib_save_LIBS
25189fi
cristy8b350f62009-11-15 23:12:43 +000025190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025191$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025192if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025193 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25194fi
25195
25196 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000025197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000025198$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025199if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025200 $as_echo_n "(cached) " >&6
25201else
25202 ac_check_lib_save_LIBS=$LIBS
25203LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025205/* end confdefs.h. */
25206
25207/* Override any GCC internal prototype to avoid an error.
25208 Use char because int might match the return type of a GCC
25209 builtin and then its argument prototype would still apply. */
25210#ifdef __cplusplus
25211extern "C"
25212#endif
25213char dnet_ntoa ();
25214int
25215main ()
25216{
25217return dnet_ntoa ();
25218 ;
25219 return 0;
25220}
25221_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025222if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025223 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25224else
cristy8b350f62009-11-15 23:12:43 +000025225 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025226fi
cristy8b350f62009-11-15 23:12:43 +000025227rm -f core conftest.err conftest.$ac_objext \
25228 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025229LIBS=$ac_check_lib_save_LIBS
25230fi
cristy8b350f62009-11-15 23:12:43 +000025231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025232$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025233if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025234 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25235fi
25236
25237 fi
25238fi
cristy8b350f62009-11-15 23:12:43 +000025239rm -f core conftest.err conftest.$ac_objext \
25240 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025241 LIBS="$ac_xsave_LIBS"
25242
25243 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25244 # to get the SysV transport functions.
25245 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25246 # needs -lnsl.
25247 # The nsl library prevents programs from opening the X display
25248 # on Irix 5.2, according to T.E. Dickey.
25249 # The functions gethostbyname, getservbyname, and inet_addr are
25250 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000025251 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25252if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025253
cristy3ed852e2009-09-05 21:47:34 +000025254fi
25255
cristy3ed852e2009-09-05 21:47:34 +000025256 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025258$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025259if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025260 $as_echo_n "(cached) " >&6
25261else
25262 ac_check_lib_save_LIBS=$LIBS
25263LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025265/* end confdefs.h. */
25266
25267/* Override any GCC internal prototype to avoid an error.
25268 Use char because int might match the return type of a GCC
25269 builtin and then its argument prototype would still apply. */
25270#ifdef __cplusplus
25271extern "C"
25272#endif
25273char gethostbyname ();
25274int
25275main ()
25276{
25277return gethostbyname ();
25278 ;
25279 return 0;
25280}
25281_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025282if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025283 ac_cv_lib_nsl_gethostbyname=yes
25284else
cristy8b350f62009-11-15 23:12:43 +000025285 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025286fi
cristy8b350f62009-11-15 23:12:43 +000025287rm -f core conftest.err conftest.$ac_objext \
25288 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025289LIBS=$ac_check_lib_save_LIBS
25290fi
cristy8b350f62009-11-15 23:12:43 +000025291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025292$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025293if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025294 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25295fi
25296
25297 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000025299$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025300if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025301 $as_echo_n "(cached) " >&6
25302else
25303 ac_check_lib_save_LIBS=$LIBS
25304LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025306/* end confdefs.h. */
25307
25308/* Override any GCC internal prototype to avoid an error.
25309 Use char because int might match the return type of a GCC
25310 builtin and then its argument prototype would still apply. */
25311#ifdef __cplusplus
25312extern "C"
25313#endif
25314char gethostbyname ();
25315int
25316main ()
25317{
25318return gethostbyname ();
25319 ;
25320 return 0;
25321}
25322_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025323if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025324 ac_cv_lib_bsd_gethostbyname=yes
25325else
cristy8b350f62009-11-15 23:12:43 +000025326 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025327fi
cristy8b350f62009-11-15 23:12:43 +000025328rm -f core conftest.err conftest.$ac_objext \
25329 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025330LIBS=$ac_check_lib_save_LIBS
25331fi
cristy8b350f62009-11-15 23:12:43 +000025332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025333$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025334if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025335 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25336fi
25337
25338 fi
25339 fi
25340
25341 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25342 # socket/setsockopt and other routines are undefined under SCO ODT
25343 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25344 # on later versions), says Simon Leinen: it contains gethostby*
25345 # variants that don't use the name server (or something). -lsocket
25346 # must be given before -lnsl if both are needed. We assume that
25347 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000025348 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25349if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025350
cristy3ed852e2009-09-05 21:47:34 +000025351fi
25352
cristy3ed852e2009-09-05 21:47:34 +000025353 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000025354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000025355$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025356if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025357 $as_echo_n "(cached) " >&6
25358else
25359 ac_check_lib_save_LIBS=$LIBS
25360LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025362/* end confdefs.h. */
25363
25364/* Override any GCC internal prototype to avoid an error.
25365 Use char because int might match the return type of a GCC
25366 builtin and then its argument prototype would still apply. */
25367#ifdef __cplusplus
25368extern "C"
25369#endif
25370char connect ();
25371int
25372main ()
25373{
25374return connect ();
25375 ;
25376 return 0;
25377}
25378_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025379if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025380 ac_cv_lib_socket_connect=yes
25381else
cristy8b350f62009-11-15 23:12:43 +000025382 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000025383fi
cristy8b350f62009-11-15 23:12:43 +000025384rm -f core conftest.err conftest.$ac_objext \
25385 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025386LIBS=$ac_check_lib_save_LIBS
25387fi
cristy8b350f62009-11-15 23:12:43 +000025388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000025389$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025390if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025391 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25392fi
25393
25394 fi
25395
25396 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000025397 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25398if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025399
cristy3ed852e2009-09-05 21:47:34 +000025400fi
25401
cristy3ed852e2009-09-05 21:47:34 +000025402 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000025403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000025404$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025405if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025406 $as_echo_n "(cached) " >&6
25407else
25408 ac_check_lib_save_LIBS=$LIBS
25409LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025411/* end confdefs.h. */
25412
25413/* Override any GCC internal prototype to avoid an error.
25414 Use char because int might match the return type of a GCC
25415 builtin and then its argument prototype would still apply. */
25416#ifdef __cplusplus
25417extern "C"
25418#endif
25419char remove ();
25420int
25421main ()
25422{
25423return remove ();
25424 ;
25425 return 0;
25426}
25427_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025428if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025429 ac_cv_lib_posix_remove=yes
25430else
cristy8b350f62009-11-15 23:12:43 +000025431 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000025432fi
cristy8b350f62009-11-15 23:12:43 +000025433rm -f core conftest.err conftest.$ac_objext \
25434 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025435LIBS=$ac_check_lib_save_LIBS
25436fi
cristy8b350f62009-11-15 23:12:43 +000025437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000025438$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025439if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025440 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25441fi
25442
25443 fi
25444
25445 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000025446 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25447if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025448
cristy3ed852e2009-09-05 21:47:34 +000025449fi
25450
cristy3ed852e2009-09-05 21:47:34 +000025451 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000025452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025453$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025454if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025455 $as_echo_n "(cached) " >&6
25456else
25457 ac_check_lib_save_LIBS=$LIBS
25458LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025460/* end confdefs.h. */
25461
25462/* Override any GCC internal prototype to avoid an error.
25463 Use char because int might match the return type of a GCC
25464 builtin and then its argument prototype would still apply. */
25465#ifdef __cplusplus
25466extern "C"
25467#endif
25468char shmat ();
25469int
25470main ()
25471{
25472return shmat ();
25473 ;
25474 return 0;
25475}
25476_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025477if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025478 ac_cv_lib_ipc_shmat=yes
25479else
cristy8b350f62009-11-15 23:12:43 +000025480 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000025481fi
cristy8b350f62009-11-15 23:12:43 +000025482rm -f core conftest.err conftest.$ac_objext \
25483 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025484LIBS=$ac_check_lib_save_LIBS
25485fi
cristy8b350f62009-11-15 23:12:43 +000025486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000025487$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025488if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025489 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25490fi
25491
25492 fi
25493 fi
25494
25495 # Check for libraries that X11R6 Xt/Xaw programs need.
25496 ac_save_LDFLAGS=$LDFLAGS
25497 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25498 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25499 # check for ICE first), but we must link in the order -lSM -lICE or
25500 # we get undefined symbols. So assume we have SM if we have ICE.
25501 # These have to be linked with before -lX11, unlike the other
25502 # libraries we check for below, so use a different variable.
25503 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000025504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025505$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025506if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025507 $as_echo_n "(cached) " >&6
25508else
25509 ac_check_lib_save_LIBS=$LIBS
25510LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025512/* end confdefs.h. */
25513
25514/* Override any GCC internal prototype to avoid an error.
25515 Use char because int might match the return type of a GCC
25516 builtin and then its argument prototype would still apply. */
25517#ifdef __cplusplus
25518extern "C"
25519#endif
25520char IceConnectionNumber ();
25521int
25522main ()
25523{
25524return IceConnectionNumber ();
25525 ;
25526 return 0;
25527}
25528_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025529if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025530 ac_cv_lib_ICE_IceConnectionNumber=yes
25531else
cristy8b350f62009-11-15 23:12:43 +000025532 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000025533fi
cristy8b350f62009-11-15 23:12:43 +000025534rm -f core conftest.err conftest.$ac_objext \
25535 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025536LIBS=$ac_check_lib_save_LIBS
25537fi
cristy8b350f62009-11-15 23:12:43 +000025538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000025539$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025540if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025541 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25542fi
25543
25544 LDFLAGS=$ac_save_LDFLAGS
25545
25546fi
25547
25548if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025550$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000025552$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025554$as_echo "" >&6; }
25555 LDFLAGS="$LDFLAGS $X_LIBS"
25556 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25557 LIBS="$X11_LIBS $LIBS"
25558 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25559
25560
cristy8b350f62009-11-15 23:12:43 +000025561$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025562
25563 #
25564 # Check for X11 shared memory extension
25565 #
25566 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000025567 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25568if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025569 have_shmctl='yes'
25570fi
25571
25572 if test "$have_shmctl" != 'yes'; then
25573 PERSIST_LIBS=$LIBS
25574 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000025575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025576/* end confdefs.h. */
25577
25578/* Override any GCC internal prototype to avoid an error.
25579 Use char because int might match the return type of a GCC
25580 builtin and then its argument prototype would still apply. */
25581#ifdef __cplusplus
25582extern "C"
25583#endif
25584char shmctl ();
25585int
25586main ()
25587{
25588return shmctl ();
25589 ;
25590 return 0;
25591}
25592_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025593if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025594 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000025595fi
cristy8b350f62009-11-15 23:12:43 +000025596rm -f core conftest.err conftest.$ac_objext \
25597 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025598 LIBS=$PERSIST_LIBS
25599 fi
25600
25601 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025603$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025604if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025605 $as_echo_n "(cached) " >&6
25606else
25607 ac_check_lib_save_LIBS=$LIBS
25608LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025610/* end confdefs.h. */
25611
25612/* Override any GCC internal prototype to avoid an error.
25613 Use char because int might match the return type of a GCC
25614 builtin and then its argument prototype would still apply. */
25615#ifdef __cplusplus
25616extern "C"
25617#endif
25618char XShmAttach ();
25619int
25620main ()
25621{
25622return XShmAttach ();
25623 ;
25624 return 0;
25625}
25626_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025627if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025628 ac_cv_lib_Xext_XShmAttach=yes
25629else
cristy8b350f62009-11-15 23:12:43 +000025630 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025631fi
cristy8b350f62009-11-15 23:12:43 +000025632rm -f core conftest.err conftest.$ac_objext \
25633 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025634LIBS=$ac_check_lib_save_LIBS
25635fi
cristy8b350f62009-11-15 23:12:43 +000025636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025637$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025638if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025639 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025640$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025641
25642fi
25643
25644 fi
25645
25646 #
25647 # Check for X11 shape extension
25648 #
cristy8b350f62009-11-15 23:12:43 +000025649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025650$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025651if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025652 $as_echo_n "(cached) " >&6
25653else
25654 ac_check_lib_save_LIBS=$LIBS
25655LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025657/* end confdefs.h. */
25658
25659/* Override any GCC internal prototype to avoid an error.
25660 Use char because int might match the return type of a GCC
25661 builtin and then its argument prototype would still apply. */
25662#ifdef __cplusplus
25663extern "C"
25664#endif
25665char XShapeCombineMask ();
25666int
25667main ()
25668{
25669return XShapeCombineMask ();
25670 ;
25671 return 0;
25672}
25673_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025674if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025675 ac_cv_lib_Xext_XShapeCombineMask=yes
25676else
cristy8b350f62009-11-15 23:12:43 +000025677 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025678fi
cristy8b350f62009-11-15 23:12:43 +000025679rm -f core conftest.err conftest.$ac_objext \
25680 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025681LIBS=$ac_check_lib_save_LIBS
25682fi
cristy8b350f62009-11-15 23:12:43 +000025683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025684$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025685if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025686 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025687$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025688
25689fi
25690
cristy8b350f62009-11-15 23:12:43 +000025691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025692$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025693if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025694 $as_echo_n "(cached) " >&6
25695else
25696 ac_check_lib_save_LIBS=$LIBS
25697LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025699/* end confdefs.h. */
25700
25701/* Override any GCC internal prototype to avoid an error.
25702 Use char because int might match the return type of a GCC
25703 builtin and then its argument prototype would still apply. */
25704#ifdef __cplusplus
25705extern "C"
25706#endif
25707char XtSetEventDispatcher ();
25708int
25709main ()
25710{
25711return XtSetEventDispatcher ();
25712 ;
25713 return 0;
25714}
25715_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025716if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025717 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25718else
cristy8b350f62009-11-15 23:12:43 +000025719 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025720fi
cristy8b350f62009-11-15 23:12:43 +000025721rm -f core conftest.err conftest.$ac_objext \
25722 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025723LIBS=$ac_check_lib_save_LIBS
25724fi
cristy8b350f62009-11-15 23:12:43 +000025725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025726$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025727if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025728 XT_LIBS='-lXt'
25729fi
25730
25731 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25732fi
25733if test "$no_x" != 'yes'; then
25734 have_x='yes'
25735else
25736 have_x='no'
25737fi
25738 if test "$have_x" = 'yes'; then
25739 X11_DELEGATE_TRUE=
25740 X11_DELEGATE_FALSE='#'
25741else
25742 X11_DELEGATE_TRUE='#'
25743 X11_DELEGATE_FALSE=
25744fi
25745
25746
25747
25748
25749
25750#
25751# Check for ZLIB
25752#
25753
25754# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025755if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025756 withval=$with_zlib; with_zlib=$withval
25757else
25758 with_zlib='yes'
25759fi
25760
25761
25762if test "$with_zlib" != 'yes'; then
25763 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25764fi
25765
25766have_zlib='no'
25767ZLIB_LIBS=''
25768if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025770$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025772$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025774$as_echo "" >&6; }
25775 ZLIB_LIBS=''
25776 failed=0
25777 passed=0
cristy8b350f62009-11-15 23:12:43 +000025778 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25779if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025780 passed=`expr $passed + 1`
25781else
25782 failed=`expr $failed + 1`
25783fi
25784
25785
cristy8b350f62009-11-15 23:12:43 +000025786 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25787if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025788 passed=`expr $passed + 1`
25789else
25790 failed=`expr $failed + 1`
25791fi
25792
25793
cristy8b350f62009-11-15 23:12:43 +000025794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025795$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025796if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025797 $as_echo_n "(cached) " >&6
25798else
25799 ac_check_lib_save_LIBS=$LIBS
25800LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025802/* end confdefs.h. */
25803
25804/* Override any GCC internal prototype to avoid an error.
25805 Use char because int might match the return type of a GCC
25806 builtin and then its argument prototype would still apply. */
25807#ifdef __cplusplus
25808extern "C"
25809#endif
25810char compress ();
25811int
25812main ()
25813{
25814return compress ();
25815 ;
25816 return 0;
25817}
25818_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025819if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025820 ac_cv_lib_z_compress=yes
25821else
cristy8b350f62009-11-15 23:12:43 +000025822 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000025823fi
cristy8b350f62009-11-15 23:12:43 +000025824rm -f core conftest.err conftest.$ac_objext \
25825 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025826LIBS=$ac_check_lib_save_LIBS
25827fi
cristy8b350f62009-11-15 23:12:43 +000025828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025829$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025830if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025831 passed=`expr $passed + 1`
25832else
25833 failed=`expr $failed + 1`
25834fi
25835
cristy8b350f62009-11-15 23:12:43 +000025836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025837$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025838if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025839 $as_echo_n "(cached) " >&6
25840else
25841 ac_check_lib_save_LIBS=$LIBS
25842LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025844/* end confdefs.h. */
25845
25846/* Override any GCC internal prototype to avoid an error.
25847 Use char because int might match the return type of a GCC
25848 builtin and then its argument prototype would still apply. */
25849#ifdef __cplusplus
25850extern "C"
25851#endif
25852char uncompress ();
25853int
25854main ()
25855{
25856return uncompress ();
25857 ;
25858 return 0;
25859}
25860_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025861if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025862 ac_cv_lib_z_uncompress=yes
25863else
cristy8b350f62009-11-15 23:12:43 +000025864 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000025865fi
cristy8b350f62009-11-15 23:12:43 +000025866rm -f core conftest.err conftest.$ac_objext \
25867 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025868LIBS=$ac_check_lib_save_LIBS
25869fi
cristy8b350f62009-11-15 23:12:43 +000025870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025871$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025872if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025873 passed=`expr $passed + 1`
25874else
25875 failed=`expr $failed + 1`
25876fi
25877
cristy8b350f62009-11-15 23:12:43 +000025878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025879$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025880if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025881 $as_echo_n "(cached) " >&6
25882else
25883 ac_check_lib_save_LIBS=$LIBS
25884LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025886/* end confdefs.h. */
25887
25888/* Override any GCC internal prototype to avoid an error.
25889 Use char because int might match the return type of a GCC
25890 builtin and then its argument prototype would still apply. */
25891#ifdef __cplusplus
25892extern "C"
25893#endif
25894char deflate ();
25895int
25896main ()
25897{
25898return deflate ();
25899 ;
25900 return 0;
25901}
25902_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025903if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025904 ac_cv_lib_z_deflate=yes
25905else
cristy8b350f62009-11-15 23:12:43 +000025906 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000025907fi
cristy8b350f62009-11-15 23:12:43 +000025908rm -f core conftest.err conftest.$ac_objext \
25909 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025910LIBS=$ac_check_lib_save_LIBS
25911fi
cristy8b350f62009-11-15 23:12:43 +000025912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025913$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025914if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025915 passed=`expr $passed + 1`
25916else
25917 failed=`expr $failed + 1`
25918fi
25919
cristy8b350f62009-11-15 23:12:43 +000025920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025921$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025922if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025923 $as_echo_n "(cached) " >&6
25924else
25925 ac_check_lib_save_LIBS=$LIBS
25926LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025928/* end confdefs.h. */
25929
25930/* Override any GCC internal prototype to avoid an error.
25931 Use char because int might match the return type of a GCC
25932 builtin and then its argument prototype would still apply. */
25933#ifdef __cplusplus
25934extern "C"
25935#endif
25936char inflate ();
25937int
25938main ()
25939{
25940return inflate ();
25941 ;
25942 return 0;
25943}
25944_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025945if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025946 ac_cv_lib_z_inflate=yes
25947else
cristy8b350f62009-11-15 23:12:43 +000025948 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000025949fi
cristy8b350f62009-11-15 23:12:43 +000025950rm -f core conftest.err conftest.$ac_objext \
25951 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025952LIBS=$ac_check_lib_save_LIBS
25953fi
cristy8b350f62009-11-15 23:12:43 +000025954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025955$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025956if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025957 passed=`expr $passed + 1`
25958else
25959 failed=`expr $failed + 1`
25960fi
25961
cristy8b350f62009-11-15 23:12:43 +000025962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025963$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025964if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025965 $as_echo_n "(cached) " >&6
25966else
25967 ac_check_lib_save_LIBS=$LIBS
25968LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025970/* end confdefs.h. */
25971
25972/* Override any GCC internal prototype to avoid an error.
25973 Use char because int might match the return type of a GCC
25974 builtin and then its argument prototype would still apply. */
25975#ifdef __cplusplus
25976extern "C"
25977#endif
25978char gzseek ();
25979int
25980main ()
25981{
25982return gzseek ();
25983 ;
25984 return 0;
25985}
25986_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025987if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025988 ac_cv_lib_z_gzseek=yes
25989else
cristy8b350f62009-11-15 23:12:43 +000025990 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000025991fi
cristy8b350f62009-11-15 23:12:43 +000025992rm -f core conftest.err conftest.$ac_objext \
25993 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025994LIBS=$ac_check_lib_save_LIBS
25995fi
cristy8b350f62009-11-15 23:12:43 +000025996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000025997$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025998if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025999 passed=`expr $passed + 1`
26000else
26001 failed=`expr $failed + 1`
26002fi
26003
cristy8b350f62009-11-15 23:12:43 +000026004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026005$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026006if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026007 $as_echo_n "(cached) " >&6
26008else
26009 ac_check_lib_save_LIBS=$LIBS
26010LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026012/* end confdefs.h. */
26013
26014/* Override any GCC internal prototype to avoid an error.
26015 Use char because int might match the return type of a GCC
26016 builtin and then its argument prototype would still apply. */
26017#ifdef __cplusplus
26018extern "C"
26019#endif
26020char gztell ();
26021int
26022main ()
26023{
26024return gztell ();
26025 ;
26026 return 0;
26027}
26028_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026029if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026030 ac_cv_lib_z_gztell=yes
26031else
cristy8b350f62009-11-15 23:12:43 +000026032 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026033fi
cristy8b350f62009-11-15 23:12:43 +000026034rm -f core conftest.err conftest.$ac_objext \
26035 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026036LIBS=$ac_check_lib_save_LIBS
26037fi
cristy8b350f62009-11-15 23:12:43 +000026038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026039$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026040if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026041 passed=`expr $passed + 1`
26042else
26043 failed=`expr $failed + 1`
26044fi
26045
cristy8b350f62009-11-15 23:12:43 +000026046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026047$as_echo_n "checking if ZLIB package is complete... " >&6; }
26048 if test $passed -gt 0; then
26049 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026051$as_echo "no -- some components failed test" >&6; }
26052 have_zlib='no (failed tests)'
26053 else
26054 ZLIB_LIBS='-lz'
26055 LIBS="$ZLIB_LIBS $LIBS"
26056
cristy8b350f62009-11-15 23:12:43 +000026057$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026058
cristy8b350f62009-11-15 23:12:43 +000026059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026060$as_echo "yes" >&6; }
26061 have_zlib='yes'
26062 fi
26063 else
cristy8b350f62009-11-15 23:12:43 +000026064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026065$as_echo "no" >&6; }
26066 fi
26067fi
26068 if test "$have_zlib" = 'yes'; then
26069 ZLIB_DELEGATE_TRUE=
26070 ZLIB_DELEGATE_FALSE='#'
26071else
26072 ZLIB_DELEGATE_TRUE='#'
26073 ZLIB_DELEGATE_FALSE=
26074fi
26075
26076
26077
26078#
26079# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26080#
26081LIB_DL=''
26082if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026084$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026085if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026086 $as_echo_n "(cached) " >&6
26087else
26088 ac_check_lib_save_LIBS=$LIBS
26089LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026091/* end confdefs.h. */
26092
26093/* Override any GCC internal prototype to avoid an error.
26094 Use char because int might match the return type of a GCC
26095 builtin and then its argument prototype would still apply. */
26096#ifdef __cplusplus
26097extern "C"
26098#endif
26099char dlopen ();
26100int
26101main ()
26102{
26103return dlopen ();
26104 ;
26105 return 0;
26106}
26107_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026108if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026109 ac_cv_lib_dl_dlopen=yes
26110else
cristy8b350f62009-11-15 23:12:43 +000026111 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026112fi
cristy8b350f62009-11-15 23:12:43 +000026113rm -f core conftest.err conftest.$ac_objext \
26114 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026115LIBS=$ac_check_lib_save_LIBS
26116fi
cristy8b350f62009-11-15 23:12:43 +000026117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026118$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026119if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026120 LIB_DL='-ldl'
26121fi
26122
26123 LIBS="$LIB_DL $LIBS"
26124fi
26125
26126
26127
26128#
26129# Check for Autotrace delegate library.
26130#
26131
26132# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026133if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026134 withval=$with_autotrace; with_autotrace=$withval
26135else
26136 with_autotrace='no'
26137fi
26138
26139
26140if test "$with_autotrace" != 'yes'; then
26141 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26142fi
26143
26144have_autotrace='no'
26145AUTOTRACE_CFLAGS=""
26146AUTOTRACE_LIBS=""
26147AUTOTRACE_PKG=""
26148if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026150$as_echo "-------------------------------------------------------------" >&6; }
26151
26152pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000026154$as_echo_n "checking for AUTOTRACE... " >&6; }
26155
26156if test -n "$AUTOTRACE_CFLAGS"; then
26157 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26158 elif test -n "$PKG_CONFIG"; then
26159 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026160 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026161 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26162 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26164 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026165 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26166else
26167 pkg_failed=yes
26168fi
26169 else
26170 pkg_failed=untried
26171fi
26172if test -n "$AUTOTRACE_LIBS"; then
26173 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26174 elif test -n "$PKG_CONFIG"; then
26175 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026176 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026177 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26178 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26180 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026181 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26182else
26183 pkg_failed=yes
26184fi
26185 else
26186 pkg_failed=untried
26187fi
26188
26189
26190
26191if test $pkg_failed = yes; then
26192
26193if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26194 _pkg_short_errors_supported=yes
26195else
26196 _pkg_short_errors_supported=no
26197fi
26198 if test $_pkg_short_errors_supported = yes; then
26199 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26200 else
26201 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26202 fi
26203 # Put the nasty error message in config.log where it belongs
26204 echo "$AUTOTRACE_PKG_ERRORS" >&5
26205
cristy8b350f62009-11-15 23:12:43 +000026206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026207$as_echo "no" >&6; }
26208 have_autotrace=no
26209elif test $pkg_failed = untried; then
26210 have_autotrace=no
26211else
26212 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26213 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000026214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026215$as_echo "yes" >&6; }
26216 have_autotrace=yes
26217fi
cristy8b350f62009-11-15 23:12:43 +000026218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026219$as_echo "" >&6; }
26220fi
26221
26222if test "$have_autotrace" = 'yes'; then
26223 failed=0
26224
cristy8b350f62009-11-15 23:12:43 +000026225$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026226
26227 if test "$with_modules" = 'no'; then
26228 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26229 fi
26230fi
26231
26232 if test "$have_autotrace" = 'yes'; then
26233 AUTOTRACE_DELEGATE_TRUE=
26234 AUTOTRACE_DELEGATE_FALSE='#'
26235else
26236 AUTOTRACE_DELEGATE_TRUE='#'
26237 AUTOTRACE_DELEGATE_FALSE=
26238fi
26239
26240
26241
26242
26243
26244#
26245# Check for Display Postscript delegate library.
26246#
26247
26248# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000026249if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026250 withval=$with_dps; with_dps=$withval
26251else
26252 with_dps='yes'
26253fi
26254
26255
26256if test "$with_dps" != 'yes'; then
26257 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26258fi
26259
26260have_dps='no'
26261DPS_LIBS=''
26262if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026264$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026266$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026268$as_echo "" >&6; }
26269 failed=0
26270 passed=0
26271 PERSIST_CPPFLAGS="$CPPFLAGS"
26272 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000026273 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26274if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026275 passed=`expr $passed + 1`
26276else
26277 failed=`expr $failed + 1`
26278fi
26279
26280
26281 # DPS issues:
26282 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26283 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26284 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26285 # ImageMagick itself doesn't use -lXt.
26286 have_libdps='no'
26287 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000026288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026289$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026290if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026291 $as_echo_n "(cached) " >&6
26292else
26293 ac_check_lib_save_LIBS=$LIBS
26294LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026296/* end confdefs.h. */
26297
26298/* Override any GCC internal prototype to avoid an error.
26299 Use char because int might match the return type of a GCC
26300 builtin and then its argument prototype would still apply. */
26301#ifdef __cplusplus
26302extern "C"
26303#endif
26304char DPSInitialize ();
26305int
26306main ()
26307{
26308return DPSInitialize ();
26309 ;
26310 return 0;
26311}
26312_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026313if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026314 ac_cv_lib_dps_DPSInitialize=yes
26315else
cristy8b350f62009-11-15 23:12:43 +000026316 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026317fi
cristy8b350f62009-11-15 23:12:43 +000026318rm -f core conftest.err conftest.$ac_objext \
26319 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026320LIBS=$ac_check_lib_save_LIBS
26321fi
cristy8b350f62009-11-15 23:12:43 +000026322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026323$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026324if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026325 have_libdps='yes'
26326else
26327 have_libdps='no'
26328fi
26329
26330 if test "$have_libdps" != 'yes'; then
26331 # Unset cache variable so we can try again.
26332 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000026333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026334$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026335if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026336 $as_echo_n "(cached) " >&6
26337else
26338 ac_check_lib_save_LIBS=$LIBS
26339LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026341/* end confdefs.h. */
26342
26343/* Override any GCC internal prototype to avoid an error.
26344 Use char because int might match the return type of a GCC
26345 builtin and then its argument prototype would still apply. */
26346#ifdef __cplusplus
26347extern "C"
26348#endif
26349char DPSInitialize ();
26350int
26351main ()
26352{
26353return DPSInitialize ();
26354 ;
26355 return 0;
26356}
26357_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026358if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026359 ac_cv_lib_dps_DPSInitialize=yes
26360else
cristy8b350f62009-11-15 23:12:43 +000026361 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026362fi
cristy8b350f62009-11-15 23:12:43 +000026363rm -f core conftest.err conftest.$ac_objext \
26364 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026365LIBS=$ac_check_lib_save_LIBS
26366fi
cristy8b350f62009-11-15 23:12:43 +000026367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026368$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026369if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026370 have_libdps='yes'
26371else
26372 have_libdps='no'
26373fi
26374
26375 if test "$have_libdps" = 'yes'; then
26376 LIBDPS_XT='-lXt'
26377 fi
26378 fi
26379 if test "$have_libdps" = 'yes'; then
26380 passed=`expr $passed + 1`
26381 else
26382 failed=`expr $failed + 1`
26383 fi
cristy8b350f62009-11-15 23:12:43 +000026384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026385$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026386if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026387 $as_echo_n "(cached) " >&6
26388else
26389 ac_check_lib_save_LIBS=$LIBS
26390LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026392/* end confdefs.h. */
26393
26394/* Override any GCC internal prototype to avoid an error.
26395 Use char because int might match the return type of a GCC
26396 builtin and then its argument prototype would still apply. */
26397#ifdef __cplusplus
26398extern "C"
26399#endif
26400char XDPSPixelsPerPoint ();
26401int
26402main ()
26403{
26404return XDPSPixelsPerPoint ();
26405 ;
26406 return 0;
26407}
26408_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026409if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026410 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26411else
cristy8b350f62009-11-15 23:12:43 +000026412 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000026413fi
cristy8b350f62009-11-15 23:12:43 +000026414rm -f core conftest.err conftest.$ac_objext \
26415 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026416LIBS=$ac_check_lib_save_LIBS
26417fi
cristy8b350f62009-11-15 23:12:43 +000026418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000026419$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026420if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026421 passed=`expr $passed + 1`
26422else
26423 failed=`expr $failed + 1`
26424fi
26425
cristy8b350f62009-11-15 23:12:43 +000026426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026427$as_echo_n "checking if DPS package is complete... " >&6; }
26428 if test $passed -gt 0; then
26429 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026431$as_echo "no -- some components failed test" >&6; }
26432 have_dps='no (failed tests)'
26433 CPPFLAGS="$PERSIST_CPPFLAGS"
26434 else
26435 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26436 LIBS="$DPS_LIBS $LIBS"
26437
cristy8b350f62009-11-15 23:12:43 +000026438$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026439
cristy8b350f62009-11-15 23:12:43 +000026440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026441$as_echo "yes" >&6; }
26442 have_dps='yes'
26443 fi
26444 else
cristy8b350f62009-11-15 23:12:43 +000026445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026446$as_echo "no" >&6; }
26447 CPPFLAGS=$PERSIST_CPPFLAGS
26448 fi
26449fi
26450 if test "$have_dps" = 'yes'; then
26451 DPS_DELEGATE_TRUE=
26452 DPS_DELEGATE_FALSE='#'
26453else
26454 DPS_DELEGATE_TRUE='#'
26455 DPS_DELEGATE_FALSE=
26456fi
26457
26458
26459
26460
26461#
26462# Check for DJVU delegate library.
26463#
26464
26465# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000026466if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026467 withval=$with_djvu; with_djvu=$withval
26468else
26469 with_djvu='yes'
26470fi
26471
26472
26473if test "$with_djvu" != 'yes'; then
26474 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26475fi
26476
26477have_djvu='no'
26478DJVU_LIBS=''
26479if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026481$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000026483$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026485$as_echo "" >&6; }
26486 failed=0
26487 passed=0
cristy8b350f62009-11-15 23:12:43 +000026488 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26489if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026490 passed=`expr $passed + 1`
26491else
26492 failed=`expr $failed + 1`
26493fi
26494
26495
cristy8b350f62009-11-15 23:12:43 +000026496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000026497$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026498if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026499 $as_echo_n "(cached) " >&6
26500else
26501 ac_check_lib_save_LIBS=$LIBS
26502LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026504/* end confdefs.h. */
26505
26506/* Override any GCC internal prototype to avoid an error.
26507 Use char because int might match the return type of a GCC
26508 builtin and then its argument prototype would still apply. */
26509#ifdef __cplusplus
26510extern "C"
26511#endif
26512char ddjvu_context_create ();
26513int
26514main ()
26515{
26516return ddjvu_context_create ();
26517 ;
26518 return 0;
26519}
26520_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026521if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026522 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26523else
cristy8b350f62009-11-15 23:12:43 +000026524 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000026525fi
cristy8b350f62009-11-15 23:12:43 +000026526rm -f core conftest.err conftest.$ac_objext \
26527 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026528LIBS=$ac_check_lib_save_LIBS
26529fi
cristy8b350f62009-11-15 23:12:43 +000026530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000026531$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026532if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026533 passed=`expr $passed + 1`
26534else
26535 failed=`expr $failed + 1`
26536fi
26537
cristy8b350f62009-11-15 23:12:43 +000026538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026539$as_echo_n "checking if DJVU package is complete... " >&6; }
26540 if test $passed -gt 0; then
26541 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026543$as_echo "no -- some components failed test" >&6; }
26544 have_djvu='no (failed tests)'
26545 else
26546 DJVU_LIBS='-ldjvulibre'
26547 LIBS="$DJVU_LIBS $LIBS"
26548
cristy8b350f62009-11-15 23:12:43 +000026549$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026550
cristy8b350f62009-11-15 23:12:43 +000026551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026552$as_echo "yes" >&6; }
26553 have_djvu='yes'
26554 fi
26555 else
cristy8b350f62009-11-15 23:12:43 +000026556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026557$as_echo "no" >&6; }
26558 fi
26559fi
26560 if test "$have_djvu" = 'yes'; then
26561 DJVU_DELEGATE_TRUE=
26562 DJVU_DELEGATE_FALSE='#'
26563else
26564 DJVU_DELEGATE_TRUE='#'
26565 DJVU_DELEGATE_FALSE=
26566fi
26567
26568
26569
26570
26571#
cristy430a7312010-01-21 20:44:04 +000026572# Set DejaVu font directory.
26573#
26574
26575# Check whether --with-dejavu-font-dir was given.
26576if test "${with_dejavu_font_dir+set}" = set; then :
26577 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26578else
26579 with_dejavu_font_dir='default'
26580fi
26581
26582
26583if test "$with_dejavu_font_dir" != 'default'; then
26584 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26585fi
26586
26587
26588#
cristy3ed852e2009-09-05 21:47:34 +000026589# Check for FFTW delegate library.
26590#
26591
26592# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000026593if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026594 withval=$with_fftw; with_fftw=$withval
26595else
26596 with_fftw='yes'
26597fi
26598
26599
26600if test "$with_fftw" != 'yes'; then
26601 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26602fi
26603
26604have_fftw='no'
26605FFTW_LIBS=''
26606if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026608$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026610$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026612$as_echo "" >&6; }
26613 failed=0
26614 passed=0
cristy8b350f62009-11-15 23:12:43 +000026615 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26616if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026617 passed=`expr $passed + 1`
26618else
26619 failed=`expr $failed + 1`
26620fi
26621
26622
cristy8b350f62009-11-15 23:12:43 +000026623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026624$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026625if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026626 $as_echo_n "(cached) " >&6
26627else
26628 ac_check_lib_save_LIBS=$LIBS
26629LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026631/* end confdefs.h. */
26632
26633/* Override any GCC internal prototype to avoid an error.
26634 Use char because int might match the return type of a GCC
26635 builtin and then its argument prototype would still apply. */
26636#ifdef __cplusplus
26637extern "C"
26638#endif
26639char fftw_execute ();
26640int
26641main ()
26642{
26643return fftw_execute ();
26644 ;
26645 return 0;
26646}
26647_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026648if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026649 ac_cv_lib_fftw3_fftw_execute=yes
26650else
cristy8b350f62009-11-15 23:12:43 +000026651 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026652fi
cristy8b350f62009-11-15 23:12:43 +000026653rm -f core conftest.err conftest.$ac_objext \
26654 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026655LIBS=$ac_check_lib_save_LIBS
26656fi
cristy8b350f62009-11-15 23:12:43 +000026657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026658$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026659if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026660 passed=`expr $passed + 1`
26661else
26662 failed=`expr $failed + 1`
26663fi
26664
cristy8b350f62009-11-15 23:12:43 +000026665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026666$as_echo_n "checking if FFTW package is complete... " >&6; }
26667 if test $passed -gt 0; then
26668 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026670$as_echo "no -- some components failed test" >&6; }
26671 have_fftw='no (failed tests)'
26672 else
26673 FFTW_LIBS='-lfftw3'
26674 LIBS="$FFTW_LIBS $LIBS"
26675
cristy8b350f62009-11-15 23:12:43 +000026676$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026677
cristy8b350f62009-11-15 23:12:43 +000026678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026679$as_echo "yes" >&6; }
26680 have_fftw='yes'
26681 fi
26682 else
cristy8b350f62009-11-15 23:12:43 +000026683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026684$as_echo "no" >&6; }
26685 fi
26686fi
26687 if test "$have_fftw" = 'yes'; then
26688 FFTW_DELEGATE_TRUE=
26689 FFTW_DELEGATE_FALSE='#'
26690else
26691 FFTW_DELEGATE_TRUE='#'
26692 FFTW_DELEGATE_FALSE=
26693fi
26694
26695
26696
26697
26698#
26699# Check for FlashPIX delegate library.
26700#
26701
26702# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026703if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026704 withval=$with_fpx; with_fpx=$withval
26705else
26706 with_fpx='yes'
26707fi
26708
26709
26710if test "$with_fpx" != 'yes'; then
26711 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26712fi
26713
26714have_fpx='no'
26715FPX_LIBS=''
26716if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026718$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026720$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026722$as_echo "" >&6; }
26723 failed=0
26724 passed=0
26725 ac_ext=cpp
26726ac_cpp='$CXXCPP $CPPFLAGS'
26727ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26728ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26729ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26730
26731
cristy8b350f62009-11-15 23:12:43 +000026732ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26733if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026734 passed=`expr $passed + 1`
26735else
26736 failed=`expr $failed + 1`
26737fi
26738
26739
cristy8b350f62009-11-15 23:12:43 +000026740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026741$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026742if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026743 $as_echo_n "(cached) " >&6
26744else
26745 ac_check_lib_save_LIBS=$LIBS
26746LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026748/* end confdefs.h. */
26749
26750/* Override any GCC internal prototype to avoid an error.
26751 Use char because int might match the return type of a GCC
26752 builtin and then its argument prototype would still apply. */
26753#ifdef __cplusplus
26754extern "C"
26755#endif
26756char FPX_OpenImageByFilename ();
26757int
26758main ()
26759{
26760return FPX_OpenImageByFilename ();
26761 ;
26762 return 0;
26763}
26764_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026765if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026766 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26767else
cristy8b350f62009-11-15 23:12:43 +000026768 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026769fi
cristy8b350f62009-11-15 23:12:43 +000026770rm -f core conftest.err conftest.$ac_objext \
26771 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026772LIBS=$ac_check_lib_save_LIBS
26773fi
cristy8b350f62009-11-15 23:12:43 +000026774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026775$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026776if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026777 passed=`expr $passed + 1`
26778else
26779 failed=`expr $failed + 1`
26780fi
26781
26782 ac_ext=c
26783ac_cpp='$CPP $CPPFLAGS'
26784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26786ac_compiler_gnu=$ac_cv_c_compiler_gnu
26787
cristy8b350f62009-11-15 23:12:43 +000026788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026789$as_echo_n "checking if FlashPIX package is complete... " >&6; }
26790 if test $passed -gt 0; then
26791 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026793$as_echo "no -- some components failed test" >&6; }
26794 have_fpx='no (failed tests)'
26795 else
26796 FPX_LIBS='-lfpx'
26797
cristy8b350f62009-11-15 23:12:43 +000026798$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026799
cristy8b350f62009-11-15 23:12:43 +000026800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026801$as_echo "yes" >&6; }
26802 have_fpx='yes'
26803 PERLMAINCC="$CXX"
26804 fi
26805 else
cristy8b350f62009-11-15 23:12:43 +000026806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026807$as_echo "no" >&6; }
26808 fi
26809fi
26810 if test "$have_fpx" = 'yes'; then
26811 FPX_DELEGATE_TRUE=
26812 FPX_DELEGATE_FALSE='#'
26813else
26814 FPX_DELEGATE_TRUE='#'
26815 FPX_DELEGATE_FALSE=
26816fi
26817
26818
26819
26820
26821#
26822# Check for fontconfig delegate library.
26823#
26824
26825# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000026826if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026827 withval=$with_fontconfig; with_fontconfig=$withval
26828else
26829 with_fontconfig=$have_x
26830fi
26831
26832
26833if test "$with_fontconfig" != 'yes'; then
26834 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26835fi
26836
26837have_fontconfig='no'
26838FONTCONFIG_CFLAGS=""
26839FONTCONFIG_LIBS=""
26840FONTCONFIG_PKG=""
26841if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026843$as_echo "-------------------------------------------------------------" >&6; }
26844
26845pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026847$as_echo_n "checking for FONTCONFIG... " >&6; }
26848
26849if test -n "$FONTCONFIG_CFLAGS"; then
26850 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26851 elif test -n "$PKG_CONFIG"; then
26852 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026853 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026854 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26855 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26857 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026858 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26859else
26860 pkg_failed=yes
26861fi
26862 else
26863 pkg_failed=untried
26864fi
26865if test -n "$FONTCONFIG_LIBS"; then
26866 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
26867 elif test -n "$PKG_CONFIG"; then
26868 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026869 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026870 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26871 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26873 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026874 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
26875else
26876 pkg_failed=yes
26877fi
26878 else
26879 pkg_failed=untried
26880fi
26881
26882
26883
26884if test $pkg_failed = yes; then
26885
26886if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26887 _pkg_short_errors_supported=yes
26888else
26889 _pkg_short_errors_supported=no
26890fi
26891 if test $_pkg_short_errors_supported = yes; then
26892 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
26893 else
26894 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
26895 fi
26896 # Put the nasty error message in config.log where it belongs
26897 echo "$FONTCONFIG_PKG_ERRORS" >&5
26898
cristy8b350f62009-11-15 23:12:43 +000026899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026900$as_echo "no" >&6; }
26901 have_fontconfig=no
26902elif test $pkg_failed = untried; then
26903 have_fontconfig=no
26904else
26905 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
26906 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000026907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026908$as_echo "yes" >&6; }
26909 have_fontconfig=yes
26910fi
cristy8b350f62009-11-15 23:12:43 +000026911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026912$as_echo "" >&6; }
26913fi
26914
26915if test "$have_fontconfig" = 'yes'; then
26916
cristy8b350f62009-11-15 23:12:43 +000026917$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026918
cristyd09bcf92010-03-25 03:04:45 +000026919 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000026920 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000026921 fi
cristy3ed852e2009-09-05 21:47:34 +000026922fi
26923
26924 if test "$have_fontconfig" = 'yes'; then
26925 FONTCONFIG_DELEGATE_TRUE=
26926 FONTCONFIG_DELEGATE_FALSE='#'
26927else
26928 FONTCONFIG_DELEGATE_TRUE='#'
26929 FONTCONFIG_DELEGATE_FALSE=
26930fi
26931
26932
26933
26934
26935
26936#
26937# Check for freetype delegate library.
26938#
26939
26940# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000026941if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026942 withval=$with_freetype; with_freetype=$withval
26943else
26944 with_freetype='yes'
26945fi
26946
26947
26948
26949if test "$with_freetype" != 'yes'; then
26950 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
26951fi
26952
26953have_freetype='no'
26954FREETYPE_LIBS=''
26955if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026957$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000026959$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026961$as_echo "" >&6; }
26962 failed=0
26963 passed=0
cristy66291112009-10-03 22:44:36 +000026964 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000026965 PERSIST_CPPFLAGS="$CPPFLAGS"
26966 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
26967 :
26968 else
26969 freetype_config=''
26970 for ac_prog in freetype-config
26971do
26972 # Extract the first word of "$ac_prog", so it can be a program name with args.
26973set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026975$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026976if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026977 $as_echo_n "(cached) " >&6
26978else
26979 if test -n "$freetype_config"; then
26980 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
26981else
26982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26983for as_dir in $PATH
26984do
26985 IFS=$as_save_IFS
26986 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026987 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26989 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026991 break 2
26992 fi
26993done
cristy8b350f62009-11-15 23:12:43 +000026994 done
cristy3ed852e2009-09-05 21:47:34 +000026995IFS=$as_save_IFS
26996
26997fi
26998fi
26999freetype_config=$ac_cv_prog_freetype_config
27000if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027002$as_echo "$freetype_config" >&6; }
27003else
cristy8b350f62009-11-15 23:12:43 +000027004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027005$as_echo "no" >&6; }
27006fi
27007
27008
27009 test -n "$freetype_config" && break
27010done
27011 if test -n "$freetype_config"; then
27012 freetype_cflags=`$freetype_config --cflags`
27013 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027014 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027015 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27016 fi
27017 fi
27018
27019 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027021$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027022if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027023 $as_echo_n "(cached) " >&6
27024else
27025 ac_check_lib_save_LIBS=$LIBS
27026LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027028/* end confdefs.h. */
27029
27030/* Override any GCC internal prototype to avoid an error.
27031 Use char because int might match the return type of a GCC
27032 builtin and then its argument prototype would still apply. */
27033#ifdef __cplusplus
27034extern "C"
27035#endif
27036char FT_Init_FreeType ();
27037int
27038main ()
27039{
27040return FT_Init_FreeType ();
27041 ;
27042 return 0;
27043}
27044_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027045if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027046 ac_cv_lib_freetype_FT_Init_FreeType=yes
27047else
cristy8b350f62009-11-15 23:12:43 +000027048 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027049fi
cristy8b350f62009-11-15 23:12:43 +000027050rm -f core conftest.err conftest.$ac_objext \
27051 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027052LIBS=$ac_check_lib_save_LIBS
27053fi
cristy8b350f62009-11-15 23:12:43 +000027054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027055$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027056if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027057 FREETYPE_LIBS='-lfreetype'
27058fi
27059
27060 if test "$FREETYPE_LIBS" != ''; then
27061 passed=`expr $passed + 1`
27062 else
27063 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027064 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027065 fi
27066 fi
27067
cristy8b350f62009-11-15 23:12:43 +000027068 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27069if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027070 FT2BUILD_H='#include <ft2build.h>'
27071else
27072 ft2build=''
27073fi
27074
27075
cristy8b350f62009-11-15 23:12:43 +000027076 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27077"
27078if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027079 have_freetype_h='yes'
27080else
27081 have_freetype_h='no'
27082fi
27083
27084
27085 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27086 passed=`expr $passed + 1`
27087 else
27088 failed=`expr $failed + 1`
27089 CPPFLAGS="$PERSIST_CPPFLAGS"
27090 fi
27091
cristy8b350f62009-11-15 23:12:43 +000027092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027093$as_echo_n "checking if FreeType package is complete... " >&6; }
27094 if test $passed -gt 0; then
27095 if test $failed -gt 0; then
27096 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027098$as_echo "no -- some components failed test" >&6; }
27099 have_freetype='no (failed tests)'
27100 else
27101 LIBS="$FREETYPE_LIBS $LIBS"
27102
cristy8b350f62009-11-15 23:12:43 +000027103$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027104
27105 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27106
cristy8b350f62009-11-15 23:12:43 +000027107$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027108
27109 fi
cristy8b350f62009-11-15 23:12:43 +000027110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027111$as_echo "yes" >&6; }
27112 have_freetype='yes'
27113 fi
27114 else
cristy8b350f62009-11-15 23:12:43 +000027115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027116$as_echo "no" >&6; }
27117 fi
27118fi
27119 if test "$have_freetype" = 'yes'; then
27120 FREETYPE_DELEGATE_TRUE=
27121 FREETYPE_DELEGATE_FALSE='#'
27122else
27123 FREETYPE_DELEGATE_TRUE='#'
27124 FREETYPE_DELEGATE_FALSE=
27125fi
27126
27127
27128
27129
27130
27131#
27132# Check for Ghostscript library or framework.
27133#
27134# Test for iapi.h & test for gsapi_new_instance in -lgs
27135# or -framework Ghostscript
27136
27137
27138# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027139if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027140 withval=$with_gslib; with_gslib=$withval
27141else
27142 with_gslib='no'
27143fi
27144
27145
cristyb7931f12009-09-25 10:22:21 +000027146gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027147if test "$with_gslib" != 'yes'; then
27148 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27149fi
27150
27151have_gslib='no'
27152GS_LIBS=''
27153if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027155$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027157$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027159$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027160 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027161 failed=0
27162 passed=0
cristy8b350f62009-11-15 23:12:43 +000027163 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27164if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027165 passed=`expr $passed + 1`
27166else
27167 failed=`expr $failed + 1`
27168fi
27169
27170
cristy8b350f62009-11-15 23:12:43 +000027171 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27172if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027173 passed=`expr $passed + 1`
27174else
27175 failed=`expr $failed + 1`
27176fi
27177
27178
cristy8b350f62009-11-15 23:12:43 +000027179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000027180$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027181if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027182 $as_echo_n "(cached) " >&6
27183else
27184 ac_check_framework_save_LIBS=$LIBS
27185LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027187/* end confdefs.h. */
27188
27189/* Override any GCC internal prototype to avoid an error.
27190 Use char because int might match the return type of a GCC
27191 builtin and then its argument prototype would still apply. */
27192#ifdef __cplusplus
27193extern "C"
27194#endif
27195char gsapi_new_instance ();
27196int
27197main ()
27198{
27199return gsapi_new_instance ();
27200 ;
27201 return 0;
27202}
27203_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027204if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027205 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27206else
cristy8b350f62009-11-15 23:12:43 +000027207 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027208fi
cristy8b350f62009-11-15 23:12:43 +000027209rm -f core conftest.err conftest.$ac_objext \
27210 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027211LIBS=$ac_check_framework_save_LIBS
27212fi
cristy8b350f62009-11-15 23:12:43 +000027213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027214$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027215if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027216 framework=`expr $framework + 1`
27217else
cristy8b350f62009-11-15 23:12:43 +000027218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000027219$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027220if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027221 $as_echo_n "(cached) " >&6
27222else
27223 ac_check_lib_save_LIBS=$LIBS
27224LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027226/* end confdefs.h. */
27227
27228/* Override any GCC internal prototype to avoid an error.
27229 Use char because int might match the return type of a GCC
27230 builtin and then its argument prototype would still apply. */
27231#ifdef __cplusplus
27232extern "C"
27233#endif
27234char gsapi_new_instance ();
27235int
27236main ()
27237{
27238return gsapi_new_instance ();
27239 ;
27240 return 0;
27241}
27242_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027243if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027244 ac_cv_lib_gs_gsapi_new_instance=yes
27245else
cristy8b350f62009-11-15 23:12:43 +000027246 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027247fi
cristy8b350f62009-11-15 23:12:43 +000027248rm -f core conftest.err conftest.$ac_objext \
27249 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027250LIBS=$ac_check_lib_save_LIBS
27251fi
cristy8b350f62009-11-15 23:12:43 +000027252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027253$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027254if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027255 passed=`expr $passed + 1`
27256else
27257 failed=`expr $failed + 1`
27258fi
27259
27260fi
cristy8b350f62009-11-15 23:12:43 +000027261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027262$as_echo_n "checking if Ghostscript package is complete... " >&6; }
27263 if test $passed -gt 0; then
27264 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027266$as_echo "no -- some components failed test" >&6; }
27267 have_gslib='no (failed tests)'
27268 else
27269 if test $framework -gt 0; then
27270 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000027271 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000027272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000027273$as_echo "yes, using framework." >&6; }
27274 else
cristy8b350f62009-11-15 23:12:43 +000027275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000027276$as_echo "yes, using library." >&6; }
27277 GS_LIBS='-lgs'
27278 fi
27279 LIBS="$GS_LIBS $LIBS"
27280
cristy8b350f62009-11-15 23:12:43 +000027281$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027282
27283 have_gslib='yes'
27284 fi
27285 else
cristy8b350f62009-11-15 23:12:43 +000027286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027287$as_echo "no" >&6; }
27288 fi
27289fi
27290 if test "$have_gslib" = 'yes'; then
27291 GS_DELEGATE_TRUE=
27292 GS_DELEGATE_FALSE='#'
27293else
27294 GS_DELEGATE_TRUE='#'
27295 GS_DELEGATE_FALSE=
27296fi
27297
27298
27299
27300# Set default font search path
27301
27302# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000027303if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027304 withval=$with_fontpath; with_fontpath=$withval
27305else
27306 with_fontpath=''
27307fi
27308
27309
27310if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27311 with_fontpath=''
27312else
27313
27314cat >>confdefs.h <<_ACEOF
27315#define MAGICK_FONT_PATH "$with_fontpath"
27316_ACEOF
27317
27318fi
27319if test "$with_fontpath=" != ''; then
27320 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27321fi
27322
27323# Set Ghostscript font directory
27324
27325# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027326if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027327 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27328else
27329 with_gs_font_dir='default'
27330fi
27331
27332
27333if test "$with_gs_font_dir" != 'default'; then
27334 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27335fi
27336
27337
27338#
27339# Check for GVC delegate library.
27340#
27341
27342# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000027343if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027344 withval=$with_gvc; with_gvc=$withval
27345else
27346 with_gvc='yes'
27347fi
27348
27349
27350if test "$with_gvc" != 'yes'; then
27351 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27352fi
27353
27354GVC_PKG=""
27355if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027357$as_echo "-------------------------------------------------------------" >&6; }
27358
27359pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000027361$as_echo_n "checking for GVC... " >&6; }
27362
27363if test -n "$GVC_CFLAGS"; then
27364 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27365 elif test -n "$PKG_CONFIG"; then
27366 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027367 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027368 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27369 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27371 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027372 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27373else
27374 pkg_failed=yes
27375fi
27376 else
27377 pkg_failed=untried
27378fi
27379if test -n "$GVC_LIBS"; then
27380 pkg_cv_GVC_LIBS="$GVC_LIBS"
27381 elif test -n "$PKG_CONFIG"; then
27382 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027383 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027384 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27385 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27387 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027388 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27389else
27390 pkg_failed=yes
27391fi
27392 else
27393 pkg_failed=untried
27394fi
27395
27396
27397
27398if test $pkg_failed = yes; then
27399
27400if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27401 _pkg_short_errors_supported=yes
27402else
27403 _pkg_short_errors_supported=no
27404fi
27405 if test $_pkg_short_errors_supported = yes; then
27406 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27407 else
27408 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27409 fi
27410 # Put the nasty error message in config.log where it belongs
27411 echo "$GVC_PKG_ERRORS" >&5
27412
cristy8b350f62009-11-15 23:12:43 +000027413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027414$as_echo "no" >&6; }
27415 have_gvc=no
27416elif test $pkg_failed = untried; then
27417 have_gvc=no
27418else
27419 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27420 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000027421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027422$as_echo "yes" >&6; }
27423 have_gvc=yes
27424fi
cristy8b350f62009-11-15 23:12:43 +000027425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027426$as_echo "" >&6; }
27427fi
27428
27429if test "$have_gvc" = 'yes'; then
27430
cristy8b350f62009-11-15 23:12:43 +000027431$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027432
27433 if test "$with_modules" = 'no'; then
27434 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27435 fi
27436fi
27437
27438 if test "$have_gvc" = 'yes'; then
27439 GVC_DELEGATE_TRUE=
27440 GVC_DELEGATE_FALSE='#'
27441else
27442 GVC_DELEGATE_TRUE='#'
27443 GVC_DELEGATE_FALSE=
27444fi
27445
27446
27447
27448
27449
27450#
27451# Check for JBIG delegate library.
27452#
27453
27454
27455# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000027456if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027457 withval=$with_jbig; with_jbig=$withval
27458else
27459 with_jbig='yes'
27460fi
27461
27462
27463have_jbig='no'
27464JBIG_LIBS=''
27465if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027467$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027469$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027471$as_echo "" >&6; }
27472 failed=0
27473 passed=0
cristy8b350f62009-11-15 23:12:43 +000027474 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27475if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027476 passed=`expr $passed + 1`
27477else
27478 failed=`expr $failed + 1`
27479fi
27480
27481
cristy8b350f62009-11-15 23:12:43 +000027482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000027483$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027484if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027485 $as_echo_n "(cached) " >&6
27486else
27487 ac_check_lib_save_LIBS=$LIBS
27488LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027490/* end confdefs.h. */
27491
27492/* Override any GCC internal prototype to avoid an error.
27493 Use char because int might match the return type of a GCC
27494 builtin and then its argument prototype would still apply. */
27495#ifdef __cplusplus
27496extern "C"
27497#endif
27498char jbg_dec_init ();
27499int
27500main ()
27501{
27502return jbg_dec_init ();
27503 ;
27504 return 0;
27505}
27506_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027507if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027508 ac_cv_lib_jbig_jbg_dec_init=yes
27509else
cristy8b350f62009-11-15 23:12:43 +000027510 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000027511fi
cristy8b350f62009-11-15 23:12:43 +000027512rm -f core conftest.err conftest.$ac_objext \
27513 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027514LIBS=$ac_check_lib_save_LIBS
27515fi
cristy8b350f62009-11-15 23:12:43 +000027516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000027517$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027518if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027519 passed=`expr $passed + 1`
27520else
27521 failed=`expr $failed + 1`
27522fi
27523
cristy8b350f62009-11-15 23:12:43 +000027524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027525$as_echo_n "checking if JBIG package is complete... " >&6; }
27526 if test $passed -gt 0; then
27527 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027529$as_echo "no -- some components failed test" >&6; }
27530 have_jbig='no (failed tests)'
27531 else
27532 JBIG_LIBS='-ljbig'
27533 LIBS="$JBIG_LIBS $LIBS"
27534
cristy8b350f62009-11-15 23:12:43 +000027535$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027536
cristy8b350f62009-11-15 23:12:43 +000027537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027538$as_echo "yes" >&6; }
27539 have_jbig='yes'
27540 fi
27541 else
cristy8b350f62009-11-15 23:12:43 +000027542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027543$as_echo "no" >&6; }
27544 fi
27545fi
27546 if test "$have_jbig" = 'yes'; then
27547 JBIG_DELEGATE_TRUE=
27548 JBIG_DELEGATE_FALSE='#'
27549else
27550 JBIG_DELEGATE_TRUE='#'
27551 JBIG_DELEGATE_FALSE=
27552fi
27553
27554
27555
27556
27557#
27558# Check for JPEG delegate library.
27559#
27560
27561# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000027562if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027563 withval=$with_jpeg; with_jpeg=$withval
27564else
27565 with_jpeg='yes'
27566fi
27567
27568
27569if test "$with_jpeg" != 'yes'; then
27570 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27571fi
27572
27573have_jpeg='no'
27574JPEG_LIBS=''
27575if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027577$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027579$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027581$as_echo "" >&6; }
27582 failed=0
27583 passed=0
cristy8b350f62009-11-15 23:12:43 +000027584 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27585if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027586 passed=`expr $passed + 1`
27587else
27588 failed=`expr $failed + 1`
27589fi
27590
27591
cristy8b350f62009-11-15 23:12:43 +000027592 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27593if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027594 passed=`expr $passed + 1`
27595else
27596 failed=`expr $failed + 1`
27597fi
27598
27599
cristy8b350f62009-11-15 23:12:43 +000027600 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27601if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027602 passed=`expr $passed + 1`
27603else
27604 failed=`expr $failed + 1`
27605fi
27606
27607
cristy8b350f62009-11-15 23:12:43 +000027608 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27609if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027610 passed=`expr $passed + 1`
27611else
27612 failed=`expr $failed + 1`
27613fi
27614
27615
cristy8b350f62009-11-15 23:12:43 +000027616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027617$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027618if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027619 $as_echo_n "(cached) " >&6
27620else
27621 ac_check_lib_save_LIBS=$LIBS
27622LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027624/* end confdefs.h. */
27625
27626/* Override any GCC internal prototype to avoid an error.
27627 Use char because int might match the return type of a GCC
27628 builtin and then its argument prototype would still apply. */
27629#ifdef __cplusplus
27630extern "C"
27631#endif
27632char jpeg_read_header ();
27633int
27634main ()
27635{
27636return jpeg_read_header ();
27637 ;
27638 return 0;
27639}
27640_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027641if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027642 ac_cv_lib_jpeg_jpeg_read_header=yes
27643else
cristy8b350f62009-11-15 23:12:43 +000027644 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027645fi
cristy8b350f62009-11-15 23:12:43 +000027646rm -f core conftest.err conftest.$ac_objext \
27647 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027648LIBS=$ac_check_lib_save_LIBS
27649fi
cristy8b350f62009-11-15 23:12:43 +000027650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027651$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027652if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027653 passed=`expr $passed + 1`
27654else
27655 failed=`expr $failed + 1`
27656fi
27657
27658
27659# Test for compatible JPEG library
27660if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027662$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027663if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027664 $as_echo_n "(cached) " >&6
27665else
cristy8b350f62009-11-15 23:12:43 +000027666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027667/* end confdefs.h. */
27668#include <stdio.h>
27669#include <stdlib.h>
27670#include <jpeglib.h>
27671
27672int
27673main ()
27674{
27675
27676#if JPEG_LIB_VERSION < 62
27677#error IJG JPEG library must be version 6b or newer!
27678#endif
27679return 0;
27680
27681 ;
27682 return 0;
27683}
27684_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027685if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027686 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27687else
cristy8b350f62009-11-15 23:12:43 +000027688 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027689fi
cristy3ed852e2009-09-05 21:47:34 +000027690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27691fi
cristy8b350f62009-11-15 23:12:43 +000027692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027693$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27694fi
cristy8b350f62009-11-15 23:12:43 +000027695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027696$as_echo_n "checking if JPEG package is complete... " >&6; }
27697 if test $passed -gt 0; then
27698 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027700$as_echo "no -- some components failed test" >&6; }
27701 have_jpeg='no (failed tests)'
27702 else
27703 JPEG_LIBS='-ljpeg'
27704 LIBS="$JPEG_LIBS $LIBS"
27705
cristy8b350f62009-11-15 23:12:43 +000027706$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027707
cristy8b350f62009-11-15 23:12:43 +000027708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027709$as_echo "yes" >&6; }
27710 have_jpeg='yes'
27711 fi
27712 else
cristy8b350f62009-11-15 23:12:43 +000027713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027714$as_echo "no" >&6; }
27715 fi
27716fi
27717 if test "$have_jpeg" = 'yes'; then
27718 JPEG_DELEGATE_TRUE=
27719 JPEG_DELEGATE_FALSE='#'
27720else
27721 JPEG_DELEGATE_TRUE='#'
27722 JPEG_DELEGATE_FALSE=
27723fi
27724
27725
27726
27727
27728#
27729# Check for JPEG Version 2 delegate library.
27730#
27731
27732# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027733if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027734 withval=$with_jp2; with_jp2=$withval
27735else
27736 with_jp2='yes'
27737fi
27738
27739
27740if test "$with_jp2" != 'yes'; then
27741 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27742fi
27743
27744have_jp2='no'
27745JP2_LIBS=''
27746if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027748$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027750$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027752$as_echo "" >&6; }
27753 failed=0
27754 passed=0
cristy8b350f62009-11-15 23:12:43 +000027755 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27756if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027757 passed=`expr $passed + 1`
27758else
27759 failed=`expr $failed + 1`
27760fi
27761
27762
cristy8b350f62009-11-15 23:12:43 +000027763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027764$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027765if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027766 $as_echo_n "(cached) " >&6
27767else
27768 ac_check_lib_save_LIBS=$LIBS
27769LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027771/* end confdefs.h. */
27772
27773/* Override any GCC internal prototype to avoid an error.
27774 Use char because int might match the return type of a GCC
27775 builtin and then its argument prototype would still apply. */
27776#ifdef __cplusplus
27777extern "C"
27778#endif
27779char jas_stream_fopen ();
27780int
27781main ()
27782{
27783return jas_stream_fopen ();
27784 ;
27785 return 0;
27786}
27787_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027788if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027789 ac_cv_lib_jasper_jas_stream_fopen=yes
27790else
cristy8b350f62009-11-15 23:12:43 +000027791 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000027792fi
cristy8b350f62009-11-15 23:12:43 +000027793rm -f core conftest.err conftest.$ac_objext \
27794 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027795LIBS=$ac_check_lib_save_LIBS
27796fi
cristy8b350f62009-11-15 23:12:43 +000027797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027798$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027799if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027800 passed=`expr $passed + 1`
27801else
27802 failed=`expr $failed + 1`
27803fi
27804
cristy8b350f62009-11-15 23:12:43 +000027805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027806$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27807 if test $passed -gt 0; then
27808 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027810$as_echo "no -- some components failed test" >&6; }
27811 have_jp2='no (failed tests)'
27812 else
27813 JP2_LIBS='-ljasper'
27814 LIBS="$JP2_LIBS $LIBS"
27815
cristy8b350f62009-11-15 23:12:43 +000027816$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027817
cristy8b350f62009-11-15 23:12:43 +000027818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027819$as_echo "yes" >&6; }
27820 have_jp2='yes'
27821 fi
27822 else
cristy8b350f62009-11-15 23:12:43 +000027823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027824$as_echo "no" >&6; }
27825 fi
27826fi
27827 if test "$have_jp2" = 'yes'; then
27828 JP2_DELEGATE_TRUE=
27829 JP2_DELEGATE_FALSE='#'
27830else
27831 JP2_DELEGATE_TRUE='#'
27832 JP2_DELEGATE_FALSE=
27833fi
27834
27835
27836
27837
27838#
27839# Check for LCMS delegate library.
27840#
cristy71203402010-06-18 13:12:03 +000027841# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000027842
27843# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000027844if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027845 withval=$with_lcms; with_lcms=$withval
27846else
27847 with_lcms='yes'
27848fi
27849
cristy71203402010-06-18 13:12:03 +000027850if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000027851 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27852fi
27853
cristy71203402010-06-18 13:12:03 +000027854# Disable LCMS2.
27855
27856# Check whether --with-lcms2 was given.
27857if test "${with_lcms2+set}" = set; then :
27858 withval=$with_lcms2; with_lcms2=$withval
27859else
27860 with_lcms2='yes'
27861fi
27862
27863if test "$with_lcms2" != 'yes' ; then
27864 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
27865fi
27866
27867have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000027868LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000027869if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027871$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000027872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
27873$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027875$as_echo "" >&6; }
27876 failed=0
27877 passed=0
27878 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000027879
27880 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000027881 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
27882if test "x$ac_cv_header_lcms2_h" = x""yes; then :
27883 have_lcms_header='yes'
27884fi
27885
27886
27887 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000027888
27889$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
27890
cristy71203402010-06-18 13:12:03 +000027891 passed=`expr $passed + 1`
27892 fi
27893
27894 # Check for <lcms2/lcms2.h)
27895 if test "$have_lcms_header" != 'yes'; then
27896 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
27897if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000027898 have_lcms_header='yes'
27899fi
27900
27901
cristy71203402010-06-18 13:12:03 +000027902 if test "$have_lcms_header" = 'yes'; then
27903 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000027904
cristy71203402010-06-18 13:12:03 +000027905$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000027906
cristy71203402010-06-18 13:12:03 +000027907 fi
cristyd09bcf92010-03-25 03:04:45 +000027908 fi
cristy71203402010-06-18 13:12:03 +000027909
27910 # Failed to find lcms header?
27911 if test "$have_lcms_header" != 'yes'; then
27912 failed=`expr $failed + 1`
27913 fi
27914
27915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
27916$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
27917if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
cristyd09bcf92010-03-25 03:04:45 +000027918 $as_echo_n "(cached) " >&6
27919else
27920 ac_check_lib_save_LIBS=$LIBS
27921LIBS="-llcms2 $LIBS"
27922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27923/* end confdefs.h. */
27924
27925/* Override any GCC internal prototype to avoid an error.
27926 Use char because int might match the return type of a GCC
27927 builtin and then its argument prototype would still apply. */
27928#ifdef __cplusplus
27929extern "C"
27930#endif
cristy71203402010-06-18 13:12:03 +000027931char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000027932int
27933main ()
27934{
cristy71203402010-06-18 13:12:03 +000027935return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000027936 ;
27937 return 0;
27938}
27939_ACEOF
27940if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000027941 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000027942else
cristy71203402010-06-18 13:12:03 +000027943 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000027944fi
27945rm -f core conftest.err conftest.$ac_objext \
27946 conftest$ac_exeext conftest.$ac_ext
27947LIBS=$ac_check_lib_save_LIBS
27948fi
cristy71203402010-06-18 13:12:03 +000027949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
27950$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
27951if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000027952 passed=`expr $passed + 1`
27953else
27954 failed=`expr $failed + 1`
27955fi
27956
cristy71203402010-06-18 13:12:03 +000027957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
27958$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000027959 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000027960 if test $failed -gt 0; then
27961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000027962$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000027963 have_lcms2='no (failed tests)'
27964 else
27965 LCMS_LIBS='-llcms2'
27966 LIBS="$LCMS_LIBS $LIBS"
27967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000027968$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000027969 have_lcms2='yes'
27970 fi
cristyd09bcf92010-03-25 03:04:45 +000027971 else
cristy71203402010-06-18 13:12:03 +000027972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000027973$as_echo "no" >&6; }
27974 fi
27975fi
27976
cristy71203402010-06-18 13:12:03 +000027977#
27978# Check for LCMS v1 (1.11 or later)
27979#
27980if test $have_lcms2 = 'yes'; then
27981 with_lcms='no'
27982fi
27983
27984have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000027985if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000027986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27987$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000027988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
27989$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000027990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27991$as_echo "" >&6; }
27992 failed=0
27993 passed=0
27994 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000027995
27996 # Check for <lcms.h>
27997 if test "$have_lcms_header" != 'yes'; then
27998 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristy8b350f62009-11-15 23:12:43 +000027999if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028000 have_lcms_header='yes'
28001fi
28002
28003
cristy71203402010-06-18 13:12:03 +000028004 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028005 passed=`expr $passed + 1`
28006
cristy8b350f62009-11-15 23:12:43 +000028007$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028008
cristy71203402010-06-18 13:12:03 +000028009 fi
28010 fi
28011
28012 # Check for <lcms/lcms.h>
28013 if test "$have_lcms_header" != 'yes'; then
28014 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 +000028015if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028016 have_lcms_header='yes'
28017fi
28018
28019
cristy71203402010-06-18 13:12:03 +000028020 if test "$have_lcms_header" = 'yes'; then
28021 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028022
cristy8b350f62009-11-15 23:12:43 +000028023$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028024
cristy71203402010-06-18 13:12:03 +000028025 fi
cristy3ed852e2009-09-05 21:47:34 +000028026 fi
cristy71203402010-06-18 13:12:03 +000028027
28028 # Failed to find lcms header?
28029 if test "$have_lcms_header" != 'yes'; then
28030 failed=`expr $failed + 1`
28031 fi
28032
28033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28034$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28035if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028036 $as_echo_n "(cached) " >&6
28037else
28038 ac_check_lib_save_LIBS=$LIBS
28039LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028041/* end confdefs.h. */
28042
28043/* Override any GCC internal prototype to avoid an error.
28044 Use char because int might match the return type of a GCC
28045 builtin and then its argument prototype would still apply. */
28046#ifdef __cplusplus
28047extern "C"
28048#endif
cristy71203402010-06-18 13:12:03 +000028049char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028050int
28051main ()
28052{
cristy71203402010-06-18 13:12:03 +000028053return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028054 ;
28055 return 0;
28056}
28057_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028058if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028059 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000028060else
cristy71203402010-06-18 13:12:03 +000028061 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000028062fi
cristy8b350f62009-11-15 23:12:43 +000028063rm -f core conftest.err conftest.$ac_objext \
28064 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028065LIBS=$ac_check_lib_save_LIBS
28066fi
cristy71203402010-06-18 13:12:03 +000028067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28068$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28069if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028070 passed=`expr $passed + 1`
28071else
28072 failed=`expr $failed + 1`
28073fi
28074
cristy8b350f62009-11-15 23:12:43 +000028075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028076$as_echo_n "checking if LCMS package is complete... " >&6; }
28077 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028078 if test $failed -gt 0; then
28079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028080$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028081 have_lcms='no (failed tests)'
28082 else
28083 LCMS_LIBS='-llcms'
28084 LIBS="$LCMS_LIBS $LIBS"
28085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028086$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028087 have_lcms='yes'
28088 fi
cristy3ed852e2009-09-05 21:47:34 +000028089 else
cristy71203402010-06-18 13:12:03 +000028090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028091$as_echo "no" >&6; }
28092 fi
28093fi
cristy71203402010-06-18 13:12:03 +000028094
28095 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028096 LCMS_DELEGATE_TRUE=
28097 LCMS_DELEGATE_FALSE='#'
28098else
28099 LCMS_DELEGATE_TRUE='#'
28100 LCMS_DELEGATE_FALSE=
28101fi
28102
cristy71203402010-06-18 13:12:03 +000028103if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28104
28105$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28106
28107fi
28108
cristy3ed852e2009-09-05 21:47:34 +000028109
28110
28111
28112#
28113# Check for the LQR (Liquid Rescale) delegate library.
28114#
28115
28116# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028117if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028118 withval=$with_lqr; with_lqr=$withval
28119else
28120 with_lqr='yes'
28121fi
28122
28123
28124if test "$with_lqr" != 'yes'; then
28125 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28126fi
28127
28128have_lqr='no'
28129LQR_CFLAGS=""
28130LQR_LIBS=""
28131LQR_PKG=""
28132if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028134$as_echo "-------------------------------------------------------------" >&6; }
28135
28136pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028138$as_echo_n "checking for LQR... " >&6; }
28139
28140if test -n "$LQR_CFLAGS"; then
28141 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28142 elif test -n "$PKG_CONFIG"; then
28143 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028144 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028145 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28146 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28148 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028149 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28150else
28151 pkg_failed=yes
28152fi
28153 else
28154 pkg_failed=untried
28155fi
28156if test -n "$LQR_LIBS"; then
28157 pkg_cv_LQR_LIBS="$LQR_LIBS"
28158 elif test -n "$PKG_CONFIG"; then
28159 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028160 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028161 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28162 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28164 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028165 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28166else
28167 pkg_failed=yes
28168fi
28169 else
28170 pkg_failed=untried
28171fi
28172
28173
28174
28175if test $pkg_failed = yes; then
28176
28177if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28178 _pkg_short_errors_supported=yes
28179else
28180 _pkg_short_errors_supported=no
28181fi
28182 if test $_pkg_short_errors_supported = yes; then
28183 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28184 else
28185 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28186 fi
28187 # Put the nasty error message in config.log where it belongs
28188 echo "$LQR_PKG_ERRORS" >&5
28189
cristy8b350f62009-11-15 23:12:43 +000028190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028191$as_echo "no" >&6; }
28192 have_lqr=no
28193elif test $pkg_failed = untried; then
28194 have_lqr=no
28195else
28196 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28197 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028199$as_echo "yes" >&6; }
28200 have_lqr=yes
28201fi
cristy8b350f62009-11-15 23:12:43 +000028202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028203$as_echo "" >&6; }
28204fi
28205
28206if test "$have_lqr" = 'yes'; then
28207
cristy8b350f62009-11-15 23:12:43 +000028208$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028209
28210 CFLAGS="$LQR_CFLAGS $CFLAGS"
28211fi
28212
28213 if test "$have_lqr" = 'yes'; then
28214 LQR_DELEGATE_TRUE=
28215 LQR_DELEGATE_FALSE='#'
28216else
28217 LQR_DELEGATE_TRUE='#'
28218 LQR_DELEGATE_FALSE=
28219fi
28220
28221
28222
28223
28224
28225#
28226# Check for the OpenEXR delegate library.
28227#
28228
28229# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000028230if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028231 withval=$with_openexr; with_openexr=$withval
28232else
28233 with_openexr='yes'
28234fi
28235
28236
28237if test "$with_openexr" != 'yes'; then
28238 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28239fi
28240
28241have_openexr='no'
28242OPENEXR_CFLAGS=""
28243OPENEXR_LIBS=""
28244OPENEXR_PKG=""
28245if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028247$as_echo "-------------------------------------------------------------" >&6; }
28248
28249pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028251$as_echo_n "checking for OPENEXR... " >&6; }
28252
28253if test -n "$OPENEXR_CFLAGS"; then
28254 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28255 elif test -n "$PKG_CONFIG"; then
28256 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028257 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028258 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28259 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28261 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028262 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28263else
28264 pkg_failed=yes
28265fi
28266 else
28267 pkg_failed=untried
28268fi
28269if test -n "$OPENEXR_LIBS"; then
28270 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28271 elif test -n "$PKG_CONFIG"; then
28272 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028273 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028274 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28275 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28277 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028278 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28279else
28280 pkg_failed=yes
28281fi
28282 else
28283 pkg_failed=untried
28284fi
28285
28286
28287
28288if test $pkg_failed = yes; then
28289
28290if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28291 _pkg_short_errors_supported=yes
28292else
28293 _pkg_short_errors_supported=no
28294fi
28295 if test $_pkg_short_errors_supported = yes; then
28296 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28297 else
28298 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28299 fi
28300 # Put the nasty error message in config.log where it belongs
28301 echo "$OPENEXR_PKG_ERRORS" >&5
28302
cristy8b350f62009-11-15 23:12:43 +000028303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028304$as_echo "no" >&6; }
28305 have_openexr=no
28306elif test $pkg_failed = untried; then
28307 have_openexr=no
28308else
28309 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28310 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028312$as_echo "yes" >&6; }
28313 have_openexr=yes
28314fi
cristy8b350f62009-11-15 23:12:43 +000028315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028316$as_echo "" >&6; }
28317fi
28318
28319if test "$have_openexr" = 'yes'; then
28320
cristy8b350f62009-11-15 23:12:43 +000028321$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028322
28323 if test "$with_modules" = 'no'; then
28324 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28325 fi
28326fi
28327
28328 if test "$have_openexr" = 'yes'; then
28329 OPENEXR_DELEGATE_TRUE=
28330 OPENEXR_DELEGATE_FALSE='#'
28331else
28332 OPENEXR_DELEGATE_TRUE='#'
28333 OPENEXR_DELEGATE_FALSE=
28334fi
28335
28336
28337
28338
28339
28340#
28341# Check for PNG delegate library.
28342#
28343
28344# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000028345if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028346 withval=$with_png; with_png=$withval
28347else
28348 with_png='yes'
28349fi
28350
28351
28352if test "$with_png" != 'yes'; then
28353 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28354fi
28355
28356have_png='no'
28357PNG_LIBS=''
28358if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028360$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028362$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028364$as_echo "" >&6; }
28365 failed=0
28366 passed=0
cristy8b350f62009-11-15 23:12:43 +000028367 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28368if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028369 passed=`expr $passed + 1`
28370else
28371 failed=`expr $failed + 1`
28372fi
28373
28374
cristy8b350f62009-11-15 23:12:43 +000028375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000028376$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028377if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028378 $as_echo_n "(cached) " >&6
28379else
28380 ac_check_lib_save_LIBS=$LIBS
28381LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028383/* end confdefs.h. */
28384
28385/* Override any GCC internal prototype to avoid an error.
28386 Use char because int might match the return type of a GCC
28387 builtin and then its argument prototype would still apply. */
28388#ifdef __cplusplus
28389extern "C"
28390#endif
28391char png_get_io_ptr ();
28392int
28393main ()
28394{
28395return png_get_io_ptr ();
28396 ;
28397 return 0;
28398}
28399_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028400if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028401 ac_cv_lib_png_png_get_io_ptr=yes
28402else
cristy8b350f62009-11-15 23:12:43 +000028403 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000028404fi
cristy8b350f62009-11-15 23:12:43 +000028405rm -f core conftest.err conftest.$ac_objext \
28406 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028407LIBS=$ac_check_lib_save_LIBS
28408fi
cristy8b350f62009-11-15 23:12:43 +000028409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000028410$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028411if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028412 passed=`expr $passed + 1`
28413else
28414 failed=`expr $failed + 1`
28415fi
28416
cristy8b350f62009-11-15 23:12:43 +000028417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028418$as_echo_n "checking if PNG package is complete... " >&6; }
28419 if test $passed -gt 0; then
28420 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028422$as_echo "no -- some components failed test" >&6; }
28423 have_png='no (failed tests)'
28424 else
28425 PNG_LIBS='-lpng'
28426 LIBS="$PNG_LIBS $LIBS"
28427
cristy8b350f62009-11-15 23:12:43 +000028428$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028429
cristy8b350f62009-11-15 23:12:43 +000028430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028431$as_echo "yes" >&6; }
28432 have_png='yes'
28433 fi
28434 else
cristy8b350f62009-11-15 23:12:43 +000028435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028436$as_echo "no" >&6; }
28437 fi
28438fi
28439 if test "$have_png" = 'yes'; then
28440 PNG_DELEGATE_TRUE=
28441 PNG_DELEGATE_FALSE='#'
28442else
28443 PNG_DELEGATE_TRUE='#'
28444 PNG_DELEGATE_FALSE=
28445fi
28446
28447
28448
28449
28450#
28451# Check for RSVG delegate library.
28452#
28453
28454# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000028455if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028456 withval=$with_rsvg; with_rsvg=$withval
28457else
28458 with_rsvg=$have_x
28459fi
28460
28461
28462if test "$with_rsvg" != 'yes'; then
28463 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28464fi
28465
28466have_rsvg='no'
28467have_cairo='no'
28468RSVG_CFLAGS=""
28469RSVG_LIBS=""
28470RSVG_PKG=""
28471if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028473$as_echo "-------------------------------------------------------------" >&6; }
28474
28475pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028477$as_echo_n "checking for RSVG... " >&6; }
28478
28479if test -n "$RSVG_CFLAGS"; then
28480 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28481 elif test -n "$PKG_CONFIG"; then
28482 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028483 { { $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 +000028484 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28485 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28487 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028488 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28489else
28490 pkg_failed=yes
28491fi
28492 else
28493 pkg_failed=untried
28494fi
28495if test -n "$RSVG_LIBS"; then
28496 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28497 elif test -n "$PKG_CONFIG"; then
28498 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028499 { { $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 +000028500 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28501 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28503 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028504 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28505else
28506 pkg_failed=yes
28507fi
28508 else
28509 pkg_failed=untried
28510fi
28511
28512
28513
28514if test $pkg_failed = yes; then
28515
28516if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28517 _pkg_short_errors_supported=yes
28518else
28519 _pkg_short_errors_supported=no
28520fi
28521 if test $_pkg_short_errors_supported = yes; then
28522 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28523 else
28524 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28525 fi
28526 # Put the nasty error message in config.log where it belongs
28527 echo "$RSVG_PKG_ERRORS" >&5
28528
cristy8b350f62009-11-15 23:12:43 +000028529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028530$as_echo "no" >&6; }
28531 have_rsvg=no
28532elif test $pkg_failed = untried; then
28533 have_rsvg=no
28534else
28535 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28536 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028538$as_echo "yes" >&6; }
28539 have_rsvg=yes
28540fi
cristy8b350f62009-11-15 23:12:43 +000028541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028542$as_echo "" >&6; }
28543
28544pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028546$as_echo_n "checking for CAIRO_SVG... " >&6; }
28547
28548if test -n "$CAIRO_SVG_CFLAGS"; then
28549 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28550 elif test -n "$PKG_CONFIG"; then
28551 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028552 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028553 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28554 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28556 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028557 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28558else
28559 pkg_failed=yes
28560fi
28561 else
28562 pkg_failed=untried
28563fi
28564if test -n "$CAIRO_SVG_LIBS"; then
28565 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28566 elif test -n "$PKG_CONFIG"; then
28567 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028568 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028569 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28570 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28572 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028573 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28574else
28575 pkg_failed=yes
28576fi
28577 else
28578 pkg_failed=untried
28579fi
28580
28581
28582
28583if test $pkg_failed = yes; then
28584
28585if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28586 _pkg_short_errors_supported=yes
28587else
28588 _pkg_short_errors_supported=no
28589fi
28590 if test $_pkg_short_errors_supported = yes; then
28591 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28592 else
28593 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28594 fi
28595 # Put the nasty error message in config.log where it belongs
28596 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28597
cristy8b350f62009-11-15 23:12:43 +000028598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028599$as_echo "no" >&6; }
28600 have_cairo=no
28601elif test $pkg_failed = untried; then
28602 have_cairo=no
28603else
28604 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28605 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028607$as_echo "yes" >&6; }
28608 have_cairo=yes
28609fi
cristy8b350f62009-11-15 23:12:43 +000028610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028611$as_echo "" >&6; }
28612fi
28613
28614if test "$have_rsvg" = 'yes'; then
28615
cristy8b350f62009-11-15 23:12:43 +000028616$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028617
28618 if test "$with_modules" = 'no'; then
28619 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28620 fi
28621fi
28622
28623if test "$have_cairo" = 'yes'; then
28624
cristy8b350f62009-11-15 23:12:43 +000028625$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028626
28627 if test "$with_modules" = 'no'; then
28628 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28629 fi
28630fi
28631
28632 if test "$have_rsvg" = 'yes'; then
28633 RSVG_DELEGATE_TRUE=
28634 RSVG_DELEGATE_FALSE='#'
28635else
28636 RSVG_DELEGATE_TRUE='#'
28637 RSVG_DELEGATE_FALSE=
28638fi
28639
28640 if test "$have_cairo" = 'yes'; then
28641 CAIRO_DELEGATE_TRUE=
28642 CAIRO_DELEGATE_FALSE='#'
28643else
28644 CAIRO_DELEGATE_TRUE='#'
28645 CAIRO_DELEGATE_FALSE=
28646fi
28647
28648
28649
28650
28651
28652#
28653# Check for TIFF delegate library.
28654#
28655
28656# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000028657if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028658 withval=$with_tiff; with_tiff=$withval
28659else
28660 with_tiff='yes'
28661fi
28662
28663
28664if test "$with_tiff" != 'yes'; then
28665 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28666fi
28667
28668have_tiff='no'
28669TIFF_LIBS=''
28670if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028672$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028674$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028676$as_echo "" >&6; }
28677 failed=0
28678 passed=0
cristy8b350f62009-11-15 23:12:43 +000028679 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28680if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028681 passed=`expr $passed + 1`
28682else
28683 failed=`expr $failed + 1`
28684fi
28685
28686
cristy8b350f62009-11-15 23:12:43 +000028687 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28688if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028689 passed=`expr $passed + 1`
28690else
28691 failed=`expr $failed + 1`
28692fi
28693
28694
cristy8b350f62009-11-15 23:12:43 +000028695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028696$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028697if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028698 $as_echo_n "(cached) " >&6
28699else
28700 ac_check_lib_save_LIBS=$LIBS
28701LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028703/* end confdefs.h. */
28704
28705/* Override any GCC internal prototype to avoid an error.
28706 Use char because int might match the return type of a GCC
28707 builtin and then its argument prototype would still apply. */
28708#ifdef __cplusplus
28709extern "C"
28710#endif
28711char TIFFOpen ();
28712int
28713main ()
28714{
28715return TIFFOpen ();
28716 ;
28717 return 0;
28718}
28719_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028720if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028721 ac_cv_lib_tiff_TIFFOpen=yes
28722else
cristy8b350f62009-11-15 23:12:43 +000028723 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028724fi
cristy8b350f62009-11-15 23:12:43 +000028725rm -f core conftest.err conftest.$ac_objext \
28726 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028727LIBS=$ac_check_lib_save_LIBS
28728fi
cristy8b350f62009-11-15 23:12:43 +000028729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028730$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028731if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028732 passed=`expr $passed + 1`
28733else
28734 failed=`expr $failed + 1`
28735fi
28736
cristy8b350f62009-11-15 23:12:43 +000028737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028738$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028739if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028740 $as_echo_n "(cached) " >&6
28741else
28742 ac_check_lib_save_LIBS=$LIBS
28743LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028745/* end confdefs.h. */
28746
28747/* Override any GCC internal prototype to avoid an error.
28748 Use char because int might match the return type of a GCC
28749 builtin and then its argument prototype would still apply. */
28750#ifdef __cplusplus
28751extern "C"
28752#endif
28753char TIFFClientOpen ();
28754int
28755main ()
28756{
28757return TIFFClientOpen ();
28758 ;
28759 return 0;
28760}
28761_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028762if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028763 ac_cv_lib_tiff_TIFFClientOpen=yes
28764else
cristy8b350f62009-11-15 23:12:43 +000028765 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028766fi
cristy8b350f62009-11-15 23:12:43 +000028767rm -f core conftest.err conftest.$ac_objext \
28768 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028769LIBS=$ac_check_lib_save_LIBS
28770fi
cristy8b350f62009-11-15 23:12:43 +000028771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028772$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028773if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028774 passed=`expr $passed + 1`
28775else
28776 failed=`expr $failed + 1`
28777fi
28778
cristyb97f1002010-07-26 14:02:57 +000028779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
28780$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
28781if test "${ac_cv_lib_tiff_TIFFIsBigEndian+set}" = set; then :
28782 $as_echo_n "(cached) " >&6
28783else
28784 ac_check_lib_save_LIBS=$LIBS
28785LIBS="-ltiff $LIBS"
28786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28787/* end confdefs.h. */
28788
28789/* Override any GCC internal prototype to avoid an error.
28790 Use char because int might match the return type of a GCC
28791 builtin and then its argument prototype would still apply. */
28792#ifdef __cplusplus
28793extern "C"
28794#endif
28795char TIFFIsBigEndian ();
28796int
28797main ()
28798{
28799return TIFFIsBigEndian ();
28800 ;
28801 return 0;
28802}
28803_ACEOF
28804if ac_fn_c_try_link "$LINENO"; then :
28805 ac_cv_lib_tiff_TIFFIsBigEndian=yes
28806else
28807 ac_cv_lib_tiff_TIFFIsBigEndian=no
28808fi
28809rm -f core conftest.err conftest.$ac_objext \
28810 conftest$ac_exeext conftest.$ac_ext
28811LIBS=$ac_check_lib_save_LIBS
28812fi
28813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
28814$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
28815if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = x""yes; then :
28816 passed=`expr $passed + 1`
28817else
28818 failed=`expr $failed + 1`
28819fi
28820
cristy8b350f62009-11-15 23:12:43 +000028821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028822$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028823if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028824 $as_echo_n "(cached) " >&6
28825else
28826 ac_check_lib_save_LIBS=$LIBS
28827LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028829/* end confdefs.h. */
28830
28831/* Override any GCC internal prototype to avoid an error.
28832 Use char because int might match the return type of a GCC
28833 builtin and then its argument prototype would still apply. */
28834#ifdef __cplusplus
28835extern "C"
28836#endif
28837char TIFFIsByteSwapped ();
28838int
28839main ()
28840{
28841return TIFFIsByteSwapped ();
28842 ;
28843 return 0;
28844}
28845_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028846if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028847 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28848else
cristy8b350f62009-11-15 23:12:43 +000028849 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000028850fi
cristy8b350f62009-11-15 23:12:43 +000028851rm -f core conftest.err conftest.$ac_objext \
28852 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028853LIBS=$ac_check_lib_save_LIBS
28854fi
cristy8b350f62009-11-15 23:12:43 +000028855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000028856$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028857if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028858 passed=`expr $passed + 1`
28859else
28860 failed=`expr $failed + 1`
28861fi
28862
cristy8b350f62009-11-15 23:12:43 +000028863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028864$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028865if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028866 $as_echo_n "(cached) " >&6
28867else
28868 ac_check_lib_save_LIBS=$LIBS
28869LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028871/* end confdefs.h. */
28872
28873/* Override any GCC internal prototype to avoid an error.
28874 Use char because int might match the return type of a GCC
28875 builtin and then its argument prototype would still apply. */
28876#ifdef __cplusplus
28877extern "C"
28878#endif
28879char TIFFReadRGBATile ();
28880int
28881main ()
28882{
28883return TIFFReadRGBATile ();
28884 ;
28885 return 0;
28886}
28887_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028888if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028889 ac_cv_lib_tiff_TIFFReadRGBATile=yes
28890else
cristy8b350f62009-11-15 23:12:43 +000028891 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000028892fi
cristy8b350f62009-11-15 23:12:43 +000028893rm -f core conftest.err conftest.$ac_objext \
28894 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028895LIBS=$ac_check_lib_save_LIBS
28896fi
cristy8b350f62009-11-15 23:12:43 +000028897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000028898$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028899if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028900 passed=`expr $passed + 1`
28901else
28902 failed=`expr $failed + 1`
28903fi
28904
cristy8b350f62009-11-15 23:12:43 +000028905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028906$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028907if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028908 $as_echo_n "(cached) " >&6
28909else
28910 ac_check_lib_save_LIBS=$LIBS
28911LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028913/* end confdefs.h. */
28914
28915/* Override any GCC internal prototype to avoid an error.
28916 Use char because int might match the return type of a GCC
28917 builtin and then its argument prototype would still apply. */
28918#ifdef __cplusplus
28919extern "C"
28920#endif
28921char TIFFReadRGBAStrip ();
28922int
28923main ()
28924{
28925return TIFFReadRGBAStrip ();
28926 ;
28927 return 0;
28928}
28929_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028930if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028931 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
28932else
cristy8b350f62009-11-15 23:12:43 +000028933 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000028934fi
cristy8b350f62009-11-15 23:12:43 +000028935rm -f core conftest.err conftest.$ac_objext \
28936 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028937LIBS=$ac_check_lib_save_LIBS
28938fi
cristy8b350f62009-11-15 23:12:43 +000028939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000028940$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028941if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028942 passed=`expr $passed + 1`
28943else
28944 failed=`expr $failed + 1`
28945fi
28946
cristy8b350f62009-11-15 23:12:43 +000028947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028948$as_echo_n "checking if TIFF package is complete... " >&6; }
28949 if test $passed -gt 0; then
28950 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028952$as_echo "no -- some components failed test" >&6; }
28953 have_tiff='no (failed tests)'
28954 else
28955 TIFF_LIBS='-ltiff'
28956 LIBS="$TIFF_LIBS $LIBS"
28957
cristy8b350f62009-11-15 23:12:43 +000028958$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028959
cristy8b350f62009-11-15 23:12:43 +000028960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028961$as_echo "yes" >&6; }
28962 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000028963 for ac_header in tiffconf.h
28964do :
28965 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
28966if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028967 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028968#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000028969_ACEOF
28970
28971fi
28972
28973done
28974
cristy8b350f62009-11-15 23:12:43 +000028975 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000028976 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
28977 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000028978do :
28979 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28980ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000028981if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000028982 cat >>confdefs.h <<_ACEOF
28983#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28984_ACEOF
28985
28986fi
28987done
28988
28989 fi
28990 else
cristy8b350f62009-11-15 23:12:43 +000028991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028992$as_echo "no" >&6; }
28993 fi
28994fi
28995 if test "$have_tiff" = 'yes'; then
28996 TIFF_DELEGATE_TRUE=
28997 TIFF_DELEGATE_FALSE='#'
28998else
28999 TIFF_DELEGATE_TRUE='#'
29000 TIFF_DELEGATE_FALSE=
29001fi
29002
29003
29004
29005
29006#
29007# Set Windows font directory.
29008#
29009
29010# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029011if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029012 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29013else
29014 with_windows_font_dir=''
29015fi
29016
29017if test "$with_windows_font_dir" != '' ; then
29018 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29019fi
29020
29021
29022#
29023# Check for WMF delegate library.
29024#
29025
29026# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000029027if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029028 withval=$with_wmf; with_wmf=$withval
29029else
cristy8d63d1d2010-01-06 20:38:37 +000029030 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000029031fi
29032
29033
29034if test "$with_wmf" != 'yes'; then
29035 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29036fi
29037
29038have_wmf='no'
29039WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000029040if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029042$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029044$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029046$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000029047 failed=0
29048 passed=0
29049 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29050if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29051 passed=`expr $passed + 1`
29052else
29053 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029054fi
29055
29056
cristy735e8942010-04-02 20:32:57 +000029057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29058$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29059if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029060 $as_echo_n "(cached) " >&6
29061else
29062 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000029063LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029065/* end confdefs.h. */
29066
29067/* Override any GCC internal prototype to avoid an error.
29068 Use char because int might match the return type of a GCC
29069 builtin and then its argument prototype would still apply. */
29070#ifdef __cplusplus
29071extern "C"
29072#endif
cristy735e8942010-04-02 20:32:57 +000029073char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029074int
29075main ()
29076{
cristy735e8942010-04-02 20:32:57 +000029077return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029078 ;
29079 return 0;
29080}
29081_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029082if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000029083 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000029084else
cristy735e8942010-04-02 20:32:57 +000029085 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000029086fi
cristy8b350f62009-11-15 23:12:43 +000029087rm -f core conftest.err conftest.$ac_objext \
29088 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029089LIBS=$ac_check_lib_save_LIBS
29090fi
cristy735e8942010-04-02 20:32:57 +000029091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29092$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29093if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29094 passed=`expr $passed + 1`
29095else
29096 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029097fi
29098
cristy735e8942010-04-02 20:32:57 +000029099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29100$as_echo_n "checking if WMF package is complete... " >&6; }
29101 if test $passed -gt 0; then
29102 if test $failed -gt 0; then
29103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29104$as_echo "no -- some components failed test" >&6; }
29105 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000029106 else
cristy735e8942010-04-02 20:32:57 +000029107 WMF_LIBS='-lwmf -lwmflite'
29108 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029109
cristy8b350f62009-11-15 23:12:43 +000029110$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029111
cristy735e8942010-04-02 20:32:57 +000029112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029113$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000029114 have_wmf='yes'
29115 fi
cristy3ed852e2009-09-05 21:47:34 +000029116 else
cristy8b350f62009-11-15 23:12:43 +000029117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029118$as_echo "no" >&6; }
29119 fi
29120fi
29121 if test "$have_wmf" = 'yes'; then
29122 WMF_DELEGATE_TRUE=
29123 WMF_DELEGATE_FALSE='#'
29124else
29125 WMF_DELEGATE_TRUE='#'
29126 WMF_DELEGATE_FALSE=
29127fi
29128
29129
29130
29131
29132
cristy735e8942010-04-02 20:32:57 +000029133
cristy3ed852e2009-09-05 21:47:34 +000029134#
29135# Check for XML delegate library.
29136#
29137
29138# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000029139if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029140 withval=$with_xml; with_xml=$withval
29141else
29142 with_xml=$have_x
29143fi
29144
29145
29146if test "$with_xml" != 'yes' ; then
29147 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29148fi
29149
29150have_xml='no'
29151XML_LIBS=''
29152if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029154$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000029156$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029158$as_echo "" >&6; }
29159 PERSIST_LDFLAGS=$LDFLAGS
29160 PERSIST_CPPFLAGS=$CPPFLAGS
29161 xml2_config=''
29162 for ac_prog in xml2-config
29163do
29164 # Extract the first word of "$ac_prog", so it can be a program name with args.
29165set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029167$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029168if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029169 $as_echo_n "(cached) " >&6
29170else
29171 if test -n "$xml2_config"; then
29172 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29173else
29174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29175for as_dir in $PATH
29176do
29177 IFS=$as_save_IFS
29178 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029179 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29181 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029183 break 2
29184 fi
29185done
cristy8b350f62009-11-15 23:12:43 +000029186 done
cristy3ed852e2009-09-05 21:47:34 +000029187IFS=$as_save_IFS
29188
29189fi
29190fi
29191xml2_config=$ac_cv_prog_xml2_config
29192if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000029193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000029194$as_echo "$xml2_config" >&6; }
29195else
cristy8b350f62009-11-15 23:12:43 +000029196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029197$as_echo "no" >&6; }
29198fi
29199
29200
29201 test -n "$xml2_config" && break
29202done
29203 if test -n "$xml2_config"; then
29204 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29205 # the shared library installed under /usr/lib, whereas the package
29206 # installs itself under $prefix/libxml and $prefix/lib.
29207 xml2_prefix=`xml2-config --prefix`
29208 if test -d "${xml2_prefix}/include/libxml2"; then
29209 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29210 fi
29211 if test "${xml2_prefix}" != '/usr'; then
29212 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29213 fi
29214 fi
29215 failed=0
29216 passed=0
cristy8b350f62009-11-15 23:12:43 +000029217 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29218if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029219 passed=`expr $passed + 1`
29220else
29221 failed=`expr $failed + 1`
29222fi
29223
29224
cristy8b350f62009-11-15 23:12:43 +000029225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029226$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029227if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029228 $as_echo_n "(cached) " >&6
29229else
29230 ac_check_lib_save_LIBS=$LIBS
29231LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029233/* end confdefs.h. */
29234
29235/* Override any GCC internal prototype to avoid an error.
29236 Use char because int might match the return type of a GCC
29237 builtin and then its argument prototype would still apply. */
29238#ifdef __cplusplus
29239extern "C"
29240#endif
29241char xmlParseExternalEntity ();
29242int
29243main ()
29244{
29245return xmlParseExternalEntity ();
29246 ;
29247 return 0;
29248}
29249_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029250if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029251 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29252else
cristy8b350f62009-11-15 23:12:43 +000029253 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000029254fi
cristy8b350f62009-11-15 23:12:43 +000029255rm -f core conftest.err conftest.$ac_objext \
29256 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029257LIBS=$ac_check_lib_save_LIBS
29258fi
cristy8b350f62009-11-15 23:12:43 +000029259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000029260$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029261if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029262 passed=`expr $passed + 1`
29263else
29264 failed=`expr $failed + 1`
29265fi
29266
cristy8b350f62009-11-15 23:12:43 +000029267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029268$as_echo_n "checking if XML package is complete... " >&6; }
29269 if test $passed -gt 0; then
29270 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029272$as_echo "no -- some components failed test" >&6; }
29273 have_xml='no (failed tests)'
29274 LDFLAGS="$PERSIST_LDFLAGS"
29275 CPPFLAGS="$PERSIST_CPPFLAGS"
29276 else
29277 XML_LIBS='-lxml2'
29278 LIBS="$XML_LIBS $LIBS"
29279
cristy8b350f62009-11-15 23:12:43 +000029280$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029281
cristy8b350f62009-11-15 23:12:43 +000029282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029283$as_echo "yes" >&6; }
29284 have_xml='yes'
29285 fi
29286 else
cristy8b350f62009-11-15 23:12:43 +000029287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029288$as_echo "no" >&6; }
29289 fi
29290fi
29291 if test "$have_xml" = 'yes'; then
29292 XML_DELEGATE_TRUE=
29293 XML_DELEGATE_FALSE='#'
29294else
29295 XML_DELEGATE_TRUE='#'
29296 XML_DELEGATE_FALSE=
29297fi
29298
29299
29300
29301
29302# Substitute compiler name to build/link PerlMagick
29303#
29304
29305
29306#
29307# Configure install Paths
29308#
29309
29310# Subdirectory under lib to place ImageMagick lib files
29311LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29312
29313cat >>confdefs.h <<_ACEOF
29314#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29315_ACEOF
29316
29317
29318# Path to ImageMagick bin directory
29319EXECUTABLE_PATH="${BIN_DIR}"
29320DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29321case "${build_os}" in
29322 mingw* )
29323 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29324 ;;
29325esac
29326
29327cat >>confdefs.h <<_ACEOF
29328#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29329_ACEOF
29330
29331
29332
29333# Path to ImageMagick lib
29334LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29335DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29336case "${build_os}" in
29337 mingw* )
29338 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29339 ;;
29340esac
29341
29342cat >>confdefs.h <<_ACEOF
29343#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29344_ACEOF
29345
29346
29347
29348# Subdirectory under lib to place ImageMagick configuration files
29349CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29350
29351cat >>confdefs.h <<_ACEOF
29352#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29353_ACEOF
29354
29355CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29356DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29357case "${build_os}" in
29358 mingw* )
29359 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29360 ;;
29361esac
29362
29363cat >>confdefs.h <<_ACEOF
29364#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29365_ACEOF
29366
29367
29368
29369#
29370# Subdirectory under lib to place ImageMagick coder module files
29371CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29372
29373cat >>confdefs.h <<_ACEOF
29374#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29375_ACEOF
29376
29377CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29378DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29379case "${build_os}" in
29380 mingw* )
29381 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29382 ;;
29383esac
29384
29385cat >>confdefs.h <<_ACEOF
29386#define CODER_PATH "$DEFINE_CODER_PATH"
29387_ACEOF
29388
29389
29390
29391#
29392# Subdirectory under lib to place ImageMagick filter module files
29393FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29394
29395cat >>confdefs.h <<_ACEOF
29396#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29397_ACEOF
29398
29399FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29400DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29401case "${build_os}" in
29402 mingw* )
29403 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29404 ;;
29405esac
29406
29407cat >>confdefs.h <<_ACEOF
29408#define FILTER_PATH "$DEFINE_FILTER_PATH"
29409_ACEOF
29410
29411
29412
29413#
29414# Path to ImageMagick documentation files
29415DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29416DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29417DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29418case "${build_os}" in
29419 mingw* )
29420 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29421 ;;
29422esac
29423
29424cat >>confdefs.h <<_ACEOF
29425#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29426_ACEOF
29427
29428
29429
29430#
29431# Path to ImageMagick share files
29432SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29433SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29434DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29435case "${build_os}" in
29436 mingw* )
29437 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29438 ;;
29439esac
29440
29441cat >>confdefs.h <<_ACEOF
29442#define SHARE_PATH "$DEFINE_SHARE_PATH"
29443_ACEOF
29444
29445
29446
29447# Subdirectory under share to place ImageMagick configuration files
29448SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29449
29450cat >>confdefs.h <<_ACEOF
29451#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29452_ACEOF
29453
29454SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29455DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29456case "${build_os}" in
29457 mingw* )
29458 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29459 ;;
29460esac
29461
29462cat >>confdefs.h <<_ACEOF
29463#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29464_ACEOF
29465
29466
29467
29468#
29469# program_transform_name is formed for use in a Makefile, so create a
29470# modified version for use in a shell script.
29471configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29472
29473# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000029474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029475$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029477$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029479$as_echo "" >&6; }
29480AutotraceDecodeDelegateDefault='autotrace'
29481AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000029482BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000029483BZIPDelegateDefault='bzip2'
29484BrowseDelegateDefault='xdg-open'
29485CGMDecodeDelegateDefault='ralcgm'
29486CatDelegateDefault='cat'
29487DNGDecodeDelegateDefault='ufraw-batch'
29488GVCDecodeDelegateDefault='dot'
29489DVIDecodeDelegateDefault='dvips'
29490EchoDelegateDefault='echo'
29491EditorDelegateDefault='xterm'
29492FIGDecodeDelegateDefault='fig2dev'
29493ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29494DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29495MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29496GnuplotDecodeDelegateDefault='gnuplot'
29497HDRDecodeDelegateDefault='ra_pfm'
29498HPGLDecodeDelegateDefault='hp2xx'
29499HTMLDecodeDelegateDefault='html2ps'
29500ILBMDecodeDelegateDefault='ilbmtoppm'
29501ILBMEncodeDelegateDefault='ppmtoilbm'
29502LPDelegateDefault='lp'
29503LPRDelegateDefault='lpr'
29504LZWDecodeDelegateDefault='uncompress'
29505LZWEncodeDelegateDefault='compress'
29506LaunchDelegateDefault='gimp'
29507MANDelegateDefault='groff'
29508MPEGDecodeDelegateDefault='ffmpeg'
29509MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000029510MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000029511MVDelegateDefault='mv'
29512PCLDelegateDefault='pcl6'
29513PGPDecodeDelegateDefault='pgpv'
29514POVDelegateDefault='povray'
29515if test "$native_win32_build" = 'yes'; then
29516 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000029517elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029518 PSDelegateDefault='gsc'
29519else
29520 PSDelegateDefault='gs'
29521fi
29522RLEEncodeDelegateDefault='rawtorle'
29523RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000029524RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000029525SCANDecodeDelegateDefault='scanimage'
29526TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000029527UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000029528WMFDecodeDelegateDefault='wmf2eps'
29529WWWDecodeDelegateDefault='curl'
29530XPSDelegateDefault='gxps'
29531ZipDelegateDefault='gzip'
29532
29533# Search for delegates
29534# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29535set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029537$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029538if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029539 $as_echo_n "(cached) " >&6
29540else
29541 case $AutotraceDecodeDelegate in
29542 [\\/]* | ?:[\\/]*)
29543 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29544 ;;
29545 *)
29546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29547for as_dir in $PATH
29548do
29549 IFS=$as_save_IFS
29550 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029551 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29553 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029555 break 2
29556 fi
29557done
cristy8b350f62009-11-15 23:12:43 +000029558 done
cristy3ed852e2009-09-05 21:47:34 +000029559IFS=$as_save_IFS
29560
29561 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29562 ;;
29563esac
29564fi
29565AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29566if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029568$as_echo "$AutotraceDecodeDelegate" >&6; }
29569else
cristy8b350f62009-11-15 23:12:43 +000029570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029571$as_echo "no" >&6; }
29572fi
29573
29574
29575# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29576set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029578$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029579if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029580 $as_echo_n "(cached) " >&6
29581else
29582 case $AVIDecodeDelegate in
29583 [\\/]* | ?:[\\/]*)
29584 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29585 ;;
29586 *)
29587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29588for as_dir in $PATH
29589do
29590 IFS=$as_save_IFS
29591 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029592 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29594 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029596 break 2
29597 fi
29598done
cristy8b350f62009-11-15 23:12:43 +000029599 done
cristy3ed852e2009-09-05 21:47:34 +000029600IFS=$as_save_IFS
29601
29602 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29603 ;;
29604esac
29605fi
29606AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29607if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029609$as_echo "$AVIDecodeDelegate" >&6; }
29610else
cristy8b350f62009-11-15 23:12:43 +000029611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029612$as_echo "no" >&6; }
29613fi
29614
29615
29616# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29617set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029619$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029620if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029621 $as_echo_n "(cached) " >&6
29622else
29623 case $BlenderDecodeDelegate in
29624 [\\/]* | ?:[\\/]*)
29625 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29626 ;;
29627 *)
29628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29629for as_dir in $PATH
29630do
29631 IFS=$as_save_IFS
29632 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029633 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29635 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029637 break 2
29638 fi
29639done
cristy8b350f62009-11-15 23:12:43 +000029640 done
cristy3ed852e2009-09-05 21:47:34 +000029641IFS=$as_save_IFS
29642
29643 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29644 ;;
29645esac
29646fi
29647BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29648if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029650$as_echo "$BlenderDecodeDelegate" >&6; }
29651else
cristy8b350f62009-11-15 23:12:43 +000029652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029653$as_echo "no" >&6; }
29654fi
29655
29656
29657# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29658set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029660$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029661if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029662 $as_echo_n "(cached) " >&6
29663else
29664 case $BZIPDelegate in
29665 [\\/]* | ?:[\\/]*)
29666 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29667 ;;
29668 *)
29669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29670for as_dir in $PATH
29671do
29672 IFS=$as_save_IFS
29673 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029674 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29676 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029678 break 2
29679 fi
29680done
cristy8b350f62009-11-15 23:12:43 +000029681 done
cristy3ed852e2009-09-05 21:47:34 +000029682IFS=$as_save_IFS
29683
29684 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29685 ;;
29686esac
29687fi
29688BZIPDelegate=$ac_cv_path_BZIPDelegate
29689if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029691$as_echo "$BZIPDelegate" >&6; }
29692else
cristy8b350f62009-11-15 23:12:43 +000029693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029694$as_echo "no" >&6; }
29695fi
29696
29697
29698# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29699set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029701$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029702if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029703 $as_echo_n "(cached) " >&6
29704else
29705 case $BrowseDelegate in
29706 [\\/]* | ?:[\\/]*)
29707 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29708 ;;
29709 *)
29710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29711for as_dir in $PATH
29712do
29713 IFS=$as_save_IFS
29714 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029715 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29717 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029719 break 2
29720 fi
29721done
cristy8b350f62009-11-15 23:12:43 +000029722 done
cristy3ed852e2009-09-05 21:47:34 +000029723IFS=$as_save_IFS
29724
29725 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29726 ;;
29727esac
29728fi
29729BrowseDelegate=$ac_cv_path_BrowseDelegate
29730if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029732$as_echo "$BrowseDelegate" >&6; }
29733else
cristy8b350f62009-11-15 23:12:43 +000029734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029735$as_echo "no" >&6; }
29736fi
29737
29738
29739# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29740set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029742$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029743if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029744 $as_echo_n "(cached) " >&6
29745else
29746 case $CGMDecodeDelegate in
29747 [\\/]* | ?:[\\/]*)
29748 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29749 ;;
29750 *)
29751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29752for as_dir in $PATH
29753do
29754 IFS=$as_save_IFS
29755 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029756 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29758 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029760 break 2
29761 fi
29762done
cristy8b350f62009-11-15 23:12:43 +000029763 done
cristy3ed852e2009-09-05 21:47:34 +000029764IFS=$as_save_IFS
29765
29766 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29767 ;;
29768esac
29769fi
29770CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29771if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029773$as_echo "$CGMDecodeDelegate" >&6; }
29774else
cristy8b350f62009-11-15 23:12:43 +000029775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029776$as_echo "no" >&6; }
29777fi
29778
29779
29780# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29781set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029783$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029784if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029785 $as_echo_n "(cached) " >&6
29786else
29787 case $CatDelegate in
29788 [\\/]* | ?:[\\/]*)
29789 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29790 ;;
29791 *)
29792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29793for as_dir in $PATH
29794do
29795 IFS=$as_save_IFS
29796 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029797 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29799 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029801 break 2
29802 fi
29803done
cristy8b350f62009-11-15 23:12:43 +000029804 done
cristy3ed852e2009-09-05 21:47:34 +000029805IFS=$as_save_IFS
29806
29807 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29808 ;;
29809esac
29810fi
29811CatDelegate=$ac_cv_path_CatDelegate
29812if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029814$as_echo "$CatDelegate" >&6; }
29815else
cristy8b350f62009-11-15 23:12:43 +000029816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029817$as_echo "no" >&6; }
29818fi
29819
29820
29821# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29822set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029824$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029825if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029826 $as_echo_n "(cached) " >&6
29827else
29828 case $DNGDecodeDelegate in
29829 [\\/]* | ?:[\\/]*)
29830 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29831 ;;
29832 *)
29833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29834for as_dir in $PATH
29835do
29836 IFS=$as_save_IFS
29837 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029838 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29840 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029842 break 2
29843 fi
29844done
cristy8b350f62009-11-15 23:12:43 +000029845 done
cristy3ed852e2009-09-05 21:47:34 +000029846IFS=$as_save_IFS
29847
29848 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29849 ;;
29850esac
29851fi
29852DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29853if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029855$as_echo "$DNGDecodeDelegate" >&6; }
29856else
cristy8b350f62009-11-15 23:12:43 +000029857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029858$as_echo "no" >&6; }
29859fi
29860
29861
29862# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29863set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029865$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029866if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029867 $as_echo_n "(cached) " >&6
29868else
29869 case $GVCDecodeDelegate in
29870 [\\/]* | ?:[\\/]*)
29871 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29872 ;;
29873 *)
29874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29875for as_dir in $PATH
29876do
29877 IFS=$as_save_IFS
29878 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029879 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29881 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029883 break 2
29884 fi
29885done
cristy8b350f62009-11-15 23:12:43 +000029886 done
cristy3ed852e2009-09-05 21:47:34 +000029887IFS=$as_save_IFS
29888
29889 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29890 ;;
29891esac
29892fi
29893GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29894if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029896$as_echo "$GVCDecodeDelegate" >&6; }
29897else
cristy8b350f62009-11-15 23:12:43 +000029898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029899$as_echo "no" >&6; }
29900fi
29901
29902
29903# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29904set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029906$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029907if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029908 $as_echo_n "(cached) " >&6
29909else
29910 case $DVIDecodeDelegate in
29911 [\\/]* | ?:[\\/]*)
29912 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29913 ;;
29914 *)
29915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29916for as_dir in $PATH
29917do
29918 IFS=$as_save_IFS
29919 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029920 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29922 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029924 break 2
29925 fi
29926done
cristy8b350f62009-11-15 23:12:43 +000029927 done
cristy3ed852e2009-09-05 21:47:34 +000029928IFS=$as_save_IFS
29929
29930 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
29931 ;;
29932esac
29933fi
29934DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
29935if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029937$as_echo "$DVIDecodeDelegate" >&6; }
29938else
cristy8b350f62009-11-15 23:12:43 +000029939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029940$as_echo "no" >&6; }
29941fi
29942
29943
29944# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
29945set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029947$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029948if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029949 $as_echo_n "(cached) " >&6
29950else
29951 case $EchoDelegate in
29952 [\\/]* | ?:[\\/]*)
29953 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
29954 ;;
29955 *)
29956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29957for as_dir in $PATH
29958do
29959 IFS=$as_save_IFS
29960 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029961 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29963 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029965 break 2
29966 fi
29967done
cristy8b350f62009-11-15 23:12:43 +000029968 done
cristy3ed852e2009-09-05 21:47:34 +000029969IFS=$as_save_IFS
29970
29971 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
29972 ;;
29973esac
29974fi
29975EchoDelegate=$ac_cv_path_EchoDelegate
29976if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029978$as_echo "$EchoDelegate" >&6; }
29979else
cristy8b350f62009-11-15 23:12:43 +000029980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029981$as_echo "no" >&6; }
29982fi
29983
29984
29985# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
29986set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029988$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029989if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029990 $as_echo_n "(cached) " >&6
29991else
29992 case $EditorDelegate in
29993 [\\/]* | ?:[\\/]*)
29994 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
29995 ;;
29996 *)
29997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29998for as_dir in $PATH
29999do
30000 IFS=$as_save_IFS
30001 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030002 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30004 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030006 break 2
30007 fi
30008done
cristy8b350f62009-11-15 23:12:43 +000030009 done
cristy3ed852e2009-09-05 21:47:34 +000030010IFS=$as_save_IFS
30011
30012 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30013 ;;
30014esac
30015fi
30016EditorDelegate=$ac_cv_path_EditorDelegate
30017if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030019$as_echo "$EditorDelegate" >&6; }
30020else
cristy8b350f62009-11-15 23:12:43 +000030021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030022$as_echo "no" >&6; }
30023fi
30024
30025
30026# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30027set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030029$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030030if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030031 $as_echo_n "(cached) " >&6
30032else
30033 case $FIGDecodeDelegate in
30034 [\\/]* | ?:[\\/]*)
30035 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30036 ;;
30037 *)
30038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30039for as_dir in $PATH
30040do
30041 IFS=$as_save_IFS
30042 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030043 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30045 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030047 break 2
30048 fi
30049done
cristy8b350f62009-11-15 23:12:43 +000030050 done
cristy3ed852e2009-09-05 21:47:34 +000030051IFS=$as_save_IFS
30052
30053 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30054 ;;
30055esac
30056fi
30057FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30058if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030060$as_echo "$FIGDecodeDelegate" >&6; }
30061else
cristy8b350f62009-11-15 23:12:43 +000030062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030063$as_echo "no" >&6; }
30064fi
30065
30066
30067# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30068set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030070$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030071if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030072 $as_echo_n "(cached) " >&6
30073else
30074 case $ConvertDelegate in
30075 [\\/]* | ?:[\\/]*)
30076 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30077 ;;
30078 *)
30079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30080for as_dir in $PATH
30081do
30082 IFS=$as_save_IFS
30083 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030084 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30086 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030088 break 2
30089 fi
30090done
cristy8b350f62009-11-15 23:12:43 +000030091 done
cristy3ed852e2009-09-05 21:47:34 +000030092IFS=$as_save_IFS
30093
30094 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30095 ;;
30096esac
30097fi
30098ConvertDelegate=$ac_cv_path_ConvertDelegate
30099if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030101$as_echo "$ConvertDelegate" >&6; }
30102else
cristy8b350f62009-11-15 23:12:43 +000030103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030104$as_echo "no" >&6; }
30105fi
30106
30107
30108# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30109set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030111$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030112if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030113 $as_echo_n "(cached) " >&6
30114else
30115 case $DisplayDelegate in
30116 [\\/]* | ?:[\\/]*)
30117 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30118 ;;
30119 *)
30120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30121for as_dir in $PATH
30122do
30123 IFS=$as_save_IFS
30124 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030125 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30127 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030129 break 2
30130 fi
30131done
cristy8b350f62009-11-15 23:12:43 +000030132 done
cristy3ed852e2009-09-05 21:47:34 +000030133IFS=$as_save_IFS
30134
30135 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30136 ;;
30137esac
30138fi
30139DisplayDelegate=$ac_cv_path_DisplayDelegate
30140if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030142$as_echo "$DisplayDelegate" >&6; }
30143else
cristy8b350f62009-11-15 23:12:43 +000030144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030145$as_echo "no" >&6; }
30146fi
30147
30148
30149# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30150set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030152$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030153if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030154 $as_echo_n "(cached) " >&6
30155else
30156 case $MogrifyDelegate in
30157 [\\/]* | ?:[\\/]*)
30158 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30159 ;;
30160 *)
30161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30162for as_dir in $PATH
30163do
30164 IFS=$as_save_IFS
30165 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030166 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30168 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030170 break 2
30171 fi
30172done
cristy8b350f62009-11-15 23:12:43 +000030173 done
cristy3ed852e2009-09-05 21:47:34 +000030174IFS=$as_save_IFS
30175
30176 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30177 ;;
30178esac
30179fi
30180MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30181if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030183$as_echo "$MogrifyDelegate" >&6; }
30184else
cristy8b350f62009-11-15 23:12:43 +000030185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030186$as_echo "no" >&6; }
30187fi
30188
30189
30190# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30191set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030193$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030194if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030195 $as_echo_n "(cached) " >&6
30196else
30197 case $GnuplotDecodeDelegate in
30198 [\\/]* | ?:[\\/]*)
30199 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30200 ;;
30201 *)
30202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30203for as_dir in $PATH
30204do
30205 IFS=$as_save_IFS
30206 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030207 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30209 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030211 break 2
30212 fi
30213done
cristy8b350f62009-11-15 23:12:43 +000030214 done
cristy3ed852e2009-09-05 21:47:34 +000030215IFS=$as_save_IFS
30216
30217 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30218 ;;
30219esac
30220fi
30221GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30222if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030224$as_echo "$GnuplotDecodeDelegate" >&6; }
30225else
cristy8b350f62009-11-15 23:12:43 +000030226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030227$as_echo "no" >&6; }
30228fi
30229
30230
30231# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30232set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030234$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030235if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030236 $as_echo_n "(cached) " >&6
30237else
30238 case $HDRDecodeDelegate in
30239 [\\/]* | ?:[\\/]*)
30240 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30241 ;;
30242 *)
30243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30244for as_dir in $PATH
30245do
30246 IFS=$as_save_IFS
30247 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030248 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30250 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030252 break 2
30253 fi
30254done
cristy8b350f62009-11-15 23:12:43 +000030255 done
cristy3ed852e2009-09-05 21:47:34 +000030256IFS=$as_save_IFS
30257
30258 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30259 ;;
30260esac
30261fi
30262HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30263if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030265$as_echo "$HDRDecodeDelegate" >&6; }
30266else
cristy8b350f62009-11-15 23:12:43 +000030267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030268$as_echo "no" >&6; }
30269fi
30270
30271
30272# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30273set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030275$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030276if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030277 $as_echo_n "(cached) " >&6
30278else
30279 case $HPGLDecodeDelegate in
30280 [\\/]* | ?:[\\/]*)
30281 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30282 ;;
30283 *)
30284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30285for as_dir in $PATH
30286do
30287 IFS=$as_save_IFS
30288 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030289 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30291 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030293 break 2
30294 fi
30295done
cristy8b350f62009-11-15 23:12:43 +000030296 done
cristy3ed852e2009-09-05 21:47:34 +000030297IFS=$as_save_IFS
30298
30299 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30300 ;;
30301esac
30302fi
30303HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30304if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030306$as_echo "$HPGLDecodeDelegate" >&6; }
30307else
cristy8b350f62009-11-15 23:12:43 +000030308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030309$as_echo "no" >&6; }
30310fi
30311
30312
30313# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30314set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030316$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030317if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030318 $as_echo_n "(cached) " >&6
30319else
30320 case $HTMLDecodeDelegate in
30321 [\\/]* | ?:[\\/]*)
30322 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30323 ;;
30324 *)
30325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30326for as_dir in $PATH
30327do
30328 IFS=$as_save_IFS
30329 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030330 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30332 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030334 break 2
30335 fi
30336done
cristy8b350f62009-11-15 23:12:43 +000030337 done
cristy3ed852e2009-09-05 21:47:34 +000030338IFS=$as_save_IFS
30339
30340 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30341 ;;
30342esac
30343fi
30344HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30345if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030347$as_echo "$HTMLDecodeDelegate" >&6; }
30348else
cristy8b350f62009-11-15 23:12:43 +000030349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030350$as_echo "no" >&6; }
30351fi
30352
30353
30354# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30355set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030357$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030358if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030359 $as_echo_n "(cached) " >&6
30360else
30361 case $ILBMDecodeDelegate in
30362 [\\/]* | ?:[\\/]*)
30363 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30364 ;;
30365 *)
30366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30367for as_dir in $PATH
30368do
30369 IFS=$as_save_IFS
30370 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030371 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30373 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030375 break 2
30376 fi
30377done
cristy8b350f62009-11-15 23:12:43 +000030378 done
cristy3ed852e2009-09-05 21:47:34 +000030379IFS=$as_save_IFS
30380
30381 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30382 ;;
30383esac
30384fi
30385ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30386if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030388$as_echo "$ILBMDecodeDelegate" >&6; }
30389else
cristy8b350f62009-11-15 23:12:43 +000030390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030391$as_echo "no" >&6; }
30392fi
30393
30394
30395# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30396set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030398$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030399if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030400 $as_echo_n "(cached) " >&6
30401else
30402 case $ILBMEncodeDelegate in
30403 [\\/]* | ?:[\\/]*)
30404 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30405 ;;
30406 *)
30407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30408for as_dir in $PATH
30409do
30410 IFS=$as_save_IFS
30411 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030412 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30414 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030416 break 2
30417 fi
30418done
cristy8b350f62009-11-15 23:12:43 +000030419 done
cristy3ed852e2009-09-05 21:47:34 +000030420IFS=$as_save_IFS
30421
30422 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30423 ;;
30424esac
30425fi
30426ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30427if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030429$as_echo "$ILBMEncodeDelegate" >&6; }
30430else
cristy8b350f62009-11-15 23:12:43 +000030431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030432$as_echo "no" >&6; }
30433fi
30434
30435
30436# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30437set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030439$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030440if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030441 $as_echo_n "(cached) " >&6
30442else
30443 case $LPDelegate in
30444 [\\/]* | ?:[\\/]*)
30445 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30446 ;;
30447 *)
30448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30449for as_dir in $PATH
30450do
30451 IFS=$as_save_IFS
30452 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030453 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30455 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030457 break 2
30458 fi
30459done
cristy8b350f62009-11-15 23:12:43 +000030460 done
cristy3ed852e2009-09-05 21:47:34 +000030461IFS=$as_save_IFS
30462
30463 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30464 ;;
30465esac
30466fi
30467LPDelegate=$ac_cv_path_LPDelegate
30468if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030470$as_echo "$LPDelegate" >&6; }
30471else
cristy8b350f62009-11-15 23:12:43 +000030472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030473$as_echo "no" >&6; }
30474fi
30475
30476
30477# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30478set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030480$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030481if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030482 $as_echo_n "(cached) " >&6
30483else
30484 case $LPRDelegate in
30485 [\\/]* | ?:[\\/]*)
30486 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30487 ;;
30488 *)
30489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30490for as_dir in $PATH
30491do
30492 IFS=$as_save_IFS
30493 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030494 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30496 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030498 break 2
30499 fi
30500done
cristy8b350f62009-11-15 23:12:43 +000030501 done
cristy3ed852e2009-09-05 21:47:34 +000030502IFS=$as_save_IFS
30503
30504 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30505 ;;
30506esac
30507fi
30508LPRDelegate=$ac_cv_path_LPRDelegate
30509if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030511$as_echo "$LPRDelegate" >&6; }
30512else
cristy8b350f62009-11-15 23:12:43 +000030513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030514$as_echo "no" >&6; }
30515fi
30516
30517
30518# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30519set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030521$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030522if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030523 $as_echo_n "(cached) " >&6
30524else
30525 case $LZWDecodeDelegate in
30526 [\\/]* | ?:[\\/]*)
30527 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30528 ;;
30529 *)
30530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30531for as_dir in $PATH
30532do
30533 IFS=$as_save_IFS
30534 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030535 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30537 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030539 break 2
30540 fi
30541done
cristy8b350f62009-11-15 23:12:43 +000030542 done
cristy3ed852e2009-09-05 21:47:34 +000030543IFS=$as_save_IFS
30544
30545 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30546 ;;
30547esac
30548fi
30549LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30550if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030552$as_echo "$LZWDecodeDelegate" >&6; }
30553else
cristy8b350f62009-11-15 23:12:43 +000030554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030555$as_echo "no" >&6; }
30556fi
30557
30558
30559# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30560set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030562$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030563if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030564 $as_echo_n "(cached) " >&6
30565else
30566 case $LZWEncodeDelegate in
30567 [\\/]* | ?:[\\/]*)
30568 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30569 ;;
30570 *)
30571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30572for as_dir in $PATH
30573do
30574 IFS=$as_save_IFS
30575 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030576 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30578 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030580 break 2
30581 fi
30582done
cristy8b350f62009-11-15 23:12:43 +000030583 done
cristy3ed852e2009-09-05 21:47:34 +000030584IFS=$as_save_IFS
30585
30586 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30587 ;;
30588esac
30589fi
30590LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30591if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030593$as_echo "$LZWEncodeDelegate" >&6; }
30594else
cristy8b350f62009-11-15 23:12:43 +000030595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030596$as_echo "no" >&6; }
30597fi
30598
30599
30600# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30601set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030603$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030604if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030605 $as_echo_n "(cached) " >&6
30606else
30607 case $LaunchDelegate in
30608 [\\/]* | ?:[\\/]*)
30609 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30610 ;;
30611 *)
30612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30613for as_dir in $PATH
30614do
30615 IFS=$as_save_IFS
30616 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030617 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30619 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030621 break 2
30622 fi
30623done
cristy8b350f62009-11-15 23:12:43 +000030624 done
cristy3ed852e2009-09-05 21:47:34 +000030625IFS=$as_save_IFS
30626
30627 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30628 ;;
30629esac
30630fi
30631LaunchDelegate=$ac_cv_path_LaunchDelegate
30632if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030634$as_echo "$LaunchDelegate" >&6; }
30635else
cristy8b350f62009-11-15 23:12:43 +000030636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030637$as_echo "no" >&6; }
30638fi
30639
30640
30641# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30642set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030644$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030645if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030646 $as_echo_n "(cached) " >&6
30647else
30648 case $MANDelegate in
30649 [\\/]* | ?:[\\/]*)
30650 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30651 ;;
30652 *)
30653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30654for as_dir in $PATH
30655do
30656 IFS=$as_save_IFS
30657 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030658 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30660 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030662 break 2
30663 fi
30664done
cristy8b350f62009-11-15 23:12:43 +000030665 done
cristy3ed852e2009-09-05 21:47:34 +000030666IFS=$as_save_IFS
30667
30668 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30669 ;;
30670esac
30671fi
30672MANDelegate=$ac_cv_path_MANDelegate
30673if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030675$as_echo "$MANDelegate" >&6; }
30676else
cristy8b350f62009-11-15 23:12:43 +000030677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030678$as_echo "no" >&6; }
30679fi
30680
30681
30682# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30683set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030685$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030686if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030687 $as_echo_n "(cached) " >&6
30688else
30689 case $MPEGDecodeDelegate in
30690 [\\/]* | ?:[\\/]*)
30691 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30692 ;;
30693 *)
30694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30695for as_dir in $PATH
30696do
30697 IFS=$as_save_IFS
30698 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030699 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30701 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030703 break 2
30704 fi
30705done
cristy8b350f62009-11-15 23:12:43 +000030706 done
cristy3ed852e2009-09-05 21:47:34 +000030707IFS=$as_save_IFS
30708
30709 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30710 ;;
30711esac
30712fi
30713MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30714if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030716$as_echo "$MPEGDecodeDelegate" >&6; }
30717else
cristy8b350f62009-11-15 23:12:43 +000030718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030719$as_echo "no" >&6; }
30720fi
30721
30722
30723# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30724set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030726$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030727if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030728 $as_echo_n "(cached) " >&6
30729else
30730 case $MPEGEncodeDelegate in
30731 [\\/]* | ?:[\\/]*)
30732 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30733 ;;
30734 *)
30735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30736for as_dir in $PATH
30737do
30738 IFS=$as_save_IFS
30739 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030740 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30742 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030744 break 2
30745 fi
30746done
cristy8b350f62009-11-15 23:12:43 +000030747 done
cristy3ed852e2009-09-05 21:47:34 +000030748IFS=$as_save_IFS
30749
30750 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30751 ;;
30752esac
30753fi
30754MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30755if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030757$as_echo "$MPEGEncodeDelegate" >&6; }
30758else
cristy8b350f62009-11-15 23:12:43 +000030759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030760$as_echo "no" >&6; }
30761fi
30762
30763
cristy935c86e2010-06-05 23:50:07 +000030764# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30765set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30767$as_echo_n "checking for $ac_word... " >&6; }
30768if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30769 $as_echo_n "(cached) " >&6
30770else
30771 case $MrSIDDecodeDelegate in
30772 [\\/]* | ?:[\\/]*)
30773 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30774 ;;
30775 *)
30776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30777for as_dir in $PATH
30778do
30779 IFS=$as_save_IFS
30780 test -z "$as_dir" && as_dir=.
30781 for ac_exec_ext in '' $ac_executable_extensions; do
30782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30783 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30785 break 2
30786 fi
30787done
30788 done
30789IFS=$as_save_IFS
30790
30791 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
30792 ;;
30793esac
30794fi
30795MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
30796if test -n "$MrSIDDecodeDelegate"; then
30797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
30798$as_echo "$MrSIDDecodeDelegate" >&6; }
30799else
30800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30801$as_echo "no" >&6; }
30802fi
30803
30804
cristy3ed852e2009-09-05 21:47:34 +000030805# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30806set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030808$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030809if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030810 $as_echo_n "(cached) " >&6
30811else
30812 case $MVDelegate in
30813 [\\/]* | ?:[\\/]*)
30814 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30815 ;;
30816 *)
30817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30818for as_dir in $PATH
30819do
30820 IFS=$as_save_IFS
30821 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030822 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30824 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030826 break 2
30827 fi
30828done
cristy8b350f62009-11-15 23:12:43 +000030829 done
cristy3ed852e2009-09-05 21:47:34 +000030830IFS=$as_save_IFS
30831
30832 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30833 ;;
30834esac
30835fi
30836MVDelegate=$ac_cv_path_MVDelegate
30837if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030839$as_echo "$MVDelegate" >&6; }
30840else
cristy8b350f62009-11-15 23:12:43 +000030841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030842$as_echo "no" >&6; }
30843fi
30844
30845
30846# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30847set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030849$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030850if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030851 $as_echo_n "(cached) " >&6
30852else
30853 case $PCLDelegate in
30854 [\\/]* | ?:[\\/]*)
30855 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30856 ;;
30857 *)
30858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30859for as_dir in $PATH
30860do
30861 IFS=$as_save_IFS
30862 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030863 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30865 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030867 break 2
30868 fi
30869done
cristy8b350f62009-11-15 23:12:43 +000030870 done
cristy3ed852e2009-09-05 21:47:34 +000030871IFS=$as_save_IFS
30872
30873 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30874 ;;
30875esac
30876fi
30877PCLDelegate=$ac_cv_path_PCLDelegate
30878if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030880$as_echo "$PCLDelegate" >&6; }
30881else
cristy8b350f62009-11-15 23:12:43 +000030882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030883$as_echo "no" >&6; }
30884fi
30885
30886
30887# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30888set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030890$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030891if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030892 $as_echo_n "(cached) " >&6
30893else
30894 case $PGPDecodeDelegate in
30895 [\\/]* | ?:[\\/]*)
30896 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30897 ;;
30898 *)
30899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30900for as_dir in $PATH
30901do
30902 IFS=$as_save_IFS
30903 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030904 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30906 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030908 break 2
30909 fi
30910done
cristy8b350f62009-11-15 23:12:43 +000030911 done
cristy3ed852e2009-09-05 21:47:34 +000030912IFS=$as_save_IFS
30913
30914 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30915 ;;
30916esac
30917fi
30918PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30919if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030921$as_echo "$PGPDecodeDelegate" >&6; }
30922else
cristy8b350f62009-11-15 23:12:43 +000030923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030924$as_echo "no" >&6; }
30925fi
30926
30927
30928# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
30929set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030931$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030932if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030933 $as_echo_n "(cached) " >&6
30934else
30935 case $POVDelegate in
30936 [\\/]* | ?:[\\/]*)
30937 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
30938 ;;
30939 *)
30940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30941for as_dir in $PATH
30942do
30943 IFS=$as_save_IFS
30944 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030945 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30947 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030949 break 2
30950 fi
30951done
cristy8b350f62009-11-15 23:12:43 +000030952 done
cristy3ed852e2009-09-05 21:47:34 +000030953IFS=$as_save_IFS
30954
30955 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
30956 ;;
30957esac
30958fi
30959POVDelegate=$ac_cv_path_POVDelegate
30960if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030962$as_echo "$POVDelegate" >&6; }
30963else
cristy8b350f62009-11-15 23:12:43 +000030964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030965$as_echo "no" >&6; }
30966fi
30967
30968
30969for ac_prog in gsx gsc "$PSDelegateDefault"
30970do
30971 # Extract the first word of "$ac_prog", so it can be a program name with args.
30972set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030974$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030975if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030976 $as_echo_n "(cached) " >&6
30977else
30978 case $PSDelegate in
30979 [\\/]* | ?:[\\/]*)
30980 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
30981 ;;
30982 *)
30983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30984for as_dir in $PATH
30985do
30986 IFS=$as_save_IFS
30987 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030988 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30990 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030992 break 2
30993 fi
30994done
cristy8b350f62009-11-15 23:12:43 +000030995 done
cristy3ed852e2009-09-05 21:47:34 +000030996IFS=$as_save_IFS
30997
30998 ;;
30999esac
31000fi
31001PSDelegate=$ac_cv_path_PSDelegate
31002if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031004$as_echo "$PSDelegate" >&6; }
31005else
cristy8b350f62009-11-15 23:12:43 +000031006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031007$as_echo "no" >&6; }
31008fi
31009
31010
31011 test -n "$PSDelegate" && break
31012done
31013test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31014
31015# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31016set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031018$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031019if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031020 $as_echo_n "(cached) " >&6
31021else
31022 case $RLEEncodeDelegate in
31023 [\\/]* | ?:[\\/]*)
31024 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31025 ;;
31026 *)
31027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31028for as_dir in $PATH
31029do
31030 IFS=$as_save_IFS
31031 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031032 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31034 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031036 break 2
31037 fi
31038done
cristy8b350f62009-11-15 23:12:43 +000031039 done
cristy3ed852e2009-09-05 21:47:34 +000031040IFS=$as_save_IFS
31041
31042 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31043 ;;
31044esac
31045fi
31046RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31047if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031049$as_echo "$RLEEncodeDelegate" >&6; }
31050else
cristy8b350f62009-11-15 23:12:43 +000031051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031052$as_echo "no" >&6; }
31053fi
31054
31055
31056# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31057set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031059$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031060if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031061 $as_echo_n "(cached) " >&6
31062else
31063 case $RMDelegate in
31064 [\\/]* | ?:[\\/]*)
31065 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31066 ;;
31067 *)
31068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31069for as_dir in $PATH
31070do
31071 IFS=$as_save_IFS
31072 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031073 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31075 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031077 break 2
31078 fi
31079done
cristy8b350f62009-11-15 23:12:43 +000031080 done
cristy3ed852e2009-09-05 21:47:34 +000031081IFS=$as_save_IFS
31082
31083 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31084 ;;
31085esac
31086fi
31087RMDelegate=$ac_cv_path_RMDelegate
31088if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031090$as_echo "$RMDelegate" >&6; }
31091else
cristy8b350f62009-11-15 23:12:43 +000031092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031093$as_echo "no" >&6; }
31094fi
31095
31096
cristy4689cf02010-02-17 21:15:45 +000031097# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31098set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31100$as_echo_n "checking for $ac_word... " >&6; }
31101if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31102 $as_echo_n "(cached) " >&6
31103else
31104 case $RSVGDecodeDelegate in
31105 [\\/]* | ?:[\\/]*)
31106 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31107 ;;
31108 *)
31109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31110for as_dir in $PATH
31111do
31112 IFS=$as_save_IFS
31113 test -z "$as_dir" && as_dir=.
31114 for ac_exec_ext in '' $ac_executable_extensions; do
31115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31116 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31118 break 2
31119 fi
31120done
31121 done
31122IFS=$as_save_IFS
31123
31124 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31125 ;;
31126esac
31127fi
31128RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31129if test -n "$RSVGDecodeDelegate"; then
31130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31131$as_echo "$RSVGDecodeDelegate" >&6; }
31132else
31133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31134$as_echo "no" >&6; }
31135fi
31136
31137
cristy3ed852e2009-09-05 21:47:34 +000031138# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31139set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031141$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031142if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031143 $as_echo_n "(cached) " >&6
31144else
31145 case $SCANDecodeDelegate in
31146 [\\/]* | ?:[\\/]*)
31147 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31148 ;;
31149 *)
31150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31151for as_dir in $PATH
31152do
31153 IFS=$as_save_IFS
31154 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031155 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31157 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031159 break 2
31160 fi
31161done
cristy8b350f62009-11-15 23:12:43 +000031162 done
cristy3ed852e2009-09-05 21:47:34 +000031163IFS=$as_save_IFS
31164
31165 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31166 ;;
31167esac
31168fi
31169SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31170if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031172$as_echo "$SCANDecodeDelegate" >&6; }
31173else
cristy8b350f62009-11-15 23:12:43 +000031174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031175$as_echo "no" >&6; }
31176fi
31177
31178
31179# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31180set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031182$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031183if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031184 $as_echo_n "(cached) " >&6
31185else
31186 case $TXTDelegate in
31187 [\\/]* | ?:[\\/]*)
31188 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31189 ;;
31190 *)
31191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31192for as_dir in $PATH
31193do
31194 IFS=$as_save_IFS
31195 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031196 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31198 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031200 break 2
31201 fi
31202done
cristy8b350f62009-11-15 23:12:43 +000031203 done
cristy3ed852e2009-09-05 21:47:34 +000031204IFS=$as_save_IFS
31205
31206 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31207 ;;
31208esac
31209fi
31210TXTDelegate=$ac_cv_path_TXTDelegate
31211if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031213$as_echo "$TXTDelegate" >&6; }
31214else
cristy8b350f62009-11-15 23:12:43 +000031215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031216$as_echo "no" >&6; }
31217fi
31218
31219
cristy5ac9ac82010-07-29 13:24:24 +000031220# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
31221set dummy "$UniconvertorDelegateDefault"; ac_word=$2
31222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31223$as_echo_n "checking for $ac_word... " >&6; }
31224if test "${ac_cv_path_UniconvertorDelegate+set}" = set; then :
31225 $as_echo_n "(cached) " >&6
31226else
31227 case $UniconvertorDelegate in
31228 [\\/]* | ?:[\\/]*)
31229 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
31230 ;;
31231 *)
31232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31233for as_dir in $PATH
31234do
31235 IFS=$as_save_IFS
31236 test -z "$as_dir" && as_dir=.
31237 for ac_exec_ext in '' $ac_executable_extensions; do
31238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31239 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
31240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31241 break 2
31242 fi
31243done
31244 done
31245IFS=$as_save_IFS
31246
31247 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
31248 ;;
31249esac
31250fi
31251UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
31252if test -n "$UniconvertorDelegate"; then
31253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
31254$as_echo "$UniconvertorDelegate" >&6; }
31255else
31256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31257$as_echo "no" >&6; }
31258fi
31259
31260
cristy3ed852e2009-09-05 21:47:34 +000031261# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31262set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031264$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031265if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031266 $as_echo_n "(cached) " >&6
31267else
31268 case $WMFDecodeDelegate in
31269 [\\/]* | ?:[\\/]*)
31270 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31271 ;;
31272 *)
31273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31274for as_dir in $PATH
31275do
31276 IFS=$as_save_IFS
31277 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031278 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31280 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031282 break 2
31283 fi
31284done
cristy8b350f62009-11-15 23:12:43 +000031285 done
cristy3ed852e2009-09-05 21:47:34 +000031286IFS=$as_save_IFS
31287
31288 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31289 ;;
31290esac
31291fi
31292WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31293if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031295$as_echo "$WMFDecodeDelegate" >&6; }
31296else
cristy8b350f62009-11-15 23:12:43 +000031297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031298$as_echo "no" >&6; }
31299fi
31300
31301
31302# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31303set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031305$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031306if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031307 $as_echo_n "(cached) " >&6
31308else
31309 case $WWWDecodeDelegate in
31310 [\\/]* | ?:[\\/]*)
31311 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31312 ;;
31313 *)
31314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31315for as_dir in $PATH
31316do
31317 IFS=$as_save_IFS
31318 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031319 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31321 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031323 break 2
31324 fi
31325done
cristy8b350f62009-11-15 23:12:43 +000031326 done
cristy3ed852e2009-09-05 21:47:34 +000031327IFS=$as_save_IFS
31328
31329 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31330 ;;
31331esac
31332fi
31333WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31334if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031336$as_echo "$WWWDecodeDelegate" >&6; }
31337else
cristy8b350f62009-11-15 23:12:43 +000031338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031339$as_echo "no" >&6; }
31340fi
31341
31342
31343# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31344set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031346$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031347if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031348 $as_echo_n "(cached) " >&6
31349else
31350 case $XPSDelegate in
31351 [\\/]* | ?:[\\/]*)
31352 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31353 ;;
31354 *)
31355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31356for as_dir in $PATH
31357do
31358 IFS=$as_save_IFS
31359 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031360 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31362 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031364 break 2
31365 fi
31366done
cristy8b350f62009-11-15 23:12:43 +000031367 done
cristy3ed852e2009-09-05 21:47:34 +000031368IFS=$as_save_IFS
31369
31370 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31371 ;;
31372esac
31373fi
31374XPSDelegate=$ac_cv_path_XPSDelegate
31375if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031377$as_echo "$XPSDelegate" >&6; }
31378else
cristy8b350f62009-11-15 23:12:43 +000031379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031380$as_echo "no" >&6; }
31381fi
31382
31383
31384# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31385set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031387$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031388if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031389 $as_echo_n "(cached) " >&6
31390else
31391 case $ZipDelegate in
31392 [\\/]* | ?:[\\/]*)
31393 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31394 ;;
31395 *)
31396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31397for as_dir in $PATH
31398do
31399 IFS=$as_save_IFS
31400 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031401 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31403 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031405 break 2
31406 fi
31407done
cristy8b350f62009-11-15 23:12:43 +000031408 done
cristy3ed852e2009-09-05 21:47:34 +000031409IFS=$as_save_IFS
31410
31411 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31412 ;;
31413esac
31414fi
31415ZipDelegate=$ac_cv_path_ZipDelegate
31416if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031418$as_echo "$ZipDelegate" >&6; }
31419else
cristy8b350f62009-11-15 23:12:43 +000031420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031421$as_echo "no" >&6; }
31422fi
31423
31424
31425
31426# Prefer lpr to lp; lp needs options tacked on.
31427if test "$LPRDelegate" != no; then
31428 PrintDelegate="$LPRDelegate"
31429else
31430 PrintDelegate="$LPDelegate -c -s"
31431fi
31432
31433
31434# Installed ImageMagick utiltity paths
31435ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31436DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31437MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31438
31439# Set delegate booleans
31440have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31441have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31442have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31443have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31444have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31445have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000031446have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000031447have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31448have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31449have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31450have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31451have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31452
31453#
31454# Test for font directories
31455#
31456type_include_files=''
31457
cristy430a7312010-01-21 20:44:04 +000031458# Dejavu fonts.
31459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31460$as_echo_n "checking for Dejavu fonts directory... " >&6; }
31461dejavu_font_dir=''
31462if test "${with_dejavu_font_dir}" != 'default'; then
31463 dejavu_font_dir="${with_dejavu_font_dir}/"
31464else
31465 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31466 if test -f "${font_dir}DejaVuSerif.ttf"; then
31467 dejavu_font_dir="${font_dir}"
31468 break 1
31469 fi
31470 done
31471fi
31472if test "${dejavu_font_dir}x" != 'x'; then
31473 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31475$as_echo "$dejavu_font_dir" >&6; }
31476else
31477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31478$as_echo "not found!" >&6; };
31479fi
31480
31481
cristy3ed852e2009-09-05 21:47:34 +000031482# Windows
31483windows_font_dir=''
31484if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31485 windows_font_dir="${with_windows_font_dir}/"
31486fi
cristy430a7312010-01-21 20:44:04 +000031487if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031488 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31489 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31490 fi
31491 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31492 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31493 fi
31494 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31495 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31496 fi
31497fi
cristy430a7312010-01-21 20:44:04 +000031498if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031499 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31500fi
31501
31502
31503# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000031504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000031505$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31506ghostscript_font_dir=''
31507if test "${with_gs_font_dir}" != 'default'; then
31508 ghostscript_font_dir="${with_gs_font_dir}/"
31509else
31510 if test "${native_win32_build}" = 'yes'; then
31511 # Native Windows Build
31512 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31513 if test -f "${font_dir}a010013l.pfb"; then
31514 ghostscript_font_dir="$font_dir"
31515 break 1
31516 fi
31517 done
31518 if test "${PSDelegate}" != 'gswin32c'; then
31519 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31520 fi
31521 else
31522 # Linux / Mac OS X / Unix Build
31523 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
31524 if test -f "${font_dir}a010013l.pfb"; then
31525 ghostscript_font_dir="${font_dir}"
31526 break 1
31527 fi
31528 done
31529 if test "${ghostscript_font_dir}x" = 'x'; then
31530 if test "$PSDelegate" != 'gs'; then
31531 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31532 fi
31533 fi
31534 fi
31535fi
31536if test "${ghostscript_font_dir}x" != 'x'; then
31537 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000031538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000031539$as_echo "$ghostscript_font_dir" >&6; }
31540else
cristy8b350f62009-11-15 23:12:43 +000031541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000031542$as_echo "not found!" >&6; };
31543fi
31544
31545case "${build_os}" in
31546 mingw* )
31547 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31548 ;;
31549esac
31550
31551
31552
31553#
31554# Handle case where user doesn't want frozen paths
31555#
31556if test "$with_frozenpaths" != 'yes'; then
31557 # Re-set delegate definitions to default (no paths)
31558 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31559 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31560 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31561 BZIPDelegate="$BZIPDelegateDefault"
31562 BrowseDelegate="$BrowseDelegateDefault"
31563 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31564 CatDelegate="$CatDelegateDefault"
31565 ConvertDelegate="$ConvertDelegateDefault"
31566 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31567 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31568 EchoDelegate="$EchoDelegateDefault"
31569 EditorDelegate="$EditorDelegateDefault"
31570 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31571 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31572 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31573 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31574 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31575 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31576 LPDelegate="$LPDelegateDefault"
31577 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31578 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31579 LaunchDelegate="$LaunchDelegateDefault"
31580 MANDelegate="$MANDelegateDefault"
31581 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31582 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031583 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000031584 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31585 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031586 PCLDelegate="$PCLDelegateDefault"
31587 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31588 POVDelegate="$POVDelegateDefault"
31589 PSDelegate="$PSDelegateDefault"
31590 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31591 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31592 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000031593 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031594 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31595 ShowImageDelegate="$ShowImageDelegateDefault"
31596 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000031597 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031598 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31599 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31600 XPSDelegate="$XPSDelegateDefault"
31601 ZipDelegate="$ZipDelegateDefault"
31602fi
31603
31604# Delegate substitutions
31605
31606
31607
31608
31609
31610
31611
31612
31613
31614
31615
31616
31617
31618
31619
31620
31621
31622
31623
31624
31625
31626
31627
31628
31629
31630
31631
31632
31633
31634
31635
31636
31637
31638
31639
31640
31641
31642
31643
31644
31645
31646
cristy935c86e2010-06-05 23:50:07 +000031647
cristy5ac9ac82010-07-29 13:24:24 +000031648
cristy3ed852e2009-09-05 21:47:34 +000031649#
31650# RPM support.
31651#
31652RPM=''
31653for ac_prog in gnutar gtar tar
31654do
31655 # Extract the first word of "$ac_prog", so it can be a program name with args.
31656set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031658$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031659if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031660 $as_echo_n "(cached) " >&6
31661else
31662 if test -n "$TAR"; then
31663 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31664else
31665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31666for as_dir in $PATH
31667do
31668 IFS=$as_save_IFS
31669 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031670 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31672 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031674 break 2
31675 fi
31676done
cristy8b350f62009-11-15 23:12:43 +000031677 done
cristy3ed852e2009-09-05 21:47:34 +000031678IFS=$as_save_IFS
31679
31680fi
31681fi
31682TAR=$ac_cv_prog_TAR
31683if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000031684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000031685$as_echo "$TAR" >&6; }
31686else
cristy8b350f62009-11-15 23:12:43 +000031687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031688$as_echo "no" >&6; }
31689fi
31690
31691
31692 test -n "$TAR" && break
31693done
31694
31695for ac_prog in perl
31696do
31697 # Extract the first word of "$ac_prog", so it can be a program name with args.
31698set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031700$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031701if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031702 $as_echo_n "(cached) " >&6
31703else
31704 if test -n "$PERL"; then
31705 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31706else
31707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31708for as_dir in $PATH
31709do
31710 IFS=$as_save_IFS
31711 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031712 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31714 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031716 break 2
31717 fi
31718done
cristy8b350f62009-11-15 23:12:43 +000031719 done
cristy3ed852e2009-09-05 21:47:34 +000031720IFS=$as_save_IFS
31721
31722fi
31723fi
31724PERL=$ac_cv_prog_PERL
31725if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031727$as_echo "$PERL" >&6; }
31728else
cristy8b350f62009-11-15 23:12:43 +000031729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031730$as_echo "no" >&6; }
31731fi
31732
31733
31734 test -n "$PERL" && break
31735done
31736
31737for ac_prog in rpmbuild rpm
31738do
31739 # Extract the first word of "$ac_prog", so it can be a program name with args.
31740set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031742$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031743if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031744 $as_echo_n "(cached) " >&6
31745else
31746 if test -n "$RPM"; then
31747 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31748else
31749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31750for as_dir in $PATH
31751do
31752 IFS=$as_save_IFS
31753 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031754 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31756 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031758 break 2
31759 fi
31760done
cristy8b350f62009-11-15 23:12:43 +000031761 done
cristy3ed852e2009-09-05 21:47:34 +000031762IFS=$as_save_IFS
31763
31764fi
31765fi
31766RPM=$ac_cv_prog_RPM
31767if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000031768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000031769$as_echo "$RPM" >&6; }
31770else
cristy8b350f62009-11-15 23:12:43 +000031771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031772$as_echo "no" >&6; }
31773fi
31774
31775
31776 test -n "$RPM" && break
31777done
31778
31779
31780ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31781
31782
31783AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31784
31785
31786AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31787
31788
31789AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31790
31791
31792 if test "x$RPM" != "x" ; then
31793 RPM_DELEGATE_TRUE=
31794 RPM_DELEGATE_FALSE='#'
31795else
31796 RPM_DELEGATE_TRUE='#'
31797 RPM_DELEGATE_FALSE=
31798fi
31799
31800
31801#
31802# 7ZIP support (http://p7zip.sourceforge.net/)
31803#
31804P7ZIP=''
31805for ac_prog in 7za
31806do
31807 # Extract the first word of "$ac_prog", so it can be a program name with args.
31808set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031810$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031811if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031812 $as_echo_n "(cached) " >&6
31813else
31814 if test -n "$P7ZIP"; then
31815 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31816else
31817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31818for as_dir in $PATH
31819do
31820 IFS=$as_save_IFS
31821 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031822 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31824 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031826 break 2
31827 fi
31828done
cristy8b350f62009-11-15 23:12:43 +000031829 done
cristy3ed852e2009-09-05 21:47:34 +000031830IFS=$as_save_IFS
31831
31832fi
31833fi
31834P7ZIP=$ac_cv_prog_P7ZIP
31835if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031837$as_echo "$P7ZIP" >&6; }
31838else
cristy8b350f62009-11-15 23:12:43 +000031839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031840$as_echo "no" >&6; }
31841fi
31842
31843
31844 test -n "$P7ZIP" && break
31845done
31846
31847
31848 if test "x$P7ZIP" != "x" ; then
31849 P7ZIP_DELEGATE_TRUE=
31850 P7ZIP_DELEGATE_FALSE='#'
31851else
31852 P7ZIP_DELEGATE_TRUE='#'
31853 P7ZIP_DELEGATE_FALSE=
31854fi
31855
31856
31857#
31858# ZIP support (http://www.info-zip.org/Zip.html)
31859#
31860ZIP=''
31861for ac_prog in zip
31862do
31863 # Extract the first word of "$ac_prog", so it can be a program name with args.
31864set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031866$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031867if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031868 $as_echo_n "(cached) " >&6
31869else
31870 if test -n "$ZIP"; then
31871 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31872else
31873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31874for as_dir in $PATH
31875do
31876 IFS=$as_save_IFS
31877 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031878 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31880 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031882 break 2
31883 fi
31884done
cristy8b350f62009-11-15 23:12:43 +000031885 done
cristy3ed852e2009-09-05 21:47:34 +000031886IFS=$as_save_IFS
31887
31888fi
31889fi
31890ZIP=$ac_cv_prog_ZIP
31891if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031893$as_echo "$ZIP" >&6; }
31894else
cristy8b350f62009-11-15 23:12:43 +000031895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031896$as_echo "no" >&6; }
31897fi
31898
31899
31900 test -n "$ZIP" && break
31901done
31902
31903
31904 if test "x$ZIP" != "x" ; then
31905 ZIP_DELEGATE_TRUE=
31906 ZIP_DELEGATE_FALSE='#'
31907else
31908 ZIP_DELEGATE_TRUE='#'
31909 ZIP_DELEGATE_FALSE=
31910fi
31911
31912
31913#
31914# GhostPCL related configuration.
31915#
31916PCLColorDevice=ppmraw
31917PCLCMYKDevice=bmpsep8
31918PCLMonoDevice=pbmraw
31919if test -z "$PCLVersion"; then
31920 PCLVersion='unknown'
31921fi
31922if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031924$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031926$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031928$as_echo "" >&6; }
31929 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000031930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031931$as_echo_n "checking for pcl color device... " >&6; }
31932 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31933 :
31934 else
31935 PCLColorDevice=ppmraw
31936 fi
cristy8b350f62009-11-15 23:12:43 +000031937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031938$as_echo "$PCLColorDevice" >&6; }
31939
31940 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031942$as_echo_n "checking for pcl CMYK device... " >&6; }
31943 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31944 :
31945 else
31946 PCLCMYKDevice=$PCLColorDevice
31947 fi
cristy8b350f62009-11-15 23:12:43 +000031948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031949$as_echo "$PCLCMYKDevice" >&6; }
31950
31951 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031953$as_echo_n "checking for pcl mono device... " >&6; }
31954 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31955 :
31956 else
31957 PCLMonoDevice=$PCLColorDevice
31958 fi
cristy8b350f62009-11-15 23:12:43 +000031959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031960$as_echo "$PCLMonoDevice" >&6; }
31961fi
31962
31963
31964
31965
31966
31967
31968#
31969# GhostXPS related configuration.
31970#
31971XPSColorDevice=ppmraw
31972XPSCMYKDevice=bmpsep8
31973XPSMonoDevice=pbmraw
31974if test -z "$XPSVersion"; then
31975 XPSVersion='unknown'
31976fi
31977if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031979$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031981$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031983$as_echo "" >&6; }
31984 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031986$as_echo_n "checking for xps color device... " >&6; }
31987 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31988 :
31989 else
31990 XPSColorDevice=ppmraw
31991 fi
cristy8b350f62009-11-15 23:12:43 +000031992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031993$as_echo "$XPSColorDevice" >&6; }
31994
31995 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031997$as_echo_n "checking for xps CMYK device... " >&6; }
31998 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31999 :
32000 else
32001 XPSCMYKDevice=$XPSColorDevice
32002 fi
cristy8b350f62009-11-15 23:12:43 +000032003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032004$as_echo "$XPSCMYKDevice" >&6; }
32005
32006 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032008$as_echo_n "checking for xps mono device... " >&6; }
32009 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32010 :
32011 else
32012 XPSMonoDevice=$XPSColorDevice
32013 fi
cristy8b350f62009-11-15 23:12:43 +000032014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032015$as_echo "$XPSMonoDevice" >&6; }
32016fi
32017
32018
32019
32020
32021
32022
32023#
32024# Ghostscript related configuration.
32025#
32026if test "$have_png" = 'yes'; then
32027 GSAlphaDevice=pngalpha
32028else
32029 GSAlphaDevice=pnmraw
32030fi
32031GSColorDevice=pnmraw
32032GSCMYKDevice=pam
32033GSMonoDevice=pbmraw
32034GSPDFDevice=pdfwrite
32035GSPSDevice=pswrite
32036GSEPSDevice=epswrite
32037GSVersion='unknown'
32038if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032040$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032042$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032044$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032046$as_echo_n "checking for Ghostscript version... " >&6; }
32047 if GSVersion=`$PSDelegate --version`; then
32048 :
32049 else
32050 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32051 fi
cristy8b350f62009-11-15 23:12:43 +000032052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032053$as_echo "$GSVersion" >&6; }
32054
32055 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000032056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032057$as_echo_n "checking for gs alpha device... " >&6; }
32058 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32059 :
32060 else
32061 GSAlphaDevice=pnmraw
32062 fi
cristy8b350f62009-11-15 23:12:43 +000032063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032064$as_echo "$GSAlphaDevice" >&6; }
32065
32066 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032068$as_echo_n "checking for gs color device... " >&6; }
32069 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32070 :
32071 else
32072 GSColorDevice=pnmraw
32073 fi
cristy8b350f62009-11-15 23:12:43 +000032074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032075$as_echo "$GSColorDevice" >&6; }
32076
32077 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032079$as_echo_n "checking for gs CMYK device... " >&6; }
32080 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32081 :
32082 else
32083 GSCMYKDevice=bmpsep8
32084 fi
cristy8b350f62009-11-15 23:12:43 +000032085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032086$as_echo "$GSCMYKDevice" >&6; }
32087
32088 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032090$as_echo_n "checking for gs mono device... " >&6; }
32091 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32092 :
32093 else
32094 GSMonoDevice=$GSColorDevice
32095 fi
cristy8b350f62009-11-15 23:12:43 +000032096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032097$as_echo "$GSMonoDevice" >&6; }
32098
32099 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000032100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032101$as_echo_n "checking for gs PDF writing device... " >&6; }
32102 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32103 :
32104 else
32105 GSPDFDevice=nodevice
32106 fi
cristy8b350f62009-11-15 23:12:43 +000032107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032108$as_echo "$GSPDFDevice" >&6; }
32109
32110 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000032111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032112$as_echo_n "checking for gs PS writing device... " >&6; }
32113 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32114 :
32115 else
32116 GSPSDevice=nodevice
32117 fi
cristy8b350f62009-11-15 23:12:43 +000032118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032119$as_echo "$GSPSDevice" >&6; }
32120
32121 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000032122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032123$as_echo_n "checking for gs EPS writing device... " >&6; }
32124 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32125 :
32126 else
32127 GSEPSDevice=nodevice
32128 fi
cristy8b350f62009-11-15 23:12:43 +000032129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032130$as_echo "$GSEPSDevice" >&6; }
32131fi
32132
32133
32134
32135
32136
32137
32138
32139
32140
32141
32142#
32143# PerlMagick-related configuration
32144#
32145
32146# Look for PERL if PerlMagick requested
32147# If name/path of desired PERL interpreter is specified, look for that one first
32148have_perl='no'
32149if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000032150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032151$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032153$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032155$as_echo "" >&6; }
32156 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032158$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032159if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032160 $as_echo_n "(cached) " >&6
32161else
32162 ac_cv_path_PERL="$with_perl"
32163fi
cristy8b350f62009-11-15 23:12:43 +000032164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032165$as_echo "$ac_cv_path_PERL" >&6; };
32166 PERL=$ac_cv_path_PERL
32167 have_perl="$ac_cv_path_PERL"
32168 else
32169 for ac_prog in perl perl5
32170do
32171 # Extract the first word of "$ac_prog", so it can be a program name with args.
32172set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032174$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032175if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032176 $as_echo_n "(cached) " >&6
32177else
32178 case $PERL in
32179 [\\/]* | ?:[\\/]*)
32180 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32181 ;;
32182 *)
32183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32184for as_dir in $PATH
32185do
32186 IFS=$as_save_IFS
32187 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032188 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32190 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032192 break 2
32193 fi
32194done
cristy8b350f62009-11-15 23:12:43 +000032195 done
cristy3ed852e2009-09-05 21:47:34 +000032196IFS=$as_save_IFS
32197
32198 ;;
32199esac
32200fi
32201PERL=$ac_cv_path_PERL
32202if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032204$as_echo "$PERL" >&6; }
32205else
cristy8b350f62009-11-15 23:12:43 +000032206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032207$as_echo "no" >&6; }
32208fi
32209
32210
32211 test -n "$PERL" && break
32212done
32213 if test "$ac_cv_path_PERL"; then
32214 have_perl="$ac_cv_path_PERL"
32215 fi
32216 fi
32217fi
32218
cristy949301e2010-01-06 01:38:40 +000032219if test "$with_perl" != 'yes' ; then
32220 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32221fi
32222
32223PERL_SUPPORTS_DESTDIR='no'
32224
cristy3ed852e2009-09-05 21:47:34 +000032225with_perl_static='no'
32226with_perl_dynamic='no'
32227if test "$have_perl" != 'no'; then
32228 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32229 with_perl_static='yes'
32230 fi
32231 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32232 with_perl_dynamic='yes'
32233 fi
32234 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy964cb7f2010-04-25 23:18:00 +000032235
32236
32237
32238
32239 if test -n "$PERL"; then :
32240
32241 ax_perl_version="5.8.1"
32242
32243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32244$as_echo_n "checking for perl version... " >&6; }
32245
32246 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32247
32248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32249$as_echo "$perl_version" >&6; }
32250
32251 PERL_VERSION=$perl_version
32252
32253
32254
32255
32256
32257 # Used to indicate true or false condition
32258 ax_compare_version=false
32259
32260 # Convert the two version strings to be compared into a format that
32261 # allows a simple string comparison. The end result is that a version
32262 # string of the form 1.12.5-r617 will be converted to the form
32263 # 0001001200050617. In other words, each number is zero padded to four
32264 # digits, and non digits are removed.
32265
32266 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32267 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32268 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32269 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32270 -e 's/[^0-9]//g'`
32271
32272
32273 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32274 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32275 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32276 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32277 -e 's/[^0-9]//g'`
32278
32279
32280 ax_compare_version=`echo "x$ax_compare_version_A
32281x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32282
32283
32284
32285 if test "$ax_compare_version" = "true" ; then
32286
32287 :
32288 PERL_SUPPORTS_DESTDIR='yes'
32289
32290 else
32291 :
32292 PERL_SUPPORTS_DESTDIR='no'
32293
cristy3ed852e2009-09-05 21:47:34 +000032294 fi
cristy3ed852e2009-09-05 21:47:34 +000032295
cristy964cb7f2010-04-25 23:18:00 +000032296
cristy3ed852e2009-09-05 21:47:34 +000032297else
cristy3ed852e2009-09-05 21:47:34 +000032298
cristy964cb7f2010-04-25 23:18:00 +000032299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32300$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32301 PERL_SUPPORTS_DESTDIR='no'
cristy3ed852e2009-09-05 21:47:34 +000032302
32303fi
32304
cristy3ed852e2009-09-05 21:47:34 +000032305fi
32306 if test "$have_perl" != 'no'; then
32307 WITH_PERL_TRUE=
32308 WITH_PERL_FALSE='#'
32309else
32310 WITH_PERL_TRUE='#'
32311 WITH_PERL_FALSE=
32312fi
32313
32314 if test $with_perl_static = 'yes'; then
32315 WITH_PERL_STATIC_TRUE=
32316 WITH_PERL_STATIC_FALSE='#'
32317else
32318 WITH_PERL_STATIC_TRUE='#'
32319 WITH_PERL_STATIC_FALSE=
32320fi
32321
32322 if test $with_perl_dynamic = 'yes'; then
32323 WITH_PERL_DYNAMIC_TRUE=
32324 WITH_PERL_DYNAMIC_FALSE='#'
32325else
32326 WITH_PERL_DYNAMIC_TRUE='#'
32327 WITH_PERL_DYNAMIC_FALSE=
32328fi
32329
32330
32331
32332# Determine path to pick up MagickCore library from for use with building PerlMagick
32333MAGICKCORE_PATH="${LIB_DIR}"
32334if test $with_perl_static = 'yes'; then
32335 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32336 libtool_objdir=$objdir
32337
32338 # Linker search path to library, followed by -lMagickCore
32339 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32340fi
32341
32342
32343# Create a simple string containing format names for all delegate libraries
32344DELEGATES=''
32345if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32346if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32347if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32348if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32349if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32350if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32351if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32352if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32353if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32354if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32355if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32356if test "$have_jpeg" = 'yes'; then
32357 DELEGATES="$DELEGATES jpeg";
32358 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32359fi
32360if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000032361if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000032362if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32363if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32364if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32365if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32366if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32367if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32368if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32369if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32370if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32371if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32372if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32373
32374
32375
32376#
32377# Handle special compiler flags
32378#
32379
32380# Add '-p' if prof source profiling support enabled
32381if test "$enable_prof" = 'yes'; then
32382 CFLAGS="-p $CFLAGS"
32383 CXXFLAGS="-p $CXXFLAGS"
32384 LDFLAGS="-p $LDFLAGS"
32385fi
32386
32387# Add '-pg' if gprof source profiling support enabled
32388if test "$enable_gprof" = 'yes'; then
32389 CFLAGS="-pg $CFLAGS"
32390 CXXFLAGS="-pg $CXXFLAGS"
32391 LDFLAGS="-pg $LDFLAGS"
32392fi
32393
32394# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32395# This is a gcc-specific feature
32396if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032398$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032399if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032400 $as_echo_n "(cached) " >&6
32401else
32402 ac_check_lib_save_LIBS=$LIBS
32403LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032405/* end confdefs.h. */
32406
32407/* Override any GCC internal prototype to avoid an error.
32408 Use char because int might match the return type of a GCC
32409 builtin and then its argument prototype would still apply. */
32410#ifdef __cplusplus
32411extern "C"
32412#endif
32413char _gcov_init ();
32414int
32415main ()
32416{
32417return _gcov_init ();
32418 ;
32419 return 0;
32420}
32421_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032422if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032423 ac_cv_lib_gcov__gcov_init=yes
32424else
cristy8b350f62009-11-15 23:12:43 +000032425 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032426fi
cristy8b350f62009-11-15 23:12:43 +000032427rm -f core conftest.err conftest.$ac_objext \
32428 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032429LIBS=$ac_check_lib_save_LIBS
32430fi
cristy8b350f62009-11-15 23:12:43 +000032431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032432$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032433if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032434 cat >>confdefs.h <<_ACEOF
32435#define HAVE_LIBGCOV 1
32436_ACEOF
32437
32438 LIBS="-lgcov $LIBS"
32439
32440fi
32441
cristy8b350f62009-11-15 23:12:43 +000032442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032443$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032444if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032445 $as_echo_n "(cached) " >&6
32446else
32447 ac_check_lib_save_LIBS=$LIBS
32448LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032450/* end confdefs.h. */
32451
32452/* Override any GCC internal prototype to avoid an error.
32453 Use char because int might match the return type of a GCC
32454 builtin and then its argument prototype would still apply. */
32455#ifdef __cplusplus
32456extern "C"
32457#endif
32458char __gcov_init ();
32459int
32460main ()
32461{
32462return __gcov_init ();
32463 ;
32464 return 0;
32465}
32466_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032467if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032468 ac_cv_lib_gcov___gcov_init=yes
32469else
cristy8b350f62009-11-15 23:12:43 +000032470 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032471fi
cristy8b350f62009-11-15 23:12:43 +000032472rm -f core conftest.err conftest.$ac_objext \
32473 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032474LIBS=$ac_check_lib_save_LIBS
32475fi
cristy8b350f62009-11-15 23:12:43 +000032476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032477$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032478if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032479 cat >>confdefs.h <<_ACEOF
32480#define HAVE_LIBGCOV 1
32481_ACEOF
32482
32483 LIBS="-lgcov $LIBS"
32484
32485fi
32486
32487 case "$target_os" in
32488 darwin*)
32489 OSX_GCOV_LDFLAG="-Wl,-single_module"
32490 ;;
32491 *)
32492 OSX_GCOV_LDFLAG=""
32493 ;;
32494 esac
32495
32496 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32497 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32498 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32499fi
32500
32501#
32502# Build library dependency list for libMagickCore
32503#
32504
32505MAGICK_LIBLTDL='' # Libltdl for build
32506MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32507MAGICK_LTDLDEPS='' # extra libltdl dependencies
32508if test "$with_ltdl" != 'no'
32509then
32510 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32511 MAGICK_API_LIBLTDL='-lltdl'
32512 fi
32513 MAGICK_LIBLTDL=${LIBLTDL}
32514 MAGICK_LTDLDEPS=${LTDLDEPS}
32515fi
32516
32517
32518
32519if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000032520 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 +000032521else
cristy2e8b51d2009-10-17 18:26:15 +000032522 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 +000032523fi
32524
32525
32526#
32527# Remove extraneous spaces from output variables (asthetic)
32528#
32529X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32530X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32531X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32532X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32533
32534CC=`echo $CC | sed -e 's/ */ /g'`
32535CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32536CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32537CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32538DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32539DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32540LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32541TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32542MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32543#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32544
32545# Pass only user-provided LIBS as "global" libraries
32546LIBS=$USER_LIBS
32547
32548#AC_SUBST(CPPFLAGS)
32549
32550#AC_SUBST(LDFLAGS)
32551#AC_SUBST(X_PRE_LIBS)
32552#AC_SUBST(X_LIBS)
32553#AC_SUBST(X_EXTRA_LIBS)
32554
32555MAGICK_CFLAGS=$CFLAGS
32556MAGICK_CXXFLAGS="$CXXFLAGS"
32557MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32558MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32559MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32560MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32561
32562
32563
32564
32565
32566
32567
32568
cristyfd9dcd42010-08-08 18:07:02 +000032569
cristy3ed852e2009-09-05 21:47:34 +000032570# Set configured scripts to executable.
32571ac_config_commands="$ac_config_commands default"
32572
32573ac_config_commands="$ac_config_commands MagickCore-config.in"
32574
32575ac_config_commands="$ac_config_commands Magick-config.in"
32576
32577ac_config_commands="$ac_config_commands MagickWand-config.in"
32578
32579ac_config_commands="$ac_config_commands Wand-config.in"
32580
32581ac_config_commands="$ac_config_commands Magick++-config.in"
32582
32583ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32584
32585
cristy8b350f62009-11-15 23:12:43 +000032586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032587$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000032589$as_echo "Update ImageMagick configuration" >&6; }
32590cat >confcache <<\_ACEOF
32591# This file is a shell script that caches the results of configure
32592# tests run on this system so they can be shared between configure
32593# scripts and configure runs, see configure's option --config-cache.
32594# It is not useful on other systems. If it contains results you don't
32595# want to keep, you may remove or edit it.
32596#
32597# config.status only pays attention to the cache file if you give it
32598# the --recheck option to rerun configure.
32599#
32600# `ac_cv_env_foo' variables (set or unset) will be overridden when
32601# loading this file, other *unset* `ac_cv_foo' will be assigned the
32602# following values.
32603
32604_ACEOF
32605
32606# The following way of writing the cache mishandles newlines in values,
32607# but we know of no workaround that is simple, portable, and efficient.
32608# So, we kill variables containing newlines.
32609# Ultrix sh set writes to stderr and can't be redirected directly,
32610# and sets the high bit in the cache file unless we assign to the vars.
32611(
32612 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32613 eval ac_val=\$$ac_var
32614 case $ac_val in #(
32615 *${as_nl}*)
32616 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000032617 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000032618$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32619 esac
32620 case $ac_var in #(
32621 _ | IFS | as_nl) ;; #(
32622 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000032623 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000032624 esac ;;
32625 esac
32626 done
32627
32628 (set) 2>&1 |
32629 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32630 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000032631 # `set' does not quote correctly, so add quotes: double-quote
32632 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000032633 sed -n \
32634 "s/'/'\\\\''/g;
32635 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32636 ;; #(
32637 *)
32638 # `set' quotes correctly as required by POSIX, so do not add quotes.
32639 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32640 ;;
32641 esac |
32642 sort
32643) |
32644 sed '
32645 /^ac_cv_env_/b end
32646 t clear
32647 :clear
32648 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32649 t end
32650 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32651 :end' >>confcache
32652if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32653 if test -w "$cache_file"; then
32654 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000032655 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032656$as_echo "$as_me: updating cache $cache_file" >&6;}
32657 cat confcache >$cache_file
32658 else
cristy8b350f62009-11-15 23:12:43 +000032659 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032660$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32661 fi
32662fi
32663rm -f confcache
32664
32665test "x$prefix" = xNONE && prefix=$ac_default_prefix
32666# Let make expand exec_prefix.
32667test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32668
32669DEFS=-DHAVE_CONFIG_H
32670
32671ac_libobjs=
32672ac_ltlibobjs=
cristyfd9dcd42010-08-08 18:07:02 +000032673U=
cristy3ed852e2009-09-05 21:47:34 +000032674for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32675 # 1. Remove the extension, and $U if already installed.
32676 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32677 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32678 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32679 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000032680 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32681 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000032682done
32683LIBOBJS=$ac_libobjs
32684
32685LTLIBOBJS=$ac_ltlibobjs
32686
32687
32688 if test -n "$EXEEXT"; then
32689 am__EXEEXT_TRUE=
32690 am__EXEEXT_FALSE='#'
32691else
32692 am__EXEEXT_TRUE='#'
32693 am__EXEEXT_FALSE=
32694fi
32695
32696if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032697 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032698Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032699fi
32700if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032701 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032702Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032703fi
cristya0b81c32010-01-22 02:54:33 +000032704if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032705 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristya0b81c32010-01-22 02:54:33 +000032706Usually this means the macro was only invoked conditionally." "$LINENO" 5
32707fi
cristy3ed852e2009-09-05 21:47:34 +000032708if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032709 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032710Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032711fi
32712if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032713 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032714Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032715fi
32716if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032717 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032718Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032719fi
32720if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032721 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032722Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032723fi
32724if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032725 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032726Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032727fi
cristy3ed852e2009-09-05 21:47:34 +000032728if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032729 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032730Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032731fi
32732if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032733 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032734Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032735fi
32736LT_CONFIG_H=config/config.h
32737
32738 _ltdl_libobjs=
32739 _ltdl_ltlibobjs=
32740 if test -n "$_LT_LIBOBJS"; then
32741 # Remove the extension.
32742 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32743 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32744 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32745 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32746 done
32747 fi
32748 ltdl_LIBOBJS=$_ltdl_libobjs
32749
32750 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32751
32752
cristyfa112112010-01-04 17:48:07 +000032753if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032754 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristyfa112112010-01-04 17:48:07 +000032755Usually this means the macro was only invoked conditionally." "$LINENO" 5
32756fi
cristy3ed852e2009-09-05 21:47:34 +000032757if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032758 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032759Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032760fi
32761if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032762 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032763Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032764fi
32765if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032766 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032767Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032768fi
32769
32770if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032771 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032772Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032773fi
32774if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032775 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032776Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032777fi
32778if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032779 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032780Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032781fi
32782if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032783 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032784Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032785fi
32786if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032787 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032788Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032789fi
32790if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032791 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032792Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032793fi
32794if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032795 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032796Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032797fi
32798if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032799 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032800Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032801fi
32802if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032803 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032804Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032805fi
32806if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032807 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032808Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032809fi
32810if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032811 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032812Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032813fi
32814if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032815 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032816Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032817fi
32818if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032819 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032820Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032821fi
32822if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032823 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032824Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032825fi
32826if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032827 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032828Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032829fi
32830if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032831 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032832Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032833fi
32834if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032835 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032836Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032837fi
32838if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032839 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032840Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032841fi
32842if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032843 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032844Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032845fi
32846if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032847 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032848Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032849fi
32850if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032851 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032852Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032853fi
32854if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032855 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032856Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032857fi
32858if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032859 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032860Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032861fi
32862if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032863 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032864Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032865fi
32866if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032867 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032868Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032869fi
32870if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032871 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032872Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032873fi
32874if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032875 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032876Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032877fi
32878if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032879 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032880Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032881fi
32882if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032883 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032884Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032885fi
32886if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032887 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032888Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032889fi
32890if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032891 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032892Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032893fi
32894if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032895 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032896Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032897fi
32898if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032899 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032900Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032901fi
32902
32903: ${CONFIG_STATUS=./config.status}
32904ac_write_fail=0
32905ac_clean_files_save=$ac_clean_files
32906ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000032907{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032908$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032909as_write_fail=0
32910cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032911#! $SHELL
32912# Generated by $as_me.
32913# Run this file to recreate the current configuration.
32914# Compiler output produced by configure, useful for debugging
32915# configure, is in config.log if it exists.
32916
32917debug=false
32918ac_cs_recheck=false
32919ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000032920
cristy8b350f62009-11-15 23:12:43 +000032921SHELL=\${CONFIG_SHELL-$SHELL}
32922export SHELL
32923_ASEOF
32924cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32925## -------------------- ##
32926## M4sh Initialization. ##
32927## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000032928
32929# Be more Bourne compatible
32930DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000032931if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000032932 emulate sh
32933 NULLCMD=:
32934 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32935 # is contrary to our usage. Disable this feature.
32936 alias -g '${1+"$@"}'='"$@"'
32937 setopt NO_GLOB_SUBST
32938else
cristy8b350f62009-11-15 23:12:43 +000032939 case `(set -o) 2>/dev/null` in #(
32940 *posix*) :
32941 set -o posix ;; #(
32942 *) :
32943 ;;
cristy3ed852e2009-09-05 21:47:34 +000032944esac
cristy3ed852e2009-09-05 21:47:34 +000032945fi
32946
32947
cristy3ed852e2009-09-05 21:47:34 +000032948as_nl='
32949'
32950export as_nl
32951# Printing a long string crashes Solaris 7 /usr/bin/printf.
32952as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32953as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32954as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000032955# Prefer a ksh shell builtin over an external printf program on Solaris,
32956# but without wasting forks for bash or zsh.
32957if test -z "$BASH_VERSION$ZSH_VERSION" \
32958 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32959 as_echo='print -r --'
32960 as_echo_n='print -rn --'
32961elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000032962 as_echo='printf %s\n'
32963 as_echo_n='printf %s'
32964else
32965 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32966 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32967 as_echo_n='/usr/ucb/echo -n'
32968 else
32969 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32970 as_echo_n_body='eval
32971 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000032972 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000032973 *"$as_nl"*)
32974 expr "X$arg" : "X\\(.*\\)$as_nl";
32975 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32976 esac;
32977 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32978 '
32979 export as_echo_n_body
32980 as_echo_n='sh -c $as_echo_n_body as_echo'
32981 fi
32982 export as_echo_body
32983 as_echo='sh -c $as_echo_body as_echo'
32984fi
32985
32986# The user is always right.
32987if test "${PATH_SEPARATOR+set}" != set; then
32988 PATH_SEPARATOR=:
32989 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32990 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32991 PATH_SEPARATOR=';'
32992 }
32993fi
32994
cristy3ed852e2009-09-05 21:47:34 +000032995
32996# IFS
32997# We need space, tab and new line, in precisely that order. Quoting is
32998# there to prevent editors from complaining about space-tab.
32999# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33000# splitting by setting IFS to empty value.)
33001IFS=" "" $as_nl"
33002
33003# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000033004case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000033005 *[\\/]* ) as_myself=$0 ;;
33006 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33007for as_dir in $PATH
33008do
33009 IFS=$as_save_IFS
33010 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033011 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33012 done
cristy3ed852e2009-09-05 21:47:34 +000033013IFS=$as_save_IFS
33014
33015 ;;
33016esac
33017# We did not find ourselves, most probably we were run as `sh COMMAND'
33018# in which case we are not to be found in the path.
33019if test "x$as_myself" = x; then
33020 as_myself=$0
33021fi
33022if test ! -f "$as_myself"; then
33023 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000033024 exit 1
cristy3ed852e2009-09-05 21:47:34 +000033025fi
33026
cristy8b350f62009-11-15 23:12:43 +000033027# Unset variables that we do not need and which cause bugs (e.g. in
33028# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33029# suppresses any "Segmentation fault" message there. '((' could
33030# trigger a bug in pdksh 5.2.14.
33031for as_var in BASH_ENV ENV MAIL MAILPATH
33032do eval test x\${$as_var+set} = xset \
33033 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033034done
33035PS1='$ '
33036PS2='> '
33037PS4='+ '
33038
33039# NLS nuisances.
33040LC_ALL=C
33041export LC_ALL
33042LANGUAGE=C
33043export LANGUAGE
33044
cristy8b350f62009-11-15 23:12:43 +000033045# CDPATH.
33046(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33047
33048
cristyfd9dcd42010-08-08 18:07:02 +000033049# as_fn_error STATUS ERROR [LINENO LOG_FD]
33050# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000033051# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33052# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristyfd9dcd42010-08-08 18:07:02 +000033053# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000033054as_fn_error ()
33055{
cristyfd9dcd42010-08-08 18:07:02 +000033056 as_status=$1; test $as_status -eq 0 && as_status=1
33057 if test "$4"; then
33058 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33059 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000033060 fi
cristyfd9dcd42010-08-08 18:07:02 +000033061 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000033062 as_fn_exit $as_status
33063} # as_fn_error
33064
33065
33066# as_fn_set_status STATUS
33067# -----------------------
33068# Set $? to STATUS, without forking.
33069as_fn_set_status ()
33070{
33071 return $1
33072} # as_fn_set_status
33073
33074# as_fn_exit STATUS
33075# -----------------
33076# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33077as_fn_exit ()
33078{
33079 set +e
33080 as_fn_set_status $1
33081 exit $1
33082} # as_fn_exit
33083
33084# as_fn_unset VAR
33085# ---------------
33086# Portably unset VAR.
33087as_fn_unset ()
33088{
33089 { eval $1=; unset $1;}
33090}
33091as_unset=as_fn_unset
33092# as_fn_append VAR VALUE
33093# ----------------------
33094# Append the text in VALUE to the end of the definition contained in VAR. Take
33095# advantage of any shell optimizations that allow amortized linear growth over
33096# repeated appends, instead of the typical quadratic growth present in naive
33097# implementations.
33098if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33099 eval 'as_fn_append ()
33100 {
33101 eval $1+=\$2
33102 }'
33103else
33104 as_fn_append ()
33105 {
33106 eval $1=\$$1\$2
33107 }
33108fi # as_fn_append
33109
33110# as_fn_arith ARG...
33111# ------------------
33112# Perform arithmetic evaluation on the ARGs, and store the result in the
33113# global $as_val. Take advantage of shells that can avoid forks. The arguments
33114# must be portable across $(()) and expr.
33115if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33116 eval 'as_fn_arith ()
33117 {
33118 as_val=$(( $* ))
33119 }'
33120else
33121 as_fn_arith ()
33122 {
33123 as_val=`expr "$@" || test $? -eq 1`
33124 }
33125fi # as_fn_arith
33126
33127
cristy3ed852e2009-09-05 21:47:34 +000033128if expr a : '\(a\)' >/dev/null 2>&1 &&
33129 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33130 as_expr=expr
33131else
33132 as_expr=false
33133fi
33134
33135if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33136 as_basename=basename
33137else
33138 as_basename=false
33139fi
33140
cristy8b350f62009-11-15 23:12:43 +000033141if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33142 as_dirname=dirname
33143else
33144 as_dirname=false
33145fi
cristy3ed852e2009-09-05 21:47:34 +000033146
cristy3ed852e2009-09-05 21:47:34 +000033147as_me=`$as_basename -- "$0" ||
33148$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33149 X"$0" : 'X\(//\)$' \| \
33150 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33151$as_echo X/"$0" |
33152 sed '/^.*\/\([^/][^/]*\)\/*$/{
33153 s//\1/
33154 q
33155 }
33156 /^X\/\(\/\/\)$/{
33157 s//\1/
33158 q
33159 }
33160 /^X\/\(\/\).*/{
33161 s//\1/
33162 q
33163 }
33164 s/.*/./; q'`
33165
cristy8b350f62009-11-15 23:12:43 +000033166# Avoid depending upon Character Ranges.
33167as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33168as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33169as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33170as_cr_digits='0123456789'
33171as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000033172
33173ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000033174case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000033175-n*)
cristy8b350f62009-11-15 23:12:43 +000033176 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000033177 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000033178 xy) ECHO_C='\c';;
33179 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33180 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000033181 esac;;
33182*)
33183 ECHO_N='-n';;
33184esac
cristy3ed852e2009-09-05 21:47:34 +000033185
33186rm -f conf$$ conf$$.exe conf$$.file
33187if test -d conf$$.dir; then
33188 rm -f conf$$.dir/conf$$.file
33189else
33190 rm -f conf$$.dir
33191 mkdir conf$$.dir 2>/dev/null
33192fi
33193if (echo >conf$$.file) 2>/dev/null; then
33194 if ln -s conf$$.file conf$$ 2>/dev/null; then
33195 as_ln_s='ln -s'
33196 # ... but there are two gotchas:
33197 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33198 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33199 # In both cases, we have to default to `cp -p'.
33200 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33201 as_ln_s='cp -p'
33202 elif ln conf$$.file conf$$ 2>/dev/null; then
33203 as_ln_s=ln
33204 else
33205 as_ln_s='cp -p'
33206 fi
33207else
33208 as_ln_s='cp -p'
33209fi
33210rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33211rmdir conf$$.dir 2>/dev/null
33212
cristy8b350f62009-11-15 23:12:43 +000033213
33214# as_fn_mkdir_p
33215# -------------
33216# Create "$as_dir" as a directory, including parents if necessary.
33217as_fn_mkdir_p ()
33218{
33219
33220 case $as_dir in #(
33221 -*) as_dir=./$as_dir;;
33222 esac
33223 test -d "$as_dir" || eval $as_mkdir_p || {
33224 as_dirs=
33225 while :; do
33226 case $as_dir in #(
33227 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33228 *) as_qdir=$as_dir;;
33229 esac
33230 as_dirs="'$as_qdir' $as_dirs"
33231 as_dir=`$as_dirname -- "$as_dir" ||
33232$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33233 X"$as_dir" : 'X\(//\)[^/]' \| \
33234 X"$as_dir" : 'X\(//\)$' \| \
33235 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33236$as_echo X"$as_dir" |
33237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33238 s//\1/
33239 q
33240 }
33241 /^X\(\/\/\)[^/].*/{
33242 s//\1/
33243 q
33244 }
33245 /^X\(\/\/\)$/{
33246 s//\1/
33247 q
33248 }
33249 /^X\(\/\).*/{
33250 s//\1/
33251 q
33252 }
33253 s/.*/./; q'`
33254 test -d "$as_dir" && break
33255 done
33256 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristyfd9dcd42010-08-08 18:07:02 +000033257 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000033258
33259
33260} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033261if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033262 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000033263else
33264 test -d ./-p && rmdir ./-p
33265 as_mkdir_p=false
33266fi
33267
33268if test -x / >/dev/null 2>&1; then
33269 as_test_x='test -x'
33270else
33271 if ls -dL / >/dev/null 2>&1; then
33272 as_ls_L_option=L
33273 else
33274 as_ls_L_option=
33275 fi
33276 as_test_x='
33277 eval sh -c '\''
33278 if test -d "$1"; then
33279 test -d "$1/.";
33280 else
cristy8b350f62009-11-15 23:12:43 +000033281 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000033282 -*)set "./$1";;
33283 esac;
cristy8b350f62009-11-15 23:12:43 +000033284 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000033285 ???[sx]*):;;*)false;;esac;fi
33286 '\'' sh
33287 '
33288fi
33289as_executable_p=$as_test_x
33290
33291# Sed expression to map a string onto a valid CPP name.
33292as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33293
33294# Sed expression to map a string onto a valid variable name.
33295as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33296
33297
33298exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000033299## ----------------------------------- ##
33300## Main body of $CONFIG_STATUS script. ##
33301## ----------------------------------- ##
33302_ASEOF
33303test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033304
cristy8b350f62009-11-15 23:12:43 +000033305cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33306# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000033307# report actual input values of CONFIG_FILES etc. instead of their
33308# values after options handling.
33309ac_log="
cristyfbb4a972010-06-30 17:42:22 +000033310This file was extended by ImageMagick $as_me 6.6.3, which was
cristyfd9dcd42010-08-08 18:07:02 +000033311generated by GNU Autoconf 2.66. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000033312
33313 CONFIG_FILES = $CONFIG_FILES
33314 CONFIG_HEADERS = $CONFIG_HEADERS
33315 CONFIG_LINKS = $CONFIG_LINKS
33316 CONFIG_COMMANDS = $CONFIG_COMMANDS
33317 $ $0 $@
33318
33319on `(hostname || uname -n) 2>/dev/null | sed 1q`
33320"
33321
33322_ACEOF
33323
33324case $ac_config_files in *"
33325"*) set x $ac_config_files; shift; ac_config_files=$*;;
33326esac
33327
33328case $ac_config_headers in *"
33329"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33330esac
33331
33332
33333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33334# Files that config.status was made for.
33335config_files="$ac_config_files"
33336config_headers="$ac_config_headers"
33337config_commands="$ac_config_commands"
33338
33339_ACEOF
33340
33341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33342ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000033343\`$as_me' instantiates files and other configuration actions
33344from templates according to the current configuration. Unless the files
33345and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000033346
cristy8b350f62009-11-15 23:12:43 +000033347Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000033348
33349 -h, --help print this help, then exit
33350 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000033351 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000033352 -q, --quiet, --silent
33353 do not print progress messages
33354 -d, --debug don't remove temporary files
33355 --recheck update $as_me by reconfiguring in the same conditions
33356 --file=FILE[:TEMPLATE]
33357 instantiate the configuration file FILE
33358 --header=FILE[:TEMPLATE]
33359 instantiate the configuration header FILE
33360
33361Configuration files:
33362$config_files
33363
33364Configuration headers:
33365$config_headers
33366
33367Configuration commands:
33368$config_commands
33369
cristy8b350f62009-11-15 23:12:43 +000033370Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000033371
33372_ACEOF
33373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000033374ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000033375ac_cs_version="\\
cristyfbb4a972010-06-30 17:42:22 +000033376ImageMagick config.status 6.6.3
cristyfd9dcd42010-08-08 18:07:02 +000033377configured by $0, generated by GNU Autoconf 2.66,
cristycd4c5312009-11-22 01:19:08 +000033378 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000033379
cristyfd9dcd42010-08-08 18:07:02 +000033380Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033381This config.status script is free software; the Free Software Foundation
33382gives unlimited permission to copy, distribute and modify it."
33383
33384ac_pwd='$ac_pwd'
33385srcdir='$srcdir'
33386INSTALL='$INSTALL'
33387MKDIR_P='$MKDIR_P'
33388AWK='$AWK'
33389test -n "\$AWK" || AWK=awk
33390_ACEOF
33391
33392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33393# The default lists apply if the user does not specify any file.
33394ac_need_defaults=:
33395while test $# != 0
33396do
33397 case $1 in
33398 --*=*)
33399 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33400 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33401 ac_shift=:
33402 ;;
33403 *)
33404 ac_option=$1
33405 ac_optarg=$2
33406 ac_shift=shift
33407 ;;
33408 esac
33409
33410 case $ac_option in
33411 # Handling of the options.
33412 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33413 ac_cs_recheck=: ;;
33414 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33415 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000033416 --config | --confi | --conf | --con | --co | --c )
33417 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000033418 --debug | --debu | --deb | --de | --d | -d )
33419 debug=: ;;
33420 --file | --fil | --fi | --f )
33421 $ac_shift
33422 case $ac_optarg in
33423 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33424 esac
cristy8b350f62009-11-15 23:12:43 +000033425 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033426 ac_need_defaults=false;;
33427 --header | --heade | --head | --hea )
33428 $ac_shift
33429 case $ac_optarg in
33430 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33431 esac
cristy8b350f62009-11-15 23:12:43 +000033432 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033433 ac_need_defaults=false;;
33434 --he | --h)
33435 # Conflict between --help and --header
cristyfd9dcd42010-08-08 18:07:02 +000033436 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033437Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000033438 --help | --hel | -h )
33439 $as_echo "$ac_cs_usage"; exit ;;
33440 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33441 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33442 ac_cs_silent=: ;;
33443
33444 # This is an error.
cristyfd9dcd42010-08-08 18:07:02 +000033445 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033446Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000033447
cristy8b350f62009-11-15 23:12:43 +000033448 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000033449 ac_need_defaults=false ;;
33450
33451 esac
33452 shift
33453done
33454
33455ac_configure_extra_args=
33456
33457if $ac_cs_silent; then
33458 exec 6>/dev/null
33459 ac_configure_extra_args="$ac_configure_extra_args --silent"
33460fi
33461
33462_ACEOF
33463cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33464if \$ac_cs_recheck; then
33465 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33466 shift
33467 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33468 CONFIG_SHELL='$SHELL'
33469 export CONFIG_SHELL
33470 exec "\$@"
33471fi
33472
33473_ACEOF
33474cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33475exec 5>>config.log
33476{
33477 echo
33478 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33479## Running $as_me. ##
33480_ASBOX
33481 $as_echo "$ac_log"
33482} >&5
33483
33484_ACEOF
33485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33486#
33487# INIT-COMMANDS
33488#
33489PACKAGE="$PACKAGE"
33490AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33491
33492
33493# The HP-UX ksh and POSIX shell print the target directory to stdout
33494# if CDPATH is set.
33495(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33496
33497sed_quote_subst='$sed_quote_subst'
33498double_quote_subst='$double_quote_subst'
33499delay_variable_subst='$delay_variable_subst'
cristyfd9dcd42010-08-08 18:07:02 +000033500SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33501Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33502GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33503EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33504FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33505SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33506ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33507LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33508macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33509macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33510AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
33511DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33512OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33513enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33514enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33515pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33516enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33517host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33518host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33519host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33520build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33521build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33522build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33523NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33524LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33525max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33526ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33527exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33528lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33529lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33530lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33531reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33532reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33533deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33534file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33535AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33536AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33537STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33538RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33539old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33540old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33541old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
33542lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
33543CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
33544CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
33545compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
33546GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
33547lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
33548lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33549lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33550lt_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"`'
33551objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33552MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33553lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33554lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33555lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33556lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33557lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33558need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33559DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33560NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33561LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33562OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
33563OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
33564libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
33565shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
33566extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33567archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
33568enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
33569export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
33570whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
33571compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
33572old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
33573old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33574archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
33575archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33576module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
33577module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33578with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
33579allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
33580no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
33581hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
33582hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
33583hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
33584hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
33585hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
33586hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
33587hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
33588hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33589inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33590link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33591fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
33592always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33593export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33594exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33595include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33596prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33597file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33598variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33599need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33600need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
33601version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
33602runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
33603shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
33604shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
33605libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
33606library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
33607soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
33608install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
33609postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33610postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33611finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
33612finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
33613hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
33614sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
33615sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
33616hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
33617enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
33618enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
33619enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
33620old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
33621striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
33622compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
33623predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
33624postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
33625predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
33626postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
33627compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
33628LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
33629reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
33630reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33631old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33632compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
33633GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
33634lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
33635lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
33636lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
33637lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
33638lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
33639archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
33640enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
33641export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33642whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33643compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
33644old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33645old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33646archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33647archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33648module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33649module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33650with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
33651allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33652no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33653hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33654hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
33655hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
33656hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
33657hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
33658hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
33659hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
33660hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
33661inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
33662link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
33663fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
33664always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
33665export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33666exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33667include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33668prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33669file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
33670hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
33671compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
33672predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33673postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33674predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
33675postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
33676compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000033677
33678LTCC='$LTCC'
33679LTCFLAGS='$LTCFLAGS'
33680compiler='$compiler_DEFAULT'
33681
cristyfd9dcd42010-08-08 18:07:02 +000033682# A function that is used when there is no print builtin or printf.
33683func_fallback_echo ()
33684{
33685 eval 'cat <<_LTECHO_EOF
33686\$1
33687_LTECHO_EOF'
33688}
33689
cristy3ed852e2009-09-05 21:47:34 +000033690# Quote evaled strings.
33691for var in SED \
33692GREP \
33693EGREP \
33694FGREP \
cristyfd9dcd42010-08-08 18:07:02 +000033695SHELL \
33696ECHO \
cristy3ed852e2009-09-05 21:47:34 +000033697LD \
cristyfd9dcd42010-08-08 18:07:02 +000033698AS \
33699DLLTOOL \
33700OBJDUMP \
cristy3ed852e2009-09-05 21:47:34 +000033701NM \
33702LN_S \
33703lt_SP2NL \
33704lt_NL2SP \
33705reload_flag \
33706deplibs_check_method \
33707file_magic_cmd \
33708AR \
33709AR_FLAGS \
33710STRIP \
33711RANLIB \
33712CC \
33713CFLAGS \
33714compiler \
33715lt_cv_sys_global_symbol_pipe \
33716lt_cv_sys_global_symbol_to_cdecl \
33717lt_cv_sys_global_symbol_to_c_name_address \
33718lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy3ed852e2009-09-05 21:47:34 +000033719lt_prog_compiler_no_builtin_flag \
33720lt_prog_compiler_wl \
33721lt_prog_compiler_pic \
33722lt_prog_compiler_static \
33723lt_cv_prog_compiler_c_o \
33724need_locks \
33725DSYMUTIL \
33726NMEDIT \
33727LIPO \
33728OTOOL \
33729OTOOL64 \
33730shrext_cmds \
33731export_dynamic_flag_spec \
33732whole_archive_flag_spec \
33733compiler_needs_object \
33734with_gnu_ld \
33735allow_undefined_flag \
33736no_undefined_flag \
33737hardcode_libdir_flag_spec \
33738hardcode_libdir_flag_spec_ld \
33739hardcode_libdir_separator \
33740fix_srcfile_path \
33741exclude_expsyms \
33742include_expsyms \
33743file_list_spec \
33744variables_saved_for_relink \
33745libname_spec \
33746library_names_spec \
33747soname_spec \
cristyfd9dcd42010-08-08 18:07:02 +000033748install_override_mode \
cristy3ed852e2009-09-05 21:47:34 +000033749finish_eval \
33750old_striplib \
33751striplib \
33752compiler_lib_search_dirs \
33753predep_objects \
33754postdep_objects \
33755predeps \
33756postdeps \
33757compiler_lib_search_path \
33758LD_CXX \
cristyfd9dcd42010-08-08 18:07:02 +000033759reload_flag_CXX \
cristy3ed852e2009-09-05 21:47:34 +000033760compiler_CXX \
33761lt_prog_compiler_no_builtin_flag_CXX \
33762lt_prog_compiler_wl_CXX \
33763lt_prog_compiler_pic_CXX \
33764lt_prog_compiler_static_CXX \
33765lt_cv_prog_compiler_c_o_CXX \
33766export_dynamic_flag_spec_CXX \
33767whole_archive_flag_spec_CXX \
33768compiler_needs_object_CXX \
33769with_gnu_ld_CXX \
33770allow_undefined_flag_CXX \
33771no_undefined_flag_CXX \
33772hardcode_libdir_flag_spec_CXX \
33773hardcode_libdir_flag_spec_ld_CXX \
33774hardcode_libdir_separator_CXX \
33775fix_srcfile_path_CXX \
33776exclude_expsyms_CXX \
33777include_expsyms_CXX \
33778file_list_spec_CXX \
33779compiler_lib_search_dirs_CXX \
33780predep_objects_CXX \
33781postdep_objects_CXX \
33782predeps_CXX \
33783postdeps_CXX \
33784compiler_lib_search_path_CXX; do
cristyfd9dcd42010-08-08 18:07:02 +000033785 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy3ed852e2009-09-05 21:47:34 +000033786 *[\\\\\\\`\\"\\\$]*)
cristyfd9dcd42010-08-08 18:07:02 +000033787 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033788 ;;
33789 *)
33790 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33791 ;;
33792 esac
33793done
33794
33795# Double-quote double-evaled strings.
33796for var in reload_cmds \
33797old_postinstall_cmds \
33798old_postuninstall_cmds \
33799old_archive_cmds \
33800extract_expsyms_cmds \
33801old_archive_from_new_cmds \
33802old_archive_from_expsyms_cmds \
33803archive_cmds \
33804archive_expsym_cmds \
33805module_cmds \
33806module_expsym_cmds \
33807export_symbols_cmds \
33808prelink_cmds \
33809postinstall_cmds \
33810postuninstall_cmds \
33811finish_cmds \
33812sys_lib_search_path_spec \
33813sys_lib_dlsearch_path_spec \
cristyfd9dcd42010-08-08 18:07:02 +000033814reload_cmds_CXX \
cristy3ed852e2009-09-05 21:47:34 +000033815old_archive_cmds_CXX \
33816old_archive_from_new_cmds_CXX \
33817old_archive_from_expsyms_cmds_CXX \
33818archive_cmds_CXX \
33819archive_expsym_cmds_CXX \
33820module_cmds_CXX \
33821module_expsym_cmds_CXX \
33822export_symbols_cmds_CXX \
33823prelink_cmds_CXX; do
cristyfd9dcd42010-08-08 18:07:02 +000033824 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy3ed852e2009-09-05 21:47:34 +000033825 *[\\\\\\\`\\"\\\$]*)
cristyfd9dcd42010-08-08 18:07:02 +000033826 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033827 ;;
33828 *)
33829 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33830 ;;
33831 esac
33832done
33833
cristy3ed852e2009-09-05 21:47:34 +000033834ac_aux_dir='$ac_aux_dir'
33835xsi_shell='$xsi_shell'
33836lt_shell_append='$lt_shell_append'
33837
33838# See if we are running on zsh, and set the options which allow our
33839# commands through without removal of \ escapes INIT.
33840if test -n "\${ZSH_VERSION+set}" ; then
33841 setopt NO_GLOB_SUBST
33842fi
33843
33844
33845 PACKAGE='$PACKAGE'
33846 VERSION='$VERSION'
33847 TIMESTAMP='$TIMESTAMP'
33848 RM='$RM'
33849 ofile='$ofile'
33850
33851
33852
33853
33854
33855
33856_ACEOF
33857
33858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33859
33860# Handling of arguments.
33861for ac_config_target in $ac_config_targets
33862do
33863 case $ac_config_target in
33864 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33865 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33866 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33867 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33868 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33869 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33870 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000033871 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000033872 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33873 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33874 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33875 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33876 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33877 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33878 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33879 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33880 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33881 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33882 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33883 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33884 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33885 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33886 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33887 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33888 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33889 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33890 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33891 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33892 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33893 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33894 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33895 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33896 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33897 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33898 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33899 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33900 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33901 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33902 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33903 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33904 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
33905 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33906 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33907 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33908 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33909 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33910 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33911 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33912 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33913 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33914
cristyfd9dcd42010-08-08 18:07:02 +000033915 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033916 esac
33917done
33918
33919
33920# If the user did not use the arguments to specify the items to instantiate,
33921# then the envvar interface is used. Set only those that are not.
33922# We use the long form for the default assignment because of an extremely
33923# bizarre bug on SunOS 4.1.3.
33924if $ac_need_defaults; then
33925 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33926 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33927 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33928fi
33929
33930# Have a temporary directory for convenience. Make it in the build tree
33931# simply because there is no reason against having it here, and in addition,
33932# creating and moving files from /tmp can sometimes cause problems.
33933# Hook for its removal unless debugging.
33934# Note that there is a small window in which the directory will not be cleaned:
33935# after its creation but before its name has been assigned to `$tmp'.
33936$debug ||
33937{
33938 tmp=
33939 trap 'exit_status=$?
33940 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33941' 0
cristy8b350f62009-11-15 23:12:43 +000033942 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000033943}
33944# Create a (secure) tmp directory for tmp files.
33945
33946{
33947 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33948 test -n "$tmp" && test -d "$tmp"
33949} ||
33950{
33951 tmp=./conf$$-$RANDOM
33952 (umask 077 && mkdir "$tmp")
cristyfd9dcd42010-08-08 18:07:02 +000033953} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033954
33955# Set up the scripts for CONFIG_FILES section.
33956# No need to generate them if there are no CONFIG_FILES.
33957# This happens for instance with `./config.status config.h'.
33958if test -n "$CONFIG_FILES"; then
33959
33960
cristy8b350f62009-11-15 23:12:43 +000033961ac_cr=`echo X | tr X '\015'`
33962# On cygwin, bash can eat \r inside `` if the user requested igncr.
33963# But we know of no other shell where ac_cr would be empty at this
33964# point, so we can use a bashism as a fallback.
33965if test "x$ac_cr" = x; then
33966 eval ac_cr=\$\'\\r\'
33967fi
cristy3ed852e2009-09-05 21:47:34 +000033968ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33969if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristyfd9dcd42010-08-08 18:07:02 +000033970 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000033971else
33972 ac_cs_awk_cr=$ac_cr
33973fi
33974
33975echo 'BEGIN {' >"$tmp/subs1.awk" &&
33976_ACEOF
33977
33978
33979{
33980 echo "cat >conf$$subs.awk <<_ACEOF" &&
33981 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33982 echo "_ACEOF"
33983} >conf$$subs.sh ||
cristyfd9dcd42010-08-08 18:07:02 +000033984 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33985ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000033986ac_delim='%!_!# '
33987for ac_last_try in false false false false false :; do
33988 . ./conf$$subs.sh ||
cristyfd9dcd42010-08-08 18:07:02 +000033989 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033990
33991 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33992 if test $ac_delim_n = $ac_delim_num; then
33993 break
33994 elif $ac_last_try; then
cristyfd9dcd42010-08-08 18:07:02 +000033995 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033996 else
33997 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33998 fi
33999done
34000rm -f conf$$subs.sh
34001
34002cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34003cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34004_ACEOF
34005sed -n '
34006h
34007s/^/S["/; s/!.*/"]=/
34008p
34009g
34010s/^[^!]*!//
34011:repl
34012t repl
34013s/'"$ac_delim"'$//
34014t delim
34015:nl
34016h
cristycd4c5312009-11-22 01:19:08 +000034017s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034018t more1
34019s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34020p
34021n
34022b repl
34023:more1
34024s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34025p
34026g
34027s/.\{148\}//
34028t nl
34029:delim
34030h
cristycd4c5312009-11-22 01:19:08 +000034031s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034032t more2
34033s/["\\]/\\&/g; s/^/"/; s/$/"/
34034p
34035b
34036:more2
34037s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34038p
34039g
34040s/.\{148\}//
34041t delim
34042' <conf$$subs.awk | sed '
34043/^[^""]/{
34044 N
34045 s/\n//
34046}
34047' >>$CONFIG_STATUS || ac_write_fail=1
34048rm -f conf$$subs.awk
34049cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34050_ACAWK
34051cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34052 for (key in S) S_is_set[key] = 1
34053 FS = ""
34054
34055}
34056{
34057 line = $ 0
34058 nfields = split(line, field, "@")
34059 substed = 0
34060 len = length(field[1])
34061 for (i = 2; i < nfields; i++) {
34062 key = field[i]
34063 keylen = length(key)
34064 if (S_is_set[key]) {
34065 value = S[key]
34066 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34067 len += length(value) + length(field[++i])
34068 substed = 1
34069 } else
34070 len += 1 + keylen
34071 }
34072
34073 print line
34074}
34075
34076_ACAWK
34077_ACEOF
34078cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34079if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34080 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34081else
34082 cat
34083fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristyfd9dcd42010-08-08 18:07:02 +000034084 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034085_ACEOF
34086
cristyfd9dcd42010-08-08 18:07:02 +000034087# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34088# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000034089# trailing colons and then remove the whole line if VPATH becomes empty
34090# (actually we leave an empty line to preserve line numbers).
34091if test "x$srcdir" = x.; then
cristyfd9dcd42010-08-08 18:07:02 +000034092 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34093h
34094s///
34095s/^/:/
34096s/[ ]*$/:/
34097s/:\$(srcdir):/:/g
34098s/:\${srcdir}:/:/g
34099s/:@srcdir@:/:/g
34100s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000034101s/:*$//
cristyfd9dcd42010-08-08 18:07:02 +000034102x
34103s/\(=[ ]*\).*/\1/
34104G
34105s/\n//
cristy3ed852e2009-09-05 21:47:34 +000034106s/^[^=]*=[ ]*$//
34107}'
34108fi
34109
34110cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34111fi # test -n "$CONFIG_FILES"
34112
34113# Set up the scripts for CONFIG_HEADERS section.
34114# No need to generate them if there are no CONFIG_HEADERS.
34115# This happens for instance with `./config.status Makefile'.
34116if test -n "$CONFIG_HEADERS"; then
34117cat >"$tmp/defines.awk" <<\_ACAWK ||
34118BEGIN {
34119_ACEOF
34120
34121# Transform confdefs.h into an awk script `defines.awk', embedded as
34122# here-document in config.status, that substitutes the proper values into
34123# config.h.in to produce config.h.
34124
34125# Create a delimiter string that does not exist in confdefs.h, to ease
34126# handling of long lines.
34127ac_delim='%!_!# '
34128for ac_last_try in false false :; do
34129 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34130 if test -z "$ac_t"; then
34131 break
34132 elif $ac_last_try; then
cristyfd9dcd42010-08-08 18:07:02 +000034133 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034134 else
34135 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34136 fi
34137done
34138
34139# For the awk script, D is an array of macro values keyed by name,
34140# likewise P contains macro parameters if any. Preserve backslash
34141# newline sequences.
34142
34143ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34144sed -n '
34145s/.\{148\}/&'"$ac_delim"'/g
34146t rset
34147:rset
34148s/^[ ]*#[ ]*define[ ][ ]*/ /
34149t def
34150d
34151:def
34152s/\\$//
34153t bsnl
34154s/["\\]/\\&/g
34155s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34156D["\1"]=" \3"/p
34157s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34158d
34159:bsnl
34160s/["\\]/\\&/g
34161s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34162D["\1"]=" \3\\\\\\n"\\/p
34163t cont
34164s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34165t cont
34166d
34167:cont
34168n
34169s/.\{148\}/&'"$ac_delim"'/g
34170t clear
34171:clear
34172s/\\$//
34173t bsnlc
34174s/["\\]/\\&/g; s/^/"/; s/$/"/p
34175d
34176:bsnlc
34177s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34178b cont
34179' <confdefs.h | sed '
34180s/'"$ac_delim"'/"\\\
34181"/g' >>$CONFIG_STATUS || ac_write_fail=1
34182
34183cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34184 for (key in D) D_is_set[key] = 1
34185 FS = ""
34186}
34187/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34188 line = \$ 0
34189 split(line, arg, " ")
34190 if (arg[1] == "#") {
34191 defundef = arg[2]
34192 mac1 = arg[3]
34193 } else {
34194 defundef = substr(arg[1], 2)
34195 mac1 = arg[2]
34196 }
34197 split(mac1, mac2, "(") #)
34198 macro = mac2[1]
34199 prefix = substr(line, 1, index(line, defundef) - 1)
34200 if (D_is_set[macro]) {
34201 # Preserve the white space surrounding the "#".
34202 print prefix "define", macro P[macro] D[macro]
34203 next
34204 } else {
34205 # Replace #undef with comments. This is necessary, for example,
34206 # in the case of _POSIX_SOURCE, which is predefined and required
34207 # on some systems where configure will not decide to define it.
34208 if (defundef == "undef") {
34209 print "/*", prefix defundef, macro, "*/"
34210 next
34211 }
34212 }
34213}
34214{ print }
34215_ACAWK
34216_ACEOF
34217cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristyfd9dcd42010-08-08 18:07:02 +000034218 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034219fi # test -n "$CONFIG_HEADERS"
34220
34221
34222eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34223shift
34224for ac_tag
34225do
34226 case $ac_tag in
34227 :[FHLC]) ac_mode=$ac_tag; continue;;
34228 esac
34229 case $ac_mode$ac_tag in
34230 :[FHL]*:*);;
cristyfd9dcd42010-08-08 18:07:02 +000034231 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034232 :[FH]-) ac_tag=-:-;;
34233 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34234 esac
34235 ac_save_IFS=$IFS
34236 IFS=:
34237 set x $ac_tag
34238 IFS=$ac_save_IFS
34239 shift
34240 ac_file=$1
34241 shift
34242
34243 case $ac_mode in
34244 :L) ac_source=$1;;
34245 :[FH])
34246 ac_file_inputs=
34247 for ac_f
34248 do
34249 case $ac_f in
34250 -) ac_f="$tmp/stdin";;
34251 *) # Look for the file first in the build tree, then in the source tree
34252 # (if the path is not absolute). The absolute path cannot be DOS-style,
34253 # because $ac_f cannot contain `:'.
34254 test -f "$ac_f" ||
34255 case $ac_f in
34256 [\\/$]*) false;;
34257 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34258 esac ||
cristyfd9dcd42010-08-08 18:07:02 +000034259 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034260 esac
34261 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000034262 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000034263 done
34264
34265 # Let's still pretend it is `configure' which instantiates (i.e., don't
34266 # use $as_me), people would be surprised to read:
34267 # /* config.h. Generated by config.status. */
34268 configure_input='Generated from '`
34269 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34270 `' by configure.'
34271 if test x"$ac_file" != x-; then
34272 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000034273 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034274$as_echo "$as_me: creating $ac_file" >&6;}
34275 fi
34276 # Neutralize special characters interpreted by sed in replacement strings.
34277 case $configure_input in #(
34278 *\&* | *\|* | *\\* )
34279 ac_sed_conf_input=`$as_echo "$configure_input" |
34280 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34281 *) ac_sed_conf_input=$configure_input;;
34282 esac
34283
34284 case $ac_tag in
34285 *:-:* | *:-) cat >"$tmp/stdin" \
cristyfd9dcd42010-08-08 18:07:02 +000034286 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000034287 esac
34288 ;;
34289 esac
34290
34291 ac_dir=`$as_dirname -- "$ac_file" ||
34292$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34293 X"$ac_file" : 'X\(//\)[^/]' \| \
34294 X"$ac_file" : 'X\(//\)$' \| \
34295 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34296$as_echo X"$ac_file" |
34297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34298 s//\1/
34299 q
34300 }
34301 /^X\(\/\/\)[^/].*/{
34302 s//\1/
34303 q
34304 }
34305 /^X\(\/\/\)$/{
34306 s//\1/
34307 q
34308 }
34309 /^X\(\/\).*/{
34310 s//\1/
34311 q
34312 }
34313 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034314 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034315 ac_builddir=.
34316
34317case "$ac_dir" in
34318.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34319*)
34320 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34321 # A ".." for each directory in $ac_dir_suffix.
34322 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34323 case $ac_top_builddir_sub in
34324 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34325 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34326 esac ;;
34327esac
34328ac_abs_top_builddir=$ac_pwd
34329ac_abs_builddir=$ac_pwd$ac_dir_suffix
34330# for backward compatibility:
34331ac_top_builddir=$ac_top_build_prefix
34332
34333case $srcdir in
34334 .) # We are building in place.
34335 ac_srcdir=.
34336 ac_top_srcdir=$ac_top_builddir_sub
34337 ac_abs_top_srcdir=$ac_pwd ;;
34338 [\\/]* | ?:[\\/]* ) # Absolute name.
34339 ac_srcdir=$srcdir$ac_dir_suffix;
34340 ac_top_srcdir=$srcdir
34341 ac_abs_top_srcdir=$srcdir ;;
34342 *) # Relative name.
34343 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34344 ac_top_srcdir=$ac_top_build_prefix$srcdir
34345 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34346esac
34347ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34348
34349
34350 case $ac_mode in
34351 :F)
34352 #
34353 # CONFIG_FILE
34354 #
34355
34356 case $INSTALL in
34357 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34358 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34359 esac
34360 ac_MKDIR_P=$MKDIR_P
34361 case $MKDIR_P in
34362 [\\/$]* | ?:[\\/]* ) ;;
34363 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34364 esac
34365_ACEOF
34366
34367cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34368# If the template does not know about datarootdir, expand it.
34369# FIXME: This hack should be removed a few years after 2.60.
34370ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000034371ac_sed_dataroot='
34372/datarootdir/ {
34373 p
34374 q
34375}
34376/@datadir@/p
34377/@docdir@/p
34378/@infodir@/p
34379/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000034380/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000034381case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34382*datarootdir*) ac_datarootdir_seen=yes;;
34383*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000034384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000034385$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34386_ACEOF
34387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34388 ac_datarootdir_hack='
34389 s&@datadir@&$datadir&g
34390 s&@docdir@&$docdir&g
34391 s&@infodir@&$infodir&g
34392 s&@localedir@&$localedir&g
34393 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000034394 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000034395esac
34396_ACEOF
34397
34398# Neutralize VPATH when `$srcdir' = `.'.
34399# Shell code in configure.ac might set extrasub.
34400# FIXME: do we really want to maintain this feature?
34401cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34402ac_sed_extra="$ac_vpsub
34403$extrasub
34404_ACEOF
34405cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34406:t
34407/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34408s|@configure_input@|$ac_sed_conf_input|;t t
34409s&@top_builddir@&$ac_top_builddir_sub&;t t
34410s&@top_build_prefix@&$ac_top_build_prefix&;t t
34411s&@srcdir@&$ac_srcdir&;t t
34412s&@abs_srcdir@&$ac_abs_srcdir&;t t
34413s&@top_srcdir@&$ac_top_srcdir&;t t
34414s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34415s&@builddir@&$ac_builddir&;t t
34416s&@abs_builddir@&$ac_abs_builddir&;t t
34417s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34418s&@INSTALL@&$ac_INSTALL&;t t
34419s&@MKDIR_P@&$ac_MKDIR_P&;t t
34420$ac_datarootdir_hack
34421"
34422eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristyfd9dcd42010-08-08 18:07:02 +000034423 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034424
34425test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34426 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34427 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000034428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristyfd9dcd42010-08-08 18:07:02 +000034429which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000034430$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristyfd9dcd42010-08-08 18:07:02 +000034431which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000034432
34433 rm -f "$tmp/stdin"
34434 case $ac_file in
34435 -) cat "$tmp/out" && rm -f "$tmp/out";;
34436 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34437 esac \
cristyfd9dcd42010-08-08 18:07:02 +000034438 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034439 ;;
34440 :H)
34441 #
34442 # CONFIG_HEADER
34443 #
34444 if test x"$ac_file" != x-; then
34445 {
34446 $as_echo "/* $configure_input */" \
34447 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34448 } >"$tmp/config.h" \
cristyfd9dcd42010-08-08 18:07:02 +000034449 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034450 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000034451 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034452$as_echo "$as_me: $ac_file is unchanged" >&6;}
34453 else
34454 rm -f "$ac_file"
34455 mv "$tmp/config.h" "$ac_file" \
cristyfd9dcd42010-08-08 18:07:02 +000034456 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034457 fi
34458 else
34459 $as_echo "/* $configure_input */" \
34460 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristyfd9dcd42010-08-08 18:07:02 +000034461 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034462 fi
34463# Compute "$ac_file"'s index in $config_headers.
34464_am_arg="$ac_file"
34465_am_stamp_count=1
34466for _am_header in $config_headers :; do
34467 case $_am_header in
34468 $_am_arg | $_am_arg:* )
34469 break ;;
34470 * )
34471 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34472 esac
34473done
34474echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34475$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34476 X"$_am_arg" : 'X\(//\)[^/]' \| \
34477 X"$_am_arg" : 'X\(//\)$' \| \
34478 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34479$as_echo X"$_am_arg" |
34480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34481 s//\1/
34482 q
34483 }
34484 /^X\(\/\/\)[^/].*/{
34485 s//\1/
34486 q
34487 }
34488 /^X\(\/\/\)$/{
34489 s//\1/
34490 q
34491 }
34492 /^X\(\/\).*/{
34493 s//\1/
34494 q
34495 }
34496 s/.*/./; q'`/stamp-h$_am_stamp_count
34497 ;;
34498
cristy8b350f62009-11-15 23:12:43 +000034499 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000034500$as_echo "$as_me: executing $ac_file commands" >&6;}
34501 ;;
34502 esac
34503
34504
34505 case $ac_file$ac_mode in
34506 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34507ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34508ac_prefix_conf_PKG=`echo MagickCore`
34509ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34510ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34511ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34512if test ".$ac_prefix_conf_INP" = "."; then
34513 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34514 case "$ac_file" in
34515 *.h) ac_prefix_conf_INP=$ac_file ;;
34516 *)
34517 esac
34518 test ".$ac_prefix_conf_INP" != "." && break
34519 done
34520fi
34521if test ".$ac_prefix_conf_INP" = "."; then
34522 case "$ac_prefix_conf_OUT" in
34523 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34524 ;;
34525 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34526 ;;
34527 *) ac_prefix_conf_INP=config.h
34528 ;;
34529 esac
34530fi
34531if test -z "$ac_prefix_conf_PKG" ; then
cristyfd9dcd42010-08-08 18:07:02 +000034532 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034533else
34534 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34535 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34536 fi fi
cristy8b350f62009-11-15 23:12:43 +000034537 { $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 +000034538$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34539 if test -f $ac_prefix_conf_INP ; then
34540 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34541 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034542 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34543 echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034544 echo "#endif/" >>conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034545 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34546 echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034547 echo "#endif/" >> conftest.prefix
34548 # now executing _script on _DEF input to create _OUT output file
34549 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34550 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34551 echo ' ' >>$tmp/pconfig.h
34552 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34553
34554 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34555 echo ' ' >>$tmp/pconfig.h
34556 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34557 echo "#endif" >>$tmp/pconfig.h
34558 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034559 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034560$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34561 else
34562 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34563$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34564 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34565 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34566 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34567$as_echo X"$ac_prefix_conf_OUT" |
34568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34569 s//\1/
34570 q
34571 }
34572 /^X\(\/\/\)[^/].*/{
34573 s//\1/
34574 q
34575 }
34576 /^X\(\/\/\)$/{
34577 s//\1/
34578 q
34579 }
34580 /^X\(\/\).*/{
34581 s//\1/
34582 q
34583 }
34584 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034585 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034586 rm -f "$ac_prefix_conf_OUT"
34587 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34588 fi
34589 cp conftest.prefix _configs.sed
34590 else
cristyfd9dcd42010-08-08 18:07:02 +000034591 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 +000034592 fi
34593 rm -f conftest.*
34594fi
34595 ;;
34596 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34597 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34598 # are listed without --file. Let's play safe and only enable the eval
34599 # if we detect the quoting.
34600 case $CONFIG_FILES in
34601 *\'*) eval set x "$CONFIG_FILES" ;;
34602 *) set x $CONFIG_FILES ;;
34603 esac
34604 shift
34605 for mf
34606 do
34607 # Strip MF so we end up with the name of the file.
34608 mf=`echo "$mf" | sed -e 's/:.*$//'`
34609 # Check whether this is an Automake generated Makefile or not.
34610 # We used to match only the files named `Makefile.in', but
34611 # some people rename them; so instead we look at the file content.
34612 # Grep'ing the first line is not enough: some people post-process
34613 # each Makefile.in and add a new line on top of each file to say so.
34614 # Grep'ing the whole file is not good either: AIX grep has a line
34615 # limit of 2048, but all sed's we know have understand at least 4000.
34616 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34617 dirpart=`$as_dirname -- "$mf" ||
34618$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34619 X"$mf" : 'X\(//\)[^/]' \| \
34620 X"$mf" : 'X\(//\)$' \| \
34621 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34622$as_echo X"$mf" |
34623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34624 s//\1/
34625 q
34626 }
34627 /^X\(\/\/\)[^/].*/{
34628 s//\1/
34629 q
34630 }
34631 /^X\(\/\/\)$/{
34632 s//\1/
34633 q
34634 }
34635 /^X\(\/\).*/{
34636 s//\1/
34637 q
34638 }
34639 s/.*/./; q'`
34640 else
34641 continue
34642 fi
34643 # Extract the definition of DEPDIR, am__include, and am__quote
34644 # from the Makefile without running `make'.
34645 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34646 test -z "$DEPDIR" && continue
34647 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34648 test -z "am__include" && continue
34649 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34650 # When using ansi2knr, U may be empty or an underscore; expand it
34651 U=`sed -n 's/^U = //p' < "$mf"`
34652 # Find all dependency output files, they are included files with
34653 # $(DEPDIR) in their names. We invoke sed twice because it is the
34654 # simplest approach to changing $(DEPDIR) to its actual value in the
34655 # expansion.
34656 for file in `sed -n "
34657 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34658 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34659 # Make sure the directory exists.
34660 test -f "$dirpart/$file" && continue
34661 fdir=`$as_dirname -- "$file" ||
34662$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34663 X"$file" : 'X\(//\)[^/]' \| \
34664 X"$file" : 'X\(//\)$' \| \
34665 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34666$as_echo X"$file" |
34667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34668 s//\1/
34669 q
34670 }
34671 /^X\(\/\/\)[^/].*/{
34672 s//\1/
34673 q
34674 }
34675 /^X\(\/\/\)$/{
34676 s//\1/
34677 q
34678 }
34679 /^X\(\/\).*/{
34680 s//\1/
34681 q
34682 }
34683 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034684 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034685 # echo "creating $dirpart/$file"
34686 echo '# dummy' > "$dirpart/$file"
34687 done
34688 done
34689}
34690 ;;
34691 "libtool":C)
34692
34693 # See if we are running on zsh, and set the options which allow our
34694 # commands through without removal of \ escapes.
34695 if test -n "${ZSH_VERSION+set}" ; then
34696 setopt NO_GLOB_SUBST
34697 fi
34698
34699 cfgfile="${ofile}T"
34700 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34701 $RM "$cfgfile"
34702
34703 cat <<_LT_EOF >> "$cfgfile"
34704#! $SHELL
34705
34706# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34707# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34708# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34709# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34710#
34711# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristyfd9dcd42010-08-08 18:07:02 +000034712# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
34713# Inc.
cristy3ed852e2009-09-05 21:47:34 +000034714# Written by Gordon Matzigkeit, 1996
34715#
34716# This file is part of GNU Libtool.
34717#
34718# GNU Libtool is free software; you can redistribute it and/or
34719# modify it under the terms of the GNU General Public License as
34720# published by the Free Software Foundation; either version 2 of
34721# the License, or (at your option) any later version.
34722#
34723# As a special exception to the GNU General Public License,
34724# if you distribute this file as part of a program or library that
34725# is built using GNU Libtool, you may include this file under the
34726# same distribution terms that you use for the rest of that program.
34727#
34728# GNU Libtool is distributed in the hope that it will be useful,
34729# but WITHOUT ANY WARRANTY; without even the implied warranty of
34730# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34731# GNU General Public License for more details.
34732#
34733# You should have received a copy of the GNU General Public License
34734# along with GNU Libtool; see the file COPYING. If not, a copy
34735# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34736# obtained by writing to the Free Software Foundation, Inc.,
34737# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34738
34739
34740# The names of the tagged configurations supported by this script.
34741available_tags="CXX "
34742
34743# ### BEGIN LIBTOOL CONFIG
34744
34745# A sed program that does not truncate output.
34746SED=$lt_SED
34747
34748# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34749Xsed="\$SED -e 1s/^X//"
34750
34751# A grep program that handles long lines.
34752GREP=$lt_GREP
34753
34754# An ERE matcher.
34755EGREP=$lt_EGREP
34756
34757# A literal string matcher.
34758FGREP=$lt_FGREP
34759
cristyfd9dcd42010-08-08 18:07:02 +000034760# Shell to use when invoking shell scripts.
34761SHELL=$lt_SHELL
34762
34763# An echo program that protects backslashes.
34764ECHO=$lt_ECHO
34765
cristy3ed852e2009-09-05 21:47:34 +000034766# Which release of libtool.m4 was used?
34767macro_version=$macro_version
34768macro_revision=$macro_revision
34769
34770# Assembler program.
cristyfd9dcd42010-08-08 18:07:02 +000034771AS=$lt_AS
cristy3ed852e2009-09-05 21:47:34 +000034772
34773# DLL creation program.
cristyfd9dcd42010-08-08 18:07:02 +000034774DLLTOOL=$lt_DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000034775
34776# Object dumper program.
cristyfd9dcd42010-08-08 18:07:02 +000034777OBJDUMP=$lt_OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000034778
34779# Whether or not to build shared libraries.
34780build_libtool_libs=$enable_shared
34781
34782# Whether or not to build static libraries.
34783build_old_libs=$enable_static
34784
34785# What type of objects to build.
34786pic_mode=$pic_mode
34787
34788# Whether or not to optimize for fast installation.
34789fast_install=$enable_fast_install
34790
34791# The host system.
34792host_alias=$host_alias
34793host=$host
34794host_os=$host_os
34795
34796# The build system.
34797build_alias=$build_alias
34798build=$build
34799build_os=$build_os
34800
34801# A BSD- or MS-compatible name lister.
34802NM=$lt_NM
34803
34804# Whether we need soft or hard links.
34805LN_S=$lt_LN_S
34806
34807# What is the maximum length of a command?
34808max_cmd_len=$max_cmd_len
34809
34810# Object file suffix (normally "o").
34811objext=$ac_objext
34812
34813# Executable file suffix (normally "").
34814exeext=$exeext
34815
34816# whether the shell understands "unset".
34817lt_unset=$lt_unset
34818
34819# turn spaces into newlines.
34820SP2NL=$lt_lt_SP2NL
34821
34822# turn newlines into spaces.
34823NL2SP=$lt_lt_NL2SP
34824
cristy3ed852e2009-09-05 21:47:34 +000034825# Method to check whether dependent libraries are shared objects.
34826deplibs_check_method=$lt_deplibs_check_method
34827
34828# Command to use when deplibs_check_method == "file_magic".
34829file_magic_cmd=$lt_file_magic_cmd
34830
34831# The archiver.
34832AR=$lt_AR
34833AR_FLAGS=$lt_AR_FLAGS
34834
34835# A symbol stripping program.
34836STRIP=$lt_STRIP
34837
34838# Commands used to install an old-style archive.
34839RANLIB=$lt_RANLIB
34840old_postinstall_cmds=$lt_old_postinstall_cmds
34841old_postuninstall_cmds=$lt_old_postuninstall_cmds
34842
cristyfd9dcd42010-08-08 18:07:02 +000034843# Whether to use a lock for old archive extraction.
34844lock_old_archive_extraction=$lock_old_archive_extraction
34845
cristy3ed852e2009-09-05 21:47:34 +000034846# A C compiler.
34847LTCC=$lt_CC
34848
34849# LTCC compiler flags.
34850LTCFLAGS=$lt_CFLAGS
34851
34852# Take the output of nm and produce a listing of raw symbols and C names.
34853global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34854
34855# Transform the output of nm in a proper C declaration.
34856global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34857
34858# Transform the output of nm in a C name address pair.
34859global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34860
34861# Transform the output of nm in a C name address pair when lib prefix is needed.
34862global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34863
34864# The name of the directory that contains temporary libtool files.
34865objdir=$objdir
34866
cristy3ed852e2009-09-05 21:47:34 +000034867# Used to examine libraries when file_magic_cmd begins with "file".
34868MAGIC_CMD=$MAGIC_CMD
34869
34870# Must we lock files when doing compilation?
34871need_locks=$lt_need_locks
34872
34873# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34874DSYMUTIL=$lt_DSYMUTIL
34875
34876# Tool to change global to local symbols on Mac OS X.
34877NMEDIT=$lt_NMEDIT
34878
34879# Tool to manipulate fat objects and archives on Mac OS X.
34880LIPO=$lt_LIPO
34881
34882# ldd/readelf like tool for Mach-O binaries on Mac OS X.
34883OTOOL=$lt_OTOOL
34884
34885# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34886OTOOL64=$lt_OTOOL64
34887
34888# Old archive suffix (normally "a").
34889libext=$libext
34890
34891# Shared library suffix (normally ".so").
34892shrext_cmds=$lt_shrext_cmds
34893
34894# The commands to extract the exported symbol list from a shared archive.
34895extract_expsyms_cmds=$lt_extract_expsyms_cmds
34896
34897# Variables whose values should be saved in libtool wrapper scripts and
34898# restored at link time.
34899variables_saved_for_relink=$lt_variables_saved_for_relink
34900
34901# Do we need the "lib" prefix for modules?
34902need_lib_prefix=$need_lib_prefix
34903
34904# Do we need a version for libraries?
34905need_version=$need_version
34906
34907# Library versioning type.
34908version_type=$version_type
34909
34910# Shared library runtime path variable.
34911runpath_var=$runpath_var
34912
34913# Shared library path variable.
34914shlibpath_var=$shlibpath_var
34915
34916# Is shlibpath searched before the hard-coded library search path?
34917shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34918
34919# Format of library name prefix.
34920libname_spec=$lt_libname_spec
34921
34922# List of archive names. First name is the real one, the rest are links.
34923# The last name is the one that the linker finds with -lNAME
34924library_names_spec=$lt_library_names_spec
34925
34926# The coded name of the library, if different from the real name.
34927soname_spec=$lt_soname_spec
34928
cristyfd9dcd42010-08-08 18:07:02 +000034929# Permission mode override for installation of shared libraries.
34930install_override_mode=$lt_install_override_mode
34931
cristy3ed852e2009-09-05 21:47:34 +000034932# Command to use after installation of a shared archive.
34933postinstall_cmds=$lt_postinstall_cmds
34934
34935# Command to use after uninstallation of a shared archive.
34936postuninstall_cmds=$lt_postuninstall_cmds
34937
34938# Commands used to finish a libtool library installation in a directory.
34939finish_cmds=$lt_finish_cmds
34940
34941# As "finish_cmds", except a single script fragment to be evaled but
34942# not shown.
34943finish_eval=$lt_finish_eval
34944
34945# Whether we should hardcode library paths into libraries.
34946hardcode_into_libs=$hardcode_into_libs
34947
34948# Compile-time system search path for libraries.
34949sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34950
34951# Run-time system search path for libraries.
34952sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34953
34954# Whether dlopen is supported.
34955dlopen_support=$enable_dlopen
34956
34957# Whether dlopen of programs is supported.
34958dlopen_self=$enable_dlopen_self
34959
34960# Whether dlopen of statically linked programs is supported.
34961dlopen_self_static=$enable_dlopen_self_static
34962
34963# Commands to strip libraries.
34964old_striplib=$lt_old_striplib
34965striplib=$lt_striplib
34966
34967
34968# The linker used to build libraries.
34969LD=$lt_LD
34970
cristyfd9dcd42010-08-08 18:07:02 +000034971# How to create reloadable object files.
34972reload_flag=$lt_reload_flag
34973reload_cmds=$lt_reload_cmds
34974
cristy3ed852e2009-09-05 21:47:34 +000034975# Commands used to build an old-style archive.
34976old_archive_cmds=$lt_old_archive_cmds
34977
34978# A language specific compiler.
34979CC=$lt_compiler
34980
34981# Is the compiler the GNU compiler?
34982with_gcc=$GCC
34983
34984# Compiler flag to turn off builtin functions.
34985no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34986
34987# How to pass a linker flag through the compiler.
34988wl=$lt_lt_prog_compiler_wl
34989
34990# Additional compiler flags for building library objects.
34991pic_flag=$lt_lt_prog_compiler_pic
34992
34993# Compiler flag to prevent dynamic linking.
34994link_static_flag=$lt_lt_prog_compiler_static
34995
34996# Does compiler simultaneously support -c and -o options?
34997compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34998
34999# Whether or not to add -lc for building shared libraries.
35000build_libtool_need_lc=$archive_cmds_need_lc
35001
35002# Whether or not to disallow shared libs when runtime libs are static.
35003allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35004
35005# Compiler flag to allow reflexive dlopens.
35006export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35007
35008# Compiler flag to generate shared objects directly from archives.
35009whole_archive_flag_spec=$lt_whole_archive_flag_spec
35010
35011# Whether the compiler copes with passing no objects directly.
35012compiler_needs_object=$lt_compiler_needs_object
35013
35014# Create an old-style archive from a shared archive.
35015old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35016
35017# Create a temporary old-style archive to link instead of a shared archive.
35018old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35019
35020# Commands used to build a shared archive.
35021archive_cmds=$lt_archive_cmds
35022archive_expsym_cmds=$lt_archive_expsym_cmds
35023
35024# Commands used to build a loadable module if different from building
35025# a shared archive.
35026module_cmds=$lt_module_cmds
35027module_expsym_cmds=$lt_module_expsym_cmds
35028
35029# Whether we are building with GNU ld or not.
35030with_gnu_ld=$lt_with_gnu_ld
35031
35032# Flag that allows shared libraries with undefined symbols to be built.
35033allow_undefined_flag=$lt_allow_undefined_flag
35034
35035# Flag that enforces no undefined symbols.
35036no_undefined_flag=$lt_no_undefined_flag
35037
35038# Flag to hardcode \$libdir into a binary during linking.
35039# This must work even if \$libdir does not exist
35040hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35041
35042# If ld is used when linking, flag to hardcode \$libdir into a binary
35043# during linking. This must work even if \$libdir does not exist.
35044hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35045
35046# Whether we need a single "-rpath" flag with a separated argument.
35047hardcode_libdir_separator=$lt_hardcode_libdir_separator
35048
35049# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35050# DIR into the resulting binary.
35051hardcode_direct=$hardcode_direct
35052
35053# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35054# DIR into the resulting binary and the resulting library dependency is
35055# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35056# library is relocated.
35057hardcode_direct_absolute=$hardcode_direct_absolute
35058
35059# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35060# into the resulting binary.
35061hardcode_minus_L=$hardcode_minus_L
35062
35063# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35064# into the resulting binary.
35065hardcode_shlibpath_var=$hardcode_shlibpath_var
35066
35067# Set to "yes" if building a shared library automatically hardcodes DIR
35068# into the library and all subsequent libraries and executables linked
35069# against it.
35070hardcode_automatic=$hardcode_automatic
35071
35072# Set to yes if linker adds runtime paths of dependent libraries
35073# to runtime path list.
35074inherit_rpath=$inherit_rpath
35075
35076# Whether libtool must link a program against all its dependency libraries.
35077link_all_deplibs=$link_all_deplibs
35078
35079# Fix the shell variable \$srcfile for the compiler.
35080fix_srcfile_path=$lt_fix_srcfile_path
35081
35082# Set to "yes" if exported symbols are required.
35083always_export_symbols=$always_export_symbols
35084
35085# The commands to list exported symbols.
35086export_symbols_cmds=$lt_export_symbols_cmds
35087
35088# Symbols that should not be listed in the preloaded symbols.
35089exclude_expsyms=$lt_exclude_expsyms
35090
35091# Symbols that must always be exported.
35092include_expsyms=$lt_include_expsyms
35093
35094# Commands necessary for linking programs (against libraries) with templates.
35095prelink_cmds=$lt_prelink_cmds
35096
35097# Specify filename containing input files.
35098file_list_spec=$lt_file_list_spec
35099
35100# How to hardcode a shared library path into an executable.
35101hardcode_action=$hardcode_action
35102
35103# The directories searched by this compiler when creating a shared library.
35104compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35105
35106# Dependencies to place before and after the objects being linked to
35107# create a shared library.
35108predep_objects=$lt_predep_objects
35109postdep_objects=$lt_postdep_objects
35110predeps=$lt_predeps
35111postdeps=$lt_postdeps
35112
35113# The library search path used internally by the compiler when linking
35114# a shared library.
35115compiler_lib_search_path=$lt_compiler_lib_search_path
35116
35117# ### END LIBTOOL CONFIG
35118
35119_LT_EOF
35120
35121 case $host_os in
35122 aix3*)
35123 cat <<\_LT_EOF >> "$cfgfile"
35124# AIX sometimes has problems with the GCC collect2 program. For some
35125# reason, if we set the COLLECT_NAMES environment variable, the problems
35126# vanish in a puff of smoke.
35127if test "X${COLLECT_NAMES+set}" != Xset; then
35128 COLLECT_NAMES=
35129 export COLLECT_NAMES
35130fi
35131_LT_EOF
35132 ;;
35133 esac
35134
35135
35136ltmain="$ac_aux_dir/ltmain.sh"
35137
35138
35139 # We use sed instead of cat because bash on DJGPP gets confused if
35140 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35141 # text mode, it properly converts lines to CR/LF. This bash problem
35142 # is reportedly fixed, but why not run on old versions too?
35143 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35144 || (rm -f "$cfgfile"; exit 1)
35145
35146 case $xsi_shell in
35147 yes)
35148 cat << \_LT_EOF >> "$cfgfile"
35149
35150# func_dirname file append nondir_replacement
35151# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35152# otherwise set result to NONDIR_REPLACEMENT.
35153func_dirname ()
35154{
35155 case ${1} in
35156 */*) func_dirname_result="${1%/*}${2}" ;;
35157 * ) func_dirname_result="${3}" ;;
35158 esac
35159}
35160
35161# func_basename file
35162func_basename ()
35163{
35164 func_basename_result="${1##*/}"
35165}
35166
35167# func_dirname_and_basename file append nondir_replacement
35168# perform func_basename and func_dirname in a single function
35169# call:
35170# dirname: Compute the dirname of FILE. If nonempty,
35171# add APPEND to the result, otherwise set result
35172# to NONDIR_REPLACEMENT.
35173# value returned in "$func_dirname_result"
35174# basename: Compute filename of FILE.
35175# value retuned in "$func_basename_result"
35176# Implementation must be kept synchronized with func_dirname
35177# and func_basename. For efficiency, we do not delegate to
35178# those functions but instead duplicate the functionality here.
35179func_dirname_and_basename ()
35180{
35181 case ${1} in
35182 */*) func_dirname_result="${1%/*}${2}" ;;
35183 * ) func_dirname_result="${3}" ;;
35184 esac
35185 func_basename_result="${1##*/}"
35186}
35187
35188# func_stripname prefix suffix name
35189# strip PREFIX and SUFFIX off of NAME.
35190# PREFIX and SUFFIX must not contain globbing or regex special
35191# characters, hashes, percent signs, but SUFFIX may contain a leading
35192# dot (in which case that matches only a dot).
35193func_stripname ()
35194{
35195 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35196 # positional parameters, so assign one to ordinary parameter first.
35197 func_stripname_result=${3}
35198 func_stripname_result=${func_stripname_result#"${1}"}
35199 func_stripname_result=${func_stripname_result%"${2}"}
35200}
35201
35202# func_opt_split
35203func_opt_split ()
35204{
35205 func_opt_split_opt=${1%%=*}
35206 func_opt_split_arg=${1#*=}
35207}
35208
35209# func_lo2o object
35210func_lo2o ()
35211{
35212 case ${1} in
35213 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35214 *) func_lo2o_result=${1} ;;
35215 esac
35216}
35217
35218# func_xform libobj-or-source
35219func_xform ()
35220{
35221 func_xform_result=${1%.*}.lo
35222}
35223
35224# func_arith arithmetic-term...
35225func_arith ()
35226{
35227 func_arith_result=$(( $* ))
35228}
35229
35230# func_len string
35231# STRING may not start with a hyphen.
35232func_len ()
35233{
35234 func_len_result=${#1}
35235}
35236
35237_LT_EOF
35238 ;;
35239 *) # Bourne compatible functions.
35240 cat << \_LT_EOF >> "$cfgfile"
35241
35242# func_dirname file append nondir_replacement
35243# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35244# otherwise set result to NONDIR_REPLACEMENT.
35245func_dirname ()
35246{
35247 # Extract subdirectory from the argument.
cristyfd9dcd42010-08-08 18:07:02 +000035248 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000035249 if test "X$func_dirname_result" = "X${1}"; then
35250 func_dirname_result="${3}"
35251 else
35252 func_dirname_result="$func_dirname_result${2}"
35253 fi
35254}
35255
35256# func_basename file
35257func_basename ()
35258{
cristyfd9dcd42010-08-08 18:07:02 +000035259 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000035260}
35261
35262
35263# func_stripname prefix suffix name
35264# strip PREFIX and SUFFIX off of NAME.
35265# PREFIX and SUFFIX must not contain globbing or regex special
35266# characters, hashes, percent signs, but SUFFIX may contain a leading
35267# dot (in which case that matches only a dot).
35268# func_strip_suffix prefix name
35269func_stripname ()
35270{
35271 case ${2} in
cristyfd9dcd42010-08-08 18:07:02 +000035272 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
35273 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000035274 esac
35275}
35276
35277# sed scripts:
35278my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35279my_sed_long_arg='1s/^-[^=]*=//'
35280
35281# func_opt_split
35282func_opt_split ()
35283{
cristyfd9dcd42010-08-08 18:07:02 +000035284 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
35285 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000035286}
35287
35288# func_lo2o object
35289func_lo2o ()
35290{
cristyfd9dcd42010-08-08 18:07:02 +000035291 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000035292}
35293
35294# func_xform libobj-or-source
35295func_xform ()
35296{
cristyfd9dcd42010-08-08 18:07:02 +000035297 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000035298}
35299
35300# func_arith arithmetic-term...
35301func_arith ()
35302{
35303 func_arith_result=`expr "$@"`
35304}
35305
35306# func_len string
35307# STRING may not start with a hyphen.
35308func_len ()
35309{
35310 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35311}
35312
35313_LT_EOF
35314esac
35315
35316case $lt_shell_append in
35317 yes)
35318 cat << \_LT_EOF >> "$cfgfile"
35319
35320# func_append var value
35321# Append VALUE to the end of shell variable VAR.
35322func_append ()
35323{
35324 eval "$1+=\$2"
35325}
35326_LT_EOF
35327 ;;
35328 *)
35329 cat << \_LT_EOF >> "$cfgfile"
35330
35331# func_append var value
35332# Append VALUE to the end of shell variable VAR.
35333func_append ()
35334{
35335 eval "$1=\$$1\$2"
35336}
35337
35338_LT_EOF
35339 ;;
35340 esac
35341
35342
35343 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35344 || (rm -f "$cfgfile"; exit 1)
35345
35346 mv -f "$cfgfile" "$ofile" ||
35347 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35348 chmod +x "$ofile"
35349
35350
35351 cat <<_LT_EOF >> "$ofile"
35352
35353# ### BEGIN LIBTOOL TAG CONFIG: CXX
35354
35355# The linker used to build libraries.
35356LD=$lt_LD_CXX
35357
cristyfd9dcd42010-08-08 18:07:02 +000035358# How to create reloadable object files.
35359reload_flag=$lt_reload_flag_CXX
35360reload_cmds=$lt_reload_cmds_CXX
35361
cristy3ed852e2009-09-05 21:47:34 +000035362# Commands used to build an old-style archive.
35363old_archive_cmds=$lt_old_archive_cmds_CXX
35364
35365# A language specific compiler.
35366CC=$lt_compiler_CXX
35367
35368# Is the compiler the GNU compiler?
35369with_gcc=$GCC_CXX
35370
35371# Compiler flag to turn off builtin functions.
35372no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35373
35374# How to pass a linker flag through the compiler.
35375wl=$lt_lt_prog_compiler_wl_CXX
35376
35377# Additional compiler flags for building library objects.
35378pic_flag=$lt_lt_prog_compiler_pic_CXX
35379
35380# Compiler flag to prevent dynamic linking.
35381link_static_flag=$lt_lt_prog_compiler_static_CXX
35382
35383# Does compiler simultaneously support -c and -o options?
35384compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35385
35386# Whether or not to add -lc for building shared libraries.
35387build_libtool_need_lc=$archive_cmds_need_lc_CXX
35388
35389# Whether or not to disallow shared libs when runtime libs are static.
35390allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35391
35392# Compiler flag to allow reflexive dlopens.
35393export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35394
35395# Compiler flag to generate shared objects directly from archives.
35396whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35397
35398# Whether the compiler copes with passing no objects directly.
35399compiler_needs_object=$lt_compiler_needs_object_CXX
35400
35401# Create an old-style archive from a shared archive.
35402old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35403
35404# Create a temporary old-style archive to link instead of a shared archive.
35405old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35406
35407# Commands used to build a shared archive.
35408archive_cmds=$lt_archive_cmds_CXX
35409archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35410
35411# Commands used to build a loadable module if different from building
35412# a shared archive.
35413module_cmds=$lt_module_cmds_CXX
35414module_expsym_cmds=$lt_module_expsym_cmds_CXX
35415
35416# Whether we are building with GNU ld or not.
35417with_gnu_ld=$lt_with_gnu_ld_CXX
35418
35419# Flag that allows shared libraries with undefined symbols to be built.
35420allow_undefined_flag=$lt_allow_undefined_flag_CXX
35421
35422# Flag that enforces no undefined symbols.
35423no_undefined_flag=$lt_no_undefined_flag_CXX
35424
35425# Flag to hardcode \$libdir into a binary during linking.
35426# This must work even if \$libdir does not exist
35427hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35428
35429# If ld is used when linking, flag to hardcode \$libdir into a binary
35430# during linking. This must work even if \$libdir does not exist.
35431hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35432
35433# Whether we need a single "-rpath" flag with a separated argument.
35434hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35435
35436# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35437# DIR into the resulting binary.
35438hardcode_direct=$hardcode_direct_CXX
35439
35440# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35441# DIR into the resulting binary and the resulting library dependency is
35442# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35443# library is relocated.
35444hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35445
35446# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35447# into the resulting binary.
35448hardcode_minus_L=$hardcode_minus_L_CXX
35449
35450# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35451# into the resulting binary.
35452hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35453
35454# Set to "yes" if building a shared library automatically hardcodes DIR
35455# into the library and all subsequent libraries and executables linked
35456# against it.
35457hardcode_automatic=$hardcode_automatic_CXX
35458
35459# Set to yes if linker adds runtime paths of dependent libraries
35460# to runtime path list.
35461inherit_rpath=$inherit_rpath_CXX
35462
35463# Whether libtool must link a program against all its dependency libraries.
35464link_all_deplibs=$link_all_deplibs_CXX
35465
35466# Fix the shell variable \$srcfile for the compiler.
35467fix_srcfile_path=$lt_fix_srcfile_path_CXX
35468
35469# Set to "yes" if exported symbols are required.
35470always_export_symbols=$always_export_symbols_CXX
35471
35472# The commands to list exported symbols.
35473export_symbols_cmds=$lt_export_symbols_cmds_CXX
35474
35475# Symbols that should not be listed in the preloaded symbols.
35476exclude_expsyms=$lt_exclude_expsyms_CXX
35477
35478# Symbols that must always be exported.
35479include_expsyms=$lt_include_expsyms_CXX
35480
35481# Commands necessary for linking programs (against libraries) with templates.
35482prelink_cmds=$lt_prelink_cmds_CXX
35483
35484# Specify filename containing input files.
35485file_list_spec=$lt_file_list_spec_CXX
35486
35487# How to hardcode a shared library path into an executable.
35488hardcode_action=$hardcode_action_CXX
35489
35490# The directories searched by this compiler when creating a shared library.
35491compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35492
35493# Dependencies to place before and after the objects being linked to
35494# create a shared library.
35495predep_objects=$lt_predep_objects_CXX
35496postdep_objects=$lt_postdep_objects_CXX
35497predeps=$lt_predeps_CXX
35498postdeps=$lt_postdeps_CXX
35499
35500# The library search path used internally by the compiler when linking
35501# a shared library.
35502compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35503
35504# ### END LIBTOOL TAG CONFIG: CXX
35505_LT_EOF
35506
35507 ;;
35508 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35509 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35510 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35511 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35512 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35513 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35514
35515 esac
35516done # for ac_tag
35517
35518
cristy8b350f62009-11-15 23:12:43 +000035519as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000035520_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000035521ac_clean_files=$ac_clean_files_save
35522
35523test $ac_write_fail = 0 ||
cristyfd9dcd42010-08-08 18:07:02 +000035524 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035525
35526
35527# configure is writing to config.log, and then calls config.status.
35528# config.status does its own redirection, appending to config.log.
35529# Unfortunately, on DOS this fails, as config.log is still kept open
35530# by configure, so config.status won't be able to write to it; its
35531# output is simply discarded. So we exec the FD to /dev/null,
35532# effectively closing config.log, so it can be properly (re)opened and
35533# appended to by config.status. When coming back to configure, we
35534# need to make the FD available again.
35535if test "$no_create" != yes; then
35536 ac_cs_success=:
35537 ac_config_status_args=
35538 test "$silent" = yes &&
35539 ac_config_status_args="$ac_config_status_args --quiet"
35540 exec 5>/dev/null
35541 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35542 exec 5>>config.log
35543 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35544 # would make configure fail if this is the last instruction.
cristyfd9dcd42010-08-08 18:07:02 +000035545 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000035546fi
35547if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000035548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000035549$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35550fi
35551
35552
35553rm -f magick-version
35554
cristy430a7312010-01-21 20:44:04 +000035555result_dejavu_font_dir='none'
35556if test "${dejavu_font_dir}x" != 'x'; then
35557 result_dejavu_font_dir=$dejavu_font_dir
35558fi
35559
cristy3ed852e2009-09-05 21:47:34 +000035560result_ghostscript_font_dir='none'
35561if test "${ghostscript_font_dir}x" != 'x'; then
35562 result_ghostscript_font_dir=$ghostscript_font_dir
35563fi
35564
35565result_windows_font_dir='none'
35566if test "${windows_font_dir}x" != 'x'; then
35567 result_windows_font_dir=${windows_font_dir}
35568fi
35569
cristy8b350f62009-11-15 23:12:43 +000035570{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000035571ImageMagick is configured as follows. Please verify that this configuration
35572matches your expectations.
35573
35574Host system type: $host
35575Build system type: $build
35576
35577 Option Value
35578-------------------------------------------------------------------------------
35579Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35580Static libraries --enable-static=$enable_static $libtool_build_static_libs
35581Module support --with-modules=$with_modules $with_modules
35582GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35583Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35584High Dynamic Range Imagery
35585 --enable-hdri=$enable_hdri $enable_hdri
35586
35587Delegate Configuration:
35588BZLIB --with-bzlib=$with_bzlib $have_bzlib
35589Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035590Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035591DJVU --with-djvu=$with_djvu $have_djvu
35592DPS --with-dps=$with_dps $have_dps
35593FFTW --with-fftw=$with_fftw $have_fftw
35594FlashPIX --with-fpx=$with_fpx $have_fpx
35595FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35596FreeType --with-freetype=$with_freetype $have_freetype
35597GhostPCL None $PCLDelegate ($PCLVersion)
35598GhostXPS None $XPSDelegate ($XPSVersion)
35599Ghostscript None $PSDelegate ($GSVersion)
35600Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35601Ghostscript lib --with-gslib=$with_gslib $have_gslib
35602Graphviz --with-gvc=$with_gvc $have_gvc
35603JBIG --with-jbig=$with_jbig $have_jbig
35604JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35605JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035606LCMS v1 --with-lcms=$with_lcms $have_lcms
35607LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035608LQR --with-lqr=$with_lqr $have_lqr
35609Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35610OpenEXR --with-openexr=$with_openexr $have_openexr
35611PERL --with-perl=$with_perl $have_perl
35612PNG --with-png=$with_png $have_png
35613RSVG --with-rsvg=$with_rsvg $have_rsvg
35614TIFF --with-tiff=$with_tiff $have_tiff
35615Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35616WMF --with-wmf=$with_wmf $have_wmf
35617X11 --with-x=$with_x $have_x
35618XML --with-xml=$with_xml $have_xml
35619ZLIB --with-zlib=$with_zlib $have_zlib
35620
35621X11 Configuration:
35622 X_CFLAGS = $X_CFLAGS
35623 X_PRE_LIBS = $X_PRE_LIBS
35624 X_LIBS = $X_LIBS
35625 X_EXTRA_LIBS = $X_EXTRA_LIBS
35626
35627Options used to compile and link:
35628 PREFIX = $PREFIX_DIR
35629 EXEC-PREFIX = $EXEC_PREFIX_DIR
35630 VERSION = $PACKAGE_VERSION
35631 CC = $CC
35632 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035633 CPPFLAGS = $MAGICK_CPPFLAGS
35634 PCFLAGS = $MAGICK_PCFLAGS
35635 DEFS = $DEFS
35636 LDFLAGS = $LDFLAGS
35637 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35638 LIBS = $MAGICK_LIBS
35639 CXX = $CXX
35640 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000035641 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000035642" >&5
35643$as_echo "
35644ImageMagick is configured as follows. Please verify that this configuration
35645matches your expectations.
35646
35647Host system type: $host
35648Build system type: $build
35649
35650 Option Value
35651-------------------------------------------------------------------------------
35652Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35653Static libraries --enable-static=$enable_static $libtool_build_static_libs
35654Module support --with-modules=$with_modules $with_modules
35655GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35656Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35657High Dynamic Range Imagery
35658 --enable-hdri=$enable_hdri $enable_hdri
35659
35660Delegate Configuration:
35661BZLIB --with-bzlib=$with_bzlib $have_bzlib
35662Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035663Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035664DJVU --with-djvu=$with_djvu $have_djvu
35665DPS --with-dps=$with_dps $have_dps
35666FFTW --with-fftw=$with_fftw $have_fftw
35667FlashPIX --with-fpx=$with_fpx $have_fpx
35668FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35669FreeType --with-freetype=$with_freetype $have_freetype
35670GhostPCL None $PCLDelegate ($PCLVersion)
35671GhostXPS None $XPSDelegate ($XPSVersion)
35672Ghostscript None $PSDelegate ($GSVersion)
35673Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35674Ghostscript lib --with-gslib=$with_gslib $have_gslib
35675Graphviz --with-gvc=$with_gvc $have_gvc
35676JBIG --with-jbig=$with_jbig $have_jbig
35677JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35678JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035679LCMS v1 --with-lcms=$with_lcms $have_lcms
35680LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035681LQR --with-lqr=$with_lqr $have_lqr
35682Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35683OpenEXR --with-openexr=$with_openexr $have_openexr
35684PERL --with-perl=$with_perl $have_perl
35685PNG --with-png=$with_png $have_png
35686RSVG --with-rsvg=$with_rsvg $have_rsvg
35687TIFF --with-tiff=$with_tiff $have_tiff
35688Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35689WMF --with-wmf=$with_wmf $have_wmf
35690X11 --with-x=$with_x $have_x
35691XML --with-xml=$with_xml $have_xml
35692ZLIB --with-zlib=$with_zlib $have_zlib
35693
35694X11 Configuration:
35695 X_CFLAGS = $X_CFLAGS
35696 X_PRE_LIBS = $X_PRE_LIBS
35697 X_LIBS = $X_LIBS
35698 X_EXTRA_LIBS = $X_EXTRA_LIBS
35699
35700Options used to compile and link:
35701 PREFIX = $PREFIX_DIR
35702 EXEC-PREFIX = $EXEC_PREFIX_DIR
35703 VERSION = $PACKAGE_VERSION
35704 CC = $CC
35705 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035706 CPPFLAGS = $MAGICK_CPPFLAGS
35707 PCFLAGS = $MAGICK_PCFLAGS
35708 DEFS = $DEFS
35709 LDFLAGS = $LDFLAGS
35710 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35711 LIBS = $MAGICK_LIBS
35712 CXX = $CXX
35713 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000035714 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000035715" >&6; }