blob: 7d058adb8d89e609c7c28dfa587ce17371ecbead [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristyf6fcb5d2010-09-24 01:19:13 +00003# Generated by GNU Autoconf 2.65 for ImageMagick 6.6.4.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy3ed852e2009-09-05 21:47:34 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristyf6fcb5d2010-09-24 01:19:13 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# 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"
cristyf6fcb5d2010-09-24 01:19:13 +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
cristyf6fcb5d2010-09-24 01:19:13 +0000370# as_fn_error 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
cristyf6fcb5d2010-09-24 01:19:13 +0000374# script with status $?, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000375as_fn_error ()
376{
cristyf6fcb5d2010-09-24 01:19:13 +0000377 as_status=$?; test $as_status -eq 0 && as_status=1
378 if test "$3"; then
379 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
cristy8b350f62009-11-15 23:12:43 +0000381 fi
cristyf6fcb5d2010-09-24 01:19:13 +0000382 $as_echo "$as_me: error: $1" >&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.
cristyf6fcb5d2010-09-24 01:19:13 +0000550# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000551# so uname gets run too.
552ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
553
554#
555# Initializations.
556#
557ac_default_prefix=/usr/local
558ac_clean_files=
559ac_config_libobj_dir=.
560LIBOBJS=
561cross_compiling=no
562subdirs=
563MFLAGS=
564MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000565
566# Identity of this package.
567PACKAGE_NAME='ImageMagick'
568PACKAGE_TARNAME='ImageMagick'
cristy56225732010-09-04 23:44:25 +0000569PACKAGE_VERSION='6.6.4'
570PACKAGE_STRING='ImageMagick 6.6.4'
cristy3ed852e2009-09-05 21:47:34 +0000571PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000572PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000573
574ac_unique_file="magick/MagickCore.h"
575ac_config_libobj_dir=ltdl
576# Factoring default headers for most tests.
577ac_includes_default="\
578#include <stdio.h>
579#ifdef HAVE_SYS_TYPES_H
580# include <sys/types.h>
581#endif
582#ifdef HAVE_SYS_STAT_H
583# include <sys/stat.h>
584#endif
585#ifdef STDC_HEADERS
586# include <stdlib.h>
587# include <stddef.h>
588#else
589# ifdef HAVE_STDLIB_H
590# include <stdlib.h>
591# endif
592#endif
593#ifdef HAVE_STRING_H
594# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595# include <memory.h>
596# endif
597# include <string.h>
598#endif
599#ifdef HAVE_STRINGS_H
600# include <strings.h>
601#endif
602#ifdef HAVE_INTTYPES_H
603# include <inttypes.h>
604#endif
605#ifdef HAVE_STDINT_H
606# include <stdint.h>
607#endif
608#ifdef HAVE_UNISTD_H
609# include <unistd.h>
610#endif"
611
cristycd4c5312009-11-22 01:19:08 +0000612ac_header_list=
cristy3ed852e2009-09-05 21:47:34 +0000613ac_subst_vars='ltdl_LTLIBOBJS
614ltdl_LIBOBJS
615am__EXEEXT_FALSE
616am__EXEEXT_TRUE
617LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000618MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000619MAGICK_LIBS
620MAGICK_LDFLAGS
621MAGICK_PCFLAGS
622MAGICK_CPPFLAGS
623MAGICK_CXXFLAGS
624MAGICK_CFLAGS
625MAGICK_DEP_LIBS
626MAGICK_LTDLDEPS
627MAGICK_LIBLTDL
628OSX_GCOV_LDFLAG
629DELEGATES
630MAGICKCORE_PATH
631PERL_SUPPORTS_DESTDIR
632WITH_PERL_DYNAMIC_FALSE
633WITH_PERL_DYNAMIC_TRUE
634WITH_PERL_STATIC_FALSE
635WITH_PERL_STATIC_TRUE
636WITH_PERL_FALSE
637WITH_PERL_TRUE
cristy964cb7f2010-04-25 23:18:00 +0000638PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000639GSVersion
640GSPSDevice
641GSPDFDevice
642GSMonoDevice
643GSEPSDevice
644GSColorDevice
645GSCMYKDevice
646GSAlphaDevice
647XPSVersion
648XPSCMYKDevice
649XPSColorDevice
650XPSMonoDevice
651PCLVersion
652PCLCMYKDevice
653PCLColorDevice
654PCLMonoDevice
655ZIP_DELEGATE_FALSE
656ZIP_DELEGATE_TRUE
657ZIP
658P7ZIP_DELEGATE_FALSE
659P7ZIP_DELEGATE_TRUE
660P7ZIP
661RPM_DELEGATE_FALSE
662RPM_DELEGATE_TRUE
663RPM
664PERL
665TAR
666ShowImageDelegate
667type_include_files
668ghostscript_font_dir
669windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000670dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000671PrintDelegate
672ZipDelegate
673XPSDelegate
674WWWDecodeDelegate
675WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000676UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000677TXTDelegate
678SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000679RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000680RMDelegate
681RLEEncodeDelegate
682PSDelegate
683POVDelegate
684PGPDecodeDelegate
685PCLDelegate
686MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000687MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000688MPEGEncodeDelegate
689MPEGDecodeDelegate
690MANDelegate
691LaunchDelegate
692LZWEncodeDelegate
693LZWDecodeDelegate
694LPRDelegate
695LPDelegate
696ILBMEncodeDelegate
697ILBMDecodeDelegate
698HTMLDecodeDelegate
699HPGLDecodeDelegate
700HDRDecodeDelegate
701GnuplotDecodeDelegate
702MogrifyDelegate
703DisplayDelegate
704ConvertDelegate
705FIGDecodeDelegate
706EditorDelegate
707EchoDelegate
708DVIDecodeDelegate
709GVCDecodeDelegate
710DNGDecodeDelegate
711CatDelegate
712CGMDecodeDelegate
713BrowseDelegate
714BZIPDelegate
715BlenderDecodeDelegate
716AVIDecodeDelegate
717AutotraceDecodeDelegate
718SHARE_CONFIGURE_PATH
719SHARE_PATH
720DOCUMENTATION_PATH
721FILTER_PATH
722CODER_PATH
723CONFIGURE_PATH
724LIBRARY_PATH
725EXECUTABLE_PATH
726PERLMAINCC
727XML_LIBS
728XML_DELEGATE_FALSE
729XML_DELEGATE_TRUE
730xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000731WMF_LIBS
732WMF_DELEGATE_FALSE
733WMF_DELEGATE_TRUE
734TIFF_LIBS
735TIFF_DELEGATE_FALSE
736TIFF_DELEGATE_TRUE
737CAIRO_DELEGATE_FALSE
738CAIRO_DELEGATE_TRUE
739RSVG_DELEGATE_FALSE
740RSVG_DELEGATE_TRUE
741CAIRO_SVG_LIBS
742CAIRO_SVG_CFLAGS
743RSVG_LIBS
744RSVG_CFLAGS
745PNG_LIBS
746PNG_DELEGATE_FALSE
747PNG_DELEGATE_TRUE
748OPENEXR_DELEGATE_FALSE
749OPENEXR_DELEGATE_TRUE
750OPENEXR_LIBS
751OPENEXR_CFLAGS
752LQR_DELEGATE_FALSE
753LQR_DELEGATE_TRUE
754LQR_LIBS
755LQR_CFLAGS
756LCMS_LIBS
757LCMS_DELEGATE_FALSE
758LCMS_DELEGATE_TRUE
759JP2_LIBS
760JP2_DELEGATE_FALSE
761JP2_DELEGATE_TRUE
762JPEG_LIBS
763JPEG_DELEGATE_FALSE
764JPEG_DELEGATE_TRUE
765JBIG_LIBS
766JBIG_DELEGATE_FALSE
767JBIG_DELEGATE_TRUE
768GVC_DELEGATE_FALSE
769GVC_DELEGATE_TRUE
770GVC_LIBS
771GVC_CFLAGS
772GS_LIBS
773GS_DELEGATE_FALSE
774GS_DELEGATE_TRUE
775FREETYPE_LIBS
776FREETYPE_DELEGATE_FALSE
777FREETYPE_DELEGATE_TRUE
778freetype_config
779FONTCONFIG_DELEGATE_FALSE
780FONTCONFIG_DELEGATE_TRUE
781FONTCONFIG_LIBS
782FONTCONFIG_CFLAGS
783FPX_LIBS
784FPX_DELEGATE_FALSE
785FPX_DELEGATE_TRUE
786FFTW_LIBS
787FFTW_DELEGATE_FALSE
788FFTW_DELEGATE_TRUE
789DJVU_LIBS
790DJVU_DELEGATE_FALSE
791DJVU_DELEGATE_TRUE
792DPS_LIBS
793DPS_DELEGATE_FALSE
794DPS_DELEGATE_TRUE
795AUTOTRACE_DELEGATE_FALSE
796AUTOTRACE_DELEGATE_TRUE
797AUTOTRACE_LIBS
798AUTOTRACE_CFLAGS
799LIB_DL
800ZLIB_LIBS
801ZLIB_DELEGATE_FALSE
802ZLIB_DELEGATE_TRUE
803XEXT_LIBS
804X11_LIBS
805X11_DELEGATE_FALSE
806X11_DELEGATE_TRUE
807X_EXTRA_LIBS
808X_LIBS
809X_PRE_LIBS
810X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000811XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000812BZLIB_LIBS
813BZLIB_DELEGATE_FALSE
814BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000815CCMALLOCDelegate
816UMEM_LIBS
817HasUMEM_FALSE
818HasUMEM_TRUE
819THREAD_LIBS
820GOMP_LIBS
821WITH_MAGICK_PLUS_PLUS_FALSE
822WITH_MAGICK_PLUS_PLUS_TRUE
823OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000824MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000825POW_LIB
826LIBOBJS
827UINTPTR_T
828UINTMAX_T
829UINT64_T
830INT64_T
831UINT32_T
832INT32_T
833UINT16_T
834INT16_T
835UINT8_T
836INT8_T
837LIBRARY_EXTRA_CPPFLAGS
838MODULE_EXTRA_CPPFLAGS
839LIBSTDCLDFLAGS
840PERL_MAKE_OPTIONS
841QUANTUM_DEPTH
842MAINT
843MAINTAINER_MODE_FALSE
844MAINTAINER_MODE_TRUE
845MAGICK_HDRI
846DLLDFLAGS
847WITH_LTDL_FALSE
848WITH_LTDL_TRUE
849WITH_MODULES_FALSE
850WITH_MODULES_TRUE
cristyfa112112010-01-04 17:48:07 +0000851WITH_SHARED_LIBS_FALSE
852WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000853LTDLOPEN
854LT_CONFIG_H
855CONVENIENCE_LTDL_FALSE
856CONVENIENCE_LTDL_TRUE
857INSTALL_LTDL_FALSE
858INSTALL_LTDL_TRUE
859ARGZ_H
860sys_symbol_underscore
861LIBADD_DL
862LT_DLPREOPEN
863LIBADD_DLD_LINK
864LIBADD_SHL_LOAD
865LIBADD_DLOPEN
866LT_DLLOADERS
867INCLTDL
868LTDLINCL
869LTDLDEPS
870LIBLTDL
871LIBTOOL_DEPS
872CXXCPP
873OTOOL64
874OTOOL
875LIPO
876NMEDIT
877DSYMUTIL
cristy4dc44432009-12-30 23:30:06 +0000878RANLIB
cristy3ed852e2009-09-05 21:47:34 +0000879AR
880NM
881ac_ct_DUMPBIN
882DUMPBIN
883LIBTOOL
884OBJDUMP
885DLLTOOL
886AS
887LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +0000888CL_LIBS
889CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000890OPENMP_CFLAGS
891PTHREAD_CFLAGS
892PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000893PTHREAD_CC
cristy964cb7f2010-04-25 23:18:00 +0000894ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000895WinPathScript
896USING_CL_FALSE
897USING_CL_TRUE
898CYGWIN_BUILD_FALSE
899CYGWIN_BUILD_TRUE
900WIN32_NATIVE_BUILD_FALSE
901WIN32_NATIVE_BUILD_TRUE
902WINGDI32_DELEGATE_FALSE
903WINGDI32_DELEGATE_TRUE
904GDI32_LIBS
905PKG_CONFIG
906LN_S
cristy3ed852e2009-09-05 21:47:34 +0000907LD
908FGREP
cristy3ed852e2009-09-05 21:47:34 +0000909SED
cristy95646052009-11-28 23:05:30 +0000910am__fastdepCXX_FALSE
911am__fastdepCXX_TRUE
912CXXDEPMODE
913ac_ct_CXX
914CXXFLAGS
915CXX
cristya0b81c32010-01-22 02:54:33 +0000916EGREP
917GREP
918CPP
cristy3ed852e2009-09-05 21:47:34 +0000919am__fastdepCC_FALSE
920am__fastdepCC_TRUE
921CCDEPMODE
922AMDEPBACKSLASH
923AMDEP_FALSE
924AMDEP_TRUE
925am__quote
926am__include
927DEPDIR
928OBJEXT
929EXEEXT
930ac_ct_CC
931CPPFLAGS
932LDFLAGS
933CFLAGS
934CC
935DIRSEP
936MAGICK_FILTER_MODULE_PATH
937MAGICK_CONFIGURE_BUILD_PATH
938MAGICK_CONFIGURE_SRC_PATH
939MAGICK_CODER_MODULE_PATH
940MAN_DIR
941INFO_DIR
942PERSISTINCLUDE_DIR
943INCLUDE_DIR
944LIB_DIR
945LOCALSTATE_DIR
946SHAREDSTATE_DIR
947SYSCONF_DIR
948DATA_DIR
949LIBEXEC_DIR
950SBIN_DIR
951BIN_DIR
952EXEC_PREFIX_DIR
953PREFIX_DIR
954CONFIG_STATUS_DEPENDENCIES
955MAGICK_LIB_VERSION_NUMBER
956MAGICK_LIB_VERSION_TEXT
957MAGICK_LIB_VERSION
958AM_BACKSLASH
959AM_DEFAULT_VERBOSITY
960am__untar
961am__tar
962AMTAR
963am__leading_dot
964SET_MAKE
965AWK
966mkdir_p
967MKDIR_P
968INSTALL_STRIP_PROGRAM
969STRIP
970install_sh
971MAKEINFO
972AUTOHEADER
973AUTOMAKE
974AUTOCONF
975ACLOCAL
976VERSION
977PACKAGE
978CYGPATH_W
979am__isrc
980INSTALL_DATA
981INSTALL_SCRIPT
982INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +0000983PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +0000984PACKAGE_RELEASE_DATE
985PACKAGE_LIB_VERSION_NUMBER
986PACKAGE_LIB_VERSION
987PACKAGE_CHANGE_DATE
988PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +0000989MAGICK_LIBRARY_VERSION_INFO
990MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +0000991MAGICK_LIBRARY_AGE
992MAGICK_LIBRARY_REVISION
993MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +0000994MAGICK_TARGET_OS
995MAGICK_TARGET_VENDOR
996MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +0000997target_os
998target_vendor
999target_cpu
1000target
1001host_os
1002host_vendor
1003host_cpu
1004host
1005build_os
1006build_vendor
1007build_cpu
1008build
1009CONFIGURE_ARGS
1010DISTCHECK_CONFIG_FLAGS
1011target_alias
1012host_alias
1013build_alias
1014LIBS
1015ECHO_T
1016ECHO_N
1017ECHO_C
1018DEFS
1019mandir
1020localedir
1021libdir
1022psdir
1023pdfdir
1024dvidir
1025htmldir
1026infodir
1027docdir
1028oldincludedir
1029includedir
1030localstatedir
1031sharedstatedir
1032sysconfdir
1033datadir
1034datarootdir
1035libexecdir
1036sbindir
1037bindir
1038program_transform_name
1039prefix
1040exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001041PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001042PACKAGE_BUGREPORT
1043PACKAGE_STRING
1044PACKAGE_VERSION
1045PACKAGE_TARNAME
1046PACKAGE_NAME
1047PATH_SEPARATOR
1048SHELL'
1049ac_subst_files=''
1050ac_user_opts='
1051enable_option_checking
1052enable_silent_rules
1053enable_dependency_tracking
1054with_gnu_ld
cristy3ed852e2009-09-05 21:47:34 +00001055with_dmalloc
1056enable_bounds_checking
1057enable_osx_universal_binary
1058with_threads
1059enable_openmp
cristy43596fe2010-01-21 16:46:08 +00001060enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001061enable_largefile
1062enable_shared
1063enable_static
1064with_pic
1065enable_fast_install
1066enable_libtool_lock
1067with_included_ltdl
1068with_ltdl_include
1069with_ltdl_lib
1070enable_ltdl_install
1071with_modules
1072enable_delegate_build
1073enable_deprecated
1074enable_installed
1075enable_cipher
1076enable_embeddable
1077enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001078enable_assert
1079enable_maintainer_mode
1080enable_ccmalloc
1081enable_efence
1082enable_prof
1083enable_gprof
1084enable_gcov
1085with_method_prefix
1086with_quantum_depth
1087with_cache
1088with_frozenpaths
1089with_magick_plus_plus
1090with_perl
1091with_perl_options
1092with_umem
1093with_libstdc
1094with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001095with_x
cristy3ed852e2009-09-05 21:47:34 +00001096with_zlib
1097with_autotrace
1098with_dps
1099with_djvu
cristy430a7312010-01-21 20:44:04 +00001100with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001101with_fftw
1102with_fpx
1103with_fontconfig
1104with_freetype
1105with_gslib
1106with_fontpath
1107with_gs_font_dir
1108with_gvc
1109with_jbig
1110with_jpeg
1111with_jp2
1112with_lcms
cristy71203402010-06-18 13:12:03 +00001113with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001114with_lqr
1115with_openexr
1116with_png
1117with_rsvg
1118with_tiff
1119with_windows_font_dir
1120with_wmf
1121with_xml
1122'
1123 ac_precious_vars='build_alias
1124host_alias
1125target_alias
1126CC
1127CFLAGS
1128LDFLAGS
1129LIBS
1130CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001131CPP
cristy3ed852e2009-09-05 21:47:34 +00001132CXX
1133CXXFLAGS
1134CCC
1135PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001136CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001137XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001138AUTOTRACE_CFLAGS
1139AUTOTRACE_LIBS
1140FONTCONFIG_CFLAGS
1141FONTCONFIG_LIBS
1142GVC_CFLAGS
1143GVC_LIBS
1144LQR_CFLAGS
1145LQR_LIBS
1146OPENEXR_CFLAGS
1147OPENEXR_LIBS
1148RSVG_CFLAGS
1149RSVG_LIBS
1150CAIRO_SVG_CFLAGS
1151CAIRO_SVG_LIBS'
1152
1153
1154# Initialize some variables set by options.
1155ac_init_help=
1156ac_init_version=false
1157ac_unrecognized_opts=
1158ac_unrecognized_sep=
1159# The variables have the same names as the options, with
1160# dashes changed to underlines.
1161cache_file=/dev/null
1162exec_prefix=NONE
1163no_create=
1164no_recursion=
1165prefix=NONE
1166program_prefix=NONE
1167program_suffix=NONE
1168program_transform_name=s,x,x,
1169silent=
1170site=
1171srcdir=
1172verbose=
1173x_includes=NONE
1174x_libraries=NONE
1175
1176# Installation directory options.
1177# These are left unexpanded so users can "make install exec_prefix=/foo"
1178# and all the variables that are supposed to be based on exec_prefix
1179# by default will actually change.
1180# Use braces instead of parens because sh, perl, etc. also accept them.
1181# (The list follows the same order as the GNU Coding Standards.)
1182bindir='${exec_prefix}/bin'
1183sbindir='${exec_prefix}/sbin'
1184libexecdir='${exec_prefix}/libexec'
1185datarootdir='${prefix}/share'
1186datadir='${datarootdir}'
1187sysconfdir='${prefix}/etc'
1188sharedstatedir='${prefix}/com'
1189localstatedir='${prefix}/var'
1190includedir='${prefix}/include'
1191oldincludedir='/usr/include'
1192docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1193infodir='${datarootdir}/info'
1194htmldir='${docdir}'
1195dvidir='${docdir}'
1196pdfdir='${docdir}'
1197psdir='${docdir}'
1198libdir='${exec_prefix}/lib'
1199localedir='${datarootdir}/locale'
1200mandir='${datarootdir}/man'
1201
1202ac_prev=
1203ac_dashdash=
1204for ac_option
1205do
1206 # If the previous option needs an argument, assign it.
1207 if test -n "$ac_prev"; then
1208 eval $ac_prev=\$ac_option
1209 ac_prev=
1210 continue
1211 fi
1212
1213 case $ac_option in
1214 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1215 *) ac_optarg=yes ;;
1216 esac
1217
1218 # Accept the important Cygnus configure options, so we can diagnose typos.
1219
1220 case $ac_dashdash$ac_option in
1221 --)
1222 ac_dashdash=yes ;;
1223
1224 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1225 ac_prev=bindir ;;
1226 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1227 bindir=$ac_optarg ;;
1228
1229 -build | --build | --buil | --bui | --bu)
1230 ac_prev=build_alias ;;
1231 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1232 build_alias=$ac_optarg ;;
1233
1234 -cache-file | --cache-file | --cache-fil | --cache-fi \
1235 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1236 ac_prev=cache_file ;;
1237 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1238 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1239 cache_file=$ac_optarg ;;
1240
1241 --config-cache | -C)
1242 cache_file=config.cache ;;
1243
1244 -datadir | --datadir | --datadi | --datad)
1245 ac_prev=datadir ;;
1246 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1247 datadir=$ac_optarg ;;
1248
1249 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1250 | --dataroo | --dataro | --datar)
1251 ac_prev=datarootdir ;;
1252 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1253 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1254 datarootdir=$ac_optarg ;;
1255
1256 -disable-* | --disable-*)
1257 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyf6fcb5d2010-09-24 01:19:13 +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 &&
cristyf6fcb5d2010-09-24 01:19:13 +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 &&
cristyf6fcb5d2010-09-24 01:19:13 +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 &&
cristyf6fcb5d2010-09-24 01:19:13 +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
cristyf6fcb5d2010-09-24 01:19:13 +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]* )
cristyf6fcb5d2010-09-24 01:19:13 +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'`
cristyf6fcb5d2010-09-24 01:19:13 +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) ;;
cristyf6fcb5d2010-09-24 01:19:13 +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
cristyf6fcb5d2010-09-24 01:19:13 +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
cristyf6fcb5d2010-09-24 01:19:13 +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 .` ||
cristyf6fcb5d2010-09-24 01:19:13 +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" ||
cristyf6fcb5d2010-09-24 01:19:13 +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 .."
cristyf6fcb5d2010-09-24 01:19:13 +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=`(
cristyf6fcb5d2010-09-24 01:19:13 +00001667 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001668 pwd)`
1669# When building in place, set srcdir=.
1670if test "$ac_abs_confdir" = "$ac_pwd"; then
1671 srcdir=.
1672fi
1673# Remove unnecessary trailing slashes from srcdir.
1674# Double slashes in file names in object file debugging info
1675# mess up M-x gdb in Emacs.
1676case $srcdir in
1677*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1678esac
1679for ac_var in $ac_precious_vars; do
1680 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1681 eval ac_env_${ac_var}_value=\$${ac_var}
1682 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1683 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1684done
1685
1686#
1687# Report the --help message.
1688#
1689if test "$ac_init_help" = "long"; then
1690 # Omit some internal or obsolete options to make the list less imposing.
1691 # This message is too long to be a string in the A/UX 3.1 sh.
1692 cat <<_ACEOF
cristy56225732010-09-04 23:44:25 +00001693\`configure' configures ImageMagick 6.6.4 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001694
1695Usage: $0 [OPTION]... [VAR=VALUE]...
1696
1697To assign environment variables (e.g., CC, CFLAGS...), specify them as
1698VAR=VALUE. See below for descriptions of some of the useful variables.
1699
1700Defaults for the options are specified in brackets.
1701
1702Configuration:
1703 -h, --help display this help and exit
1704 --help=short display options specific to this package
1705 --help=recursive display the short help of all the included packages
1706 -V, --version display version information and exit
cristyf6fcb5d2010-09-24 01:19:13 +00001707 -q, --quiet, --silent do not print \`checking...' messages
cristy3ed852e2009-09-05 21:47:34 +00001708 --cache-file=FILE cache test results in FILE [disabled]
1709 -C, --config-cache alias for \`--cache-file=config.cache'
1710 -n, --no-create do not create output files
1711 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1712
1713Installation directories:
1714 --prefix=PREFIX install architecture-independent files in PREFIX
1715 [$ac_default_prefix]
1716 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1717 [PREFIX]
1718
1719By default, \`make install' will install all the files in
1720\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1721an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1722for instance \`--prefix=\$HOME'.
1723
1724For better control, use the options below.
1725
1726Fine tuning of the installation directories:
1727 --bindir=DIR user executables [EPREFIX/bin]
1728 --sbindir=DIR system admin executables [EPREFIX/sbin]
1729 --libexecdir=DIR program executables [EPREFIX/libexec]
1730 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1731 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1732 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1733 --libdir=DIR object code libraries [EPREFIX/lib]
1734 --includedir=DIR C header files [PREFIX/include]
1735 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1736 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1737 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1738 --infodir=DIR info documentation [DATAROOTDIR/info]
1739 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1740 --mandir=DIR man documentation [DATAROOTDIR/man]
1741 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1742 --htmldir=DIR html documentation [DOCDIR]
1743 --dvidir=DIR dvi documentation [DOCDIR]
1744 --pdfdir=DIR pdf documentation [DOCDIR]
1745 --psdir=DIR ps documentation [DOCDIR]
1746_ACEOF
1747
1748 cat <<\_ACEOF
1749
1750Program names:
1751 --program-prefix=PREFIX prepend PREFIX to installed program names
1752 --program-suffix=SUFFIX append SUFFIX to installed program names
1753 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1754
1755X features:
1756 --x-includes=DIR X include files are in DIR
1757 --x-libraries=DIR X library files are in DIR
1758
1759System types:
1760 --build=BUILD configure for building on BUILD [guessed]
1761 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1762 --target=TARGET configure for building compilers for TARGET [HOST]
1763_ACEOF
1764fi
1765
1766if test -n "$ac_init_help"; then
1767 case $ac_init_help in
cristy56225732010-09-04 23:44:25 +00001768 short | recursive ) echo "Configuration of ImageMagick 6.6.4:";;
cristy3ed852e2009-09-05 21:47:34 +00001769 esac
1770 cat <<\_ACEOF
1771
1772Optional Features:
1773 --disable-option-checking ignore unrecognized --enable/--with options
1774 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1775 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1776 --enable-silent-rules less verbose build output (undo: `make V=1')
1777 --disable-silent-rules verbose build output (undo: `make V=0')
1778 --disable-dependency-tracking speeds up one-time build
1779 --enable-dependency-tracking do not reject slow dependency extractors
1780 --bounds-checking enable run-time bounds-checking
1781 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001782 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001783 --disable-openmp do not use OpenMP
cristy43596fe2010-01-21 16:46:08 +00001784 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001785 --disable-largefile omit support for large files
1786 --enable-shared[=PKGS] build shared libraries [default=yes]
1787 --enable-static[=PKGS] build static libraries [default=yes]
1788 --enable-fast-install[=PKGS]
1789 optimize for fast installation [default=yes]
1790 --disable-libtool-lock avoid locking (might break parallel builds)
1791 --enable-ltdl-install install libltdl
1792 --enable-delegate-build look for delegate libraries in build directory
1793 --disable-deprecated exclude deprecated methods in MagickCore and
1794 MagickWand API's
1795 --disable-installed Formally install ImageMagick under PREFIX
1796 --disable-cipher disable enciphering and deciphering image pixels
1797 --enable-embeddable enable self-contained, embeddable,
1798 zero-configuration ImageMagick
1799 --enable-hdri accurately represent the wide range of intensity
1800 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001801 --disable-assert disable assert() statements in build
1802 --enable-maintainer-mode enable make rules and dependencies not useful
1803 (and sometimes confusing) to the casual installer
1804 --enable-ccmalloc enable 'ccmalloc' memory debug support
1805 --enable-efence enable 'efence' memory debug support
1806 --enable-prof enable 'prof' profiling support
1807 --enable-gprof enable 'gprof' profiling support
1808 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001809 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001810
1811Optional Packages:
1812 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1813 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1814 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy3ed852e2009-09-05 21:47:34 +00001815 --with-dmalloc use dmalloc, as in
1816 http://www.dmalloc.com/dmalloc.tar.gz
1817 --without-threads disable threads support
1818 --with-pic try to use only PIC/non-PIC objects [default=use
1819 both]
1820 --with-included-ltdl use the GNU ltdl sources included here
1821 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1822 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1823 --with-modules enable building dynamically loadable modules
1824 --with-method-prefix=PREFIX
1825 prefix MagickCore API methods
1826 --with-quantum-depth=DEPTH
1827 number of bits in a pixel quantum (default 16)
1828 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1829 memory)
1830 --with-frozenpaths freeze delegate paths
1831 --without-magick-plus-plus
1832 disable build/install of Magick++
1833 --with-perl enable build/install of PerlMagick
1834 --with-perl-options=OPTIONS
1835 options to pass on command-line when generating
1836 PerlMagick's build file
1837 --with-umem enable umem memory allocation library support
1838 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1839 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001840 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001841 --without-zlib disable ZLIB support
1842 --with-autotrace enable autotrace support
1843 --without-dps disable Display Postscript support
1844 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001845 --with-dejavu-font-dir=DIR
1846 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001847 --without-fftw disable FFTW support
1848 --without-fpx disable FlashPIX support
1849 --without-fontconfig disable fontconfig support
1850 --without-freetype disable Freetype support
1851 --without-gslib enable Ghostscript library support
1852 --with-fontpath=DIR prepend to default font search path
1853 --with-gs-font-dir=DIR Ghostscript font directory
1854 --without-gvc disable GVC support
1855 --without-jbig disable JBIG support
1856 --without-jpeg disable JPEG support
1857 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001858 --without-lcms disable lcms (v1.1X) support
1859 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001860 --without-lqr disable Liquid Rescale support
cristy3ed852e2009-09-05 21:47:34 +00001861 --without-openexr disable OpenEXR support
1862 --without-png disable PNG support
1863 --without-rsvg disable RSVG support
1864 --without-tiff disable TIFF support
1865 --with-windows-font-dir=DIR
1866 directory containing MS-Windows fonts
1867 --without-wmf disable WMF support
1868 --without-xml disable XML support
1869
1870Some influential environment variables:
1871 CC C compiler command
1872 CFLAGS C compiler flags
1873 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1874 nonstandard directory <lib dir>
1875 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001876 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001877 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001878 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001879 CXX C++ compiler command
1880 CXXFLAGS C++ compiler flags
1881 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00001882 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00001883 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00001884 AUTOTRACE_CFLAGS
1885 C compiler flags for AUTOTRACE, overriding pkg-config
1886 AUTOTRACE_LIBS
1887 linker flags for AUTOTRACE, overriding pkg-config
1888 FONTCONFIG_CFLAGS
1889 C compiler flags for FONTCONFIG, overriding pkg-config
1890 FONTCONFIG_LIBS
1891 linker flags for FONTCONFIG, overriding pkg-config
1892 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1893 GVC_LIBS linker flags for GVC, overriding pkg-config
1894 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1895 LQR_LIBS linker flags for LQR, overriding pkg-config
1896 OPENEXR_CFLAGS
1897 C compiler flags for OPENEXR, overriding pkg-config
1898 OPENEXR_LIBS
1899 linker flags for OPENEXR, overriding pkg-config
1900 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1901 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1902 CAIRO_SVG_CFLAGS
1903 C compiler flags for CAIRO_SVG, overriding pkg-config
1904 CAIRO_SVG_LIBS
1905 linker flags for CAIRO_SVG, overriding pkg-config
1906
1907Use these variables to override the choices made by `configure' or to help
1908it to find libraries and programs with nonstandard names/locations.
1909
1910Report bugs to <http://www.imagemagick.org>.
1911_ACEOF
1912ac_status=$?
1913fi
1914
1915if test "$ac_init_help" = "recursive"; then
1916 # If there are subdirs, report their specific --help.
1917 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1918 test -d "$ac_dir" ||
1919 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1920 continue
1921 ac_builddir=.
1922
1923case "$ac_dir" in
1924.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1925*)
1926 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1927 # A ".." for each directory in $ac_dir_suffix.
1928 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1929 case $ac_top_builddir_sub in
1930 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1931 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1932 esac ;;
1933esac
1934ac_abs_top_builddir=$ac_pwd
1935ac_abs_builddir=$ac_pwd$ac_dir_suffix
1936# for backward compatibility:
1937ac_top_builddir=$ac_top_build_prefix
1938
1939case $srcdir in
1940 .) # We are building in place.
1941 ac_srcdir=.
1942 ac_top_srcdir=$ac_top_builddir_sub
1943 ac_abs_top_srcdir=$ac_pwd ;;
1944 [\\/]* | ?:[\\/]* ) # Absolute name.
1945 ac_srcdir=$srcdir$ac_dir_suffix;
1946 ac_top_srcdir=$srcdir
1947 ac_abs_top_srcdir=$srcdir ;;
1948 *) # Relative name.
1949 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1950 ac_top_srcdir=$ac_top_build_prefix$srcdir
1951 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1952esac
1953ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1954
1955 cd "$ac_dir" || { ac_status=$?; continue; }
1956 # Check for guested configure.
1957 if test -f "$ac_srcdir/configure.gnu"; then
1958 echo &&
1959 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1960 elif test -f "$ac_srcdir/configure"; then
1961 echo &&
1962 $SHELL "$ac_srcdir/configure" --help=recursive
1963 else
1964 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1965 fi || ac_status=$?
1966 cd "$ac_pwd" || { ac_status=$?; break; }
1967 done
1968fi
1969
1970test -n "$ac_init_help" && exit $ac_status
1971if $ac_init_version; then
1972 cat <<\_ACEOF
cristy56225732010-09-04 23:44:25 +00001973ImageMagick configure 6.6.4
cristyf6fcb5d2010-09-24 01:19:13 +00001974generated by GNU Autoconf 2.65
cristy3ed852e2009-09-05 21:47:34 +00001975
cristyf6fcb5d2010-09-24 01:19:13 +00001976Copyright (C) 2009 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
cristyf6fcb5d2010-09-24 01:19:13 +00002070 if { as_var=$3; eval "test \"\${$as_var+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; }
cristyf6fcb5d2010-09-24 01:19:13 +00002073if { as_var=$3; eval "test \"\${$as_var+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;}
cristyf6fcb5d2010-09-24 01:19:13 +00002132( cat <<\_ASBOX
2133## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002134## Report this to http://www.imagemagick.org ##
cristyf6fcb5d2010-09-24 01:19:13 +00002135## ----------------------------------------- ##
2136_ASBOX
cristy8b350f62009-11-15 23:12:43 +00002137 ) | sed "s/^/$as_me: WARNING: /" >&2
2138 ;;
2139esac
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2141$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002142if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002143 $as_echo_n "(cached) " >&6
2144else
2145 eval "$3=\$ac_header_compiler"
2146fi
2147eval ac_res=\$$3
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149$as_echo "$ac_res" >&6; }
2150fi
2151 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2152
2153} # ac_fn_c_check_header_mongrel
2154
2155# ac_fn_c_try_run LINENO
2156# ----------------------
2157# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2158# that executables *can* be run.
2159ac_fn_c_try_run ()
2160{
2161 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2162 if { { ac_try="$ac_link"
2163case "(($ac_try" in
2164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165 *) ac_try_echo=$ac_try;;
2166esac
2167eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2168$as_echo "$ac_try_echo"; } >&5
2169 (eval "$ac_link") 2>&5
2170 ac_status=$?
2171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2172 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2173 { { case "(($ac_try" in
2174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2175 *) ac_try_echo=$ac_try;;
2176esac
2177eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2178$as_echo "$ac_try_echo"; } >&5
2179 (eval "$ac_try") 2>&5
2180 ac_status=$?
2181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2182 test $ac_status = 0; }; }; then :
2183 ac_retval=0
2184else
2185 $as_echo "$as_me: program exited with status $ac_status" >&5
2186 $as_echo "$as_me: failed program was:" >&5
2187sed 's/^/| /' conftest.$ac_ext >&5
2188
2189 ac_retval=$ac_status
2190fi
2191 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2192 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002193 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002194
2195} # ac_fn_c_try_run
2196
2197# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2198# -------------------------------------------------------
2199# Tests whether HEADER exists and can be compiled using the include files in
2200# INCLUDES, setting the cache variable VAR accordingly.
2201ac_fn_c_check_header_compile ()
2202{
2203 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2205$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002206if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002207 $as_echo_n "(cached) " >&6
2208else
2209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210/* end confdefs.h. */
2211$4
2212#include <$2>
2213_ACEOF
2214if ac_fn_c_try_compile "$LINENO"; then :
2215 eval "$3=yes"
2216else
2217 eval "$3=no"
2218fi
2219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220fi
2221eval ac_res=\$$3
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2223$as_echo "$ac_res" >&6; }
2224 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2225
2226} # ac_fn_c_check_header_compile
2227
cristya0b81c32010-01-22 02:54:33 +00002228# ac_fn_cxx_try_compile LINENO
2229# ----------------------------
2230# Try to compile conftest.$ac_ext, and return whether this succeeded.
2231ac_fn_cxx_try_compile ()
2232{
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 rm -f conftest.$ac_objext
2235 if { { ac_try="$ac_compile"
2236case "(($ac_try" in
2237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2238 *) ac_try_echo=$ac_try;;
2239esac
2240eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2241$as_echo "$ac_try_echo"; } >&5
2242 (eval "$ac_compile") 2>conftest.err
2243 ac_status=$?
2244 if test -s conftest.err; then
2245 grep -v '^ *+' conftest.err >conftest.er1
2246 cat conftest.er1 >&5
2247 mv -f conftest.er1 conftest.err
2248 fi
2249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2250 test $ac_status = 0; } && {
2251 test -z "$ac_cxx_werror_flag" ||
2252 test ! -s conftest.err
2253 } && test -s conftest.$ac_objext; then :
2254 ac_retval=0
2255else
2256 $as_echo "$as_me: failed program was:" >&5
2257sed 's/^/| /' conftest.$ac_ext >&5
2258
2259 ac_retval=1
2260fi
2261 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2262 as_fn_set_status $ac_retval
2263
2264} # ac_fn_cxx_try_compile
2265
cristy8b350f62009-11-15 23:12:43 +00002266# ac_fn_c_try_link LINENO
2267# -----------------------
2268# Try to link conftest.$ac_ext, and return whether this succeeded.
2269ac_fn_c_try_link ()
2270{
2271 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272 rm -f conftest.$ac_objext conftest$ac_exeext
2273 if { { ac_try="$ac_link"
2274case "(($ac_try" in
2275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2276 *) ac_try_echo=$ac_try;;
2277esac
2278eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2279$as_echo "$ac_try_echo"; } >&5
2280 (eval "$ac_link") 2>conftest.err
2281 ac_status=$?
2282 if test -s conftest.err; then
2283 grep -v '^ *+' conftest.err >conftest.er1
2284 cat conftest.er1 >&5
2285 mv -f conftest.er1 conftest.err
2286 fi
2287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2288 test $ac_status = 0; } && {
2289 test -z "$ac_c_werror_flag" ||
2290 test ! -s conftest.err
2291 } && test -s conftest$ac_exeext && {
2292 test "$cross_compiling" = yes ||
2293 $as_test_x conftest$ac_exeext
2294 }; then :
2295 ac_retval=0
2296else
2297 $as_echo "$as_me: failed program was:" >&5
2298sed 's/^/| /' conftest.$ac_ext >&5
2299
2300 ac_retval=1
2301fi
2302 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2303 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2304 # interfere with the next link command; also delete a directory that is
2305 # left behind by Apple's compiler. We do this before executing the actions.
2306 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2307 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002308 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002309
2310} # ac_fn_c_try_link
2311
2312# ac_fn_c_check_func LINENO FUNC VAR
2313# ----------------------------------
2314# Tests whether FUNC exists, setting the cache variable VAR accordingly
2315ac_fn_c_check_func ()
2316{
2317 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2319$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002320if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002321 $as_echo_n "(cached) " >&6
2322else
2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324/* end confdefs.h. */
2325/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2327#define $2 innocuous_$2
2328
2329/* System header to define __stub macros and hopefully few prototypes,
2330 which can conflict with char $2 (); below.
2331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2332 <limits.h> exists even on freestanding compilers. */
2333
2334#ifdef __STDC__
2335# include <limits.h>
2336#else
2337# include <assert.h>
2338#endif
2339
2340#undef $2
2341
2342/* Override any GCC internal prototype to avoid an error.
2343 Use char because int might match the return type of a GCC
2344 builtin and then its argument prototype would still apply. */
2345#ifdef __cplusplus
2346extern "C"
2347#endif
2348char $2 ();
2349/* The GNU C library defines this for functions which it implements
2350 to always fail with ENOSYS. Some functions are actually named
2351 something starting with __ and the normal name is an alias. */
2352#if defined __stub_$2 || defined __stub___$2
2353choke me
2354#endif
2355
2356int
2357main ()
2358{
2359return $2 ();
2360 ;
2361 return 0;
2362}
2363_ACEOF
2364if ac_fn_c_try_link "$LINENO"; then :
2365 eval "$3=yes"
2366else
2367 eval "$3=no"
2368fi
2369rm -f core conftest.err conftest.$ac_objext \
2370 conftest$ac_exeext conftest.$ac_ext
2371fi
2372eval ac_res=\$$3
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2374$as_echo "$ac_res" >&6; }
2375 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2376
2377} # ac_fn_c_check_func
2378
2379# ac_fn_cxx_try_cpp LINENO
2380# ------------------------
2381# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2382ac_fn_cxx_try_cpp ()
2383{
2384 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2385 if { { ac_try="$ac_cpp conftest.$ac_ext"
2386case "(($ac_try" in
2387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2389esac
2390eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2391$as_echo "$ac_try_echo"; } >&5
2392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2393 ac_status=$?
2394 if test -s conftest.err; then
2395 grep -v '^ *+' conftest.err >conftest.er1
2396 cat conftest.er1 >&5
2397 mv -f conftest.er1 conftest.err
2398 fi
2399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2400 test $ac_status = 0; } >/dev/null && {
2401 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2402 test ! -s conftest.err
2403 }; then :
2404 ac_retval=0
2405else
2406 $as_echo "$as_me: failed program was:" >&5
2407sed 's/^/| /' conftest.$ac_ext >&5
2408
2409 ac_retval=1
2410fi
2411 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002412 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002413
2414} # ac_fn_cxx_try_cpp
2415
2416# ac_fn_cxx_try_link LINENO
2417# -------------------------
2418# Try to link conftest.$ac_ext, and return whether this succeeded.
2419ac_fn_cxx_try_link ()
2420{
2421 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2422 rm -f conftest.$ac_objext conftest$ac_exeext
2423 if { { ac_try="$ac_link"
2424case "(($ac_try" in
2425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426 *) ac_try_echo=$ac_try;;
2427esac
2428eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2429$as_echo "$ac_try_echo"; } >&5
2430 (eval "$ac_link") 2>conftest.err
2431 ac_status=$?
2432 if test -s conftest.err; then
2433 grep -v '^ *+' conftest.err >conftest.er1
2434 cat conftest.er1 >&5
2435 mv -f conftest.er1 conftest.err
2436 fi
2437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2438 test $ac_status = 0; } && {
2439 test -z "$ac_cxx_werror_flag" ||
2440 test ! -s conftest.err
2441 } && test -s conftest$ac_exeext && {
2442 test "$cross_compiling" = yes ||
2443 $as_test_x conftest$ac_exeext
2444 }; then :
2445 ac_retval=0
2446else
2447 $as_echo "$as_me: failed program was:" >&5
2448sed 's/^/| /' conftest.$ac_ext >&5
2449
2450 ac_retval=1
2451fi
2452 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2453 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2454 # interfere with the next link command; also delete a directory that is
2455 # left behind by Apple's compiler. We do this before executing the actions.
2456 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2457 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002458 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002459
2460} # ac_fn_cxx_try_link
2461
cristyf6fcb5d2010-09-24 01:19:13 +00002462# ac_fn_c_check_decl LINENO SYMBOL VAR
2463# ------------------------------------
2464# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
cristy8b350f62009-11-15 23:12:43 +00002465ac_fn_c_check_decl ()
2466{
2467 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyf6fcb5d2010-09-24 01:19:13 +00002468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2469$as_echo_n "checking whether $2 is declared... " >&6; }
2470if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002471 $as_echo_n "(cached) " >&6
2472else
2473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2474/* end confdefs.h. */
2475$4
2476int
2477main ()
2478{
cristyf6fcb5d2010-09-24 01:19:13 +00002479#ifndef $2
2480 (void) $2;
cristy8b350f62009-11-15 23:12:43 +00002481#endif
2482
2483 ;
2484 return 0;
2485}
2486_ACEOF
2487if ac_fn_c_try_compile "$LINENO"; then :
2488 eval "$3=yes"
2489else
2490 eval "$3=no"
2491fi
2492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2493fi
2494eval ac_res=\$$3
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2496$as_echo "$ac_res" >&6; }
2497 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2498
2499} # ac_fn_c_check_decl
2500
2501# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2502# -------------------------------------------
2503# Tests whether TYPE exists after having included INCLUDES, setting cache
2504# variable VAR accordingly.
2505ac_fn_c_check_type ()
2506{
2507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2509$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002510if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002511 $as_echo_n "(cached) " >&6
2512else
2513 eval "$3=no"
2514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515/* end confdefs.h. */
2516$4
2517int
2518main ()
2519{
2520if (sizeof ($2))
2521 return 0;
2522 ;
2523 return 0;
2524}
2525_ACEOF
2526if ac_fn_c_try_compile "$LINENO"; then :
2527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2528/* end confdefs.h. */
2529$4
2530int
2531main ()
2532{
2533if (sizeof (($2)))
2534 return 0;
2535 ;
2536 return 0;
2537}
2538_ACEOF
2539if ac_fn_c_try_compile "$LINENO"; then :
2540
2541else
2542 eval "$3=yes"
2543fi
2544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2545fi
2546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2547fi
2548eval ac_res=\$$3
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2550$as_echo "$ac_res" >&6; }
2551 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2552
2553} # ac_fn_c_check_type
2554
cristy92703d82010-04-26 00:18:18 +00002555# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2556# ----------------------------------------------------
2557# Tries to find if the field MEMBER exists in type AGGR, after including
2558# INCLUDES, setting cache variable VAR accordingly.
2559ac_fn_c_check_member ()
2560{
2561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2563$as_echo_n "checking for $2.$3... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002564if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy92703d82010-04-26 00:18:18 +00002565 $as_echo_n "(cached) " >&6
2566else
2567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2568/* end confdefs.h. */
2569$5
2570int
2571main ()
2572{
2573static $2 ac_aggr;
2574if (ac_aggr.$3)
2575return 0;
2576 ;
2577 return 0;
2578}
2579_ACEOF
2580if ac_fn_c_try_compile "$LINENO"; then :
2581 eval "$4=yes"
2582else
2583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2584/* end confdefs.h. */
2585$5
2586int
2587main ()
2588{
2589static $2 ac_aggr;
2590if (sizeof ac_aggr.$3)
2591return 0;
2592 ;
2593 return 0;
2594}
2595_ACEOF
2596if ac_fn_c_try_compile "$LINENO"; then :
2597 eval "$4=yes"
2598else
2599 eval "$4=no"
2600fi
2601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602fi
2603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604fi
2605eval ac_res=\$$4
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2607$as_echo "$ac_res" >&6; }
2608 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2609
2610} # ac_fn_c_check_member
2611
cristy8b350f62009-11-15 23:12:43 +00002612# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2613# --------------------------------------------
2614# Tries to find the compile-time value of EXPR in a program that includes
2615# INCLUDES, setting VAR accordingly. Returns whether the value could be
2616# computed
2617ac_fn_c_compute_int ()
2618{
2619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2620 if test "$cross_compiling" = yes; then
2621 # Depending upon the size, compute the lo and hi bounds.
2622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2623/* end confdefs.h. */
2624$4
2625int
2626main ()
2627{
2628static int test_array [1 - 2 * !(($2) >= 0)];
2629test_array [0] = 0
2630
2631 ;
2632 return 0;
2633}
2634_ACEOF
2635if ac_fn_c_try_compile "$LINENO"; then :
2636 ac_lo=0 ac_mid=0
2637 while :; do
2638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639/* end confdefs.h. */
2640$4
2641int
2642main ()
2643{
2644static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2645test_array [0] = 0
2646
2647 ;
2648 return 0;
2649}
2650_ACEOF
2651if ac_fn_c_try_compile "$LINENO"; then :
2652 ac_hi=$ac_mid; break
2653else
2654 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2655 if test $ac_lo -le $ac_mid; then
2656 ac_lo= ac_hi=
2657 break
2658 fi
2659 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2660fi
2661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662 done
2663else
2664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2665/* end confdefs.h. */
2666$4
2667int
2668main ()
2669{
2670static int test_array [1 - 2 * !(($2) < 0)];
2671test_array [0] = 0
2672
2673 ;
2674 return 0;
2675}
2676_ACEOF
2677if ac_fn_c_try_compile "$LINENO"; then :
2678 ac_hi=-1 ac_mid=-1
2679 while :; do
2680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2681/* end confdefs.h. */
2682$4
2683int
2684main ()
2685{
2686static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2687test_array [0] = 0
2688
2689 ;
2690 return 0;
2691}
2692_ACEOF
2693if ac_fn_c_try_compile "$LINENO"; then :
2694 ac_lo=$ac_mid; break
2695else
2696 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2697 if test $ac_mid -le $ac_hi; then
2698 ac_lo= ac_hi=
2699 break
2700 fi
2701 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2702fi
2703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2704 done
2705else
2706 ac_lo= ac_hi=
2707fi
2708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2709fi
2710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2711# Binary search between lo and hi bounds.
2712while test "x$ac_lo" != "x$ac_hi"; do
2713 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2715/* end confdefs.h. */
2716$4
2717int
2718main ()
2719{
2720static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2721test_array [0] = 0
2722
2723 ;
2724 return 0;
2725}
2726_ACEOF
2727if ac_fn_c_try_compile "$LINENO"; then :
2728 ac_hi=$ac_mid
2729else
2730 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2731fi
2732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2733done
2734case $ac_lo in #((
2735?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2736'') ac_retval=1 ;;
2737esac
2738 else
2739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2740/* end confdefs.h. */
2741$4
2742static long int longval () { return $2; }
2743static unsigned long int ulongval () { return $2; }
2744#include <stdio.h>
2745#include <stdlib.h>
2746int
2747main ()
2748{
2749
2750 FILE *f = fopen ("conftest.val", "w");
2751 if (! f)
2752 return 1;
2753 if (($2) < 0)
2754 {
2755 long int i = longval ();
2756 if (i != ($2))
2757 return 1;
2758 fprintf (f, "%ld", i);
2759 }
2760 else
2761 {
2762 unsigned long int i = ulongval ();
2763 if (i != ($2))
2764 return 1;
2765 fprintf (f, "%lu", i);
2766 }
2767 /* Do not output a trailing newline, as this causes \r\n confusion
2768 on some platforms. */
2769 return ferror (f) || fclose (f) != 0;
2770
2771 ;
2772 return 0;
2773}
2774_ACEOF
2775if ac_fn_c_try_run "$LINENO"; then :
2776 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2777else
2778 ac_retval=1
2779fi
2780rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2781 conftest.$ac_objext conftest.beam conftest.$ac_ext
2782rm -f conftest.val
2783
2784 fi
2785 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002786 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002787
2788} # ac_fn_c_compute_int
2789
2790# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2791# ---------------------------------------------------------
2792# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2793# the include files in INCLUDES and setting the cache variable VAR
2794# accordingly.
2795ac_fn_cxx_check_header_mongrel ()
2796{
2797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyf6fcb5d2010-09-24 01:19:13 +00002798 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2800$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002801if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002802 $as_echo_n "(cached) " >&6
2803fi
2804eval ac_res=\$$3
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2806$as_echo "$ac_res" >&6; }
2807else
2808 # Is the header compilable?
2809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2810$as_echo_n "checking $2 usability... " >&6; }
2811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2812/* end confdefs.h. */
2813$4
2814#include <$2>
2815_ACEOF
2816if ac_fn_cxx_try_compile "$LINENO"; then :
2817 ac_header_compiler=yes
2818else
2819 ac_header_compiler=no
2820fi
2821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2823$as_echo "$ac_header_compiler" >&6; }
2824
2825# Is the header present?
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2827$as_echo_n "checking $2 presence... " >&6; }
2828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2829/* end confdefs.h. */
2830#include <$2>
2831_ACEOF
2832if ac_fn_cxx_try_cpp "$LINENO"; then :
2833 ac_header_preproc=yes
2834else
2835 ac_header_preproc=no
2836fi
2837rm -f conftest.err conftest.$ac_ext
2838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2839$as_echo "$ac_header_preproc" >&6; }
2840
2841# So? What about this header?
2842case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2843 yes:no: )
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2845$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2847$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2848 ;;
2849 no:yes:* )
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2851$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2853$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2855$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2857$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2859$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00002860( cat <<\_ASBOX
2861## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002862## Report this to http://www.imagemagick.org ##
cristyf6fcb5d2010-09-24 01:19:13 +00002863## ----------------------------------------- ##
2864_ASBOX
cristy8b350f62009-11-15 23:12:43 +00002865 ) | sed "s/^/$as_me: WARNING: /" >&2
2866 ;;
2867esac
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2869$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002870if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002871 $as_echo_n "(cached) " >&6
2872else
2873 eval "$3=\$ac_header_compiler"
2874fi
2875eval ac_res=\$$3
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2877$as_echo "$ac_res" >&6; }
2878fi
2879 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2880
2881} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002882cat >config.log <<_ACEOF
2883This file contains any messages produced by compilers while
2884running configure, to aid debugging if configure makes a mistake.
2885
cristy56225732010-09-04 23:44:25 +00002886It was created by ImageMagick $as_me 6.6.4, which was
cristyf6fcb5d2010-09-24 01:19:13 +00002887generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002888
2889 $ $0 $@
2890
2891_ACEOF
2892exec 5>>config.log
2893{
2894cat <<_ASUNAME
2895## --------- ##
2896## Platform. ##
2897## --------- ##
2898
2899hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2900uname -m = `(uname -m) 2>/dev/null || echo unknown`
2901uname -r = `(uname -r) 2>/dev/null || echo unknown`
2902uname -s = `(uname -s) 2>/dev/null || echo unknown`
2903uname -v = `(uname -v) 2>/dev/null || echo unknown`
2904
2905/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2906/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2907
2908/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2909/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2910/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2911/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2912/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2913/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2914/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2915
2916_ASUNAME
2917
2918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH
2920do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002923 $as_echo "PATH: $as_dir"
2924 done
cristy3ed852e2009-09-05 21:47:34 +00002925IFS=$as_save_IFS
2926
2927} >&5
2928
2929cat >&5 <<_ACEOF
2930
2931
2932## ----------- ##
2933## Core tests. ##
2934## ----------- ##
2935
2936_ACEOF
2937
2938
2939# Keep a trace of the command line.
2940# Strip out --no-create and --no-recursion so they do not pile up.
2941# Strip out --silent because we don't want to record it for future runs.
2942# Also quote any args containing shell meta-characters.
2943# Make two passes to allow for proper duplicate-argument suppression.
2944ac_configure_args=
2945ac_configure_args0=
2946ac_configure_args1=
2947ac_must_keep_next=false
2948for ac_pass in 1 2
2949do
2950 for ac_arg
2951 do
2952 case $ac_arg in
2953 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2954 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2955 | -silent | --silent | --silen | --sile | --sil)
2956 continue ;;
2957 *\'*)
2958 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2959 esac
2960 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00002961 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00002962 2)
cristy8b350f62009-11-15 23:12:43 +00002963 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002964 if test $ac_must_keep_next = true; then
2965 ac_must_keep_next=false # Got value, back to normal.
2966 else
2967 case $ac_arg in
2968 *=* | --config-cache | -C | -disable-* | --disable-* \
2969 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2970 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2971 | -with-* | --with-* | -without-* | --without-* | --x)
2972 case "$ac_configure_args0 " in
2973 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2974 esac
2975 ;;
2976 -* ) ac_must_keep_next=true ;;
2977 esac
2978 fi
cristy8b350f62009-11-15 23:12:43 +00002979 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002980 ;;
2981 esac
2982 done
2983done
cristy8b350f62009-11-15 23:12:43 +00002984{ ac_configure_args0=; unset ac_configure_args0;}
2985{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00002986
2987# When interrupted or exit'd, cleanup temporary files, and complete
2988# config.log. We remove comments because anyway the quotes in there
2989# would cause problems or look ugly.
2990# WARNING: Use '\'' to represent an apostrophe within the trap.
2991# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2992trap 'exit_status=$?
2993 # Save into config.log some information that might help in debugging.
2994 {
2995 echo
2996
cristyf6fcb5d2010-09-24 01:19:13 +00002997 cat <<\_ASBOX
2998## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00002999## Cache variables. ##
cristyf6fcb5d2010-09-24 01:19:13 +00003000## ---------------- ##
3001_ASBOX
cristy3ed852e2009-09-05 21:47:34 +00003002 echo
3003 # The following way of writing the cache mishandles newlines in values,
3004(
3005 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3006 eval ac_val=\$$ac_var
3007 case $ac_val in #(
3008 *${as_nl}*)
3009 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003010 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003011$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3012 esac
3013 case $ac_var in #(
3014 _ | IFS | as_nl) ;; #(
3015 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003016 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003017 esac ;;
3018 esac
3019 done
3020 (set) 2>&1 |
3021 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3022 *${as_nl}ac_space=\ *)
3023 sed -n \
3024 "s/'\''/'\''\\\\'\'''\''/g;
3025 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3026 ;; #(
3027 *)
3028 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3029 ;;
3030 esac |
3031 sort
3032)
3033 echo
3034
cristyf6fcb5d2010-09-24 01:19:13 +00003035 cat <<\_ASBOX
3036## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003037## Output variables. ##
cristyf6fcb5d2010-09-24 01:19:13 +00003038## ----------------- ##
3039_ASBOX
cristy3ed852e2009-09-05 21:47:34 +00003040 echo
3041 for ac_var in $ac_subst_vars
3042 do
3043 eval ac_val=\$$ac_var
3044 case $ac_val in
3045 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3046 esac
3047 $as_echo "$ac_var='\''$ac_val'\''"
3048 done | sort
3049 echo
3050
3051 if test -n "$ac_subst_files"; then
cristyf6fcb5d2010-09-24 01:19:13 +00003052 cat <<\_ASBOX
3053## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003054## File substitutions. ##
cristyf6fcb5d2010-09-24 01:19:13 +00003055## ------------------- ##
3056_ASBOX
cristy3ed852e2009-09-05 21:47:34 +00003057 echo
3058 for ac_var in $ac_subst_files
3059 do
3060 eval ac_val=\$$ac_var
3061 case $ac_val in
3062 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3063 esac
3064 $as_echo "$ac_var='\''$ac_val'\''"
3065 done | sort
3066 echo
3067 fi
3068
3069 if test -s confdefs.h; then
cristyf6fcb5d2010-09-24 01:19:13 +00003070 cat <<\_ASBOX
3071## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003072## confdefs.h. ##
cristyf6fcb5d2010-09-24 01:19:13 +00003073## ----------- ##
3074_ASBOX
cristy3ed852e2009-09-05 21:47:34 +00003075 echo
3076 cat confdefs.h
3077 echo
3078 fi
3079 test "$ac_signal" != 0 &&
3080 $as_echo "$as_me: caught signal $ac_signal"
3081 $as_echo "$as_me: exit $exit_status"
3082 } >&5
3083 rm -f core *.core core.conftest.* &&
3084 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3085 exit $exit_status
3086' 0
3087for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003088 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003089done
3090ac_signal=0
3091
3092# confdefs.h avoids OS command line length limits that DEFS can exceed.
3093rm -f -r conftest* confdefs.h
3094
cristy8b350f62009-11-15 23:12:43 +00003095$as_echo "/* confdefs.h */" > confdefs.h
3096
cristy3ed852e2009-09-05 21:47:34 +00003097# Predefined preprocessor variables.
3098
3099cat >>confdefs.h <<_ACEOF
3100#define PACKAGE_NAME "$PACKAGE_NAME"
3101_ACEOF
3102
cristy3ed852e2009-09-05 21:47:34 +00003103cat >>confdefs.h <<_ACEOF
3104#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3105_ACEOF
3106
cristy3ed852e2009-09-05 21:47:34 +00003107cat >>confdefs.h <<_ACEOF
3108#define PACKAGE_VERSION "$PACKAGE_VERSION"
3109_ACEOF
3110
cristy3ed852e2009-09-05 21:47:34 +00003111cat >>confdefs.h <<_ACEOF
3112#define PACKAGE_STRING "$PACKAGE_STRING"
3113_ACEOF
3114
cristy3ed852e2009-09-05 21:47:34 +00003115cat >>confdefs.h <<_ACEOF
3116#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3117_ACEOF
3118
cristy8b350f62009-11-15 23:12:43 +00003119cat >>confdefs.h <<_ACEOF
3120#define PACKAGE_URL "$PACKAGE_URL"
3121_ACEOF
3122
cristy3ed852e2009-09-05 21:47:34 +00003123
3124# Let the site file select an alternate cache file if it wants to.
3125# Prefer an explicitly selected file to automatically selected ones.
3126ac_site_file1=NONE
3127ac_site_file2=NONE
3128if test -n "$CONFIG_SITE"; then
cristyf6fcb5d2010-09-24 01:19:13 +00003129 ac_site_file1=$CONFIG_SITE
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
cristyf6fcb5d2010-09-24 01:19:13 +00003144 . "$ac_site_file"
cristy3ed852e2009-09-05 21:47:34 +00003145 fi
3146done
3147
3148if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003149 # Some versions of bash will fail to source /dev/null (special files
3150 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3151 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003152 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003153$as_echo "$as_me: loading cache $cache_file" >&6;}
3154 case $cache_file in
3155 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3156 *) . "./$cache_file";;
3157 esac
3158 fi
3159else
cristy8b350f62009-11-15 23:12:43 +00003160 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003161$as_echo "$as_me: creating cache $cache_file" >&6;}
3162 >$cache_file
3163fi
3164
cristycd4c5312009-11-22 01:19:08 +00003165as_fn_append ac_header_list " stdlib.h"
3166as_fn_append ac_header_list " unistd.h"
3167as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003168# Check that the precious variables saved in the cache have kept the same
3169# value.
3170ac_cache_corrupted=false
3171for ac_var in $ac_precious_vars; do
3172 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3173 eval ac_new_set=\$ac_env_${ac_var}_set
3174 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3175 eval ac_new_val=\$ac_env_${ac_var}_value
3176 case $ac_old_set,$ac_new_set in
3177 set,)
cristy8b350f62009-11-15 23:12:43 +00003178 { $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 +00003179$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3180 ac_cache_corrupted=: ;;
3181 ,set)
cristy8b350f62009-11-15 23:12:43 +00003182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003183$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3184 ac_cache_corrupted=: ;;
3185 ,);;
3186 *)
3187 if test "x$ac_old_val" != "x$ac_new_val"; then
3188 # differences in whitespace do not lead to failure.
3189 ac_old_val_w=`echo x $ac_old_val`
3190 ac_new_val_w=`echo x $ac_new_val`
3191 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003193$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3194 ac_cache_corrupted=:
3195 else
cristy8b350f62009-11-15 23:12:43 +00003196 { $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 +00003197$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3198 eval $ac_var=\$ac_old_val
3199 fi
cristy8b350f62009-11-15 23:12:43 +00003200 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003201$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003202 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003203$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3204 fi;;
3205 esac
3206 # Pass precious variables to config.status.
3207 if test "$ac_new_set" = set; then
3208 case $ac_new_val in
3209 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3210 *) ac_arg=$ac_var=$ac_new_val ;;
3211 esac
3212 case " $ac_configure_args " in
3213 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003214 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003215 esac
3216 fi
3217done
3218if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003222$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00003223 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003224fi
cristy8b350f62009-11-15 23:12:43 +00003225## -------------------- ##
3226## Main body of script. ##
3227## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003228
3229ac_ext=c
3230ac_cpp='$CPP $CPPFLAGS'
3231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234
3235
3236
3237ac_aux_dir=
3238for ac_dir in config "$srcdir"/config; do
cristyf6fcb5d2010-09-24 01:19:13 +00003239 for ac_t in install-sh install.sh shtool; do
3240 if test -f "$ac_dir/$ac_t"; then
3241 ac_aux_dir=$ac_dir
3242 ac_install_sh="$ac_aux_dir/$ac_t -c"
3243 break 2
3244 fi
3245 done
cristy3ed852e2009-09-05 21:47:34 +00003246done
3247if test -z "$ac_aux_dir"; then
cristyf6fcb5d2010-09-24 01:19:13 +00003248 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003249fi
3250
3251# These three variables are undocumented and unsupported,
3252# and are intended to be withdrawn in a future Autoconf release.
3253# They can cause serious problems if a builder's source tree is in a directory
3254# whose full name contains unusual characters.
3255ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3256ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3257ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3258
3259
3260
3261
3262ac_config_headers="$ac_config_headers config/config.h"
3263
3264ac_config_commands="$ac_config_commands magick/magick-config.h"
3265
cristy430a7312010-01-21 20:44:04 +00003266ac_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 +00003267
3268
3269#
3270# Save initial user-tunable values
3271#
3272USER_LIBS=$LIBS
3273for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3274 eval isset=\${$var+set}
3275 if test "$isset" = 'set'; then
3276 eval val=$`echo $var`
3277 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3278 fi
3279done
3280
3281
3282CONFIGURE_ARGS="$0 ${ac_configure_args}"
3283
3284
3285# Source file containing package/library versioning information.
3286. ${srcdir}/version.sh
3287
cristy15a88782010-01-31 23:24:49 +00003288echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003289# Make sure we can run config.sub.
3290$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristyf6fcb5d2010-09-24 01:19:13 +00003291 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003292
cristy8b350f62009-11-15 23:12:43 +00003293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003294$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003295if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003296 $as_echo_n "(cached) " >&6
3297else
3298 ac_build_alias=$build_alias
3299test "x$ac_build_alias" = x &&
3300 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3301test "x$ac_build_alias" = x &&
cristyf6fcb5d2010-09-24 01:19:13 +00003302 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003303ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristyf6fcb5d2010-09-24 01:19:13 +00003304 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003305
3306fi
cristy8b350f62009-11-15 23:12:43 +00003307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003308$as_echo "$ac_cv_build" >&6; }
3309case $ac_cv_build in
3310*-*-*) ;;
cristyf6fcb5d2010-09-24 01:19:13 +00003311*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003312esac
3313build=$ac_cv_build
3314ac_save_IFS=$IFS; IFS='-'
3315set x $ac_cv_build
3316shift
3317build_cpu=$1
3318build_vendor=$2
3319shift; shift
3320# Remember, the first character of IFS is used to create $*,
3321# except with old shells:
3322build_os=$*
3323IFS=$ac_save_IFS
3324case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3325
3326
cristy8b350f62009-11-15 23:12:43 +00003327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003328$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003329if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003330 $as_echo_n "(cached) " >&6
3331else
3332 if test "x$host_alias" = x; then
3333 ac_cv_host=$ac_cv_build
3334else
3335 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristyf6fcb5d2010-09-24 01:19:13 +00003336 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003337fi
3338
3339fi
cristy8b350f62009-11-15 23:12:43 +00003340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003341$as_echo "$ac_cv_host" >&6; }
3342case $ac_cv_host in
3343*-*-*) ;;
cristyf6fcb5d2010-09-24 01:19:13 +00003344*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003345esac
3346host=$ac_cv_host
3347ac_save_IFS=$IFS; IFS='-'
3348set x $ac_cv_host
3349shift
3350host_cpu=$1
3351host_vendor=$2
3352shift; shift
3353# Remember, the first character of IFS is used to create $*,
3354# except with old shells:
3355host_os=$*
3356IFS=$ac_save_IFS
3357case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3358
3359
cristy8b350f62009-11-15 23:12:43 +00003360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003361$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003362if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003363 $as_echo_n "(cached) " >&6
3364else
3365 if test "x$target_alias" = x; then
3366 ac_cv_target=$ac_cv_host
3367else
3368 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristyf6fcb5d2010-09-24 01:19:13 +00003369 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003370fi
3371
3372fi
cristy8b350f62009-11-15 23:12:43 +00003373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003374$as_echo "$ac_cv_target" >&6; }
3375case $ac_cv_target in
3376*-*-*) ;;
cristyf6fcb5d2010-09-24 01:19:13 +00003377*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003378esac
3379target=$ac_cv_target
3380ac_save_IFS=$IFS; IFS='-'
3381set x $ac_cv_target
3382shift
3383target_cpu=$1
3384target_vendor=$2
3385shift; shift
3386# Remember, the first character of IFS is used to create $*,
3387# except with old shells:
3388target_os=$*
3389IFS=$ac_save_IFS
3390case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3391
3392
3393# The aliases save the names the user supplied, while $host etc.
3394# will get canonicalized.
3395test -n "$target_alias" &&
3396 test "$program_prefix$program_suffix$program_transform_name" = \
3397 NONENONEs,x,x, &&
3398 program_prefix=${target_alias}-
3399
cristy837d6dc2010-02-27 01:16:57 +00003400
3401
3402
3403
cristy3225a072010-04-17 01:47:28 +00003404MAGICK_TARGET_CPU=$target_cpu
3405
3406
3407MAGICK_TARGET_VENDOR=$target_vendor
3408
3409
3410MAGICK_TARGET_OS=$target_os
3411
3412
cristy3ed852e2009-09-05 21:47:34 +00003413# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003414MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3415
3416MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3417
cristy3ed852e2009-09-05 21:47:34 +00003418
3419
3420# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003422$as_echo_n "checking whether build environment is sane... " >&6; }
3423# Just in case
3424sleep 1
3425echo timestamp > conftest.file
3426# Reject unsafe characters in $srcdir or the absolute working directory
3427# name. Accept space and tab only in the latter.
3428am_lf='
3429'
3430case `pwd` in
3431 *[\\\"\#\$\&\'\`$am_lf]*)
cristyf6fcb5d2010-09-24 01:19:13 +00003432 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003433esac
3434case $srcdir in
3435 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyf6fcb5d2010-09-24 01:19:13 +00003436 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003437esac
3438
3439# Do `set' in a subshell so we don't clobber the current shell's
3440# arguments. Must try -L first in case configure is actually a
3441# symlink; some systems play weird games with the mod time of symlinks
3442# (eg FreeBSD returns the mod time of the symlink's containing
3443# directory).
3444if (
3445 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3446 if test "$*" = "X"; then
3447 # -L didn't work.
3448 set X `ls -t "$srcdir/configure" conftest.file`
3449 fi
3450 rm -f conftest.file
3451 if test "$*" != "X $srcdir/configure conftest.file" \
3452 && test "$*" != "X conftest.file $srcdir/configure"; then
3453
3454 # If neither matched, then we have a broken ls. This can happen
3455 # if, for instance, CONFIG_SHELL is bash and it inherits a
3456 # broken ls alias from the environment. This has actually
3457 # happened. Such a system could not be considered "sane".
cristyf6fcb5d2010-09-24 01:19:13 +00003458 as_fn_error "ls -t appears to fail. Make sure there is not a broken
cristy8b350f62009-11-15 23:12:43 +00003459alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003460 fi
3461
3462 test "$2" = conftest.file
3463 )
3464then
3465 # Ok.
3466 :
3467else
cristyf6fcb5d2010-09-24 01:19:13 +00003468 as_fn_error "newly created file is older than distributed files!
cristy8b350f62009-11-15 23:12:43 +00003469Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003470fi
cristy8b350f62009-11-15 23:12:43 +00003471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003472$as_echo "yes" >&6; }
3473
3474am__api_version='1.11'
3475
3476# Find a good install program. We prefer a C program (faster),
3477# so one script is as good as another. But avoid the broken or
3478# incompatible versions:
3479# SysV /etc/install, /usr/sbin/install
3480# SunOS /usr/etc/install
3481# IRIX /sbin/install
3482# AIX /bin/install
3483# AmigaOS /C/install, which installs bootblocks on floppy discs
3484# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3485# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3486# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3487# OS/2's system install, which has a completely different semantic
3488# ./install, which can be erroneously created by make from ./install.sh.
3489# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003491$as_echo_n "checking for a BSD-compatible install... " >&6; }
3492if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003493if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003494 $as_echo_n "(cached) " >&6
3495else
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497for as_dir in $PATH
3498do
3499 IFS=$as_save_IFS
3500 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003501 # Account for people who put trailing slashes in PATH elements.
3502case $as_dir/ in #((
3503 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003504 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003505 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003506 /usr/ucb/* ) ;;
3507 *)
3508 # OSF1 and SCO ODT 3.0 have their own names for install.
3509 # Don't use installbsd from OSF since it installs stuff as root
3510 # by default.
3511 for ac_prog in ginstall scoinst install; do
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3514 if test $ac_prog = install &&
3515 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3516 # AIX install. It has an incompatible calling convention.
3517 :
3518 elif test $ac_prog = install &&
3519 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3520 # program-specific install script used by HP pwplus--don't use.
3521 :
3522 else
3523 rm -rf conftest.one conftest.two conftest.dir
3524 echo one > conftest.one
3525 echo two > conftest.two
3526 mkdir conftest.dir
3527 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3528 test -s conftest.one && test -s conftest.two &&
3529 test -s conftest.dir/conftest.one &&
3530 test -s conftest.dir/conftest.two
3531 then
3532 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3533 break 3
3534 fi
3535 fi
3536 fi
3537 done
3538 done
3539 ;;
3540esac
3541
cristy8b350f62009-11-15 23:12:43 +00003542 done
cristy3ed852e2009-09-05 21:47:34 +00003543IFS=$as_save_IFS
3544
3545rm -rf conftest.one conftest.two conftest.dir
3546
3547fi
3548 if test "${ac_cv_path_install+set}" = set; then
3549 INSTALL=$ac_cv_path_install
3550 else
3551 # As a last resort, use the slow shell script. Don't cache a
3552 # value for INSTALL within a source directory, because that will
3553 # break other packages using the cache if that directory is
3554 # removed, or if the value is a relative name.
3555 INSTALL=$ac_install_sh
3556 fi
3557fi
cristy8b350f62009-11-15 23:12:43 +00003558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003559$as_echo "$INSTALL" >&6; }
3560
3561# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3562# It thinks the first close brace ends the variable substitution.
3563test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3564
3565test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3566
3567test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3568
3569test "$program_prefix" != NONE &&
3570 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3571# Use a double $ so make ignores it.
3572test "$program_suffix" != NONE &&
3573 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3574# Double any \ or $.
3575# By default was `s,x,x', remove it if useless.
3576ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3577program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3578
3579# expand $ac_aux_dir to an absolute path
3580am_aux_dir=`cd $ac_aux_dir && pwd`
3581
3582if test x"${MISSING+set}" != xset; then
3583 case $am_aux_dir in
3584 *\ * | *\ *)
3585 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3586 *)
3587 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3588 esac
3589fi
3590# Use eval to expand $SHELL
3591if eval "$MISSING --run true"; then
3592 am_missing_run="$MISSING --run "
3593else
3594 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003596$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3597fi
3598
3599if test x"${install_sh}" != xset; then
3600 case $am_aux_dir in
3601 *\ * | *\ *)
3602 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3603 *)
3604 install_sh="\${SHELL} $am_aux_dir/install-sh"
3605 esac
3606fi
3607
3608# Installed binaries are usually stripped using `strip' when the user
3609# run `make install-strip'. However `strip' might not be the right
3610# tool to use in cross-compilation environments, therefore Automake
3611# will honor the `STRIP' environment variable to overrule this program.
3612if test "$cross_compiling" != no; then
3613 if test -n "$ac_tool_prefix"; then
3614 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3615set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003617$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003618if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003619 $as_echo_n "(cached) " >&6
3620else
3621 if test -n "$STRIP"; then
3622 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3623else
3624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625for as_dir in $PATH
3626do
3627 IFS=$as_save_IFS
3628 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003629 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3631 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003633 break 2
3634 fi
3635done
cristy8b350f62009-11-15 23:12:43 +00003636 done
cristy3ed852e2009-09-05 21:47:34 +00003637IFS=$as_save_IFS
3638
3639fi
3640fi
3641STRIP=$ac_cv_prog_STRIP
3642if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003644$as_echo "$STRIP" >&6; }
3645else
cristy8b350f62009-11-15 23:12:43 +00003646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003647$as_echo "no" >&6; }
3648fi
3649
3650
3651fi
3652if test -z "$ac_cv_prog_STRIP"; then
3653 ac_ct_STRIP=$STRIP
3654 # Extract the first word of "strip", so it can be a program name with args.
3655set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003657$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003658if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003659 $as_echo_n "(cached) " >&6
3660else
3661 if test -n "$ac_ct_STRIP"; then
3662 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3663else
3664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665for as_dir in $PATH
3666do
3667 IFS=$as_save_IFS
3668 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003669 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3671 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003673 break 2
3674 fi
3675done
cristy8b350f62009-11-15 23:12:43 +00003676 done
cristy3ed852e2009-09-05 21:47:34 +00003677IFS=$as_save_IFS
3678
3679fi
3680fi
3681ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3682if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003684$as_echo "$ac_ct_STRIP" >&6; }
3685else
cristy8b350f62009-11-15 23:12:43 +00003686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003687$as_echo "no" >&6; }
3688fi
3689
3690 if test "x$ac_ct_STRIP" = x; then
3691 STRIP=":"
3692 else
3693 case $cross_compiling:$ac_tool_warned in
3694yes:)
cristy8b350f62009-11-15 23:12:43 +00003695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3697ac_tool_warned=yes ;;
3698esac
3699 STRIP=$ac_ct_STRIP
3700 fi
3701else
3702 STRIP="$ac_cv_prog_STRIP"
3703fi
3704
3705fi
3706INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3707
cristy8b350f62009-11-15 23:12:43 +00003708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003709$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3710if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003711 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003712 $as_echo_n "(cached) " >&6
3713else
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3716do
3717 IFS=$as_save_IFS
3718 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003719 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3722 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3723 'mkdir (GNU coreutils) '* | \
3724 'mkdir (coreutils) '* | \
3725 'mkdir (fileutils) '4.1*)
3726 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3727 break 3;;
3728 esac
3729 done
3730 done
cristy8b350f62009-11-15 23:12:43 +00003731 done
cristy3ed852e2009-09-05 21:47:34 +00003732IFS=$as_save_IFS
3733
3734fi
3735
cristycd4c5312009-11-22 01:19:08 +00003736 test -d ./--version && rmdir ./--version
cristy3ed852e2009-09-05 21:47:34 +00003737 if test "${ac_cv_path_mkdir+set}" = set; then
3738 MKDIR_P="$ac_cv_path_mkdir -p"
3739 else
3740 # As a last resort, use the slow shell script. Don't cache a
3741 # value for MKDIR_P within a source directory, because that will
3742 # break other packages using the cache if that directory is
3743 # removed, or if the value is a relative name.
cristy3ed852e2009-09-05 21:47:34 +00003744 MKDIR_P="$ac_install_sh -d"
3745 fi
3746fi
cristy8b350f62009-11-15 23:12:43 +00003747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003748$as_echo "$MKDIR_P" >&6; }
3749
3750mkdir_p="$MKDIR_P"
3751case $mkdir_p in
3752 [\\/$]* | ?:[\\/]*) ;;
3753 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3754esac
3755
3756for ac_prog in gawk mawk nawk awk
3757do
3758 # Extract the first word of "$ac_prog", so it can be a program name with args.
3759set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003761$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003762if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003763 $as_echo_n "(cached) " >&6
3764else
3765 if test -n "$AWK"; then
3766 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3767else
3768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769for as_dir in $PATH
3770do
3771 IFS=$as_save_IFS
3772 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003773 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3775 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003777 break 2
3778 fi
3779done
cristy8b350f62009-11-15 23:12:43 +00003780 done
cristy3ed852e2009-09-05 21:47:34 +00003781IFS=$as_save_IFS
3782
3783fi
3784fi
3785AWK=$ac_cv_prog_AWK
3786if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003788$as_echo "$AWK" >&6; }
3789else
cristy8b350f62009-11-15 23:12:43 +00003790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003791$as_echo "no" >&6; }
3792fi
3793
3794
3795 test -n "$AWK" && break
3796done
3797
cristy8b350f62009-11-15 23:12:43 +00003798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003799$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3800set x ${MAKE-make}
3801ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyf6fcb5d2010-09-24 01:19:13 +00003802if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00003803 $as_echo_n "(cached) " >&6
3804else
3805 cat >conftest.make <<\_ACEOF
3806SHELL = /bin/sh
3807all:
3808 @echo '@@@%%%=$(MAKE)=@@@%%%'
3809_ACEOF
cristyf6fcb5d2010-09-24 01:19:13 +00003810# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
cristy3ed852e2009-09-05 21:47:34 +00003811case `${MAKE-make} -f conftest.make 2>/dev/null` in
3812 *@@@%%%=?*=@@@%%%*)
3813 eval ac_cv_prog_make_${ac_make}_set=yes;;
3814 *)
3815 eval ac_cv_prog_make_${ac_make}_set=no;;
3816esac
3817rm -f conftest.make
3818fi
3819if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003821$as_echo "yes" >&6; }
3822 SET_MAKE=
3823else
cristy8b350f62009-11-15 23:12:43 +00003824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003825$as_echo "no" >&6; }
3826 SET_MAKE="MAKE=${MAKE-make}"
3827fi
3828
3829rm -rf .tst 2>/dev/null
3830mkdir .tst 2>/dev/null
3831if test -d .tst; then
3832 am__leading_dot=.
3833else
3834 am__leading_dot=_
3835fi
3836rmdir .tst 2>/dev/null
3837
3838if test "`cd $srcdir && pwd`" != "`pwd`"; then
3839 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3840 # is not polluted with repeated "-I."
3841 am__isrc=' -I$(srcdir)'
3842 # test to see if srcdir already configured
3843 if test -f $srcdir/config.status; then
cristyf6fcb5d2010-09-24 01:19:13 +00003844 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003845 fi
3846fi
3847
3848# test whether we have cygpath
3849if test -z "$CYGPATH_W"; then
3850 if (cygpath --version) >/dev/null 2>/dev/null; then
3851 CYGPATH_W='cygpath -w'
3852 else
3853 CYGPATH_W=echo
3854 fi
3855fi
3856
3857
3858# Define the identity of the package.
3859 PACKAGE=$PACKAGE_NAME
cristy15a88782010-01-31 23:24:49 +00003860 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003861
3862
3863# Some tools Automake needs.
3864
3865ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3866
3867
3868AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3869
3870
3871AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3872
3873
3874AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3875
3876
3877MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3878
3879# We need awk for the "check" target. The system "awk" is bad on
3880# some platforms.
3881# Always define AMTAR for backward compatibility.
3882
3883AMTAR=${AMTAR-"${am_missing_run}tar"}
3884
3885am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3886
3887
3888
3889
3890
3891
3892# Enable support for silent build rules
3893# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00003894if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003895 enableval=$enable_silent_rules;
3896fi
3897
3898case $enable_silent_rules in
3899yes) AM_DEFAULT_VERBOSITY=0;;
3900no) AM_DEFAULT_VERBOSITY=1;;
3901*) AM_DEFAULT_VERBOSITY=0;;
3902esac
3903AM_BACKSLASH='\'
3904
3905
3906MAGICK_LIB_VERSION="0x"
3907if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3908 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3909fi
3910MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3911if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3912 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3913fi
3914MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3915if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3916 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3917fi
3918MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3919
3920
3921# Definition used to define MagickLibVersionText in version.h
3922MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3923
3924
3925# Definition used to define MagickLibVersionNumber in version.h
3926MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3927
3928
3929# Regenerate config.status if ChangeLog or version.sh is updated.
3930CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3931
3932
3933PERLMAINCC=$CC
3934
3935MAGICK_CFLAGS=''
3936MAGICK_CPPFLAGS=$CPPFLAGS_USER
3937MAGICK_PCFLAGS=$CPPFLAGS_USER
3938MAGICK_LDFLAGS=''
3939MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00003940MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00003941
3942#
3943# Evaluate shell variable equivalents to Makefile directory variables
3944#
3945if test "x$prefix" = xNONE; then
3946 prefix=$ac_default_prefix
3947fi
3948# Let make expand exec_prefix.
3949if test "x$exec_prefix" = xNONE; then
3950 exec_prefix='${prefix}'
3951fi
3952
3953#
3954eval "eval PREFIX_DIR=${prefix}"
3955
3956eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3957
3958eval "eval BIN_DIR=$bindir"
3959
3960eval "eval SBIN_DIR=$sbindir"
3961
3962eval "eval LIBEXEC_DIR=$libexecdir"
3963
3964eval "eval DATA_DIR=$datadir"
3965
3966eval "eval SYSCONF_DIR=$sysconfdir"
3967
3968eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3969
3970eval "eval LOCALSTATE_DIR=$localstatedir"
3971
3972eval "eval LIB_DIR=$libdir"
3973
3974eval "eval INCLUDE_DIR=$includedir"
3975
3976eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
3977
3978eval "eval INFO_DIR=$infodir"
3979
3980eval "eval MAN_DIR=$mandir"
3981
3982
3983# Get full paths to source and build directories
3984srcdirfull="`cd $srcdir && pwd`"
3985builddir="`pwd`"
3986
3987#
3988# Compute variables useful for running uninstalled software.
3989#
3990MAGICK_CODER_MODULE_PATH="${builddir}/coders"
3991MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
3992MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
3993MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
3994DIRSEP=':'
3995case "${build_os}" in
3996 mingw* )
3997 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
3998 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
3999 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4000 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4001 DIRSEP=';'
4002 ;;
4003esac
4004case "${host_os}" in
4005 mingw* )
4006 DIRSEP=';'
4007 ;;
4008esac
4009
4010
4011
4012
4013
4014
cristya0b81c32010-01-22 02:54:33 +00004015
4016#
4017# Enable OS features.
4018#
4019DEPDIR="${am__leading_dot}deps"
4020
4021ac_config_commands="$ac_config_commands depfiles"
4022
4023
4024am_make=${MAKE-make}
4025cat > confinc << 'END'
4026am__doit:
4027 @echo this is the am__doit target
4028.PHONY: am__doit
4029END
4030# If we don't find an include directive, just comment out the code.
4031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4032$as_echo_n "checking for style of include used by $am_make... " >&6; }
4033am__include="#"
4034am__quote=
4035_am_result=none
4036# First try GNU make style include.
4037echo "include confinc" > confmf
4038# Ignore all kinds of additional output from `make'.
4039case `$am_make -s -f confmf 2> /dev/null` in #(
4040*the\ am__doit\ target*)
4041 am__include=include
4042 am__quote=
4043 _am_result=GNU
4044 ;;
4045esac
4046# Now try BSD make style include.
4047if test "$am__include" = "#"; then
4048 echo '.include "confinc"' > confmf
4049 case `$am_make -s -f confmf 2> /dev/null` in #(
4050 *the\ am__doit\ target*)
4051 am__include=.include
4052 am__quote="\""
4053 _am_result=BSD
4054 ;;
4055 esac
4056fi
4057
4058
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4060$as_echo "$_am_result" >&6; }
4061rm -f confinc confmf
4062
4063# Check whether --enable-dependency-tracking was given.
4064if test "${enable_dependency_tracking+set}" = set; then :
4065 enableval=$enable_dependency_tracking;
4066fi
4067
4068if test "x$enable_dependency_tracking" != xno; then
4069 am_depcomp="$ac_aux_dir/depcomp"
4070 AMDEPBACKSLASH='\'
4071fi
4072 if test "x$enable_dependency_tracking" != xno; then
4073 AMDEP_TRUE=
4074 AMDEP_FALSE='#'
4075else
4076 AMDEP_TRUE='#'
4077 AMDEP_FALSE=
4078fi
4079
4080
cristy3ed852e2009-09-05 21:47:34 +00004081ac_ext=c
4082ac_cpp='$CPP $CPPFLAGS'
4083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086if test -n "$ac_tool_prefix"; then
4087 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4088set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004090$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004091if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004092 $as_echo_n "(cached) " >&6
4093else
4094 if test -n "$CC"; then
4095 ac_cv_prog_CC="$CC" # Let the user override the test.
4096else
4097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098for as_dir in $PATH
4099do
4100 IFS=$as_save_IFS
4101 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004102 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4104 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004106 break 2
4107 fi
4108done
cristy8b350f62009-11-15 23:12:43 +00004109 done
cristy3ed852e2009-09-05 21:47:34 +00004110IFS=$as_save_IFS
4111
4112fi
4113fi
4114CC=$ac_cv_prog_CC
4115if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004117$as_echo "$CC" >&6; }
4118else
cristy8b350f62009-11-15 23:12:43 +00004119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004120$as_echo "no" >&6; }
4121fi
4122
4123
4124fi
4125if test -z "$ac_cv_prog_CC"; then
4126 ac_ct_CC=$CC
4127 # Extract the first word of "gcc", so it can be a program name with args.
4128set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004130$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004131if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004132 $as_echo_n "(cached) " >&6
4133else
4134 if test -n "$ac_ct_CC"; then
4135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4136else
4137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138for as_dir in $PATH
4139do
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004142 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4144 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004146 break 2
4147 fi
4148done
cristy8b350f62009-11-15 23:12:43 +00004149 done
cristy3ed852e2009-09-05 21:47:34 +00004150IFS=$as_save_IFS
4151
4152fi
4153fi
4154ac_ct_CC=$ac_cv_prog_ac_ct_CC
4155if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004157$as_echo "$ac_ct_CC" >&6; }
4158else
cristy8b350f62009-11-15 23:12:43 +00004159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004160$as_echo "no" >&6; }
4161fi
4162
4163 if test "x$ac_ct_CC" = x; then
4164 CC=""
4165 else
4166 case $cross_compiling:$ac_tool_warned in
4167yes:)
cristy8b350f62009-11-15 23:12:43 +00004168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4170ac_tool_warned=yes ;;
4171esac
4172 CC=$ac_ct_CC
4173 fi
4174else
4175 CC="$ac_cv_prog_CC"
4176fi
4177
4178if test -z "$CC"; then
4179 if test -n "$ac_tool_prefix"; then
4180 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4181set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004183$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004184if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004185 $as_echo_n "(cached) " >&6
4186else
4187 if test -n "$CC"; then
4188 ac_cv_prog_CC="$CC" # Let the user override the test.
4189else
4190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191for as_dir in $PATH
4192do
4193 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004195 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4197 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004199 break 2
4200 fi
4201done
cristy8b350f62009-11-15 23:12:43 +00004202 done
cristy3ed852e2009-09-05 21:47:34 +00004203IFS=$as_save_IFS
4204
4205fi
4206fi
4207CC=$ac_cv_prog_CC
4208if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004210$as_echo "$CC" >&6; }
4211else
cristy8b350f62009-11-15 23:12:43 +00004212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004213$as_echo "no" >&6; }
4214fi
4215
4216
4217 fi
4218fi
4219if test -z "$CC"; then
4220 # Extract the first word of "cc", so it can be a program name with args.
4221set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004223$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004224if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004225 $as_echo_n "(cached) " >&6
4226else
4227 if test -n "$CC"; then
4228 ac_cv_prog_CC="$CC" # Let the user override the test.
4229else
4230 ac_prog_rejected=no
4231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232for as_dir in $PATH
4233do
4234 IFS=$as_save_IFS
4235 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004236 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4239 ac_prog_rejected=yes
4240 continue
4241 fi
4242 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004244 break 2
4245 fi
4246done
cristy8b350f62009-11-15 23:12:43 +00004247 done
cristy3ed852e2009-09-05 21:47:34 +00004248IFS=$as_save_IFS
4249
4250if test $ac_prog_rejected = yes; then
4251 # We found a bogon in the path, so make sure we never use it.
4252 set dummy $ac_cv_prog_CC
4253 shift
4254 if test $# != 0; then
4255 # We chose a different compiler from the bogus one.
4256 # However, it has the same basename, so the bogon will be chosen
4257 # first if we set CC to just the basename; use the full file name.
4258 shift
4259 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4260 fi
4261fi
4262fi
4263fi
4264CC=$ac_cv_prog_CC
4265if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004267$as_echo "$CC" >&6; }
4268else
cristy8b350f62009-11-15 23:12:43 +00004269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004270$as_echo "no" >&6; }
4271fi
4272
4273
4274fi
4275if test -z "$CC"; then
4276 if test -n "$ac_tool_prefix"; then
4277 for ac_prog in cl.exe
4278 do
4279 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4280set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004282$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004283if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004284 $as_echo_n "(cached) " >&6
4285else
4286 if test -n "$CC"; then
4287 ac_cv_prog_CC="$CC" # Let the user override the test.
4288else
4289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290for as_dir in $PATH
4291do
4292 IFS=$as_save_IFS
4293 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004294 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4296 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004298 break 2
4299 fi
4300done
cristy8b350f62009-11-15 23:12:43 +00004301 done
cristy3ed852e2009-09-05 21:47:34 +00004302IFS=$as_save_IFS
4303
4304fi
4305fi
4306CC=$ac_cv_prog_CC
4307if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004309$as_echo "$CC" >&6; }
4310else
cristy8b350f62009-11-15 23:12:43 +00004311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004312$as_echo "no" >&6; }
4313fi
4314
4315
4316 test -n "$CC" && break
4317 done
4318fi
4319if test -z "$CC"; then
4320 ac_ct_CC=$CC
4321 for ac_prog in cl.exe
4322do
4323 # Extract the first word of "$ac_prog", so it can be a program name with args.
4324set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004326$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004327if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004328 $as_echo_n "(cached) " >&6
4329else
4330 if test -n "$ac_ct_CC"; then
4331 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4332else
4333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334for as_dir in $PATH
4335do
4336 IFS=$as_save_IFS
4337 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004338 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4340 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004342 break 2
4343 fi
4344done
cristy8b350f62009-11-15 23:12:43 +00004345 done
cristy3ed852e2009-09-05 21:47:34 +00004346IFS=$as_save_IFS
4347
4348fi
4349fi
4350ac_ct_CC=$ac_cv_prog_ac_ct_CC
4351if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004353$as_echo "$ac_ct_CC" >&6; }
4354else
cristy8b350f62009-11-15 23:12:43 +00004355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004356$as_echo "no" >&6; }
4357fi
4358
4359
4360 test -n "$ac_ct_CC" && break
4361done
4362
4363 if test "x$ac_ct_CC" = x; then
4364 CC=""
4365 else
4366 case $cross_compiling:$ac_tool_warned in
4367yes:)
cristy8b350f62009-11-15 23:12:43 +00004368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4370ac_tool_warned=yes ;;
4371esac
4372 CC=$ac_ct_CC
4373 fi
4374fi
4375
4376fi
4377
4378
cristy8b350f62009-11-15 23:12:43 +00004379test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00004381as_fn_error "no acceptable C compiler found in \$PATH
4382See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004383
4384# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004385$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004386set X $ac_compile
4387ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004388for ac_option in --version -v -V -qversion; do
4389 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004390case "(($ac_try" in
4391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392 *) ac_try_echo=$ac_try;;
4393esac
cristy8b350f62009-11-15 23:12:43 +00004394eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4395$as_echo "$ac_try_echo"; } >&5
4396 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004397 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004398 if test -s conftest.err; then
4399 sed '10a\
4400... rest of stderr output deleted ...
4401 10q' conftest.err >conftest.er1
4402 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004403 fi
cristycd4c5312009-11-22 01:19:08 +00004404 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4406 test $ac_status = 0; }
4407done
cristy3ed852e2009-09-05 21:47:34 +00004408
cristy8b350f62009-11-15 23:12:43 +00004409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004410/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004411
cristy3ed852e2009-09-05 21:47:34 +00004412int
4413main ()
4414{
4415
4416 ;
4417 return 0;
4418}
4419_ACEOF
4420ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004421ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004422# Try to create an executable without -o first, disregard a.out.
4423# It will help us diagnose broken compilers, and finding out an intuition
4424# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4426$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004427ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4428
4429# The possible output files:
4430ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4431
4432ac_rmfiles=
4433for ac_file in $ac_files
4434do
4435 case $ac_file in
4436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4437 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4438 esac
4439done
4440rm -f $ac_rmfiles
4441
cristy8b350f62009-11-15 23:12:43 +00004442if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004443case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4446esac
cristy8b350f62009-11-15 23:12:43 +00004447eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4448$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004449 (eval "$ac_link_default") 2>&5
4450 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4452 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004453 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4454# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4455# in a Makefile. We should not override ac_cv_exeext if it was cached,
4456# so that the user can short-circuit this test for compilers unknown to
4457# Autoconf.
4458for ac_file in $ac_files ''
4459do
4460 test -f "$ac_file" || continue
4461 case $ac_file in
4462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4463 ;;
4464 [ab].out )
4465 # We found the default executable, but exeext='' is most
4466 # certainly right.
4467 break;;
4468 *.* )
cristy8b350f62009-11-15 23:12:43 +00004469 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004470 then :; else
4471 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4472 fi
4473 # We set ac_cv_exeext here because the later test for it is not
4474 # safe: cross compilers may not add the suffix if given an `-o'
4475 # argument, so we may need to know it at that point already.
4476 # Even if this section looks crufty: it has the advantage of
4477 # actually working.
4478 break;;
4479 * )
4480 break;;
4481 esac
4482done
4483test "$ac_cv_exeext" = no && ac_cv_exeext=
4484
4485else
4486 ac_file=''
4487fi
cristy8b350f62009-11-15 23:12:43 +00004488if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4490$as_echo "no" >&6; }
4491$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004492sed 's/^/| /' conftest.$ac_ext >&5
4493
cristy8b350f62009-11-15 23:12:43 +00004494{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004495$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00004496{ as_fn_set_status 77
4497as_fn_error "C compiler cannot create executables
4498See \`config.log' for more details." "$LINENO" 5; }; }
cristycd4c5312009-11-22 01:19:08 +00004499else
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4501$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004502fi
cristycd4c5312009-11-22 01:19:08 +00004503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4504$as_echo_n "checking for C compiler default output file name... " >&6; }
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4506$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004507ac_exeext=$ac_cv_exeext
4508
cristycd4c5312009-11-22 01:19:08 +00004509rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004510ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004512$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004513if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004514case "(($ac_try" in
4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4517esac
cristy8b350f62009-11-15 23:12:43 +00004518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4519$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004520 (eval "$ac_link") 2>&5
4521 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4523 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004524 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4525# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4526# work properly (i.e., refer to `conftest.exe'), while it won't with
4527# `rm'.
4528for ac_file in conftest.exe conftest conftest.*; do
4529 test -f "$ac_file" || continue
4530 case $ac_file in
4531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4532 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4533 break;;
4534 * ) break;;
4535 esac
4536done
4537else
cristy8b350f62009-11-15 23:12:43 +00004538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00004540as_fn_error "cannot compute suffix of executables: cannot compile and link
4541See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004542fi
cristycd4c5312009-11-22 01:19:08 +00004543rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004545$as_echo "$ac_cv_exeext" >&6; }
4546
4547rm -f conftest.$ac_ext
4548EXEEXT=$ac_cv_exeext
4549ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551/* end confdefs.h. */
4552#include <stdio.h>
4553int
4554main ()
4555{
4556FILE *f = fopen ("conftest.out", "w");
4557 return ferror (f) || fclose (f) != 0;
4558
4559 ;
4560 return 0;
4561}
4562_ACEOF
4563ac_clean_files="$ac_clean_files conftest.out"
4564# Check that the compiler produces executables we can run. If not, either
4565# the compiler is broken, or we cross compile.
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4567$as_echo_n "checking whether we are cross compiling... " >&6; }
4568if test "$cross_compiling" != yes; then
4569 { { ac_try="$ac_link"
4570case "(($ac_try" in
4571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4572 *) ac_try_echo=$ac_try;;
4573esac
4574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4575$as_echo "$ac_try_echo"; } >&5
4576 (eval "$ac_link") 2>&5
4577 ac_status=$?
4578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4579 test $ac_status = 0; }
4580 if { ac_try='./conftest$ac_cv_exeext'
4581 { { case "(($ac_try" in
4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4584esac
4585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4586$as_echo "$ac_try_echo"; } >&5
4587 (eval "$ac_try") 2>&5
4588 ac_status=$?
4589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4590 test $ac_status = 0; }; }; then
4591 cross_compiling=no
4592 else
4593 if test "$cross_compiling" = maybe; then
4594 cross_compiling=yes
4595 else
4596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4597$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00004598as_fn_error "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004599If you meant to cross compile, use \`--host'.
cristyf6fcb5d2010-09-24 01:19:13 +00004600See \`config.log' for more details." "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004601 fi
4602 fi
4603fi
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4605$as_echo "$cross_compiling" >&6; }
4606
4607rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4608ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004610$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004611if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004612 $as_echo_n "(cached) " >&6
4613else
cristy8b350f62009-11-15 23:12:43 +00004614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004615/* end confdefs.h. */
4616
4617int
4618main ()
4619{
4620
4621 ;
4622 return 0;
4623}
4624_ACEOF
4625rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004626if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004627case "(($ac_try" in
4628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629 *) ac_try_echo=$ac_try;;
4630esac
cristy8b350f62009-11-15 23:12:43 +00004631eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4632$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004633 (eval "$ac_compile") 2>&5
4634 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4636 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004637 for ac_file in conftest.o conftest.obj conftest.*; do
4638 test -f "$ac_file" || continue;
4639 case $ac_file in
4640 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4641 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4642 break;;
4643 esac
4644done
4645else
4646 $as_echo "$as_me: failed program was:" >&5
4647sed 's/^/| /' conftest.$ac_ext >&5
4648
cristy8b350f62009-11-15 23:12:43 +00004649{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004650$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00004651as_fn_error "cannot compute suffix of object files: cannot compile
4652See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004653fi
cristy3ed852e2009-09-05 21:47:34 +00004654rm -f conftest.$ac_cv_objext conftest.$ac_ext
4655fi
cristy8b350f62009-11-15 23:12:43 +00004656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004657$as_echo "$ac_cv_objext" >&6; }
4658OBJEXT=$ac_cv_objext
4659ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004661$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004662if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004663 $as_echo_n "(cached) " >&6
4664else
cristy8b350f62009-11-15 23:12:43 +00004665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004666/* end confdefs.h. */
4667
4668int
4669main ()
4670{
4671#ifndef __GNUC__
4672 choke me
4673#endif
4674
4675 ;
4676 return 0;
4677}
4678_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004679if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004680 ac_compiler_gnu=yes
4681else
cristy8b350f62009-11-15 23:12:43 +00004682 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004683fi
cristy3ed852e2009-09-05 21:47:34 +00004684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4685ac_cv_c_compiler_gnu=$ac_compiler_gnu
4686
4687fi
cristy8b350f62009-11-15 23:12:43 +00004688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004689$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4690if test $ac_compiler_gnu = yes; then
4691 GCC=yes
4692else
4693 GCC=
4694fi
4695ac_test_CFLAGS=${CFLAGS+set}
4696ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004698$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004699if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004700 $as_echo_n "(cached) " >&6
4701else
4702 ac_save_c_werror_flag=$ac_c_werror_flag
4703 ac_c_werror_flag=yes
4704 ac_cv_prog_cc_g=no
4705 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004707/* end confdefs.h. */
4708
4709int
4710main ()
4711{
4712
4713 ;
4714 return 0;
4715}
4716_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004717if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004718 ac_cv_prog_cc_g=yes
4719else
cristy8b350f62009-11-15 23:12:43 +00004720 CFLAGS=""
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004722/* end confdefs.h. */
4723
4724int
4725main ()
4726{
4727
4728 ;
4729 return 0;
4730}
4731_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004732if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004733
cristy8b350f62009-11-15 23:12:43 +00004734else
4735 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004736 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004738/* end confdefs.h. */
4739
4740int
4741main ()
4742{
4743
4744 ;
4745 return 0;
4746}
4747_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004748if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004749 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004750fi
cristy3ed852e2009-09-05 21:47:34 +00004751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4752fi
cristy3ed852e2009-09-05 21:47:34 +00004753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754fi
cristy3ed852e2009-09-05 21:47:34 +00004755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756 ac_c_werror_flag=$ac_save_c_werror_flag
4757fi
cristy8b350f62009-11-15 23:12:43 +00004758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004759$as_echo "$ac_cv_prog_cc_g" >&6; }
4760if test "$ac_test_CFLAGS" = set; then
4761 CFLAGS=$ac_save_CFLAGS
4762elif test $ac_cv_prog_cc_g = yes; then
4763 if test "$GCC" = yes; then
4764 CFLAGS="-g -O2"
4765 else
4766 CFLAGS="-g"
4767 fi
4768else
4769 if test "$GCC" = yes; then
4770 CFLAGS="-O2"
4771 else
4772 CFLAGS=
4773 fi
4774fi
cristy8b350f62009-11-15 23:12:43 +00004775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004776$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004777if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004778 $as_echo_n "(cached) " >&6
4779else
4780 ac_cv_prog_cc_c89=no
4781ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004783/* end confdefs.h. */
4784#include <stdarg.h>
4785#include <stdio.h>
4786#include <sys/types.h>
4787#include <sys/stat.h>
4788/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4789struct buf { int x; };
4790FILE * (*rcsopen) (struct buf *, struct stat *, int);
4791static char *e (p, i)
4792 char **p;
4793 int i;
4794{
4795 return p[i];
4796}
4797static char *f (char * (*g) (char **, int), char **p, ...)
4798{
4799 char *s;
4800 va_list v;
4801 va_start (v,p);
4802 s = g (p, va_arg (v,int));
4803 va_end (v);
4804 return s;
4805}
4806
4807/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4808 function prototypes and stuff, but not '\xHH' hex character constants.
4809 These don't provoke an error unfortunately, instead are silently treated
4810 as 'x'. The following induces an error, until -std is added to get
4811 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4812 array size at least. It's necessary to write '\x00'==0 to get something
4813 that's true only with -std. */
4814int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4815
4816/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4817 inside strings and character constants. */
4818#define FOO(x) 'x'
4819int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4820
4821int test (int i, double x);
4822struct s1 {int (*f) (int a);};
4823struct s2 {int (*f) (double a);};
4824int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4825int argc;
4826char **argv;
4827int
4828main ()
4829{
4830return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4831 ;
4832 return 0;
4833}
4834_ACEOF
4835for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4836 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4837do
4838 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004839 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004840 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004841fi
cristy3ed852e2009-09-05 21:47:34 +00004842rm -f core conftest.err conftest.$ac_objext
4843 test "x$ac_cv_prog_cc_c89" != "xno" && break
4844done
4845rm -f conftest.$ac_ext
4846CC=$ac_save_CC
4847
4848fi
4849# AC_CACHE_VAL
4850case "x$ac_cv_prog_cc_c89" in
4851 x)
cristy8b350f62009-11-15 23:12:43 +00004852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004853$as_echo "none needed" >&6; } ;;
4854 xno)
cristy8b350f62009-11-15 23:12:43 +00004855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004856$as_echo "unsupported" >&6; } ;;
4857 *)
4858 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004860$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4861esac
cristy8b350f62009-11-15 23:12:43 +00004862if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004863
cristy8b350f62009-11-15 23:12:43 +00004864fi
cristy3ed852e2009-09-05 21:47:34 +00004865
4866ac_ext=c
4867ac_cpp='$CPP $CPPFLAGS'
4868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4870ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00004871
cristya0b81c32010-01-22 02:54:33 +00004872depcc="$CC" am_compiler_list=
cristy3ed852e2009-09-05 21:47:34 +00004873
cristya0b81c32010-01-22 02:54:33 +00004874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4875$as_echo_n "checking dependency style of $depcc... " >&6; }
4876if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00004878else
cristya0b81c32010-01-22 02:54:33 +00004879 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4880 # We make a subdir and do the tests there. Otherwise we can end up
4881 # making bogus files that we don't know about and never remove. For
4882 # instance it was reported that on HP-UX the gcc test will end up
4883 # making a dummy file named `D' -- because `-MD' means `put the output
4884 # in D'.
4885 mkdir conftest.dir
4886 # Copy depcomp to subdir because otherwise we won't find it if we're
4887 # using a relative directory.
4888 cp "$am_depcomp" conftest.dir
4889 cd conftest.dir
4890 # We will build objects and dependencies in a subdirectory because
4891 # it helps to detect inapplicable dependency modes. For instance
4892 # both Tru64's cc and ICC support -MD to output dependencies as a
4893 # side effect of compilation, but ICC will put the dependencies in
4894 # the current directory while Tru64 will put them in the object
4895 # directory.
4896 mkdir sub
4897
4898 am_cv_CC_dependencies_compiler_type=none
4899 if test "$am_compiler_list" = ""; then
4900 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4901 fi
4902 am__universal=false
4903 case " $depcc " in #(
4904 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4905 esac
4906
4907 for depmode in $am_compiler_list; do
4908 # Setup a source with many dependencies, because some compilers
4909 # like to wrap large dependency lists on column 80 (with \), and
4910 # we should not choose a depcomp mode which is confused by this.
4911 #
4912 # We need to recreate these files for each test, as the compiler may
4913 # overwrite some of them when testing with obscure command lines.
4914 # This happens at least with the AIX C compiler.
4915 : > sub/conftest.c
4916 for i in 1 2 3 4 5 6; do
4917 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4918 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4919 # Solaris 8's {/usr,}/bin/sh.
4920 touch sub/conftst$i.h
4921 done
4922 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4923
4924 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4925 # mode. It turns out that the SunPro C++ compiler does not properly
4926 # handle `-M -o', and we need to detect this. Also, some Intel
4927 # versions had trouble with output in subdirs
4928 am__obj=sub/conftest.${OBJEXT-o}
4929 am__minus_obj="-o $am__obj"
4930 case $depmode in
4931 gcc)
4932 # This depmode causes a compiler race in universal mode.
4933 test "$am__universal" = false || continue
4934 ;;
4935 nosideeffect)
4936 # after this tag, mechanisms are not by side-effect, so they'll
4937 # only be used when explicitly requested
4938 if test "x$enable_dependency_tracking" = xyes; then
4939 continue
4940 else
4941 break
4942 fi
4943 ;;
4944 msvisualcpp | msvcmsys)
4945 # This compiler won't grok `-c -o', but also, the minuso test has
4946 # not run yet. These depmodes are late enough in the game, and
4947 # so weak that their functioning should not be impacted.
4948 am__obj=conftest.${OBJEXT-o}
4949 am__minus_obj=
4950 ;;
4951 none) break ;;
4952 esac
4953 if depmode=$depmode \
4954 source=sub/conftest.c object=$am__obj \
4955 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4956 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4957 >/dev/null 2>conftest.err &&
4958 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4959 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4960 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4961 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4962 # icc doesn't choke on unknown options, it will just issue warnings
4963 # or remarks (even with -Werror). So we grep stderr for any message
4964 # that says an option was ignored or not supported.
4965 # When given -MP, icc 7.0 and 7.1 complain thusly:
4966 # icc: Command line warning: ignoring option '-M'; no argument required
4967 # The diagnosis changed in icc 8.0:
4968 # icc: Command line remark: option '-MP' not supported
4969 if (grep 'ignoring option' conftest.err ||
4970 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4971 am_cv_CC_dependencies_compiler_type=$depmode
4972 break
4973 fi
4974 fi
4975 done
4976
4977 cd ..
4978 rm -rf conftest.dir
4979else
4980 am_cv_CC_dependencies_compiler_type=none
4981fi
4982
4983fi
4984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4985$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4986CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4987
4988 if
4989 test "x$enable_dependency_tracking" != xno \
4990 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4991 am__fastdepCC_TRUE=
4992 am__fastdepCC_FALSE='#'
4993else
4994 am__fastdepCC_TRUE='#'
4995 am__fastdepCC_FALSE=
cristy3ed852e2009-09-05 21:47:34 +00004996fi
4997
4998
4999
cristya0b81c32010-01-22 02:54:33 +00005000ac_ext=c
5001ac_cpp='$CPP $CPPFLAGS'
5002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004ac_compiler_gnu=$ac_cv_c_compiler_gnu
5005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5006$as_echo_n "checking how to run the C preprocessor... " >&6; }
5007# On Suns, sometimes $CPP names a directory.
5008if test -n "$CPP" && test -d "$CPP"; then
5009 CPP=
5010fi
5011if test -z "$CPP"; then
5012 if test "${ac_cv_prog_CPP+set}" = set; then :
5013 $as_echo_n "(cached) " >&6
5014else
5015 # Double quotes because CPP needs to be expanded
5016 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5017 do
5018 ac_preproc_ok=false
5019for ac_c_preproc_warn_flag in '' yes
5020do
5021 # Use a header file that comes with gcc, so configuring glibc
5022 # with a fresh cross-compiler works.
5023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5024 # <limits.h> exists even on freestanding compilers.
5025 # On the NeXT, cc -E runs the code through the compiler's parser,
5026 # not just through cpp. "Syntax error" is here to catch this case.
5027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028/* end confdefs.h. */
5029#ifdef __STDC__
5030# include <limits.h>
5031#else
5032# include <assert.h>
5033#endif
5034 Syntax error
5035_ACEOF
5036if ac_fn_c_try_cpp "$LINENO"; then :
5037
5038else
5039 # Broken: fails on valid input.
5040continue
5041fi
5042rm -f conftest.err conftest.$ac_ext
5043
5044 # OK, works on sane cases. Now check whether nonexistent headers
5045 # can be detected and how.
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047/* end confdefs.h. */
5048#include <ac_nonexistent.h>
5049_ACEOF
5050if ac_fn_c_try_cpp "$LINENO"; then :
5051 # Broken: success on invalid input.
5052continue
5053else
5054 # Passes both tests.
5055ac_preproc_ok=:
5056break
5057fi
5058rm -f conftest.err conftest.$ac_ext
5059
5060done
5061# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5062rm -f conftest.err conftest.$ac_ext
5063if $ac_preproc_ok; then :
5064 break
5065fi
5066
5067 done
5068 ac_cv_prog_CPP=$CPP
5069
5070fi
5071 CPP=$ac_cv_prog_CPP
5072else
5073 ac_cv_prog_CPP=$CPP
5074fi
5075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5076$as_echo "$CPP" >&6; }
5077ac_preproc_ok=false
5078for ac_c_preproc_warn_flag in '' yes
5079do
5080 # Use a header file that comes with gcc, so configuring glibc
5081 # with a fresh cross-compiler works.
5082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5083 # <limits.h> exists even on freestanding compilers.
5084 # On the NeXT, cc -E runs the code through the compiler's parser,
5085 # not just through cpp. "Syntax error" is here to catch this case.
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087/* end confdefs.h. */
5088#ifdef __STDC__
5089# include <limits.h>
5090#else
5091# include <assert.h>
5092#endif
5093 Syntax error
5094_ACEOF
5095if ac_fn_c_try_cpp "$LINENO"; then :
5096
5097else
5098 # Broken: fails on valid input.
5099continue
5100fi
5101rm -f conftest.err conftest.$ac_ext
5102
5103 # OK, works on sane cases. Now check whether nonexistent headers
5104 # can be detected and how.
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106/* end confdefs.h. */
5107#include <ac_nonexistent.h>
5108_ACEOF
5109if ac_fn_c_try_cpp "$LINENO"; then :
5110 # Broken: success on invalid input.
5111continue
5112else
5113 # Passes both tests.
5114ac_preproc_ok=:
5115break
5116fi
5117rm -f conftest.err conftest.$ac_ext
5118
5119done
5120# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5121rm -f conftest.err conftest.$ac_ext
5122if $ac_preproc_ok; then :
5123
5124else
5125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00005127as_fn_error "C preprocessor \"$CPP\" fails sanity check
5128See \`config.log' for more details." "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005129fi
5130
5131ac_ext=c
5132ac_cpp='$CPP $CPPFLAGS'
5133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5135ac_compiler_gnu=$ac_cv_c_compiler_gnu
5136
5137
5138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5139$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5140if test "${ac_cv_path_GREP+set}" = set; then :
5141 $as_echo_n "(cached) " >&6
5142else
5143 if test -z "$GREP"; then
5144 ac_path_GREP_found=false
5145 # Loop through the user's path and test for each of PROGNAME-LIST
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5148do
5149 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=.
5151 for ac_prog in grep ggrep; do
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5154 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5155# Check for GNU ac_path_GREP and select it if it is found.
5156 # Check for GNU $ac_path_GREP
5157case `"$ac_path_GREP" --version 2>&1` in
5158*GNU*)
5159 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5160*)
5161 ac_count=0
5162 $as_echo_n 0123456789 >"conftest.in"
5163 while :
5164 do
5165 cat "conftest.in" "conftest.in" >"conftest.tmp"
5166 mv "conftest.tmp" "conftest.in"
5167 cp "conftest.in" "conftest.nl"
5168 $as_echo 'GREP' >> "conftest.nl"
5169 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5170 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5171 as_fn_arith $ac_count + 1 && ac_count=$as_val
5172 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5173 # Best one so far, save it but keep looking for a better one
5174 ac_cv_path_GREP="$ac_path_GREP"
5175 ac_path_GREP_max=$ac_count
5176 fi
5177 # 10*(2^10) chars as input seems more than enough
5178 test $ac_count -gt 10 && break
5179 done
5180 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5181esac
5182
5183 $ac_path_GREP_found && break 3
5184 done
5185 done
5186 done
5187IFS=$as_save_IFS
5188 if test -z "$ac_cv_path_GREP"; then
cristyf6fcb5d2010-09-24 01:19:13 +00005189 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005190 fi
5191else
5192 ac_cv_path_GREP=$GREP
5193fi
5194
5195fi
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5197$as_echo "$ac_cv_path_GREP" >&6; }
5198 GREP="$ac_cv_path_GREP"
5199
5200
5201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5202$as_echo_n "checking for egrep... " >&6; }
5203if test "${ac_cv_path_EGREP+set}" = set; then :
5204 $as_echo_n "(cached) " >&6
5205else
5206 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5207 then ac_cv_path_EGREP="$GREP -E"
5208 else
5209 if test -z "$EGREP"; then
5210 ac_path_EGREP_found=false
5211 # Loop through the user's path and test for each of PROGNAME-LIST
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5214do
5215 IFS=$as_save_IFS
5216 test -z "$as_dir" && as_dir=.
5217 for ac_prog in egrep; do
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5220 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5221# Check for GNU ac_path_EGREP and select it if it is found.
5222 # Check for GNU $ac_path_EGREP
5223case `"$ac_path_EGREP" --version 2>&1` in
5224*GNU*)
5225 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5226*)
5227 ac_count=0
5228 $as_echo_n 0123456789 >"conftest.in"
5229 while :
5230 do
5231 cat "conftest.in" "conftest.in" >"conftest.tmp"
5232 mv "conftest.tmp" "conftest.in"
5233 cp "conftest.in" "conftest.nl"
5234 $as_echo 'EGREP' >> "conftest.nl"
5235 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5237 as_fn_arith $ac_count + 1 && ac_count=$as_val
5238 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5239 # Best one so far, save it but keep looking for a better one
5240 ac_cv_path_EGREP="$ac_path_EGREP"
5241 ac_path_EGREP_max=$ac_count
5242 fi
5243 # 10*(2^10) chars as input seems more than enough
5244 test $ac_count -gt 10 && break
5245 done
5246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5247esac
5248
5249 $ac_path_EGREP_found && break 3
5250 done
5251 done
5252 done
5253IFS=$as_save_IFS
5254 if test -z "$ac_cv_path_EGREP"; then
cristyf6fcb5d2010-09-24 01:19:13 +00005255 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005256 fi
5257else
5258 ac_cv_path_EGREP=$EGREP
5259fi
5260
5261 fi
5262fi
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5264$as_echo "$ac_cv_path_EGREP" >&6; }
5265 EGREP="$ac_cv_path_EGREP"
5266
5267
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5269$as_echo_n "checking for ANSI C header files... " >&6; }
5270if test "${ac_cv_header_stdc+set}" = set; then :
5271 $as_echo_n "(cached) " >&6
5272else
5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274/* end confdefs.h. */
5275#include <stdlib.h>
5276#include <stdarg.h>
5277#include <string.h>
5278#include <float.h>
5279
5280int
5281main ()
5282{
5283
5284 ;
5285 return 0;
5286}
5287_ACEOF
5288if ac_fn_c_try_compile "$LINENO"; then :
5289 ac_cv_header_stdc=yes
5290else
5291 ac_cv_header_stdc=no
5292fi
5293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5294
5295if test $ac_cv_header_stdc = yes; then
5296 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298/* end confdefs.h. */
5299#include <string.h>
5300
5301_ACEOF
5302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5303 $EGREP "memchr" >/dev/null 2>&1; then :
5304
5305else
5306 ac_cv_header_stdc=no
5307fi
5308rm -f conftest*
5309
5310fi
5311
5312if test $ac_cv_header_stdc = yes; then
5313 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315/* end confdefs.h. */
5316#include <stdlib.h>
5317
5318_ACEOF
5319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5320 $EGREP "free" >/dev/null 2>&1; then :
5321
5322else
5323 ac_cv_header_stdc=no
5324fi
5325rm -f conftest*
5326
5327fi
5328
5329if test $ac_cv_header_stdc = yes; then
5330 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5331 if test "$cross_compiling" = yes; then :
5332 :
5333else
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335/* end confdefs.h. */
5336#include <ctype.h>
5337#include <stdlib.h>
5338#if ((' ' & 0x0FF) == 0x020)
5339# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5340# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5341#else
5342# define ISLOWER(c) \
5343 (('a' <= (c) && (c) <= 'i') \
5344 || ('j' <= (c) && (c) <= 'r') \
5345 || ('s' <= (c) && (c) <= 'z'))
5346# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5347#endif
5348
5349#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5350int
5351main ()
5352{
5353 int i;
5354 for (i = 0; i < 256; i++)
5355 if (XOR (islower (i), ISLOWER (i))
5356 || toupper (i) != TOUPPER (i))
5357 return 2;
5358 return 0;
5359}
5360_ACEOF
5361if ac_fn_c_try_run "$LINENO"; then :
5362
5363else
5364 ac_cv_header_stdc=no
5365fi
5366rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5367 conftest.$ac_objext conftest.beam conftest.$ac_ext
5368fi
5369
5370fi
5371fi
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5373$as_echo "$ac_cv_header_stdc" >&6; }
5374if test $ac_cv_header_stdc = yes; then
5375
5376$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5377
5378fi
5379
5380# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5381for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5382 inttypes.h stdint.h unistd.h
5383do :
5384 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5385ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5386"
cristyf6fcb5d2010-09-24 01:19:13 +00005387eval as_val=\$$as_ac_Header
5388 if test "x$as_val" = x""yes; then :
cristya0b81c32010-01-22 02:54:33 +00005389 cat >>confdefs.h <<_ACEOF
5390#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5391_ACEOF
5392
5393fi
5394
5395done
5396
5397
5398
5399 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5400if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5401 MINIX=yes
5402else
5403 MINIX=
5404fi
5405
5406
5407 if test "$MINIX" = yes; then
5408
5409$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5410
5411
5412$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5413
5414
5415$as_echo "#define _MINIX 1" >>confdefs.h
5416
5417 fi
5418
5419
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5421$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5422if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5423 $as_echo_n "(cached) " >&6
5424else
5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426/* end confdefs.h. */
5427
5428# define __EXTENSIONS__ 1
5429 $ac_includes_default
5430int
5431main ()
5432{
5433
5434 ;
5435 return 0;
5436}
5437_ACEOF
5438if ac_fn_c_try_compile "$LINENO"; then :
5439 ac_cv_safe_to_define___extensions__=yes
5440else
5441 ac_cv_safe_to_define___extensions__=no
5442fi
5443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5444fi
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5446$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5447 test $ac_cv_safe_to_define___extensions__ = yes &&
5448 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5449
5450 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5451
5452 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5453
5454 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5455
5456 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5457
5458
5459
5460# Check for programs
5461ac_ext=c
5462ac_cpp='$CPP $CPPFLAGS'
5463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5465ac_compiler_gnu=$ac_cv_c_compiler_gnu
5466if test -n "$ac_tool_prefix"; then
5467 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5468set dummy ${ac_tool_prefix}gcc; ac_word=$2
5469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5470$as_echo_n "checking for $ac_word... " >&6; }
5471if test "${ac_cv_prog_CC+set}" = set; then :
5472 $as_echo_n "(cached) " >&6
5473else
5474 if test -n "$CC"; then
5475 ac_cv_prog_CC="$CC" # Let the user override the test.
5476else
5477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478for as_dir in $PATH
5479do
5480 IFS=$as_save_IFS
5481 test -z "$as_dir" && as_dir=.
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5484 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5486 break 2
5487 fi
5488done
5489 done
5490IFS=$as_save_IFS
5491
5492fi
5493fi
5494CC=$ac_cv_prog_CC
5495if test -n "$CC"; then
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5497$as_echo "$CC" >&6; }
5498else
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5500$as_echo "no" >&6; }
5501fi
5502
5503
5504fi
5505if test -z "$ac_cv_prog_CC"; then
5506 ac_ct_CC=$CC
5507 # Extract the first word of "gcc", so it can be a program name with args.
5508set dummy gcc; ac_word=$2
5509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5510$as_echo_n "checking for $ac_word... " >&6; }
5511if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5512 $as_echo_n "(cached) " >&6
5513else
5514 if test -n "$ac_ct_CC"; then
5515 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5516else
5517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518for as_dir in $PATH
5519do
5520 IFS=$as_save_IFS
5521 test -z "$as_dir" && as_dir=.
5522 for ac_exec_ext in '' $ac_executable_extensions; do
5523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5524 ac_cv_prog_ac_ct_CC="gcc"
5525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5526 break 2
5527 fi
5528done
5529 done
5530IFS=$as_save_IFS
5531
5532fi
5533fi
5534ac_ct_CC=$ac_cv_prog_ac_ct_CC
5535if test -n "$ac_ct_CC"; then
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5537$as_echo "$ac_ct_CC" >&6; }
5538else
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540$as_echo "no" >&6; }
5541fi
5542
5543 if test "x$ac_ct_CC" = x; then
5544 CC=""
5545 else
5546 case $cross_compiling:$ac_tool_warned in
5547yes:)
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5550ac_tool_warned=yes ;;
5551esac
5552 CC=$ac_ct_CC
5553 fi
5554else
5555 CC="$ac_cv_prog_CC"
5556fi
5557
5558if test -z "$CC"; then
5559 if test -n "$ac_tool_prefix"; then
5560 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5561set dummy ${ac_tool_prefix}cc; ac_word=$2
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563$as_echo_n "checking for $ac_word... " >&6; }
5564if test "${ac_cv_prog_CC+set}" = set; then :
5565 $as_echo_n "(cached) " >&6
5566else
5567 if test -n "$CC"; then
5568 ac_cv_prog_CC="$CC" # Let the user override the test.
5569else
5570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571for as_dir in $PATH
5572do
5573 IFS=$as_save_IFS
5574 test -z "$as_dir" && as_dir=.
5575 for ac_exec_ext in '' $ac_executable_extensions; do
5576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5577 ac_cv_prog_CC="${ac_tool_prefix}cc"
5578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5579 break 2
5580 fi
5581done
5582 done
5583IFS=$as_save_IFS
5584
5585fi
5586fi
5587CC=$ac_cv_prog_CC
5588if test -n "$CC"; then
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5590$as_echo "$CC" >&6; }
5591else
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593$as_echo "no" >&6; }
5594fi
5595
5596
5597 fi
5598fi
5599if test -z "$CC"; then
5600 # Extract the first word of "cc", so it can be a program name with args.
5601set dummy cc; ac_word=$2
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5603$as_echo_n "checking for $ac_word... " >&6; }
5604if test "${ac_cv_prog_CC+set}" = set; then :
5605 $as_echo_n "(cached) " >&6
5606else
5607 if test -n "$CC"; then
5608 ac_cv_prog_CC="$CC" # Let the user override the test.
5609else
5610 ac_prog_rejected=no
5611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612for as_dir in $PATH
5613do
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5618 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5619 ac_prog_rejected=yes
5620 continue
5621 fi
5622 ac_cv_prog_CC="cc"
5623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 break 2
5625 fi
5626done
5627 done
5628IFS=$as_save_IFS
5629
5630if test $ac_prog_rejected = yes; then
5631 # We found a bogon in the path, so make sure we never use it.
5632 set dummy $ac_cv_prog_CC
5633 shift
5634 if test $# != 0; then
5635 # We chose a different compiler from the bogus one.
5636 # However, it has the same basename, so the bogon will be chosen
5637 # first if we set CC to just the basename; use the full file name.
5638 shift
5639 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5640 fi
5641fi
5642fi
5643fi
5644CC=$ac_cv_prog_CC
5645if test -n "$CC"; then
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5647$as_echo "$CC" >&6; }
5648else
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650$as_echo "no" >&6; }
5651fi
5652
5653
5654fi
5655if test -z "$CC"; then
5656 if test -n "$ac_tool_prefix"; then
5657 for ac_prog in cl.exe
5658 do
5659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5660set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5662$as_echo_n "checking for $ac_word... " >&6; }
5663if test "${ac_cv_prog_CC+set}" = set; then :
5664 $as_echo_n "(cached) " >&6
5665else
5666 if test -n "$CC"; then
5667 ac_cv_prog_CC="$CC" # Let the user override the test.
5668else
5669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670for as_dir in $PATH
5671do
5672 IFS=$as_save_IFS
5673 test -z "$as_dir" && as_dir=.
5674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5676 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5678 break 2
5679 fi
5680done
5681 done
5682IFS=$as_save_IFS
5683
5684fi
5685fi
5686CC=$ac_cv_prog_CC
5687if test -n "$CC"; then
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5689$as_echo "$CC" >&6; }
5690else
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692$as_echo "no" >&6; }
5693fi
5694
5695
5696 test -n "$CC" && break
5697 done
5698fi
5699if test -z "$CC"; then
5700 ac_ct_CC=$CC
5701 for ac_prog in cl.exe
5702do
5703 # Extract the first word of "$ac_prog", so it can be a program name with args.
5704set dummy $ac_prog; ac_word=$2
5705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706$as_echo_n "checking for $ac_word... " >&6; }
5707if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5708 $as_echo_n "(cached) " >&6
5709else
5710 if test -n "$ac_ct_CC"; then
5711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5712else
5713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714for as_dir in $PATH
5715do
5716 IFS=$as_save_IFS
5717 test -z "$as_dir" && as_dir=.
5718 for ac_exec_ext in '' $ac_executable_extensions; do
5719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5720 ac_cv_prog_ac_ct_CC="$ac_prog"
5721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5722 break 2
5723 fi
5724done
5725 done
5726IFS=$as_save_IFS
5727
5728fi
5729fi
5730ac_ct_CC=$ac_cv_prog_ac_ct_CC
5731if test -n "$ac_ct_CC"; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5733$as_echo "$ac_ct_CC" >&6; }
5734else
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736$as_echo "no" >&6; }
5737fi
5738
5739
5740 test -n "$ac_ct_CC" && break
5741done
5742
5743 if test "x$ac_ct_CC" = x; then
5744 CC=""
5745 else
5746 case $cross_compiling:$ac_tool_warned in
5747yes:)
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5750ac_tool_warned=yes ;;
5751esac
5752 CC=$ac_ct_CC
5753 fi
5754fi
5755
5756fi
5757
5758
5759test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00005761as_fn_error "no acceptable C compiler found in \$PATH
5762See \`config.log' for more details." "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005763
5764# Provide some information about the compiler.
5765$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5766set X $ac_compile
5767ac_compiler=$2
5768for ac_option in --version -v -V -qversion; do
5769 { { ac_try="$ac_compiler $ac_option >&5"
5770case "(($ac_try" in
5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5773esac
5774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5775$as_echo "$ac_try_echo"; } >&5
5776 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5777 ac_status=$?
5778 if test -s conftest.err; then
5779 sed '10a\
5780... rest of stderr output deleted ...
5781 10q' conftest.err >conftest.er1
5782 cat conftest.er1 >&5
5783 fi
5784 rm -f conftest.er1 conftest.err
5785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5786 test $ac_status = 0; }
5787done
5788
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5790$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5791if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5792 $as_echo_n "(cached) " >&6
5793else
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795/* end confdefs.h. */
5796
5797int
5798main ()
5799{
5800#ifndef __GNUC__
5801 choke me
5802#endif
5803
5804 ;
5805 return 0;
5806}
5807_ACEOF
5808if ac_fn_c_try_compile "$LINENO"; then :
5809 ac_compiler_gnu=yes
5810else
5811 ac_compiler_gnu=no
5812fi
5813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5814ac_cv_c_compiler_gnu=$ac_compiler_gnu
5815
5816fi
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5818$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5819if test $ac_compiler_gnu = yes; then
5820 GCC=yes
5821else
5822 GCC=
5823fi
5824ac_test_CFLAGS=${CFLAGS+set}
5825ac_save_CFLAGS=$CFLAGS
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5827$as_echo_n "checking whether $CC accepts -g... " >&6; }
5828if test "${ac_cv_prog_cc_g+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
5830else
5831 ac_save_c_werror_flag=$ac_c_werror_flag
5832 ac_c_werror_flag=yes
5833 ac_cv_prog_cc_g=no
5834 CFLAGS="-g"
5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836/* end confdefs.h. */
5837
5838int
5839main ()
5840{
5841
5842 ;
5843 return 0;
5844}
5845_ACEOF
5846if ac_fn_c_try_compile "$LINENO"; then :
5847 ac_cv_prog_cc_g=yes
5848else
5849 CFLAGS=""
5850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5851/* end confdefs.h. */
5852
5853int
5854main ()
5855{
5856
5857 ;
5858 return 0;
5859}
5860_ACEOF
5861if ac_fn_c_try_compile "$LINENO"; then :
5862
5863else
5864 ac_c_werror_flag=$ac_save_c_werror_flag
5865 CFLAGS="-g"
5866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867/* end confdefs.h. */
5868
5869int
5870main ()
5871{
5872
5873 ;
5874 return 0;
5875}
5876_ACEOF
5877if ac_fn_c_try_compile "$LINENO"; then :
5878 ac_cv_prog_cc_g=yes
5879fi
5880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5881fi
5882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883fi
5884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5885 ac_c_werror_flag=$ac_save_c_werror_flag
5886fi
5887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5888$as_echo "$ac_cv_prog_cc_g" >&6; }
5889if test "$ac_test_CFLAGS" = set; then
5890 CFLAGS=$ac_save_CFLAGS
5891elif test $ac_cv_prog_cc_g = yes; then
5892 if test "$GCC" = yes; then
5893 CFLAGS="-g -O2"
5894 else
5895 CFLAGS="-g"
5896 fi
5897else
5898 if test "$GCC" = yes; then
5899 CFLAGS="-O2"
5900 else
5901 CFLAGS=
5902 fi
5903fi
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5905$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5906if test "${ac_cv_prog_cc_c89+set}" = set; then :
5907 $as_echo_n "(cached) " >&6
5908else
5909 ac_cv_prog_cc_c89=no
5910ac_save_CC=$CC
5911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912/* end confdefs.h. */
5913#include <stdarg.h>
5914#include <stdio.h>
5915#include <sys/types.h>
5916#include <sys/stat.h>
5917/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5918struct buf { int x; };
5919FILE * (*rcsopen) (struct buf *, struct stat *, int);
5920static char *e (p, i)
5921 char **p;
5922 int i;
5923{
5924 return p[i];
5925}
5926static char *f (char * (*g) (char **, int), char **p, ...)
5927{
5928 char *s;
5929 va_list v;
5930 va_start (v,p);
5931 s = g (p, va_arg (v,int));
5932 va_end (v);
5933 return s;
5934}
5935
5936/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5937 function prototypes and stuff, but not '\xHH' hex character constants.
5938 These don't provoke an error unfortunately, instead are silently treated
5939 as 'x'. The following induces an error, until -std is added to get
5940 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5941 array size at least. It's necessary to write '\x00'==0 to get something
5942 that's true only with -std. */
5943int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5944
5945/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5946 inside strings and character constants. */
5947#define FOO(x) 'x'
5948int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5949
5950int test (int i, double x);
5951struct s1 {int (*f) (int a);};
5952struct s2 {int (*f) (double a);};
5953int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5954int argc;
5955char **argv;
5956int
5957main ()
5958{
5959return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5960 ;
5961 return 0;
5962}
5963_ACEOF
5964for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5965 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5966do
5967 CC="$ac_save_CC $ac_arg"
5968 if ac_fn_c_try_compile "$LINENO"; then :
5969 ac_cv_prog_cc_c89=$ac_arg
5970fi
5971rm -f core conftest.err conftest.$ac_objext
5972 test "x$ac_cv_prog_cc_c89" != "xno" && break
5973done
5974rm -f conftest.$ac_ext
5975CC=$ac_save_CC
5976
5977fi
5978# AC_CACHE_VAL
5979case "x$ac_cv_prog_cc_c89" in
5980 x)
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5982$as_echo "none needed" >&6; } ;;
5983 xno)
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5985$as_echo "unsupported" >&6; } ;;
5986 *)
5987 CC="$CC $ac_cv_prog_cc_c89"
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5989$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5990esac
5991if test "x$ac_cv_prog_cc_c89" != xno; then :
5992
5993fi
5994
5995ac_ext=c
5996ac_cpp='$CPP $CPPFLAGS'
5997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5999ac_compiler_gnu=$ac_cv_c_compiler_gnu
6000
cristy3ed852e2009-09-05 21:47:34 +00006001depcc="$CC" am_compiler_list=
6002
cristy8b350f62009-11-15 23:12:43 +00006003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006004$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006005if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006006 $as_echo_n "(cached) " >&6
6007else
6008 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6009 # We make a subdir and do the tests there. Otherwise we can end up
6010 # making bogus files that we don't know about and never remove. For
6011 # instance it was reported that on HP-UX the gcc test will end up
6012 # making a dummy file named `D' -- because `-MD' means `put the output
6013 # in D'.
6014 mkdir conftest.dir
6015 # Copy depcomp to subdir because otherwise we won't find it if we're
6016 # using a relative directory.
6017 cp "$am_depcomp" conftest.dir
6018 cd conftest.dir
6019 # We will build objects and dependencies in a subdirectory because
6020 # it helps to detect inapplicable dependency modes. For instance
6021 # both Tru64's cc and ICC support -MD to output dependencies as a
6022 # side effect of compilation, but ICC will put the dependencies in
6023 # the current directory while Tru64 will put them in the object
6024 # directory.
6025 mkdir sub
6026
6027 am_cv_CC_dependencies_compiler_type=none
6028 if test "$am_compiler_list" = ""; then
6029 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6030 fi
6031 am__universal=false
6032 case " $depcc " in #(
6033 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6034 esac
6035
6036 for depmode in $am_compiler_list; do
6037 # Setup a source with many dependencies, because some compilers
6038 # like to wrap large dependency lists on column 80 (with \), and
6039 # we should not choose a depcomp mode which is confused by this.
6040 #
6041 # We need to recreate these files for each test, as the compiler may
6042 # overwrite some of them when testing with obscure command lines.
6043 # This happens at least with the AIX C compiler.
6044 : > sub/conftest.c
6045 for i in 1 2 3 4 5 6; do
6046 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6047 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6048 # Solaris 8's {/usr,}/bin/sh.
6049 touch sub/conftst$i.h
6050 done
6051 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6052
6053 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6054 # mode. It turns out that the SunPro C++ compiler does not properly
6055 # handle `-M -o', and we need to detect this. Also, some Intel
6056 # versions had trouble with output in subdirs
6057 am__obj=sub/conftest.${OBJEXT-o}
6058 am__minus_obj="-o $am__obj"
6059 case $depmode in
6060 gcc)
6061 # This depmode causes a compiler race in universal mode.
6062 test "$am__universal" = false || continue
6063 ;;
6064 nosideeffect)
6065 # after this tag, mechanisms are not by side-effect, so they'll
6066 # only be used when explicitly requested
6067 if test "x$enable_dependency_tracking" = xyes; then
6068 continue
6069 else
6070 break
6071 fi
6072 ;;
6073 msvisualcpp | msvcmsys)
6074 # This compiler won't grok `-c -o', but also, the minuso test has
6075 # not run yet. These depmodes are late enough in the game, and
6076 # so weak that their functioning should not be impacted.
6077 am__obj=conftest.${OBJEXT-o}
6078 am__minus_obj=
6079 ;;
6080 none) break ;;
6081 esac
6082 if depmode=$depmode \
6083 source=sub/conftest.c object=$am__obj \
6084 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6085 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6086 >/dev/null 2>conftest.err &&
6087 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6088 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6089 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6090 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6091 # icc doesn't choke on unknown options, it will just issue warnings
6092 # or remarks (even with -Werror). So we grep stderr for any message
6093 # that says an option was ignored or not supported.
6094 # When given -MP, icc 7.0 and 7.1 complain thusly:
6095 # icc: Command line warning: ignoring option '-M'; no argument required
6096 # The diagnosis changed in icc 8.0:
6097 # icc: Command line remark: option '-MP' not supported
6098 if (grep 'ignoring option' conftest.err ||
6099 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6100 am_cv_CC_dependencies_compiler_type=$depmode
6101 break
6102 fi
6103 fi
6104 done
6105
6106 cd ..
6107 rm -rf conftest.dir
6108else
6109 am_cv_CC_dependencies_compiler_type=none
6110fi
6111
6112fi
cristy8b350f62009-11-15 23:12:43 +00006113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00006114$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6115CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6116
6117 if
6118 test "x$enable_dependency_tracking" != xno \
6119 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6120 am__fastdepCC_TRUE=
6121 am__fastdepCC_FALSE='#'
6122else
6123 am__fastdepCC_TRUE='#'
6124 am__fastdepCC_FALSE=
6125fi
6126
6127
cristy95646052009-11-28 23:05:30 +00006128ac_ext=cpp
6129ac_cpp='$CXXCPP $CPPFLAGS'
6130ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6131ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6132ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6133if test -z "$CXX"; then
6134 if test -n "$CCC"; then
6135 CXX=$CCC
6136 else
6137 if test -n "$ac_tool_prefix"; then
6138 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6139 do
6140 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6141set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6143$as_echo_n "checking for $ac_word... " >&6; }
6144if test "${ac_cv_prog_CXX+set}" = set; then :
6145 $as_echo_n "(cached) " >&6
6146else
6147 if test -n "$CXX"; then
6148 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6149else
6150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151for as_dir in $PATH
6152do
6153 IFS=$as_save_IFS
6154 test -z "$as_dir" && as_dir=.
6155 for ac_exec_ext in '' $ac_executable_extensions; do
6156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6157 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6159 break 2
6160 fi
6161done
6162 done
6163IFS=$as_save_IFS
6164
6165fi
6166fi
6167CXX=$ac_cv_prog_CXX
6168if test -n "$CXX"; then
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6170$as_echo "$CXX" >&6; }
6171else
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6173$as_echo "no" >&6; }
6174fi
6175
6176
6177 test -n "$CXX" && break
6178 done
6179fi
6180if test -z "$CXX"; then
6181 ac_ct_CXX=$CXX
6182 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6183do
6184 # Extract the first word of "$ac_prog", so it can be a program name with args.
6185set dummy $ac_prog; ac_word=$2
6186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187$as_echo_n "checking for $ac_word... " >&6; }
6188if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6189 $as_echo_n "(cached) " >&6
6190else
6191 if test -n "$ac_ct_CXX"; then
6192 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6193else
6194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195for as_dir in $PATH
6196do
6197 IFS=$as_save_IFS
6198 test -z "$as_dir" && as_dir=.
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6201 ac_cv_prog_ac_ct_CXX="$ac_prog"
6202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 break 2
6204 fi
6205done
6206 done
6207IFS=$as_save_IFS
6208
6209fi
6210fi
6211ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6212if test -n "$ac_ct_CXX"; then
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6214$as_echo "$ac_ct_CXX" >&6; }
6215else
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217$as_echo "no" >&6; }
6218fi
6219
6220
6221 test -n "$ac_ct_CXX" && break
6222done
6223
6224 if test "x$ac_ct_CXX" = x; then
6225 CXX="g++"
6226 else
6227 case $cross_compiling:$ac_tool_warned in
6228yes:)
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6231ac_tool_warned=yes ;;
6232esac
6233 CXX=$ac_ct_CXX
6234 fi
6235fi
6236
6237 fi
6238fi
6239# Provide some information about the compiler.
6240$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6241set X $ac_compile
6242ac_compiler=$2
6243for ac_option in --version -v -V -qversion; do
6244 { { ac_try="$ac_compiler $ac_option >&5"
6245case "(($ac_try" in
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6248esac
6249eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6250$as_echo "$ac_try_echo"; } >&5
6251 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6252 ac_status=$?
6253 if test -s conftest.err; then
6254 sed '10a\
6255... rest of stderr output deleted ...
6256 10q' conftest.err >conftest.er1
6257 cat conftest.er1 >&5
6258 fi
6259 rm -f conftest.er1 conftest.err
6260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6261 test $ac_status = 0; }
6262done
6263
6264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6265$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6266if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6267 $as_echo_n "(cached) " >&6
6268else
6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270/* end confdefs.h. */
6271
6272int
6273main ()
6274{
6275#ifndef __GNUC__
6276 choke me
6277#endif
6278
6279 ;
6280 return 0;
6281}
6282_ACEOF
6283if ac_fn_cxx_try_compile "$LINENO"; then :
6284 ac_compiler_gnu=yes
6285else
6286 ac_compiler_gnu=no
6287fi
6288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6290
6291fi
6292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6293$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6294if test $ac_compiler_gnu = yes; then
6295 GXX=yes
6296else
6297 GXX=
6298fi
6299ac_test_CXXFLAGS=${CXXFLAGS+set}
6300ac_save_CXXFLAGS=$CXXFLAGS
6301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6302$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6303if test "${ac_cv_prog_cxx_g+set}" = set; then :
6304 $as_echo_n "(cached) " >&6
6305else
6306 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6307 ac_cxx_werror_flag=yes
6308 ac_cv_prog_cxx_g=no
6309 CXXFLAGS="-g"
6310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6311/* end confdefs.h. */
6312
6313int
6314main ()
6315{
6316
6317 ;
6318 return 0;
6319}
6320_ACEOF
6321if ac_fn_cxx_try_compile "$LINENO"; then :
6322 ac_cv_prog_cxx_g=yes
6323else
6324 CXXFLAGS=""
6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326/* end confdefs.h. */
6327
6328int
6329main ()
6330{
6331
6332 ;
6333 return 0;
6334}
6335_ACEOF
6336if ac_fn_cxx_try_compile "$LINENO"; then :
6337
6338else
6339 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6340 CXXFLAGS="-g"
6341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342/* end confdefs.h. */
6343
6344int
6345main ()
6346{
6347
6348 ;
6349 return 0;
6350}
6351_ACEOF
6352if ac_fn_cxx_try_compile "$LINENO"; then :
6353 ac_cv_prog_cxx_g=yes
6354fi
6355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6356fi
6357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6358fi
6359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6360 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6361fi
6362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6363$as_echo "$ac_cv_prog_cxx_g" >&6; }
6364if test "$ac_test_CXXFLAGS" = set; then
6365 CXXFLAGS=$ac_save_CXXFLAGS
6366elif test $ac_cv_prog_cxx_g = yes; then
6367 if test "$GXX" = yes; then
6368 CXXFLAGS="-g -O2"
6369 else
6370 CXXFLAGS="-g"
6371 fi
6372else
6373 if test "$GXX" = yes; then
6374 CXXFLAGS="-O2"
6375 else
6376 CXXFLAGS=
6377 fi
6378fi
6379ac_ext=c
6380ac_cpp='$CPP $CPPFLAGS'
6381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6383ac_compiler_gnu=$ac_cv_c_compiler_gnu
6384
6385depcc="$CXX" am_compiler_list=
6386
6387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6388$as_echo_n "checking dependency style of $depcc... " >&6; }
6389if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6390 $as_echo_n "(cached) " >&6
6391else
6392 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6393 # We make a subdir and do the tests there. Otherwise we can end up
6394 # making bogus files that we don't know about and never remove. For
6395 # instance it was reported that on HP-UX the gcc test will end up
6396 # making a dummy file named `D' -- because `-MD' means `put the output
6397 # in D'.
6398 mkdir conftest.dir
6399 # Copy depcomp to subdir because otherwise we won't find it if we're
6400 # using a relative directory.
6401 cp "$am_depcomp" conftest.dir
6402 cd conftest.dir
6403 # We will build objects and dependencies in a subdirectory because
6404 # it helps to detect inapplicable dependency modes. For instance
6405 # both Tru64's cc and ICC support -MD to output dependencies as a
6406 # side effect of compilation, but ICC will put the dependencies in
6407 # the current directory while Tru64 will put them in the object
6408 # directory.
6409 mkdir sub
6410
6411 am_cv_CXX_dependencies_compiler_type=none
6412 if test "$am_compiler_list" = ""; then
6413 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6414 fi
6415 am__universal=false
6416 case " $depcc " in #(
6417 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6418 esac
6419
6420 for depmode in $am_compiler_list; do
6421 # Setup a source with many dependencies, because some compilers
6422 # like to wrap large dependency lists on column 80 (with \), and
6423 # we should not choose a depcomp mode which is confused by this.
6424 #
6425 # We need to recreate these files for each test, as the compiler may
6426 # overwrite some of them when testing with obscure command lines.
6427 # This happens at least with the AIX C compiler.
6428 : > sub/conftest.c
6429 for i in 1 2 3 4 5 6; do
6430 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6431 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6432 # Solaris 8's {/usr,}/bin/sh.
6433 touch sub/conftst$i.h
6434 done
6435 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6436
6437 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6438 # mode. It turns out that the SunPro C++ compiler does not properly
6439 # handle `-M -o', and we need to detect this. Also, some Intel
6440 # versions had trouble with output in subdirs
6441 am__obj=sub/conftest.${OBJEXT-o}
6442 am__minus_obj="-o $am__obj"
6443 case $depmode in
6444 gcc)
6445 # This depmode causes a compiler race in universal mode.
6446 test "$am__universal" = false || continue
6447 ;;
6448 nosideeffect)
6449 # after this tag, mechanisms are not by side-effect, so they'll
6450 # only be used when explicitly requested
6451 if test "x$enable_dependency_tracking" = xyes; then
6452 continue
6453 else
6454 break
6455 fi
6456 ;;
6457 msvisualcpp | msvcmsys)
6458 # This compiler won't grok `-c -o', but also, the minuso test has
6459 # not run yet. These depmodes are late enough in the game, and
6460 # so weak that their functioning should not be impacted.
6461 am__obj=conftest.${OBJEXT-o}
6462 am__minus_obj=
6463 ;;
6464 none) break ;;
6465 esac
6466 if depmode=$depmode \
6467 source=sub/conftest.c object=$am__obj \
6468 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6469 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6470 >/dev/null 2>conftest.err &&
6471 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6472 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6473 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6474 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6475 # icc doesn't choke on unknown options, it will just issue warnings
6476 # or remarks (even with -Werror). So we grep stderr for any message
6477 # that says an option was ignored or not supported.
6478 # When given -MP, icc 7.0 and 7.1 complain thusly:
6479 # icc: Command line warning: ignoring option '-M'; no argument required
6480 # The diagnosis changed in icc 8.0:
6481 # icc: Command line remark: option '-MP' not supported
6482 if (grep 'ignoring option' conftest.err ||
6483 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6484 am_cv_CXX_dependencies_compiler_type=$depmode
6485 break
6486 fi
6487 fi
6488 done
6489
6490 cd ..
6491 rm -rf conftest.dir
6492else
6493 am_cv_CXX_dependencies_compiler_type=none
6494fi
6495
6496fi
6497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6498$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6499CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6500
6501 if
6502 test "x$enable_dependency_tracking" != xno \
6503 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6504 am__fastdepCXX_TRUE=
6505 am__fastdepCXX_FALSE='#'
6506else
6507 am__fastdepCXX_TRUE='#'
6508 am__fastdepCXX_FALSE=
6509fi
6510
6511
cristy8b350f62009-11-15 23:12:43 +00006512 case $ac_cv_prog_cc_stdc in #(
6513 no) :
6514 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6515 *) :
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006517$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006518if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006519 $as_echo_n "(cached) " >&6
6520else
6521 ac_cv_prog_cc_c99=no
6522ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006524/* end confdefs.h. */
6525#include <stdarg.h>
6526#include <stdbool.h>
6527#include <stdlib.h>
6528#include <wchar.h>
6529#include <stdio.h>
6530
6531// Check varargs macros. These examples are taken from C99 6.10.3.5.
6532#define debug(...) fprintf (stderr, __VA_ARGS__)
6533#define showlist(...) puts (#__VA_ARGS__)
6534#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6535static void
6536test_varargs_macros (void)
6537{
6538 int x = 1234;
6539 int y = 5678;
6540 debug ("Flag");
6541 debug ("X = %d\n", x);
6542 showlist (The first, second, and third items.);
6543 report (x>y, "x is %d but y is %d", x, y);
6544}
6545
6546// Check long long types.
6547#define BIG64 18446744073709551615ull
6548#define BIG32 4294967295ul
6549#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6550#if !BIG_OK
6551 your preprocessor is broken;
6552#endif
6553#if BIG_OK
6554#else
6555 your preprocessor is broken;
6556#endif
6557static long long int bignum = -9223372036854775807LL;
6558static unsigned long long int ubignum = BIG64;
6559
6560struct incomplete_array
6561{
6562 int datasize;
6563 double data[];
6564};
6565
6566struct named_init {
6567 int number;
6568 const wchar_t *name;
6569 double average;
6570};
6571
6572typedef const char *ccp;
6573
6574static inline int
6575test_restrict (ccp restrict text)
6576{
6577 // See if C++-style comments work.
6578 // Iterate through items via the restricted pointer.
6579 // Also check for declarations in for loops.
6580 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6581 continue;
6582 return 0;
6583}
6584
6585// Check varargs and va_copy.
6586static void
6587test_varargs (const char *format, ...)
6588{
6589 va_list args;
6590 va_start (args, format);
6591 va_list args_copy;
6592 va_copy (args_copy, args);
6593
6594 const char *str;
6595 int number;
6596 float fnumber;
6597
6598 while (*format)
6599 {
6600 switch (*format++)
6601 {
6602 case 's': // string
6603 str = va_arg (args_copy, const char *);
6604 break;
6605 case 'd': // int
6606 number = va_arg (args_copy, int);
6607 break;
6608 case 'f': // float
6609 fnumber = va_arg (args_copy, double);
6610 break;
6611 default:
6612 break;
6613 }
6614 }
6615 va_end (args_copy);
6616 va_end (args);
6617}
6618
6619int
6620main ()
6621{
6622
6623 // Check bool.
6624 _Bool success = false;
6625
6626 // Check restrict.
6627 if (test_restrict ("String literal") == 0)
6628 success = true;
6629 char *restrict newvar = "Another string";
6630
6631 // Check varargs.
6632 test_varargs ("s, d' f .", "string", 65, 34.234);
6633 test_varargs_macros ();
6634
6635 // Check flexible array members.
6636 struct incomplete_array *ia =
6637 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6638 ia->datasize = 10;
6639 for (int i = 0; i < ia->datasize; ++i)
6640 ia->data[i] = i * 1.234;
6641
6642 // Check named initializers.
6643 struct named_init ni = {
6644 .number = 34,
6645 .name = L"Test wide string",
6646 .average = 543.34343,
6647 };
6648
6649 ni.number = 58;
6650
6651 int dynamic_array[ni.number];
6652 dynamic_array[ni.number - 1] = 543;
6653
6654 // work around unused variable warnings
6655 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6656 || dynamic_array[ni.number - 1] != 543);
6657
6658 ;
6659 return 0;
6660}
6661_ACEOF
6662for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6663do
6664 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006665 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006666 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006667fi
cristy3ed852e2009-09-05 21:47:34 +00006668rm -f core conftest.err conftest.$ac_objext
6669 test "x$ac_cv_prog_cc_c99" != "xno" && break
6670done
6671rm -f conftest.$ac_ext
6672CC=$ac_save_CC
6673
6674fi
6675# AC_CACHE_VAL
6676case "x$ac_cv_prog_cc_c99" in
6677 x)
cristy8b350f62009-11-15 23:12:43 +00006678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006679$as_echo "none needed" >&6; } ;;
6680 xno)
cristy8b350f62009-11-15 23:12:43 +00006681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006682$as_echo "unsupported" >&6; } ;;
6683 *)
6684 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006686$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6687esac
cristy8b350f62009-11-15 23:12:43 +00006688if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006689 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6690else
cristy8b350f62009-11-15 23:12:43 +00006691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006692$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006693if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006694 $as_echo_n "(cached) " >&6
6695else
6696 ac_cv_prog_cc_c89=no
6697ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006699/* end confdefs.h. */
6700#include <stdarg.h>
6701#include <stdio.h>
6702#include <sys/types.h>
6703#include <sys/stat.h>
6704/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6705struct buf { int x; };
6706FILE * (*rcsopen) (struct buf *, struct stat *, int);
6707static char *e (p, i)
6708 char **p;
6709 int i;
6710{
6711 return p[i];
6712}
6713static char *f (char * (*g) (char **, int), char **p, ...)
6714{
6715 char *s;
6716 va_list v;
6717 va_start (v,p);
6718 s = g (p, va_arg (v,int));
6719 va_end (v);
6720 return s;
6721}
6722
6723/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6724 function prototypes and stuff, but not '\xHH' hex character constants.
6725 These don't provoke an error unfortunately, instead are silently treated
6726 as 'x'. The following induces an error, until -std is added to get
6727 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6728 array size at least. It's necessary to write '\x00'==0 to get something
6729 that's true only with -std. */
6730int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6731
6732/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6733 inside strings and character constants. */
6734#define FOO(x) 'x'
6735int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6736
6737int test (int i, double x);
6738struct s1 {int (*f) (int a);};
6739struct s2 {int (*f) (double a);};
6740int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6741int argc;
6742char **argv;
6743int
6744main ()
6745{
6746return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6747 ;
6748 return 0;
6749}
6750_ACEOF
6751for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6752 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6753do
6754 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006755 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006756 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006757fi
cristy3ed852e2009-09-05 21:47:34 +00006758rm -f core conftest.err conftest.$ac_objext
6759 test "x$ac_cv_prog_cc_c89" != "xno" && break
6760done
6761rm -f conftest.$ac_ext
6762CC=$ac_save_CC
6763
6764fi
6765# AC_CACHE_VAL
6766case "x$ac_cv_prog_cc_c89" in
6767 x)
cristy8b350f62009-11-15 23:12:43 +00006768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006769$as_echo "none needed" >&6; } ;;
6770 xno)
cristy8b350f62009-11-15 23:12:43 +00006771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006772$as_echo "unsupported" >&6; } ;;
6773 *)
6774 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006776$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6777esac
cristy8b350f62009-11-15 23:12:43 +00006778if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006779 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6780else
6781 ac_cv_prog_cc_stdc=no
6782fi
6783
cristy3ed852e2009-09-05 21:47:34 +00006784fi
cristy3ed852e2009-09-05 21:47:34 +00006785 ;;
6786esac
cristy8b350f62009-11-15 23:12:43 +00006787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006788$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006789 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006790 $as_echo_n "(cached) " >&6
6791fi
6792
cristy8b350f62009-11-15 23:12:43 +00006793 case $ac_cv_prog_cc_stdc in #(
6794 no) :
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6796$as_echo "unsupported" >&6; } ;; #(
6797 '') :
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6799$as_echo "none needed" >&6; } ;; #(
6800 *) :
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006802$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6803esac
6804
cristy3ed852e2009-09-05 21:47:34 +00006805ac_ext=c
6806ac_cpp='$CPP $CPPFLAGS'
6807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6809ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006811$as_echo_n "checking how to run the C preprocessor... " >&6; }
6812# On Suns, sometimes $CPP names a directory.
6813if test -n "$CPP" && test -d "$CPP"; then
6814 CPP=
6815fi
6816if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00006817 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006818 $as_echo_n "(cached) " >&6
6819else
6820 # Double quotes because CPP needs to be expanded
6821 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6822 do
6823 ac_preproc_ok=false
6824for ac_c_preproc_warn_flag in '' yes
6825do
6826 # Use a header file that comes with gcc, so configuring glibc
6827 # with a fresh cross-compiler works.
6828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6829 # <limits.h> exists even on freestanding compilers.
6830 # On the NeXT, cc -E runs the code through the compiler's parser,
6831 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006833/* end confdefs.h. */
6834#ifdef __STDC__
6835# include <limits.h>
6836#else
6837# include <assert.h>
6838#endif
6839 Syntax error
6840_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006841if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006842
cristy8b350f62009-11-15 23:12:43 +00006843else
cristy3ed852e2009-09-05 21:47:34 +00006844 # Broken: fails on valid input.
6845continue
6846fi
cristy3ed852e2009-09-05 21:47:34 +00006847rm -f conftest.err conftest.$ac_ext
6848
6849 # OK, works on sane cases. Now check whether nonexistent headers
6850 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006852/* end confdefs.h. */
6853#include <ac_nonexistent.h>
6854_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006855if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006856 # Broken: success on invalid input.
6857continue
6858else
cristy3ed852e2009-09-05 21:47:34 +00006859 # Passes both tests.
6860ac_preproc_ok=:
6861break
6862fi
cristy3ed852e2009-09-05 21:47:34 +00006863rm -f conftest.err conftest.$ac_ext
6864
6865done
6866# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6867rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006868if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00006869 break
6870fi
6871
6872 done
6873 ac_cv_prog_CPP=$CPP
6874
6875fi
6876 CPP=$ac_cv_prog_CPP
6877else
6878 ac_cv_prog_CPP=$CPP
6879fi
cristy8b350f62009-11-15 23:12:43 +00006880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006881$as_echo "$CPP" >&6; }
6882ac_preproc_ok=false
6883for ac_c_preproc_warn_flag in '' yes
6884do
6885 # Use a header file that comes with gcc, so configuring glibc
6886 # with a fresh cross-compiler works.
6887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6888 # <limits.h> exists even on freestanding compilers.
6889 # On the NeXT, cc -E runs the code through the compiler's parser,
6890 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006892/* end confdefs.h. */
6893#ifdef __STDC__
6894# include <limits.h>
6895#else
6896# include <assert.h>
6897#endif
6898 Syntax error
6899_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006900if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006901
cristy8b350f62009-11-15 23:12:43 +00006902else
cristy3ed852e2009-09-05 21:47:34 +00006903 # Broken: fails on valid input.
6904continue
6905fi
cristy3ed852e2009-09-05 21:47:34 +00006906rm -f conftest.err conftest.$ac_ext
6907
6908 # OK, works on sane cases. Now check whether nonexistent headers
6909 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006911/* end confdefs.h. */
6912#include <ac_nonexistent.h>
6913_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006914if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006915 # Broken: success on invalid input.
6916continue
6917else
cristy3ed852e2009-09-05 21:47:34 +00006918 # Passes both tests.
6919ac_preproc_ok=:
6920break
6921fi
cristy3ed852e2009-09-05 21:47:34 +00006922rm -f conftest.err conftest.$ac_ext
6923
6924done
6925# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6926rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006927if $ac_preproc_ok; then :
6928
cristy3ed852e2009-09-05 21:47:34 +00006929else
cristy8b350f62009-11-15 23:12:43 +00006930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00006931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00006932as_fn_error "C preprocessor \"$CPP\" fails sanity check
6933See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00006934fi
6935
6936ac_ext=c
6937ac_cpp='$CPP $CPPFLAGS'
6938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6940ac_compiler_gnu=$ac_cv_c_compiler_gnu
6941
cristy8b350f62009-11-15 23:12:43 +00006942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00006943$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006944if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006945 $as_echo_n "(cached) " >&6
6946else
6947 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6948 for ac_i in 1 2 3 4 5 6 7; do
6949 ac_script="$ac_script$as_nl$ac_script"
6950 done
6951 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00006952 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00006953 if test -z "$SED"; then
6954 ac_path_SED_found=false
6955 # Loop through the user's path and test for each of PROGNAME-LIST
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957for as_dir in $PATH
6958do
6959 IFS=$as_save_IFS
6960 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006961 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00006962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6964 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6965# Check for GNU ac_path_SED and select it if it is found.
6966 # Check for GNU $ac_path_SED
6967case `"$ac_path_SED" --version 2>&1` in
6968*GNU*)
6969 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6970*)
6971 ac_count=0
6972 $as_echo_n 0123456789 >"conftest.in"
6973 while :
6974 do
6975 cat "conftest.in" "conftest.in" >"conftest.tmp"
6976 mv "conftest.tmp" "conftest.in"
6977 cp "conftest.in" "conftest.nl"
6978 $as_echo '' >> "conftest.nl"
6979 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6980 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00006981 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00006982 if test $ac_count -gt ${ac_path_SED_max-0}; then
6983 # Best one so far, save it but keep looking for a better one
6984 ac_cv_path_SED="$ac_path_SED"
6985 ac_path_SED_max=$ac_count
6986 fi
6987 # 10*(2^10) chars as input seems more than enough
6988 test $ac_count -gt 10 && break
6989 done
6990 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6991esac
6992
6993 $ac_path_SED_found && break 3
6994 done
6995 done
cristy8b350f62009-11-15 23:12:43 +00006996 done
cristy3ed852e2009-09-05 21:47:34 +00006997IFS=$as_save_IFS
6998 if test -z "$ac_cv_path_SED"; then
cristyf6fcb5d2010-09-24 01:19:13 +00006999 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007000 fi
7001else
7002 ac_cv_path_SED=$SED
7003fi
7004
7005fi
cristy8b350f62009-11-15 23:12:43 +00007006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00007007$as_echo "$ac_cv_path_SED" >&6; }
7008 SED="$ac_cv_path_SED"
7009 rm -f conftest.sed
7010
7011test -z "$SED" && SED=sed
7012Xsed="$SED -e 1s/^X//"
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
cristy8b350f62009-11-15 23:12:43 +00007024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00007025$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007026if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007027 $as_echo_n "(cached) " >&6
7028else
7029 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7030 then ac_cv_path_FGREP="$GREP -F"
7031 else
7032 if test -z "$FGREP"; then
7033 ac_path_FGREP_found=false
7034 # Loop through the user's path and test for each of PROGNAME-LIST
7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7037do
7038 IFS=$as_save_IFS
7039 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007040 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00007041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7043 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7044# Check for GNU ac_path_FGREP and select it if it is found.
7045 # Check for GNU $ac_path_FGREP
7046case `"$ac_path_FGREP" --version 2>&1` in
7047*GNU*)
7048 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7049*)
7050 ac_count=0
7051 $as_echo_n 0123456789 >"conftest.in"
7052 while :
7053 do
7054 cat "conftest.in" "conftest.in" >"conftest.tmp"
7055 mv "conftest.tmp" "conftest.in"
7056 cp "conftest.in" "conftest.nl"
7057 $as_echo 'FGREP' >> "conftest.nl"
7058 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7059 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007060 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007061 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7062 # Best one so far, save it but keep looking for a better one
7063 ac_cv_path_FGREP="$ac_path_FGREP"
7064 ac_path_FGREP_max=$ac_count
7065 fi
7066 # 10*(2^10) chars as input seems more than enough
7067 test $ac_count -gt 10 && break
7068 done
7069 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7070esac
7071
7072 $ac_path_FGREP_found && break 3
7073 done
7074 done
cristy8b350f62009-11-15 23:12:43 +00007075 done
cristy3ed852e2009-09-05 21:47:34 +00007076IFS=$as_save_IFS
7077 if test -z "$ac_cv_path_FGREP"; then
cristyf6fcb5d2010-09-24 01:19:13 +00007078 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007079 fi
7080else
7081 ac_cv_path_FGREP=$FGREP
7082fi
7083
7084 fi
7085fi
cristy8b350f62009-11-15 23:12:43 +00007086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007087$as_echo "$ac_cv_path_FGREP" >&6; }
7088 FGREP="$ac_cv_path_FGREP"
7089
7090
7091test -z "$GREP" && GREP=grep
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
cristyfd9dcd42010-08-08 18:07:02 +00007109ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7110ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7111ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7112
7113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7114$as_echo_n "checking how to print strings... " >&6; }
7115# Test print first, because it will be a builtin if present.
7116if test "X`print -r -- -n 2>/dev/null`" = X-n && \
7117 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7118 ECHO='print -r --'
7119elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7120 ECHO='printf %s\n'
7121else
7122 # Use this function as a fallback that always works.
7123 func_fallback_echo ()
7124 {
7125 eval 'cat <<_LTECHO_EOF
7126$1
7127_LTECHO_EOF'
7128 }
7129 ECHO='func_fallback_echo'
7130fi
7131
7132# func_echo_all arg...
7133# Invoke $ECHO with all args, space-separated.
7134func_echo_all ()
7135{
7136 $ECHO ""
7137}
7138
7139case "$ECHO" in
7140 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7141$as_echo "printf" >&6; } ;;
7142 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7143$as_echo "print -r" >&6; } ;;
7144 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7145$as_echo "cat" >&6; } ;;
7146esac
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
cristy3ed852e2009-09-05 21:47:34 +00007161
7162
7163# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00007164if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007165 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7166else
7167 with_gnu_ld=no
7168fi
7169
7170ac_prog=ld
7171if test "$GCC" = yes; then
7172 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00007173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007174$as_echo_n "checking for ld used by $CC... " >&6; }
7175 case $host in
7176 *-*-mingw*)
7177 # gcc leaves a trailing carriage return which upsets mingw
7178 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7179 *)
7180 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7181 esac
7182 case $ac_prog in
7183 # Accept absolute paths.
7184 [\\/]* | ?:[\\/]*)
7185 re_direlt='/[^/][^/]*/\.\./'
7186 # Canonicalize the pathname of ld
7187 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7188 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7189 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7190 done
7191 test -z "$LD" && LD="$ac_prog"
7192 ;;
7193 "")
7194 # If it fails, then pretend we aren't using GCC.
7195 ac_prog=ld
7196 ;;
7197 *)
7198 # If it is relative, then search for the first ld in PATH.
7199 with_gnu_ld=unknown
7200 ;;
7201 esac
7202elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007204$as_echo_n "checking for GNU ld... " >&6; }
7205else
cristy8b350f62009-11-15 23:12:43 +00007206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007207$as_echo_n "checking for non-GNU ld... " >&6; }
7208fi
cristy8b350f62009-11-15 23:12:43 +00007209if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007210 $as_echo_n "(cached) " >&6
7211else
7212 if test -z "$LD"; then
7213 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7214 for ac_dir in $PATH; do
7215 IFS="$lt_save_ifs"
7216 test -z "$ac_dir" && ac_dir=.
7217 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7218 lt_cv_path_LD="$ac_dir/$ac_prog"
7219 # Check to see if the program is GNU ld. I'd rather use --version,
7220 # but apparently some variants of GNU ld only accept -v.
7221 # Break only if it was the GNU/non-GNU ld that we prefer.
7222 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7223 *GNU* | *'with BFD'*)
7224 test "$with_gnu_ld" != no && break
7225 ;;
7226 *)
7227 test "$with_gnu_ld" != yes && break
7228 ;;
7229 esac
7230 fi
7231 done
7232 IFS="$lt_save_ifs"
7233else
7234 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7235fi
7236fi
7237
7238LD="$lt_cv_path_LD"
7239if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00007240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00007241$as_echo "$LD" >&6; }
7242else
cristy8b350f62009-11-15 23:12:43 +00007243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007244$as_echo "no" >&6; }
7245fi
cristyf6fcb5d2010-09-24 01:19:13 +00007246test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
cristy8b350f62009-11-15 23:12:43 +00007247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007248$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007249if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007250 $as_echo_n "(cached) " >&6
7251else
7252 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7253case `$LD -v 2>&1 </dev/null` in
7254*GNU* | *'with BFD'*)
7255 lt_cv_prog_gnu_ld=yes
7256 ;;
7257*)
7258 lt_cv_prog_gnu_ld=no
7259 ;;
7260esac
7261fi
cristy8b350f62009-11-15 23:12:43 +00007262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007263$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7264with_gnu_ld=$lt_cv_prog_gnu_ld
7265
7266
7267
7268
7269
7270
7271
7272
7273
cristy3ed852e2009-09-05 21:47:34 +00007274
cristy837d6dc2010-02-27 01:16:57 +00007275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7276$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7277if test "${ac_cv_prog_cc_c99+set}" = set; then :
7278 $as_echo_n "(cached) " >&6
7279else
7280 ac_cv_prog_cc_c99=no
7281ac_save_CC=$CC
7282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283/* end confdefs.h. */
7284#include <stdarg.h>
7285#include <stdbool.h>
7286#include <stdlib.h>
7287#include <wchar.h>
7288#include <stdio.h>
7289
7290// Check varargs macros. These examples are taken from C99 6.10.3.5.
7291#define debug(...) fprintf (stderr, __VA_ARGS__)
7292#define showlist(...) puts (#__VA_ARGS__)
7293#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7294static void
7295test_varargs_macros (void)
7296{
7297 int x = 1234;
7298 int y = 5678;
7299 debug ("Flag");
7300 debug ("X = %d\n", x);
7301 showlist (The first, second, and third items.);
7302 report (x>y, "x is %d but y is %d", x, y);
7303}
7304
7305// Check long long types.
7306#define BIG64 18446744073709551615ull
7307#define BIG32 4294967295ul
7308#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7309#if !BIG_OK
7310 your preprocessor is broken;
7311#endif
7312#if BIG_OK
7313#else
7314 your preprocessor is broken;
7315#endif
7316static long long int bignum = -9223372036854775807LL;
7317static unsigned long long int ubignum = BIG64;
7318
7319struct incomplete_array
7320{
7321 int datasize;
7322 double data[];
7323};
7324
7325struct named_init {
7326 int number;
7327 const wchar_t *name;
7328 double average;
7329};
7330
7331typedef const char *ccp;
7332
7333static inline int
7334test_restrict (ccp restrict text)
7335{
7336 // See if C++-style comments work.
7337 // Iterate through items via the restricted pointer.
7338 // Also check for declarations in for loops.
7339 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7340 continue;
7341 return 0;
7342}
7343
7344// Check varargs and va_copy.
7345static void
7346test_varargs (const char *format, ...)
7347{
7348 va_list args;
7349 va_start (args, format);
7350 va_list args_copy;
7351 va_copy (args_copy, args);
7352
7353 const char *str;
7354 int number;
7355 float fnumber;
7356
7357 while (*format)
7358 {
7359 switch (*format++)
7360 {
7361 case 's': // string
7362 str = va_arg (args_copy, const char *);
7363 break;
7364 case 'd': // int
7365 number = va_arg (args_copy, int);
7366 break;
7367 case 'f': // float
7368 fnumber = va_arg (args_copy, double);
7369 break;
7370 default:
7371 break;
7372 }
7373 }
7374 va_end (args_copy);
7375 va_end (args);
7376}
7377
7378int
7379main ()
7380{
7381
7382 // Check bool.
7383 _Bool success = false;
7384
7385 // Check restrict.
7386 if (test_restrict ("String literal") == 0)
7387 success = true;
7388 char *restrict newvar = "Another string";
7389
7390 // Check varargs.
7391 test_varargs ("s, d' f .", "string", 65, 34.234);
7392 test_varargs_macros ();
7393
7394 // Check flexible array members.
7395 struct incomplete_array *ia =
7396 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7397 ia->datasize = 10;
7398 for (int i = 0; i < ia->datasize; ++i)
7399 ia->data[i] = i * 1.234;
7400
7401 // Check named initializers.
7402 struct named_init ni = {
7403 .number = 34,
7404 .name = L"Test wide string",
7405 .average = 543.34343,
7406 };
7407
7408 ni.number = 58;
7409
7410 int dynamic_array[ni.number];
7411 dynamic_array[ni.number - 1] = 543;
7412
7413 // work around unused variable warnings
7414 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7415 || dynamic_array[ni.number - 1] != 543);
7416
7417 ;
7418 return 0;
7419}
7420_ACEOF
7421for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7422do
7423 CC="$ac_save_CC $ac_arg"
7424 if ac_fn_c_try_compile "$LINENO"; then :
7425 ac_cv_prog_cc_c99=$ac_arg
7426fi
7427rm -f core conftest.err conftest.$ac_objext
7428 test "x$ac_cv_prog_cc_c99" != "xno" && break
7429done
7430rm -f conftest.$ac_ext
7431CC=$ac_save_CC
7432
7433fi
7434# AC_CACHE_VAL
7435case "x$ac_cv_prog_cc_c99" in
7436 x)
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7438$as_echo "none needed" >&6; } ;;
7439 xno)
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7441$as_echo "unsupported" >&6; } ;;
7442 *)
7443 CC="$CC $ac_cv_prog_cc_c99"
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7445$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7446esac
7447if test "x$ac_cv_prog_cc_c99" != xno; then :
7448
7449fi
7450
7451
cristy3ed852e2009-09-05 21:47:34 +00007452if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00007453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007454$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7455else
cristy8b350f62009-11-15 23:12:43 +00007456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007457$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7458fi
7459set dummy $CC; ac_cc=`$as_echo "$2" |
7460 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyf6fcb5d2010-09-24 01:19:13 +00007461if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00007462 $as_echo_n "(cached) " >&6
7463else
cristy8b350f62009-11-15 23:12:43 +00007464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007465/* end confdefs.h. */
7466
7467int
7468main ()
7469{
7470
7471 ;
7472 return 0;
7473}
7474_ACEOF
7475# Make sure it works both with $CC and with simple cc.
7476# We do the test twice because some compilers refuse to overwrite an
7477# existing .o file with -o, though they will create one.
7478ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7479rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007480if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7482 *) ac_try_echo=$ac_try;;
7483esac
cristy8b350f62009-11-15 23:12:43 +00007484eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7485$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007486 (eval "$ac_try") 2>&5
7487 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7489 test $ac_status = 0; } &&
7490 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7492 *) ac_try_echo=$ac_try;;
7493esac
cristy8b350f62009-11-15 23:12:43 +00007494eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7495$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007496 (eval "$ac_try") 2>&5
7497 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7499 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007500then
7501 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7502 if test "x$CC" != xcc; then
7503 # Test first that cc exists at all.
7504 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00007505 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7507 *) ac_try_echo=$ac_try;;
7508esac
cristy8b350f62009-11-15 23:12:43 +00007509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7510$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007511 (eval "$ac_try") 2>&5
7512 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7514 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00007515 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7516 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007517 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7519 *) ac_try_echo=$ac_try;;
7520esac
cristy8b350f62009-11-15 23:12:43 +00007521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7522$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007523 (eval "$ac_try") 2>&5
7524 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7526 test $ac_status = 0; } &&
7527 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7529 *) ac_try_echo=$ac_try;;
7530esac
cristy8b350f62009-11-15 23:12:43 +00007531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7532$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007533 (eval "$ac_try") 2>&5
7534 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7536 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007537 then
7538 # cc works too.
7539 :
7540 else
7541 # cc exists but doesn't like -o.
7542 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7543 fi
7544 fi
7545 fi
7546else
7547 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7548fi
7549rm -f core conftest*
7550
7551fi
7552if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00007553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007554$as_echo "yes" >&6; }
7555else
cristy8b350f62009-11-15 23:12:43 +00007556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007557$as_echo "no" >&6; }
7558
cristy8b350f62009-11-15 23:12:43 +00007559$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007560
7561fi
7562
7563# FIXME: we rely on the cache variable name because
7564# there is no other way.
7565set dummy $CC
7566am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7567eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7568if test "$am_t" != yes; then
7569 # Losing compiler, so override with the script.
7570 # FIXME: It is wrong to rewrite CC.
7571 # But if we don't then we get into trouble of one sort or another.
7572 # A longer-term fix would be to have automake use am__CC in this case,
7573 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7574 CC="$am_aux_dir/compile $CC"
7575fi
7576
7577
cristy92703d82010-04-26 00:18:18 +00007578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7579$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7580if test "${ac_cv_cflags_warn_all+set}" = set; then :
7581 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00007582else
cristy92703d82010-04-26 00:18:18 +00007583 ac_cv_cflags_warn_all="no, unknown"
7584
7585 ac_ext=c
7586ac_cpp='$CPP $CPPFLAGS'
7587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7589ac_compiler_gnu=$ac_cv_c_compiler_gnu
7590
7591 ac_save_CFLAGS="$CFLAGS"
7592for 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" #
7593do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595/* end confdefs.h. */
7596
7597int
7598main ()
7599{
7600return 0;
7601 ;
7602 return 0;
7603}
7604_ACEOF
7605if ac_fn_c_try_compile "$LINENO"; then :
7606 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
cristy3ed852e2009-09-05 21:47:34 +00007607fi
cristy92703d82010-04-26 00:18:18 +00007608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7609done
7610 CFLAGS="$ac_save_CFLAGS"
7611 ac_ext=c
7612ac_cpp='$CPP $CPPFLAGS'
7613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7615ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00007616
7617
cristy92703d82010-04-26 00:18:18 +00007618fi
7619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7620$as_echo "$ac_cv_cflags_warn_all" >&6; }
7621case ".$ac_cv_cflags_warn_all" in
7622 .ok|.ok,*) ;;
7623 .|.no|.no,*)
7624 ;;
7625 *)
7626 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7627 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7628 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7629 ac_status=$?
7630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7631 test $ac_status = 0; }
7632 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7633 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7634 ac_status=$?
7635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7636 test $ac_status = 0; }
7637 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7638 fi
7639 ;;
7640esac
cristy3ed852e2009-09-05 21:47:34 +00007641
cristya0b81c32010-01-22 02:54:33 +00007642
7643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7644$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7645set x ${MAKE-make}
7646ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyf6fcb5d2010-09-24 01:19:13 +00007647if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristya0b81c32010-01-22 02:54:33 +00007648 $as_echo_n "(cached) " >&6
7649else
7650 cat >conftest.make <<\_ACEOF
7651SHELL = /bin/sh
7652all:
7653 @echo '@@@%%%=$(MAKE)=@@@%%%'
7654_ACEOF
cristyf6fcb5d2010-09-24 01:19:13 +00007655# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007656case `${MAKE-make} -f conftest.make 2>/dev/null` in
7657 *@@@%%%=?*=@@@%%%*)
7658 eval ac_cv_prog_make_${ac_make}_set=yes;;
7659 *)
7660 eval ac_cv_prog_make_${ac_make}_set=no;;
7661esac
7662rm -f conftest.make
7663fi
7664if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7666$as_echo "yes" >&6; }
7667 SET_MAKE=
7668else
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670$as_echo "no" >&6; }
7671 SET_MAKE="MAKE=${MAKE-make}"
7672fi
7673
cristy8b350f62009-11-15 23:12:43 +00007674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007675$as_echo_n "checking whether ln -s works... " >&6; }
7676LN_S=$as_ln_s
7677if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007679$as_echo "yes" >&6; }
7680else
cristy8b350f62009-11-15 23:12:43 +00007681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007682$as_echo "no, using $LN_S" >&6; }
7683fi
7684
cristy8b350f62009-11-15 23:12:43 +00007685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00007686$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7687
7688# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00007689if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007690 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007692$as_echo "yes" >&6; }
7693
cristy8b350f62009-11-15 23:12:43 +00007694$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007695
7696 LIBS="$LIBS -ldmalloc"
7697 LDFLAGS="$LDFLAGS -g"
7698else
cristy8b350f62009-11-15 23:12:43 +00007699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007700$as_echo "no" >&6; }
7701fi
7702else
cristy8b350f62009-11-15 23:12:43 +00007703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007704$as_echo "no" >&6; }
7705fi
7706
7707
7708
cristy0d3a6382010-04-26 00:45:55 +00007709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7710$as_echo_n "checking for __attribute__... " >&6; }
7711if test "${ax_cv___attribute__+set}" = set; then :
7712 $as_echo_n "(cached) " >&6
7713else
7714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715/* end confdefs.h. */
7716#include <stdlib.h>
7717 static void foo(void) __attribute__ ((unused));
7718 static void
7719 foo(void) {
7720 exit(1);
7721 }
7722
7723int
7724main ()
7725{
7726
7727 ;
7728 return 0;
7729}
7730_ACEOF
7731if ac_fn_c_try_compile "$LINENO"; then :
7732 ax_cv___attribute__=yes
7733else
7734 ax_cv___attribute__=no
7735
7736fi
7737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7738
7739fi
7740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7741$as_echo "$ax_cv___attribute__" >&6; }
7742 if test "$ax_cv___attribute__" = "yes"; then
7743
7744$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7745
7746 fi
7747
7748
cristy3ed852e2009-09-05 21:47:34 +00007749
7750if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7751 if test -n "$ac_tool_prefix"; then
7752 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7753set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007755$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007756if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007757 $as_echo_n "(cached) " >&6
7758else
7759 case $PKG_CONFIG in
7760 [\\/]* | ?:[\\/]*)
7761 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7762 ;;
7763 *)
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765for as_dir in $PATH
7766do
7767 IFS=$as_save_IFS
7768 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007769 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7771 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007773 break 2
7774 fi
7775done
cristy8b350f62009-11-15 23:12:43 +00007776 done
cristy3ed852e2009-09-05 21:47:34 +00007777IFS=$as_save_IFS
7778
7779 ;;
7780esac
7781fi
7782PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7783if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007785$as_echo "$PKG_CONFIG" >&6; }
7786else
cristy8b350f62009-11-15 23:12:43 +00007787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007788$as_echo "no" >&6; }
7789fi
7790
7791
7792fi
7793if test -z "$ac_cv_path_PKG_CONFIG"; then
7794 ac_pt_PKG_CONFIG=$PKG_CONFIG
7795 # Extract the first word of "pkg-config", so it can be a program name with args.
7796set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007798$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007799if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007800 $as_echo_n "(cached) " >&6
7801else
7802 case $ac_pt_PKG_CONFIG in
7803 [\\/]* | ?:[\\/]*)
7804 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7805 ;;
7806 *)
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808for as_dir in $PATH
7809do
7810 IFS=$as_save_IFS
7811 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007812 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7814 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007816 break 2
7817 fi
7818done
cristy8b350f62009-11-15 23:12:43 +00007819 done
cristy3ed852e2009-09-05 21:47:34 +00007820IFS=$as_save_IFS
7821
7822 ;;
7823esac
7824fi
7825ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7826if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007828$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7829else
cristy8b350f62009-11-15 23:12:43 +00007830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007831$as_echo "no" >&6; }
7832fi
7833
7834 if test "x$ac_pt_PKG_CONFIG" = x; then
7835 PKG_CONFIG=""
7836 else
7837 case $cross_compiling:$ac_tool_warned in
7838yes:)
cristy8b350f62009-11-15 23:12:43 +00007839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00007840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7841ac_tool_warned=yes ;;
7842esac
7843 PKG_CONFIG=$ac_pt_PKG_CONFIG
7844 fi
7845else
7846 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7847fi
7848
7849fi
7850if test -n "$PKG_CONFIG"; then
7851 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00007852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00007853$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7854 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00007855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007856$as_echo "yes" >&6; }
7857 else
cristy8b350f62009-11-15 23:12:43 +00007858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007859$as_echo "no" >&6; }
7860 PKG_CONFIG=""
7861 fi
7862
7863fi
7864
7865#
cristy3ed852e2009-09-05 21:47:34 +00007866# Enable run-time checking.
7867#
7868# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007869if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007870 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7871else
7872 enable_bounds_checking='no'
7873fi
7874
7875
7876if test "$enable_bounds_checking" = yes; then
7877
cristy8b350f62009-11-15 23:12:43 +00007878$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007879
7880fi
7881
7882#
7883# Tests for Windows
7884#
7885
7886
cristy0d3a6382010-04-26 00:45:55 +00007887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7888$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7889if test "${ax_cv_c_compiler_ms+set}" = set; then :
7890 $as_echo_n "(cached) " >&6
7891else
7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893/* end confdefs.h. */
7894
7895int
7896main ()
7897{
7898#ifndef _MSC_VER
7899 choke me
7900#endif
7901
7902 ;
7903 return 0;
7904}
7905_ACEOF
7906if ac_fn_c_try_compile "$LINENO"; then :
7907 ax_compiler_ms=yes
7908else
7909 ax_compiler_ms=no
7910fi
7911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7912ax_cv_c_compiler_ms=$ax_compiler_ms
7913
7914fi
7915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7916$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00007917
7918GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007919native_win32_build='no'
7920cygwin_build='no'
7921case "${host_os}" in
7922 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007923 cygwin_build='yes'
7924 GDI32_LIBS='-lgdi32'
7925 ;;
7926 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007927 native_win32_build='yes'
7928 GDI32_LIBS='-lgdi32'
7929 ;;
7930esac
7931if test "${GDI32_LIBS}x" != 'x'; then
7932
cristy8b350f62009-11-15 23:12:43 +00007933$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007934
7935fi
7936
7937 if test "${GDI32_LIBS}x" != 'x' ; then
7938 WINGDI32_DELEGATE_TRUE=
7939 WINGDI32_DELEGATE_FALSE='#'
7940else
7941 WINGDI32_DELEGATE_TRUE='#'
7942 WINGDI32_DELEGATE_FALSE=
7943fi
7944
7945 if test "${native_win32_build}" = 'yes' ; then
7946 WIN32_NATIVE_BUILD_TRUE=
7947 WIN32_NATIVE_BUILD_FALSE='#'
7948else
7949 WIN32_NATIVE_BUILD_TRUE='#'
7950 WIN32_NATIVE_BUILD_FALSE=
7951fi
7952
7953 if test "${cygwin_build}" = 'yes' ; then
7954 CYGWIN_BUILD_TRUE=
7955 CYGWIN_BUILD_FALSE='#'
7956else
7957 CYGWIN_BUILD_TRUE='#'
7958 CYGWIN_BUILD_FALSE=
7959fi
7960
7961 if test "x${CC}" = 'xcl.exe' ; then
7962 USING_CL_TRUE=
7963 USING_CL_FALSE='#'
7964else
7965 USING_CL_TRUE='#'
7966 USING_CL_FALSE=
7967fi
7968
7969
7970WinPathScript="${srcdirfull}/winpath.sh"
7971
7972
7973#
7974# Compiler flags tweaks
7975#
7976if test "${GCC}" != "yes"; then
7977 case "${host}" in
7978 *-*-hpux* )
7979 # aCC: HP ANSI C++ B3910B A.03.34
7980 CFLAGS="${CFLAGS} -Wp,-H30000"
7981 if test -n "${CXXFLAGS}"; then
7982 CXXFLAGS='-AA'
7983 else
7984 CXXFLAGS="${CXXFLAGS} -AA"
7985 fi
7986 ;;
7987 *-dec-osf5.* )
7988 # Compaq alphaev68-dec-osf5.1 compiler
7989 if test -n "${CXXFLAGS}"; then
7990 CXXFLAGS='-std strict_ansi -noimplicit_include'
7991 else
7992 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
7993 fi
7994 esac
7995fi
7996
7997# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00007998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00007999$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008000if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008001 $as_echo_n "(cached) " >&6
8002else
8003
8004im_cv_ld_lazyload='none'
8005case "${host}" in
8006 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8007 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8008 im_cv_ld_lazyload='-Wl,-zlazyload'
8009 fi
8010 ;;
8011esac
8012
8013fi
cristy8b350f62009-11-15 23:12:43 +00008014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008015$as_echo "$im_cv_ld_lazyload" >&6; }
8016if test "${im_cv_ld_lazyload}" != 'none' ; then
8017 if test -z "${LDFLAGS}" ; then
8018 LDFLAGS="${im_cv_ld_lazyload}"
8019 else
8020 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8021 fi
8022fi
8023
8024case "$host" in
8025*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008026 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008027if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008028 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8029else
8030 build_osxuniversal=no
8031fi
8032
8033
8034 if test "${build_osxuniversal}" != no ; then
8035 if test "$enable_dependency_tracking" != no ; then
cristyf6fcb5d2010-09-24 01:19:13 +00008036 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008037Please re-run configure with these options:
8038 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008039 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008040 fi
8041 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8042 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8043 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8044 fi
8045 ;;
8046esac
8047
8048# Enable support for threads
8049
8050# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008051if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008052 withval=$with_threads; with_threads=$withval
8053else
8054 with_threads='yes'
8055fi
8056
8057
8058have_threads=no
8059if test "$with_threads" != 'no'; then
8060
8061
8062
8063ac_ext=c
8064ac_cpp='$CPP $CPPFLAGS'
8065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8067ac_compiler_gnu=$ac_cv_c_compiler_gnu
8068
cristy964cb7f2010-04-25 23:18:00 +00008069ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008070
8071# We used to check for pthread.h first, but this fails if pthread.h
8072# requires special compiler flags (e.g. on True64 or Sequent).
8073# It gets checked for in the link test anyway.
8074
8075# First of all, check if the user has set any of the PTHREAD_LIBS,
8076# etcetera environment variables, and if threads linking works using
8077# them:
8078if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8079 save_CFLAGS="$CFLAGS"
8080 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8081 save_LIBS="$LIBS"
8082 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00008083 { $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 +00008084$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008086/* end confdefs.h. */
8087
8088/* Override any GCC internal prototype to avoid an error.
8089 Use char because int might match the return type of a GCC
8090 builtin and then its argument prototype would still apply. */
8091#ifdef __cplusplus
8092extern "C"
8093#endif
8094char pthread_join ();
8095int
8096main ()
8097{
8098return pthread_join ();
8099 ;
8100 return 0;
8101}
8102_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008103if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008104 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008105fi
cristy8b350f62009-11-15 23:12:43 +00008106rm -f core conftest.err conftest.$ac_objext \
8107 conftest$ac_exeext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +00008108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8109$as_echo "$ax_pthread_ok" >&6; }
8110 if test x"$ax_pthread_ok" = xno; then
cristy3ed852e2009-09-05 21:47:34 +00008111 PTHREAD_LIBS=""
8112 PTHREAD_CFLAGS=""
8113 fi
8114 LIBS="$save_LIBS"
8115 CFLAGS="$save_CFLAGS"
8116fi
8117
8118# We must check for the threads library under a number of different
8119# names; the ordering is very important because some systems
8120# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8121# libraries is broken (non-POSIX).
8122
8123# Create a list of thread flags to try. Items starting with a "-" are
8124# C compiler flags, and other items are library names, except for "none"
8125# which indicates that we try without any flags at all, and "pthread-config"
8126# which is a program returning the flags for the Pth emulation library.
8127
cristy964cb7f2010-04-25 23:18:00 +00008128ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy3ed852e2009-09-05 21:47:34 +00008129
8130# The ordering *is* (sometimes) important. Some notes on the
8131# individual items follow:
8132
8133# pthreads: AIX (must check this before -lpthread)
8134# none: in case threads are in libc; should be tried before -Kthread and
8135# other compiler flags to prevent continual compiler warnings
8136# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8137# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8138# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8139# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8140# -pthreads: Solaris/gcc
8141# -mthreads: Mingw32/gcc, Lynx/gcc
8142# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8143# doesn't hurt to check since this sometimes defines pthreads too;
8144# also defines -D_REENTRANT)
8145# ... -mt is also the pthreads flag for HP/aCC
8146# pthread: Linux, etcetera
8147# --thread-safe: KAI C++
8148# pthread-config: use pthread-config program (for GNU Pth library)
8149
8150case "${host_cpu}-${host_os}" in
8151 *solaris*)
8152
8153 # On Solaris (at least, for some versions), libc contains stubbed
8154 # (non-functional) versions of the pthreads routines, so link-based
8155 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8156 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8157 # a function called by this macro, so we could check for that, but
8158 # who knows whether they'll stub that too in a future libc.) So,
8159 # we'll just look for -pthreads and -lpthread first:
8160
cristy964cb7f2010-04-25 23:18:00 +00008161 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
cristy3ed852e2009-09-05 21:47:34 +00008162 ;;
cristy964cb7f2010-04-25 23:18:00 +00008163
8164 *-darwin*)
cristy3b472e52010-09-23 16:11:43 +00008165 ax_pthread_flags="-pthread $ax_pthread_flags"
cristy964cb7f2010-04-25 23:18:00 +00008166 ;;
cristy3ed852e2009-09-05 21:47:34 +00008167esac
8168
cristy964cb7f2010-04-25 23:18:00 +00008169if test x"$ax_pthread_ok" = xno; then
8170for flag in $ax_pthread_flags; do
cristy3ed852e2009-09-05 21:47:34 +00008171
8172 case $flag in
8173 none)
cristy8b350f62009-11-15 23:12:43 +00008174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00008175$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8176 ;;
8177
8178 -*)
cristy8b350f62009-11-15 23:12:43 +00008179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008180$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8181 PTHREAD_CFLAGS="$flag"
8182 ;;
8183
8184 pthread-config)
8185 # Extract the first word of "pthread-config", so it can be a program name with args.
8186set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008188$as_echo_n "checking for $ac_word... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +00008189if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008190 $as_echo_n "(cached) " >&6
8191else
cristy964cb7f2010-04-25 23:18:00 +00008192 if test -n "$ax_pthread_config"; then
8193 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
cristy3ed852e2009-09-05 21:47:34 +00008194else
8195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8196for as_dir in $PATH
8197do
8198 IFS=$as_save_IFS
8199 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008200 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008201 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 +00008202 ac_cv_prog_ax_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00008203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008204 break 2
8205 fi
8206done
cristy8b350f62009-11-15 23:12:43 +00008207 done
cristy3ed852e2009-09-05 21:47:34 +00008208IFS=$as_save_IFS
8209
cristy964cb7f2010-04-25 23:18:00 +00008210 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
cristy3ed852e2009-09-05 21:47:34 +00008211fi
8212fi
cristy964cb7f2010-04-25 23:18:00 +00008213ax_pthread_config=$ac_cv_prog_ax_pthread_config
8214if test -n "$ax_pthread_config"; then
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8216$as_echo "$ax_pthread_config" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008217else
cristy8b350f62009-11-15 23:12:43 +00008218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008219$as_echo "no" >&6; }
8220fi
8221
8222
cristy964cb7f2010-04-25 23:18:00 +00008223 if test x"$ax_pthread_config" = xno; then continue; fi
cristy3ed852e2009-09-05 21:47:34 +00008224 PTHREAD_CFLAGS="`pthread-config --cflags`"
8225 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8226 ;;
8227
8228 *)
cristy8b350f62009-11-15 23:12:43 +00008229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008230$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8231 PTHREAD_LIBS="-l$flag"
8232 ;;
8233 esac
8234
8235 save_LIBS="$LIBS"
8236 save_CFLAGS="$CFLAGS"
8237 LIBS="$PTHREAD_LIBS $LIBS"
8238 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8239
8240 # Check for various functions. We must include pthread.h,
8241 # since some functions may be macros. (On the Sequent, we
8242 # need a special flag -Kthread to make this header compile.)
8243 # We check for pthread_join because it is in -lpthread on IRIX
8244 # while pthread_create is in libc. We check for pthread_attr_init
8245 # due to DEC craziness with -lpthreads. We check for
8246 # pthread_cleanup_push because it is one of the few pthread
8247 # functions on Solaris that doesn't have a non-functional libc stub.
8248 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00008249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008250/* end confdefs.h. */
8251#include <pthread.h>
cristy964cb7f2010-04-25 23:18:00 +00008252 static void routine(void* a) {a=0;}
8253 static void* start_routine(void* a) {return a;}
cristy3ed852e2009-09-05 21:47:34 +00008254int
8255main ()
8256{
cristy964cb7f2010-04-25 23:18:00 +00008257pthread_t th; pthread_attr_t attr;
cristy3b472e52010-09-23 16:11:43 +00008258 pthread_create(&th,0,start_routine,0);
cristy964cb7f2010-04-25 23:18:00 +00008259 pthread_join(th, 0);
8260 pthread_attr_init(&attr);
8261 pthread_cleanup_push(routine, 0);
cristy964cb7f2010-04-25 23:18:00 +00008262 pthread_cleanup_pop(0);
cristy3ed852e2009-09-05 21:47:34 +00008263 ;
8264 return 0;
8265}
8266_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008267if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008268 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008269fi
cristy8b350f62009-11-15 23:12:43 +00008270rm -f core conftest.err conftest.$ac_objext \
8271 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008272
8273 LIBS="$save_LIBS"
8274 CFLAGS="$save_CFLAGS"
8275
cristy964cb7f2010-04-25 23:18:00 +00008276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8277$as_echo "$ax_pthread_ok" >&6; }
8278 if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008279 break;
8280 fi
8281
8282 PTHREAD_LIBS=""
8283 PTHREAD_CFLAGS=""
8284done
8285fi
8286
8287# Various other checks:
cristy964cb7f2010-04-25 23:18:00 +00008288if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008289 save_LIBS="$LIBS"
8290 LIBS="$PTHREAD_LIBS $LIBS"
8291 save_CFLAGS="$CFLAGS"
8292 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8293
8294 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00008295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00008296$as_echo_n "checking for joinable pthread attribute... " >&6; }
8297 attr_name=unknown
8298 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00008299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008300/* end confdefs.h. */
8301#include <pthread.h>
8302int
8303main ()
8304{
8305int attr=$attr; return attr;
8306 ;
8307 return 0;
8308}
8309_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008310if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008311 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00008312fi
cristy8b350f62009-11-15 23:12:43 +00008313rm -f core conftest.err conftest.$ac_objext \
8314 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008315 done
cristy8b350f62009-11-15 23:12:43 +00008316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00008317$as_echo "$attr_name" >&6; }
8318 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8319
8320cat >>confdefs.h <<_ACEOF
8321#define PTHREAD_CREATE_JOINABLE $attr_name
8322_ACEOF
8323
8324 fi
8325
cristy8b350f62009-11-15 23:12:43 +00008326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00008327$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8328 flag=no
8329 case "${host_cpu}-${host_os}" in
8330 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8331 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8332 esac
cristy8b350f62009-11-15 23:12:43 +00008333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00008334$as_echo "${flag}" >&6; }
8335 if test "x$flag" != xno; then
8336 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8337 fi
8338
8339 LIBS="$save_LIBS"
8340 CFLAGS="$save_CFLAGS"
8341
8342 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00008343 if test x"$GCC" != xyes; then
8344 for ac_prog in xlc_r cc_r
8345do
8346 # Extract the first word of "$ac_prog", so it can be a program name with args.
8347set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008349$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008350if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008351 $as_echo_n "(cached) " >&6
8352else
8353 if test -n "$PTHREAD_CC"; then
8354 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8355else
8356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8357for as_dir in $PATH
8358do
8359 IFS=$as_save_IFS
8360 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008361 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008362 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 +00008363 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008365 break 2
8366 fi
8367done
cristy8b350f62009-11-15 23:12:43 +00008368 done
cristy3ed852e2009-09-05 21:47:34 +00008369IFS=$as_save_IFS
8370
cristy3ed852e2009-09-05 21:47:34 +00008371fi
8372fi
8373PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8374if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008376$as_echo "$PTHREAD_CC" >&6; }
8377else
cristy8b350f62009-11-15 23:12:43 +00008378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008379$as_echo "no" >&6; }
8380fi
8381
cristy736173a2009-09-20 21:18:22 +00008382
8383 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00008384done
cristy736173a2009-09-20 21:18:22 +00008385test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00008386
cristy736173a2009-09-20 21:18:22 +00008387 else
8388 PTHREAD_CC=$CC
8389 fi
cristy3ed852e2009-09-05 21:47:34 +00008390else
cristy736173a2009-09-20 21:18:22 +00008391 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00008392fi
8393
cristy3ed852e2009-09-05 21:47:34 +00008394
8395
8396
8397
8398# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
cristy964cb7f2010-04-25 23:18:00 +00008399if test x"$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008400
cristy8b350f62009-11-15 23:12:43 +00008401$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008402
8403 :
8404else
cristy964cb7f2010-04-25 23:18:00 +00008405 ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008406
8407fi
8408ac_ext=c
8409ac_cpp='$CPP $CPPFLAGS'
8410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8412ac_compiler_gnu=$ac_cv_c_compiler_gnu
8413
8414
cristy7acf8fb2010-09-23 19:58:53 +00008415 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008416 have_threads=yes
8417 DEF_THREAD="$PTHREAD_CFLAGS"
8418 CFLAGS="$CFLAGS $DEF_THREAD"
8419 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8420 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008421 { $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 +00008422$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8423 CC="$PTHREAD_CC"
8424 fi
cristyb9de14a2010-09-23 16:02:17 +00008425 if test "$CXX" != "$PTHREAD_CXX"; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&5
8427$as_echo "$as_me: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&2;}
8428 CXX="$PTHREAD_CXX"
8429 fi
cristy55bf91c2010-09-24 00:29:41 +00008430
8431$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8432
cristy3ed852e2009-09-05 21:47:34 +00008433 fi
8434fi
8435
8436# Enable support for OpenMP
8437if test "$have_threads" != 'yes'; then
8438 ac_cv_prog_c_openmp=unsupported
8439fi
8440
8441 OPENMP_CFLAGS=
8442 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008443if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008444 enableval=$enable_openmp;
8445fi
8446
8447 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008449$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008450if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008451 $as_echo_n "(cached) " >&6
8452else
cristy8b350f62009-11-15 23:12:43 +00008453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008455
8456#ifndef _OPENMP
8457 choke me
8458#endif
8459#include <omp.h>
8460int main () { return omp_get_num_threads (); }
8461
8462_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008463if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008464 ac_cv_prog_c_openmp='none needed'
8465else
cristy8b350f62009-11-15 23:12:43 +00008466 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008467 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8468 ac_save_CFLAGS=$CFLAGS
8469 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008472
8473#ifndef _OPENMP
8474 choke me
8475#endif
8476#include <omp.h>
8477int main () { return omp_get_num_threads (); }
8478
8479_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008480if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008481 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008482fi
cristy8b350f62009-11-15 23:12:43 +00008483rm -f core conftest.err conftest.$ac_objext \
8484 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008485 CFLAGS=$ac_save_CFLAGS
8486 if test "$ac_cv_prog_c_openmp" != unsupported; then
8487 break
8488 fi
8489 done
8490fi
cristy8b350f62009-11-15 23:12:43 +00008491rm -f core conftest.err conftest.$ac_objext \
8492 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008493fi
cristy8b350f62009-11-15 23:12:43 +00008494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008495$as_echo "$ac_cv_prog_c_openmp" >&6; }
8496 case $ac_cv_prog_c_openmp in #(
8497 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008498 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008499 *)
cristy8b350f62009-11-15 23:12:43 +00008500 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008501 esac
8502 fi
8503
8504
8505CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8506MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8507
cristy391f1ce2010-09-09 17:23:28 +00008508if test "$enable_openmp" != no; then
8509 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8510 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8511 fi
8512fi
cristy3ed852e2009-09-05 21:47:34 +00008513
cristy736173a2009-09-20 21:18:22 +00008514# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00008515
cristy7acf8fb2010-09-23 19:58:53 +00008516
8517
8518ac_ext=c
8519ac_cpp='$CPP $CPPFLAGS'
8520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8522ac_compiler_gnu=$ac_cv_c_compiler_gnu
8523
8524ax_pthread_ok=no
8525
8526# We used to check for pthread.h first, but this fails if pthread.h
8527# requires special compiler flags (e.g. on True64 or Sequent).
8528# It gets checked for in the link test anyway.
8529
8530# First of all, check if the user has set any of the PTHREAD_LIBS,
8531# etcetera environment variables, and if threads linking works using
8532# them:
8533if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8534 save_CFLAGS="$CFLAGS"
8535 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8536 save_LIBS="$LIBS"
8537 LIBS="$PTHREAD_LIBS $LIBS"
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8539$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541/* end confdefs.h. */
8542
8543/* Override any GCC internal prototype to avoid an error.
8544 Use char because int might match the return type of a GCC
8545 builtin and then its argument prototype would still apply. */
8546#ifdef __cplusplus
8547extern "C"
8548#endif
8549char pthread_join ();
8550int
8551main ()
8552{
8553return pthread_join ();
8554 ;
8555 return 0;
8556}
8557_ACEOF
8558if ac_fn_c_try_link "$LINENO"; then :
8559 ax_pthread_ok=yes
8560fi
8561rm -f core conftest.err conftest.$ac_objext \
8562 conftest$ac_exeext conftest.$ac_ext
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8564$as_echo "$ax_pthread_ok" >&6; }
8565 if test x"$ax_pthread_ok" = xno; then
8566 PTHREAD_LIBS=""
8567 PTHREAD_CFLAGS=""
8568 fi
8569 LIBS="$save_LIBS"
8570 CFLAGS="$save_CFLAGS"
8571fi
8572
8573# We must check for the threads library under a number of different
8574# names; the ordering is very important because some systems
8575# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8576# libraries is broken (non-POSIX).
8577
8578# Create a list of thread flags to try. Items starting with a "-" are
8579# C compiler flags, and other items are library names, except for "none"
8580# which indicates that we try without any flags at all, and "pthread-config"
8581# which is a program returning the flags for the Pth emulation library.
8582
8583ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8584
8585# The ordering *is* (sometimes) important. Some notes on the
8586# individual items follow:
8587
8588# pthreads: AIX (must check this before -lpthread)
8589# none: in case threads are in libc; should be tried before -Kthread and
8590# other compiler flags to prevent continual compiler warnings
8591# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8592# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8593# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8594# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8595# -pthreads: Solaris/gcc
8596# -mthreads: Mingw32/gcc, Lynx/gcc
8597# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8598# doesn't hurt to check since this sometimes defines pthreads too;
8599# also defines -D_REENTRANT)
8600# ... -mt is also the pthreads flag for HP/aCC
8601# pthread: Linux, etcetera
8602# --thread-safe: KAI C++
8603# pthread-config: use pthread-config program (for GNU Pth library)
8604
8605case "${host_cpu}-${host_os}" in
8606 *solaris*)
8607
8608 # On Solaris (at least, for some versions), libc contains stubbed
8609 # (non-functional) versions of the pthreads routines, so link-based
8610 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8611 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8612 # a function called by this macro, so we could check for that, but
8613 # who knows whether they'll stub that too in a future libc.) So,
8614 # we'll just look for -pthreads and -lpthread first:
8615
8616 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8617 ;;
8618
8619 *-darwin*)
8620 ax_pthread_flags="-pthread $ax_pthread_flags"
8621 ;;
8622esac
8623
8624if test x"$ax_pthread_ok" = xno; then
8625for flag in $ax_pthread_flags; do
8626
8627 case $flag in
8628 none)
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8630$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8631 ;;
8632
8633 -*)
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8635$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8636 PTHREAD_CFLAGS="$flag"
8637 ;;
8638
8639 pthread-config)
8640 # Extract the first word of "pthread-config", so it can be a program name with args.
8641set dummy pthread-config; ac_word=$2
8642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8643$as_echo_n "checking for $ac_word... " >&6; }
8644if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8645 $as_echo_n "(cached) " >&6
8646else
8647 if test -n "$ax_pthread_config"; then
8648 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8649else
8650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8651for as_dir in $PATH
8652do
8653 IFS=$as_save_IFS
8654 test -z "$as_dir" && as_dir=.
8655 for ac_exec_ext in '' $ac_executable_extensions; do
8656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8657 ac_cv_prog_ax_pthread_config="yes"
8658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8659 break 2
8660 fi
8661done
8662 done
8663IFS=$as_save_IFS
8664
8665 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8666fi
8667fi
8668ax_pthread_config=$ac_cv_prog_ax_pthread_config
8669if test -n "$ax_pthread_config"; then
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8671$as_echo "$ax_pthread_config" >&6; }
8672else
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8674$as_echo "no" >&6; }
8675fi
8676
8677
8678 if test x"$ax_pthread_config" = xno; then continue; fi
8679 PTHREAD_CFLAGS="`pthread-config --cflags`"
8680 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8681 ;;
8682
8683 *)
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8685$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8686 PTHREAD_LIBS="-l$flag"
8687 ;;
8688 esac
8689
8690 save_LIBS="$LIBS"
8691 save_CFLAGS="$CFLAGS"
8692 LIBS="$PTHREAD_LIBS $LIBS"
8693 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8694
8695 # Check for various functions. We must include pthread.h,
8696 # since some functions may be macros. (On the Sequent, we
8697 # need a special flag -Kthread to make this header compile.)
8698 # We check for pthread_join because it is in -lpthread on IRIX
8699 # while pthread_create is in libc. We check for pthread_attr_init
8700 # due to DEC craziness with -lpthreads. We check for
8701 # pthread_cleanup_push because it is one of the few pthread
8702 # functions on Solaris that doesn't have a non-functional libc stub.
8703 # We try pthread_create on general principles.
8704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705/* end confdefs.h. */
8706#include <pthread.h>
8707 static void routine(void* a) {a=0;}
8708 static void* start_routine(void* a) {return a;}
8709int
8710main ()
8711{
8712pthread_t th; pthread_attr_t attr;
8713 pthread_create(&th,0,start_routine,0);
8714 pthread_join(th, 0);
8715 pthread_attr_init(&attr);
8716 pthread_cleanup_push(routine, 0);
8717 pthread_cleanup_pop(0);
8718 ;
8719 return 0;
8720}
8721_ACEOF
8722if ac_fn_c_try_link "$LINENO"; then :
8723 ax_pthread_ok=yes
8724fi
8725rm -f core conftest.err conftest.$ac_objext \
8726 conftest$ac_exeext conftest.$ac_ext
8727
8728 LIBS="$save_LIBS"
8729 CFLAGS="$save_CFLAGS"
8730
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8732$as_echo "$ax_pthread_ok" >&6; }
8733 if test "x$ax_pthread_ok" = xyes; then
8734 break;
8735 fi
8736
8737 PTHREAD_LIBS=""
8738 PTHREAD_CFLAGS=""
8739done
8740fi
8741
8742# Various other checks:
8743if test "x$ax_pthread_ok" = xyes; then
8744 save_LIBS="$LIBS"
8745 LIBS="$PTHREAD_LIBS $LIBS"
8746 save_CFLAGS="$CFLAGS"
8747 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8748
8749 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8751$as_echo_n "checking for joinable pthread attribute... " >&6; }
8752 attr_name=unknown
8753 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755/* end confdefs.h. */
8756#include <pthread.h>
8757int
8758main ()
8759{
8760int attr=$attr; return attr;
8761 ;
8762 return 0;
8763}
8764_ACEOF
8765if ac_fn_c_try_link "$LINENO"; then :
8766 attr_name=$attr; break
8767fi
8768rm -f core conftest.err conftest.$ac_objext \
8769 conftest$ac_exeext conftest.$ac_ext
8770 done
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8772$as_echo "$attr_name" >&6; }
8773 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8774
8775cat >>confdefs.h <<_ACEOF
8776#define PTHREAD_CREATE_JOINABLE $attr_name
8777_ACEOF
8778
8779 fi
8780
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8782$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8783 flag=no
8784 case "${host_cpu}-${host_os}" in
8785 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8786 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8787 esac
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8789$as_echo "${flag}" >&6; }
8790 if test "x$flag" != xno; then
8791 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8792 fi
8793
8794 LIBS="$save_LIBS"
8795 CFLAGS="$save_CFLAGS"
8796
8797 # More AIX lossage: must compile with xlc_r or cc_r
8798 if test x"$GCC" != xyes; then
8799 for ac_prog in xlc_r cc_r
8800do
8801 # Extract the first word of "$ac_prog", so it can be a program name with args.
8802set dummy $ac_prog; ac_word=$2
8803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8804$as_echo_n "checking for $ac_word... " >&6; }
8805if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8806 $as_echo_n "(cached) " >&6
8807else
8808 if test -n "$PTHREAD_CC"; then
8809 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8810else
8811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8812for as_dir in $PATH
8813do
8814 IFS=$as_save_IFS
8815 test -z "$as_dir" && as_dir=.
8816 for ac_exec_ext in '' $ac_executable_extensions; do
8817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8818 ac_cv_prog_PTHREAD_CC="$ac_prog"
8819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8820 break 2
8821 fi
8822done
8823 done
8824IFS=$as_save_IFS
8825
8826fi
8827fi
8828PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8829if test -n "$PTHREAD_CC"; then
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8831$as_echo "$PTHREAD_CC" >&6; }
8832else
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8834$as_echo "no" >&6; }
8835fi
8836
8837
8838 test -n "$PTHREAD_CC" && break
8839done
8840test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8841
8842 else
8843 PTHREAD_CC=$CC
8844 fi
8845else
8846 PTHREAD_CC="$CC"
8847fi
8848
8849
8850
8851
8852
8853# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8854if test x"$ax_pthread_ok" = xyes; then
8855
8856$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8857
8858 :
8859else
8860 ax_pthread_ok=no
8861
8862fi
8863ac_ext=c
8864ac_cpp='$CPP $CPPFLAGS'
8865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8867ac_compiler_gnu=$ac_cv_c_compiler_gnu
8868
8869
8870
cristy43596fe2010-01-21 16:46:08 +00008871# Check whether --enable-opencl was given.
8872if test "${enable_opencl+set}" = set; then :
8873 enableval=$enable_opencl; disable_opencl=$enableval
8874else
8875 disable_opencl='yes'
8876fi
8877
8878
8879if test "$disable_opencl" = 'yes'; then
8880 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008881ac_cpp='$CPP $CPPFLAGS'
8882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8884ac_compiler_gnu=$ac_cv_c_compiler_gnu
8885
cristy43596fe2010-01-21 16:46:08 +00008886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00008887$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008888if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008889 $as_echo_n "(cached) " >&6
8890else
cristy8b350f62009-11-15 23:12:43 +00008891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008892/* end confdefs.h. */
8893
8894int
8895main ()
8896{
8897#ifndef _MSC_VER
8898 choke me
8899#endif
8900
8901 ;
8902 return 0;
8903}
8904_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008905if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008906 ax_compiler_ms=yes
8907else
cristy8b350f62009-11-15 23:12:43 +00008908 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00008909fi
cristy736173a2009-09-20 21:18:22 +00008910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8911ax_cv_c_compiler_ms=$ax_compiler_ms
8912
8913fi
cristy8b350f62009-11-15 23:12:43 +00008914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00008915$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy43596fe2010-01-21 16:46:08 +00008916 if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008917 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8918fi
8919
cristy43596fe2010-01-21 16:46:08 +00008920 ax_save_CPPFLAGS=$CPPFLAGS
8921 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8922 for ac_header in CL/cl.h OpenCL/cl.h
cristy8b350f62009-11-15 23:12:43 +00008923do :
8924 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8925ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyf6fcb5d2010-09-24 01:19:13 +00008926eval as_val=\$$as_ac_Header
8927 if test "x$as_val" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008928 cat >>confdefs.h <<_ACEOF
8929#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8930_ACEOF
8931
8932fi
8933
8934done
8935
cristy43596fe2010-01-21 16:46:08 +00008936 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00008937
cristy43596fe2010-01-21 16:46:08 +00008938 for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00008939do :
8940 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8941if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008942 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008943#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00008944_ACEOF
8945
8946fi
8947
8948done
8949
8950
8951
8952
cristy43596fe2010-01-21 16:46:08 +00008953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00008954$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008955if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008956 $as_echo_n "(cached) " >&6
8957else
8958 ax_cv_check_cl_libcl=no
cristy43596fe2010-01-21 16:46:08 +00008959 case $host_cpu in
8960 x86_64) ax_check_cl_libdir=lib64 ;;
8961 *) ax_check_cl_libdir=lib ;;
8962 esac
8963 ax_save_CPPFLAGS=$CPPFLAGS
8964 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8965 ax_save_LIBS=$LIBS
8966 LIBS=""
8967 ax_check_libs="-lOpenCL -lCL -lclparser"
8968 for ax_lib in $ax_check_libs; do
8969 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00008970 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8971else
8972 ax_try_lib=$ax_lib
8973fi
cristy43596fe2010-01-21 16:46:08 +00008974 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008976/* end confdefs.h. */
8977
cristy43596fe2010-01-21 16:46:08 +00008978 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8979 # include <windows.h>
8980 # endif
8981 # ifdef HAVE_CL_CL_H
8982 # include <CL/cl.h>
8983 # elif defined(HAVE_OPENCL_CL_H)
8984 # include <OpenCL/cl.h>
8985 # else
8986 # error no CL.h
8987 # endif
cristy736173a2009-09-20 21:18:22 +00008988int
8989main ()
8990{
cristyc7083c12009-10-14 03:16:55 +00008991clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008992 ;
8993 return 0;
8994}
8995_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008996if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008997 ax_cv_check_cl_libcl=$ax_try_lib; break
8998else
cristy8b350f62009-11-15 23:12:43 +00008999 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 +00009000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009001/* end confdefs.h. */
9002
cristy43596fe2010-01-21 16:46:08 +00009003 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9004 # include <windows.h>
9005 # endif
9006 # ifdef HAVE_CL_CL_H
9007 # include <CL/cl.h>
9008 # elif defined(HAVE_OPENCL_CL_H)
9009 # include <OpenCL/cl.h>
9010 # else
9011 # error no CL.h
9012 # endif
cristy736173a2009-09-20 21:18:22 +00009013int
9014main ()
9015{
cristyc7083c12009-10-14 03:16:55 +00009016clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009017 ;
9018 return 0;
9019}
9020_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009021if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009022 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9023else
cristy4dc44432009-12-30 23:30:06 +00009024 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 +00009025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009026/* end confdefs.h. */
9027
cristy43596fe2010-01-21 16:46:08 +00009028 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9029 # include <windows.h>
9030 # endif
9031 # ifdef HAVE_CL_CL_H
9032 # include <CL/cl.h>
9033 # elif defined(HAVE_OPENCL_CL_H)
9034 # include <OpenCL/cl.h>
9035 # else
9036 # error no CL.h
9037 # endif
cristy736173a2009-09-20 21:18:22 +00009038int
9039main ()
9040{
cristyc7083c12009-10-14 03:16:55 +00009041clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009042 ;
9043 return 0;
9044}
9045_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009046if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009047 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00009048fi
cristy8b350f62009-11-15 23:12:43 +00009049rm -f core conftest.err conftest.$ac_objext \
9050 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009051fi
cristy8b350f62009-11-15 23:12:43 +00009052rm -f core conftest.err conftest.$ac_objext \
9053 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009054fi
cristy8b350f62009-11-15 23:12:43 +00009055rm -f core conftest.err conftest.$ac_objext \
9056 conftest$ac_exeext conftest.$ac_ext
cristy43596fe2010-01-21 16:46:08 +00009057 done
cristy736173a2009-09-20 21:18:22 +00009058
cristy43596fe2010-01-21 16:46:08 +00009059 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00009060 LIBS='-framework OpenCL'
cristy43596fe2010-01-21 16:46:08 +00009061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009062/* end confdefs.h. */
9063
cristy43596fe2010-01-21 16:46:08 +00009064 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9065 # include <windows.h>
9066 # endif
9067 # ifdef HAVE_CL_CL_H
9068 # include <CL/cl.h>
9069 # elif defined(HAVE_OPENCL_CL_H)
9070 # include <OpenCL/cl.h>
9071 # else
9072 # error no CL.h
9073 # endif
cristy736173a2009-09-20 21:18:22 +00009074int
9075main ()
9076{
cristyc7083c12009-10-14 03:16:55 +00009077clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009078 ;
9079 return 0;
9080}
9081_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009082if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009083 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00009084fi
cristy8b350f62009-11-15 23:12:43 +00009085rm -f core conftest.err conftest.$ac_objext \
9086 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009087fi
9088
cristy43596fe2010-01-21 16:46:08 +00009089 LIBS=$ax_save_LIBS
9090 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00009091fi
cristy8b350f62009-11-15 23:12:43 +00009092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00009093$as_echo "$ax_cv_check_cl_libcl" >&6; }
9094
cristy43596fe2010-01-21 16:46:08 +00009095 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00009096 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9097else
cristy99cc3002010-01-21 14:50:11 +00009098 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9099$as_echo "#define _OPENCL 1" >>confdefs.h
9100
cristy736173a2009-09-20 21:18:22 +00009101fi
cristy43596fe2010-01-21 16:46:08 +00009102 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00009103ac_cpp='$CPP $CPPFLAGS'
9104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9106ac_compiler_gnu=$ac_cv_c_compiler_gnu
9107
cristy43596fe2010-01-21 16:46:08 +00009108fi
cristy736173a2009-09-20 21:18:22 +00009109
9110
9111
9112
cristyc7083c12009-10-14 03:16:55 +00009113CFLAGS="$CL_CFLAGS $CFLAGS"
9114LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009115
cristy391f1ce2010-09-09 17:23:28 +00009116if test "$enable_opencl" != no; then
9117 if test "_OPENCL" = '1'; then
9118 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9119 fi
cristyfd9dcd42010-08-08 18:07:02 +00009120fi
cristy2e8b51d2009-10-17 18:26:15 +00009121
cristy3ed852e2009-09-05 21:47:34 +00009122########
9123#
9124# Check for large file support
9125#
9126########
9127# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009128if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009129 enableval=$enable_largefile;
9130fi
9131
9132if test "$enable_largefile" != no; then
9133
cristy8b350f62009-11-15 23:12:43 +00009134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009135$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009136if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009137 $as_echo_n "(cached) " >&6
9138else
9139 ac_cv_sys_largefile_CC=no
9140 if test "$GCC" != yes; then
9141 ac_save_CC=$CC
9142 while :; do
9143 # IRIX 6.2 and later do not support large files by default,
9144 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009146/* end confdefs.h. */
9147#include <sys/types.h>
9148 /* Check that off_t can represent 2**63 - 1 correctly.
9149 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9150 since some C++ compilers masquerading as C compilers
9151 incorrectly reject 9223372036854775807. */
9152#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9153 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9154 && LARGE_OFF_T % 2147483647 == 1)
9155 ? 1 : -1];
9156int
9157main ()
9158{
9159
9160 ;
9161 return 0;
9162}
9163_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009164 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009165 break
cristy3ed852e2009-09-05 21:47:34 +00009166fi
cristy3ed852e2009-09-05 21:47:34 +00009167rm -f core conftest.err conftest.$ac_objext
9168 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009169 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009170 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009171fi
cristy3ed852e2009-09-05 21:47:34 +00009172rm -f core conftest.err conftest.$ac_objext
9173 break
9174 done
9175 CC=$ac_save_CC
9176 rm -f conftest.$ac_ext
9177 fi
9178fi
cristy8b350f62009-11-15 23:12:43 +00009179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009180$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9181 if test "$ac_cv_sys_largefile_CC" != no; then
9182 CC=$CC$ac_cv_sys_largefile_CC
9183 fi
9184
cristy8b350f62009-11-15 23:12:43 +00009185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009186$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009187if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009188 $as_echo_n "(cached) " >&6
9189else
9190 while :; do
cristy8b350f62009-11-15 23:12:43 +00009191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009192/* end confdefs.h. */
9193#include <sys/types.h>
9194 /* Check that off_t can represent 2**63 - 1 correctly.
9195 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9196 since some C++ compilers masquerading as C compilers
9197 incorrectly reject 9223372036854775807. */
9198#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9199 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9200 && LARGE_OFF_T % 2147483647 == 1)
9201 ? 1 : -1];
9202int
9203main ()
9204{
9205
9206 ;
9207 return 0;
9208}
9209_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009210if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009211 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009212fi
cristy3ed852e2009-09-05 21:47:34 +00009213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009215/* end confdefs.h. */
9216#define _FILE_OFFSET_BITS 64
9217#include <sys/types.h>
9218 /* Check that off_t can represent 2**63 - 1 correctly.
9219 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9220 since some C++ compilers masquerading as C compilers
9221 incorrectly reject 9223372036854775807. */
9222#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9223 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9224 && LARGE_OFF_T % 2147483647 == 1)
9225 ? 1 : -1];
9226int
9227main ()
9228{
9229
9230 ;
9231 return 0;
9232}
9233_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009234if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009235 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009236fi
cristy3ed852e2009-09-05 21:47:34 +00009237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9238 ac_cv_sys_file_offset_bits=unknown
9239 break
9240done
9241fi
cristy8b350f62009-11-15 23:12:43 +00009242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009243$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9244case $ac_cv_sys_file_offset_bits in #(
9245 no | unknown) ;;
9246 *)
9247cat >>confdefs.h <<_ACEOF
9248#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9249_ACEOF
9250;;
9251esac
9252rm -rf conftest*
9253 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009255$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009256if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009257 $as_echo_n "(cached) " >&6
9258else
9259 while :; do
cristy8b350f62009-11-15 23:12:43 +00009260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009261/* end confdefs.h. */
9262#include <sys/types.h>
9263 /* Check that off_t can represent 2**63 - 1 correctly.
9264 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9265 since some C++ compilers masquerading as C compilers
9266 incorrectly reject 9223372036854775807. */
9267#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9268 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9269 && LARGE_OFF_T % 2147483647 == 1)
9270 ? 1 : -1];
9271int
9272main ()
9273{
9274
9275 ;
9276 return 0;
9277}
9278_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009279if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009280 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009281fi
cristy3ed852e2009-09-05 21:47:34 +00009282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009284/* end confdefs.h. */
9285#define _LARGE_FILES 1
9286#include <sys/types.h>
9287 /* Check that off_t can represent 2**63 - 1 correctly.
9288 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9289 since some C++ compilers masquerading as C compilers
9290 incorrectly reject 9223372036854775807. */
9291#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9292 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9293 && LARGE_OFF_T % 2147483647 == 1)
9294 ? 1 : -1];
9295int
9296main ()
9297{
9298
9299 ;
9300 return 0;
9301}
9302_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009303if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009304 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009305fi
cristy3ed852e2009-09-05 21:47:34 +00009306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9307 ac_cv_sys_large_files=unknown
9308 break
9309done
9310fi
cristy8b350f62009-11-15 23:12:43 +00009311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009312$as_echo "$ac_cv_sys_large_files" >&6; }
9313case $ac_cv_sys_large_files in #(
9314 no | unknown) ;;
9315 *)
9316cat >>confdefs.h <<_ACEOF
9317#define _LARGE_FILES $ac_cv_sys_large_files
9318_ACEOF
9319;;
9320esac
9321rm -rf conftest*
9322 fi
9323fi
9324
cristy8b350f62009-11-15 23:12:43 +00009325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009326$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009327if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009328 $as_echo_n "(cached) " >&6
9329else
9330 while :; do
cristy8b350f62009-11-15 23:12:43 +00009331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009332/* end confdefs.h. */
9333#include <sys/types.h> /* for off_t */
9334 #include <stdio.h>
9335int
9336main ()
9337{
9338int (*fp) (FILE *, off_t, int) = fseeko;
9339 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9340 ;
9341 return 0;
9342}
9343_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009344if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009345 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009346fi
cristy8b350f62009-11-15 23:12:43 +00009347rm -f core conftest.err conftest.$ac_objext \
9348 conftest$ac_exeext conftest.$ac_ext
9349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009350/* end confdefs.h. */
9351#define _LARGEFILE_SOURCE 1
9352#include <sys/types.h> /* for off_t */
9353 #include <stdio.h>
9354int
9355main ()
9356{
9357int (*fp) (FILE *, off_t, int) = fseeko;
9358 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9359 ;
9360 return 0;
9361}
9362_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009363if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009364 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009365fi
cristy8b350f62009-11-15 23:12:43 +00009366rm -f core conftest.err conftest.$ac_objext \
9367 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009368 ac_cv_sys_largefile_source=unknown
9369 break
9370done
9371fi
cristy8b350f62009-11-15 23:12:43 +00009372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009373$as_echo "$ac_cv_sys_largefile_source" >&6; }
9374case $ac_cv_sys_largefile_source in #(
9375 no | unknown) ;;
9376 *)
9377cat >>confdefs.h <<_ACEOF
9378#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9379_ACEOF
9380;;
9381esac
9382rm -rf conftest*
9383
9384# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9385# in glibc 2.1.3, but that breaks too many other things.
9386# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9387if test $ac_cv_sys_largefile_source != unknown; then
9388
cristy8b350f62009-11-15 23:12:43 +00009389$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009390
9391fi
9392
9393LFS_CPPFLAGS=''
9394if test "$enable_largefile" != no; then
9395 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9396 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9397 else
cristy8b350f62009-11-15 23:12:43 +00009398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009399$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009400 if test "$cross_compiling" = yes; then :
9401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00009403as_fn_error "cannot run test program while cross compiling
9404See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009405else
cristy8b350f62009-11-15 23:12:43 +00009406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9407/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009408#include <unistd.h>
9409 main () {
9410 exit(!(sizeof(off_t) == 8));
9411 }
9412_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009413if ac_fn_c_try_run "$LINENO"; then :
9414 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009415
cristy8b350f62009-11-15 23:12:43 +00009416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009417$as_echo "yes" >&6; }
9418else
cristy8b350f62009-11-15 23:12:43 +00009419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009420$as_echo "no" >&6; }
9421fi
cristy8b350f62009-11-15 23:12:43 +00009422rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9423 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009424fi
9425
cristy3ed852e2009-09-05 21:47:34 +00009426 fi
9427 if test "$ac_cv_sys_large_files" != 'no'; then
9428 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9429 fi
9430 if test "$ac_cv_sys_largefile_source" != 'no'; then
9431 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9432 fi
9433fi
9434
9435
9436#
9437# Configure libtool & libltdl
9438#
9439# Configure libtool
9440enable_dlopen=yes
9441
9442
9443
9444case `pwd` in
9445 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00009446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00009447$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9448esac
9449
9450
9451
cristyfd9dcd42010-08-08 18:07:02 +00009452macro_version='2.2.10'
9453macro_revision='1.3175'
cristy3ed852e2009-09-05 21:47:34 +00009454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467ltmain="$ac_aux_dir/ltmain.sh"
9468
cristyfd9dcd42010-08-08 18:07:02 +00009469# Backslashify metacharacters that are still active within
9470# double-quoted strings.
9471sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9472
9473# Same as above, but do not quote variable references.
9474double_quote_subst='s/\(["`\\]\)/\\\1/g'
9475
9476# Sed substitution to delay expansion of an escaped shell variable in a
9477# double_quote_subst'ed string.
9478delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9479
9480# Sed substitution to delay expansion of an escaped single quote.
9481delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9482
9483# Sed substitution to avoid accidental globbing in evaled expressions
9484no_glob_subst='s/\*/\\\*/g'
9485
cristy8b350f62009-11-15 23:12:43 +00009486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00009487$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009488if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009489 $as_echo_n "(cached) " >&6
9490else
9491 if test -n "$NM"; then
9492 # Let the user override the test.
9493 lt_cv_path_NM="$NM"
9494else
9495 lt_nm_to_check="${ac_tool_prefix}nm"
9496 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9497 lt_nm_to_check="$lt_nm_to_check nm"
9498 fi
9499 for lt_tmp_nm in $lt_nm_to_check; do
9500 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9501 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9502 IFS="$lt_save_ifs"
9503 test -z "$ac_dir" && ac_dir=.
9504 tmp_nm="$ac_dir/$lt_tmp_nm"
9505 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9506 # Check to see if the nm accepts a BSD-compat flag.
9507 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9508 # nm: unknown option "B" ignored
9509 # Tru64's nm complains that /dev/null is an invalid object file
9510 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9511 */dev/null* | *'Invalid file or object type'*)
9512 lt_cv_path_NM="$tmp_nm -B"
9513 break
9514 ;;
9515 *)
9516 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9517 */dev/null*)
9518 lt_cv_path_NM="$tmp_nm -p"
9519 break
9520 ;;
9521 *)
9522 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9523 continue # so that we can try to find one that supports BSD flags
9524 ;;
9525 esac
9526 ;;
9527 esac
9528 fi
9529 done
9530 IFS="$lt_save_ifs"
9531 done
9532 : ${lt_cv_path_NM=no}
9533fi
9534fi
cristy8b350f62009-11-15 23:12:43 +00009535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00009536$as_echo "$lt_cv_path_NM" >&6; }
9537if test "$lt_cv_path_NM" != "no"; then
9538 NM="$lt_cv_path_NM"
9539else
9540 # Didn't find any BSD compatible name lister, look for dumpbin.
cristyfd9dcd42010-08-08 18:07:02 +00009541 if test -n "$DUMPBIN"; then :
9542 # Let the user override the test.
9543 else
9544 if test -n "$ac_tool_prefix"; then
9545 for ac_prog in dumpbin "link -dump"
cristy3ed852e2009-09-05 21:47:34 +00009546 do
9547 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9548set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009550$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009551if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009552 $as_echo_n "(cached) " >&6
9553else
9554 if test -n "$DUMPBIN"; then
9555 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9556else
9557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9558for as_dir in $PATH
9559do
9560 IFS=$as_save_IFS
9561 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009562 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9564 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009566 break 2
9567 fi
9568done
cristy8b350f62009-11-15 23:12:43 +00009569 done
cristy3ed852e2009-09-05 21:47:34 +00009570IFS=$as_save_IFS
9571
9572fi
9573fi
9574DUMPBIN=$ac_cv_prog_DUMPBIN
9575if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009577$as_echo "$DUMPBIN" >&6; }
9578else
cristy8b350f62009-11-15 23:12:43 +00009579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009580$as_echo "no" >&6; }
9581fi
9582
9583
9584 test -n "$DUMPBIN" && break
9585 done
9586fi
9587if test -z "$DUMPBIN"; then
9588 ac_ct_DUMPBIN=$DUMPBIN
cristyfd9dcd42010-08-08 18:07:02 +00009589 for ac_prog in dumpbin "link -dump"
cristy3ed852e2009-09-05 21:47:34 +00009590do
9591 # Extract the first word of "$ac_prog", so it can be a program name with args.
9592set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009594$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009595if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009596 $as_echo_n "(cached) " >&6
9597else
9598 if test -n "$ac_ct_DUMPBIN"; then
9599 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9600else
9601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9602for as_dir in $PATH
9603do
9604 IFS=$as_save_IFS
9605 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009606 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9608 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009610 break 2
9611 fi
9612done
cristy8b350f62009-11-15 23:12:43 +00009613 done
cristy3ed852e2009-09-05 21:47:34 +00009614IFS=$as_save_IFS
9615
9616fi
9617fi
9618ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9619if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009621$as_echo "$ac_ct_DUMPBIN" >&6; }
9622else
cristy8b350f62009-11-15 23:12:43 +00009623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009624$as_echo "no" >&6; }
9625fi
9626
9627
9628 test -n "$ac_ct_DUMPBIN" && break
9629done
9630
9631 if test "x$ac_ct_DUMPBIN" = x; then
9632 DUMPBIN=":"
9633 else
9634 case $cross_compiling:$ac_tool_warned in
9635yes:)
cristy8b350f62009-11-15 23:12:43 +00009636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9638ac_tool_warned=yes ;;
9639esac
9640 DUMPBIN=$ac_ct_DUMPBIN
9641 fi
9642fi
9643
cristyfd9dcd42010-08-08 18:07:02 +00009644 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9645 *COFF*)
9646 DUMPBIN="$DUMPBIN -symbols"
9647 ;;
9648 *)
9649 DUMPBIN=:
9650 ;;
9651 esac
9652 fi
cristy3ed852e2009-09-05 21:47:34 +00009653
9654 if test "$DUMPBIN" != ":"; then
9655 NM="$DUMPBIN"
9656 fi
9657fi
9658test -z "$NM" && NM=nm
9659
9660
9661
9662
9663
9664
cristy8b350f62009-11-15 23:12:43 +00009665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009666$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009667if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009668 $as_echo_n "(cached) " >&6
9669else
9670 lt_cv_nm_interface="BSD nm"
9671 echo "int some_variable = 0;" > conftest.$ac_ext
cristyfd9dcd42010-08-08 18:07:02 +00009672 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009673 (eval "$ac_compile" 2>conftest.err)
9674 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +00009675 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009676 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9677 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +00009678 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009679 cat conftest.out >&5
9680 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9681 lt_cv_nm_interface="MS dumpbin"
9682 fi
9683 rm -f conftest*
9684fi
cristy8b350f62009-11-15 23:12:43 +00009685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009686$as_echo "$lt_cv_nm_interface" >&6; }
9687
9688# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00009689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00009690$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009691if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009692 $as_echo_n "(cached) " >&6
9693else
9694 i=0
9695 teststring="ABCD"
9696
9697 case $build_os in
9698 msdosdjgpp*)
9699 # On DJGPP, this test can blow up pretty badly due to problems in libc
9700 # (any single argument exceeding 2000 bytes causes a buffer overrun
9701 # during glob expansion). Even if it were fixed, the result of this
9702 # check would be larger than it should be.
9703 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9704 ;;
9705
9706 gnu*)
9707 # Under GNU Hurd, this test is not required because there is
9708 # no limit to the length of command line arguments.
9709 # Libtool will interpret -1 as no limit whatsoever
9710 lt_cv_sys_max_cmd_len=-1;
9711 ;;
9712
9713 cygwin* | mingw* | cegcc*)
9714 # On Win9x/ME, this test blows up -- it succeeds, but takes
9715 # about 5 minutes as the teststring grows exponentially.
9716 # Worse, since 9x/ME are not pre-emptively multitasking,
9717 # you end up with a "frozen" computer, even though with patience
9718 # the test eventually succeeds (with a max line length of 256k).
9719 # Instead, let's just punt: use the minimum linelength reported by
9720 # all of the supported platforms: 8192 (on NT/2K/XP).
9721 lt_cv_sys_max_cmd_len=8192;
9722 ;;
9723
cristyfd9dcd42010-08-08 18:07:02 +00009724 mint*)
9725 # On MiNT this can take a long time and run out of memory.
9726 lt_cv_sys_max_cmd_len=8192;
9727 ;;
9728
cristy3ed852e2009-09-05 21:47:34 +00009729 amigaos*)
9730 # On AmigaOS with pdksh, this test takes hours, literally.
9731 # So we just punt and use a minimum line length of 8192.
9732 lt_cv_sys_max_cmd_len=8192;
9733 ;;
9734
9735 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9736 # This has been around since 386BSD, at least. Likely further.
9737 if test -x /sbin/sysctl; then
9738 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9739 elif test -x /usr/sbin/sysctl; then
9740 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9741 else
9742 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9743 fi
9744 # And add a safety zone
9745 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9747 ;;
9748
9749 interix*)
9750 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9751 lt_cv_sys_max_cmd_len=196608
9752 ;;
9753
9754 osf*)
9755 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9756 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9757 # nice to cause kernel panics so lets avoid the loop below.
9758 # First set a reasonable default.
9759 lt_cv_sys_max_cmd_len=16384
9760 #
9761 if test -x /sbin/sysconfig; then
9762 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9763 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9764 esac
9765 fi
9766 ;;
9767 sco3.2v5*)
9768 lt_cv_sys_max_cmd_len=102400
9769 ;;
9770 sysv5* | sco5v6* | sysv4.2uw2*)
9771 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9772 if test -n "$kargmax"; then
9773 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9774 else
9775 lt_cv_sys_max_cmd_len=32768
9776 fi
9777 ;;
9778 *)
9779 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9780 if test -n "$lt_cv_sys_max_cmd_len"; then
9781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9783 else
9784 # Make teststring a little bigger before we do anything with it.
9785 # a 1K string should be a reasonable start.
9786 for i in 1 2 3 4 5 6 7 8 ; do
9787 teststring=$teststring$teststring
9788 done
9789 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9790 # If test is not a shell built-in, we'll probably end up computing a
9791 # maximum length that is only half of the actual maximum length, but
9792 # we can't tell.
cristyfd9dcd42010-08-08 18:07:02 +00009793 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9794 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00009795 test $i != 17 # 1/2 MB should be enough
9796 do
9797 i=`expr $i + 1`
9798 teststring=$teststring$teststring
9799 done
9800 # Only check the string length outside the loop.
9801 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9802 teststring=
9803 # Add a significant safety factor because C++ compilers can tack on
9804 # massive amounts of additional arguments before passing them to the
9805 # linker. It appears as though 1/2 is a usable value.
9806 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9807 fi
9808 ;;
9809 esac
9810
9811fi
9812
9813if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00009814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00009815$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9816else
cristy8b350f62009-11-15 23:12:43 +00009817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00009818$as_echo "none" >&6; }
9819fi
9820max_cmd_len=$lt_cv_sys_max_cmd_len
9821
9822
9823
9824
9825
9826
9827: ${CP="cp -f"}
9828: ${MV="mv -f"}
9829: ${RM="rm -f"}
9830
cristy8b350f62009-11-15 23:12:43 +00009831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00009832$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9833# Try some XSI features
9834xsi_shell=no
9835( _lt_dummy="a/b/c"
9836 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9837 = c,a/b,, \
9838 && eval 'test $(( 1 + 1 )) -eq 2 \
9839 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9840 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00009841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00009842$as_echo "$xsi_shell" >&6; }
9843
9844
cristy8b350f62009-11-15 23:12:43 +00009845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00009846$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9847lt_shell_append=no
9848( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9849 >/dev/null 2>&1 \
9850 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00009851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00009852$as_echo "$lt_shell_append" >&6; }
9853
9854
9855if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9856 lt_unset=unset
9857else
9858 lt_unset=false
9859fi
9860
9861
9862
9863
9864
9865# test EBCDIC or ASCII
9866case `echo X|tr X '\101'` in
9867 A) # ASCII based system
9868 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9869 lt_SP2NL='tr \040 \012'
9870 lt_NL2SP='tr \015\012 \040\040'
9871 ;;
9872 *) # EBCDIC based system
9873 lt_SP2NL='tr \100 \n'
9874 lt_NL2SP='tr \r\n \100\100'
9875 ;;
9876esac
9877
9878
9879
9880
9881
9882
9883
9884
9885
cristy8b350f62009-11-15 23:12:43 +00009886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009887$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009888if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009889 $as_echo_n "(cached) " >&6
9890else
9891 lt_cv_ld_reload_flag='-r'
9892fi
cristy8b350f62009-11-15 23:12:43 +00009893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00009894$as_echo "$lt_cv_ld_reload_flag" >&6; }
9895reload_flag=$lt_cv_ld_reload_flag
9896case $reload_flag in
9897"" | " "*) ;;
9898*) reload_flag=" $reload_flag" ;;
9899esac
9900reload_cmds='$LD$reload_flag -o $output$reload_objs'
9901case $host_os in
9902 darwin*)
9903 if test "$GCC" = yes; then
9904 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9905 else
9906 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9907 fi
9908 ;;
9909esac
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919if test -n "$ac_tool_prefix"; then
9920 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9921set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009923$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009924if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009925 $as_echo_n "(cached) " >&6
9926else
9927 if test -n "$OBJDUMP"; then
9928 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9929else
9930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9931for as_dir in $PATH
9932do
9933 IFS=$as_save_IFS
9934 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009935 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9937 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00009938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009939 break 2
9940 fi
9941done
cristy8b350f62009-11-15 23:12:43 +00009942 done
cristy3ed852e2009-09-05 21:47:34 +00009943IFS=$as_save_IFS
9944
9945fi
9946fi
9947OBJDUMP=$ac_cv_prog_OBJDUMP
9948if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009950$as_echo "$OBJDUMP" >&6; }
9951else
cristy8b350f62009-11-15 23:12:43 +00009952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009953$as_echo "no" >&6; }
9954fi
9955
9956
9957fi
9958if test -z "$ac_cv_prog_OBJDUMP"; then
9959 ac_ct_OBJDUMP=$OBJDUMP
9960 # Extract the first word of "objdump", so it can be a program name with args.
9961set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009963$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009964if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009965 $as_echo_n "(cached) " >&6
9966else
9967 if test -n "$ac_ct_OBJDUMP"; then
9968 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9969else
9970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9971for as_dir in $PATH
9972do
9973 IFS=$as_save_IFS
9974 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009975 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9977 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +00009978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009979 break 2
9980 fi
9981done
cristy8b350f62009-11-15 23:12:43 +00009982 done
cristy3ed852e2009-09-05 21:47:34 +00009983IFS=$as_save_IFS
9984
9985fi
9986fi
9987ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9988if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009990$as_echo "$ac_ct_OBJDUMP" >&6; }
9991else
cristy8b350f62009-11-15 23:12:43 +00009992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009993$as_echo "no" >&6; }
9994fi
9995
9996 if test "x$ac_ct_OBJDUMP" = x; then
9997 OBJDUMP="false"
9998 else
9999 case $cross_compiling:$ac_tool_warned in
10000yes:)
cristy8b350f62009-11-15 23:12:43 +000010001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10003ac_tool_warned=yes ;;
10004esac
10005 OBJDUMP=$ac_ct_OBJDUMP
10006 fi
10007else
10008 OBJDUMP="$ac_cv_prog_OBJDUMP"
10009fi
10010
10011test -z "$OBJDUMP" && OBJDUMP=objdump
10012
10013
10014
10015
10016
10017
cristy8b350f62009-11-15 23:12:43 +000010018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000010019$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010020if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010021 $as_echo_n "(cached) " >&6
10022else
10023 lt_cv_file_magic_cmd='$MAGIC_CMD'
10024lt_cv_file_magic_test_file=
10025lt_cv_deplibs_check_method='unknown'
10026# Need to set the preceding variable on all platforms that support
10027# interlibrary dependencies.
10028# 'none' -- dependencies not supported.
10029# `unknown' -- same as none, but documents that we really don't know.
10030# 'pass_all' -- all dependencies passed with no checks.
10031# 'test_compile' -- check by making test program.
10032# 'file_magic [[regex]]' -- check by looking for files in library path
10033# which responds to the $file_magic_cmd with a given extended regex.
10034# If you have `file' or equivalent on your system and you're not sure
10035# whether `pass_all' will *always* work, you probably want this one.
10036
10037case $host_os in
10038aix[4-9]*)
10039 lt_cv_deplibs_check_method=pass_all
10040 ;;
10041
10042beos*)
10043 lt_cv_deplibs_check_method=pass_all
10044 ;;
10045
10046bsdi[45]*)
10047 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10048 lt_cv_file_magic_cmd='/usr/bin/file -L'
10049 lt_cv_file_magic_test_file=/shlib/libc.so
10050 ;;
10051
10052cygwin*)
10053 # func_win32_libid is a shell function defined in ltmain.sh
10054 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10055 lt_cv_file_magic_cmd='func_win32_libid'
10056 ;;
10057
10058mingw* | pw32*)
10059 # Base MSYS/MinGW do not provide the 'file' command needed by
10060 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10061 # unless we find 'file', for example because we are cross-compiling.
cristyfd9dcd42010-08-08 18:07:02 +000010062 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10063 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +000010064 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10065 lt_cv_file_magic_cmd='func_win32_libid'
10066 else
cristyfd9dcd42010-08-08 18:07:02 +000010067 # Keep this pattern in sync with the one in func_win32_libid.
10068 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 +000010069 lt_cv_file_magic_cmd='$OBJDUMP -f'
10070 fi
10071 ;;
10072
cristyfd9dcd42010-08-08 18:07:02 +000010073cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000010074 # use the weaker test based on 'objdump'. See mingw*.
10075 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10076 lt_cv_file_magic_cmd='$OBJDUMP -f'
10077 ;;
10078
10079darwin* | rhapsody*)
10080 lt_cv_deplibs_check_method=pass_all
10081 ;;
10082
10083freebsd* | dragonfly*)
10084 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10085 case $host_cpu in
10086 i*86 )
10087 # Not sure whether the presence of OpenBSD here was a mistake.
10088 # Let's accept both of them until this is cleared up.
10089 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10090 lt_cv_file_magic_cmd=/usr/bin/file
10091 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10092 ;;
10093 esac
10094 else
10095 lt_cv_deplibs_check_method=pass_all
10096 fi
10097 ;;
10098
10099gnu*)
10100 lt_cv_deplibs_check_method=pass_all
10101 ;;
10102
cristyfd9dcd42010-08-08 18:07:02 +000010103haiku*)
10104 lt_cv_deplibs_check_method=pass_all
10105 ;;
10106
cristy3ed852e2009-09-05 21:47:34 +000010107hpux10.20* | hpux11*)
10108 lt_cv_file_magic_cmd=/usr/bin/file
10109 case $host_cpu in
10110 ia64*)
10111 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10112 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10113 ;;
10114 hppa*64*)
cristyfd9dcd42010-08-08 18:07:02 +000010115 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 +000010116 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10117 ;;
10118 *)
cristyfd9dcd42010-08-08 18:07:02 +000010119 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 +000010120 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10121 ;;
10122 esac
10123 ;;
10124
10125interix[3-9]*)
10126 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10128 ;;
10129
10130irix5* | irix6* | nonstopux*)
10131 case $LD in
10132 *-32|*"-32 ") libmagic=32-bit;;
10133 *-n32|*"-n32 ") libmagic=N32;;
10134 *-64|*"-64 ") libmagic=64-bit;;
10135 *) libmagic=never-match;;
10136 esac
10137 lt_cv_deplibs_check_method=pass_all
10138 ;;
10139
10140# This must be Linux ELF.
cristyfd9dcd42010-08-08 18:07:02 +000010141linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000010142 lt_cv_deplibs_check_method=pass_all
10143 ;;
10144
10145netbsd*)
10146 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10147 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10148 else
10149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10150 fi
10151 ;;
10152
10153newos6*)
10154 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10155 lt_cv_file_magic_cmd=/usr/bin/file
10156 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10157 ;;
10158
10159*nto* | *qnx*)
10160 lt_cv_deplibs_check_method=pass_all
10161 ;;
10162
10163openbsd*)
10164 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10165 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10166 else
10167 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10168 fi
10169 ;;
10170
10171osf3* | osf4* | osf5*)
10172 lt_cv_deplibs_check_method=pass_all
10173 ;;
10174
10175rdos*)
10176 lt_cv_deplibs_check_method=pass_all
10177 ;;
10178
10179solaris*)
10180 lt_cv_deplibs_check_method=pass_all
10181 ;;
10182
10183sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10184 lt_cv_deplibs_check_method=pass_all
10185 ;;
10186
10187sysv4 | sysv4.3*)
10188 case $host_vendor in
10189 motorola)
10190 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]'
10191 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10192 ;;
10193 ncr)
10194 lt_cv_deplibs_check_method=pass_all
10195 ;;
10196 sequent)
10197 lt_cv_file_magic_cmd='/bin/file'
10198 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10199 ;;
10200 sni)
10201 lt_cv_file_magic_cmd='/bin/file'
10202 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10203 lt_cv_file_magic_test_file=/lib/libc.so
10204 ;;
10205 siemens)
10206 lt_cv_deplibs_check_method=pass_all
10207 ;;
10208 pc)
10209 lt_cv_deplibs_check_method=pass_all
10210 ;;
10211 esac
10212 ;;
10213
10214tpf*)
10215 lt_cv_deplibs_check_method=pass_all
10216 ;;
10217esac
10218
10219fi
cristy8b350f62009-11-15 23:12:43 +000010220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +000010221$as_echo "$lt_cv_deplibs_check_method" >&6; }
10222file_magic_cmd=$lt_cv_file_magic_cmd
10223deplibs_check_method=$lt_cv_deplibs_check_method
10224test -z "$deplibs_check_method" && deplibs_check_method=unknown
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237if test -n "$ac_tool_prefix"; then
10238 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10239set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010241$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010242if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010243 $as_echo_n "(cached) " >&6
10244else
10245 if test -n "$AR"; then
10246 ac_cv_prog_AR="$AR" # Let the user override the test.
10247else
10248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10249for as_dir in $PATH
10250do
10251 IFS=$as_save_IFS
10252 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010253 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10255 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +000010256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010257 break 2
10258 fi
10259done
cristy8b350f62009-11-15 23:12:43 +000010260 done
cristy3ed852e2009-09-05 21:47:34 +000010261IFS=$as_save_IFS
10262
10263fi
10264fi
10265AR=$ac_cv_prog_AR
10266if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +000010267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010268$as_echo "$AR" >&6; }
10269else
cristy8b350f62009-11-15 23:12:43 +000010270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010271$as_echo "no" >&6; }
10272fi
10273
10274
10275fi
10276if test -z "$ac_cv_prog_AR"; then
10277 ac_ct_AR=$AR
10278 # Extract the first word of "ar", so it can be a program name with args.
10279set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010281$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010282if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010283 $as_echo_n "(cached) " >&6
10284else
10285 if test -n "$ac_ct_AR"; then
10286 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10287else
10288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10289for as_dir in $PATH
10290do
10291 IFS=$as_save_IFS
10292 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010293 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10295 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +000010296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010297 break 2
10298 fi
10299done
cristy8b350f62009-11-15 23:12:43 +000010300 done
cristy3ed852e2009-09-05 21:47:34 +000010301IFS=$as_save_IFS
10302
10303fi
10304fi
10305ac_ct_AR=$ac_cv_prog_ac_ct_AR
10306if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +000010307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010308$as_echo "$ac_ct_AR" >&6; }
10309else
cristy8b350f62009-11-15 23:12:43 +000010310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010311$as_echo "no" >&6; }
10312fi
10313
10314 if test "x$ac_ct_AR" = x; then
10315 AR="false"
10316 else
10317 case $cross_compiling:$ac_tool_warned in
10318yes:)
cristy8b350f62009-11-15 23:12:43 +000010319{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010320$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10321ac_tool_warned=yes ;;
10322esac
10323 AR=$ac_ct_AR
10324 fi
10325else
10326 AR="$ac_cv_prog_AR"
10327fi
10328
10329test -z "$AR" && AR=ar
10330test -z "$AR_FLAGS" && AR_FLAGS=cru
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342if test -n "$ac_tool_prefix"; then
10343 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10344set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010346$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010347if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010348 $as_echo_n "(cached) " >&6
10349else
10350 if test -n "$STRIP"; then
10351 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10352else
10353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10354for as_dir in $PATH
10355do
10356 IFS=$as_save_IFS
10357 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010358 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10360 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +000010361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010362 break 2
10363 fi
10364done
cristy8b350f62009-11-15 23:12:43 +000010365 done
cristy3ed852e2009-09-05 21:47:34 +000010366IFS=$as_save_IFS
10367
10368fi
10369fi
10370STRIP=$ac_cv_prog_STRIP
10371if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010373$as_echo "$STRIP" >&6; }
10374else
cristy8b350f62009-11-15 23:12:43 +000010375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010376$as_echo "no" >&6; }
10377fi
10378
10379
10380fi
10381if test -z "$ac_cv_prog_STRIP"; then
10382 ac_ct_STRIP=$STRIP
10383 # Extract the first word of "strip", so it can be a program name with args.
10384set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010386$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010387if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010388 $as_echo_n "(cached) " >&6
10389else
10390 if test -n "$ac_ct_STRIP"; then
10391 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10392else
10393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10394for as_dir in $PATH
10395do
10396 IFS=$as_save_IFS
10397 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010398 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10400 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +000010401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010402 break 2
10403 fi
10404done
cristy8b350f62009-11-15 23:12:43 +000010405 done
cristy3ed852e2009-09-05 21:47:34 +000010406IFS=$as_save_IFS
10407
10408fi
10409fi
10410ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10411if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010413$as_echo "$ac_ct_STRIP" >&6; }
10414else
cristy8b350f62009-11-15 23:12:43 +000010415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010416$as_echo "no" >&6; }
10417fi
10418
10419 if test "x$ac_ct_STRIP" = x; then
10420 STRIP=":"
10421 else
10422 case $cross_compiling:$ac_tool_warned in
10423yes:)
cristy8b350f62009-11-15 23:12:43 +000010424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10426ac_tool_warned=yes ;;
10427esac
10428 STRIP=$ac_ct_STRIP
10429 fi
10430else
10431 STRIP="$ac_cv_prog_STRIP"
10432fi
10433
10434test -z "$STRIP" && STRIP=:
10435
10436
10437
10438
10439
10440
10441if test -n "$ac_tool_prefix"; then
10442 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10443set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010445$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010446if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010447 $as_echo_n "(cached) " >&6
10448else
10449 if test -n "$RANLIB"; then
10450 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10451else
10452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10453for as_dir in $PATH
10454do
10455 IFS=$as_save_IFS
10456 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010457 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10459 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +000010460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010461 break 2
10462 fi
10463done
cristy8b350f62009-11-15 23:12:43 +000010464 done
cristy3ed852e2009-09-05 21:47:34 +000010465IFS=$as_save_IFS
10466
10467fi
10468fi
10469RANLIB=$ac_cv_prog_RANLIB
10470if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010472$as_echo "$RANLIB" >&6; }
10473else
cristy8b350f62009-11-15 23:12:43 +000010474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010475$as_echo "no" >&6; }
10476fi
10477
10478
10479fi
10480if test -z "$ac_cv_prog_RANLIB"; then
10481 ac_ct_RANLIB=$RANLIB
10482 # Extract the first word of "ranlib", so it can be a program name with args.
10483set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010485$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010486if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010487 $as_echo_n "(cached) " >&6
10488else
10489 if test -n "$ac_ct_RANLIB"; then
10490 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10491else
10492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10493for as_dir in $PATH
10494do
10495 IFS=$as_save_IFS
10496 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010497 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10499 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +000010500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010501 break 2
10502 fi
10503done
cristy8b350f62009-11-15 23:12:43 +000010504 done
cristy3ed852e2009-09-05 21:47:34 +000010505IFS=$as_save_IFS
10506
10507fi
10508fi
10509ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10510if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010512$as_echo "$ac_ct_RANLIB" >&6; }
10513else
cristy8b350f62009-11-15 23:12:43 +000010514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010515$as_echo "no" >&6; }
10516fi
10517
10518 if test "x$ac_ct_RANLIB" = x; then
10519 RANLIB=":"
10520 else
10521 case $cross_compiling:$ac_tool_warned in
10522yes:)
cristy8b350f62009-11-15 23:12:43 +000010523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10525ac_tool_warned=yes ;;
10526esac
10527 RANLIB=$ac_ct_RANLIB
10528 fi
10529else
10530 RANLIB="$ac_cv_prog_RANLIB"
10531fi
10532
10533test -z "$RANLIB" && RANLIB=:
10534
10535
10536
10537
10538
10539
10540# Determine commands to create old-style static archives.
10541old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10542old_postinstall_cmds='chmod 644 $oldlib'
10543old_postuninstall_cmds=
10544
10545if test -n "$RANLIB"; then
10546 case $host_os in
10547 openbsd*)
10548 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10549 ;;
10550 *)
10551 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10552 ;;
10553 esac
10554 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10555fi
10556
cristyfd9dcd42010-08-08 18:07:02 +000010557case $host_os in
10558 darwin*)
10559 lock_old_archive_extraction=yes ;;
10560 *)
10561 lock_old_archive_extraction=no ;;
10562esac
10563
10564
10565
10566
10567
10568
cristy3ed852e2009-09-05 21:47:34 +000010569
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
10602# If no C compiler was specified, use CC.
10603LTCC=${LTCC-"$CC"}
10604
10605# If no C compiler flags were specified, use CFLAGS.
10606LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10607
10608# Allow CC to be a program name with arguments.
10609compiler=$CC
10610
10611
10612# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +000010613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +000010614$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010615if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010616 $as_echo_n "(cached) " >&6
10617else
10618
10619# These are sane defaults that work on at least a few old systems.
10620# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10621
10622# Character class describing NM global symbol codes.
10623symcode='[BCDEGRST]'
10624
10625# Regexp to match symbols that can be accessed directly from C.
10626sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10627
10628# Define system-specific variables.
10629case $host_os in
10630aix*)
10631 symcode='[BCDT]'
10632 ;;
10633cygwin* | mingw* | pw32* | cegcc*)
10634 symcode='[ABCDGISTW]'
10635 ;;
10636hpux*)
10637 if test "$host_cpu" = ia64; then
10638 symcode='[ABCDEGRST]'
10639 fi
10640 ;;
10641irix* | nonstopux*)
10642 symcode='[BCDEGRST]'
10643 ;;
10644osf*)
10645 symcode='[BCDEGQRST]'
10646 ;;
10647solaris*)
10648 symcode='[BDRT]'
10649 ;;
10650sco3.2v5*)
10651 symcode='[DT]'
10652 ;;
10653sysv4.2uw2*)
10654 symcode='[DT]'
10655 ;;
10656sysv5* | sco5v6* | unixware* | OpenUNIX*)
10657 symcode='[ABDT]'
10658 ;;
10659sysv4)
10660 symcode='[DFNSTU]'
10661 ;;
10662esac
10663
10664# If we're using GNU nm, then use its standard symbol codes.
10665case `$NM -V 2>&1` in
10666*GNU* | *'with BFD'*)
10667 symcode='[ABCDGIRSTW]' ;;
10668esac
10669
10670# Transform an extracted symbol line into a proper C declaration.
10671# Some systems (esp. on ia64) link data and code symbols differently,
10672# so use this general approach.
10673lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10674
10675# Transform an extracted symbol line into symbol name and symbol address
10676lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10677lt_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'"
10678
10679# Handle CRLF in mingw tool chain
10680opt_cr=
10681case $build_os in
10682mingw*)
10683 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10684 ;;
10685esac
10686
10687# Try without a prefix underscore, then with it.
10688for ac_symprfx in "" "_"; do
10689
10690 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10691 symxfrm="\\1 $ac_symprfx\\2 \\2"
10692
10693 # Write the raw and C identifiers.
10694 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10695 # Fake it for dumpbin and say T for any non-static function
10696 # and D for any global variable.
10697 # Also find C++ and __fastcall symbols from MSVC++,
10698 # which start with @ or ?.
10699 lt_cv_sys_global_symbol_pipe="$AWK '"\
10700" {last_section=section; section=\$ 3};"\
10701" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10702" \$ 0!~/External *\|/{next};"\
10703" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10704" {if(hide[section]) next};"\
10705" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10706" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10707" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10708" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10709" ' prfx=^$ac_symprfx"
10710 else
10711 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10712 fi
10713
10714 # Check to see that the pipe works correctly.
10715 pipe_works=no
10716
10717 rm -f conftest*
10718 cat > conftest.$ac_ext <<_LT_EOF
10719#ifdef __cplusplus
10720extern "C" {
10721#endif
10722char nm_test_var;
10723void nm_test_func(void);
10724void nm_test_func(void){}
10725#ifdef __cplusplus
10726}
10727#endif
10728int main(){nm_test_var='a';nm_test_func();return(0);}
10729_LT_EOF
10730
cristy8b350f62009-11-15 23:12:43 +000010731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010732 (eval $ac_compile) 2>&5
10733 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10735 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010736 # Now try to grab the symbols.
10737 nlist=conftest.nm
cristyfd9dcd42010-08-08 18:07:02 +000010738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10739 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +000010740 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10742 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000010743 # Try sorting and uniquifying the output.
10744 if sort "$nlist" | uniq > "$nlist"T; then
10745 mv -f "$nlist"T "$nlist"
10746 else
10747 rm -f "$nlist"T
10748 fi
10749
10750 # Make sure that we snagged all the symbols we need.
10751 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10752 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10753 cat <<_LT_EOF > conftest.$ac_ext
10754#ifdef __cplusplus
10755extern "C" {
10756#endif
10757
10758_LT_EOF
10759 # Now generate the symbol file.
10760 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10761
10762 cat <<_LT_EOF >> conftest.$ac_ext
10763
10764/* The mapping between symbol names and symbols. */
10765const struct {
10766 const char *name;
10767 void *address;
10768}
10769lt__PROGRAM__LTX_preloaded_symbols[] =
10770{
10771 { "@PROGRAM@", (void *) 0 },
10772_LT_EOF
10773 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10774 cat <<\_LT_EOF >> conftest.$ac_ext
10775 {0, (void *) 0}
10776};
10777
10778/* This works around a problem in FreeBSD linker */
10779#ifdef FREEBSD_WORKAROUND
10780static const void *lt_preloaded_setup() {
10781 return lt__PROGRAM__LTX_preloaded_symbols;
10782}
10783#endif
10784
10785#ifdef __cplusplus
10786}
10787#endif
10788_LT_EOF
10789 # Now try linking the two files.
10790 mv conftest.$ac_objext conftstm.$ac_objext
10791 lt_save_LIBS="$LIBS"
10792 lt_save_CFLAGS="$CFLAGS"
10793 LIBS="conftstm.$ac_objext"
10794 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +000010795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010796 (eval $ac_link) 2>&5
10797 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10799 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +000010800 pipe_works=yes
10801 fi
10802 LIBS="$lt_save_LIBS"
10803 CFLAGS="$lt_save_CFLAGS"
10804 else
10805 echo "cannot find nm_test_func in $nlist" >&5
10806 fi
10807 else
10808 echo "cannot find nm_test_var in $nlist" >&5
10809 fi
10810 else
10811 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10812 fi
10813 else
10814 echo "$progname: failed program was:" >&5
10815 cat conftest.$ac_ext >&5
10816 fi
10817 rm -rf conftest* conftst*
10818
10819 # Do not use the global_symbol_pipe unless it works.
10820 if test "$pipe_works" = yes; then
10821 break
10822 else
10823 lt_cv_sys_global_symbol_pipe=
10824 fi
10825done
10826
10827fi
10828
10829if test -z "$lt_cv_sys_global_symbol_pipe"; then
10830 lt_cv_sys_global_symbol_to_cdecl=
10831fi
10832if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +000010833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +000010834$as_echo "failed" >&6; }
10835else
cristy8b350f62009-11-15 23:12:43 +000010836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000010837$as_echo "ok" >&6; }
10838fi
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +000010862if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010863 enableval=$enable_libtool_lock;
10864fi
10865
10866test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10867
10868# Some flags need to be propagated to the compiler or linker for good
10869# libtool support.
10870case $host in
10871ia64-*-hpux*)
10872 # Find out which ABI we are using.
10873 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010875 (eval $ac_compile) 2>&5
10876 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10878 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010879 case `/usr/bin/file conftest.$ac_objext` in
10880 *ELF-32*)
10881 HPUX_IA64_MODE="32"
10882 ;;
10883 *ELF-64*)
10884 HPUX_IA64_MODE="64"
10885 ;;
10886 esac
10887 fi
10888 rm -rf conftest*
10889 ;;
10890*-*-irix6*)
10891 # Find out which ABI we are using.
cristyfd9dcd42010-08-08 18:07:02 +000010892 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010894 (eval $ac_compile) 2>&5
10895 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10897 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010898 if test "$lt_cv_prog_gnu_ld" = yes; then
10899 case `/usr/bin/file conftest.$ac_objext` in
10900 *32-bit*)
10901 LD="${LD-ld} -melf32bsmip"
10902 ;;
10903 *N32*)
10904 LD="${LD-ld} -melf32bmipn32"
10905 ;;
10906 *64-bit*)
10907 LD="${LD-ld} -melf64bmip"
10908 ;;
10909 esac
10910 else
10911 case `/usr/bin/file conftest.$ac_objext` in
10912 *32-bit*)
10913 LD="${LD-ld} -32"
10914 ;;
10915 *N32*)
10916 LD="${LD-ld} -n32"
10917 ;;
10918 *64-bit*)
10919 LD="${LD-ld} -64"
10920 ;;
10921 esac
10922 fi
10923 fi
10924 rm -rf conftest*
10925 ;;
10926
10927x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10928s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10929 # Find out which ABI we are using.
10930 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010932 (eval $ac_compile) 2>&5
10933 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10935 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010936 case `/usr/bin/file conftest.o` in
10937 *32-bit*)
10938 case $host in
10939 x86_64-*kfreebsd*-gnu)
10940 LD="${LD-ld} -m elf_i386_fbsd"
10941 ;;
10942 x86_64-*linux*)
10943 LD="${LD-ld} -m elf_i386"
10944 ;;
10945 ppc64-*linux*|powerpc64-*linux*)
10946 LD="${LD-ld} -m elf32ppclinux"
10947 ;;
10948 s390x-*linux*)
10949 LD="${LD-ld} -m elf_s390"
10950 ;;
10951 sparc64-*linux*)
10952 LD="${LD-ld} -m elf32_sparc"
10953 ;;
10954 esac
10955 ;;
10956 *64-bit*)
10957 case $host in
10958 x86_64-*kfreebsd*-gnu)
10959 LD="${LD-ld} -m elf_x86_64_fbsd"
10960 ;;
10961 x86_64-*linux*)
10962 LD="${LD-ld} -m elf_x86_64"
10963 ;;
10964 ppc*-*linux*|powerpc*-*linux*)
10965 LD="${LD-ld} -m elf64ppc"
10966 ;;
10967 s390*-*linux*|s390*-*tpf*)
10968 LD="${LD-ld} -m elf64_s390"
10969 ;;
10970 sparc*-*linux*)
10971 LD="${LD-ld} -m elf64_sparc"
10972 ;;
10973 esac
10974 ;;
10975 esac
10976 fi
10977 rm -rf conftest*
10978 ;;
10979
10980*-*-sco3.2v5*)
10981 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10982 SAVE_CFLAGS="$CFLAGS"
10983 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +000010984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000010985$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010986if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010987 $as_echo_n "(cached) " >&6
10988else
10989 ac_ext=c
10990ac_cpp='$CPP $CPPFLAGS'
10991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10993ac_compiler_gnu=$ac_cv_c_compiler_gnu
10994
cristy8b350f62009-11-15 23:12:43 +000010995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010996/* end confdefs.h. */
10997
10998int
10999main ()
11000{
11001
11002 ;
11003 return 0;
11004}
11005_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011006if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011007 lt_cv_cc_needs_belf=yes
11008else
cristy8b350f62009-11-15 23:12:43 +000011009 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +000011010fi
cristy8b350f62009-11-15 23:12:43 +000011011rm -f core conftest.err conftest.$ac_objext \
11012 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011013 ac_ext=c
11014ac_cpp='$CPP $CPPFLAGS'
11015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11017ac_compiler_gnu=$ac_cv_c_compiler_gnu
11018
11019fi
cristy8b350f62009-11-15 23:12:43 +000011020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000011021$as_echo "$lt_cv_cc_needs_belf" >&6; }
11022 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11023 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11024 CFLAGS="$SAVE_CFLAGS"
11025 fi
11026 ;;
11027sparc*-*solaris*)
11028 # Find out which ABI we are using.
11029 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000011031 (eval $ac_compile) 2>&5
11032 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000011033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11034 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000011035 case `/usr/bin/file conftest.o` in
11036 *64-bit*)
11037 case $lt_cv_prog_gnu_ld in
11038 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11039 *)
11040 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11041 LD="${LD-ld} -64"
11042 fi
11043 ;;
11044 esac
11045 ;;
11046 esac
11047 fi
11048 rm -rf conftest*
11049 ;;
11050esac
11051
11052need_locks="$enable_libtool_lock"
11053
11054
11055 case $host_os in
11056 rhapsody* | darwin*)
11057 if test -n "$ac_tool_prefix"; then
11058 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11059set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011061$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011062if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011063 $as_echo_n "(cached) " >&6
11064else
11065 if test -n "$DSYMUTIL"; then
11066 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11067else
11068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11069for as_dir in $PATH
11070do
11071 IFS=$as_save_IFS
11072 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011073 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11075 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011077 break 2
11078 fi
11079done
cristy8b350f62009-11-15 23:12:43 +000011080 done
cristy3ed852e2009-09-05 21:47:34 +000011081IFS=$as_save_IFS
11082
11083fi
11084fi
11085DSYMUTIL=$ac_cv_prog_DSYMUTIL
11086if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011088$as_echo "$DSYMUTIL" >&6; }
11089else
cristy8b350f62009-11-15 23:12:43 +000011090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011091$as_echo "no" >&6; }
11092fi
11093
11094
11095fi
11096if test -z "$ac_cv_prog_DSYMUTIL"; then
11097 ac_ct_DSYMUTIL=$DSYMUTIL
11098 # Extract the first word of "dsymutil", so it can be a program name with args.
11099set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011101$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011102if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011103 $as_echo_n "(cached) " >&6
11104else
11105 if test -n "$ac_ct_DSYMUTIL"; then
11106 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11107else
11108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11109for as_dir in $PATH
11110do
11111 IFS=$as_save_IFS
11112 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011113 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11115 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011117 break 2
11118 fi
11119done
cristy8b350f62009-11-15 23:12:43 +000011120 done
cristy3ed852e2009-09-05 21:47:34 +000011121IFS=$as_save_IFS
11122
11123fi
11124fi
11125ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11126if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011128$as_echo "$ac_ct_DSYMUTIL" >&6; }
11129else
cristy8b350f62009-11-15 23:12:43 +000011130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011131$as_echo "no" >&6; }
11132fi
11133
11134 if test "x$ac_ct_DSYMUTIL" = x; then
11135 DSYMUTIL=":"
11136 else
11137 case $cross_compiling:$ac_tool_warned in
11138yes:)
cristy8b350f62009-11-15 23:12:43 +000011139{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011140$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11141ac_tool_warned=yes ;;
11142esac
11143 DSYMUTIL=$ac_ct_DSYMUTIL
11144 fi
11145else
11146 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11147fi
11148
11149 if test -n "$ac_tool_prefix"; then
11150 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11151set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011153$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011154if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011155 $as_echo_n "(cached) " >&6
11156else
11157 if test -n "$NMEDIT"; then
11158 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11159else
11160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11161for as_dir in $PATH
11162do
11163 IFS=$as_save_IFS
11164 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011165 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11167 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +000011168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011169 break 2
11170 fi
11171done
cristy8b350f62009-11-15 23:12:43 +000011172 done
cristy3ed852e2009-09-05 21:47:34 +000011173IFS=$as_save_IFS
11174
11175fi
11176fi
11177NMEDIT=$ac_cv_prog_NMEDIT
11178if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011180$as_echo "$NMEDIT" >&6; }
11181else
cristy8b350f62009-11-15 23:12:43 +000011182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011183$as_echo "no" >&6; }
11184fi
11185
11186
11187fi
11188if test -z "$ac_cv_prog_NMEDIT"; then
11189 ac_ct_NMEDIT=$NMEDIT
11190 # Extract the first word of "nmedit", so it can be a program name with args.
11191set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011193$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011194if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011195 $as_echo_n "(cached) " >&6
11196else
11197 if test -n "$ac_ct_NMEDIT"; then
11198 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11199else
11200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11201for as_dir in $PATH
11202do
11203 IFS=$as_save_IFS
11204 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011205 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11207 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +000011208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011209 break 2
11210 fi
11211done
cristy8b350f62009-11-15 23:12:43 +000011212 done
cristy3ed852e2009-09-05 21:47:34 +000011213IFS=$as_save_IFS
11214
11215fi
11216fi
11217ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11218if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011220$as_echo "$ac_ct_NMEDIT" >&6; }
11221else
cristy8b350f62009-11-15 23:12:43 +000011222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011223$as_echo "no" >&6; }
11224fi
11225
11226 if test "x$ac_ct_NMEDIT" = x; then
11227 NMEDIT=":"
11228 else
11229 case $cross_compiling:$ac_tool_warned in
11230yes:)
cristy8b350f62009-11-15 23:12:43 +000011231{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011232$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11233ac_tool_warned=yes ;;
11234esac
11235 NMEDIT=$ac_ct_NMEDIT
11236 fi
11237else
11238 NMEDIT="$ac_cv_prog_NMEDIT"
11239fi
11240
11241 if test -n "$ac_tool_prefix"; then
11242 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11243set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011245$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011246if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011247 $as_echo_n "(cached) " >&6
11248else
11249 if test -n "$LIPO"; then
11250 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11251else
11252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11253for as_dir in $PATH
11254do
11255 IFS=$as_save_IFS
11256 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011257 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11259 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +000011260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011261 break 2
11262 fi
11263done
cristy8b350f62009-11-15 23:12:43 +000011264 done
cristy3ed852e2009-09-05 21:47:34 +000011265IFS=$as_save_IFS
11266
11267fi
11268fi
11269LIPO=$ac_cv_prog_LIPO
11270if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011272$as_echo "$LIPO" >&6; }
11273else
cristy8b350f62009-11-15 23:12:43 +000011274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011275$as_echo "no" >&6; }
11276fi
11277
11278
11279fi
11280if test -z "$ac_cv_prog_LIPO"; then
11281 ac_ct_LIPO=$LIPO
11282 # Extract the first word of "lipo", so it can be a program name with args.
11283set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011285$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011286if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011287 $as_echo_n "(cached) " >&6
11288else
11289 if test -n "$ac_ct_LIPO"; then
11290 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11291else
11292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11293for as_dir in $PATH
11294do
11295 IFS=$as_save_IFS
11296 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011297 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11299 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +000011300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011301 break 2
11302 fi
11303done
cristy8b350f62009-11-15 23:12:43 +000011304 done
cristy3ed852e2009-09-05 21:47:34 +000011305IFS=$as_save_IFS
11306
11307fi
11308fi
11309ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11310if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011312$as_echo "$ac_ct_LIPO" >&6; }
11313else
cristy8b350f62009-11-15 23:12:43 +000011314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011315$as_echo "no" >&6; }
11316fi
11317
11318 if test "x$ac_ct_LIPO" = x; then
11319 LIPO=":"
11320 else
11321 case $cross_compiling:$ac_tool_warned in
11322yes:)
cristy8b350f62009-11-15 23:12:43 +000011323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11325ac_tool_warned=yes ;;
11326esac
11327 LIPO=$ac_ct_LIPO
11328 fi
11329else
11330 LIPO="$ac_cv_prog_LIPO"
11331fi
11332
11333 if test -n "$ac_tool_prefix"; then
11334 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11335set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011337$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011338if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011339 $as_echo_n "(cached) " >&6
11340else
11341 if test -n "$OTOOL"; then
11342 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11343else
11344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11345for as_dir in $PATH
11346do
11347 IFS=$as_save_IFS
11348 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011349 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11351 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +000011352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011353 break 2
11354 fi
11355done
cristy8b350f62009-11-15 23:12:43 +000011356 done
cristy3ed852e2009-09-05 21:47:34 +000011357IFS=$as_save_IFS
11358
11359fi
11360fi
11361OTOOL=$ac_cv_prog_OTOOL
11362if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011364$as_echo "$OTOOL" >&6; }
11365else
cristy8b350f62009-11-15 23:12:43 +000011366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011367$as_echo "no" >&6; }
11368fi
11369
11370
11371fi
11372if test -z "$ac_cv_prog_OTOOL"; then
11373 ac_ct_OTOOL=$OTOOL
11374 # Extract the first word of "otool", so it can be a program name with args.
11375set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011377$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011378if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011379 $as_echo_n "(cached) " >&6
11380else
11381 if test -n "$ac_ct_OTOOL"; then
11382 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11383else
11384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11385for as_dir in $PATH
11386do
11387 IFS=$as_save_IFS
11388 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011389 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11391 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +000011392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011393 break 2
11394 fi
11395done
cristy8b350f62009-11-15 23:12:43 +000011396 done
cristy3ed852e2009-09-05 21:47:34 +000011397IFS=$as_save_IFS
11398
11399fi
11400fi
11401ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11402if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011404$as_echo "$ac_ct_OTOOL" >&6; }
11405else
cristy8b350f62009-11-15 23:12:43 +000011406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011407$as_echo "no" >&6; }
11408fi
11409
11410 if test "x$ac_ct_OTOOL" = x; then
11411 OTOOL=":"
11412 else
11413 case $cross_compiling:$ac_tool_warned in
11414yes:)
cristy8b350f62009-11-15 23:12:43 +000011415{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011416$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11417ac_tool_warned=yes ;;
11418esac
11419 OTOOL=$ac_ct_OTOOL
11420 fi
11421else
11422 OTOOL="$ac_cv_prog_OTOOL"
11423fi
11424
11425 if test -n "$ac_tool_prefix"; then
11426 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11427set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011429$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011430if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011431 $as_echo_n "(cached) " >&6
11432else
11433 if test -n "$OTOOL64"; then
11434 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11435else
11436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11437for as_dir in $PATH
11438do
11439 IFS=$as_save_IFS
11440 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011441 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11443 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000011444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011445 break 2
11446 fi
11447done
cristy8b350f62009-11-15 23:12:43 +000011448 done
cristy3ed852e2009-09-05 21:47:34 +000011449IFS=$as_save_IFS
11450
11451fi
11452fi
11453OTOOL64=$ac_cv_prog_OTOOL64
11454if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011456$as_echo "$OTOOL64" >&6; }
11457else
cristy8b350f62009-11-15 23:12:43 +000011458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011459$as_echo "no" >&6; }
11460fi
11461
11462
11463fi
11464if test -z "$ac_cv_prog_OTOOL64"; then
11465 ac_ct_OTOOL64=$OTOOL64
11466 # Extract the first word of "otool64", so it can be a program name with args.
11467set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011469$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011470if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011471 $as_echo_n "(cached) " >&6
11472else
11473 if test -n "$ac_ct_OTOOL64"; then
11474 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11475else
11476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11477for as_dir in $PATH
11478do
11479 IFS=$as_save_IFS
11480 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011481 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11483 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000011484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011485 break 2
11486 fi
11487done
cristy8b350f62009-11-15 23:12:43 +000011488 done
cristy3ed852e2009-09-05 21:47:34 +000011489IFS=$as_save_IFS
11490
11491fi
11492fi
11493ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11494if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011496$as_echo "$ac_ct_OTOOL64" >&6; }
11497else
cristy8b350f62009-11-15 23:12:43 +000011498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011499$as_echo "no" >&6; }
11500fi
11501
11502 if test "x$ac_ct_OTOOL64" = x; then
11503 OTOOL64=":"
11504 else
11505 case $cross_compiling:$ac_tool_warned in
11506yes:)
cristy8b350f62009-11-15 23:12:43 +000011507{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011508$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11509ac_tool_warned=yes ;;
11510esac
11511 OTOOL64=$ac_ct_OTOOL64
11512 fi
11513else
11514 OTOOL64="$ac_cv_prog_OTOOL64"
11515fi
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
11542
cristy8b350f62009-11-15 23:12:43 +000011543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011544$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011545if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011546 $as_echo_n "(cached) " >&6
11547else
11548 lt_cv_apple_cc_single_mod=no
11549 if test -z "${LT_MULTI_MODULE}"; then
11550 # By default we will add the -single_module flag. You can override
11551 # by either setting the environment variable LT_MULTI_MODULE
11552 # non-empty at configure time, or by adding -multi_module to the
11553 # link flags.
11554 rm -rf libconftest.dylib*
11555 echo "int foo(void){return 1;}" > conftest.c
11556 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11557-dynamiclib -Wl,-single_module conftest.c" >&5
11558 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11559 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11560 _lt_result=$?
11561 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11562 lt_cv_apple_cc_single_mod=yes
11563 else
11564 cat conftest.err >&5
11565 fi
11566 rm -rf libconftest.dylib*
11567 rm -f conftest.*
11568 fi
11569fi
cristy8b350f62009-11-15 23:12:43 +000011570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000011571$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011573$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011574if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011575 $as_echo_n "(cached) " >&6
11576else
11577 lt_cv_ld_exported_symbols_list=no
11578 save_LDFLAGS=$LDFLAGS
11579 echo "_main" > conftest.sym
11580 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000011581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011582/* end confdefs.h. */
11583
11584int
11585main ()
11586{
11587
11588 ;
11589 return 0;
11590}
11591_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011592if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011593 lt_cv_ld_exported_symbols_list=yes
11594else
cristy8b350f62009-11-15 23:12:43 +000011595 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000011596fi
cristy8b350f62009-11-15 23:12:43 +000011597rm -f core conftest.err conftest.$ac_objext \
11598 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011599 LDFLAGS="$save_LDFLAGS"
11600
11601fi
cristy8b350f62009-11-15 23:12:43 +000011602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000011603$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000011604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11605$as_echo_n "checking for -force_load linker flag... " >&6; }
11606if test "${lt_cv_ld_force_load+set}" = set; then :
11607 $as_echo_n "(cached) " >&6
11608else
11609 lt_cv_ld_force_load=no
11610 cat > conftest.c << _LT_EOF
11611int forced_loaded() { return 2;}
11612_LT_EOF
11613 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11614 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11615 echo "$AR cru libconftest.a conftest.o" >&5
11616 $AR cru libconftest.a conftest.o 2>&5
11617 echo "$RANLIB libconftest.a" >&5
11618 $RANLIB libconftest.a 2>&5
11619 cat > conftest.c << _LT_EOF
11620int main() { return 0;}
11621_LT_EOF
11622 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11623 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11624 _lt_result=$?
11625 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11626 lt_cv_ld_force_load=yes
11627 else
11628 cat conftest.err >&5
11629 fi
11630 rm -f conftest.err libconftest.a conftest conftest.c
11631 rm -rf conftest.dSYM
11632
11633fi
11634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11635$as_echo "$lt_cv_ld_force_load" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011636 case $host_os in
11637 rhapsody* | darwin1.[012])
11638 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11639 darwin1.*)
11640 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11641 darwin*) # darwin 5.x on
11642 # if running on 10.5 or later, the deployment target defaults
11643 # to the OS version, if on x86, and 10.4, the deployment
11644 # target defaults to 10.4. Don't you love it?
11645 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11646 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11647 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11648 10.[012]*)
11649 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11650 10.*)
11651 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11652 esac
11653 ;;
11654 esac
11655 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11656 _lt_dar_single_mod='$single_module'
11657 fi
11658 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11659 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11660 else
11661 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11662 fi
cristyfd9dcd42010-08-08 18:07:02 +000011663 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy3ed852e2009-09-05 21:47:34 +000011664 _lt_dsymutil='~$DSYMUTIL $lib || :'
11665 else
11666 _lt_dsymutil=
11667 fi
11668 ;;
11669 esac
11670
cristy3ed852e2009-09-05 21:47:34 +000011671for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000011672do :
11673 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11674"
11675if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011676 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011677#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000011678_ACEOF
11679
11680fi
11681
11682done
11683
11684
11685
cristy3ed852e2009-09-05 21:47:34 +000011686
11687
11688
11689# Set options
11690enable_win32_dll=yes
11691
11692case $host in
cristyfd9dcd42010-08-08 18:07:02 +000011693*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000011694 if test -n "$ac_tool_prefix"; then
11695 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11696set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011698$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011699if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011700 $as_echo_n "(cached) " >&6
11701else
11702 if test -n "$AS"; then
11703 ac_cv_prog_AS="$AS" # Let the user override the test.
11704else
11705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11706for as_dir in $PATH
11707do
11708 IFS=$as_save_IFS
11709 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011710 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11712 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000011713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011714 break 2
11715 fi
11716done
cristy8b350f62009-11-15 23:12:43 +000011717 done
cristy3ed852e2009-09-05 21:47:34 +000011718IFS=$as_save_IFS
11719
11720fi
11721fi
11722AS=$ac_cv_prog_AS
11723if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000011724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011725$as_echo "$AS" >&6; }
11726else
cristy8b350f62009-11-15 23:12:43 +000011727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011728$as_echo "no" >&6; }
11729fi
11730
11731
11732fi
11733if test -z "$ac_cv_prog_AS"; then
11734 ac_ct_AS=$AS
11735 # Extract the first word of "as", so it can be a program name with args.
11736set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011738$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011739if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011740 $as_echo_n "(cached) " >&6
11741else
11742 if test -n "$ac_ct_AS"; then
11743 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11744else
11745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11746for as_dir in $PATH
11747do
11748 IFS=$as_save_IFS
11749 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011750 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11752 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000011753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011754 break 2
11755 fi
11756done
cristy8b350f62009-11-15 23:12:43 +000011757 done
cristy3ed852e2009-09-05 21:47:34 +000011758IFS=$as_save_IFS
11759
11760fi
11761fi
11762ac_ct_AS=$ac_cv_prog_ac_ct_AS
11763if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000011764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011765$as_echo "$ac_ct_AS" >&6; }
11766else
cristy8b350f62009-11-15 23:12:43 +000011767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011768$as_echo "no" >&6; }
11769fi
11770
11771 if test "x$ac_ct_AS" = x; then
11772 AS="false"
11773 else
11774 case $cross_compiling:$ac_tool_warned in
11775yes:)
cristy8b350f62009-11-15 23:12:43 +000011776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11778ac_tool_warned=yes ;;
11779esac
11780 AS=$ac_ct_AS
11781 fi
11782else
11783 AS="$ac_cv_prog_AS"
11784fi
11785
11786 if test -n "$ac_tool_prefix"; then
11787 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11788set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011790$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011791if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011792 $as_echo_n "(cached) " >&6
11793else
11794 if test -n "$DLLTOOL"; then
11795 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11796else
11797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11798for as_dir in $PATH
11799do
11800 IFS=$as_save_IFS
11801 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011802 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11804 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000011805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011806 break 2
11807 fi
11808done
cristy8b350f62009-11-15 23:12:43 +000011809 done
cristy3ed852e2009-09-05 21:47:34 +000011810IFS=$as_save_IFS
11811
11812fi
11813fi
11814DLLTOOL=$ac_cv_prog_DLLTOOL
11815if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011817$as_echo "$DLLTOOL" >&6; }
11818else
cristy8b350f62009-11-15 23:12:43 +000011819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011820$as_echo "no" >&6; }
11821fi
11822
11823
11824fi
11825if test -z "$ac_cv_prog_DLLTOOL"; then
11826 ac_ct_DLLTOOL=$DLLTOOL
11827 # Extract the first word of "dlltool", so it can be a program name with args.
11828set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011830$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011831if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011832 $as_echo_n "(cached) " >&6
11833else
11834 if test -n "$ac_ct_DLLTOOL"; then
11835 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11836else
11837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11838for as_dir in $PATH
11839do
11840 IFS=$as_save_IFS
11841 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011842 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11844 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000011845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011846 break 2
11847 fi
11848done
cristy8b350f62009-11-15 23:12:43 +000011849 done
cristy3ed852e2009-09-05 21:47:34 +000011850IFS=$as_save_IFS
11851
11852fi
11853fi
11854ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11855if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011857$as_echo "$ac_ct_DLLTOOL" >&6; }
11858else
cristy8b350f62009-11-15 23:12:43 +000011859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011860$as_echo "no" >&6; }
11861fi
11862
11863 if test "x$ac_ct_DLLTOOL" = x; then
11864 DLLTOOL="false"
11865 else
11866 case $cross_compiling:$ac_tool_warned in
11867yes:)
cristy8b350f62009-11-15 23:12:43 +000011868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11870ac_tool_warned=yes ;;
11871esac
11872 DLLTOOL=$ac_ct_DLLTOOL
11873 fi
11874else
11875 DLLTOOL="$ac_cv_prog_DLLTOOL"
11876fi
11877
11878 if test -n "$ac_tool_prefix"; then
11879 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11880set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011882$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011883if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011884 $as_echo_n "(cached) " >&6
11885else
11886 if test -n "$OBJDUMP"; then
11887 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11888else
11889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11890for as_dir in $PATH
11891do
11892 IFS=$as_save_IFS
11893 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011894 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11896 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000011897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011898 break 2
11899 fi
11900done
cristy8b350f62009-11-15 23:12:43 +000011901 done
cristy3ed852e2009-09-05 21:47:34 +000011902IFS=$as_save_IFS
11903
11904fi
11905fi
11906OBJDUMP=$ac_cv_prog_OBJDUMP
11907if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011909$as_echo "$OBJDUMP" >&6; }
11910else
cristy8b350f62009-11-15 23:12:43 +000011911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011912$as_echo "no" >&6; }
11913fi
11914
11915
11916fi
11917if test -z "$ac_cv_prog_OBJDUMP"; then
11918 ac_ct_OBJDUMP=$OBJDUMP
11919 # Extract the first word of "objdump", so it can be a program name with args.
11920set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011922$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011923if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011924 $as_echo_n "(cached) " >&6
11925else
11926 if test -n "$ac_ct_OBJDUMP"; then
11927 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11928else
11929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11930for as_dir in $PATH
11931do
11932 IFS=$as_save_IFS
11933 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011934 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11936 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000011937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011938 break 2
11939 fi
11940done
cristy8b350f62009-11-15 23:12:43 +000011941 done
cristy3ed852e2009-09-05 21:47:34 +000011942IFS=$as_save_IFS
11943
11944fi
11945fi
11946ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11947if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011949$as_echo "$ac_ct_OBJDUMP" >&6; }
11950else
cristy8b350f62009-11-15 23:12:43 +000011951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011952$as_echo "no" >&6; }
11953fi
11954
11955 if test "x$ac_ct_OBJDUMP" = x; then
11956 OBJDUMP="false"
11957 else
11958 case $cross_compiling:$ac_tool_warned in
11959yes:)
cristy8b350f62009-11-15 23:12:43 +000011960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11962ac_tool_warned=yes ;;
11963esac
11964 OBJDUMP=$ac_ct_OBJDUMP
11965 fi
11966else
11967 OBJDUMP="$ac_cv_prog_OBJDUMP"
11968fi
11969
11970 ;;
11971esac
11972
11973test -z "$AS" && AS=as
11974
11975
11976
11977
11978
11979test -z "$DLLTOOL" && DLLTOOL=dlltool
11980
11981
11982
11983
11984
11985test -z "$OBJDUMP" && OBJDUMP=objdump
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000011996if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011997 enableval=$enable_shared; p=${PACKAGE-default}
11998 case $enableval in
11999 yes) enable_shared=yes ;;
12000 no) enable_shared=no ;;
12001 *)
12002 enable_shared=no
12003 # Look at the argument we got. We use all the common list separators.
12004 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12005 for pkg in $enableval; do
12006 IFS="$lt_save_ifs"
12007 if test "X$pkg" = "X$p"; then
12008 enable_shared=yes
12009 fi
12010 done
12011 IFS="$lt_save_ifs"
12012 ;;
12013 esac
12014else
12015 enable_shared=yes
12016fi
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000012027if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012028 enableval=$enable_static; p=${PACKAGE-default}
12029 case $enableval in
12030 yes) enable_static=yes ;;
12031 no) enable_static=no ;;
12032 *)
12033 enable_static=no
12034 # Look at the argument we got. We use all the common list separators.
12035 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12036 for pkg in $enableval; do
12037 IFS="$lt_save_ifs"
12038 if test "X$pkg" = "X$p"; then
12039 enable_static=yes
12040 fi
12041 done
12042 IFS="$lt_save_ifs"
12043 ;;
12044 esac
12045else
12046 enable_static=yes
12047fi
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000012059if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012060 withval=$with_pic; pic_mode="$withval"
12061else
12062 pic_mode=default
12063fi
12064
12065
12066test -z "$pic_mode" && pic_mode=default
12067
12068
12069
12070
12071
12072
12073
12074 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000012075if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012076 enableval=$enable_fast_install; p=${PACKAGE-default}
12077 case $enableval in
12078 yes) enable_fast_install=yes ;;
12079 no) enable_fast_install=no ;;
12080 *)
12081 enable_fast_install=no
12082 # Look at the argument we got. We use all the common list separators.
12083 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12084 for pkg in $enableval; do
12085 IFS="$lt_save_ifs"
12086 if test "X$pkg" = "X$p"; then
12087 enable_fast_install=yes
12088 fi
12089 done
12090 IFS="$lt_save_ifs"
12091 ;;
12092 esac
12093else
12094 enable_fast_install=yes
12095fi
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107# This can be used to rebuild libtool when needed
12108LIBTOOL_DEPS="$ltmain"
12109
12110# Always use our own libtool.
12111LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
cristyfd9dcd42010-08-08 18:07:02 +000012137
cristy3ed852e2009-09-05 21:47:34 +000012138test -z "$LN_S" && LN_S="ln -s"
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153if test -n "${ZSH_VERSION+set}" ; then
12154 setopt NO_GLOB_SUBST
12155fi
12156
cristy8b350f62009-11-15 23:12:43 +000012157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012158$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012159if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012160 $as_echo_n "(cached) " >&6
12161else
12162 rm -f .libs 2>/dev/null
12163mkdir .libs 2>/dev/null
12164if test -d .libs; then
12165 lt_cv_objdir=.libs
12166else
12167 # MS-DOS does not allow filenames that begin with a dot.
12168 lt_cv_objdir=_libs
12169fi
12170rmdir .libs 2>/dev/null
12171fi
cristy8b350f62009-11-15 23:12:43 +000012172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012173$as_echo "$lt_cv_objdir" >&6; }
12174objdir=$lt_cv_objdir
12175
12176
12177
12178
12179
12180cat >>confdefs.h <<_ACEOF
12181#define LT_OBJDIR "$lt_cv_objdir/"
12182_ACEOF
12183
12184
12185
12186
cristy3ed852e2009-09-05 21:47:34 +000012187case $host_os in
12188aix3*)
12189 # AIX sometimes has problems with the GCC collect2 program. For some
12190 # reason, if we set the COLLECT_NAMES environment variable, the problems
12191 # vanish in a puff of smoke.
12192 if test "X${COLLECT_NAMES+set}" != Xset; then
12193 COLLECT_NAMES=
12194 export COLLECT_NAMES
12195 fi
12196 ;;
12197esac
12198
cristy3ed852e2009-09-05 21:47:34 +000012199# Global variables:
12200ofile=libtool
12201can_build_shared=yes
12202
12203# All known linkers require a `.a' archive for static linking (except MSVC,
12204# which needs '.lib').
12205libext=a
12206
12207with_gnu_ld="$lt_cv_prog_gnu_ld"
12208
12209old_CC="$CC"
12210old_CFLAGS="$CFLAGS"
12211
12212# Set sane defaults for various variables
12213test -z "$CC" && CC=cc
12214test -z "$LTCC" && LTCC=$CC
12215test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12216test -z "$LD" && LD=ld
12217test -z "$ac_objext" && ac_objext=o
12218
12219for cc_temp in $compiler""; do
12220 case $cc_temp in
12221 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12222 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12223 \-*) ;;
12224 *) break;;
12225 esac
12226done
cristyfd9dcd42010-08-08 18:07:02 +000012227cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000012228
12229
12230# Only perform the check for file, if the check method requires it
12231test -z "$MAGIC_CMD" && MAGIC_CMD=file
12232case $deplibs_check_method in
12233file_magic*)
12234 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000012235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012236$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012237if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012238 $as_echo_n "(cached) " >&6
12239else
12240 case $MAGIC_CMD in
12241[\\/*] | ?:[\\/]*)
12242 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12243 ;;
12244*)
12245 lt_save_MAGIC_CMD="$MAGIC_CMD"
12246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12247 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12248 for ac_dir in $ac_dummy; do
12249 IFS="$lt_save_ifs"
12250 test -z "$ac_dir" && ac_dir=.
12251 if test -f $ac_dir/${ac_tool_prefix}file; then
12252 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12253 if test -n "$file_magic_test_file"; then
12254 case $deplibs_check_method in
12255 "file_magic "*)
12256 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12257 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12258 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12259 $EGREP "$file_magic_regex" > /dev/null; then
12260 :
12261 else
12262 cat <<_LT_EOF 1>&2
12263
12264*** Warning: the command libtool uses to detect shared libraries,
12265*** $file_magic_cmd, produces output that libtool cannot recognize.
12266*** The result is that libtool may fail to recognize shared libraries
12267*** as such. This will affect the creation of libtool libraries that
12268*** depend on shared libraries, but programs linked with such libtool
12269*** libraries will work regardless of this problem. Nevertheless, you
12270*** may want to report the problem to your system manager and/or to
12271*** bug-libtool@gnu.org
12272
12273_LT_EOF
12274 fi ;;
12275 esac
12276 fi
12277 break
12278 fi
12279 done
12280 IFS="$lt_save_ifs"
12281 MAGIC_CMD="$lt_save_MAGIC_CMD"
12282 ;;
12283esac
12284fi
12285
12286MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12287if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012289$as_echo "$MAGIC_CMD" >&6; }
12290else
cristy8b350f62009-11-15 23:12:43 +000012291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012292$as_echo "no" >&6; }
12293fi
12294
12295
12296
12297
12298
12299if test -z "$lt_cv_path_MAGIC_CMD"; then
12300 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000012301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012302$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012303if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012304 $as_echo_n "(cached) " >&6
12305else
12306 case $MAGIC_CMD in
12307[\\/*] | ?:[\\/]*)
12308 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12309 ;;
12310*)
12311 lt_save_MAGIC_CMD="$MAGIC_CMD"
12312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12313 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12314 for ac_dir in $ac_dummy; do
12315 IFS="$lt_save_ifs"
12316 test -z "$ac_dir" && ac_dir=.
12317 if test -f $ac_dir/file; then
12318 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12319 if test -n "$file_magic_test_file"; then
12320 case $deplibs_check_method in
12321 "file_magic "*)
12322 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12323 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12324 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12325 $EGREP "$file_magic_regex" > /dev/null; then
12326 :
12327 else
12328 cat <<_LT_EOF 1>&2
12329
12330*** Warning: the command libtool uses to detect shared libraries,
12331*** $file_magic_cmd, produces output that libtool cannot recognize.
12332*** The result is that libtool may fail to recognize shared libraries
12333*** as such. This will affect the creation of libtool libraries that
12334*** depend on shared libraries, but programs linked with such libtool
12335*** libraries will work regardless of this problem. Nevertheless, you
12336*** may want to report the problem to your system manager and/or to
12337*** bug-libtool@gnu.org
12338
12339_LT_EOF
12340 fi ;;
12341 esac
12342 fi
12343 break
12344 fi
12345 done
12346 IFS="$lt_save_ifs"
12347 MAGIC_CMD="$lt_save_MAGIC_CMD"
12348 ;;
12349esac
12350fi
12351
12352MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12353if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012355$as_echo "$MAGIC_CMD" >&6; }
12356else
cristy8b350f62009-11-15 23:12:43 +000012357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012358$as_echo "no" >&6; }
12359fi
12360
12361
12362 else
12363 MAGIC_CMD=:
12364 fi
12365fi
12366
12367 fi
12368 ;;
12369esac
12370
12371# Use C for the default configuration in the libtool script
12372
12373lt_save_CC="$CC"
12374ac_ext=c
12375ac_cpp='$CPP $CPPFLAGS'
12376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12378ac_compiler_gnu=$ac_cv_c_compiler_gnu
12379
12380
12381# Source file extension for C test sources.
12382ac_ext=c
12383
12384# Object file extension for compiled C test sources.
12385objext=o
12386objext=$objext
12387
12388# Code to be used in simple compile tests
12389lt_simple_compile_test_code="int some_variable = 0;"
12390
12391# Code to be used in simple link tests
12392lt_simple_link_test_code='int main(){return(0);}'
12393
12394
12395
12396
12397
12398
12399
12400# If no C compiler was specified, use CC.
12401LTCC=${LTCC-"$CC"}
12402
12403# If no C compiler flags were specified, use CFLAGS.
12404LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12405
12406# Allow CC to be a program name with arguments.
12407compiler=$CC
12408
12409# Save the default compiler, since it gets overwritten when the other
12410# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12411compiler_DEFAULT=$CC
12412
12413# save warnings/boilerplate of simple test code
12414ac_outfile=conftest.$ac_objext
12415echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12416eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12417_lt_compiler_boilerplate=`cat conftest.err`
12418$RM conftest*
12419
12420ac_outfile=conftest.$ac_objext
12421echo "$lt_simple_link_test_code" >conftest.$ac_ext
12422eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12423_lt_linker_boilerplate=`cat conftest.err`
12424$RM -r conftest*
12425
12426
12427## CAVEAT EMPTOR:
12428## There is no encapsulation within the following macros, do not change
12429## the running order or otherwise move them around unless you know exactly
12430## what you are doing...
12431if test -n "$compiler"; then
12432
12433lt_prog_compiler_no_builtin_flag=
12434
12435if test "$GCC" = yes; then
cristyfd9dcd42010-08-08 18:07:02 +000012436 case $cc_basename in
12437 nvcc*)
12438 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12439 *)
12440 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12441 esac
cristy3ed852e2009-09-05 21:47:34 +000012442
cristy8b350f62009-11-15 23:12:43 +000012443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012444$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012445if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012446 $as_echo_n "(cached) " >&6
12447else
12448 lt_cv_prog_compiler_rtti_exceptions=no
12449 ac_outfile=conftest.$ac_objext
12450 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12451 lt_compiler_flag="-fno-rtti -fno-exceptions"
12452 # Insert the option either (1) after the last *FLAGS variable, or
12453 # (2) before a word containing "conftest.", or (3) at the end.
12454 # Note that $ac_compile itself does not contain backslashes and begins
12455 # with a dollar sign (not a hyphen), so the echo should work correctly.
12456 # The option is referenced via a variable to avoid confusing sed.
12457 lt_compile=`echo "$ac_compile" | $SED \
12458 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12459 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12460 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000012461 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012462 (eval "$lt_compile" 2>conftest.err)
12463 ac_status=$?
12464 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000012465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012466 if (exit $ac_status) && test -s "$ac_outfile"; then
12467 # The compiler can only warn and ignore the option if not recognized
12468 # So say no if there are warnings other than the usual output.
cristyfd9dcd42010-08-08 18:07:02 +000012469 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012470 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12471 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12472 lt_cv_prog_compiler_rtti_exceptions=yes
12473 fi
12474 fi
12475 $RM conftest*
12476
12477fi
cristy8b350f62009-11-15 23:12:43 +000012478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012479$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12480
12481if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12482 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12483else
12484 :
12485fi
12486
12487fi
12488
12489
12490
12491
12492
12493
12494 lt_prog_compiler_wl=
12495lt_prog_compiler_pic=
12496lt_prog_compiler_static=
12497
cristy8b350f62009-11-15 23:12:43 +000012498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000012499$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12500
12501 if test "$GCC" = yes; then
12502 lt_prog_compiler_wl='-Wl,'
12503 lt_prog_compiler_static='-static'
12504
12505 case $host_os in
12506 aix*)
12507 # All AIX code is PIC.
12508 if test "$host_cpu" = ia64; then
12509 # AIX 5 now supports IA64 processor
12510 lt_prog_compiler_static='-Bstatic'
12511 fi
12512 ;;
12513
12514 amigaos*)
12515 case $host_cpu in
12516 powerpc)
12517 # see comment about AmigaOS4 .so support
12518 lt_prog_compiler_pic='-fPIC'
12519 ;;
12520 m68k)
12521 # FIXME: we need at least 68020 code to build shared libraries, but
12522 # adding the `-m68020' flag to GCC prevents building anything better,
12523 # like `-m68040'.
12524 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12525 ;;
12526 esac
12527 ;;
12528
12529 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12530 # PIC is the default for these OSes.
12531 ;;
12532
12533 mingw* | cygwin* | pw32* | os2* | cegcc*)
12534 # This hack is so that the source file can tell whether it is being
12535 # built for inclusion in a dll (and should export symbols for example).
12536 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12537 # (--disable-auto-import) libraries
12538 lt_prog_compiler_pic='-DDLL_EXPORT'
12539 ;;
12540
12541 darwin* | rhapsody*)
12542 # PIC is the default on this platform
12543 # Common symbols not allowed in MH_DYLIB files
12544 lt_prog_compiler_pic='-fno-common'
12545 ;;
12546
cristyfd9dcd42010-08-08 18:07:02 +000012547 haiku*)
12548 # PIC is the default for Haiku.
12549 # The "-static" flag exists, but is broken.
12550 lt_prog_compiler_static=
12551 ;;
12552
cristy3ed852e2009-09-05 21:47:34 +000012553 hpux*)
12554 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12555 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12556 # sets the default TLS model and affects inlining.
12557 case $host_cpu in
12558 hppa*64*)
12559 # +Z the default
12560 ;;
12561 *)
12562 lt_prog_compiler_pic='-fPIC'
12563 ;;
12564 esac
12565 ;;
12566
12567 interix[3-9]*)
12568 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12569 # Instead, we relocate shared libraries at runtime.
12570 ;;
12571
12572 msdosdjgpp*)
12573 # Just because we use GCC doesn't mean we suddenly get shared libraries
12574 # on systems that don't support them.
12575 lt_prog_compiler_can_build_shared=no
12576 enable_shared=no
12577 ;;
12578
12579 *nto* | *qnx*)
12580 # QNX uses GNU C++, but need to define -shared option too, otherwise
12581 # it will coredump.
12582 lt_prog_compiler_pic='-fPIC -shared'
12583 ;;
12584
12585 sysv4*MP*)
12586 if test -d /usr/nec; then
12587 lt_prog_compiler_pic=-Kconform_pic
12588 fi
12589 ;;
12590
12591 *)
12592 lt_prog_compiler_pic='-fPIC'
12593 ;;
12594 esac
cristyfd9dcd42010-08-08 18:07:02 +000012595
12596 case $cc_basename in
12597 nvcc*) # Cuda Compiler Driver 2.2
12598 lt_prog_compiler_wl='-Xlinker '
12599 lt_prog_compiler_pic='-Xcompiler -fPIC'
12600 ;;
12601 esac
cristy3ed852e2009-09-05 21:47:34 +000012602 else
12603 # PORTME Check for flag to pass linker flags through the system compiler.
12604 case $host_os in
12605 aix*)
12606 lt_prog_compiler_wl='-Wl,'
12607 if test "$host_cpu" = ia64; then
12608 # AIX 5 now supports IA64 processor
12609 lt_prog_compiler_static='-Bstatic'
12610 else
12611 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12612 fi
12613 ;;
12614
12615 mingw* | cygwin* | pw32* | os2* | cegcc*)
12616 # This hack is so that the source file can tell whether it is being
12617 # built for inclusion in a dll (and should export symbols for example).
12618 lt_prog_compiler_pic='-DDLL_EXPORT'
12619 ;;
12620
12621 hpux9* | hpux10* | hpux11*)
12622 lt_prog_compiler_wl='-Wl,'
12623 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12624 # not for PA HP-UX.
12625 case $host_cpu in
12626 hppa*64*|ia64*)
12627 # +Z the default
12628 ;;
12629 *)
12630 lt_prog_compiler_pic='+Z'
12631 ;;
12632 esac
12633 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12634 lt_prog_compiler_static='${wl}-a ${wl}archive'
12635 ;;
12636
12637 irix5* | irix6* | nonstopux*)
12638 lt_prog_compiler_wl='-Wl,'
12639 # PIC (with -KPIC) is the default.
12640 lt_prog_compiler_static='-non_shared'
12641 ;;
12642
cristyfd9dcd42010-08-08 18:07:02 +000012643 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000012644 case $cc_basename in
12645 # old Intel for x86_64 which still supported -KPIC.
12646 ecc*)
12647 lt_prog_compiler_wl='-Wl,'
12648 lt_prog_compiler_pic='-KPIC'
12649 lt_prog_compiler_static='-static'
12650 ;;
12651 # icc used to be incompatible with GCC.
12652 # ICC 10 doesn't accept -KPIC any more.
12653 icc* | ifort*)
12654 lt_prog_compiler_wl='-Wl,'
12655 lt_prog_compiler_pic='-fPIC'
12656 lt_prog_compiler_static='-static'
12657 ;;
12658 # Lahey Fortran 8.1.
12659 lf95*)
12660 lt_prog_compiler_wl='-Wl,'
12661 lt_prog_compiler_pic='--shared'
12662 lt_prog_compiler_static='--static'
12663 ;;
cristyfd9dcd42010-08-08 18:07:02 +000012664 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy3ed852e2009-09-05 21:47:34 +000012665 # Portland Group compilers (*not* the Pentium gcc compiler,
12666 # which looks to be a dead project)
12667 lt_prog_compiler_wl='-Wl,'
12668 lt_prog_compiler_pic='-fpic'
12669 lt_prog_compiler_static='-Bstatic'
12670 ;;
12671 ccc*)
12672 lt_prog_compiler_wl='-Wl,'
12673 # All Alpha code is PIC.
12674 lt_prog_compiler_static='-non_shared'
12675 ;;
cristyfd9dcd42010-08-08 18:07:02 +000012676 xl* | bgxl* | bgf* | mpixl*)
12677 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy3ed852e2009-09-05 21:47:34 +000012678 lt_prog_compiler_wl='-Wl,'
12679 lt_prog_compiler_pic='-qpic'
12680 lt_prog_compiler_static='-qstaticlink'
12681 ;;
12682 *)
12683 case `$CC -V 2>&1 | sed 5q` in
cristyfd9dcd42010-08-08 18:07:02 +000012684 *Sun\ F* | *Sun*Fortran*)
12685 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12686 lt_prog_compiler_pic='-KPIC'
12687 lt_prog_compiler_static='-Bstatic'
12688 lt_prog_compiler_wl=''
12689 ;;
cristy3ed852e2009-09-05 21:47:34 +000012690 *Sun\ C*)
12691 # Sun C 5.9
12692 lt_prog_compiler_pic='-KPIC'
12693 lt_prog_compiler_static='-Bstatic'
12694 lt_prog_compiler_wl='-Wl,'
12695 ;;
cristy3ed852e2009-09-05 21:47:34 +000012696 esac
12697 ;;
12698 esac
12699 ;;
12700
12701 newsos6)
12702 lt_prog_compiler_pic='-KPIC'
12703 lt_prog_compiler_static='-Bstatic'
12704 ;;
12705
12706 *nto* | *qnx*)
12707 # QNX uses GNU C++, but need to define -shared option too, otherwise
12708 # it will coredump.
12709 lt_prog_compiler_pic='-fPIC -shared'
12710 ;;
12711
12712 osf3* | osf4* | osf5*)
12713 lt_prog_compiler_wl='-Wl,'
12714 # All OSF/1 code is PIC.
12715 lt_prog_compiler_static='-non_shared'
12716 ;;
12717
12718 rdos*)
12719 lt_prog_compiler_static='-non_shared'
12720 ;;
12721
12722 solaris*)
12723 lt_prog_compiler_pic='-KPIC'
12724 lt_prog_compiler_static='-Bstatic'
12725 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000012726 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy3ed852e2009-09-05 21:47:34 +000012727 lt_prog_compiler_wl='-Qoption ld ';;
12728 *)
12729 lt_prog_compiler_wl='-Wl,';;
12730 esac
12731 ;;
12732
12733 sunos4*)
12734 lt_prog_compiler_wl='-Qoption ld '
12735 lt_prog_compiler_pic='-PIC'
12736 lt_prog_compiler_static='-Bstatic'
12737 ;;
12738
12739 sysv4 | sysv4.2uw2* | sysv4.3*)
12740 lt_prog_compiler_wl='-Wl,'
12741 lt_prog_compiler_pic='-KPIC'
12742 lt_prog_compiler_static='-Bstatic'
12743 ;;
12744
12745 sysv4*MP*)
12746 if test -d /usr/nec ;then
12747 lt_prog_compiler_pic='-Kconform_pic'
12748 lt_prog_compiler_static='-Bstatic'
12749 fi
12750 ;;
12751
12752 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12753 lt_prog_compiler_wl='-Wl,'
12754 lt_prog_compiler_pic='-KPIC'
12755 lt_prog_compiler_static='-Bstatic'
12756 ;;
12757
12758 unicos*)
12759 lt_prog_compiler_wl='-Wl,'
12760 lt_prog_compiler_can_build_shared=no
12761 ;;
12762
12763 uts4*)
12764 lt_prog_compiler_pic='-pic'
12765 lt_prog_compiler_static='-Bstatic'
12766 ;;
12767
12768 *)
12769 lt_prog_compiler_can_build_shared=no
12770 ;;
12771 esac
12772 fi
12773
12774case $host_os in
12775 # For platforms which do not support PIC, -DPIC is meaningless:
12776 *djgpp*)
12777 lt_prog_compiler_pic=
12778 ;;
12779 *)
12780 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12781 ;;
12782esac
cristy8b350f62009-11-15 23:12:43 +000012783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000012784$as_echo "$lt_prog_compiler_pic" >&6; }
12785
12786
12787
12788
12789
12790
12791#
12792# Check to make sure the PIC flag actually works.
12793#
12794if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000012795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012796$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012797if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012798 $as_echo_n "(cached) " >&6
12799else
12800 lt_cv_prog_compiler_pic_works=no
12801 ac_outfile=conftest.$ac_objext
12802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12803 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12804 # Insert the option either (1) after the last *FLAGS variable, or
12805 # (2) before a word containing "conftest.", or (3) at the end.
12806 # Note that $ac_compile itself does not contain backslashes and begins
12807 # with a dollar sign (not a hyphen), so the echo should work correctly.
12808 # The option is referenced via a variable to avoid confusing sed.
12809 lt_compile=`echo "$ac_compile" | $SED \
12810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12812 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000012813 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012814 (eval "$lt_compile" 2>conftest.err)
12815 ac_status=$?
12816 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000012817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012818 if (exit $ac_status) && test -s "$ac_outfile"; then
12819 # The compiler can only warn and ignore the option if not recognized
12820 # So say no if there are warnings other than the usual output.
cristyfd9dcd42010-08-08 18:07:02 +000012821 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12823 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12824 lt_cv_prog_compiler_pic_works=yes
12825 fi
12826 fi
12827 $RM conftest*
12828
12829fi
cristy8b350f62009-11-15 23:12:43 +000012830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012831$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12832
12833if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12834 case $lt_prog_compiler_pic in
12835 "" | " "*) ;;
12836 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12837 esac
12838else
12839 lt_prog_compiler_pic=
12840 lt_prog_compiler_can_build_shared=no
12841fi
12842
12843fi
12844
12845
12846
12847
12848
12849
12850#
12851# Check to make sure the static flag actually works.
12852#
12853wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000012854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012855$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012856if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012857 $as_echo_n "(cached) " >&6
12858else
12859 lt_cv_prog_compiler_static_works=no
12860 save_LDFLAGS="$LDFLAGS"
12861 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12862 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12863 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12864 # The linker can only warn and ignore the option if not recognized
12865 # So say no if there are warnings
12866 if test -s conftest.err; then
12867 # Append any errors to the config.log.
12868 cat conftest.err 1>&5
cristyfd9dcd42010-08-08 18:07:02 +000012869 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012870 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12871 if diff conftest.exp conftest.er2 >/dev/null; then
12872 lt_cv_prog_compiler_static_works=yes
12873 fi
12874 else
12875 lt_cv_prog_compiler_static_works=yes
12876 fi
12877 fi
12878 $RM -r conftest*
12879 LDFLAGS="$save_LDFLAGS"
12880
12881fi
cristy8b350f62009-11-15 23:12:43 +000012882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012883$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12884
12885if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12886 :
12887else
12888 lt_prog_compiler_static=
12889fi
12890
12891
12892
12893
12894
12895
12896
cristy8b350f62009-11-15 23:12:43 +000012897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012898$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012899if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012900 $as_echo_n "(cached) " >&6
12901else
12902 lt_cv_prog_compiler_c_o=no
12903 $RM -r conftest 2>/dev/null
12904 mkdir conftest
12905 cd conftest
12906 mkdir out
12907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12908
12909 lt_compiler_flag="-o out/conftest2.$ac_objext"
12910 # Insert the option either (1) after the last *FLAGS variable, or
12911 # (2) before a word containing "conftest.", or (3) at the end.
12912 # Note that $ac_compile itself does not contain backslashes and begins
12913 # with a dollar sign (not a hyphen), so the echo should work correctly.
12914 lt_compile=`echo "$ac_compile" | $SED \
12915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12917 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000012918 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012919 (eval "$lt_compile" 2>out/conftest.err)
12920 ac_status=$?
12921 cat out/conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000012922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012923 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12924 then
12925 # The compiler can only warn and ignore the option if not recognized
12926 # So say no if there are warnings
cristyfd9dcd42010-08-08 18:07:02 +000012927 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012928 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12929 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12930 lt_cv_prog_compiler_c_o=yes
12931 fi
12932 fi
12933 chmod u+w . 2>&5
12934 $RM conftest*
12935 # SGI C++ compiler will create directory out/ii_files/ for
12936 # template instantiation
12937 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12938 $RM out/* && rmdir out
12939 cd ..
12940 $RM -r conftest
12941 $RM conftest*
12942
12943fi
cristy8b350f62009-11-15 23:12:43 +000012944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012945$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12946
12947
12948
12949
12950
12951
cristy8b350f62009-11-15 23:12:43 +000012952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012953$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012954if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012955 $as_echo_n "(cached) " >&6
12956else
12957 lt_cv_prog_compiler_c_o=no
12958 $RM -r conftest 2>/dev/null
12959 mkdir conftest
12960 cd conftest
12961 mkdir out
12962 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12963
12964 lt_compiler_flag="-o out/conftest2.$ac_objext"
12965 # Insert the option either (1) after the last *FLAGS variable, or
12966 # (2) before a word containing "conftest.", or (3) at the end.
12967 # Note that $ac_compile itself does not contain backslashes and begins
12968 # with a dollar sign (not a hyphen), so the echo should work correctly.
12969 lt_compile=`echo "$ac_compile" | $SED \
12970 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12971 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12972 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000012973 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012974 (eval "$lt_compile" 2>out/conftest.err)
12975 ac_status=$?
12976 cat out/conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000012977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012978 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12979 then
12980 # The compiler can only warn and ignore the option if not recognized
12981 # So say no if there are warnings
cristyfd9dcd42010-08-08 18:07:02 +000012982 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012983 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12984 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12985 lt_cv_prog_compiler_c_o=yes
12986 fi
12987 fi
12988 chmod u+w . 2>&5
12989 $RM conftest*
12990 # SGI C++ compiler will create directory out/ii_files/ for
12991 # template instantiation
12992 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12993 $RM out/* && rmdir out
12994 cd ..
12995 $RM -r conftest
12996 $RM conftest*
12997
12998fi
cristy8b350f62009-11-15 23:12:43 +000012999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000013000$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13001
13002
13003
13004
13005hard_links="nottested"
13006if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13007 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000013008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013009$as_echo_n "checking if we can lock with hard links... " >&6; }
13010 hard_links=yes
13011 $RM conftest*
13012 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13013 touch conftest.a
13014 ln conftest.a conftest.b 2>&5 || hard_links=no
13015 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000013016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013017$as_echo "$hard_links" >&6; }
13018 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000013019 { $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 +000013020$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13021 need_locks=warn
13022 fi
13023else
13024 need_locks=no
13025fi
13026
13027
13028
13029
13030
13031
cristy8b350f62009-11-15 23:12:43 +000013032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000013033$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13034
13035 runpath_var=
13036 allow_undefined_flag=
13037 always_export_symbols=no
13038 archive_cmds=
13039 archive_expsym_cmds=
13040 compiler_needs_object=no
13041 enable_shared_with_static_runtimes=no
13042 export_dynamic_flag_spec=
13043 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13044 hardcode_automatic=no
13045 hardcode_direct=no
13046 hardcode_direct_absolute=no
13047 hardcode_libdir_flag_spec=
13048 hardcode_libdir_flag_spec_ld=
13049 hardcode_libdir_separator=
13050 hardcode_minus_L=no
13051 hardcode_shlibpath_var=unsupported
13052 inherit_rpath=no
13053 link_all_deplibs=unknown
13054 module_cmds=
13055 module_expsym_cmds=
13056 old_archive_from_new_cmds=
13057 old_archive_from_expsyms_cmds=
13058 thread_safe_flag_spec=
13059 whole_archive_flag_spec=
13060 # include_expsyms should be a list of space-separated symbols to be *always*
13061 # included in the symbol list
13062 include_expsyms=
13063 # exclude_expsyms can be an extended regexp of symbols to exclude
13064 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13065 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13066 # as well as any symbol that contains `d'.
13067 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13068 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13069 # platforms (ab)use it in PIC code, but their linkers get confused if
13070 # the symbol is explicitly referenced. Since portable code cannot
13071 # rely on this symbol name, it's probably fine to never include it in
13072 # preloaded symbol tables.
13073 # Exclude shared library initialization/finalization symbols.
13074 extract_expsyms_cmds=
13075
13076 case $host_os in
13077 cygwin* | mingw* | pw32* | cegcc*)
13078 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13079 # When not using gcc, we currently assume that we are using
13080 # Microsoft Visual C++.
13081 if test "$GCC" != yes; then
13082 with_gnu_ld=no
13083 fi
13084 ;;
13085 interix*)
13086 # we just hope/assume this is gcc and not c89 (= MSVC++)
13087 with_gnu_ld=yes
13088 ;;
13089 openbsd*)
13090 with_gnu_ld=no
13091 ;;
13092 esac
13093
13094 ld_shlibs=yes
cristyfd9dcd42010-08-08 18:07:02 +000013095
13096 # On some targets, GNU ld is compatible enough with the native linker
13097 # that we're better off using the native interface for both.
13098 lt_use_gnu_ld_interface=no
cristy3ed852e2009-09-05 21:47:34 +000013099 if test "$with_gnu_ld" = yes; then
cristyfd9dcd42010-08-08 18:07:02 +000013100 case $host_os in
13101 aix*)
13102 # The AIX port of GNU ld has always aspired to compatibility
13103 # with the native linker. However, as the warning in the GNU ld
13104 # block says, versions before 2.19.5* couldn't really create working
13105 # shared libraries, regardless of the interface used.
13106 case `$LD -v 2>&1` in
13107 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13108 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13109 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13110 *)
13111 lt_use_gnu_ld_interface=yes
13112 ;;
13113 esac
13114 ;;
13115 *)
13116 lt_use_gnu_ld_interface=yes
13117 ;;
13118 esac
13119 fi
13120
13121 if test "$lt_use_gnu_ld_interface" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000013122 # If archive_cmds runs LD, not CC, wlarc should be empty
13123 wlarc='${wl}'
13124
13125 # Set some defaults for GNU ld with shared library support. These
13126 # are reset later if shared libraries are not supported. Putting them
13127 # here allows them to be overridden if necessary.
13128 runpath_var=LD_RUN_PATH
13129 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13130 export_dynamic_flag_spec='${wl}--export-dynamic'
13131 # ancient GNU ld didn't support --whole-archive et. al.
13132 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13133 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13134 else
13135 whole_archive_flag_spec=
13136 fi
13137 supports_anon_versioning=no
13138 case `$LD -v 2>&1` in
cristyfd9dcd42010-08-08 18:07:02 +000013139 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy3ed852e2009-09-05 21:47:34 +000013140 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13141 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13142 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13143 *\ 2.11.*) ;; # other 2.11 versions
13144 *) supports_anon_versioning=yes ;;
13145 esac
13146
13147 # See if GNU ld supports shared libraries.
13148 case $host_os in
13149 aix[3-9]*)
13150 # On AIX/PPC, the GNU linker is very broken
13151 if test "$host_cpu" != ia64; then
13152 ld_shlibs=no
13153 cat <<_LT_EOF 1>&2
13154
cristyfd9dcd42010-08-08 18:07:02 +000013155*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy3ed852e2009-09-05 21:47:34 +000013156*** to be unable to reliably create shared libraries on AIX.
13157*** Therefore, libtool is disabling shared libraries support. If you
cristyfd9dcd42010-08-08 18:07:02 +000013158*** really care for shared libraries, you may want to install binutils
13159*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13160*** You will then need to restart the configuration process.
cristy3ed852e2009-09-05 21:47:34 +000013161
13162_LT_EOF
13163 fi
13164 ;;
13165
13166 amigaos*)
13167 case $host_cpu in
13168 powerpc)
13169 # see comment about AmigaOS4 .so support
13170 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13171 archive_expsym_cmds=''
13172 ;;
13173 m68k)
13174 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)'
13175 hardcode_libdir_flag_spec='-L$libdir'
13176 hardcode_minus_L=yes
13177 ;;
13178 esac
13179 ;;
13180
13181 beos*)
13182 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13183 allow_undefined_flag=unsupported
13184 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13185 # support --undefined. This deserves some investigation. FIXME
13186 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13187 else
13188 ld_shlibs=no
13189 fi
13190 ;;
13191
13192 cygwin* | mingw* | pw32* | cegcc*)
13193 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13194 # as there is no search path for DLLs.
13195 hardcode_libdir_flag_spec='-L$libdir'
cristyfd9dcd42010-08-08 18:07:02 +000013196 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy3ed852e2009-09-05 21:47:34 +000013197 allow_undefined_flag=unsupported
13198 always_export_symbols=no
13199 enable_shared_with_static_runtimes=yes
13200 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13201
13202 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13204 # If the export-symbols file already is a .def file (1st line
13205 # is EXPORTS), use it as is; otherwise, prepend...
13206 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13207 cp $export_symbols $output_objdir/$soname.def;
13208 else
13209 echo EXPORTS > $output_objdir/$soname.def;
13210 cat $export_symbols >> $output_objdir/$soname.def;
13211 fi~
13212 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13213 else
13214 ld_shlibs=no
13215 fi
13216 ;;
13217
cristyfd9dcd42010-08-08 18:07:02 +000013218 haiku*)
13219 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13220 link_all_deplibs=yes
13221 ;;
13222
cristy3ed852e2009-09-05 21:47:34 +000013223 interix[3-9]*)
13224 hardcode_direct=no
13225 hardcode_shlibpath_var=no
13226 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13227 export_dynamic_flag_spec='${wl}-E'
13228 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13229 # Instead, shared libraries are loaded at an image base (0x10000000 by
13230 # default) and relocated if they conflict, which is a slow very memory
13231 # consuming and fragmenting process. To avoid this, we pick a random,
13232 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13233 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13234 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13235 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'
13236 ;;
13237
cristyfd9dcd42010-08-08 18:07:02 +000013238 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013239 tmp_diet=no
13240 if test "$host_os" = linux-dietlibc; then
13241 case $cc_basename in
13242 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13243 esac
13244 fi
13245 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13246 && test "$tmp_diet" = no
13247 then
13248 tmp_addflag=
13249 tmp_sharedflag='-shared'
13250 case $cc_basename,$host_cpu in
13251 pgcc*) # Portland Group C compiler
cristyfd9dcd42010-08-08 18:07:02 +000013252 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 +000013253 tmp_addflag=' $pic_flag'
13254 ;;
cristyfd9dcd42010-08-08 18:07:02 +000013255 pgf77* | pgf90* | pgf95* | pgfortran*)
13256 # Portland Group f77 and f90 compilers
13257 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 +000013258 tmp_addflag=' $pic_flag -Mnomain' ;;
13259 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13260 tmp_addflag=' -i_dynamic' ;;
13261 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13262 tmp_addflag=' -i_dynamic -nofor_main' ;;
13263 ifc* | ifort*) # Intel Fortran compiler
13264 tmp_addflag=' -nofor_main' ;;
13265 lf95*) # Lahey Fortran 8.1
13266 whole_archive_flag_spec=
13267 tmp_sharedflag='--shared' ;;
cristyfd9dcd42010-08-08 18:07:02 +000013268 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000013269 tmp_sharedflag='-qmkshrobj'
13270 tmp_addflag= ;;
cristyfd9dcd42010-08-08 18:07:02 +000013271 nvcc*) # Cuda Compiler Driver 2.2
13272 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'
13273 compiler_needs_object=yes
13274 ;;
cristy3ed852e2009-09-05 21:47:34 +000013275 esac
13276 case `$CC -V 2>&1 | sed 5q` in
13277 *Sun\ C*) # Sun C 5.9
cristyfd9dcd42010-08-08 18:07:02 +000013278 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 +000013279 compiler_needs_object=yes
13280 tmp_sharedflag='-G' ;;
13281 *Sun\ F*) # Sun Fortran 8.3
13282 tmp_sharedflag='-G' ;;
13283 esac
13284 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13285
13286 if test "x$supports_anon_versioning" = xyes; then
13287 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13288 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13289 echo "local: *; };" >> $output_objdir/$libname.ver~
13290 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13291 fi
13292
13293 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000013294 xlf* | bgf* | bgxlf* | mpixlf*)
cristy3ed852e2009-09-05 21:47:34 +000013295 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13296 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13297 hardcode_libdir_flag_spec=
13298 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristyfd9dcd42010-08-08 18:07:02 +000013299 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013300 if test "x$supports_anon_versioning" = xyes; then
13301 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13302 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13303 echo "local: *; };" >> $output_objdir/$libname.ver~
cristyfd9dcd42010-08-08 18:07:02 +000013304 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013305 fi
13306 ;;
13307 esac
13308 else
13309 ld_shlibs=no
13310 fi
13311 ;;
13312
13313 netbsd*)
13314 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13315 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13316 wlarc=
13317 else
13318 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13319 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13320 fi
13321 ;;
13322
13323 solaris*)
13324 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13325 ld_shlibs=no
13326 cat <<_LT_EOF 1>&2
13327
13328*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13329*** create shared libraries on Solaris systems. Therefore, libtool
13330*** is disabling shared libraries support. We urge you to upgrade GNU
13331*** binutils to release 2.9.1 or newer. Another option is to modify
13332*** your PATH or compiler configuration so that the native linker is
13333*** used, and then restart.
13334
13335_LT_EOF
13336 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13337 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13338 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13339 else
13340 ld_shlibs=no
13341 fi
13342 ;;
13343
13344 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13345 case `$LD -v 2>&1` in
13346 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13347 ld_shlibs=no
13348 cat <<_LT_EOF 1>&2
13349
13350*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13351*** reliably create shared libraries on SCO systems. Therefore, libtool
13352*** is disabling shared libraries support. We urge you to upgrade GNU
13353*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13354*** your PATH or compiler configuration so that the native linker is
13355*** used, and then restart.
13356
13357_LT_EOF
13358 ;;
13359 *)
13360 # For security reasons, it is highly recommended that you always
13361 # use absolute paths for naming shared libraries, and exclude the
13362 # DT_RUNPATH tag from executables and libraries. But doing so
13363 # requires that you compile everything twice, which is a pain.
13364 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13365 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13366 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13367 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13368 else
13369 ld_shlibs=no
13370 fi
13371 ;;
13372 esac
13373 ;;
13374
13375 sunos4*)
13376 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13377 wlarc=
13378 hardcode_direct=yes
13379 hardcode_shlibpath_var=no
13380 ;;
13381
13382 *)
13383 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13384 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13385 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13386 else
13387 ld_shlibs=no
13388 fi
13389 ;;
13390 esac
13391
13392 if test "$ld_shlibs" = no; then
13393 runpath_var=
13394 hardcode_libdir_flag_spec=
13395 export_dynamic_flag_spec=
13396 whole_archive_flag_spec=
13397 fi
13398 else
13399 # PORTME fill in a description of your system's linker (not GNU ld)
13400 case $host_os in
13401 aix3*)
13402 allow_undefined_flag=unsupported
13403 always_export_symbols=yes
13404 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'
13405 # Note: this linker hardcodes the directories in LIBPATH if there
13406 # are no directories specified by -L.
13407 hardcode_minus_L=yes
13408 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13409 # Neither direct hardcoding nor static linking is supported with a
13410 # broken collect2.
13411 hardcode_direct=unsupported
13412 fi
13413 ;;
13414
13415 aix[4-9]*)
13416 if test "$host_cpu" = ia64; then
13417 # On IA64, the linker does run time linking by default, so we don't
13418 # have to do anything special.
13419 aix_use_runtimelinking=no
13420 exp_sym_flag='-Bexport'
13421 no_entry_flag=""
13422 else
13423 # If we're using GNU nm, then we don't want the "-C" option.
13424 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristyfd9dcd42010-08-08 18:07:02 +000013425 # Also, AIX nm treats weak defined symbols like other global
13426 # defined symbols, whereas GNU nm marks them as "W".
cristy3ed852e2009-09-05 21:47:34 +000013427 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristyfd9dcd42010-08-08 18:07:02 +000013428 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 +000013429 else
13430 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'
13431 fi
13432 aix_use_runtimelinking=no
13433
13434 # Test if we are trying to use run time linking or normal
13435 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13436 # need to do runtime linking.
13437 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13438 for ld_flag in $LDFLAGS; do
13439 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13440 aix_use_runtimelinking=yes
13441 break
13442 fi
13443 done
13444 ;;
13445 esac
13446
13447 exp_sym_flag='-bexport'
13448 no_entry_flag='-bnoentry'
13449 fi
13450
13451 # When large executables or shared objects are built, AIX ld can
13452 # have problems creating the table of contents. If linking a library
13453 # or program results in "error TOC overflow" add -mminimal-toc to
13454 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13455 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13456
13457 archive_cmds=''
13458 hardcode_direct=yes
13459 hardcode_direct_absolute=yes
13460 hardcode_libdir_separator=':'
13461 link_all_deplibs=yes
13462 file_list_spec='${wl}-f,'
13463
13464 if test "$GCC" = yes; then
13465 case $host_os in aix4.[012]|aix4.[012].*)
13466 # We only want to do this on AIX 4.2 and lower, the check
13467 # below for broken collect2 doesn't work under 4.3+
13468 collect2name=`${CC} -print-prog-name=collect2`
13469 if test -f "$collect2name" &&
13470 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13471 then
13472 # We have reworked collect2
13473 :
13474 else
13475 # We have old collect2
13476 hardcode_direct=unsupported
13477 # It fails to find uninstalled libraries when the uninstalled
13478 # path is not listed in the libpath. Setting hardcode_minus_L
13479 # to unsupported forces relinking
13480 hardcode_minus_L=yes
13481 hardcode_libdir_flag_spec='-L$libdir'
13482 hardcode_libdir_separator=
13483 fi
13484 ;;
13485 esac
13486 shared_flag='-shared'
13487 if test "$aix_use_runtimelinking" = yes; then
13488 shared_flag="$shared_flag "'${wl}-G'
13489 fi
13490 else
13491 # not using gcc
13492 if test "$host_cpu" = ia64; then
13493 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13494 # chokes on -Wl,-G. The following line is correct:
13495 shared_flag='-G'
13496 else
13497 if test "$aix_use_runtimelinking" = yes; then
13498 shared_flag='${wl}-G'
13499 else
13500 shared_flag='${wl}-bM:SRE'
13501 fi
13502 fi
13503 fi
13504
13505 export_dynamic_flag_spec='${wl}-bexpall'
13506 # It seems that -bexpall does not export symbols beginning with
13507 # underscore (_), so it is better to generate a list of symbols to export.
13508 always_export_symbols=yes
13509 if test "$aix_use_runtimelinking" = yes; then
13510 # Warning - without using the other runtime loading flags (-brtl),
13511 # -berok will link without error, but may produce a broken library.
13512 allow_undefined_flag='-berok'
13513 # Determine the default libpath from the value encoded in an
13514 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013516/* end confdefs.h. */
13517
13518int
13519main ()
13520{
13521
13522 ;
13523 return 0;
13524}
13525_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013526if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013527
13528lt_aix_libpath_sed='
13529 /Import File Strings/,/^$/ {
13530 /^0/ {
13531 s/^0 *\(.*\)$/\1/
13532 p
13533 }
13534 }'
13535aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13536# Check for a 64-bit object if we didn't find anything.
13537if test -z "$aix_libpath"; then
13538 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13539fi
cristy3ed852e2009-09-05 21:47:34 +000013540fi
cristy8b350f62009-11-15 23:12:43 +000013541rm -f core conftest.err conftest.$ac_objext \
13542 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013543if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13544
13545 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristyfd9dcd42010-08-08 18:07:02 +000013546 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 +000013547 else
13548 if test "$host_cpu" = ia64; then
13549 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13550 allow_undefined_flag="-z nodefs"
13551 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"
13552 else
13553 # Determine the default libpath from the value encoded in an
13554 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013556/* end confdefs.h. */
13557
13558int
13559main ()
13560{
13561
13562 ;
13563 return 0;
13564}
13565_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013566if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013567
13568lt_aix_libpath_sed='
13569 /Import File Strings/,/^$/ {
13570 /^0/ {
13571 s/^0 *\(.*\)$/\1/
13572 p
13573 }
13574 }'
13575aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13576# Check for a 64-bit object if we didn't find anything.
13577if test -z "$aix_libpath"; then
13578 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13579fi
cristy3ed852e2009-09-05 21:47:34 +000013580fi
cristy8b350f62009-11-15 23:12:43 +000013581rm -f core conftest.err conftest.$ac_objext \
13582 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013583if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13584
13585 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13586 # Warning - without using the other run time loading flags,
13587 # -berok will link without error, but may produce a broken library.
13588 no_undefined_flag=' ${wl}-bernotok'
13589 allow_undefined_flag=' ${wl}-berok'
cristyfd9dcd42010-08-08 18:07:02 +000013590 if test "$with_gnu_ld" = yes; then
13591 # We only use this code for GNU lds that support --whole-archive.
13592 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13593 else
13594 # Exported symbols can be pulled into shared objects from archives
13595 whole_archive_flag_spec='$convenience'
13596 fi
cristy3ed852e2009-09-05 21:47:34 +000013597 archive_cmds_need_lc=yes
13598 # This is similar to how AIX traditionally builds its shared libraries.
13599 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'
13600 fi
13601 fi
13602 ;;
13603
13604 amigaos*)
13605 case $host_cpu in
13606 powerpc)
13607 # see comment about AmigaOS4 .so support
13608 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13609 archive_expsym_cmds=''
13610 ;;
13611 m68k)
13612 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)'
13613 hardcode_libdir_flag_spec='-L$libdir'
13614 hardcode_minus_L=yes
13615 ;;
13616 esac
13617 ;;
13618
13619 bsdi[45]*)
13620 export_dynamic_flag_spec=-rdynamic
13621 ;;
13622
13623 cygwin* | mingw* | pw32* | cegcc*)
13624 # When not using gcc, we currently assume that we are using
13625 # Microsoft Visual C++.
13626 # hardcode_libdir_flag_spec is actually meaningless, as there is
13627 # no search path for DLLs.
13628 hardcode_libdir_flag_spec=' '
13629 allow_undefined_flag=unsupported
13630 # Tell ltmain to make .lib files, not .a files.
13631 libext=lib
13632 # Tell ltmain to make .dll files, not .so files.
13633 shrext_cmds=".dll"
13634 # FIXME: Setting linknames here is a bad hack.
cristyfd9dcd42010-08-08 18:07:02 +000013635 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000013636 # The linker will automatically build a .lib file if we build a DLL.
13637 old_archive_from_new_cmds='true'
13638 # FIXME: Should let the user specify the lib program.
13639 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13640 fix_srcfile_path='`cygpath -w "$srcfile"`'
13641 enable_shared_with_static_runtimes=yes
13642 ;;
13643
13644 darwin* | rhapsody*)
13645
13646
13647 archive_cmds_need_lc=no
13648 hardcode_direct=no
13649 hardcode_automatic=yes
13650 hardcode_shlibpath_var=unsupported
cristyfd9dcd42010-08-08 18:07:02 +000013651 if test "$lt_cv_ld_force_load" = "yes"; then
13652 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\"`'
13653 else
13654 whole_archive_flag_spec=''
13655 fi
cristy3ed852e2009-09-05 21:47:34 +000013656 link_all_deplibs=yes
13657 allow_undefined_flag="$_lt_dar_allow_undefined"
13658 case $cc_basename in
13659 ifort*) _lt_dar_can_shared=yes ;;
13660 *) _lt_dar_can_shared=$GCC ;;
13661 esac
13662 if test "$_lt_dar_can_shared" = "yes"; then
cristyfd9dcd42010-08-08 18:07:02 +000013663 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000013664 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13665 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13666 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}"
13667 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}"
13668
13669 else
13670 ld_shlibs=no
13671 fi
13672
13673 ;;
13674
13675 dgux*)
13676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13677 hardcode_libdir_flag_spec='-L$libdir'
13678 hardcode_shlibpath_var=no
13679 ;;
13680
13681 freebsd1*)
13682 ld_shlibs=no
13683 ;;
13684
13685 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13686 # support. Future versions do this automatically, but an explicit c++rt0.o
13687 # does not break anything, and helps significantly (at the cost of a little
13688 # extra space).
13689 freebsd2.2*)
13690 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13691 hardcode_libdir_flag_spec='-R$libdir'
13692 hardcode_direct=yes
13693 hardcode_shlibpath_var=no
13694 ;;
13695
13696 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13697 freebsd2*)
13698 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13699 hardcode_direct=yes
13700 hardcode_minus_L=yes
13701 hardcode_shlibpath_var=no
13702 ;;
13703
13704 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13705 freebsd* | dragonfly*)
13706 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13707 hardcode_libdir_flag_spec='-R$libdir'
13708 hardcode_direct=yes
13709 hardcode_shlibpath_var=no
13710 ;;
13711
13712 hpux9*)
13713 if test "$GCC" = yes; then
13714 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'
13715 else
13716 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'
13717 fi
13718 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13719 hardcode_libdir_separator=:
13720 hardcode_direct=yes
13721
13722 # hardcode_minus_L: Not really in the search PATH,
13723 # but as the default location of the library.
13724 hardcode_minus_L=yes
13725 export_dynamic_flag_spec='${wl}-E'
13726 ;;
13727
13728 hpux10*)
cristyfd9dcd42010-08-08 18:07:02 +000013729 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013730 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13731 else
13732 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13733 fi
13734 if test "$with_gnu_ld" = no; then
13735 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13736 hardcode_libdir_flag_spec_ld='+b $libdir'
13737 hardcode_libdir_separator=:
13738 hardcode_direct=yes
13739 hardcode_direct_absolute=yes
13740 export_dynamic_flag_spec='${wl}-E'
13741 # hardcode_minus_L: Not really in the search PATH,
13742 # but as the default location of the library.
13743 hardcode_minus_L=yes
13744 fi
13745 ;;
13746
13747 hpux11*)
cristyfd9dcd42010-08-08 18:07:02 +000013748 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013749 case $host_cpu in
13750 hppa*64*)
13751 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13752 ;;
13753 ia64*)
13754 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13755 ;;
13756 *)
13757 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13758 ;;
13759 esac
13760 else
13761 case $host_cpu in
13762 hppa*64*)
13763 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13764 ;;
13765 ia64*)
13766 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13767 ;;
13768 *)
cristyfd9dcd42010-08-08 18:07:02 +000013769
13770 # Older versions of the 11.00 compiler do not understand -b yet
13771 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13773$as_echo_n "checking if $CC understands -b... " >&6; }
13774if test "${lt_cv_prog_compiler__b+set}" = set; then :
13775 $as_echo_n "(cached) " >&6
13776else
13777 lt_cv_prog_compiler__b=no
13778 save_LDFLAGS="$LDFLAGS"
13779 LDFLAGS="$LDFLAGS -b"
13780 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13781 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13782 # The linker can only warn and ignore the option if not recognized
13783 # So say no if there are warnings
13784 if test -s conftest.err; then
13785 # Append any errors to the config.log.
13786 cat conftest.err 1>&5
13787 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13789 if diff conftest.exp conftest.er2 >/dev/null; then
13790 lt_cv_prog_compiler__b=yes
13791 fi
13792 else
13793 lt_cv_prog_compiler__b=yes
13794 fi
13795 fi
13796 $RM -r conftest*
13797 LDFLAGS="$save_LDFLAGS"
13798
13799fi
13800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13801$as_echo "$lt_cv_prog_compiler__b" >&6; }
13802
13803if test x"$lt_cv_prog_compiler__b" = xyes; then
13804 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13805else
13806 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13807fi
13808
cristy3ed852e2009-09-05 21:47:34 +000013809 ;;
13810 esac
13811 fi
13812 if test "$with_gnu_ld" = no; then
13813 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13814 hardcode_libdir_separator=:
13815
13816 case $host_cpu in
13817 hppa*64*|ia64*)
13818 hardcode_direct=no
13819 hardcode_shlibpath_var=no
13820 ;;
13821 *)
13822 hardcode_direct=yes
13823 hardcode_direct_absolute=yes
13824 export_dynamic_flag_spec='${wl}-E'
13825
13826 # hardcode_minus_L: Not really in the search PATH,
13827 # but as the default location of the library.
13828 hardcode_minus_L=yes
13829 ;;
13830 esac
13831 fi
13832 ;;
13833
13834 irix5* | irix6* | nonstopux*)
13835 if test "$GCC" = yes; then
cristyfd9dcd42010-08-08 18:07:02 +000013836 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 +000013837 # Try to use the -exported_symbol ld option, if it does not
13838 # work, assume that -exports_file does not work either and
13839 # implicitly export all symbols.
13840 save_LDFLAGS="$LDFLAGS"
13841 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000013842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13843/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000013844int foo(void) {}
13845_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013846if ac_fn_c_try_link "$LINENO"; then :
cristyfd9dcd42010-08-08 18:07:02 +000013847 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 +000013848
cristy3ed852e2009-09-05 21:47:34 +000013849fi
cristy8b350f62009-11-15 23:12:43 +000013850rm -f core conftest.err conftest.$ac_objext \
13851 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013852 LDFLAGS="$save_LDFLAGS"
13853 else
cristyfd9dcd42010-08-08 18:07:02 +000013854 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'
13855 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 +000013856 fi
13857 archive_cmds_need_lc='no'
13858 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13859 hardcode_libdir_separator=:
13860 inherit_rpath=yes
13861 link_all_deplibs=yes
13862 ;;
13863
13864 netbsd*)
13865 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13866 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13867 else
13868 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13869 fi
13870 hardcode_libdir_flag_spec='-R$libdir'
13871 hardcode_direct=yes
13872 hardcode_shlibpath_var=no
13873 ;;
13874
13875 newsos6)
13876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13877 hardcode_direct=yes
13878 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13879 hardcode_libdir_separator=:
13880 hardcode_shlibpath_var=no
13881 ;;
13882
13883 *nto* | *qnx*)
13884 ;;
13885
13886 openbsd*)
13887 if test -f /usr/libexec/ld.so; then
13888 hardcode_direct=yes
13889 hardcode_shlibpath_var=no
13890 hardcode_direct_absolute=yes
13891 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13892 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13893 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13894 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13895 export_dynamic_flag_spec='${wl}-E'
13896 else
13897 case $host_os in
13898 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13899 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13900 hardcode_libdir_flag_spec='-R$libdir'
13901 ;;
13902 *)
13903 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13904 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13905 ;;
13906 esac
13907 fi
13908 else
13909 ld_shlibs=no
13910 fi
13911 ;;
13912
13913 os2*)
13914 hardcode_libdir_flag_spec='-L$libdir'
13915 hardcode_minus_L=yes
13916 allow_undefined_flag=unsupported
cristyfd9dcd42010-08-08 18:07:02 +000013917 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 +000013918 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13919 ;;
13920
13921 osf3*)
13922 if test "$GCC" = yes; then
13923 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyfd9dcd42010-08-08 18:07:02 +000013924 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 +000013925 else
13926 allow_undefined_flag=' -expect_unresolved \*'
cristyfd9dcd42010-08-08 18:07:02 +000013927 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 +000013928 fi
13929 archive_cmds_need_lc='no'
13930 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13931 hardcode_libdir_separator=:
13932 ;;
13933
13934 osf4* | osf5*) # as osf3* with the addition of -msym flag
13935 if test "$GCC" = yes; then
13936 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyfd9dcd42010-08-08 18:07:02 +000013937 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 +000013938 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13939 else
13940 allow_undefined_flag=' -expect_unresolved \*'
cristyfd9dcd42010-08-08 18:07:02 +000013941 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 +000013942 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 +000013943 $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 +000013944
13945 # Both c and cxx compiler support -rpath directly
13946 hardcode_libdir_flag_spec='-rpath $libdir'
13947 fi
13948 archive_cmds_need_lc='no'
13949 hardcode_libdir_separator=:
13950 ;;
13951
13952 solaris*)
13953 no_undefined_flag=' -z defs'
13954 if test "$GCC" = yes; then
13955 wlarc='${wl}'
13956 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13957 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13958 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13959 else
13960 case `$CC -V 2>&1` in
13961 *"Compilers 5.0"*)
13962 wlarc=''
13963 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13964 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13965 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13966 ;;
13967 *)
13968 wlarc='${wl}'
13969 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13970 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13971 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13972 ;;
13973 esac
13974 fi
13975 hardcode_libdir_flag_spec='-R$libdir'
13976 hardcode_shlibpath_var=no
13977 case $host_os in
13978 solaris2.[0-5] | solaris2.[0-5].*) ;;
13979 *)
13980 # The compiler driver will combine and reorder linker options,
13981 # but understands `-z linker_flag'. GCC discards it without `$wl',
13982 # but is careful enough not to reorder.
13983 # Supported since Solaris 2.6 (maybe 2.5.1?)
13984 if test "$GCC" = yes; then
13985 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13986 else
13987 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13988 fi
13989 ;;
13990 esac
13991 link_all_deplibs=yes
13992 ;;
13993
13994 sunos4*)
13995 if test "x$host_vendor" = xsequent; then
13996 # Use $CC to link under sequent, because it throws in some extra .o
13997 # files that make .init and .fini sections work.
13998 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13999 else
14000 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14001 fi
14002 hardcode_libdir_flag_spec='-L$libdir'
14003 hardcode_direct=yes
14004 hardcode_minus_L=yes
14005 hardcode_shlibpath_var=no
14006 ;;
14007
14008 sysv4)
14009 case $host_vendor in
14010 sni)
14011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14012 hardcode_direct=yes # is this really true???
14013 ;;
14014 siemens)
14015 ## LD is ld it makes a PLAMLIB
14016 ## CC just makes a GrossModule.
14017 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14018 reload_cmds='$CC -r -o $output$reload_objs'
14019 hardcode_direct=no
14020 ;;
14021 motorola)
14022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14023 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14024 ;;
14025 esac
14026 runpath_var='LD_RUN_PATH'
14027 hardcode_shlibpath_var=no
14028 ;;
14029
14030 sysv4.3*)
14031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14032 hardcode_shlibpath_var=no
14033 export_dynamic_flag_spec='-Bexport'
14034 ;;
14035
14036 sysv4*MP*)
14037 if test -d /usr/nec; then
14038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14039 hardcode_shlibpath_var=no
14040 runpath_var=LD_RUN_PATH
14041 hardcode_runpath_var=yes
14042 ld_shlibs=yes
14043 fi
14044 ;;
14045
14046 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14047 no_undefined_flag='${wl}-z,text'
14048 archive_cmds_need_lc=no
14049 hardcode_shlibpath_var=no
14050 runpath_var='LD_RUN_PATH'
14051
14052 if test "$GCC" = yes; then
14053 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14054 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14055 else
14056 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14057 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14058 fi
14059 ;;
14060
14061 sysv5* | sco3.2v5* | sco5v6*)
14062 # Note: We can NOT use -z defs as we might desire, because we do not
14063 # link with -lc, and that would cause any symbols used from libc to
14064 # always be unresolved, which means just about no library would
14065 # ever link correctly. If we're not using GNU ld we use -z text
14066 # though, which does catch some bad symbols but isn't as heavy-handed
14067 # as -z defs.
14068 no_undefined_flag='${wl}-z,text'
14069 allow_undefined_flag='${wl}-z,nodefs'
14070 archive_cmds_need_lc=no
14071 hardcode_shlibpath_var=no
14072 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14073 hardcode_libdir_separator=':'
14074 link_all_deplibs=yes
14075 export_dynamic_flag_spec='${wl}-Bexport'
14076 runpath_var='LD_RUN_PATH'
14077
14078 if test "$GCC" = yes; then
14079 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14080 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14081 else
14082 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14083 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14084 fi
14085 ;;
14086
14087 uts4*)
14088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14089 hardcode_libdir_flag_spec='-L$libdir'
14090 hardcode_shlibpath_var=no
14091 ;;
14092
14093 *)
14094 ld_shlibs=no
14095 ;;
14096 esac
14097
14098 if test x$host_vendor = xsni; then
14099 case $host in
14100 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14101 export_dynamic_flag_spec='${wl}-Blargedynsym'
14102 ;;
14103 esac
14104 fi
14105 fi
14106
cristy8b350f62009-11-15 23:12:43 +000014107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014108$as_echo "$ld_shlibs" >&6; }
14109test "$ld_shlibs" = no && can_build_shared=no
14110
14111with_gnu_ld=$with_gnu_ld
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127#
14128# Do we need to explicitly link libc?
14129#
14130case "x$archive_cmds_need_lc" in
14131x|xyes)
14132 # Assume -lc should be added
14133 archive_cmds_need_lc=yes
14134
14135 if test "$enable_shared" = yes && test "$GCC" = yes; then
14136 case $archive_cmds in
14137 *'~'*)
14138 # FIXME: we may have to deal with multi-command sequences.
14139 ;;
14140 '$CC '*)
14141 # Test whether the compiler implicitly links with -lc since on some
14142 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14143 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000014144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000014145$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000014146if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
14147 $as_echo_n "(cached) " >&6
14148else
14149 $RM conftest*
14150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014151
cristyfd9dcd42010-08-08 18:07:02 +000014152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014153 (eval $ac_compile) 2>&5
14154 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14156 test $ac_status = 0; } 2>conftest.err; then
cristyfd9dcd42010-08-08 18:07:02 +000014157 soname=conftest
14158 lib=conftest
14159 libobjs=conftest.$ac_objext
14160 deplibs=
14161 wl=$lt_prog_compiler_wl
14162 pic_flag=$lt_prog_compiler_pic
14163 compiler_flags=-v
14164 linker_flags=-v
14165 verstring=
14166 output_objdir=.
14167 libname=conftest
14168 lt_save_allow_undefined_flag=$allow_undefined_flag
14169 allow_undefined_flag=
14170 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 +000014171 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14172 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14174 test $ac_status = 0; }
cristyfd9dcd42010-08-08 18:07:02 +000014175 then
14176 lt_cv_archive_cmds_need_lc=no
14177 else
14178 lt_cv_archive_cmds_need_lc=yes
14179 fi
14180 allow_undefined_flag=$lt_save_allow_undefined_flag
14181 else
14182 cat conftest.err 1>&5
14183 fi
14184 $RM conftest*
14185
14186fi
14187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14188$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14189 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy3ed852e2009-09-05 21:47:34 +000014190 ;;
14191 esac
14192 fi
14193 ;;
14194esac
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
14351
cristy8b350f62009-11-15 23:12:43 +000014352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000014353$as_echo_n "checking dynamic linker characteristics... " >&6; }
14354
14355if test "$GCC" = yes; then
14356 case $host_os in
14357 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14358 *) lt_awk_arg="/^libraries:/" ;;
14359 esac
cristyfd9dcd42010-08-08 18:07:02 +000014360 case $host_os in
14361 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14362 *) lt_sed_strip_eq="s,=/,/,g" ;;
14363 esac
14364 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14365 case $lt_search_path_spec in
14366 *\;*)
cristy3ed852e2009-09-05 21:47:34 +000014367 # if the path contains ";" then we assume it to be the separator
14368 # otherwise default to the standard path separator (i.e. ":") - it is
14369 # assumed that no part of a normal pathname contains ";" but that should
14370 # okay in the real world where ";" in dirpaths is itself problematic.
cristyfd9dcd42010-08-08 18:07:02 +000014371 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14372 ;;
14373 *)
14374 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14375 ;;
14376 esac
cristy3ed852e2009-09-05 21:47:34 +000014377 # Ok, now we have the path, separated by spaces, we can step through it
14378 # and add multilib dir if necessary.
14379 lt_tmp_lt_search_path_spec=
14380 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14381 for lt_sys_path in $lt_search_path_spec; do
14382 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14383 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14384 else
14385 test -d "$lt_sys_path" && \
14386 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14387 fi
14388 done
cristyfd9dcd42010-08-08 18:07:02 +000014389 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy3ed852e2009-09-05 21:47:34 +000014390BEGIN {RS=" "; FS="/|\n";} {
14391 lt_foo="";
14392 lt_count=0;
14393 for (lt_i = NF; lt_i > 0; lt_i--) {
14394 if ($lt_i != "" && $lt_i != ".") {
14395 if ($lt_i == "..") {
14396 lt_count++;
14397 } else {
14398 if (lt_count == 0) {
14399 lt_foo="/" $lt_i lt_foo;
14400 } else {
14401 lt_count--;
14402 }
14403 }
14404 }
14405 }
14406 if (lt_foo != "") { lt_freq[lt_foo]++; }
14407 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14408}'`
cristyfd9dcd42010-08-08 18:07:02 +000014409 # AWK program above erroneously prepends '/' to C:/dos/paths
14410 # for these hosts.
14411 case $host_os in
14412 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14413 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14414 esac
14415 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy3ed852e2009-09-05 21:47:34 +000014416else
14417 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14418fi
14419library_names_spec=
14420libname_spec='lib$name'
14421soname_spec=
14422shrext_cmds=".so"
14423postinstall_cmds=
14424postuninstall_cmds=
14425finish_cmds=
14426finish_eval=
14427shlibpath_var=
14428shlibpath_overrides_runpath=unknown
14429version_type=none
14430dynamic_linker="$host_os ld.so"
14431sys_lib_dlsearch_path_spec="/lib /usr/lib"
14432need_lib_prefix=unknown
14433hardcode_into_libs=no
14434
14435# when you set need_version to no, make sure it does not cause -set_version
14436# flags to be left without arguments
14437need_version=unknown
14438
14439case $host_os in
14440aix3*)
14441 version_type=linux
14442 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14443 shlibpath_var=LIBPATH
14444
14445 # AIX 3 has no versioning support, so we append a major version to the name.
14446 soname_spec='${libname}${release}${shared_ext}$major'
14447 ;;
14448
14449aix[4-9]*)
14450 version_type=linux
14451 need_lib_prefix=no
14452 need_version=no
14453 hardcode_into_libs=yes
14454 if test "$host_cpu" = ia64; then
14455 # AIX 5 supports IA64
14456 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14457 shlibpath_var=LD_LIBRARY_PATH
14458 else
14459 # With GCC up to 2.95.x, collect2 would create an import file
14460 # for dependence libraries. The import file would start with
14461 # the line `#! .'. This would cause the generated library to
14462 # depend on `.', always an invalid library. This was fixed in
14463 # development snapshots of GCC prior to 3.0.
14464 case $host_os in
14465 aix4 | aix4.[01] | aix4.[01].*)
14466 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14467 echo ' yes '
14468 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14469 :
14470 else
14471 can_build_shared=no
14472 fi
14473 ;;
14474 esac
14475 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14476 # soname into executable. Probably we can add versioning support to
14477 # collect2, so additional links can be useful in future.
14478 if test "$aix_use_runtimelinking" = yes; then
14479 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14480 # instead of lib<name>.a to let people know that these are not
14481 # typical AIX shared libraries.
14482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14483 else
14484 # We preserve .a as extension for shared libraries through AIX4.2
14485 # and later when we are not doing run time linking.
14486 library_names_spec='${libname}${release}.a $libname.a'
14487 soname_spec='${libname}${release}${shared_ext}$major'
14488 fi
14489 shlibpath_var=LIBPATH
14490 fi
14491 ;;
14492
14493amigaos*)
14494 case $host_cpu in
14495 powerpc)
14496 # Since July 2007 AmigaOS4 officially supports .so libraries.
14497 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14499 ;;
14500 m68k)
14501 library_names_spec='$libname.ixlibrary $libname.a'
14502 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristyfd9dcd42010-08-08 18:07:02 +000014503 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 +000014504 ;;
14505 esac
14506 ;;
14507
14508beos*)
14509 library_names_spec='${libname}${shared_ext}'
14510 dynamic_linker="$host_os ld.so"
14511 shlibpath_var=LIBRARY_PATH
14512 ;;
14513
14514bsdi[45]*)
14515 version_type=linux
14516 need_version=no
14517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14518 soname_spec='${libname}${release}${shared_ext}$major'
14519 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14520 shlibpath_var=LD_LIBRARY_PATH
14521 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14522 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14523 # the default ld.so.conf also contains /usr/contrib/lib and
14524 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14525 # libtool to hard-code these into programs
14526 ;;
14527
14528cygwin* | mingw* | pw32* | cegcc*)
14529 version_type=windows
14530 shrext_cmds=".dll"
14531 need_version=no
14532 need_lib_prefix=no
14533
14534 case $GCC,$host_os in
14535 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14536 library_names_spec='$libname.dll.a'
14537 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14538 postinstall_cmds='base_file=`basename \${file}`~
14539 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14540 dldir=$destdir/`dirname \$dlpath`~
14541 test -d \$dldir || mkdir -p \$dldir~
14542 $install_prog $dir/$dlname \$dldir/$dlname~
14543 chmod a+x \$dldir/$dlname~
14544 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14545 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14546 fi'
14547 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14548 dlpath=$dir/\$dldll~
14549 $RM \$dlpath'
14550 shlibpath_overrides_runpath=yes
14551
14552 case $host_os in
14553 cygwin*)
14554 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14555 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristyfd9dcd42010-08-08 18:07:02 +000014556
14557 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy3ed852e2009-09-05 21:47:34 +000014558 ;;
14559 mingw* | cegcc*)
14560 # MinGW DLLs use traditional 'lib' prefix
14561 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy3ed852e2009-09-05 21:47:34 +000014562 ;;
14563 pw32*)
14564 # pw32 DLLs use 'pw' prefix rather than 'lib'
14565 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14566 ;;
14567 esac
14568 ;;
14569
14570 *)
14571 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14572 ;;
14573 esac
14574 dynamic_linker='Win32 ld.exe'
14575 # FIXME: first we should search . and the directory the executable is in
14576 shlibpath_var=PATH
14577 ;;
14578
14579darwin* | rhapsody*)
14580 dynamic_linker="$host_os dyld"
14581 version_type=darwin
14582 need_lib_prefix=no
14583 need_version=no
14584 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14585 soname_spec='${libname}${release}${major}$shared_ext'
14586 shlibpath_overrides_runpath=yes
14587 shlibpath_var=DYLD_LIBRARY_PATH
14588 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14589
14590 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14591 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14592 ;;
14593
14594dgux*)
14595 version_type=linux
14596 need_lib_prefix=no
14597 need_version=no
14598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14599 soname_spec='${libname}${release}${shared_ext}$major'
14600 shlibpath_var=LD_LIBRARY_PATH
14601 ;;
14602
14603freebsd1*)
14604 dynamic_linker=no
14605 ;;
14606
14607freebsd* | dragonfly*)
14608 # DragonFly does not have aout. When/if they implement a new
14609 # versioning mechanism, adjust this.
14610 if test -x /usr/bin/objformat; then
14611 objformat=`/usr/bin/objformat`
14612 else
14613 case $host_os in
14614 freebsd[123]*) objformat=aout ;;
14615 *) objformat=elf ;;
14616 esac
14617 fi
14618 version_type=freebsd-$objformat
14619 case $version_type in
14620 freebsd-elf*)
14621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14622 need_version=no
14623 need_lib_prefix=no
14624 ;;
14625 freebsd-*)
14626 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14627 need_version=yes
14628 ;;
14629 esac
14630 shlibpath_var=LD_LIBRARY_PATH
14631 case $host_os in
14632 freebsd2*)
14633 shlibpath_overrides_runpath=yes
14634 ;;
14635 freebsd3.[01]* | freebsdelf3.[01]*)
14636 shlibpath_overrides_runpath=yes
14637 hardcode_into_libs=yes
14638 ;;
14639 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14640 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14641 shlibpath_overrides_runpath=no
14642 hardcode_into_libs=yes
14643 ;;
14644 *) # from 4.6 on, and DragonFly
14645 shlibpath_overrides_runpath=yes
14646 hardcode_into_libs=yes
14647 ;;
14648 esac
14649 ;;
14650
14651gnu*)
14652 version_type=linux
14653 need_lib_prefix=no
14654 need_version=no
14655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14656 soname_spec='${libname}${release}${shared_ext}$major'
14657 shlibpath_var=LD_LIBRARY_PATH
14658 hardcode_into_libs=yes
14659 ;;
14660
cristyfd9dcd42010-08-08 18:07:02 +000014661haiku*)
14662 version_type=linux
14663 need_lib_prefix=no
14664 need_version=no
14665 dynamic_linker="$host_os runtime_loader"
14666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14667 soname_spec='${libname}${release}${shared_ext}$major'
14668 shlibpath_var=LIBRARY_PATH
14669 shlibpath_overrides_runpath=yes
14670 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14671 hardcode_into_libs=yes
14672 ;;
14673
cristy3ed852e2009-09-05 21:47:34 +000014674hpux9* | hpux10* | hpux11*)
14675 # Give a soname corresponding to the major version so that dld.sl refuses to
14676 # link against other versions.
14677 version_type=sunos
14678 need_lib_prefix=no
14679 need_version=no
14680 case $host_cpu in
14681 ia64*)
14682 shrext_cmds='.so'
14683 hardcode_into_libs=yes
14684 dynamic_linker="$host_os dld.so"
14685 shlibpath_var=LD_LIBRARY_PATH
14686 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14688 soname_spec='${libname}${release}${shared_ext}$major'
14689 if test "X$HPUX_IA64_MODE" = X32; then
14690 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14691 else
14692 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14693 fi
14694 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14695 ;;
14696 hppa*64*)
14697 shrext_cmds='.sl'
14698 hardcode_into_libs=yes
14699 dynamic_linker="$host_os dld.sl"
14700 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14701 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14703 soname_spec='${libname}${release}${shared_ext}$major'
14704 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14705 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14706 ;;
14707 *)
14708 shrext_cmds='.sl'
14709 dynamic_linker="$host_os dld.sl"
14710 shlibpath_var=SHLIB_PATH
14711 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14713 soname_spec='${libname}${release}${shared_ext}$major'
14714 ;;
14715 esac
cristyfd9dcd42010-08-08 18:07:02 +000014716 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy3ed852e2009-09-05 21:47:34 +000014717 postinstall_cmds='chmod 555 $lib'
cristyfd9dcd42010-08-08 18:07:02 +000014718 # or fails outright, so override atomically:
14719 install_override_mode=555
cristy3ed852e2009-09-05 21:47:34 +000014720 ;;
14721
14722interix[3-9]*)
14723 version_type=linux
14724 need_lib_prefix=no
14725 need_version=no
14726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14727 soname_spec='${libname}${release}${shared_ext}$major'
14728 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14729 shlibpath_var=LD_LIBRARY_PATH
14730 shlibpath_overrides_runpath=no
14731 hardcode_into_libs=yes
14732 ;;
14733
14734irix5* | irix6* | nonstopux*)
14735 case $host_os in
14736 nonstopux*) version_type=nonstopux ;;
14737 *)
14738 if test "$lt_cv_prog_gnu_ld" = yes; then
14739 version_type=linux
14740 else
14741 version_type=irix
14742 fi ;;
14743 esac
14744 need_lib_prefix=no
14745 need_version=no
14746 soname_spec='${libname}${release}${shared_ext}$major'
14747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14748 case $host_os in
14749 irix5* | nonstopux*)
14750 libsuff= shlibsuff=
14751 ;;
14752 *)
14753 case $LD in # libtool.m4 will add one of these switches to LD
14754 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14755 libsuff= shlibsuff= libmagic=32-bit;;
14756 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14757 libsuff=32 shlibsuff=N32 libmagic=N32;;
14758 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14759 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14760 *) libsuff= shlibsuff= libmagic=never-match;;
14761 esac
14762 ;;
14763 esac
14764 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14765 shlibpath_overrides_runpath=no
14766 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14767 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14768 hardcode_into_libs=yes
14769 ;;
14770
14771# No shared lib support for Linux oldld, aout, or coff.
14772linux*oldld* | linux*aout* | linux*coff*)
14773 dynamic_linker=no
14774 ;;
14775
14776# This must be Linux ELF.
cristyfd9dcd42010-08-08 18:07:02 +000014777linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000014778 version_type=linux
14779 need_lib_prefix=no
14780 need_version=no
14781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14782 soname_spec='${libname}${release}${shared_ext}$major'
14783 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14784 shlibpath_var=LD_LIBRARY_PATH
14785 shlibpath_overrides_runpath=no
cristyfd9dcd42010-08-08 18:07:02 +000014786
cristy3ed852e2009-09-05 21:47:34 +000014787 # Some binutils ld are patched to set DT_RUNPATH
cristyfd9dcd42010-08-08 18:07:02 +000014788 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14789 $as_echo_n "(cached) " >&6
14790else
14791 lt_cv_shlibpath_overrides_runpath=no
14792 save_LDFLAGS=$LDFLAGS
14793 save_libdir=$libdir
14794 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14795 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014797/* end confdefs.h. */
14798
14799int
14800main ()
14801{
14802
14803 ;
14804 return 0;
14805}
14806_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014807if ac_fn_c_try_link "$LINENO"; then :
14808 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristyfd9dcd42010-08-08 18:07:02 +000014809 lt_cv_shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000014810fi
cristy3ed852e2009-09-05 21:47:34 +000014811fi
cristy8b350f62009-11-15 23:12:43 +000014812rm -f core conftest.err conftest.$ac_objext \
14813 conftest$ac_exeext conftest.$ac_ext
cristyfd9dcd42010-08-08 18:07:02 +000014814 LDFLAGS=$save_LDFLAGS
14815 libdir=$save_libdir
14816
14817fi
14818
14819 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy3ed852e2009-09-05 21:47:34 +000014820
14821 # This implies no fast_install, which is unacceptable.
14822 # Some rework will be needed to allow for fast_install
14823 # before this can be enabled.
14824 hardcode_into_libs=yes
14825
cristy679ed8e2009-12-05 02:37:41 +000014826 # Add ABI-specific directories to the system library path.
14827 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14828
cristy3ed852e2009-09-05 21:47:34 +000014829 # Append ld.so.conf contents to the search path
14830 if test -f /etc/ld.so.conf; then
cristyfd9dcd42010-08-08 18:07:02 +000014831 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 +000014832 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristyfd9dcd42010-08-08 18:07:02 +000014833
cristy3ed852e2009-09-05 21:47:34 +000014834 fi
14835
14836 # We used to test for /lib/ld.so.1 and disable shared libraries on
14837 # powerpc, because MkLinux only supported shared libraries with the
14838 # GNU dynamic linker. Since this was broken with cross compilers,
14839 # most powerpc-linux boxes support dynamic linking these days and
14840 # people can always --disable-shared, the test was removed, and we
14841 # assume the GNU/Linux dynamic linker is in use.
14842 dynamic_linker='GNU/Linux ld.so'
14843 ;;
14844
14845netbsd*)
14846 version_type=sunos
14847 need_lib_prefix=no
14848 need_version=no
14849 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14851 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14852 dynamic_linker='NetBSD (a.out) ld.so'
14853 else
14854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14855 soname_spec='${libname}${release}${shared_ext}$major'
14856 dynamic_linker='NetBSD ld.elf_so'
14857 fi
14858 shlibpath_var=LD_LIBRARY_PATH
14859 shlibpath_overrides_runpath=yes
14860 hardcode_into_libs=yes
14861 ;;
14862
14863newsos6)
14864 version_type=linux
14865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14866 shlibpath_var=LD_LIBRARY_PATH
14867 shlibpath_overrides_runpath=yes
14868 ;;
14869
14870*nto* | *qnx*)
14871 version_type=qnx
14872 need_lib_prefix=no
14873 need_version=no
14874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14875 soname_spec='${libname}${release}${shared_ext}$major'
14876 shlibpath_var=LD_LIBRARY_PATH
14877 shlibpath_overrides_runpath=no
14878 hardcode_into_libs=yes
14879 dynamic_linker='ldqnx.so'
14880 ;;
14881
14882openbsd*)
14883 version_type=sunos
14884 sys_lib_dlsearch_path_spec="/usr/lib"
14885 need_lib_prefix=no
14886 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14887 case $host_os in
14888 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14889 *) need_version=no ;;
14890 esac
14891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14893 shlibpath_var=LD_LIBRARY_PATH
14894 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14895 case $host_os in
14896 openbsd2.[89] | openbsd2.[89].*)
14897 shlibpath_overrides_runpath=no
14898 ;;
14899 *)
14900 shlibpath_overrides_runpath=yes
14901 ;;
14902 esac
14903 else
14904 shlibpath_overrides_runpath=yes
14905 fi
14906 ;;
14907
14908os2*)
14909 libname_spec='$name'
14910 shrext_cmds=".dll"
14911 need_lib_prefix=no
14912 library_names_spec='$libname${shared_ext} $libname.a'
14913 dynamic_linker='OS/2 ld.exe'
14914 shlibpath_var=LIBPATH
14915 ;;
14916
14917osf3* | osf4* | osf5*)
14918 version_type=osf
14919 need_lib_prefix=no
14920 need_version=no
14921 soname_spec='${libname}${release}${shared_ext}$major'
14922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14923 shlibpath_var=LD_LIBRARY_PATH
14924 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14925 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14926 ;;
14927
14928rdos*)
14929 dynamic_linker=no
14930 ;;
14931
14932solaris*)
14933 version_type=linux
14934 need_lib_prefix=no
14935 need_version=no
14936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937 soname_spec='${libname}${release}${shared_ext}$major'
14938 shlibpath_var=LD_LIBRARY_PATH
14939 shlibpath_overrides_runpath=yes
14940 hardcode_into_libs=yes
14941 # ldd complains unless libraries are executable
14942 postinstall_cmds='chmod +x $lib'
14943 ;;
14944
14945sunos4*)
14946 version_type=sunos
14947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14948 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14949 shlibpath_var=LD_LIBRARY_PATH
14950 shlibpath_overrides_runpath=yes
14951 if test "$with_gnu_ld" = yes; then
14952 need_lib_prefix=no
14953 fi
14954 need_version=yes
14955 ;;
14956
14957sysv4 | sysv4.3*)
14958 version_type=linux
14959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14960 soname_spec='${libname}${release}${shared_ext}$major'
14961 shlibpath_var=LD_LIBRARY_PATH
14962 case $host_vendor in
14963 sni)
14964 shlibpath_overrides_runpath=no
14965 need_lib_prefix=no
14966 runpath_var=LD_RUN_PATH
14967 ;;
14968 siemens)
14969 need_lib_prefix=no
14970 ;;
14971 motorola)
14972 need_lib_prefix=no
14973 need_version=no
14974 shlibpath_overrides_runpath=no
14975 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14976 ;;
14977 esac
14978 ;;
14979
14980sysv4*MP*)
14981 if test -d /usr/nec ;then
14982 version_type=linux
14983 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14984 soname_spec='$libname${shared_ext}.$major'
14985 shlibpath_var=LD_LIBRARY_PATH
14986 fi
14987 ;;
14988
14989sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14990 version_type=freebsd-elf
14991 need_lib_prefix=no
14992 need_version=no
14993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14994 soname_spec='${libname}${release}${shared_ext}$major'
14995 shlibpath_var=LD_LIBRARY_PATH
14996 shlibpath_overrides_runpath=yes
14997 hardcode_into_libs=yes
14998 if test "$with_gnu_ld" = yes; then
14999 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15000 else
15001 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15002 case $host_os in
15003 sco3.2v5*)
15004 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15005 ;;
15006 esac
15007 fi
15008 sys_lib_dlsearch_path_spec='/usr/lib'
15009 ;;
15010
15011tpf*)
15012 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15013 version_type=linux
15014 need_lib_prefix=no
15015 need_version=no
15016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15017 shlibpath_var=LD_LIBRARY_PATH
15018 shlibpath_overrides_runpath=no
15019 hardcode_into_libs=yes
15020 ;;
15021
15022uts4*)
15023 version_type=linux
15024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15025 soname_spec='${libname}${release}${shared_ext}$major'
15026 shlibpath_var=LD_LIBRARY_PATH
15027 ;;
15028
15029*)
15030 dynamic_linker=no
15031 ;;
15032esac
cristy8b350f62009-11-15 23:12:43 +000015033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000015034$as_echo "$dynamic_linker" >&6; }
15035test "$dynamic_linker" = no && can_build_shared=no
15036
15037variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15038if test "$GCC" = yes; then
15039 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15040fi
15041
15042if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15043 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15044fi
15045if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15046 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15047fi
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
15134
cristyfd9dcd42010-08-08 18:07:02 +000015135
15136
15137
15138
15139
cristy8b350f62009-11-15 23:12:43 +000015140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000015141$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15142hardcode_action=
15143if test -n "$hardcode_libdir_flag_spec" ||
15144 test -n "$runpath_var" ||
15145 test "X$hardcode_automatic" = "Xyes" ; then
15146
15147 # We can hardcode non-existent directories.
15148 if test "$hardcode_direct" != no &&
15149 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15150 # have to relink, otherwise we might link with an installed library
15151 # when we should be linking with a yet-to-be-installed one
15152 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15153 test "$hardcode_minus_L" != no; then
15154 # Linking always hardcodes the temporary library directory.
15155 hardcode_action=relink
15156 else
15157 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15158 hardcode_action=immediate
15159 fi
15160else
15161 # We cannot hardcode anything, or else we can only hardcode existing
15162 # directories.
15163 hardcode_action=unsupported
15164fi
cristy8b350f62009-11-15 23:12:43 +000015165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000015166$as_echo "$hardcode_action" >&6; }
15167
15168if test "$hardcode_action" = relink ||
15169 test "$inherit_rpath" = yes; then
15170 # Fast installation is not supported
15171 enable_fast_install=no
15172elif test "$shlibpath_overrides_runpath" = yes ||
15173 test "$enable_shared" = no; then
15174 # Fast installation is not necessary
15175 enable_fast_install=needless
15176fi
15177
15178
15179
15180
15181
15182
15183 if test "x$enable_dlopen" != xyes; then
15184 enable_dlopen=unknown
15185 enable_dlopen_self=unknown
15186 enable_dlopen_self_static=unknown
15187else
15188 lt_cv_dlopen=no
15189 lt_cv_dlopen_libs=
15190
15191 case $host_os in
15192 beos*)
15193 lt_cv_dlopen="load_add_on"
15194 lt_cv_dlopen_libs=
15195 lt_cv_dlopen_self=yes
15196 ;;
15197
15198 mingw* | pw32* | cegcc*)
15199 lt_cv_dlopen="LoadLibrary"
15200 lt_cv_dlopen_libs=
15201 ;;
15202
15203 cygwin*)
15204 lt_cv_dlopen="dlopen"
15205 lt_cv_dlopen_libs=
15206 ;;
15207
15208 darwin*)
15209 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000015210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015211$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015212if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015213 $as_echo_n "(cached) " >&6
15214else
15215 ac_check_lib_save_LIBS=$LIBS
15216LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015218/* end confdefs.h. */
15219
15220/* Override any GCC internal prototype to avoid an error.
15221 Use char because int might match the return type of a GCC
15222 builtin and then its argument prototype would still apply. */
15223#ifdef __cplusplus
15224extern "C"
15225#endif
15226char dlopen ();
15227int
15228main ()
15229{
15230return dlopen ();
15231 ;
15232 return 0;
15233}
15234_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015235if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015236 ac_cv_lib_dl_dlopen=yes
15237else
cristy8b350f62009-11-15 23:12:43 +000015238 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015239fi
cristy8b350f62009-11-15 23:12:43 +000015240rm -f core conftest.err conftest.$ac_objext \
15241 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015242LIBS=$ac_check_lib_save_LIBS
15243fi
cristy8b350f62009-11-15 23:12:43 +000015244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015245$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015246if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015247 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15248else
15249
15250 lt_cv_dlopen="dyld"
15251 lt_cv_dlopen_libs=
15252 lt_cv_dlopen_self=yes
15253
15254fi
15255
15256 ;;
15257
15258 *)
cristy8b350f62009-11-15 23:12:43 +000015259 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15260if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015261 lt_cv_dlopen="shl_load"
15262else
cristy8b350f62009-11-15 23:12:43 +000015263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015264$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015265if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015266 $as_echo_n "(cached) " >&6
15267else
15268 ac_check_lib_save_LIBS=$LIBS
15269LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015271/* end confdefs.h. */
15272
15273/* Override any GCC internal prototype to avoid an error.
15274 Use char because int might match the return type of a GCC
15275 builtin and then its argument prototype would still apply. */
15276#ifdef __cplusplus
15277extern "C"
15278#endif
15279char shl_load ();
15280int
15281main ()
15282{
15283return shl_load ();
15284 ;
15285 return 0;
15286}
15287_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015288if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015289 ac_cv_lib_dld_shl_load=yes
15290else
cristy8b350f62009-11-15 23:12:43 +000015291 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000015292fi
cristy8b350f62009-11-15 23:12:43 +000015293rm -f core conftest.err conftest.$ac_objext \
15294 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015295LIBS=$ac_check_lib_save_LIBS
15296fi
cristy8b350f62009-11-15 23:12:43 +000015297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000015298$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015299if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015300 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15301else
cristy8b350f62009-11-15 23:12:43 +000015302 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15303if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015304 lt_cv_dlopen="dlopen"
15305else
cristy8b350f62009-11-15 23:12:43 +000015306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015307$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015308if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015309 $as_echo_n "(cached) " >&6
15310else
15311 ac_check_lib_save_LIBS=$LIBS
15312LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015314/* end confdefs.h. */
15315
15316/* Override any GCC internal prototype to avoid an error.
15317 Use char because int might match the return type of a GCC
15318 builtin and then its argument prototype would still apply. */
15319#ifdef __cplusplus
15320extern "C"
15321#endif
15322char dlopen ();
15323int
15324main ()
15325{
15326return dlopen ();
15327 ;
15328 return 0;
15329}
15330_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015331if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015332 ac_cv_lib_dl_dlopen=yes
15333else
cristy8b350f62009-11-15 23:12:43 +000015334 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015335fi
cristy8b350f62009-11-15 23:12:43 +000015336rm -f core conftest.err conftest.$ac_objext \
15337 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015338LIBS=$ac_check_lib_save_LIBS
15339fi
cristy8b350f62009-11-15 23:12:43 +000015340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015341$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015342if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015343 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15344else
cristy8b350f62009-11-15 23:12:43 +000015345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015346$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015347if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015348 $as_echo_n "(cached) " >&6
15349else
15350 ac_check_lib_save_LIBS=$LIBS
15351LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015353/* end confdefs.h. */
15354
15355/* Override any GCC internal prototype to avoid an error.
15356 Use char because int might match the return type of a GCC
15357 builtin and then its argument prototype would still apply. */
15358#ifdef __cplusplus
15359extern "C"
15360#endif
15361char dlopen ();
15362int
15363main ()
15364{
15365return dlopen ();
15366 ;
15367 return 0;
15368}
15369_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015370if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015371 ac_cv_lib_svld_dlopen=yes
15372else
cristy8b350f62009-11-15 23:12:43 +000015373 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015374fi
cristy8b350f62009-11-15 23:12:43 +000015375rm -f core conftest.err conftest.$ac_objext \
15376 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015377LIBS=$ac_check_lib_save_LIBS
15378fi
cristy8b350f62009-11-15 23:12:43 +000015379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015380$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015381if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015382 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15383else
cristy8b350f62009-11-15 23:12:43 +000015384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015385$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015386if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015387 $as_echo_n "(cached) " >&6
15388else
15389 ac_check_lib_save_LIBS=$LIBS
15390LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015392/* end confdefs.h. */
15393
15394/* Override any GCC internal prototype to avoid an error.
15395 Use char because int might match the return type of a GCC
15396 builtin and then its argument prototype would still apply. */
15397#ifdef __cplusplus
15398extern "C"
15399#endif
15400char dld_link ();
15401int
15402main ()
15403{
15404return dld_link ();
15405 ;
15406 return 0;
15407}
15408_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015409if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015410 ac_cv_lib_dld_dld_link=yes
15411else
cristy8b350f62009-11-15 23:12:43 +000015412 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000015413fi
cristy8b350f62009-11-15 23:12:43 +000015414rm -f core conftest.err conftest.$ac_objext \
15415 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015416LIBS=$ac_check_lib_save_LIBS
15417fi
cristy8b350f62009-11-15 23:12:43 +000015418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000015419$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015420if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015421 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15422fi
15423
15424
15425fi
15426
15427
15428fi
15429
15430
15431fi
15432
15433
15434fi
15435
15436
15437fi
15438
15439 ;;
15440 esac
15441
15442 if test "x$lt_cv_dlopen" != xno; then
15443 enable_dlopen=yes
15444 else
15445 enable_dlopen=no
15446 fi
15447
15448 case $lt_cv_dlopen in
15449 dlopen)
15450 save_CPPFLAGS="$CPPFLAGS"
15451 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15452
15453 save_LDFLAGS="$LDFLAGS"
15454 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15455
15456 save_LIBS="$LIBS"
15457 LIBS="$lt_cv_dlopen_libs $LIBS"
15458
cristy8b350f62009-11-15 23:12:43 +000015459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015460$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015461if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015462 $as_echo_n "(cached) " >&6
15463else
15464 if test "$cross_compiling" = yes; then :
15465 lt_cv_dlopen_self=cross
15466else
15467 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15468 lt_status=$lt_dlunknown
15469 cat > conftest.$ac_ext <<_LT_EOF
cristyfd9dcd42010-08-08 18:07:02 +000015470#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000015471#include "confdefs.h"
15472
15473#if HAVE_DLFCN_H
15474#include <dlfcn.h>
15475#endif
15476
15477#include <stdio.h>
15478
15479#ifdef RTLD_GLOBAL
15480# define LT_DLGLOBAL RTLD_GLOBAL
15481#else
15482# ifdef DL_GLOBAL
15483# define LT_DLGLOBAL DL_GLOBAL
15484# else
15485# define LT_DLGLOBAL 0
15486# endif
15487#endif
15488
15489/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15490 find out it does not work in some platform. */
15491#ifndef LT_DLLAZY_OR_NOW
15492# ifdef RTLD_LAZY
15493# define LT_DLLAZY_OR_NOW RTLD_LAZY
15494# else
15495# ifdef DL_LAZY
15496# define LT_DLLAZY_OR_NOW DL_LAZY
15497# else
15498# ifdef RTLD_NOW
15499# define LT_DLLAZY_OR_NOW RTLD_NOW
15500# else
15501# ifdef DL_NOW
15502# define LT_DLLAZY_OR_NOW DL_NOW
15503# else
15504# define LT_DLLAZY_OR_NOW 0
15505# endif
15506# endif
15507# endif
15508# endif
15509#endif
15510
cristyfd9dcd42010-08-08 18:07:02 +000015511/* When -fvisbility=hidden is used, assume the code has been annotated
15512 correspondingly for the symbols needed. */
15513#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15514void fnord () __attribute__((visibility("default")));
15515#endif
15516
15517void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000015518int main ()
15519{
15520 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15521 int status = $lt_dlunknown;
15522
15523 if (self)
15524 {
15525 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristyfd9dcd42010-08-08 18:07:02 +000015526 else
15527 {
15528 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15529 else puts (dlerror ());
15530 }
cristy3ed852e2009-09-05 21:47:34 +000015531 /* dlclose (self); */
15532 }
15533 else
15534 puts (dlerror ());
15535
15536 return status;
15537}
15538_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015540 (eval $ac_link) 2>&5
15541 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15543 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015544 (./conftest; exit; ) >&5 2>/dev/null
15545 lt_status=$?
15546 case x$lt_status in
15547 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15548 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15549 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15550 esac
15551 else :
15552 # compilation failed
15553 lt_cv_dlopen_self=no
15554 fi
15555fi
15556rm -fr conftest*
15557
15558
15559fi
cristy8b350f62009-11-15 23:12:43 +000015560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000015561$as_echo "$lt_cv_dlopen_self" >&6; }
15562
15563 if test "x$lt_cv_dlopen_self" = xyes; then
15564 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000015565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015566$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015567if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015568 $as_echo_n "(cached) " >&6
15569else
15570 if test "$cross_compiling" = yes; then :
15571 lt_cv_dlopen_self_static=cross
15572else
15573 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15574 lt_status=$lt_dlunknown
15575 cat > conftest.$ac_ext <<_LT_EOF
cristyfd9dcd42010-08-08 18:07:02 +000015576#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000015577#include "confdefs.h"
15578
15579#if HAVE_DLFCN_H
15580#include <dlfcn.h>
15581#endif
15582
15583#include <stdio.h>
15584
15585#ifdef RTLD_GLOBAL
15586# define LT_DLGLOBAL RTLD_GLOBAL
15587#else
15588# ifdef DL_GLOBAL
15589# define LT_DLGLOBAL DL_GLOBAL
15590# else
15591# define LT_DLGLOBAL 0
15592# endif
15593#endif
15594
15595/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15596 find out it does not work in some platform. */
15597#ifndef LT_DLLAZY_OR_NOW
15598# ifdef RTLD_LAZY
15599# define LT_DLLAZY_OR_NOW RTLD_LAZY
15600# else
15601# ifdef DL_LAZY
15602# define LT_DLLAZY_OR_NOW DL_LAZY
15603# else
15604# ifdef RTLD_NOW
15605# define LT_DLLAZY_OR_NOW RTLD_NOW
15606# else
15607# ifdef DL_NOW
15608# define LT_DLLAZY_OR_NOW DL_NOW
15609# else
15610# define LT_DLLAZY_OR_NOW 0
15611# endif
15612# endif
15613# endif
15614# endif
15615#endif
15616
cristyfd9dcd42010-08-08 18:07:02 +000015617/* When -fvisbility=hidden is used, assume the code has been annotated
15618 correspondingly for the symbols needed. */
15619#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15620void fnord () __attribute__((visibility("default")));
15621#endif
15622
15623void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000015624int main ()
15625{
15626 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15627 int status = $lt_dlunknown;
15628
15629 if (self)
15630 {
15631 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristyfd9dcd42010-08-08 18:07:02 +000015632 else
15633 {
15634 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15635 else puts (dlerror ());
15636 }
cristy3ed852e2009-09-05 21:47:34 +000015637 /* dlclose (self); */
15638 }
15639 else
15640 puts (dlerror ());
15641
15642 return status;
15643}
15644_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015646 (eval $ac_link) 2>&5
15647 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15649 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015650 (./conftest; exit; ) >&5 2>/dev/null
15651 lt_status=$?
15652 case x$lt_status in
15653 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15654 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15655 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15656 esac
15657 else :
15658 # compilation failed
15659 lt_cv_dlopen_self_static=no
15660 fi
15661fi
15662rm -fr conftest*
15663
15664
15665fi
cristy8b350f62009-11-15 23:12:43 +000015666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015667$as_echo "$lt_cv_dlopen_self_static" >&6; }
15668 fi
15669
15670 CPPFLAGS="$save_CPPFLAGS"
15671 LDFLAGS="$save_LDFLAGS"
15672 LIBS="$save_LIBS"
15673 ;;
15674 esac
15675
15676 case $lt_cv_dlopen_self in
15677 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15678 *) enable_dlopen_self=unknown ;;
15679 esac
15680
15681 case $lt_cv_dlopen_self_static in
15682 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15683 *) enable_dlopen_self_static=unknown ;;
15684 esac
15685fi
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703striplib=
15704old_striplib=
cristy8b350f62009-11-15 23:12:43 +000015705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000015706$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15707if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15708 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15709 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000015710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015711$as_echo "yes" >&6; }
15712else
15713# FIXME - insert some real tests, host_os isn't really good enough
15714 case $host_os in
15715 darwin*)
15716 if test -n "$STRIP" ; then
15717 striplib="$STRIP -x"
15718 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000015719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015720$as_echo "yes" >&6; }
15721 else
cristy8b350f62009-11-15 23:12:43 +000015722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015723$as_echo "no" >&6; }
15724 fi
15725 ;;
15726 *)
cristy8b350f62009-11-15 23:12:43 +000015727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015728$as_echo "no" >&6; }
15729 ;;
15730 esac
15731fi
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000015745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015746$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015748$as_echo "$can_build_shared" >&6; }
15749
cristy8b350f62009-11-15 23:12:43 +000015750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015751$as_echo_n "checking whether to build shared libraries... " >&6; }
15752 test "$can_build_shared" = "no" && enable_shared=no
15753
15754 # On AIX, shared libraries and static libraries use the same namespace, and
15755 # are all built from PIC.
15756 case $host_os in
15757 aix3*)
15758 test "$enable_shared" = yes && enable_static=no
15759 if test -n "$RANLIB"; then
15760 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15761 postinstall_cmds='$RANLIB $lib'
15762 fi
15763 ;;
15764
15765 aix[4-9]*)
15766 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15767 test "$enable_shared" = yes && enable_static=no
15768 fi
15769 ;;
15770 esac
cristy8b350f62009-11-15 23:12:43 +000015771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015772$as_echo "$enable_shared" >&6; }
15773
cristy8b350f62009-11-15 23:12:43 +000015774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015775$as_echo_n "checking whether to build static libraries... " >&6; }
15776 # Make sure either enable_shared or enable_static is yes.
15777 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000015778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015779$as_echo "$enable_static" >&6; }
15780
15781
15782
15783
15784fi
15785ac_ext=c
15786ac_cpp='$CPP $CPPFLAGS'
15787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15789ac_compiler_gnu=$ac_cv_c_compiler_gnu
15790
15791CC="$lt_save_CC"
15792
cristyfd9dcd42010-08-08 18:07:02 +000015793 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15794 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15795 (test "X$CXX" != "Xg++"))) ; then
15796 ac_ext=cpp
15797ac_cpp='$CXXCPP $CPPFLAGS'
15798ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15799ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15800ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15802$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15803if test -z "$CXXCPP"; then
15804 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
15805 $as_echo_n "(cached) " >&6
15806else
15807 # Double quotes because CXXCPP needs to be expanded
15808 for CXXCPP in "$CXX -E" "/lib/cpp"
15809 do
15810 ac_preproc_ok=false
15811for ac_cxx_preproc_warn_flag in '' yes
15812do
15813 # Use a header file that comes with gcc, so configuring glibc
15814 # with a fresh cross-compiler works.
15815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15816 # <limits.h> exists even on freestanding compilers.
15817 # On the NeXT, cc -E runs the code through the compiler's parser,
15818 # not just through cpp. "Syntax error" is here to catch this case.
15819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15820/* end confdefs.h. */
15821#ifdef __STDC__
15822# include <limits.h>
15823#else
15824# include <assert.h>
15825#endif
15826 Syntax error
15827_ACEOF
15828if ac_fn_cxx_try_cpp "$LINENO"; then :
15829
15830else
15831 # Broken: fails on valid input.
15832continue
15833fi
15834rm -f conftest.err conftest.$ac_ext
15835
15836 # OK, works on sane cases. Now check whether nonexistent headers
15837 # can be detected and how.
15838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15839/* end confdefs.h. */
15840#include <ac_nonexistent.h>
15841_ACEOF
15842if ac_fn_cxx_try_cpp "$LINENO"; then :
15843 # Broken: success on invalid input.
15844continue
15845else
15846 # Passes both tests.
15847ac_preproc_ok=:
15848break
15849fi
15850rm -f conftest.err conftest.$ac_ext
15851
15852done
15853# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15854rm -f conftest.err conftest.$ac_ext
15855if $ac_preproc_ok; then :
15856 break
15857fi
15858
15859 done
15860 ac_cv_prog_CXXCPP=$CXXCPP
15861
15862fi
15863 CXXCPP=$ac_cv_prog_CXXCPP
15864else
15865 ac_cv_prog_CXXCPP=$CXXCPP
15866fi
15867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15868$as_echo "$CXXCPP" >&6; }
15869ac_preproc_ok=false
15870for ac_cxx_preproc_warn_flag in '' yes
15871do
15872 # Use a header file that comes with gcc, so configuring glibc
15873 # with a fresh cross-compiler works.
15874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15875 # <limits.h> exists even on freestanding compilers.
15876 # On the NeXT, cc -E runs the code through the compiler's parser,
15877 # not just through cpp. "Syntax error" is here to catch this case.
15878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879/* end confdefs.h. */
15880#ifdef __STDC__
15881# include <limits.h>
15882#else
15883# include <assert.h>
15884#endif
15885 Syntax error
15886_ACEOF
15887if ac_fn_cxx_try_cpp "$LINENO"; then :
15888
15889else
15890 # Broken: fails on valid input.
15891continue
15892fi
15893rm -f conftest.err conftest.$ac_ext
15894
15895 # OK, works on sane cases. Now check whether nonexistent headers
15896 # can be detected and how.
15897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15898/* end confdefs.h. */
15899#include <ac_nonexistent.h>
15900_ACEOF
15901if ac_fn_cxx_try_cpp "$LINENO"; then :
15902 # Broken: success on invalid input.
15903continue
15904else
15905 # Passes both tests.
15906ac_preproc_ok=:
15907break
15908fi
15909rm -f conftest.err conftest.$ac_ext
15910
15911done
15912# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15913rm -f conftest.err conftest.$ac_ext
15914if $ac_preproc_ok; then :
15915
15916else
15917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15918$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000015919as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
15920See \`config.log' for more details." "$LINENO" 5; }
cristyfd9dcd42010-08-08 18:07:02 +000015921fi
15922
15923ac_ext=c
15924ac_cpp='$CPP $CPPFLAGS'
15925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15927ac_compiler_gnu=$ac_cv_c_compiler_gnu
15928
15929else
15930 _lt_caught_CXX_error=yes
15931fi
cristy3ed852e2009-09-05 21:47:34 +000015932
15933ac_ext=cpp
15934ac_cpp='$CXXCPP $CPPFLAGS'
15935ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15936ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15937ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15938
15939archive_cmds_need_lc_CXX=no
15940allow_undefined_flag_CXX=
15941always_export_symbols_CXX=no
15942archive_expsym_cmds_CXX=
15943compiler_needs_object_CXX=no
15944export_dynamic_flag_spec_CXX=
15945hardcode_direct_CXX=no
15946hardcode_direct_absolute_CXX=no
15947hardcode_libdir_flag_spec_CXX=
15948hardcode_libdir_flag_spec_ld_CXX=
15949hardcode_libdir_separator_CXX=
15950hardcode_minus_L_CXX=no
15951hardcode_shlibpath_var_CXX=unsupported
15952hardcode_automatic_CXX=no
15953inherit_rpath_CXX=no
15954module_cmds_CXX=
15955module_expsym_cmds_CXX=
15956link_all_deplibs_CXX=unknown
15957old_archive_cmds_CXX=$old_archive_cmds
cristyfd9dcd42010-08-08 18:07:02 +000015958reload_flag_CXX=$reload_flag
15959reload_cmds_CXX=$reload_cmds
cristy3ed852e2009-09-05 21:47:34 +000015960no_undefined_flag_CXX=
15961whole_archive_flag_spec_CXX=
15962enable_shared_with_static_runtimes_CXX=no
15963
15964# Source file extension for C++ test sources.
15965ac_ext=cpp
15966
15967# Object file extension for compiled C++ test sources.
15968objext=o
15969objext_CXX=$objext
15970
15971# No sense in running all these tests if we already determined that
15972# the CXX compiler isn't working. Some variables (like enable_shared)
15973# are currently assumed to apply to all compilers on this platform,
15974# and will be corrupted by setting them based on a non-working compiler.
15975if test "$_lt_caught_CXX_error" != yes; then
15976 # Code to be used in simple compile tests
15977 lt_simple_compile_test_code="int some_variable = 0;"
15978
15979 # Code to be used in simple link tests
15980 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15981
15982 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15983
15984
15985
15986
15987
15988
15989# If no C compiler was specified, use CC.
15990LTCC=${LTCC-"$CC"}
15991
15992# If no C compiler flags were specified, use CFLAGS.
15993LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15994
15995# Allow CC to be a program name with arguments.
15996compiler=$CC
15997
15998
15999 # save warnings/boilerplate of simple test code
16000 ac_outfile=conftest.$ac_objext
16001echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16002eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16003_lt_compiler_boilerplate=`cat conftest.err`
16004$RM conftest*
16005
16006 ac_outfile=conftest.$ac_objext
16007echo "$lt_simple_link_test_code" >conftest.$ac_ext
16008eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16009_lt_linker_boilerplate=`cat conftest.err`
16010$RM -r conftest*
16011
16012
16013 # Allow CC to be a program name with arguments.
16014 lt_save_CC=$CC
16015 lt_save_LD=$LD
16016 lt_save_GCC=$GCC
16017 GCC=$GXX
16018 lt_save_with_gnu_ld=$with_gnu_ld
16019 lt_save_path_LD=$lt_cv_path_LD
16020 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16021 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16022 else
16023 $as_unset lt_cv_prog_gnu_ld
16024 fi
16025 if test -n "${lt_cv_path_LDCXX+set}"; then
16026 lt_cv_path_LD=$lt_cv_path_LDCXX
16027 else
16028 $as_unset lt_cv_path_LD
16029 fi
16030 test -z "${LDCXX+set}" || LD=$LDCXX
16031 CC=${CXX-"c++"}
16032 compiler=$CC
16033 compiler_CXX=$CC
16034 for cc_temp in $compiler""; do
16035 case $cc_temp in
16036 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16037 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16038 \-*) ;;
16039 *) break;;
16040 esac
16041done
cristyfd9dcd42010-08-08 18:07:02 +000016042cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000016043
16044
16045 if test -n "$compiler"; then
16046 # We don't want -fno-exception when compiling C++ code, so set the
16047 # no_builtin_flag separately
16048 if test "$GXX" = yes; then
16049 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16050 else
16051 lt_prog_compiler_no_builtin_flag_CXX=
16052 fi
16053
16054 if test "$GXX" = yes; then
16055 # Set up default GNU C++ configuration
16056
16057
16058
16059# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000016060if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016061 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16062else
16063 with_gnu_ld=no
16064fi
16065
16066ac_prog=ld
16067if test "$GCC" = yes; then
16068 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000016069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016070$as_echo_n "checking for ld used by $CC... " >&6; }
16071 case $host in
16072 *-*-mingw*)
16073 # gcc leaves a trailing carriage return which upsets mingw
16074 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16075 *)
16076 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16077 esac
16078 case $ac_prog in
16079 # Accept absolute paths.
16080 [\\/]* | ?:[\\/]*)
16081 re_direlt='/[^/][^/]*/\.\./'
16082 # Canonicalize the pathname of ld
16083 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16084 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16085 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16086 done
16087 test -z "$LD" && LD="$ac_prog"
16088 ;;
16089 "")
16090 # If it fails, then pretend we aren't using GCC.
16091 ac_prog=ld
16092 ;;
16093 *)
16094 # If it is relative, then search for the first ld in PATH.
16095 with_gnu_ld=unknown
16096 ;;
16097 esac
16098elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000016099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016100$as_echo_n "checking for GNU ld... " >&6; }
16101else
cristy8b350f62009-11-15 23:12:43 +000016102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016103$as_echo_n "checking for non-GNU ld... " >&6; }
16104fi
cristy8b350f62009-11-15 23:12:43 +000016105if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016106 $as_echo_n "(cached) " >&6
16107else
16108 if test -z "$LD"; then
16109 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16110 for ac_dir in $PATH; do
16111 IFS="$lt_save_ifs"
16112 test -z "$ac_dir" && ac_dir=.
16113 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16114 lt_cv_path_LD="$ac_dir/$ac_prog"
16115 # Check to see if the program is GNU ld. I'd rather use --version,
16116 # but apparently some variants of GNU ld only accept -v.
16117 # Break only if it was the GNU/non-GNU ld that we prefer.
16118 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16119 *GNU* | *'with BFD'*)
16120 test "$with_gnu_ld" != no && break
16121 ;;
16122 *)
16123 test "$with_gnu_ld" != yes && break
16124 ;;
16125 esac
16126 fi
16127 done
16128 IFS="$lt_save_ifs"
16129else
16130 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16131fi
16132fi
16133
16134LD="$lt_cv_path_LD"
16135if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000016136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000016137$as_echo "$LD" >&6; }
16138else
cristy8b350f62009-11-15 23:12:43 +000016139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016140$as_echo "no" >&6; }
16141fi
cristyf6fcb5d2010-09-24 01:19:13 +000016142test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
cristy8b350f62009-11-15 23:12:43 +000016143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016144$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016145if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016146 $as_echo_n "(cached) " >&6
16147else
16148 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16149case `$LD -v 2>&1 </dev/null` in
16150*GNU* | *'with BFD'*)
16151 lt_cv_prog_gnu_ld=yes
16152 ;;
16153*)
16154 lt_cv_prog_gnu_ld=no
16155 ;;
16156esac
16157fi
cristy8b350f62009-11-15 23:12:43 +000016158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016159$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16160with_gnu_ld=$lt_cv_prog_gnu_ld
16161
16162
16163
16164
16165
16166
16167
16168 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16169 # archiving commands below assume that GNU ld is being used.
16170 if test "$with_gnu_ld" = yes; then
16171 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16172 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'
16173
16174 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16175 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16176
16177 # If archive_cmds runs LD, not CC, wlarc should be empty
16178 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16179 # investigate it a little bit more. (MM)
16180 wlarc='${wl}'
16181
16182 # ancient GNU ld didn't support --whole-archive et. al.
16183 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16184 $GREP 'no-whole-archive' > /dev/null; then
16185 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16186 else
16187 whole_archive_flag_spec_CXX=
16188 fi
16189 else
16190 with_gnu_ld=no
16191 wlarc=
16192
16193 # A generic and very simple default shared library creation
16194 # command for GNU C++ for the case where it uses the native
16195 # linker, instead of GNU ld. If possible, this setting should
16196 # overridden to take advantage of the native linker features on
16197 # the platform it is being used on.
16198 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16199 fi
16200
16201 # Commands to make compiler produce verbose output that lists
16202 # what "hidden" libraries, object files and flags are used when
16203 # linking a shared library.
cristyfd9dcd42010-08-08 18:07:02 +000016204 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016205
16206 else
16207 GXX=no
16208 with_gnu_ld=no
16209 wlarc=
16210 fi
16211
16212 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000016213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016214$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16215 ld_shlibs_CXX=yes
16216 case $host_os in
16217 aix3*)
16218 # FIXME: insert proper C++ library support
16219 ld_shlibs_CXX=no
16220 ;;
16221 aix[4-9]*)
16222 if test "$host_cpu" = ia64; then
16223 # On IA64, the linker does run time linking by default, so we don't
16224 # have to do anything special.
16225 aix_use_runtimelinking=no
16226 exp_sym_flag='-Bexport'
16227 no_entry_flag=""
16228 else
16229 aix_use_runtimelinking=no
16230
16231 # Test if we are trying to use run time linking or normal
16232 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16233 # need to do runtime linking.
16234 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16235 for ld_flag in $LDFLAGS; do
16236 case $ld_flag in
16237 *-brtl*)
16238 aix_use_runtimelinking=yes
16239 break
16240 ;;
16241 esac
16242 done
16243 ;;
16244 esac
16245
16246 exp_sym_flag='-bexport'
16247 no_entry_flag='-bnoentry'
16248 fi
16249
16250 # When large executables or shared objects are built, AIX ld can
16251 # have problems creating the table of contents. If linking a library
16252 # or program results in "error TOC overflow" add -mminimal-toc to
16253 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16254 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16255
16256 archive_cmds_CXX=''
16257 hardcode_direct_CXX=yes
16258 hardcode_direct_absolute_CXX=yes
16259 hardcode_libdir_separator_CXX=':'
16260 link_all_deplibs_CXX=yes
16261 file_list_spec_CXX='${wl}-f,'
16262
16263 if test "$GXX" = yes; then
16264 case $host_os in aix4.[012]|aix4.[012].*)
16265 # We only want to do this on AIX 4.2 and lower, the check
16266 # below for broken collect2 doesn't work under 4.3+
16267 collect2name=`${CC} -print-prog-name=collect2`
16268 if test -f "$collect2name" &&
16269 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16270 then
16271 # We have reworked collect2
16272 :
16273 else
16274 # We have old collect2
16275 hardcode_direct_CXX=unsupported
16276 # It fails to find uninstalled libraries when the uninstalled
16277 # path is not listed in the libpath. Setting hardcode_minus_L
16278 # to unsupported forces relinking
16279 hardcode_minus_L_CXX=yes
16280 hardcode_libdir_flag_spec_CXX='-L$libdir'
16281 hardcode_libdir_separator_CXX=
16282 fi
16283 esac
16284 shared_flag='-shared'
16285 if test "$aix_use_runtimelinking" = yes; then
16286 shared_flag="$shared_flag "'${wl}-G'
16287 fi
16288 else
16289 # not using gcc
16290 if test "$host_cpu" = ia64; then
16291 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16292 # chokes on -Wl,-G. The following line is correct:
16293 shared_flag='-G'
16294 else
16295 if test "$aix_use_runtimelinking" = yes; then
16296 shared_flag='${wl}-G'
16297 else
16298 shared_flag='${wl}-bM:SRE'
16299 fi
16300 fi
16301 fi
16302
16303 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16304 # It seems that -bexpall does not export symbols beginning with
16305 # underscore (_), so it is better to generate a list of symbols to
16306 # export.
16307 always_export_symbols_CXX=yes
16308 if test "$aix_use_runtimelinking" = yes; then
16309 # Warning - without using the other runtime loading flags (-brtl),
16310 # -berok will link without error, but may produce a broken library.
16311 allow_undefined_flag_CXX='-berok'
16312 # Determine the default libpath from the value encoded in an empty
16313 # executable.
cristy8b350f62009-11-15 23:12:43 +000016314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016315/* end confdefs.h. */
16316
16317int
16318main ()
16319{
16320
16321 ;
16322 return 0;
16323}
16324_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016325if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016326
16327lt_aix_libpath_sed='
16328 /Import File Strings/,/^$/ {
16329 /^0/ {
16330 s/^0 *\(.*\)$/\1/
16331 p
16332 }
16333 }'
16334aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16335# Check for a 64-bit object if we didn't find anything.
16336if test -z "$aix_libpath"; then
16337 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16338fi
cristy3ed852e2009-09-05 21:47:34 +000016339fi
cristy8b350f62009-11-15 23:12:43 +000016340rm -f core conftest.err conftest.$ac_objext \
16341 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016342if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16343
16344 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16345
cristyfd9dcd42010-08-08 18:07:02 +000016346 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 +000016347 else
16348 if test "$host_cpu" = ia64; then
16349 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16350 allow_undefined_flag_CXX="-z nodefs"
16351 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"
16352 else
16353 # Determine the default libpath from the value encoded in an
16354 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000016355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016356/* end confdefs.h. */
16357
16358int
16359main ()
16360{
16361
16362 ;
16363 return 0;
16364}
16365_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016366if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016367
16368lt_aix_libpath_sed='
16369 /Import File Strings/,/^$/ {
16370 /^0/ {
16371 s/^0 *\(.*\)$/\1/
16372 p
16373 }
16374 }'
16375aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16376# Check for a 64-bit object if we didn't find anything.
16377if test -z "$aix_libpath"; then
16378 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16379fi
cristy3ed852e2009-09-05 21:47:34 +000016380fi
cristy8b350f62009-11-15 23:12:43 +000016381rm -f core conftest.err conftest.$ac_objext \
16382 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016383if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16384
16385 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16386 # Warning - without using the other run time loading flags,
16387 # -berok will link without error, but may produce a broken library.
16388 no_undefined_flag_CXX=' ${wl}-bernotok'
16389 allow_undefined_flag_CXX=' ${wl}-berok'
cristyfd9dcd42010-08-08 18:07:02 +000016390 if test "$with_gnu_ld" = yes; then
16391 # We only use this code for GNU lds that support --whole-archive.
16392 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16393 else
16394 # Exported symbols can be pulled into shared objects from archives
16395 whole_archive_flag_spec_CXX='$convenience'
16396 fi
cristy3ed852e2009-09-05 21:47:34 +000016397 archive_cmds_need_lc_CXX=yes
16398 # This is similar to how AIX traditionally builds its shared
16399 # libraries.
16400 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'
16401 fi
16402 fi
16403 ;;
16404
16405 beos*)
16406 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16407 allow_undefined_flag_CXX=unsupported
16408 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16409 # support --undefined. This deserves some investigation. FIXME
16410 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16411 else
16412 ld_shlibs_CXX=no
16413 fi
16414 ;;
16415
16416 chorus*)
16417 case $cc_basename in
16418 *)
16419 # FIXME: insert proper C++ library support
16420 ld_shlibs_CXX=no
16421 ;;
16422 esac
16423 ;;
16424
16425 cygwin* | mingw* | pw32* | cegcc*)
16426 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16427 # as there is no search path for DLLs.
16428 hardcode_libdir_flag_spec_CXX='-L$libdir'
cristyfd9dcd42010-08-08 18:07:02 +000016429 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
cristy3ed852e2009-09-05 21:47:34 +000016430 allow_undefined_flag_CXX=unsupported
16431 always_export_symbols_CXX=no
16432 enable_shared_with_static_runtimes_CXX=yes
16433
16434 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16435 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'
16436 # If the export-symbols file already is a .def file (1st line
16437 # is EXPORTS), use it as is; otherwise, prepend...
16438 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16439 cp $export_symbols $output_objdir/$soname.def;
16440 else
16441 echo EXPORTS > $output_objdir/$soname.def;
16442 cat $export_symbols >> $output_objdir/$soname.def;
16443 fi~
16444 $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'
16445 else
16446 ld_shlibs_CXX=no
16447 fi
16448 ;;
16449 darwin* | rhapsody*)
16450
16451
16452 archive_cmds_need_lc_CXX=no
16453 hardcode_direct_CXX=no
16454 hardcode_automatic_CXX=yes
16455 hardcode_shlibpath_var_CXX=unsupported
cristyfd9dcd42010-08-08 18:07:02 +000016456 if test "$lt_cv_ld_force_load" = "yes"; then
16457 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\"`'
16458 else
16459 whole_archive_flag_spec_CXX=''
16460 fi
cristy3ed852e2009-09-05 21:47:34 +000016461 link_all_deplibs_CXX=yes
16462 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16463 case $cc_basename in
16464 ifort*) _lt_dar_can_shared=yes ;;
16465 *) _lt_dar_can_shared=$GCC ;;
16466 esac
16467 if test "$_lt_dar_can_shared" = "yes"; then
cristyfd9dcd42010-08-08 18:07:02 +000016468 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000016469 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}"
16470 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16471 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}"
16472 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}"
16473 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16474 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}"
16475 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}"
16476 fi
16477
16478 else
16479 ld_shlibs_CXX=no
16480 fi
16481
16482 ;;
16483
16484 dgux*)
16485 case $cc_basename in
16486 ec++*)
16487 # FIXME: insert proper C++ library support
16488 ld_shlibs_CXX=no
16489 ;;
16490 ghcx*)
16491 # Green Hills C++ Compiler
16492 # FIXME: insert proper C++ library support
16493 ld_shlibs_CXX=no
16494 ;;
16495 *)
16496 # FIXME: insert proper C++ library support
16497 ld_shlibs_CXX=no
16498 ;;
16499 esac
16500 ;;
16501
16502 freebsd[12]*)
16503 # C++ shared libraries reported to be fairly broken before
16504 # switch to ELF
16505 ld_shlibs_CXX=no
16506 ;;
16507
16508 freebsd-elf*)
16509 archive_cmds_need_lc_CXX=no
16510 ;;
16511
16512 freebsd* | dragonfly*)
16513 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16514 # conventions
16515 ld_shlibs_CXX=yes
16516 ;;
16517
16518 gnu*)
16519 ;;
16520
cristyfd9dcd42010-08-08 18:07:02 +000016521 haiku*)
16522 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16523 link_all_deplibs_CXX=yes
16524 ;;
16525
cristy3ed852e2009-09-05 21:47:34 +000016526 hpux9*)
16527 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16528 hardcode_libdir_separator_CXX=:
16529 export_dynamic_flag_spec_CXX='${wl}-E'
16530 hardcode_direct_CXX=yes
16531 hardcode_minus_L_CXX=yes # Not in the search PATH,
16532 # but as the default
16533 # location of the library.
16534
16535 case $cc_basename in
16536 CC*)
16537 # FIXME: insert proper C++ library support
16538 ld_shlibs_CXX=no
16539 ;;
16540 aCC*)
16541 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'
16542 # Commands to make compiler produce verbose output that lists
16543 # what "hidden" libraries, object files and flags are used when
16544 # linking a shared library.
16545 #
16546 # There doesn't appear to be a way to prevent this compiler from
16547 # explicitly linking system object files so we need to strip them
16548 # from the output so that they don't get included in the library
16549 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016550 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 +000016551 ;;
16552 *)
16553 if test "$GXX" = yes; then
16554 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'
16555 else
16556 # FIXME: insert proper C++ library support
16557 ld_shlibs_CXX=no
16558 fi
16559 ;;
16560 esac
16561 ;;
16562
16563 hpux10*|hpux11*)
16564 if test $with_gnu_ld = no; then
16565 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16566 hardcode_libdir_separator_CXX=:
16567
16568 case $host_cpu in
16569 hppa*64*|ia64*)
16570 ;;
16571 *)
16572 export_dynamic_flag_spec_CXX='${wl}-E'
16573 ;;
16574 esac
16575 fi
16576 case $host_cpu in
16577 hppa*64*|ia64*)
16578 hardcode_direct_CXX=no
16579 hardcode_shlibpath_var_CXX=no
16580 ;;
16581 *)
16582 hardcode_direct_CXX=yes
16583 hardcode_direct_absolute_CXX=yes
16584 hardcode_minus_L_CXX=yes # Not in the search PATH,
16585 # but as the default
16586 # location of the library.
16587 ;;
16588 esac
16589
16590 case $cc_basename in
16591 CC*)
16592 # FIXME: insert proper C++ library support
16593 ld_shlibs_CXX=no
16594 ;;
16595 aCC*)
16596 case $host_cpu in
16597 hppa*64*)
16598 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16599 ;;
16600 ia64*)
16601 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16602 ;;
16603 *)
16604 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16605 ;;
16606 esac
16607 # Commands to make compiler produce verbose output that lists
16608 # what "hidden" libraries, object files and flags are used when
16609 # linking a shared library.
16610 #
16611 # There doesn't appear to be a way to prevent this compiler from
16612 # explicitly linking system object files so we need to strip them
16613 # from the output so that they don't get included in the library
16614 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016615 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 +000016616 ;;
16617 *)
16618 if test "$GXX" = yes; then
16619 if test $with_gnu_ld = no; then
16620 case $host_cpu in
16621 hppa*64*)
16622 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16623 ;;
16624 ia64*)
16625 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16626 ;;
16627 *)
16628 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'
16629 ;;
16630 esac
16631 fi
16632 else
16633 # FIXME: insert proper C++ library support
16634 ld_shlibs_CXX=no
16635 fi
16636 ;;
16637 esac
16638 ;;
16639
16640 interix[3-9]*)
16641 hardcode_direct_CXX=no
16642 hardcode_shlibpath_var_CXX=no
16643 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16644 export_dynamic_flag_spec_CXX='${wl}-E'
16645 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16646 # Instead, shared libraries are loaded at an image base (0x10000000 by
16647 # default) and relocated if they conflict, which is a slow very memory
16648 # consuming and fragmenting process. To avoid this, we pick a random,
16649 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16650 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16651 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'
16652 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'
16653 ;;
16654 irix5* | irix6*)
16655 case $cc_basename in
16656 CC*)
16657 # SGI C++
cristyfd9dcd42010-08-08 18:07:02 +000016658 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 +000016659
16660 # Archives containing C++ object files must be created using
16661 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16662 # necessary to make sure instantiated templates are included
16663 # in the archive.
16664 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16665 ;;
16666 *)
16667 if test "$GXX" = yes; then
16668 if test "$with_gnu_ld" = no; then
cristyfd9dcd42010-08-08 18:07:02 +000016669 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 +000016670 else
cristyfd9dcd42010-08-08 18:07:02 +000016671 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 +000016672 fi
16673 fi
16674 link_all_deplibs_CXX=yes
16675 ;;
16676 esac
16677 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16678 hardcode_libdir_separator_CXX=:
16679 inherit_rpath_CXX=yes
16680 ;;
16681
cristyfd9dcd42010-08-08 18:07:02 +000016682 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016683 case $cc_basename in
16684 KCC*)
16685 # Kuck and Associates, Inc. (KAI) C++ Compiler
16686
16687 # KCC will only create a shared library if the output file
16688 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16689 # to its proper name (with version) after linking.
16690 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'
16691 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'
16692 # Commands to make compiler produce verbose output that lists
16693 # what "hidden" libraries, object files and flags are used when
16694 # linking a shared library.
16695 #
16696 # There doesn't appear to be a way to prevent this compiler from
16697 # explicitly linking system object files so we need to strip them
16698 # from the output so that they don't get included in the library
16699 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016700 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 +000016701
16702 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16703 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16704
16705 # Archives containing C++ object files must be created using
16706 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16707 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16708 ;;
16709 icpc* | ecpc* )
16710 # Intel C++
16711 with_gnu_ld=yes
16712 # version 8.0 and above of icpc choke on multiply defined symbols
16713 # if we add $predep_objects and $postdep_objects, however 7.1 and
16714 # earlier do not add the objects themselves.
16715 case `$CC -V 2>&1` in
16716 *"Version 7."*)
16717 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16718 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'
16719 ;;
16720 *) # Version 8.0 or newer
16721 tmp_idyn=
16722 case $host_cpu in
16723 ia64*) tmp_idyn=' -i_dynamic';;
16724 esac
16725 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16726 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'
16727 ;;
16728 esac
16729 archive_cmds_need_lc_CXX=no
16730 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16731 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16732 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16733 ;;
16734 pgCC* | pgcpp*)
16735 # Portland Group C++ compiler
16736 case `$CC -V` in
cristyfd9dcd42010-08-08 18:07:02 +000016737 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy3ed852e2009-09-05 21:47:34 +000016738 prelink_cmds_CXX='tpldir=Template.dir~
16739 rm -rf $tpldir~
16740 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristyfd9dcd42010-08-08 18:07:02 +000016741 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy3ed852e2009-09-05 21:47:34 +000016742 old_archive_cmds_CXX='tpldir=Template.dir~
16743 rm -rf $tpldir~
16744 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristyfd9dcd42010-08-08 18:07:02 +000016745 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy3ed852e2009-09-05 21:47:34 +000016746 $RANLIB $oldlib'
16747 archive_cmds_CXX='tpldir=Template.dir~
16748 rm -rf $tpldir~
16749 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristyfd9dcd42010-08-08 18:07:02 +000016750 $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 +000016751 archive_expsym_cmds_CXX='tpldir=Template.dir~
16752 rm -rf $tpldir~
16753 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristyfd9dcd42010-08-08 18:07:02 +000016754 $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 +000016755 ;;
cristyfd9dcd42010-08-08 18:07:02 +000016756 *) # Version 6 and above use weak symbols
cristy3ed852e2009-09-05 21:47:34 +000016757 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16758 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'
16759 ;;
16760 esac
16761
16762 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16763 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristyfd9dcd42010-08-08 18:07:02 +000016764 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 +000016765 ;;
16766 cxx*)
16767 # Compaq C++
16768 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16769 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'
16770
16771 runpath_var=LD_RUN_PATH
16772 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16773 hardcode_libdir_separator_CXX=:
16774
16775 # Commands to make compiler produce verbose output that lists
16776 # what "hidden" libraries, object files and flags are used when
16777 # linking a shared library.
16778 #
16779 # There doesn't appear to be a way to prevent this compiler from
16780 # explicitly linking system object files so we need to strip them
16781 # from the output so that they don't get included in the library
16782 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016783 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 +000016784 ;;
cristyfd9dcd42010-08-08 18:07:02 +000016785 xl* | mpixl* | bgxl*)
cristy3ed852e2009-09-05 21:47:34 +000016786 # IBM XL 8.0 on PPC, with GNU ld
16787 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16788 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16789 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16790 if test "x$supports_anon_versioning" = xyes; then
16791 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16792 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16793 echo "local: *; };" >> $output_objdir/$libname.ver~
16794 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16795 fi
16796 ;;
16797 *)
16798 case `$CC -V 2>&1 | sed 5q` in
16799 *Sun\ C*)
16800 # Sun C++ 5.9
16801 no_undefined_flag_CXX=' -zdefs'
16802 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16803 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'
16804 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristyfd9dcd42010-08-08 18:07:02 +000016805 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 +000016806 compiler_needs_object_CXX=yes
16807
16808 # Not sure whether something based on
16809 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16810 # would be better.
cristyfd9dcd42010-08-08 18:07:02 +000016811 output_verbose_link_cmd='func_echo_all'
cristy3ed852e2009-09-05 21:47:34 +000016812
16813 # Archives containing C++ object files must be created using
16814 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16815 # necessary to make sure instantiated templates are included
16816 # in the archive.
16817 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16818 ;;
16819 esac
16820 ;;
16821 esac
16822 ;;
16823
16824 lynxos*)
16825 # FIXME: insert proper C++ library support
16826 ld_shlibs_CXX=no
16827 ;;
16828
16829 m88k*)
16830 # FIXME: insert proper C++ library support
16831 ld_shlibs_CXX=no
16832 ;;
16833
16834 mvs*)
16835 case $cc_basename in
16836 cxx*)
16837 # FIXME: insert proper C++ library support
16838 ld_shlibs_CXX=no
16839 ;;
16840 *)
16841 # FIXME: insert proper C++ library support
16842 ld_shlibs_CXX=no
16843 ;;
16844 esac
16845 ;;
16846
16847 netbsd*)
16848 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16849 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16850 wlarc=
16851 hardcode_libdir_flag_spec_CXX='-R$libdir'
16852 hardcode_direct_CXX=yes
16853 hardcode_shlibpath_var_CXX=no
16854 fi
16855 # Workaround some broken pre-1.5 toolchains
16856 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16857 ;;
16858
16859 *nto* | *qnx*)
16860 ld_shlibs_CXX=yes
16861 ;;
16862
16863 openbsd2*)
16864 # C++ shared libraries are fairly broken
16865 ld_shlibs_CXX=no
16866 ;;
16867
16868 openbsd*)
16869 if test -f /usr/libexec/ld.so; then
16870 hardcode_direct_CXX=yes
16871 hardcode_shlibpath_var_CXX=no
16872 hardcode_direct_absolute_CXX=yes
16873 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16874 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16875 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16876 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16877 export_dynamic_flag_spec_CXX='${wl}-E'
16878 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16879 fi
cristyfd9dcd42010-08-08 18:07:02 +000016880 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000016881 else
16882 ld_shlibs_CXX=no
16883 fi
16884 ;;
16885
16886 osf3* | osf4* | osf5*)
16887 case $cc_basename in
16888 KCC*)
16889 # Kuck and Associates, Inc. (KAI) C++ Compiler
16890
16891 # KCC will only create a shared library if the output file
16892 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16893 # to its proper name (with version) after linking.
16894 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'
16895
16896 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16897 hardcode_libdir_separator_CXX=:
16898
16899 # Archives containing C++ object files must be created using
16900 # the KAI C++ compiler.
16901 case $host in
16902 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16903 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16904 esac
16905 ;;
16906 RCC*)
16907 # Rational C++ 2.4.1
16908 # FIXME: insert proper C++ library support
16909 ld_shlibs_CXX=no
16910 ;;
16911 cxx*)
16912 case $host in
16913 osf3*)
16914 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristyfd9dcd42010-08-08 18:07:02 +000016915 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 +000016916 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16917 ;;
16918 *)
16919 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristyfd9dcd42010-08-08 18:07:02 +000016920 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 +000016921 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16922 echo "-hidden">> $lib.exp~
cristyfd9dcd42010-08-08 18:07:02 +000016923 $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 +000016924 $RM $lib.exp'
16925 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16926 ;;
16927 esac
16928
16929 hardcode_libdir_separator_CXX=:
16930
16931 # Commands to make compiler produce verbose output that lists
16932 # what "hidden" libraries, object files and flags are used when
16933 # linking a shared library.
16934 #
16935 # There doesn't appear to be a way to prevent this compiler from
16936 # explicitly linking system object files so we need to strip them
16937 # from the output so that they don't get included in the library
16938 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016939 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 +000016940 ;;
16941 *)
16942 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16943 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16944 case $host in
16945 osf3*)
cristyfd9dcd42010-08-08 18:07:02 +000016946 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 +000016947 ;;
16948 *)
cristyfd9dcd42010-08-08 18:07:02 +000016949 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 +000016950 ;;
16951 esac
16952
16953 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16954 hardcode_libdir_separator_CXX=:
16955
16956 # Commands to make compiler produce verbose output that lists
16957 # what "hidden" libraries, object files and flags are used when
16958 # linking a shared library.
cristyfd9dcd42010-08-08 18:07:02 +000016959 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016960
16961 else
16962 # FIXME: insert proper C++ library support
16963 ld_shlibs_CXX=no
16964 fi
16965 ;;
16966 esac
16967 ;;
16968
16969 psos*)
16970 # FIXME: insert proper C++ library support
16971 ld_shlibs_CXX=no
16972 ;;
16973
16974 sunos4*)
16975 case $cc_basename in
16976 CC*)
16977 # Sun C++ 4.x
16978 # FIXME: insert proper C++ library support
16979 ld_shlibs_CXX=no
16980 ;;
16981 lcc*)
16982 # Lucid
16983 # FIXME: insert proper C++ library support
16984 ld_shlibs_CXX=no
16985 ;;
16986 *)
16987 # FIXME: insert proper C++ library support
16988 ld_shlibs_CXX=no
16989 ;;
16990 esac
16991 ;;
16992
16993 solaris*)
16994 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000016995 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000016996 # Sun C++ 4.2, 5.x and Centerline C++
16997 archive_cmds_need_lc_CXX=yes
16998 no_undefined_flag_CXX=' -zdefs'
16999 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17000 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17001 $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'
17002
17003 hardcode_libdir_flag_spec_CXX='-R$libdir'
17004 hardcode_shlibpath_var_CXX=no
17005 case $host_os in
17006 solaris2.[0-5] | solaris2.[0-5].*) ;;
17007 *)
17008 # The compiler driver will combine and reorder linker options,
17009 # but understands `-z linker_flag'.
17010 # Supported since Solaris 2.6 (maybe 2.5.1?)
17011 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17012 ;;
17013 esac
17014 link_all_deplibs_CXX=yes
17015
cristyfd9dcd42010-08-08 18:07:02 +000017016 output_verbose_link_cmd='func_echo_all'
cristy3ed852e2009-09-05 21:47:34 +000017017
17018 # Archives containing C++ object files must be created using
17019 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17020 # necessary to make sure instantiated templates are included
17021 # in the archive.
17022 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17023 ;;
17024 gcx*)
17025 # Green Hills C++ Compiler
17026 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17027
17028 # The C++ compiler must be used to create the archive.
17029 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17030 ;;
17031 *)
17032 # GNU C++ compiler with Solaris linker
17033 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17034 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17035 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17036 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17037 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17038 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17039
17040 # Commands to make compiler produce verbose output that lists
17041 # what "hidden" libraries, object files and flags are used when
17042 # linking a shared library.
cristyfd9dcd42010-08-08 18:07:02 +000017043 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017044 else
17045 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17046 # platform.
17047 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17048 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17049 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17050
17051 # Commands to make compiler produce verbose output that lists
17052 # what "hidden" libraries, object files and flags are used when
17053 # linking a shared library.
cristyfd9dcd42010-08-08 18:07:02 +000017054 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017055 fi
17056
17057 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17058 case $host_os in
17059 solaris2.[0-5] | solaris2.[0-5].*) ;;
17060 *)
17061 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17062 ;;
17063 esac
17064 fi
17065 ;;
17066 esac
17067 ;;
17068
17069 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17070 no_undefined_flag_CXX='${wl}-z,text'
17071 archive_cmds_need_lc_CXX=no
17072 hardcode_shlibpath_var_CXX=no
17073 runpath_var='LD_RUN_PATH'
17074
17075 case $cc_basename in
17076 CC*)
17077 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17078 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17079 ;;
17080 *)
17081 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17082 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17083 ;;
17084 esac
17085 ;;
17086
17087 sysv5* | sco3.2v5* | sco5v6*)
17088 # Note: We can NOT use -z defs as we might desire, because we do not
17089 # link with -lc, and that would cause any symbols used from libc to
17090 # always be unresolved, which means just about no library would
17091 # ever link correctly. If we're not using GNU ld we use -z text
17092 # though, which does catch some bad symbols but isn't as heavy-handed
17093 # as -z defs.
17094 no_undefined_flag_CXX='${wl}-z,text'
17095 allow_undefined_flag_CXX='${wl}-z,nodefs'
17096 archive_cmds_need_lc_CXX=no
17097 hardcode_shlibpath_var_CXX=no
17098 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17099 hardcode_libdir_separator_CXX=':'
17100 link_all_deplibs_CXX=yes
17101 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17102 runpath_var='LD_RUN_PATH'
17103
17104 case $cc_basename in
17105 CC*)
17106 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17107 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 +000017108 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17109 '"$old_archive_cmds_CXX"
17110 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17111 '"$reload_cmds_CXX"
cristy3ed852e2009-09-05 21:47:34 +000017112 ;;
17113 *)
17114 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17115 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17116 ;;
17117 esac
17118 ;;
17119
17120 tandem*)
17121 case $cc_basename in
17122 NCC*)
17123 # NonStop-UX NCC 3.20
17124 # FIXME: insert proper C++ library support
17125 ld_shlibs_CXX=no
17126 ;;
17127 *)
17128 # FIXME: insert proper C++ library support
17129 ld_shlibs_CXX=no
17130 ;;
17131 esac
17132 ;;
17133
17134 vxworks*)
17135 # FIXME: insert proper C++ library support
17136 ld_shlibs_CXX=no
17137 ;;
17138
17139 *)
17140 # FIXME: insert proper C++ library support
17141 ld_shlibs_CXX=no
17142 ;;
17143 esac
17144
cristy8b350f62009-11-15 23:12:43 +000017145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017146$as_echo "$ld_shlibs_CXX" >&6; }
17147 test "$ld_shlibs_CXX" = no && can_build_shared=no
17148
17149 GCC_CXX="$GXX"
17150 LD_CXX="$LD"
17151
17152 ## CAVEAT EMPTOR:
17153 ## There is no encapsulation within the following macros, do not change
17154 ## the running order or otherwise move them around unless you know exactly
17155 ## what you are doing...
17156 # Dependencies to place before and after the object being linked:
17157predep_objects_CXX=
17158postdep_objects_CXX=
17159predeps_CXX=
17160postdeps_CXX=
17161compiler_lib_search_path_CXX=
17162
17163cat > conftest.$ac_ext <<_LT_EOF
17164class Foo
17165{
17166public:
17167 Foo (void) { a = 0; }
17168private:
17169 int a;
17170};
17171_LT_EOF
17172
cristy8b350f62009-11-15 23:12:43 +000017173if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017174 (eval $ac_compile) 2>&5
17175 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17177 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000017178 # Parse the compiler output and extract the necessary
17179 # objects, libraries and library flags.
17180
17181 # Sentinel used to keep track of whether or not we are before
17182 # the conftest object file.
17183 pre_test_object_deps_done=no
17184
17185 for p in `eval "$output_verbose_link_cmd"`; do
17186 case $p in
17187
17188 -L* | -R* | -l*)
17189 # Some compilers place space between "-{L,R}" and the path.
17190 # Remove the space.
17191 if test $p = "-L" ||
17192 test $p = "-R"; then
17193 prev=$p
17194 continue
17195 else
17196 prev=
17197 fi
17198
17199 if test "$pre_test_object_deps_done" = no; then
17200 case $p in
17201 -L* | -R*)
17202 # Internal compiler library paths should come after those
17203 # provided the user. The postdeps already come after the
17204 # user supplied libs so there is no need to process them.
17205 if test -z "$compiler_lib_search_path_CXX"; then
17206 compiler_lib_search_path_CXX="${prev}${p}"
17207 else
17208 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17209 fi
17210 ;;
17211 # The "-l" case would never come before the object being
17212 # linked, so don't bother handling this case.
17213 esac
17214 else
17215 if test -z "$postdeps_CXX"; then
17216 postdeps_CXX="${prev}${p}"
17217 else
17218 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17219 fi
17220 fi
17221 ;;
17222
17223 *.$objext)
17224 # This assumes that the test object file only shows up
17225 # once in the compiler output.
17226 if test "$p" = "conftest.$objext"; then
17227 pre_test_object_deps_done=yes
17228 continue
17229 fi
17230
17231 if test "$pre_test_object_deps_done" = no; then
17232 if test -z "$predep_objects_CXX"; then
17233 predep_objects_CXX="$p"
17234 else
17235 predep_objects_CXX="$predep_objects_CXX $p"
17236 fi
17237 else
17238 if test -z "$postdep_objects_CXX"; then
17239 postdep_objects_CXX="$p"
17240 else
17241 postdep_objects_CXX="$postdep_objects_CXX $p"
17242 fi
17243 fi
17244 ;;
17245
17246 *) ;; # Ignore the rest.
17247
17248 esac
17249 done
17250
17251 # Clean up.
17252 rm -f a.out a.exe
17253else
17254 echo "libtool.m4: error: problem compiling CXX test program"
17255fi
17256
17257$RM -f confest.$objext
17258
17259# PORTME: override above test on systems where it is broken
17260case $host_os in
17261interix[3-9]*)
17262 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17263 # hack all around it, let's just trust "g++" to DTRT.
17264 predep_objects_CXX=
17265 postdep_objects_CXX=
17266 postdeps_CXX=
17267 ;;
17268
17269linux*)
17270 case `$CC -V 2>&1 | sed 5q` in
17271 *Sun\ C*)
17272 # Sun C++ 5.9
17273
17274 # The more standards-conforming stlport4 library is
17275 # incompatible with the Cstd library. Avoid specifying
17276 # it if it's in CXXFLAGS. Ignore libCrun as
17277 # -library=stlport4 depends on it.
17278 case " $CXX $CXXFLAGS " in
17279 *" -library=stlport4 "*)
17280 solaris_use_stlport4=yes
17281 ;;
17282 esac
17283
17284 if test "$solaris_use_stlport4" != yes; then
17285 postdeps_CXX='-library=Cstd -library=Crun'
17286 fi
17287 ;;
17288 esac
17289 ;;
17290
17291solaris*)
17292 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000017293 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000017294 # The more standards-conforming stlport4 library is
17295 # incompatible with the Cstd library. Avoid specifying
17296 # it if it's in CXXFLAGS. Ignore libCrun as
17297 # -library=stlport4 depends on it.
17298 case " $CXX $CXXFLAGS " in
17299 *" -library=stlport4 "*)
17300 solaris_use_stlport4=yes
17301 ;;
17302 esac
17303
17304 # Adding this requires a known-good setup of shared libraries for
17305 # Sun compiler versions before 5.6, else PIC objects from an old
17306 # archive will be linked into the output, leading to subtle bugs.
17307 if test "$solaris_use_stlport4" != yes; then
17308 postdeps_CXX='-library=Cstd -library=Crun'
17309 fi
17310 ;;
17311 esac
17312 ;;
17313esac
17314
17315
17316case " $postdeps_CXX " in
17317*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17318esac
17319 compiler_lib_search_dirs_CXX=
17320if test -n "${compiler_lib_search_path_CXX}"; then
17321 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17322fi
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
17354 lt_prog_compiler_wl_CXX=
17355lt_prog_compiler_pic_CXX=
17356lt_prog_compiler_static_CXX=
17357
cristy8b350f62009-11-15 23:12:43 +000017358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000017359$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17360
17361 # C++ specific cases for pic, static, wl, etc.
17362 if test "$GXX" = yes; then
17363 lt_prog_compiler_wl_CXX='-Wl,'
17364 lt_prog_compiler_static_CXX='-static'
17365
17366 case $host_os in
17367 aix*)
17368 # All AIX code is PIC.
17369 if test "$host_cpu" = ia64; then
17370 # AIX 5 now supports IA64 processor
17371 lt_prog_compiler_static_CXX='-Bstatic'
17372 fi
17373 ;;
17374
17375 amigaos*)
17376 case $host_cpu in
17377 powerpc)
17378 # see comment about AmigaOS4 .so support
17379 lt_prog_compiler_pic_CXX='-fPIC'
17380 ;;
17381 m68k)
17382 # FIXME: we need at least 68020 code to build shared libraries, but
17383 # adding the `-m68020' flag to GCC prevents building anything better,
17384 # like `-m68040'.
17385 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17386 ;;
17387 esac
17388 ;;
17389
17390 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17391 # PIC is the default for these OSes.
17392 ;;
17393 mingw* | cygwin* | os2* | pw32* | cegcc*)
17394 # This hack is so that the source file can tell whether it is being
17395 # built for inclusion in a dll (and should export symbols for example).
17396 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17397 # (--disable-auto-import) libraries
17398 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17399 ;;
17400 darwin* | rhapsody*)
17401 # PIC is the default on this platform
17402 # Common symbols not allowed in MH_DYLIB files
17403 lt_prog_compiler_pic_CXX='-fno-common'
17404 ;;
17405 *djgpp*)
17406 # DJGPP does not support shared libraries at all
17407 lt_prog_compiler_pic_CXX=
17408 ;;
cristyfd9dcd42010-08-08 18:07:02 +000017409 haiku*)
17410 # PIC is the default for Haiku.
17411 # The "-static" flag exists, but is broken.
17412 lt_prog_compiler_static_CXX=
17413 ;;
cristy3ed852e2009-09-05 21:47:34 +000017414 interix[3-9]*)
17415 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17416 # Instead, we relocate shared libraries at runtime.
17417 ;;
17418 sysv4*MP*)
17419 if test -d /usr/nec; then
17420 lt_prog_compiler_pic_CXX=-Kconform_pic
17421 fi
17422 ;;
17423 hpux*)
17424 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17425 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17426 # sets the default TLS model and affects inlining.
17427 case $host_cpu in
17428 hppa*64*)
17429 ;;
17430 *)
17431 lt_prog_compiler_pic_CXX='-fPIC'
17432 ;;
17433 esac
17434 ;;
17435 *qnx* | *nto*)
17436 # QNX uses GNU C++, but need to define -shared option too, otherwise
17437 # it will coredump.
17438 lt_prog_compiler_pic_CXX='-fPIC -shared'
17439 ;;
17440 *)
17441 lt_prog_compiler_pic_CXX='-fPIC'
17442 ;;
17443 esac
17444 else
17445 case $host_os in
17446 aix[4-9]*)
17447 # All AIX code is PIC.
17448 if test "$host_cpu" = ia64; then
17449 # AIX 5 now supports IA64 processor
17450 lt_prog_compiler_static_CXX='-Bstatic'
17451 else
17452 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17453 fi
17454 ;;
17455 chorus*)
17456 case $cc_basename in
17457 cxch68*)
17458 # Green Hills C++ Compiler
17459 # _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"
17460 ;;
17461 esac
17462 ;;
17463 dgux*)
17464 case $cc_basename in
17465 ec++*)
17466 lt_prog_compiler_pic_CXX='-KPIC'
17467 ;;
17468 ghcx*)
17469 # Green Hills C++ Compiler
17470 lt_prog_compiler_pic_CXX='-pic'
17471 ;;
17472 *)
17473 ;;
17474 esac
17475 ;;
17476 freebsd* | dragonfly*)
17477 # FreeBSD uses GNU C++
17478 ;;
17479 hpux9* | hpux10* | hpux11*)
17480 case $cc_basename in
17481 CC*)
17482 lt_prog_compiler_wl_CXX='-Wl,'
17483 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17484 if test "$host_cpu" != ia64; then
17485 lt_prog_compiler_pic_CXX='+Z'
17486 fi
17487 ;;
17488 aCC*)
17489 lt_prog_compiler_wl_CXX='-Wl,'
17490 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17491 case $host_cpu in
17492 hppa*64*|ia64*)
17493 # +Z the default
17494 ;;
17495 *)
17496 lt_prog_compiler_pic_CXX='+Z'
17497 ;;
17498 esac
17499 ;;
17500 *)
17501 ;;
17502 esac
17503 ;;
17504 interix*)
17505 # This is c89, which is MS Visual C++ (no shared libs)
17506 # Anyone wants to do a port?
17507 ;;
17508 irix5* | irix6* | nonstopux*)
17509 case $cc_basename in
17510 CC*)
17511 lt_prog_compiler_wl_CXX='-Wl,'
17512 lt_prog_compiler_static_CXX='-non_shared'
17513 # CC pic flag -KPIC is the default.
17514 ;;
17515 *)
17516 ;;
17517 esac
17518 ;;
cristyfd9dcd42010-08-08 18:07:02 +000017519 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017520 case $cc_basename in
17521 KCC*)
17522 # KAI C++ Compiler
17523 lt_prog_compiler_wl_CXX='--backend -Wl,'
17524 lt_prog_compiler_pic_CXX='-fPIC'
17525 ;;
17526 ecpc* )
17527 # old Intel C++ for x86_64 which still supported -KPIC.
17528 lt_prog_compiler_wl_CXX='-Wl,'
17529 lt_prog_compiler_pic_CXX='-KPIC'
17530 lt_prog_compiler_static_CXX='-static'
17531 ;;
17532 icpc* )
17533 # Intel C++, used to be incompatible with GCC.
17534 # ICC 10 doesn't accept -KPIC any more.
17535 lt_prog_compiler_wl_CXX='-Wl,'
17536 lt_prog_compiler_pic_CXX='-fPIC'
17537 lt_prog_compiler_static_CXX='-static'
17538 ;;
17539 pgCC* | pgcpp*)
17540 # Portland Group C++ compiler
17541 lt_prog_compiler_wl_CXX='-Wl,'
17542 lt_prog_compiler_pic_CXX='-fpic'
17543 lt_prog_compiler_static_CXX='-Bstatic'
17544 ;;
17545 cxx*)
17546 # Compaq C++
17547 # Make sure the PIC flag is empty. It appears that all Alpha
17548 # Linux and Compaq Tru64 Unix objects are PIC.
17549 lt_prog_compiler_pic_CXX=
17550 lt_prog_compiler_static_CXX='-non_shared'
17551 ;;
cristyfd9dcd42010-08-08 18:07:02 +000017552 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17553 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy3ed852e2009-09-05 21:47:34 +000017554 lt_prog_compiler_wl_CXX='-Wl,'
17555 lt_prog_compiler_pic_CXX='-qpic'
17556 lt_prog_compiler_static_CXX='-qstaticlink'
17557 ;;
17558 *)
17559 case `$CC -V 2>&1 | sed 5q` in
17560 *Sun\ C*)
17561 # Sun C++ 5.9
17562 lt_prog_compiler_pic_CXX='-KPIC'
17563 lt_prog_compiler_static_CXX='-Bstatic'
17564 lt_prog_compiler_wl_CXX='-Qoption ld '
17565 ;;
17566 esac
17567 ;;
17568 esac
17569 ;;
17570 lynxos*)
17571 ;;
17572 m88k*)
17573 ;;
17574 mvs*)
17575 case $cc_basename in
17576 cxx*)
17577 lt_prog_compiler_pic_CXX='-W c,exportall'
17578 ;;
17579 *)
17580 ;;
17581 esac
17582 ;;
17583 netbsd*)
17584 ;;
17585 *qnx* | *nto*)
17586 # QNX uses GNU C++, but need to define -shared option too, otherwise
17587 # it will coredump.
17588 lt_prog_compiler_pic_CXX='-fPIC -shared'
17589 ;;
17590 osf3* | osf4* | osf5*)
17591 case $cc_basename in
17592 KCC*)
17593 lt_prog_compiler_wl_CXX='--backend -Wl,'
17594 ;;
17595 RCC*)
17596 # Rational C++ 2.4.1
17597 lt_prog_compiler_pic_CXX='-pic'
17598 ;;
17599 cxx*)
17600 # Digital/Compaq C++
17601 lt_prog_compiler_wl_CXX='-Wl,'
17602 # Make sure the PIC flag is empty. It appears that all Alpha
17603 # Linux and Compaq Tru64 Unix objects are PIC.
17604 lt_prog_compiler_pic_CXX=
17605 lt_prog_compiler_static_CXX='-non_shared'
17606 ;;
17607 *)
17608 ;;
17609 esac
17610 ;;
17611 psos*)
17612 ;;
17613 solaris*)
17614 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000017615 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000017616 # Sun C++ 4.2, 5.x and Centerline C++
17617 lt_prog_compiler_pic_CXX='-KPIC'
17618 lt_prog_compiler_static_CXX='-Bstatic'
17619 lt_prog_compiler_wl_CXX='-Qoption ld '
17620 ;;
17621 gcx*)
17622 # Green Hills C++ Compiler
17623 lt_prog_compiler_pic_CXX='-PIC'
17624 ;;
17625 *)
17626 ;;
17627 esac
17628 ;;
17629 sunos4*)
17630 case $cc_basename in
17631 CC*)
17632 # Sun C++ 4.x
17633 lt_prog_compiler_pic_CXX='-pic'
17634 lt_prog_compiler_static_CXX='-Bstatic'
17635 ;;
17636 lcc*)
17637 # Lucid
17638 lt_prog_compiler_pic_CXX='-pic'
17639 ;;
17640 *)
17641 ;;
17642 esac
17643 ;;
17644 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17645 case $cc_basename in
17646 CC*)
17647 lt_prog_compiler_wl_CXX='-Wl,'
17648 lt_prog_compiler_pic_CXX='-KPIC'
17649 lt_prog_compiler_static_CXX='-Bstatic'
17650 ;;
17651 esac
17652 ;;
17653 tandem*)
17654 case $cc_basename in
17655 NCC*)
17656 # NonStop-UX NCC 3.20
17657 lt_prog_compiler_pic_CXX='-KPIC'
17658 ;;
17659 *)
17660 ;;
17661 esac
17662 ;;
17663 vxworks*)
17664 ;;
17665 *)
17666 lt_prog_compiler_can_build_shared_CXX=no
17667 ;;
17668 esac
17669 fi
17670
17671case $host_os in
17672 # For platforms which do not support PIC, -DPIC is meaningless:
17673 *djgpp*)
17674 lt_prog_compiler_pic_CXX=
17675 ;;
17676 *)
17677 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17678 ;;
17679esac
cristy8b350f62009-11-15 23:12:43 +000017680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017681$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17682
17683
17684
17685#
17686# Check to make sure the PIC flag actually works.
17687#
17688if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000017689 { $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 +000017690$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017691if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017692 $as_echo_n "(cached) " >&6
17693else
17694 lt_cv_prog_compiler_pic_works_CXX=no
17695 ac_outfile=conftest.$ac_objext
17696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17697 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17698 # Insert the option either (1) after the last *FLAGS variable, or
17699 # (2) before a word containing "conftest.", or (3) at the end.
17700 # Note that $ac_compile itself does not contain backslashes and begins
17701 # with a dollar sign (not a hyphen), so the echo should work correctly.
17702 # The option is referenced via a variable to avoid confusing sed.
17703 lt_compile=`echo "$ac_compile" | $SED \
17704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17706 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000017707 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017708 (eval "$lt_compile" 2>conftest.err)
17709 ac_status=$?
17710 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000017711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017712 if (exit $ac_status) && test -s "$ac_outfile"; then
17713 # The compiler can only warn and ignore the option if not recognized
17714 # So say no if there are warnings other than the usual output.
cristyfd9dcd42010-08-08 18:07:02 +000017715 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17717 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17718 lt_cv_prog_compiler_pic_works_CXX=yes
17719 fi
17720 fi
17721 $RM conftest*
17722
17723fi
cristy8b350f62009-11-15 23:12:43 +000017724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017725$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17726
17727if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17728 case $lt_prog_compiler_pic_CXX in
17729 "" | " "*) ;;
17730 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17731 esac
17732else
17733 lt_prog_compiler_pic_CXX=
17734 lt_prog_compiler_can_build_shared_CXX=no
17735fi
17736
17737fi
17738
17739
17740
17741#
17742# Check to make sure the static flag actually works.
17743#
17744wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000017745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000017746$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017747if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017748 $as_echo_n "(cached) " >&6
17749else
17750 lt_cv_prog_compiler_static_works_CXX=no
17751 save_LDFLAGS="$LDFLAGS"
17752 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17753 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17754 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17755 # The linker can only warn and ignore the option if not recognized
17756 # So say no if there are warnings
17757 if test -s conftest.err; then
17758 # Append any errors to the config.log.
17759 cat conftest.err 1>&5
cristyfd9dcd42010-08-08 18:07:02 +000017760 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017761 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17762 if diff conftest.exp conftest.er2 >/dev/null; then
17763 lt_cv_prog_compiler_static_works_CXX=yes
17764 fi
17765 else
17766 lt_cv_prog_compiler_static_works_CXX=yes
17767 fi
17768 fi
17769 $RM -r conftest*
17770 LDFLAGS="$save_LDFLAGS"
17771
17772fi
cristy8b350f62009-11-15 23:12:43 +000017773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017774$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17775
17776if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17777 :
17778else
17779 lt_prog_compiler_static_CXX=
17780fi
17781
17782
17783
17784
cristy8b350f62009-11-15 23:12:43 +000017785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017786$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017787if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017788 $as_echo_n "(cached) " >&6
17789else
17790 lt_cv_prog_compiler_c_o_CXX=no
17791 $RM -r conftest 2>/dev/null
17792 mkdir conftest
17793 cd conftest
17794 mkdir out
17795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17796
17797 lt_compiler_flag="-o out/conftest2.$ac_objext"
17798 # Insert the option either (1) after the last *FLAGS variable, or
17799 # (2) before a word containing "conftest.", or (3) at the end.
17800 # Note that $ac_compile itself does not contain backslashes and begins
17801 # with a dollar sign (not a hyphen), so the echo should work correctly.
17802 lt_compile=`echo "$ac_compile" | $SED \
17803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17805 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000017806 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017807 (eval "$lt_compile" 2>out/conftest.err)
17808 ac_status=$?
17809 cat out/conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000017810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017811 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17812 then
17813 # The compiler can only warn and ignore the option if not recognized
17814 # So say no if there are warnings
cristyfd9dcd42010-08-08 18:07:02 +000017815 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017816 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17817 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17818 lt_cv_prog_compiler_c_o_CXX=yes
17819 fi
17820 fi
17821 chmod u+w . 2>&5
17822 $RM conftest*
17823 # SGI C++ compiler will create directory out/ii_files/ for
17824 # template instantiation
17825 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17826 $RM out/* && rmdir out
17827 cd ..
17828 $RM -r conftest
17829 $RM conftest*
17830
17831fi
cristy8b350f62009-11-15 23:12:43 +000017832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017833$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17834
17835
17836
cristy8b350f62009-11-15 23:12:43 +000017837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017838$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017839if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017840 $as_echo_n "(cached) " >&6
17841else
17842 lt_cv_prog_compiler_c_o_CXX=no
17843 $RM -r conftest 2>/dev/null
17844 mkdir conftest
17845 cd conftest
17846 mkdir out
17847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17848
17849 lt_compiler_flag="-o out/conftest2.$ac_objext"
17850 # Insert the option either (1) after the last *FLAGS variable, or
17851 # (2) before a word containing "conftest.", or (3) at the end.
17852 # Note that $ac_compile itself does not contain backslashes and begins
17853 # with a dollar sign (not a hyphen), so the echo should work correctly.
17854 lt_compile=`echo "$ac_compile" | $SED \
17855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17857 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000017858 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017859 (eval "$lt_compile" 2>out/conftest.err)
17860 ac_status=$?
17861 cat out/conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000017862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017863 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17864 then
17865 # The compiler can only warn and ignore the option if not recognized
17866 # So say no if there are warnings
cristyfd9dcd42010-08-08 18:07:02 +000017867 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017868 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17869 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17870 lt_cv_prog_compiler_c_o_CXX=yes
17871 fi
17872 fi
17873 chmod u+w . 2>&5
17874 $RM conftest*
17875 # SGI C++ compiler will create directory out/ii_files/ for
17876 # template instantiation
17877 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17878 $RM out/* && rmdir out
17879 cd ..
17880 $RM -r conftest
17881 $RM conftest*
17882
17883fi
cristy8b350f62009-11-15 23:12:43 +000017884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017885$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17886
17887
17888
17889
17890hard_links="nottested"
17891if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17892 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000017893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017894$as_echo_n "checking if we can lock with hard links... " >&6; }
17895 hard_links=yes
17896 $RM conftest*
17897 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17898 touch conftest.a
17899 ln conftest.a conftest.b 2>&5 || hard_links=no
17900 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000017901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017902$as_echo "$hard_links" >&6; }
17903 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000017904 { $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 +000017905$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17906 need_locks=warn
17907 fi
17908else
17909 need_locks=no
17910fi
17911
17912
17913
cristy8b350f62009-11-15 23:12:43 +000017914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000017915$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17916
17917 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17918 case $host_os in
17919 aix[4-9]*)
17920 # If we're using GNU nm, then we don't want the "-C" option.
17921 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristyfd9dcd42010-08-08 18:07:02 +000017922 # Also, AIX nm treats weak defined symbols like other global defined
17923 # symbols, whereas GNU nm marks them as "W".
cristy3ed852e2009-09-05 21:47:34 +000017924 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristyfd9dcd42010-08-08 18:07:02 +000017925 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 +000017926 else
17927 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'
17928 fi
17929 ;;
17930 pw32*)
17931 export_symbols_cmds_CXX="$ltdll_cmds"
17932 ;;
17933 cygwin* | mingw* | cegcc*)
17934 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'
17935 ;;
17936 *)
17937 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17938 ;;
17939 esac
17940 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17941
cristy8b350f62009-11-15 23:12:43 +000017942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017943$as_echo "$ld_shlibs_CXX" >&6; }
17944test "$ld_shlibs_CXX" = no && can_build_shared=no
17945
17946with_gnu_ld_CXX=$with_gnu_ld
17947
17948
17949
17950
17951
17952
17953#
17954# Do we need to explicitly link libc?
17955#
17956case "x$archive_cmds_need_lc_CXX" in
17957x|xyes)
17958 # Assume -lc should be added
17959 archive_cmds_need_lc_CXX=yes
17960
17961 if test "$enable_shared" = yes && test "$GCC" = yes; then
17962 case $archive_cmds_CXX in
17963 *'~'*)
17964 # FIXME: we may have to deal with multi-command sequences.
17965 ;;
17966 '$CC '*)
17967 # Test whether the compiler implicitly links with -lc since on some
17968 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17969 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000017970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000017971$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000017972if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
17973 $as_echo_n "(cached) " >&6
17974else
17975 $RM conftest*
17976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017977
cristyfd9dcd42010-08-08 18:07:02 +000017978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017979 (eval $ac_compile) 2>&5
17980 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17982 test $ac_status = 0; } 2>conftest.err; then
cristyfd9dcd42010-08-08 18:07:02 +000017983 soname=conftest
17984 lib=conftest
17985 libobjs=conftest.$ac_objext
17986 deplibs=
17987 wl=$lt_prog_compiler_wl_CXX
17988 pic_flag=$lt_prog_compiler_pic_CXX
17989 compiler_flags=-v
17990 linker_flags=-v
17991 verstring=
17992 output_objdir=.
17993 libname=conftest
17994 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17995 allow_undefined_flag_CXX=
17996 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 +000017997 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17998 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18000 test $ac_status = 0; }
cristyfd9dcd42010-08-08 18:07:02 +000018001 then
18002 lt_cv_archive_cmds_need_lc_CXX=no
18003 else
18004 lt_cv_archive_cmds_need_lc_CXX=yes
18005 fi
18006 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18007 else
18008 cat conftest.err 1>&5
18009 fi
18010 $RM conftest*
18011
18012fi
18013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18014$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18015 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy3ed852e2009-09-05 21:47:34 +000018016 ;;
18017 esac
18018 fi
18019 ;;
18020esac
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
18084
cristy8b350f62009-11-15 23:12:43 +000018085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000018086$as_echo_n "checking dynamic linker characteristics... " >&6; }
18087
18088library_names_spec=
18089libname_spec='lib$name'
18090soname_spec=
18091shrext_cmds=".so"
18092postinstall_cmds=
18093postuninstall_cmds=
18094finish_cmds=
18095finish_eval=
18096shlibpath_var=
18097shlibpath_overrides_runpath=unknown
18098version_type=none
18099dynamic_linker="$host_os ld.so"
18100sys_lib_dlsearch_path_spec="/lib /usr/lib"
18101need_lib_prefix=unknown
18102hardcode_into_libs=no
18103
18104# when you set need_version to no, make sure it does not cause -set_version
18105# flags to be left without arguments
18106need_version=unknown
18107
18108case $host_os in
18109aix3*)
18110 version_type=linux
18111 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18112 shlibpath_var=LIBPATH
18113
18114 # AIX 3 has no versioning support, so we append a major version to the name.
18115 soname_spec='${libname}${release}${shared_ext}$major'
18116 ;;
18117
18118aix[4-9]*)
18119 version_type=linux
18120 need_lib_prefix=no
18121 need_version=no
18122 hardcode_into_libs=yes
18123 if test "$host_cpu" = ia64; then
18124 # AIX 5 supports IA64
18125 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18126 shlibpath_var=LD_LIBRARY_PATH
18127 else
18128 # With GCC up to 2.95.x, collect2 would create an import file
18129 # for dependence libraries. The import file would start with
18130 # the line `#! .'. This would cause the generated library to
18131 # depend on `.', always an invalid library. This was fixed in
18132 # development snapshots of GCC prior to 3.0.
18133 case $host_os in
18134 aix4 | aix4.[01] | aix4.[01].*)
18135 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18136 echo ' yes '
18137 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18138 :
18139 else
18140 can_build_shared=no
18141 fi
18142 ;;
18143 esac
18144 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18145 # soname into executable. Probably we can add versioning support to
18146 # collect2, so additional links can be useful in future.
18147 if test "$aix_use_runtimelinking" = yes; then
18148 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18149 # instead of lib<name>.a to let people know that these are not
18150 # typical AIX shared libraries.
18151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18152 else
18153 # We preserve .a as extension for shared libraries through AIX4.2
18154 # and later when we are not doing run time linking.
18155 library_names_spec='${libname}${release}.a $libname.a'
18156 soname_spec='${libname}${release}${shared_ext}$major'
18157 fi
18158 shlibpath_var=LIBPATH
18159 fi
18160 ;;
18161
18162amigaos*)
18163 case $host_cpu in
18164 powerpc)
18165 # Since July 2007 AmigaOS4 officially supports .so libraries.
18166 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18168 ;;
18169 m68k)
18170 library_names_spec='$libname.ixlibrary $libname.a'
18171 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristyfd9dcd42010-08-08 18:07:02 +000018172 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 +000018173 ;;
18174 esac
18175 ;;
18176
18177beos*)
18178 library_names_spec='${libname}${shared_ext}'
18179 dynamic_linker="$host_os ld.so"
18180 shlibpath_var=LIBRARY_PATH
18181 ;;
18182
18183bsdi[45]*)
18184 version_type=linux
18185 need_version=no
18186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18187 soname_spec='${libname}${release}${shared_ext}$major'
18188 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18189 shlibpath_var=LD_LIBRARY_PATH
18190 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18191 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18192 # the default ld.so.conf also contains /usr/contrib/lib and
18193 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18194 # libtool to hard-code these into programs
18195 ;;
18196
18197cygwin* | mingw* | pw32* | cegcc*)
18198 version_type=windows
18199 shrext_cmds=".dll"
18200 need_version=no
18201 need_lib_prefix=no
18202
18203 case $GCC,$host_os in
18204 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18205 library_names_spec='$libname.dll.a'
18206 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18207 postinstall_cmds='base_file=`basename \${file}`~
18208 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18209 dldir=$destdir/`dirname \$dlpath`~
18210 test -d \$dldir || mkdir -p \$dldir~
18211 $install_prog $dir/$dlname \$dldir/$dlname~
18212 chmod a+x \$dldir/$dlname~
18213 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18214 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18215 fi'
18216 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18217 dlpath=$dir/\$dldll~
18218 $RM \$dlpath'
18219 shlibpath_overrides_runpath=yes
18220
18221 case $host_os in
18222 cygwin*)
18223 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18224 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristyfd9dcd42010-08-08 18:07:02 +000018225
cristy3ed852e2009-09-05 21:47:34 +000018226 ;;
18227 mingw* | cegcc*)
18228 # MinGW DLLs use traditional 'lib' prefix
18229 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy3ed852e2009-09-05 21:47:34 +000018230 ;;
18231 pw32*)
18232 # pw32 DLLs use 'pw' prefix rather than 'lib'
18233 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18234 ;;
18235 esac
18236 ;;
18237
18238 *)
18239 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18240 ;;
18241 esac
18242 dynamic_linker='Win32 ld.exe'
18243 # FIXME: first we should search . and the directory the executable is in
18244 shlibpath_var=PATH
18245 ;;
18246
18247darwin* | rhapsody*)
18248 dynamic_linker="$host_os dyld"
18249 version_type=darwin
18250 need_lib_prefix=no
18251 need_version=no
18252 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18253 soname_spec='${libname}${release}${major}$shared_ext'
18254 shlibpath_overrides_runpath=yes
18255 shlibpath_var=DYLD_LIBRARY_PATH
18256 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18257
18258 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18259 ;;
18260
18261dgux*)
18262 version_type=linux
18263 need_lib_prefix=no
18264 need_version=no
18265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18266 soname_spec='${libname}${release}${shared_ext}$major'
18267 shlibpath_var=LD_LIBRARY_PATH
18268 ;;
18269
18270freebsd1*)
18271 dynamic_linker=no
18272 ;;
18273
18274freebsd* | dragonfly*)
18275 # DragonFly does not have aout. When/if they implement a new
18276 # versioning mechanism, adjust this.
18277 if test -x /usr/bin/objformat; then
18278 objformat=`/usr/bin/objformat`
18279 else
18280 case $host_os in
18281 freebsd[123]*) objformat=aout ;;
18282 *) objformat=elf ;;
18283 esac
18284 fi
18285 version_type=freebsd-$objformat
18286 case $version_type in
18287 freebsd-elf*)
18288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18289 need_version=no
18290 need_lib_prefix=no
18291 ;;
18292 freebsd-*)
18293 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18294 need_version=yes
18295 ;;
18296 esac
18297 shlibpath_var=LD_LIBRARY_PATH
18298 case $host_os in
18299 freebsd2*)
18300 shlibpath_overrides_runpath=yes
18301 ;;
18302 freebsd3.[01]* | freebsdelf3.[01]*)
18303 shlibpath_overrides_runpath=yes
18304 hardcode_into_libs=yes
18305 ;;
18306 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18307 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18308 shlibpath_overrides_runpath=no
18309 hardcode_into_libs=yes
18310 ;;
18311 *) # from 4.6 on, and DragonFly
18312 shlibpath_overrides_runpath=yes
18313 hardcode_into_libs=yes
18314 ;;
18315 esac
18316 ;;
18317
18318gnu*)
18319 version_type=linux
18320 need_lib_prefix=no
18321 need_version=no
18322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18323 soname_spec='${libname}${release}${shared_ext}$major'
18324 shlibpath_var=LD_LIBRARY_PATH
18325 hardcode_into_libs=yes
18326 ;;
18327
cristyfd9dcd42010-08-08 18:07:02 +000018328haiku*)
18329 version_type=linux
18330 need_lib_prefix=no
18331 need_version=no
18332 dynamic_linker="$host_os runtime_loader"
18333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18334 soname_spec='${libname}${release}${shared_ext}$major'
18335 shlibpath_var=LIBRARY_PATH
18336 shlibpath_overrides_runpath=yes
18337 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18338 hardcode_into_libs=yes
18339 ;;
18340
cristy3ed852e2009-09-05 21:47:34 +000018341hpux9* | hpux10* | hpux11*)
18342 # Give a soname corresponding to the major version so that dld.sl refuses to
18343 # link against other versions.
18344 version_type=sunos
18345 need_lib_prefix=no
18346 need_version=no
18347 case $host_cpu in
18348 ia64*)
18349 shrext_cmds='.so'
18350 hardcode_into_libs=yes
18351 dynamic_linker="$host_os dld.so"
18352 shlibpath_var=LD_LIBRARY_PATH
18353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18355 soname_spec='${libname}${release}${shared_ext}$major'
18356 if test "X$HPUX_IA64_MODE" = X32; then
18357 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18358 else
18359 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18360 fi
18361 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18362 ;;
18363 hppa*64*)
18364 shrext_cmds='.sl'
18365 hardcode_into_libs=yes
18366 dynamic_linker="$host_os dld.sl"
18367 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18368 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18370 soname_spec='${libname}${release}${shared_ext}$major'
18371 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18372 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18373 ;;
18374 *)
18375 shrext_cmds='.sl'
18376 dynamic_linker="$host_os dld.sl"
18377 shlibpath_var=SHLIB_PATH
18378 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18380 soname_spec='${libname}${release}${shared_ext}$major'
18381 ;;
18382 esac
cristyfd9dcd42010-08-08 18:07:02 +000018383 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy3ed852e2009-09-05 21:47:34 +000018384 postinstall_cmds='chmod 555 $lib'
cristyfd9dcd42010-08-08 18:07:02 +000018385 # or fails outright, so override atomically:
18386 install_override_mode=555
cristy3ed852e2009-09-05 21:47:34 +000018387 ;;
18388
18389interix[3-9]*)
18390 version_type=linux
18391 need_lib_prefix=no
18392 need_version=no
18393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18394 soname_spec='${libname}${release}${shared_ext}$major'
18395 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18396 shlibpath_var=LD_LIBRARY_PATH
18397 shlibpath_overrides_runpath=no
18398 hardcode_into_libs=yes
18399 ;;
18400
18401irix5* | irix6* | nonstopux*)
18402 case $host_os in
18403 nonstopux*) version_type=nonstopux ;;
18404 *)
18405 if test "$lt_cv_prog_gnu_ld" = yes; then
18406 version_type=linux
18407 else
18408 version_type=irix
18409 fi ;;
18410 esac
18411 need_lib_prefix=no
18412 need_version=no
18413 soname_spec='${libname}${release}${shared_ext}$major'
18414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18415 case $host_os in
18416 irix5* | nonstopux*)
18417 libsuff= shlibsuff=
18418 ;;
18419 *)
18420 case $LD in # libtool.m4 will add one of these switches to LD
18421 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18422 libsuff= shlibsuff= libmagic=32-bit;;
18423 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18424 libsuff=32 shlibsuff=N32 libmagic=N32;;
18425 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18426 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18427 *) libsuff= shlibsuff= libmagic=never-match;;
18428 esac
18429 ;;
18430 esac
18431 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18432 shlibpath_overrides_runpath=no
18433 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18434 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18435 hardcode_into_libs=yes
18436 ;;
18437
18438# No shared lib support for Linux oldld, aout, or coff.
18439linux*oldld* | linux*aout* | linux*coff*)
18440 dynamic_linker=no
18441 ;;
18442
18443# This must be Linux ELF.
cristyfd9dcd42010-08-08 18:07:02 +000018444linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018445 version_type=linux
18446 need_lib_prefix=no
18447 need_version=no
18448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18449 soname_spec='${libname}${release}${shared_ext}$major'
18450 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18451 shlibpath_var=LD_LIBRARY_PATH
18452 shlibpath_overrides_runpath=no
cristyfd9dcd42010-08-08 18:07:02 +000018453
cristy3ed852e2009-09-05 21:47:34 +000018454 # Some binutils ld are patched to set DT_RUNPATH
cristyfd9dcd42010-08-08 18:07:02 +000018455 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
18456 $as_echo_n "(cached) " >&6
18457else
18458 lt_cv_shlibpath_overrides_runpath=no
18459 save_LDFLAGS=$LDFLAGS
18460 save_libdir=$libdir
18461 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18462 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018464/* end confdefs.h. */
18465
18466int
18467main ()
18468{
18469
18470 ;
18471 return 0;
18472}
18473_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018474if ac_fn_cxx_try_link "$LINENO"; then :
18475 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristyfd9dcd42010-08-08 18:07:02 +000018476 lt_cv_shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000018477fi
cristy3ed852e2009-09-05 21:47:34 +000018478fi
cristy8b350f62009-11-15 23:12:43 +000018479rm -f core conftest.err conftest.$ac_objext \
18480 conftest$ac_exeext conftest.$ac_ext
cristyfd9dcd42010-08-08 18:07:02 +000018481 LDFLAGS=$save_LDFLAGS
18482 libdir=$save_libdir
18483
18484fi
18485
18486 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy3ed852e2009-09-05 21:47:34 +000018487
18488 # This implies no fast_install, which is unacceptable.
18489 # Some rework will be needed to allow for fast_install
18490 # before this can be enabled.
18491 hardcode_into_libs=yes
18492
cristy679ed8e2009-12-05 02:37:41 +000018493 # Add ABI-specific directories to the system library path.
18494 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18495
cristy3ed852e2009-09-05 21:47:34 +000018496 # Append ld.so.conf contents to the search path
18497 if test -f /etc/ld.so.conf; then
cristyfd9dcd42010-08-08 18:07:02 +000018498 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 +000018499 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristyfd9dcd42010-08-08 18:07:02 +000018500
cristy3ed852e2009-09-05 21:47:34 +000018501 fi
18502
18503 # We used to test for /lib/ld.so.1 and disable shared libraries on
18504 # powerpc, because MkLinux only supported shared libraries with the
18505 # GNU dynamic linker. Since this was broken with cross compilers,
18506 # most powerpc-linux boxes support dynamic linking these days and
18507 # people can always --disable-shared, the test was removed, and we
18508 # assume the GNU/Linux dynamic linker is in use.
18509 dynamic_linker='GNU/Linux ld.so'
18510 ;;
18511
18512netbsd*)
18513 version_type=sunos
18514 need_lib_prefix=no
18515 need_version=no
18516 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18519 dynamic_linker='NetBSD (a.out) ld.so'
18520 else
18521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18522 soname_spec='${libname}${release}${shared_ext}$major'
18523 dynamic_linker='NetBSD ld.elf_so'
18524 fi
18525 shlibpath_var=LD_LIBRARY_PATH
18526 shlibpath_overrides_runpath=yes
18527 hardcode_into_libs=yes
18528 ;;
18529
18530newsos6)
18531 version_type=linux
18532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18533 shlibpath_var=LD_LIBRARY_PATH
18534 shlibpath_overrides_runpath=yes
18535 ;;
18536
18537*nto* | *qnx*)
18538 version_type=qnx
18539 need_lib_prefix=no
18540 need_version=no
18541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18542 soname_spec='${libname}${release}${shared_ext}$major'
18543 shlibpath_var=LD_LIBRARY_PATH
18544 shlibpath_overrides_runpath=no
18545 hardcode_into_libs=yes
18546 dynamic_linker='ldqnx.so'
18547 ;;
18548
18549openbsd*)
18550 version_type=sunos
18551 sys_lib_dlsearch_path_spec="/usr/lib"
18552 need_lib_prefix=no
18553 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18554 case $host_os in
18555 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18556 *) need_version=no ;;
18557 esac
18558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18559 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18560 shlibpath_var=LD_LIBRARY_PATH
18561 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18562 case $host_os in
18563 openbsd2.[89] | openbsd2.[89].*)
18564 shlibpath_overrides_runpath=no
18565 ;;
18566 *)
18567 shlibpath_overrides_runpath=yes
18568 ;;
18569 esac
18570 else
18571 shlibpath_overrides_runpath=yes
18572 fi
18573 ;;
18574
18575os2*)
18576 libname_spec='$name'
18577 shrext_cmds=".dll"
18578 need_lib_prefix=no
18579 library_names_spec='$libname${shared_ext} $libname.a'
18580 dynamic_linker='OS/2 ld.exe'
18581 shlibpath_var=LIBPATH
18582 ;;
18583
18584osf3* | osf4* | osf5*)
18585 version_type=osf
18586 need_lib_prefix=no
18587 need_version=no
18588 soname_spec='${libname}${release}${shared_ext}$major'
18589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18590 shlibpath_var=LD_LIBRARY_PATH
18591 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18592 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18593 ;;
18594
18595rdos*)
18596 dynamic_linker=no
18597 ;;
18598
18599solaris*)
18600 version_type=linux
18601 need_lib_prefix=no
18602 need_version=no
18603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18604 soname_spec='${libname}${release}${shared_ext}$major'
18605 shlibpath_var=LD_LIBRARY_PATH
18606 shlibpath_overrides_runpath=yes
18607 hardcode_into_libs=yes
18608 # ldd complains unless libraries are executable
18609 postinstall_cmds='chmod +x $lib'
18610 ;;
18611
18612sunos4*)
18613 version_type=sunos
18614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18615 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18616 shlibpath_var=LD_LIBRARY_PATH
18617 shlibpath_overrides_runpath=yes
18618 if test "$with_gnu_ld" = yes; then
18619 need_lib_prefix=no
18620 fi
18621 need_version=yes
18622 ;;
18623
18624sysv4 | sysv4.3*)
18625 version_type=linux
18626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18627 soname_spec='${libname}${release}${shared_ext}$major'
18628 shlibpath_var=LD_LIBRARY_PATH
18629 case $host_vendor in
18630 sni)
18631 shlibpath_overrides_runpath=no
18632 need_lib_prefix=no
18633 runpath_var=LD_RUN_PATH
18634 ;;
18635 siemens)
18636 need_lib_prefix=no
18637 ;;
18638 motorola)
18639 need_lib_prefix=no
18640 need_version=no
18641 shlibpath_overrides_runpath=no
18642 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18643 ;;
18644 esac
18645 ;;
18646
18647sysv4*MP*)
18648 if test -d /usr/nec ;then
18649 version_type=linux
18650 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18651 soname_spec='$libname${shared_ext}.$major'
18652 shlibpath_var=LD_LIBRARY_PATH
18653 fi
18654 ;;
18655
18656sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18657 version_type=freebsd-elf
18658 need_lib_prefix=no
18659 need_version=no
18660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18661 soname_spec='${libname}${release}${shared_ext}$major'
18662 shlibpath_var=LD_LIBRARY_PATH
18663 shlibpath_overrides_runpath=yes
18664 hardcode_into_libs=yes
18665 if test "$with_gnu_ld" = yes; then
18666 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18667 else
18668 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18669 case $host_os in
18670 sco3.2v5*)
18671 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18672 ;;
18673 esac
18674 fi
18675 sys_lib_dlsearch_path_spec='/usr/lib'
18676 ;;
18677
18678tpf*)
18679 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18680 version_type=linux
18681 need_lib_prefix=no
18682 need_version=no
18683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18684 shlibpath_var=LD_LIBRARY_PATH
18685 shlibpath_overrides_runpath=no
18686 hardcode_into_libs=yes
18687 ;;
18688
18689uts4*)
18690 version_type=linux
18691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18692 soname_spec='${libname}${release}${shared_ext}$major'
18693 shlibpath_var=LD_LIBRARY_PATH
18694 ;;
18695
18696*)
18697 dynamic_linker=no
18698 ;;
18699esac
cristy8b350f62009-11-15 23:12:43 +000018700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000018701$as_echo "$dynamic_linker" >&6; }
18702test "$dynamic_linker" = no && can_build_shared=no
18703
18704variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18705if test "$GCC" = yes; then
18706 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18707fi
18708
18709if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18710 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18711fi
18712if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18713 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18714fi
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
18750
cristyfd9dcd42010-08-08 18:07:02 +000018751
18752
cristy8b350f62009-11-15 23:12:43 +000018753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018754$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18755hardcode_action_CXX=
18756if test -n "$hardcode_libdir_flag_spec_CXX" ||
18757 test -n "$runpath_var_CXX" ||
18758 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18759
18760 # We can hardcode non-existent directories.
18761 if test "$hardcode_direct_CXX" != no &&
18762 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18763 # have to relink, otherwise we might link with an installed library
18764 # when we should be linking with a yet-to-be-installed one
18765 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18766 test "$hardcode_minus_L_CXX" != no; then
18767 # Linking always hardcodes the temporary library directory.
18768 hardcode_action_CXX=relink
18769 else
18770 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18771 hardcode_action_CXX=immediate
18772 fi
18773else
18774 # We cannot hardcode anything, or else we can only hardcode existing
18775 # directories.
18776 hardcode_action_CXX=unsupported
18777fi
cristy8b350f62009-11-15 23:12:43 +000018778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018779$as_echo "$hardcode_action_CXX" >&6; }
18780
18781if test "$hardcode_action_CXX" = relink ||
18782 test "$inherit_rpath_CXX" = yes; then
18783 # Fast installation is not supported
18784 enable_fast_install=no
18785elif test "$shlibpath_overrides_runpath" = yes ||
18786 test "$enable_shared" = no; then
18787 # Fast installation is not necessary
18788 enable_fast_install=needless
18789fi
18790
18791
18792
18793
18794
18795
18796
18797 fi # test -n "$compiler"
18798
18799 CC=$lt_save_CC
18800 LDCXX=$LD
18801 LD=$lt_save_LD
18802 GCC=$lt_save_GCC
18803 with_gnu_ld=$lt_save_with_gnu_ld
18804 lt_cv_path_LDCXX=$lt_cv_path_LD
18805 lt_cv_path_LD=$lt_save_path_LD
18806 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18807 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18808fi # test "$_lt_caught_CXX_error" != yes
18809
18810ac_ext=c
18811ac_cpp='$CPP $CPPFLAGS'
18812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18814ac_compiler_gnu=$ac_cv_c_compiler_gnu
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828 ac_config_commands="$ac_config_commands libtool"
18829
18830
18831
18832
18833# Only expand once:
18834
18835
18836
18837
18838
18839# Configure libltdl
18840
18841
18842
18843
18844
18845
18846
cristy8b350f62009-11-15 23:12:43 +000018847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000018848$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018849if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018850 $as_echo_n "(cached) " >&6
18851else
18852
18853module=yes
18854eval libltdl_cv_shlibext=$shrext_cmds
18855
18856fi
cristy8b350f62009-11-15 23:12:43 +000018857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000018858$as_echo "$libltdl_cv_shlibext" >&6; }
18859if test -n "$libltdl_cv_shlibext"; then
18860
18861cat >>confdefs.h <<_ACEOF
18862#define LT_MODULE_EXT "$libltdl_cv_shlibext"
18863_ACEOF
18864
18865fi
18866
cristy8b350f62009-11-15 23:12:43 +000018867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018868$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018869if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018870 $as_echo_n "(cached) " >&6
18871else
18872 lt_cv_module_path_var="$shlibpath_var"
18873fi
cristy8b350f62009-11-15 23:12:43 +000018874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000018875$as_echo "$lt_cv_module_path_var" >&6; }
18876if test -n "$lt_cv_module_path_var"; then
18877
18878cat >>confdefs.h <<_ACEOF
18879#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18880_ACEOF
18881
18882fi
18883
cristy8b350f62009-11-15 23:12:43 +000018884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018885$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018886if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018887 $as_echo_n "(cached) " >&6
18888else
18889 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18890fi
cristy8b350f62009-11-15 23:12:43 +000018891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018892$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18893if test -n "$lt_cv_sys_dlsearch_path"; then
18894 sys_dlsearch_path=
18895 for dir in $lt_cv_sys_dlsearch_path; do
18896 if test -z "$sys_dlsearch_path"; then
18897 sys_dlsearch_path="$dir"
18898 else
18899 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18900 fi
18901 done
18902
18903cat >>confdefs.h <<_ACEOF
18904#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18905_ACEOF
18906
18907fi
18908
18909
18910LT_DLLOADERS=
18911
18912
18913ac_ext=c
18914ac_cpp='$CPP $CPPFLAGS'
18915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18917ac_compiler_gnu=$ac_cv_c_compiler_gnu
18918
18919
18920LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000018921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018922$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018923if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018924 $as_echo_n "(cached) " >&6
18925else
18926 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000018927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018928/* end confdefs.h. */
18929
18930/* Override any GCC internal prototype to avoid an error.
18931 Use char because int might match the return type of a GCC
18932 builtin and then its argument prototype would still apply. */
18933#ifdef __cplusplus
18934extern "C"
18935#endif
18936char dlopen ();
18937int
18938main ()
18939{
18940return dlopen ();
18941 ;
18942 return 0;
18943}
18944_ACEOF
18945for ac_lib in '' dl; do
18946 if test -z "$ac_lib"; then
18947 ac_res="none required"
18948 else
18949 ac_res=-l$ac_lib
18950 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18951 fi
cristy8b350f62009-11-15 23:12:43 +000018952 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018953 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000018954fi
cristy8b350f62009-11-15 23:12:43 +000018955rm -f core conftest.err conftest.$ac_objext \
18956 conftest$ac_exeext
18957 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018958 break
18959fi
18960done
cristy8b350f62009-11-15 23:12:43 +000018961if test "${ac_cv_search_dlopen+set}" = set; then :
18962
cristy3ed852e2009-09-05 21:47:34 +000018963else
18964 ac_cv_search_dlopen=no
18965fi
18966rm conftest.$ac_ext
18967LIBS=$ac_func_search_save_LIBS
18968fi
cristy8b350f62009-11-15 23:12:43 +000018969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018970$as_echo "$ac_cv_search_dlopen" >&6; }
18971ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000018972if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000018973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18974
cristy8b350f62009-11-15 23:12:43 +000018975$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018976
18977 if test "$ac_cv_search_dlopen" != "none required" ; then
18978 LIBADD_DLOPEN="-ldl"
18979 fi
18980 libltdl_cv_lib_dl_dlopen="yes"
18981 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18982else
cristy8b350f62009-11-15 23:12:43 +000018983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018984/* end confdefs.h. */
18985#if HAVE_DLFCN_H
18986# include <dlfcn.h>
18987#endif
18988
18989int
18990main ()
18991{
18992dlopen(0, 0);
18993 ;
18994 return 0;
18995}
18996_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018997if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018998
cristy8b350f62009-11-15 23:12:43 +000018999$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019000
19001 libltdl_cv_func_dlopen="yes"
19002 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19003else
cristy8b350f62009-11-15 23:12:43 +000019004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019005$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019006if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019007 $as_echo_n "(cached) " >&6
19008else
19009 ac_check_lib_save_LIBS=$LIBS
19010LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019012/* end confdefs.h. */
19013
19014/* Override any GCC internal prototype to avoid an error.
19015 Use char because int might match the return type of a GCC
19016 builtin and then its argument prototype would still apply. */
19017#ifdef __cplusplus
19018extern "C"
19019#endif
19020char dlopen ();
19021int
19022main ()
19023{
19024return dlopen ();
19025 ;
19026 return 0;
19027}
19028_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019029if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019030 ac_cv_lib_svld_dlopen=yes
19031else
cristy8b350f62009-11-15 23:12:43 +000019032 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000019033fi
cristy8b350f62009-11-15 23:12:43 +000019034rm -f core conftest.err conftest.$ac_objext \
19035 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019036LIBS=$ac_check_lib_save_LIBS
19037fi
cristy8b350f62009-11-15 23:12:43 +000019038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019039$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019040if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019041
cristy8b350f62009-11-15 23:12:43 +000019042$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019043
19044 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19045 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19046fi
19047
19048fi
cristy8b350f62009-11-15 23:12:43 +000019049rm -f core conftest.err conftest.$ac_objext \
19050 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019051fi
19052
19053if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19054then
19055 lt_save_LIBS="$LIBS"
19056 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000019057 for ac_func in dlerror
19058do :
19059 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19060if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019061 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019062#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000019063_ACEOF
19064
19065fi
19066done
19067
19068 LIBS="$lt_save_LIBS"
19069fi
19070
19071
19072LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000019073ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19074if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019075
cristy8b350f62009-11-15 23:12:43 +000019076$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019077
19078 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19079else
cristy8b350f62009-11-15 23:12:43 +000019080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019081$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019082if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019083 $as_echo_n "(cached) " >&6
19084else
19085 ac_check_lib_save_LIBS=$LIBS
19086LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019088/* end confdefs.h. */
19089
19090/* Override any GCC internal prototype to avoid an error.
19091 Use char because int might match the return type of a GCC
19092 builtin and then its argument prototype would still apply. */
19093#ifdef __cplusplus
19094extern "C"
19095#endif
19096char shl_load ();
19097int
19098main ()
19099{
19100return shl_load ();
19101 ;
19102 return 0;
19103}
19104_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019105if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019106 ac_cv_lib_dld_shl_load=yes
19107else
cristy8b350f62009-11-15 23:12:43 +000019108 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000019109fi
cristy8b350f62009-11-15 23:12:43 +000019110rm -f core conftest.err conftest.$ac_objext \
19111 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019112LIBS=$ac_check_lib_save_LIBS
19113fi
cristy8b350f62009-11-15 23:12:43 +000019114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000019115$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019116if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019117
cristy8b350f62009-11-15 23:12:43 +000019118$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019119
19120 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19121 LIBADD_SHL_LOAD="-ldld"
19122fi
19123
19124fi
19125
19126
19127
19128case $host_os in
19129darwin[1567].*)
19130# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000019131 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19132if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019133
cristy8b350f62009-11-15 23:12:43 +000019134$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019135
19136 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19137fi
19138
19139 ;;
19140beos*)
19141 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19142 ;;
19143cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000019144 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19145"
19146if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19147 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000019148else
cristy8b350f62009-11-15 23:12:43 +000019149 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000019150fi
19151
cristy3ed852e2009-09-05 21:47:34 +000019152cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019153#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000019154_ACEOF
19155
cristy3ed852e2009-09-05 21:47:34 +000019156 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19157 ;;
19158esac
19159
cristy8b350f62009-11-15 23:12:43 +000019160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019161$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019162if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019163 $as_echo_n "(cached) " >&6
19164else
19165 ac_check_lib_save_LIBS=$LIBS
19166LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019168/* end confdefs.h. */
19169
19170/* Override any GCC internal prototype to avoid an error.
19171 Use char because int might match the return type of a GCC
19172 builtin and then its argument prototype would still apply. */
19173#ifdef __cplusplus
19174extern "C"
19175#endif
19176char dld_link ();
19177int
19178main ()
19179{
19180return dld_link ();
19181 ;
19182 return 0;
19183}
19184_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019185if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019186 ac_cv_lib_dld_dld_link=yes
19187else
cristy8b350f62009-11-15 23:12:43 +000019188 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000019189fi
cristy8b350f62009-11-15 23:12:43 +000019190rm -f core conftest.err conftest.$ac_objext \
19191 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019192LIBS=$ac_check_lib_save_LIBS
19193fi
cristy8b350f62009-11-15 23:12:43 +000019194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000019195$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019196if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019197
cristy8b350f62009-11-15 23:12:43 +000019198$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019199
19200 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19201fi
19202
19203
19204
19205
19206LT_DLPREOPEN=
19207if test -n "$LT_DLLOADERS"
19208then
19209 for lt_loader in $LT_DLLOADERS; do
19210 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19211 done
19212
cristy8b350f62009-11-15 23:12:43 +000019213$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019214
19215fi
19216
19217
19218LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19219
19220
19221ac_ext=c
19222ac_cpp='$CPP $CPPFLAGS'
19223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19225ac_compiler_gnu=$ac_cv_c_compiler_gnu
19226
19227
cristy8b350f62009-11-15 23:12:43 +000019228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019229$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019230if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019231 $as_echo_n "(cached) " >&6
19232else
19233 lt_cv_sys_symbol_underscore=no
19234 cat > conftest.$ac_ext <<_LT_EOF
19235void nm_test_func(){}
19236int main(){nm_test_func;return 0;}
19237_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019239 (eval $ac_compile) 2>&5
19240 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19242 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000019243 # Now try to grab the symbols.
19244 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000019245 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 +000019246 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19247 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19249 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000019250 # See whether the symbols have a leading underscore.
19251 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19252 lt_cv_sys_symbol_underscore=yes
19253 else
19254 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19255 :
19256 else
19257 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19258 fi
19259 fi
19260 else
19261 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19262 fi
19263 else
19264 echo "configure: failed program was:" >&5
19265 cat conftest.c >&5
19266 fi
19267 rm -rf conftest*
19268
19269fi
cristy8b350f62009-11-15 23:12:43 +000019270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019271$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19272 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19273
19274
19275if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19276 if test x"$libltdl_cv_func_dlopen" = xyes ||
19277 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000019278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000019279$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019280if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019281 $as_echo_n "(cached) " >&6
19282else
19283 libltdl_cv_need_uscore=unknown
19284 save_LIBS="$LIBS"
19285 LIBS="$LIBS $LIBADD_DLOPEN"
19286 if test "$cross_compiling" = yes; then :
19287 libltdl_cv_need_uscore=cross
19288else
19289 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19290 lt_status=$lt_dlunknown
19291 cat > conftest.$ac_ext <<_LT_EOF
cristyfd9dcd42010-08-08 18:07:02 +000019292#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000019293#include "confdefs.h"
19294
19295#if HAVE_DLFCN_H
19296#include <dlfcn.h>
19297#endif
19298
19299#include <stdio.h>
19300
19301#ifdef RTLD_GLOBAL
19302# define LT_DLGLOBAL RTLD_GLOBAL
19303#else
19304# ifdef DL_GLOBAL
19305# define LT_DLGLOBAL DL_GLOBAL
19306# else
19307# define LT_DLGLOBAL 0
19308# endif
19309#endif
19310
19311/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19312 find out it does not work in some platform. */
19313#ifndef LT_DLLAZY_OR_NOW
19314# ifdef RTLD_LAZY
19315# define LT_DLLAZY_OR_NOW RTLD_LAZY
19316# else
19317# ifdef DL_LAZY
19318# define LT_DLLAZY_OR_NOW DL_LAZY
19319# else
19320# ifdef RTLD_NOW
19321# define LT_DLLAZY_OR_NOW RTLD_NOW
19322# else
19323# ifdef DL_NOW
19324# define LT_DLLAZY_OR_NOW DL_NOW
19325# else
19326# define LT_DLLAZY_OR_NOW 0
19327# endif
19328# endif
19329# endif
19330# endif
19331#endif
19332
cristyfd9dcd42010-08-08 18:07:02 +000019333/* When -fvisbility=hidden is used, assume the code has been annotated
19334 correspondingly for the symbols needed. */
19335#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19336void fnord () __attribute__((visibility("default")));
19337#endif
19338
19339void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000019340int main ()
19341{
19342 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19343 int status = $lt_dlunknown;
19344
19345 if (self)
19346 {
19347 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristyfd9dcd42010-08-08 18:07:02 +000019348 else
19349 {
19350 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19351 else puts (dlerror ());
19352 }
cristy3ed852e2009-09-05 21:47:34 +000019353 /* dlclose (self); */
19354 }
19355 else
19356 puts (dlerror ());
19357
19358 return status;
19359}
19360_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019362 (eval $ac_link) 2>&5
19363 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19365 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000019366 (./conftest; exit; ) >&5 2>/dev/null
19367 lt_status=$?
19368 case x$lt_status in
19369 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19370 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19371 x$lt_dlunknown|x*) ;;
19372 esac
19373 else :
19374 # compilation failed
19375
19376 fi
19377fi
19378rm -fr conftest*
19379
19380 LIBS="$save_LIBS"
19381
19382fi
cristy8b350f62009-11-15 23:12:43 +000019383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019384$as_echo "$libltdl_cv_need_uscore" >&6; }
19385 fi
19386fi
19387
19388if test x"$libltdl_cv_need_uscore" = xyes; then
19389
cristy8b350f62009-11-15 23:12:43 +000019390$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019391
19392fi
19393
cristy8b350f62009-11-15 23:12:43 +000019394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019395$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019396if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019397 $as_echo_n "(cached) " >&6
19398else
19399 # PORTME does your system automatically load deplibs for dlopen?
19400 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19401 # For now, we just catch OSes we know something about -- in the
19402 # future, we'll try test this programmatically.
19403 lt_cv_sys_dlopen_deplibs=unknown
19404 case $host_os in
19405 aix3*|aix4.1.*|aix4.2.*)
19406 # Unknown whether this is true for these versions of AIX, but
19407 # we want this `case' here to explicitly catch those versions.
19408 lt_cv_sys_dlopen_deplibs=unknown
19409 ;;
19410 aix[4-9]*)
19411 lt_cv_sys_dlopen_deplibs=yes
19412 ;;
19413 amigaos*)
19414 case $host_cpu in
19415 powerpc)
19416 lt_cv_sys_dlopen_deplibs=no
19417 ;;
19418 esac
19419 ;;
19420 darwin*)
19421 # Assuming the user has installed a libdl from somewhere, this is true
19422 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19423 lt_cv_sys_dlopen_deplibs=yes
19424 ;;
19425 freebsd* | dragonfly*)
19426 lt_cv_sys_dlopen_deplibs=yes
19427 ;;
cristyfd9dcd42010-08-08 18:07:02 +000019428 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000019429 # GNU and its variants, using gnu ld.so (Glibc)
19430 lt_cv_sys_dlopen_deplibs=yes
19431 ;;
19432 hpux10*|hpux11*)
19433 lt_cv_sys_dlopen_deplibs=yes
19434 ;;
19435 interix*)
19436 lt_cv_sys_dlopen_deplibs=yes
19437 ;;
19438 irix[12345]*|irix6.[01]*)
19439 # Catch all versions of IRIX before 6.2, and indicate that we don't
19440 # know how it worked for any of those versions.
19441 lt_cv_sys_dlopen_deplibs=unknown
19442 ;;
19443 irix*)
19444 # The case above catches anything before 6.2, and it's known that
19445 # at 6.2 and later dlopen does load deplibs.
19446 lt_cv_sys_dlopen_deplibs=yes
19447 ;;
19448 netbsd*)
19449 lt_cv_sys_dlopen_deplibs=yes
19450 ;;
19451 openbsd*)
19452 lt_cv_sys_dlopen_deplibs=yes
19453 ;;
19454 osf[1234]*)
19455 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19456 # it did *not* use an RPATH in a shared library to find objects the
19457 # library depends on, so we explicitly say `no'.
19458 lt_cv_sys_dlopen_deplibs=no
19459 ;;
19460 osf5.0|osf5.0a|osf5.1)
19461 # dlopen *does* load deplibs and with the right loader patch applied
19462 # it even uses RPATH in a shared library to search for shared objects
19463 # that the library depends on, but there's no easy way to know if that
19464 # patch is installed. Since this is the case, all we can really
19465 # say is unknown -- it depends on the patch being installed. If
19466 # it is, this changes to `yes'. Without it, it would be `no'.
19467 lt_cv_sys_dlopen_deplibs=unknown
19468 ;;
19469 osf*)
19470 # the two cases above should catch all versions of osf <= 5.1. Read
19471 # the comments above for what we know about them.
19472 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19473 # is used to find them so we can finally say `yes'.
19474 lt_cv_sys_dlopen_deplibs=yes
19475 ;;
19476 qnx*)
19477 lt_cv_sys_dlopen_deplibs=yes
19478 ;;
19479 solaris*)
19480 lt_cv_sys_dlopen_deplibs=yes
19481 ;;
19482 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19483 libltdl_cv_sys_dlopen_deplibs=yes
19484 ;;
19485 esac
19486
19487fi
cristy8b350f62009-11-15 23:12:43 +000019488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000019489$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19490if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19491
cristy8b350f62009-11-15 23:12:43 +000019492$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019493
19494fi
19495
19496:
19497
cristy3ed852e2009-09-05 21:47:34 +000019498for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000019499do :
19500 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19501"
19502if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019503 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019504#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000019505_ACEOF
19506
19507fi
19508
19509done
19510
19511
cristy8b350f62009-11-15 23:12:43 +000019512ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000019513# include <argz.h>
19514#endif
cristy8b350f62009-11-15 23:12:43 +000019515"
19516if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019517
19518cat >>confdefs.h <<_ACEOF
19519#define HAVE_ERROR_T 1
19520_ACEOF
19521
19522
19523else
19524
cristy8b350f62009-11-15 23:12:43 +000019525$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019526
19527
cristy8b350f62009-11-15 23:12:43 +000019528$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019529
19530fi
19531
19532
19533ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000019534for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19535 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000019536do :
19537 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19538ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyf6fcb5d2010-09-24 01:19:13 +000019539eval as_val=\$$as_ac_var
19540 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019541 cat >>confdefs.h <<_ACEOF
19542#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19543_ACEOF
19544
19545else
19546 ARGZ_H=argz.h;
19547
19548 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19549
19550fi
19551done
19552
19553
cristy8b350f62009-11-15 23:12:43 +000019554if test -z "$ARGZ_H"; then :
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019556$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019557if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019558 $as_echo_n "(cached) " >&6
19559else
19560 case $host_os in #(
19561 *cygwin*)
19562 lt_cv_sys_argz_works=no
19563 if test "$cross_compiling" != no; then
19564 lt_cv_sys_argz_works="guessing no"
19565 else
19566 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19567 save_IFS=$IFS
19568 IFS=-.
19569 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19570 IFS=$save_IFS
19571 lt_os_major=${2-0}
19572 lt_os_minor=${3-0}
19573 lt_os_micro=${4-0}
19574 if test "$lt_os_major" -gt 1 \
19575 || { test "$lt_os_major" -eq 1 \
19576 && { test "$lt_os_minor" -gt 5 \
19577 || { test "$lt_os_minor" -eq 5 \
19578 && test "$lt_os_micro" -gt 24; }; }; }; then
19579 lt_cv_sys_argz_works=yes
19580 fi
19581 fi
19582 ;; #(
19583 *) lt_cv_sys_argz_works=yes ;;
19584 esac
19585fi
cristy8b350f62009-11-15 23:12:43 +000019586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019587$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019588 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019589
cristy8b350f62009-11-15 23:12:43 +000019590$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019591
19592else
19593 ARGZ_H=argz.h
19594
19595
19596 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19597
19598fi
cristy3ed852e2009-09-05 21:47:34 +000019599fi
19600
19601
19602
cristy8b350f62009-11-15 23:12:43 +000019603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019604$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019605if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019606 $as_echo_n "(cached) " >&6
19607else
19608 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19609 libltdl_cv_preloaded_symbols=yes
19610 else
19611 libltdl_cv_preloaded_symbols=no
19612 fi
19613
19614fi
cristy8b350f62009-11-15 23:12:43 +000019615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019616$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19617if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19618
cristy8b350f62009-11-15 23:12:43 +000019619$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019620
19621fi
19622
19623# Set options
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000019636if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019637 withval=$with_included_ltdl;
19638fi
19639
19640
19641if test "x$with_included_ltdl" != xyes; then
19642 # We are not being forced to use the included libltdl sources, so
19643 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000019644 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000019645
cristy8b350f62009-11-15 23:12:43 +000019646"
19647if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19648 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 +000019649 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000019650"
19651if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000019653$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019654if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019655 $as_echo_n "(cached) " >&6
19656else
19657 ac_check_lib_save_LIBS=$LIBS
19658LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019660/* end confdefs.h. */
19661
19662/* Override any GCC internal prototype to avoid an error.
19663 Use char because int might match the return type of a GCC
19664 builtin and then its argument prototype would still apply. */
19665#ifdef __cplusplus
19666extern "C"
19667#endif
19668char lt_dladvise_preload ();
19669int
19670main ()
19671{
19672return lt_dladvise_preload ();
19673 ;
19674 return 0;
19675}
19676_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019677if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019678 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19679else
cristy8b350f62009-11-15 23:12:43 +000019680 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000019681fi
cristy8b350f62009-11-15 23:12:43 +000019682rm -f core conftest.err conftest.$ac_objext \
19683 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019684LIBS=$ac_check_lib_save_LIBS
19685fi
cristy8b350f62009-11-15 23:12:43 +000019686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000019687$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019688if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019689 with_included_ltdl=no
19690else
19691 with_included_ltdl=yes
19692fi
19693
19694else
19695 with_included_ltdl=yes
19696fi
19697
19698else
19699 with_included_ltdl=yes
19700fi
19701
19702
19703fi
19704
19705
19706
19707
19708# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000019709if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019710 withval=$with_ltdl_include;
19711fi
19712
19713
19714if test -n "$with_ltdl_include"; then
19715 if test -f "$with_ltdl_include/ltdl.h"; then :
19716 else
cristyf6fcb5d2010-09-24 01:19:13 +000019717 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019718 fi
19719else
19720 with_ltdl_include=no
19721fi
19722
19723
19724# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000019725if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019726 withval=$with_ltdl_lib;
19727fi
19728
19729
19730if test -n "$with_ltdl_lib"; then
19731 if test -f "$with_ltdl_lib/libltdl.la"; then :
19732 else
cristyf6fcb5d2010-09-24 01:19:13 +000019733 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019734 fi
19735else
19736 with_ltdl_lib=no
19737fi
19738
19739case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19740 ,yes,no,no,)
19741 case $enable_ltdl_convenience in
cristyf6fcb5d2010-09-24 01:19:13 +000019742 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019743 "") enable_ltdl_convenience=yes
19744 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19745esac
19746LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19747LTDLDEPS=$LIBLTDL
19748LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19749
19750
19751
19752
19753
19754# For backwards non-gettext consistent compatibility...
19755INCLTDL="$LTDLINCL"
19756
19757
19758 ;;
19759 ,no,no,no,)
19760 # If the included ltdl is not to be used, then use the
19761 # preinstalled libltdl we found.
19762
cristy8b350f62009-11-15 23:12:43 +000019763$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019764
19765 LIBLTDL=-lltdl
19766 LTDLDEPS=
19767 LTDLINCL=
19768 ;;
19769 ,no*,no,*)
cristyf6fcb5d2010-09-24 01:19:13 +000019770 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019771 ;;
19772 *) with_included_ltdl=no
19773 LIBLTDL="-L$with_ltdl_lib -lltdl"
19774 LTDLDEPS=
19775 LTDLINCL="-I$with_ltdl_include"
19776 ;;
19777esac
19778INCLTDL="$LTDLINCL"
19779
19780# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000019781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000019782$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019784$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000019786$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019788$as_echo "$LIBLTDL" >&6; }
19789
19790
19791
19792# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000019793if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019794 enableval=$enable_ltdl_install;
19795fi
19796
19797
19798case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19799 *yes*) ;;
19800 *) enable_ltdl_convenience=yes ;;
19801esac
19802
19803 if test x"${enable_ltdl_install-no}" != xno; then
19804 INSTALL_LTDL_TRUE=
19805 INSTALL_LTDL_FALSE='#'
19806else
19807 INSTALL_LTDL_TRUE='#'
19808 INSTALL_LTDL_FALSE=
19809fi
19810
19811 if test x"${enable_ltdl_convenience-no}" != xno; then
19812 CONVENIENCE_LTDL_TRUE=
19813 CONVENIENCE_LTDL_FALSE='#'
19814else
19815 CONVENIENCE_LTDL_TRUE='#'
19816 CONVENIENCE_LTDL_FALSE=
19817fi
19818
19819
19820
19821
19822
19823
cristy3ed852e2009-09-05 21:47:34 +000019824# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19825# the user used. This is so that ltdl.h can pick up the parent projects
19826# config.h file, The first file in AC_CONFIG_HEADERS must contain the
19827# definitions required by ltdl.c.
19828# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19829
19830
19831
cristy3ed852e2009-09-05 21:47:34 +000019832for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000019833do :
19834 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19835ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19836"
cristyf6fcb5d2010-09-24 01:19:13 +000019837eval as_val=\$$as_ac_Header
19838 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019839 cat >>confdefs.h <<_ACEOF
19840#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19841_ACEOF
19842
19843fi
19844
19845done
19846
19847
cristy3ed852e2009-09-05 21:47:34 +000019848for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000019849do :
19850 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19851ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyf6fcb5d2010-09-24 01:19:13 +000019852eval as_val=\$$as_ac_var
19853 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019854 cat >>confdefs.h <<_ACEOF
19855#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19856_ACEOF
19857
19858else
19859
19860
19861 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
19862
19863fi
19864done
19865
cristy3ed852e2009-09-05 21:47:34 +000019866for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000019867do :
19868 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19869ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyf6fcb5d2010-09-24 01:19:13 +000019870eval as_val=\$$as_ac_var
19871 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019872 cat >>confdefs.h <<_ACEOF
19873#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19874_ACEOF
19875
19876else
19877
19878
19879 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
19880
19881fi
19882done
19883
19884
19885
19886cat >>confdefs.h <<_ACEOF
19887#define LT_LIBEXT "$libext"
19888_ACEOF
19889
19890
19891name=ltdl
19892LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
19893
19894
19895
19896
19897
19898
19899
19900
19901# Only expand once:
19902
19903
19904
19905# Check to see if building shared libraries
19906libtool_build_shared_libs='no'
19907if test "$enable_shared" = 'yes'; then
19908 libtool_build_shared_libs='yes'
19909fi
19910
19911# Check to see if building static libraries
19912libtool_build_static_libs='no'
19913if test "$enable_static" = 'yes'; then
19914 libtool_build_static_libs='yes'
19915fi
19916
cristyfa112112010-01-04 17:48:07 +000019917 if test "${libtool_build_shared_libs}" = 'yes'; then
19918 WITH_SHARED_LIBS_TRUE=
19919 WITH_SHARED_LIBS_FALSE='#'
19920else
19921 WITH_SHARED_LIBS_TRUE='#'
19922 WITH_SHARED_LIBS_FALSE=
cristy3ed852e2009-09-05 21:47:34 +000019923fi
19924
19925#
19926# Enable support for building loadable modules
19927#
19928
19929# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000019930if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019931 withval=$with_modules; with_modules=$withval
19932else
cristy5a1cefd2010-01-06 20:42:35 +000019933 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000019934fi
19935
19936
19937# Only allow building loadable modules if we are building shared libraries
19938if test "$with_modules" != 'no' ; then
19939 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000019940 { $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 +000019941$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
19942 with_modules='no'
19943 fi
19944fi
19945if test "$with_modules" != 'no'; then
19946
cristy8b350f62009-11-15 23:12:43 +000019947$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019948
19949fi
19950 if test "$with_modules" != 'no'; then
19951 WITH_MODULES_TRUE=
19952 WITH_MODULES_FALSE='#'
19953else
19954 WITH_MODULES_TRUE='#'
19955 WITH_MODULES_FALSE=
19956fi
19957
19958
19959# Enable building/use of libltdl if we are building shared libraries regardless
19960# of whether modules are built or not.
19961with_ltdl='no'
19962if test "$libtool_build_shared_libs" != 'no'; then
19963 with_ltdl='yes'
19964fi
19965
19966 if test "$with_ltdl" != 'no'; then
19967 WITH_LTDL_TRUE=
19968 WITH_LTDL_FALSE='#'
19969else
19970 WITH_LTDL_TRUE='#'
19971 WITH_LTDL_FALSE=
19972fi
19973
19974if test "$with_ltdl" != 'no'; then
19975
cristy8b350f62009-11-15 23:12:43 +000019976$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019977
19978
19979 # Set DLLDFLAGS
19980 if test X"$enable_shared" = Xyes; then
19981 DLLDFLAGS=-export-dynamic
19982
19983 fi
19984fi
19985
19986# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000019987# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000019988# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000019989if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019990 enableval=$enable_delegate_build; enable_delegate_build=$enableval
19991else
19992 enable_delegate_build='no'
19993fi
19994
19995
19996# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000019997if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019998 enableval=$enable_deprecated; enable_deprecated=$enableval
19999else
20000 enable_deprecated='no'
20001fi
20002
20003
20004if test "$enable_deprecated" = 'yes'; then
20005
cristy8b350f62009-11-15 23:12:43 +000020006$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020007
20008else
20009 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20010fi
20011
20012# Build a version of ImageMagick which operates uninstalled.
20013# Used to build distributions located via MAGICK_HOME / executable path
20014# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020015if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020016 enableval=$enable_installed; enable_installed=$enableval
20017else
20018 enable_installed='yes'
20019fi
20020
20021
20022if test "$enable_installed" = 'yes'; then
20023
cristy8b350f62009-11-15 23:12:43 +000020024$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020025
20026else
20027 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20028fi
20029
20030# Permit enciphering and deciphering image pixels.
20031# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020032if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020033 enableval=$enable_cipher; enable_cipher=$enableval
20034else
20035 enable_cipher='yes'
20036fi
20037
20038
20039if test "$enable_cipher" = 'yes'; then
20040
cristy8b350f62009-11-15 23:12:43 +000020041$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020042
20043fi
20044
20045# Build an embeddable version of ImageMagick.
20046# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020047if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020048 enableval=$enable_embeddable; enable_embeddable=$enableval
20049else
20050 enable_embeddable='no'
20051fi
20052
20053
20054if test "$enable_embeddable" = 'yes'; then
20055
cristy8b350f62009-11-15 23:12:43 +000020056$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020057
20058fi
20059
20060# Build a high dynamic range version of ImageMagick.
20061# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020062if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020063 enableval=$enable_hdri; enable_hdri=$enableval
20064else
20065 enable_hdri='no'
20066fi
20067
20068
20069MAGICK_HDRI=""
20070if test "$enable_hdri" = 'yes'; then
20071 MAGICK_HDRI="HDRI"
20072
cristy8b350f62009-11-15 23:12:43 +000020073$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020074
cristyfd9dcd42010-08-08 18:07:02 +000020075 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020076fi
20077
cristy3ed852e2009-09-05 21:47:34 +000020078# Build a version of ImageMagick with assert statements.
20079# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020080if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020081 enableval=$enable_assert; enable_assert=$enableval
20082else
20083 enable_assert='yes'
20084fi
20085
20086
20087if test "$enable_assert" = 'no'; then
20088
cristy8b350f62009-11-15 23:12:43 +000020089$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020090
20091fi
20092
20093# Add configure option --enable-maintainer-mode which enables dependency
20094# checking and generation useful to package maintainers. This is made an
20095# option to avoid confusing end users.
20096
cristy8b350f62009-11-15 23:12:43 +000020097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000020098$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20099 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000020100if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020101 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20102else
20103 USE_MAINTAINER_MODE=no
20104fi
20105
cristy8b350f62009-11-15 23:12:43 +000020106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000020107$as_echo "$USE_MAINTAINER_MODE" >&6; }
20108 if test $USE_MAINTAINER_MODE = yes; then
20109 MAINTAINER_MODE_TRUE=
20110 MAINTAINER_MODE_FALSE='#'
20111else
20112 MAINTAINER_MODE_TRUE='#'
20113 MAINTAINER_MODE_FALSE=
20114fi
20115
20116 MAINT=$MAINTAINER_MODE_TRUE
20117
20118
20119
20120
20121# Enable ccmalloc memory debugging support
20122# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020123if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020124 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20125else
20126 enable_ccmalloc='no'
20127fi
20128
20129
20130# Enable Electric Fence memory debugging support
20131# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020132if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020133 enableval=$enable_efence; enable_efence=$enableval
20134else
20135 enable_efence='no'
20136fi
20137
20138
20139# Enable prof-based profiling support
20140# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020141if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020142 enableval=$enable_prof; enable_prof=$enableval
20143else
20144 enable_prof='no'
20145fi
20146
20147
20148# Enable gprof-based profiling support
20149# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020150if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020151 enableval=$enable_gprof; enable_gprof=$enableval
20152else
20153 enable_gprof='no'
20154fi
20155
20156
20157# Enable gcov-based profiling support
20158# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020159if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020160 enableval=$enable_gcov; enable_gcov=$enableval
20161else
20162 enable_gcov='no'
20163fi
20164
20165
20166enable_profiling='no'
20167if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20168 enable_profiling='yes'
20169 if test "$libtool_build_shared_libs" = 'yes'; then
20170 echo "Warning: Can not profile code using shared libraries"
20171 fi
20172fi
20173
20174# Magick API method prefix
20175
20176# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020177if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020178 withval=$with_method_prefix; with_method_prefix=$enableval
20179else
20180 with_method_prefix=''
20181fi
20182
20183
20184if test "$with_method_prefix" != ''; then
20185
20186cat >>confdefs.h <<_ACEOF
20187#define NAMESPACE_PREFIX $with_method_prefix
20188_ACEOF
20189
20190fi
20191
20192# Number of bits in a Quantum
20193
20194# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020195if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020196 withval=$with_quantum_depth; with_quantum_depth=$withval
20197else
20198 with_quantum_depth=16
20199fi
20200
20201
20202if test "$with_quantum_depth" != '8'; then
20203 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20204fi
20205
20206case "${with_quantum_depth}" in
20207 8 ) ;;
20208 16 ) ;;
20209 32 ) ;;
20210 64 ) ;;
cristyf6fcb5d2010-09-24 01:19:13 +000020211 * ) { as_fn_set_status 16
20212as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000020213esac
cristycdae12a2010-09-19 02:24:31 +000020214if test "$enable_hdri" = 'yes'; then
20215 with_quantum_depth=16
20216fi
cristy3ed852e2009-09-05 21:47:34 +000020217QUANTUM_DEPTH="$with_quantum_depth"
20218
20219cat >>confdefs.h <<_ACEOF
20220#define QUANTUM_DEPTH $QUANTUM_DEPTH
20221_ACEOF
20222
20223
20224# Set pixel cache threshold
20225
20226# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000020227if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020228 withval=$with_cache; with_cache=$withval
20229else
20230 with_cache=''
20231fi
20232
20233
20234if test "$with_cache" != ''; then
20235
20236cat >>confdefs.h <<_ACEOF
20237#define PixelCacheThreshold $with_cache
20238_ACEOF
20239
20240 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20241fi
20242
20243# Disable/Enable support for full delegate paths
20244
20245# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000020246if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020247 withval=$with_frozenpaths; with_frozenpaths=$withval
20248else
20249 with_frozenpaths='no'
20250fi
20251
20252
20253# Enable build/install of Magick++
20254
20255# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000020256if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020257 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20258else
20259 with_magick_plus_plus='yes'
20260fi
20261
20262
20263# Disable build/install of PerlMagick.
20264
20265# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000020266if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020267 withval=$with_perl; with_perl=$withval
20268else
cristyb5f4e2f2010-04-25 00:49:11 +000020269 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000020270fi
20271
20272
20273# Options to pass when configuring PerlMagick
20274
20275# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000020276if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000020277 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000020278fi
20279
20280
cristy3ed852e2009-09-05 21:47:34 +000020281
20282# Enable umem, object-caching memory allocation library.
20283
20284# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000020285if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020286 withval=$with_umem; with_umem=$withval
20287else
20288 with_umem='no'
20289fi
20290
20291if test "$with_umem" != 'yes' ; then
20292 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20293fi
20294
20295#
20296# Specify path to shared libstdc++ if not in normal location
20297#
20298
20299# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000020300if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020301 withval=$with_libstdc; with_libstdc=$withval
20302else
20303 with_libstdc=''
20304fi
20305
20306
20307if test "$with_libstdc" != ''; then
20308 if test -d "$with_libstdc"; then
20309 LIBSTDCLDFLAGS="-L$with_libstdc"
20310 fi
20311fi
20312
20313
20314# Does gcc required -traditional?
20315if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000020316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020317$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020318if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020319 $as_echo_n "(cached) " >&6
20320else
20321 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000020322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020323/* end confdefs.h. */
20324#include <sgtty.h>
20325Autoconf TIOCGETP
20326_ACEOF
20327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020328 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020329 ac_cv_prog_gcc_traditional=yes
20330else
20331 ac_cv_prog_gcc_traditional=no
20332fi
20333rm -f conftest*
20334
20335
20336 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000020337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020338/* end confdefs.h. */
20339#include <termio.h>
20340Autoconf TCGETA
20341_ACEOF
20342if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020343 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020344 ac_cv_prog_gcc_traditional=yes
20345fi
20346rm -f conftest*
20347
20348 fi
20349fi
cristy8b350f62009-11-15 23:12:43 +000020350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020351$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20352 if test $ac_cv_prog_gcc_traditional = yes; then
20353 CC="$CC -traditional"
20354 fi
20355fi
20356
20357
20358########
20359#
20360# Set defines required to build DLLs and modules using MinGW
20361#
20362########
20363# These options are set for multi-thread DLL module build
20364# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20365# module: _DLL
20366# executable/Magick++: _DLL _MAGICKMOD_
20367MODULE_EXTRA_CPPFLAGS=''
20368LIBRARY_EXTRA_CPPFLAGS=''
20369if test "${native_win32_build}" = 'yes'; then
20370 if test "${libtool_build_shared_libs}" = 'yes'; then
20371 CPPFLAGS="$CPPFLAGS -D_DLL"
20372 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20373 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20374 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20375 if test "$with_modules" = 'yes'; then
20376 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20377 else
20378 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20379 fi
20380 else
20381 CPPFLAGS="$CPPFLAGS -D_LIB"
20382 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20383 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20384 fi
20385 if test "$with_threads" = 'yes'; then
20386 CPPFLAGS="$CPPFLAGS -D_MT"
20387 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20388 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20389 fi
20390fi
20391
20392
20393
20394# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000020395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000020396$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020397if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020398 $as_echo_n "(cached) " >&6
20399else
cristy8b350f62009-11-15 23:12:43 +000020400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020401/* end confdefs.h. */
20402#include <stdlib.h>
20403#include <stdarg.h>
20404#include <string.h>
20405#include <float.h>
20406
20407int
20408main ()
20409{
20410
20411 ;
20412 return 0;
20413}
20414_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020415if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020416 ac_cv_header_stdc=yes
20417else
cristy8b350f62009-11-15 23:12:43 +000020418 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020419fi
cristy3ed852e2009-09-05 21:47:34 +000020420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20421
20422if test $ac_cv_header_stdc = yes; then
20423 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020425/* end confdefs.h. */
20426#include <string.h>
20427
20428_ACEOF
20429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020430 $EGREP "memchr" >/dev/null 2>&1; then :
20431
cristy3ed852e2009-09-05 21:47:34 +000020432else
20433 ac_cv_header_stdc=no
20434fi
20435rm -f conftest*
20436
20437fi
20438
20439if test $ac_cv_header_stdc = yes; then
20440 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020442/* end confdefs.h. */
20443#include <stdlib.h>
20444
20445_ACEOF
20446if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020447 $EGREP "free" >/dev/null 2>&1; then :
20448
cristy3ed852e2009-09-05 21:47:34 +000020449else
20450 ac_cv_header_stdc=no
20451fi
20452rm -f conftest*
20453
20454fi
20455
20456if test $ac_cv_header_stdc = yes; then
20457 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000020458 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020459 :
20460else
cristy8b350f62009-11-15 23:12:43 +000020461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020462/* end confdefs.h. */
20463#include <ctype.h>
20464#include <stdlib.h>
20465#if ((' ' & 0x0FF) == 0x020)
20466# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20467# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20468#else
20469# define ISLOWER(c) \
20470 (('a' <= (c) && (c) <= 'i') \
20471 || ('j' <= (c) && (c) <= 'r') \
20472 || ('s' <= (c) && (c) <= 'z'))
20473# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20474#endif
20475
20476#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20477int
20478main ()
20479{
20480 int i;
20481 for (i = 0; i < 256; i++)
20482 if (XOR (islower (i), ISLOWER (i))
20483 || toupper (i) != TOUPPER (i))
20484 return 2;
20485 return 0;
20486}
20487_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020488if ac_fn_c_try_run "$LINENO"; then :
20489
cristy3ed852e2009-09-05 21:47:34 +000020490else
cristy8b350f62009-11-15 23:12:43 +000020491 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020492fi
cristy8b350f62009-11-15 23:12:43 +000020493rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20494 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020495fi
20496
cristy3ed852e2009-09-05 21:47:34 +000020497fi
20498fi
cristy8b350f62009-11-15 23:12:43 +000020499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000020500$as_echo "$ac_cv_header_stdc" >&6; }
20501if test $ac_cv_header_stdc = yes; then
20502
cristy8b350f62009-11-15 23:12:43 +000020503$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020504
20505fi
20506
20507if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000020508 { $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 +000020509 header files. Compilation cannot proceed. Please install the ANSI C
20510 headers and rerun this script." >&5
20511$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20512 header files. Compilation cannot proceed. Please install the ANSI C
20513 headers and rerun this script." >&2;};
20514fi
cristya0b81c32010-01-22 02:54:33 +000020515
20516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20517$as_echo_n "checking whether to enable assertions... " >&6; }
20518 # Check whether --enable-assert was given.
20519if test "${enable_assert+set}" = set; then :
20520 enableval=$enable_assert; ac_enable_assert=$enableval
20521 if test "x$enableval" = xno; then :
20522
20523$as_echo "#define NDEBUG 1" >>confdefs.h
20524
20525elif test "x$enableval" != xyes; then :
20526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20527$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20528 ac_enable_assert=yes
20529fi
20530else
20531 ac_enable_assert=yes
20532fi
20533
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20535$as_echo "$ac_enable_assert" >&6; }
20536
cristy3ed852e2009-09-05 21:47:34 +000020537ac_header_dirent=no
20538for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20539 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020541$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +000020542if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000020543 $as_echo_n "(cached) " >&6
20544else
cristy8b350f62009-11-15 23:12:43 +000020545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020546/* end confdefs.h. */
20547#include <sys/types.h>
20548#include <$ac_hdr>
20549
20550int
20551main ()
20552{
20553if ((DIR *) 0)
20554return 0;
20555 ;
20556 return 0;
20557}
20558_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020559if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020560 eval "$as_ac_Header=yes"
20561else
cristy8b350f62009-11-15 23:12:43 +000020562 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020563fi
cristy3ed852e2009-09-05 21:47:34 +000020564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20565fi
cristy8b350f62009-11-15 23:12:43 +000020566eval ac_res=\$$as_ac_Header
20567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020568$as_echo "$ac_res" >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +000020569eval as_val=\$$as_ac_Header
20570 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020571 cat >>confdefs.h <<_ACEOF
20572#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20573_ACEOF
20574
20575ac_header_dirent=$ac_hdr; break
20576fi
20577
20578done
20579# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20580if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020582$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020583if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020584 $as_echo_n "(cached) " >&6
20585else
20586 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020588/* end confdefs.h. */
20589
20590/* Override any GCC internal prototype to avoid an error.
20591 Use char because int might match the return type of a GCC
20592 builtin and then its argument prototype would still apply. */
20593#ifdef __cplusplus
20594extern "C"
20595#endif
20596char opendir ();
20597int
20598main ()
20599{
20600return opendir ();
20601 ;
20602 return 0;
20603}
20604_ACEOF
20605for ac_lib in '' dir; do
20606 if test -z "$ac_lib"; then
20607 ac_res="none required"
20608 else
20609 ac_res=-l$ac_lib
20610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20611 fi
cristy8b350f62009-11-15 23:12:43 +000020612 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020613 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020614fi
cristy8b350f62009-11-15 23:12:43 +000020615rm -f core conftest.err conftest.$ac_objext \
20616 conftest$ac_exeext
20617 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020618 break
20619fi
20620done
cristy8b350f62009-11-15 23:12:43 +000020621if test "${ac_cv_search_opendir+set}" = set; then :
20622
cristy3ed852e2009-09-05 21:47:34 +000020623else
20624 ac_cv_search_opendir=no
20625fi
20626rm conftest.$ac_ext
20627LIBS=$ac_func_search_save_LIBS
20628fi
cristy8b350f62009-11-15 23:12:43 +000020629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020630$as_echo "$ac_cv_search_opendir" >&6; }
20631ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020632if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020633 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20634
20635fi
20636
20637else
cristy8b350f62009-11-15 23:12:43 +000020638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020639$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020640if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020641 $as_echo_n "(cached) " >&6
20642else
20643 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020645/* end confdefs.h. */
20646
20647/* Override any GCC internal prototype to avoid an error.
20648 Use char because int might match the return type of a GCC
20649 builtin and then its argument prototype would still apply. */
20650#ifdef __cplusplus
20651extern "C"
20652#endif
20653char opendir ();
20654int
20655main ()
20656{
20657return opendir ();
20658 ;
20659 return 0;
20660}
20661_ACEOF
20662for ac_lib in '' x; do
20663 if test -z "$ac_lib"; then
20664 ac_res="none required"
20665 else
20666 ac_res=-l$ac_lib
20667 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20668 fi
cristy8b350f62009-11-15 23:12:43 +000020669 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020670 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020671fi
cristy8b350f62009-11-15 23:12:43 +000020672rm -f core conftest.err conftest.$ac_objext \
20673 conftest$ac_exeext
20674 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020675 break
20676fi
20677done
cristy8b350f62009-11-15 23:12:43 +000020678if test "${ac_cv_search_opendir+set}" = set; then :
20679
cristy3ed852e2009-09-05 21:47:34 +000020680else
20681 ac_cv_search_opendir=no
20682fi
20683rm conftest.$ac_ext
20684LIBS=$ac_func_search_save_LIBS
20685fi
cristy8b350f62009-11-15 23:12:43 +000020686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020687$as_echo "$ac_cv_search_opendir" >&6; }
20688ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020689if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020690 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20691
20692fi
20693
20694fi
20695
20696
20697# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020698for 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 +000020699do :
20700 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20701ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyf6fcb5d2010-09-24 01:19:13 +000020702eval as_val=\$$as_ac_Header
20703 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020704 cat >>confdefs.h <<_ACEOF
20705#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20706_ACEOF
20707
20708fi
20709
20710done
20711
20712
20713########
20714#
20715# Checks for typedefs, structures, and compiler characteristics.
20716#
20717########
20718
cristy8b350f62009-11-15 23:12:43 +000020719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020720$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020721if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020722 $as_echo_n "(cached) " >&6
20723else
cristy8b350f62009-11-15 23:12:43 +000020724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020725/* end confdefs.h. */
20726
20727#include <stdbool.h>
20728#ifndef bool
20729 "error: bool is not defined"
20730#endif
20731#ifndef false
20732 "error: false is not defined"
20733#endif
20734#if false
20735 "error: false is not 0"
20736#endif
20737#ifndef true
20738 "error: true is not defined"
20739#endif
20740#if true != 1
20741 "error: true is not 1"
20742#endif
20743#ifndef __bool_true_false_are_defined
20744 "error: __bool_true_false_are_defined is not defined"
20745#endif
20746
20747 struct s { _Bool s: 1; _Bool t; } s;
20748
20749 char a[true == 1 ? 1 : -1];
20750 char b[false == 0 ? 1 : -1];
20751 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20752 char d[(bool) 0.5 == true ? 1 : -1];
20753 bool e = &s;
20754 char f[(_Bool) 0.0 == false ? 1 : -1];
20755 char g[true];
20756 char h[sizeof (_Bool)];
20757 char i[sizeof s.t];
20758 enum { j = false, k = true, l = false * true, m = true * 256 };
20759 /* The following fails for
20760 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20761 _Bool n[m];
20762 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20763 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20764# if defined __xlc__ || defined __GNUC__
20765 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20766 reported by James Lemley on 2005-10-05; see
20767 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20768 This test is not quite right, since xlc is allowed to
20769 reject this program, as the initializer for xlcbug is
20770 not one of the forms that C requires support for.
20771 However, doing the test right would require a runtime
20772 test, and that would make cross-compilation harder.
20773 Let us hope that IBM fixes the xlc bug, and also adds
20774 support for this kind of constant expression. In the
20775 meantime, this test will reject xlc, which is OK, since
20776 our stdbool.h substitute should suffice. We also test
20777 this with GCC, where it should work, to detect more
20778 quickly whether someone messes up the test in the
20779 future. */
20780 char digs[] = "0123456789";
20781 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20782# endif
20783 /* Catch a bug in an HP-UX C compiler. See
20784 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20785 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20786 */
20787 _Bool q = true;
20788 _Bool *pq = &q;
20789
20790int
20791main ()
20792{
20793
20794 *pq |= q;
20795 *pq |= ! q;
20796 /* Refer to every declared value, to avoid compiler optimizations. */
20797 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20798 + !m + !n + !o + !p + !q + !pq);
20799
20800 ;
20801 return 0;
20802}
20803_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020804if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020805 ac_cv_header_stdbool_h=yes
20806else
cristy8b350f62009-11-15 23:12:43 +000020807 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000020808fi
cristy3ed852e2009-09-05 21:47:34 +000020809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20810fi
cristy8b350f62009-11-15 23:12:43 +000020811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000020812$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020813ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20814if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020815
20816cat >>confdefs.h <<_ACEOF
20817#define HAVE__BOOL 1
20818_ACEOF
20819
20820
20821fi
20822
20823if test $ac_cv_header_stdbool_h = yes; then
20824
cristy8b350f62009-11-15 23:12:43 +000020825$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020826
20827fi
20828
cristy8b350f62009-11-15 23:12:43 +000020829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020830$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020831if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020832 $as_echo_n "(cached) " >&6
20833else
cristy8b350f62009-11-15 23:12:43 +000020834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020835/* end confdefs.h. */
20836
20837int
20838main ()
20839{
20840
20841volatile int x;
20842int * volatile y = (int *) 0;
20843return !x && !y;
20844 ;
20845 return 0;
20846}
20847_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020848if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020849 ac_cv_c_volatile=yes
20850else
cristy8b350f62009-11-15 23:12:43 +000020851 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000020852fi
cristy3ed852e2009-09-05 21:47:34 +000020853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20854fi
cristy8b350f62009-11-15 23:12:43 +000020855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020856$as_echo "$ac_cv_c_volatile" >&6; }
20857if test $ac_cv_c_volatile = no; then
20858
cristy8b350f62009-11-15 23:12:43 +000020859$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020860
20861fi
20862
cristy8b350f62009-11-15 23:12:43 +000020863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000020864$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020865if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020866 $as_echo_n "(cached) " >&6
20867else
cristy8b350f62009-11-15 23:12:43 +000020868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020869/* end confdefs.h. */
20870#define x(y) #y
20871
20872char *s = x(teststring);
20873_ACEOF
20874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020875 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020876 ac_cv_c_stringize=no
20877else
20878 ac_cv_c_stringize=yes
20879fi
20880rm -f conftest*
20881
20882fi
cristy8b350f62009-11-15 23:12:43 +000020883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000020884$as_echo "$ac_cv_c_stringize" >&6; }
20885if test $ac_cv_c_stringize = yes; then
20886
cristy8b350f62009-11-15 23:12:43 +000020887$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020888
20889fi
20890
cristy8b350f62009-11-15 23:12:43 +000020891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020892$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020893if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020894 $as_echo_n "(cached) " >&6
20895else
cristy8b350f62009-11-15 23:12:43 +000020896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020897/* end confdefs.h. */
20898#include <sys/types.h>
20899#include <sys/stat.h>
20900
20901#if defined S_ISBLK && defined S_IFDIR
20902extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20903#endif
20904
20905#if defined S_ISBLK && defined S_IFCHR
20906extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20907#endif
20908
20909#if defined S_ISLNK && defined S_IFREG
20910extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20911#endif
20912
20913#if defined S_ISSOCK && defined S_IFREG
20914extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20915#endif
20916
20917_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020918if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020919 ac_cv_header_stat_broken=no
20920else
cristy8b350f62009-11-15 23:12:43 +000020921 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000020922fi
cristy3ed852e2009-09-05 21:47:34 +000020923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20924fi
cristy8b350f62009-11-15 23:12:43 +000020925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020926$as_echo "$ac_cv_header_stat_broken" >&6; }
20927if test $ac_cv_header_stat_broken = yes; then
20928
cristy8b350f62009-11-15 23:12:43 +000020929$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020930
20931fi
20932
cristy8b350f62009-11-15 23:12:43 +000020933{ $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 +000020934$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020935if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020936 $as_echo_n "(cached) " >&6
20937else
cristy8b350f62009-11-15 23:12:43 +000020938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020939/* end confdefs.h. */
20940#include <sys/types.h>
20941#include <sys/time.h>
20942#include <time.h>
20943
20944int
20945main ()
20946{
20947if ((struct tm *) 0)
20948return 0;
20949 ;
20950 return 0;
20951}
20952_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020953if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020954 ac_cv_header_time=yes
20955else
cristy8b350f62009-11-15 23:12:43 +000020956 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000020957fi
cristy3ed852e2009-09-05 21:47:34 +000020958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20959fi
cristy8b350f62009-11-15 23:12:43 +000020960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000020961$as_echo "$ac_cv_header_time" >&6; }
20962if test $ac_cv_header_time = yes; then
20963
cristy8b350f62009-11-15 23:12:43 +000020964$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020965
20966fi
20967
cristy8b350f62009-11-15 23:12:43 +000020968{ $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 +000020969$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020970if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020971 $as_echo_n "(cached) " >&6
20972else
cristy8b350f62009-11-15 23:12:43 +000020973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020974/* end confdefs.h. */
20975#include <sys/types.h>
20976#include <time.h>
20977
20978int
20979main ()
20980{
20981struct tm tm;
20982 int *p = &tm.tm_sec;
20983 return !p;
20984 ;
20985 return 0;
20986}
20987_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020988if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020989 ac_cv_struct_tm=time.h
20990else
cristy8b350f62009-11-15 23:12:43 +000020991 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000020992fi
cristy3ed852e2009-09-05 21:47:34 +000020993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20994fi
cristy8b350f62009-11-15 23:12:43 +000020995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000020996$as_echo "$ac_cv_struct_tm" >&6; }
20997if test $ac_cv_struct_tm = sys/time.h; then
20998
cristy8b350f62009-11-15 23:12:43 +000020999$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021000
21001fi
21002
cristy92703d82010-04-26 00:18:18 +000021003ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21004#include <$ac_cv_struct_tm>
21005
21006"
21007if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21008
21009cat >>confdefs.h <<_ACEOF
21010#define HAVE_STRUCT_TM_TM_ZONE 1
21011_ACEOF
21012
21013
21014fi
21015
21016if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21017
21018$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21019
21020else
21021 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21022"
21023if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21024 ac_have_decl=1
21025else
21026 ac_have_decl=0
21027fi
21028
21029cat >>confdefs.h <<_ACEOF
21030#define HAVE_DECL_TZNAME $ac_have_decl
21031_ACEOF
21032
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21034$as_echo_n "checking for tzname... " >&6; }
21035if test "${ac_cv_var_tzname+set}" = set; then :
21036 $as_echo_n "(cached) " >&6
21037else
21038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21039/* end confdefs.h. */
21040#include <time.h>
21041#if !HAVE_DECL_TZNAME
21042extern char *tzname[];
21043#endif
21044
21045int
21046main ()
21047{
21048return tzname[0][0];
21049 ;
21050 return 0;
21051}
21052_ACEOF
21053if ac_fn_c_try_link "$LINENO"; then :
21054 ac_cv_var_tzname=yes
21055else
21056 ac_cv_var_tzname=no
21057fi
21058rm -f core conftest.err conftest.$ac_objext \
21059 conftest$ac_exeext conftest.$ac_ext
21060fi
21061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21062$as_echo "$ac_cv_var_tzname" >&6; }
21063 if test $ac_cv_var_tzname = yes; then
21064
21065$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21066
21067 fi
21068fi
21069
cristy8b350f62009-11-15 23:12:43 +000021070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021071$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021072if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021073 $as_echo_n "(cached) " >&6
21074else
21075 echo '#! /bin/cat
21076exit 69
21077' >conftest
21078chmod u+x conftest
21079(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21080if test $? -ne 69; then
21081 ac_cv_sys_interpreter=yes
21082else
21083 ac_cv_sys_interpreter=no
21084fi
21085rm -f conftest
21086fi
cristy8b350f62009-11-15 23:12:43 +000021087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021088$as_echo "$ac_cv_sys_interpreter" >&6; }
21089interpval=$ac_cv_sys_interpreter
21090
21091
cristy3ed852e2009-09-05 21:47:34 +000021092# If the C compiler supports the keyword inline, do nothing. Otherwise
21093# define inline to __inline__ or __inline if it accepts one of those,
21094# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021096$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021097if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021098 $as_echo_n "(cached) " >&6
21099else
21100 ac_cv_c_inline=no
21101for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021103/* end confdefs.h. */
21104#ifndef __cplusplus
21105typedef int foo_t;
21106static $ac_kw foo_t static_foo () {return 0; }
21107$ac_kw foo_t foo () {return 0; }
21108#endif
21109
21110_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021111if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021112 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021113fi
cristy3ed852e2009-09-05 21:47:34 +000021114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21115 test "$ac_cv_c_inline" != no && break
21116done
21117
21118fi
cristy8b350f62009-11-15 23:12:43 +000021119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021120$as_echo "$ac_cv_c_inline" >&6; }
21121
cristy3ed852e2009-09-05 21:47:34 +000021122case $ac_cv_c_inline in
21123 inline | yes) ;;
21124 *)
21125 case $ac_cv_c_inline in
21126 no) ac_val=;;
21127 *) ac_val=$ac_cv_c_inline;;
21128 esac
21129 cat >>confdefs.h <<_ACEOF
21130#ifndef __cplusplus
21131#define inline $ac_val
21132#endif
21133_ACEOF
21134 ;;
21135esac
21136
21137
21138# If the C compiler supports the keyword restrict, do nothing. Otherwise
21139# define restrict to __restrict__ or __restrict if it accepts one of those,
21140# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021142$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021143if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021144 $as_echo_n "(cached) " >&6
21145else
21146 ac_cv_c_restrict=no
21147 # The order here caters to the fact that C++ does not require restrict.
21148 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021150/* end confdefs.h. */
21151typedef int * int_ptr;
21152 int foo (int_ptr $ac_kw ip) {
21153 return ip[0];
21154 }
21155int
21156main ()
21157{
21158int s[1];
21159 int * $ac_kw t = s;
21160 t[0] = 0;
21161 return foo(t)
21162 ;
21163 return 0;
21164}
21165_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021166if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021167 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021168fi
cristy3ed852e2009-09-05 21:47:34 +000021169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21170 test "$ac_cv_c_restrict" != no && break
21171 done
21172
21173fi
cristy8b350f62009-11-15 23:12:43 +000021174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021175$as_echo "$ac_cv_c_restrict" >&6; }
21176
cristy3ed852e2009-09-05 21:47:34 +000021177 case $ac_cv_c_restrict in
21178 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021179 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021180 ;;
21181 *) cat >>confdefs.h <<_ACEOF
21182#define restrict $ac_cv_c_restrict
21183_ACEOF
21184 ;;
21185 esac
21186
21187
21188# If words are stored with the most significant byte first (like
21189# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021191$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021192if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021193 $as_echo_n "(cached) " >&6
21194else
21195 ac_cv_c_bigendian=unknown
21196 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021198/* end confdefs.h. */
21199#ifndef __APPLE_CC__
21200 not a universal capable compiler
21201 #endif
21202 typedef int dummy;
21203
21204_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021205if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021206
21207 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021208 # there are at least two -arch flags with different values.
21209 ac_arch=
21210 ac_prev=
21211 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21212 if test -n "$ac_prev"; then
21213 case $ac_word in
21214 i?86 | x86_64 | ppc | ppc64)
21215 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21216 ac_arch=$ac_word
21217 else
21218 ac_cv_c_bigendian=universal
21219 break
21220 fi
21221 ;;
21222 esac
21223 ac_prev=
21224 elif test "x$ac_word" = "x-arch"; then
21225 ac_prev=arch
21226 fi
21227 done
cristy3ed852e2009-09-05 21:47:34 +000021228fi
cristy3ed852e2009-09-05 21:47:34 +000021229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21230 if test $ac_cv_c_bigendian = unknown; then
21231 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000021232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021233/* end confdefs.h. */
21234#include <sys/types.h>
21235 #include <sys/param.h>
21236
21237int
21238main ()
21239{
21240#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21241 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21242 && LITTLE_ENDIAN)
21243 bogus endian macros
21244 #endif
21245
21246 ;
21247 return 0;
21248}
21249_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021250if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021251 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021253/* end confdefs.h. */
21254#include <sys/types.h>
21255 #include <sys/param.h>
21256
21257int
21258main ()
21259{
21260#if BYTE_ORDER != BIG_ENDIAN
21261 not big endian
21262 #endif
21263
21264 ;
21265 return 0;
21266}
21267_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021268if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021269 ac_cv_c_bigendian=yes
21270else
cristy8b350f62009-11-15 23:12:43 +000021271 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021272fi
cristy3ed852e2009-09-05 21:47:34 +000021273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021274fi
cristy3ed852e2009-09-05 21:47:34 +000021275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21276 fi
21277 if test $ac_cv_c_bigendian = unknown; then
21278 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000021279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021280/* end confdefs.h. */
21281#include <limits.h>
21282
21283int
21284main ()
21285{
21286#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21287 bogus endian macros
21288 #endif
21289
21290 ;
21291 return 0;
21292}
21293_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021294if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021295 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021297/* end confdefs.h. */
21298#include <limits.h>
21299
21300int
21301main ()
21302{
21303#ifndef _BIG_ENDIAN
21304 not big endian
21305 #endif
21306
21307 ;
21308 return 0;
21309}
21310_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021311if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021312 ac_cv_c_bigendian=yes
21313else
cristy8b350f62009-11-15 23:12:43 +000021314 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021315fi
cristy3ed852e2009-09-05 21:47:34 +000021316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021317fi
cristy3ed852e2009-09-05 21:47:34 +000021318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21319 fi
21320 if test $ac_cv_c_bigendian = unknown; then
21321 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000021322 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021323 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000021324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021325/* end confdefs.h. */
21326short int ascii_mm[] =
21327 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21328 short int ascii_ii[] =
21329 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21330 int use_ascii (int i) {
21331 return ascii_mm[i] + ascii_ii[i];
21332 }
21333 short int ebcdic_ii[] =
21334 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21335 short int ebcdic_mm[] =
21336 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21337 int use_ebcdic (int i) {
21338 return ebcdic_mm[i] + ebcdic_ii[i];
21339 }
21340 extern int foo;
21341
21342int
21343main ()
21344{
21345return use_ascii (foo) == use_ebcdic (foo);
21346 ;
21347 return 0;
21348}
21349_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021350if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021351 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21352 ac_cv_c_bigendian=yes
21353 fi
21354 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21355 if test "$ac_cv_c_bigendian" = unknown; then
21356 ac_cv_c_bigendian=no
21357 else
21358 # finding both strings is unlikely to happen, but who knows?
21359 ac_cv_c_bigendian=unknown
21360 fi
21361 fi
cristy3ed852e2009-09-05 21:47:34 +000021362fi
cristy3ed852e2009-09-05 21:47:34 +000021363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21364else
cristy8b350f62009-11-15 23:12:43 +000021365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021366/* end confdefs.h. */
21367$ac_includes_default
21368int
21369main ()
21370{
21371
21372 /* Are we little or big endian? From Harbison&Steele. */
21373 union
21374 {
21375 long int l;
21376 char c[sizeof (long int)];
21377 } u;
21378 u.l = 1;
21379 return u.c[sizeof (long int) - 1] == 1;
21380
21381 ;
21382 return 0;
21383}
21384_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021385if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021386 ac_cv_c_bigendian=no
21387else
cristy8b350f62009-11-15 23:12:43 +000021388 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000021389fi
cristy8b350f62009-11-15 23:12:43 +000021390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21391 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021392fi
21393
cristy3ed852e2009-09-05 21:47:34 +000021394 fi
21395fi
cristy8b350f62009-11-15 23:12:43 +000021396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021397$as_echo "$ac_cv_c_bigendian" >&6; }
21398 case $ac_cv_c_bigendian in #(
21399 yes)
cristy8b350f62009-11-15 23:12:43 +000021400 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021401;; #(
21402 no)
21403 ;; #(
21404 universal)
21405
cristy8b350f62009-11-15 23:12:43 +000021406$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021407
21408 ;; #(
21409 *)
cristyf6fcb5d2010-09-24 01:19:13 +000021410 as_fn_error "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000021411 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021412 esac
21413
21414
21415# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021416ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21417if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021418
cristy3ed852e2009-09-05 21:47:34 +000021419else
21420
21421cat >>confdefs.h <<_ACEOF
21422#define mode_t int
21423_ACEOF
21424
21425fi
21426
21427
21428# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021429ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21430if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021431
cristy3ed852e2009-09-05 21:47:34 +000021432else
21433
21434cat >>confdefs.h <<_ACEOF
21435#define off_t long int
21436_ACEOF
21437
21438fi
21439
21440
21441# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021442ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21443if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021444
cristy3ed852e2009-09-05 21:47:34 +000021445else
21446
21447cat >>confdefs.h <<_ACEOF
21448#define pid_t int
21449_ACEOF
21450
21451fi
21452
21453
21454# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021455ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21456if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021457
cristy3ed852e2009-09-05 21:47:34 +000021458else
21459
21460cat >>confdefs.h <<_ACEOF
21461#define size_t unsigned int
21462_ACEOF
21463
21464fi
21465
21466
21467# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021468ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21469if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021470
cristy3ed852e2009-09-05 21:47:34 +000021471else
21472
21473cat >>confdefs.h <<_ACEOF
21474#define ssize_t int
21475_ACEOF
21476
21477fi
21478
21479
21480# If the C compiler supports a working long double type with more range
21481# or precision than the double type, define HAVE_LONG_DOUBLE.
21482
cristy8b350f62009-11-15 23:12:43 +000021483 { $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 +000021484$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021485if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021486 $as_echo_n "(cached) " >&6
21487else
cristy8b350f62009-11-15 23:12:43 +000021488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021489/* end confdefs.h. */
21490#include <float.h>
21491 long double const a[] =
21492 {
21493 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21494 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21495 };
21496 long double
21497 f (long double x)
21498 {
21499 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21500 + (x ? f (x) : 'c'));
21501 }
21502
21503int
21504main ()
21505{
21506static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21507 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21508 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21509 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21510 && (int) LDBL_EPSILON == 0
21511 )];
21512test_array [0] = 0
21513
21514 ;
21515 return 0;
21516}
21517_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021518if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021519 ac_cv_type_long_double_wider=yes
21520else
cristy8b350f62009-11-15 23:12:43 +000021521 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000021522fi
cristy3ed852e2009-09-05 21:47:34 +000021523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21524fi
cristy8b350f62009-11-15 23:12:43 +000021525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000021526$as_echo "$ac_cv_type_long_double_wider" >&6; }
21527 if test $ac_cv_type_long_double_wider = yes; then
21528
cristy8b350f62009-11-15 23:12:43 +000021529$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021530
21531 fi
21532
21533
21534# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21535# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000021536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021537$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021538if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021539 $as_echo_n "(cached) " >&6
21540else
cristy8b350f62009-11-15 23:12:43 +000021541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021542/* end confdefs.h. */
21543$ac_includes_default
21544int
21545main ()
21546{
21547static int test_array [1 - 2 * !(((char) -1) < 0)];
21548test_array [0] = 0
21549
21550 ;
21551 return 0;
21552}
21553_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021554if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021555 ac_cv_c_char_unsigned=no
21556else
cristy8b350f62009-11-15 23:12:43 +000021557 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000021558fi
cristy3ed852e2009-09-05 21:47:34 +000021559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21560fi
cristy8b350f62009-11-15 23:12:43 +000021561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021562$as_echo "$ac_cv_c_char_unsigned" >&6; }
21563if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000021564 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021565
21566fi
21567
21568
21569# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21570# The cast to long int works around a bug in the HP C Compiler
21571# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21572# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21573# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021575$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021576if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021577 $as_echo_n "(cached) " >&6
21578else
cristy8b350f62009-11-15 23:12:43 +000021579 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 +000021580
cristy3ed852e2009-09-05 21:47:34 +000021581else
cristy8b350f62009-11-15 23:12:43 +000021582 if test "$ac_cv_type_signed_short" = yes; then
21583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021585{ as_fn_set_status 77
21586as_fn_error "cannot compute sizeof (signed short)
21587See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021588 else
21589 ac_cv_sizeof_signed_short=0
21590 fi
21591fi
cristy8b350f62009-11-15 23:12:43 +000021592
cristy3ed852e2009-09-05 21:47:34 +000021593fi
cristy8b350f62009-11-15 23:12:43 +000021594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021595$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21596
21597
21598
21599cat >>confdefs.h <<_ACEOF
21600#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21601_ACEOF
21602
21603
21604
21605# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21606# The cast to long int works around a bug in the HP C Compiler
21607# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21608# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21609# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021611$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021612if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021613 $as_echo_n "(cached) " >&6
21614else
cristy8b350f62009-11-15 23:12:43 +000021615 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 +000021616
cristy3ed852e2009-09-05 21:47:34 +000021617else
cristy8b350f62009-11-15 23:12:43 +000021618 if test "$ac_cv_type_unsigned_short" = yes; then
21619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021620$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021621{ as_fn_set_status 77
21622as_fn_error "cannot compute sizeof (unsigned short)
21623See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021624 else
21625 ac_cv_sizeof_unsigned_short=0
21626 fi
21627fi
cristy8b350f62009-11-15 23:12:43 +000021628
cristy3ed852e2009-09-05 21:47:34 +000021629fi
cristy8b350f62009-11-15 23:12:43 +000021630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021631$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21632
21633
21634
21635cat >>confdefs.h <<_ACEOF
21636#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21637_ACEOF
21638
21639
21640
21641# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21642# The cast to long int works around a bug in the HP C Compiler
21643# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21644# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21645# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021647$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021648if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021649 $as_echo_n "(cached) " >&6
21650else
cristy8b350f62009-11-15 23:12:43 +000021651 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 +000021652
cristy3ed852e2009-09-05 21:47:34 +000021653else
cristy8b350f62009-11-15 23:12:43 +000021654 if test "$ac_cv_type_signed_int" = yes; then
21655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021656$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021657{ as_fn_set_status 77
21658as_fn_error "cannot compute sizeof (signed int)
21659See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021660 else
21661 ac_cv_sizeof_signed_int=0
21662 fi
21663fi
cristy8b350f62009-11-15 23:12:43 +000021664
cristy3ed852e2009-09-05 21:47:34 +000021665fi
cristy8b350f62009-11-15 23:12:43 +000021666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021667$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21668
21669
21670
21671cat >>confdefs.h <<_ACEOF
21672#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21673_ACEOF
21674
21675
21676
21677# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21678# The cast to long int works around a bug in the HP C Compiler
21679# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21680# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21681# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021683$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021684if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021685 $as_echo_n "(cached) " >&6
21686else
cristy8b350f62009-11-15 23:12:43 +000021687 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 +000021688
cristy3ed852e2009-09-05 21:47:34 +000021689else
cristy8b350f62009-11-15 23:12:43 +000021690 if test "$ac_cv_type_unsigned_int" = yes; then
21691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021692$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021693{ as_fn_set_status 77
21694as_fn_error "cannot compute sizeof (unsigned int)
21695See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021696 else
21697 ac_cv_sizeof_unsigned_int=0
21698 fi
21699fi
cristy8b350f62009-11-15 23:12:43 +000021700
cristy3ed852e2009-09-05 21:47:34 +000021701fi
cristy8b350f62009-11-15 23:12:43 +000021702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021703$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21704
21705
21706
21707cat >>confdefs.h <<_ACEOF
21708#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21709_ACEOF
21710
21711
21712
21713# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21714# The cast to long int works around a bug in the HP C Compiler
21715# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21716# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21717# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021719$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021720if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021721 $as_echo_n "(cached) " >&6
21722else
cristy8b350f62009-11-15 23:12:43 +000021723 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 +000021724
cristy3ed852e2009-09-05 21:47:34 +000021725else
cristy8b350f62009-11-15 23:12:43 +000021726 if test "$ac_cv_type_signed_long" = yes; then
21727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021728$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021729{ as_fn_set_status 77
21730as_fn_error "cannot compute sizeof (signed long)
21731See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021732 else
21733 ac_cv_sizeof_signed_long=0
21734 fi
21735fi
cristy8b350f62009-11-15 23:12:43 +000021736
cristy3ed852e2009-09-05 21:47:34 +000021737fi
cristy8b350f62009-11-15 23:12:43 +000021738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021739$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21740
21741
21742
21743cat >>confdefs.h <<_ACEOF
21744#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21745_ACEOF
21746
21747
21748
21749# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21750# The cast to long int works around a bug in the HP C Compiler
21751# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21752# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21753# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021755$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021756if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021757 $as_echo_n "(cached) " >&6
21758else
cristy8b350f62009-11-15 23:12:43 +000021759 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 +000021760
cristy3ed852e2009-09-05 21:47:34 +000021761else
cristy8b350f62009-11-15 23:12:43 +000021762 if test "$ac_cv_type_unsigned_long" = yes; then
21763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021765{ as_fn_set_status 77
21766as_fn_error "cannot compute sizeof (unsigned long)
21767See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021768 else
21769 ac_cv_sizeof_unsigned_long=0
21770 fi
21771fi
cristy8b350f62009-11-15 23:12:43 +000021772
cristy3ed852e2009-09-05 21:47:34 +000021773fi
cristy8b350f62009-11-15 23:12:43 +000021774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021775$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21776
21777
21778
21779cat >>confdefs.h <<_ACEOF
21780#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21781_ACEOF
21782
21783
21784
21785# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21786# 'signed long long' is not supported then the value defined is zero.
21787# The cast to long int works around a bug in the HP C Compiler
21788# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21789# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21790# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021792$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021793if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021794 $as_echo_n "(cached) " >&6
21795else
cristy8b350f62009-11-15 23:12:43 +000021796 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 +000021797
cristy3ed852e2009-09-05 21:47:34 +000021798else
cristy8b350f62009-11-15 23:12:43 +000021799 if test "$ac_cv_type_signed_long_long" = yes; then
21800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021802{ as_fn_set_status 77
21803as_fn_error "cannot compute sizeof (signed long long)
21804See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021805 else
21806 ac_cv_sizeof_signed_long_long=0
21807 fi
21808fi
cristy8b350f62009-11-15 23:12:43 +000021809
cristy3ed852e2009-09-05 21:47:34 +000021810fi
cristy8b350f62009-11-15 23:12:43 +000021811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021812$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21813
21814
21815
21816cat >>confdefs.h <<_ACEOF
21817#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21818_ACEOF
21819
21820
21821
21822# Obtain size of a 'unsigned long long' and define as
21823# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21824# supported then the value defined is zero.
21825# The cast to long int works around a bug in the HP C Compiler
21826# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21827# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21828# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021830$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021831if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021832 $as_echo_n "(cached) " >&6
21833else
cristy8b350f62009-11-15 23:12:43 +000021834 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 +000021835
cristy3ed852e2009-09-05 21:47:34 +000021836else
cristy8b350f62009-11-15 23:12:43 +000021837 if test "$ac_cv_type_unsigned_long_long" = yes; then
21838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021840{ as_fn_set_status 77
21841as_fn_error "cannot compute sizeof (unsigned long long)
21842See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021843 else
21844 ac_cv_sizeof_unsigned_long_long=0
21845 fi
21846fi
cristy8b350f62009-11-15 23:12:43 +000021847
cristy3ed852e2009-09-05 21:47:34 +000021848fi
cristy8b350f62009-11-15 23:12:43 +000021849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021850$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21851
21852
21853
21854cat >>confdefs.h <<_ACEOF
21855#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21856_ACEOF
21857
21858
21859
21860# Obtain size of off_t and define as SIZEOF_OFF_T
21861# The cast to long int works around a bug in the HP C Compiler
21862# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21863# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21864# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021866$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021867if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021868 $as_echo_n "(cached) " >&6
21869else
cristy8b350f62009-11-15 23:12:43 +000021870 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 +000021871
cristy3ed852e2009-09-05 21:47:34 +000021872else
cristy8b350f62009-11-15 23:12:43 +000021873 if test "$ac_cv_type_off_t" = yes; then
21874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021875$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021876{ as_fn_set_status 77
21877as_fn_error "cannot compute sizeof (off_t)
21878See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021879 else
21880 ac_cv_sizeof_off_t=0
21881 fi
21882fi
cristy8b350f62009-11-15 23:12:43 +000021883
cristy3ed852e2009-09-05 21:47:34 +000021884fi
cristy8b350f62009-11-15 23:12:43 +000021885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021886$as_echo "$ac_cv_sizeof_off_t" >&6; }
21887
21888
21889
21890cat >>confdefs.h <<_ACEOF
21891#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21892_ACEOF
21893
21894
21895
21896# Obtain size of size_t and define as SIZEOF_SIZE_T
21897# The cast to long int works around a bug in the HP C Compiler
21898# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21899# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21900# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021902$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021903if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021904 $as_echo_n "(cached) " >&6
21905else
cristy8b350f62009-11-15 23:12:43 +000021906 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 +000021907
cristy3ed852e2009-09-05 21:47:34 +000021908else
cristy8b350f62009-11-15 23:12:43 +000021909 if test "$ac_cv_type_size_t" = yes; then
21910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021911$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021912{ as_fn_set_status 77
21913as_fn_error "cannot compute sizeof (size_t)
21914See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021915 else
21916 ac_cv_sizeof_size_t=0
21917 fi
21918fi
cristy8b350f62009-11-15 23:12:43 +000021919
cristy3ed852e2009-09-05 21:47:34 +000021920fi
cristy8b350f62009-11-15 23:12:43 +000021921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021922$as_echo "$ac_cv_sizeof_size_t" >&6; }
21923
21924
21925
21926cat >>confdefs.h <<_ACEOF
21927#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21928_ACEOF
21929
21930
21931
cristy330e9352010-06-01 18:42:49 +000021932# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
21933# The cast to long int works around a bug in the HP C Compiler
21934# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21935# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21936# This bug is HP SR number 8606223364.
21937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
21938$as_echo_n "checking size of ssize_t... " >&6; }
21939if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
21940 $as_echo_n "(cached) " >&6
21941else
21942 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
21943
21944else
21945 if test "$ac_cv_type_ssize_t" = yes; then
21946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21947$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021948{ as_fn_set_status 77
21949as_fn_error "cannot compute sizeof (ssize_t)
21950See \`config.log' for more details." "$LINENO" 5; }; }
cristy330e9352010-06-01 18:42:49 +000021951 else
21952 ac_cv_sizeof_ssize_t=0
21953 fi
21954fi
21955
21956fi
21957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
21958$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
21959
21960
21961
21962cat >>confdefs.h <<_ACEOF
21963#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
21964_ACEOF
21965
21966
21967
cristy3ed852e2009-09-05 21:47:34 +000021968# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
21969# The cast to long int works around a bug in the HP C Compiler
21970# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21971# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21972# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000021974$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021975if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021976 $as_echo_n "(cached) " >&6
21977else
cristy8b350f62009-11-15 23:12:43 +000021978 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 +000021979
cristy3ed852e2009-09-05 21:47:34 +000021980else
cristy8b350f62009-11-15 23:12:43 +000021981 if test "$ac_cv_type_unsigned_intp" = yes; then
21982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021984{ as_fn_set_status 77
21985as_fn_error "cannot compute sizeof (unsigned int*)
21986See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021987 else
21988 ac_cv_sizeof_unsigned_intp=0
21989 fi
21990fi
cristy8b350f62009-11-15 23:12:43 +000021991
cristy3ed852e2009-09-05 21:47:34 +000021992fi
cristy8b350f62009-11-15 23:12:43 +000021993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021994$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
21995
21996
21997
21998cat >>confdefs.h <<_ACEOF
21999#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
22000_ACEOF
22001
22002
22003
22004#
22005# Compute sized types for current CPU and compiler options.
22006#
22007
cristy8b350f62009-11-15 23:12:43 +000022008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022009$as_echo_n "checking for signed 8-bit type... " >&6; }
22010INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000022011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022012$as_echo "$INT8_T" >&6; }
22013
22014
cristy8b350f62009-11-15 23:12:43 +000022015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022016$as_echo_n "checking for unsigned 8-bit type... " >&6; }
22017UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000022018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022019$as_echo "$UINT8_T" >&6; }
22020
22021
cristy8b350f62009-11-15 23:12:43 +000022022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022023$as_echo_n "checking for signed 16-bit type... " >&6; }
22024INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022026$as_echo "$INT16_T" >&6; }
22027
22028
cristy8b350f62009-11-15 23:12:43 +000022029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022030$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22031UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022033$as_echo "$UINT16_T" >&6; }
22034
22035
cristy8b350f62009-11-15 23:12:43 +000022036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022037$as_echo_n "checking for signed 32-bit type... " >&6; }
22038INT32_T='none'
22039if test $ac_cv_sizeof_signed_int -eq 4; then
22040 INT32_T='signed int'
22041elif test $ac_cv_sizeof_signed_long -eq 4; then
22042 INT32_T='signed long'
22043fi
cristy8b350f62009-11-15 23:12:43 +000022044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022045$as_echo "$INT32_T" >&6; }
22046
22047
cristy8b350f62009-11-15 23:12:43 +000022048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022049$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22050UINT32_T='none'
22051if test $ac_cv_sizeof_unsigned_int -eq 4; then
22052 UINT32_T='unsigned int'
22053elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22054 UINT32_T='unsigned long'
22055fi
cristy8b350f62009-11-15 23:12:43 +000022056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022057$as_echo "$UINT32_T" >&6; }
22058
22059
cristy8b350f62009-11-15 23:12:43 +000022060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022061$as_echo_n "checking for signed 64-bit type... " >&6; }
22062INT64_T='none'
22063if test $ac_cv_sizeof_signed_long -eq 8; then
22064 INT64_T='signed long'
22065elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22066 INT64_T='signed long long'
22067fi
cristy8b350f62009-11-15 23:12:43 +000022068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022069$as_echo "$INT64_T" >&6; }
22070
22071
cristy8b350f62009-11-15 23:12:43 +000022072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022073$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22074UINT64_T='none'
22075if test $ac_cv_sizeof_unsigned_long -eq 8; then
22076 UINT64_T='unsigned long'
22077elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22078 UINT64_T='unsigned long long'
22079fi
cristy8b350f62009-11-15 23:12:43 +000022080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022081$as_echo "$UINT64_T" >&6; }
22082
22083
cristy8b350f62009-11-15 23:12:43 +000022084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022085$as_echo_n "checking for unsigned maximum type... " >&6; }
22086UINTMAX_T='none'
22087if test "$UINT64_T" != 'none'; then
22088 UINTMAX_T=$UINT64_T
22089elif test "$UINT32_T" != 'none'; then
22090 UINTMAX_T=$UINT32_T
22091fi
cristy8b350f62009-11-15 23:12:43 +000022092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022093$as_echo "$UINTMAX_T" >&6; }
22094
22095
cristy8b350f62009-11-15 23:12:43 +000022096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022097$as_echo_n "checking for pointer difference type... " >&6; }
22098UINTPTR_T='none'
22099if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22100 UINTPTR_T='unsigned long'
22101elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22102 UINTPTR_T='unsigned long long'
22103fi
cristy8b350f62009-11-15 23:12:43 +000022104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022105$as_echo "$UINTPTR_T" >&6; }
22106
22107
cristy8b350f62009-11-15 23:12:43 +000022108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022109$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022111/* end confdefs.h. */
22112
22113int
22114main ()
22115{
22116{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22117 ;
22118 return 0;
22119}
22120_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022121if ac_fn_c_try_compile "$LINENO"; then :
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022123$as_echo "yes" >&6; }
22124else
cristy8b350f62009-11-15 23:12:43 +000022125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022126$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022128$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022130/* end confdefs.h. */
22131
22132int
22133main ()
22134{
22135{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22136 ;
22137 return 0;
22138}
22139_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022140if ac_fn_c_try_compile "$LINENO"; then :
22141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022142$as_echo "yes" >&6; }
22143
cristy8b350f62009-11-15 23:12:43 +000022144$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022145
22146else
cristy8b350f62009-11-15 23:12:43 +000022147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022148$as_echo "no" >&6; }
22149
cristy8b350f62009-11-15 23:12:43 +000022150$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022151
22152fi
cristy3ed852e2009-09-05 21:47:34 +000022153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22154fi
cristy3ed852e2009-09-05 21:47:34 +000022155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22156
22157########
22158#
22159# Check for functions
22160#
22161########
cristy3ed852e2009-09-05 21:47:34 +000022162for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000022163do :
22164 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22165ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyf6fcb5d2010-09-24 01:19:13 +000022166eval as_val=\$$as_ac_Header
22167 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022168 cat >>confdefs.h <<_ACEOF
22169#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22170_ACEOF
22171
22172fi
22173
22174done
22175
cristy3ed852e2009-09-05 21:47:34 +000022176for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022177do :
22178 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22179if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022180 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022181#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022182_ACEOF
22183
22184fi
22185done
22186
cristy8b350f62009-11-15 23:12:43 +000022187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000022188$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022189if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022190 $as_echo_n "(cached) " >&6
22191else
cristy8b350f62009-11-15 23:12:43 +000022192 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022193 magick_cv_func_mmap_fileio=no
22194else
cristy8b350f62009-11-15 23:12:43 +000022195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022196/* end confdefs.h. */
22197$ac_includes_default
22198/* malloc might have been renamed as rpl_malloc. */
22199#undef malloc
22200
22201/*
22202 This test is derived from GNU Autoconf's similar macro.
22203 The purpose of this test is to verify that files may be memory
22204 mapped, and that memory mapping and file I/O are coherent.
22205
22206 The test creates a test file, memory maps the file, updates
22207 the file using the memory map, and then reads the file using
22208 file I/O to verify that the file contains the updates.
22209*/
22210
22211#include <fcntl.h>
22212#include <sys/mman.h>
22213
22214#if !STDC_HEADERS && !HAVE_STDLIB_H
22215char *malloc ();
22216#endif
22217
22218/* This mess was copied from the GNU getpagesize.h. */
22219#if !HAVE_GETPAGESIZE
22220/* Assume that all systems that can run configure have sys/param.h. */
22221# if !HAVE_SYS_PARAM_H
22222# define HAVE_SYS_PARAM_H 1
22223# endif
22224
22225# ifdef _SC_PAGESIZE
22226# define getpagesize() sysconf(_SC_PAGESIZE)
22227# else /* no _SC_PAGESIZE */
22228# if HAVE_SYS_PARAM_H
22229# include <sys/param.h>
22230# ifdef EXEC_PAGESIZE
22231# define getpagesize() EXEC_PAGESIZE
22232# else /* no EXEC_PAGESIZE */
22233# ifdef NBPG
22234# define getpagesize() NBPG * CLSIZE
22235# ifndef CLSIZE
22236# define CLSIZE 1
22237# endif /* no CLSIZE */
22238# else /* no NBPG */
22239# ifdef NBPC
22240# define getpagesize() NBPC
22241# else /* no NBPC */
22242# ifdef PAGESIZE
22243# define getpagesize() PAGESIZE
22244# endif /* PAGESIZE */
22245# endif /* no NBPC */
22246# endif /* no NBPG */
22247# endif /* no EXEC_PAGESIZE */
22248# else /* no HAVE_SYS_PARAM_H */
22249# define getpagesize() 8192 /* punt totally */
22250# endif /* no HAVE_SYS_PARAM_H */
22251# endif /* no _SC_PAGESIZE */
22252
22253#endif /* no HAVE_GETPAGESIZE */
22254
22255int
22256main ()
22257{
22258 char *data, *data2, *data3;
22259 int i, pagesize;
22260 int fd;
22261
22262 pagesize = getpagesize ();
22263
22264 /* First, make a file with some known garbage in it. */
22265 data = (char *) malloc (pagesize);
22266 if (!data)
22267 exit (1);
22268 for (i = 0; i < pagesize; ++i)
22269 *(data + i) = rand ();
22270 umask (0);
22271 fd = creat ("conftest.mmap", 0600);
22272 if (fd < 0)
22273 exit (1);
22274 if (write (fd, data, pagesize) != pagesize)
22275 exit (1);
22276 close (fd);
22277
22278 /* Mmap the file as read/write/shared and verify that we see the
22279 same garbage. */
22280 fd = open ("conftest.mmap", O_RDWR);
22281 if (fd < 0)
22282 exit (1);
22283 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22284 if (data2 == 0)
22285 exit (1);
22286 for (i = 0; i < pagesize; ++i)
22287 if (*(data + i) != *(data2 + i))
22288 exit (1);
22289
22290 /* Finally, make sure that changes to the mapped area
22291 percolate back to the file as seen by read(). */
22292 for (i = 0; i < pagesize; ++i)
22293 *(data2 + i) = *(data2 + i) + 1;
22294 data3 = (char *) malloc (pagesize);
22295 if (!data3)
22296 exit (1);
22297 if (read (fd, data3, pagesize) != pagesize)
22298 exit (1);
22299 for (i = 0; i < pagesize; ++i)
22300 if (*(data2 + i) != *(data3 + i))
22301 exit (1);
22302 close (fd);
22303 exit (0);
22304}
22305_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022306if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022307 magick_cv_func_mmap_fileio=yes
22308else
cristy8b350f62009-11-15 23:12:43 +000022309 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000022310fi
cristy8b350f62009-11-15 23:12:43 +000022311rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22312 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022313fi
22314
cristy3ed852e2009-09-05 21:47:34 +000022315fi
cristy8b350f62009-11-15 23:12:43 +000022316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000022317$as_echo "$magick_cv_func_mmap_fileio" >&6; }
22318if test $magick_cv_func_mmap_fileio = yes; then
22319
cristy8b350f62009-11-15 23:12:43 +000022320$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022321
22322fi
22323rm -f conftest.mmap
22324
cristy8b350f62009-11-15 23:12:43 +000022325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022326$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022327if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022328 $as_echo_n "(cached) " >&6
22329else
cristy8b350f62009-11-15 23:12:43 +000022330 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022331 ac_cv_func_closedir_void=yes
22332else
cristy8b350f62009-11-15 23:12:43 +000022333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022334/* end confdefs.h. */
22335$ac_includes_default
22336#include <$ac_header_dirent>
22337#ifndef __cplusplus
22338int closedir ();
22339#endif
22340
22341int
22342main ()
22343{
22344return closedir (opendir (".")) != 0;
22345 ;
22346 return 0;
22347}
22348_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022349if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022350 ac_cv_func_closedir_void=no
22351else
cristy8b350f62009-11-15 23:12:43 +000022352 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000022353fi
cristy8b350f62009-11-15 23:12:43 +000022354rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22355 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022356fi
22357
cristy3ed852e2009-09-05 21:47:34 +000022358fi
cristy8b350f62009-11-15 23:12:43 +000022359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022360$as_echo "$ac_cv_func_closedir_void" >&6; }
22361if test $ac_cv_func_closedir_void = yes; then
22362
cristy8b350f62009-11-15 23:12:43 +000022363$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022364
22365fi
22366
cristycd4c5312009-11-22 01:19:08 +000022367
22368
22369
22370 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000022371do :
22372 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000022373ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22374"
cristyf6fcb5d2010-09-24 01:19:13 +000022375eval as_val=\$$as_ac_Header
22376 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022377 cat >>confdefs.h <<_ACEOF
22378#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22379_ACEOF
22380
22381fi
22382
22383done
22384
cristycd4c5312009-11-22 01:19:08 +000022385
22386
22387
22388
22389
22390
22391
cristy3ed852e2009-09-05 21:47:34 +000022392for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022393do :
22394 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22395if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022396 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022397#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022398_ACEOF
22399
22400fi
22401done
22402
cristy8b350f62009-11-15 23:12:43 +000022403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000022404$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022405if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022406 $as_echo_n "(cached) " >&6
22407else
cristy8b350f62009-11-15 23:12:43 +000022408 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022409 ac_cv_func_mmap_fixed_mapped=no
22410else
cristy8b350f62009-11-15 23:12:43 +000022411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022412/* end confdefs.h. */
22413$ac_includes_default
22414/* malloc might have been renamed as rpl_malloc. */
22415#undef malloc
22416
22417/* Thanks to Mike Haertel and Jim Avera for this test.
22418 Here is a matrix of mmap possibilities:
22419 mmap private not fixed
22420 mmap private fixed at somewhere currently unmapped
22421 mmap private fixed at somewhere already mapped
22422 mmap shared not fixed
22423 mmap shared fixed at somewhere currently unmapped
22424 mmap shared fixed at somewhere already mapped
22425 For private mappings, we should verify that changes cannot be read()
22426 back from the file, nor mmap's back from the file at a different
22427 address. (There have been systems where private was not correctly
22428 implemented like the infamous i386 svr4.0, and systems where the
22429 VM page cache was not coherent with the file system buffer cache
22430 like early versions of FreeBSD and possibly contemporary NetBSD.)
22431 For shared mappings, we should conversely verify that changes get
22432 propagated back to all the places they're supposed to be.
22433
22434 Grep wants private fixed already mapped.
22435 The main things grep needs to know about mmap are:
22436 * does it exist and is it safe to write into the mmap'd area
22437 * how to use it (BSD variants) */
22438
22439#include <fcntl.h>
22440#include <sys/mman.h>
22441
22442#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22443char *malloc ();
22444#endif
22445
22446/* This mess was copied from the GNU getpagesize.h. */
22447#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000022448# ifdef _SC_PAGESIZE
22449# define getpagesize() sysconf(_SC_PAGESIZE)
22450# else /* no _SC_PAGESIZE */
22451# ifdef HAVE_SYS_PARAM_H
22452# include <sys/param.h>
22453# ifdef EXEC_PAGESIZE
22454# define getpagesize() EXEC_PAGESIZE
22455# else /* no EXEC_PAGESIZE */
22456# ifdef NBPG
22457# define getpagesize() NBPG * CLSIZE
22458# ifndef CLSIZE
22459# define CLSIZE 1
22460# endif /* no CLSIZE */
22461# else /* no NBPG */
22462# ifdef NBPC
22463# define getpagesize() NBPC
22464# else /* no NBPC */
22465# ifdef PAGESIZE
22466# define getpagesize() PAGESIZE
22467# endif /* PAGESIZE */
22468# endif /* no NBPC */
22469# endif /* no NBPG */
22470# endif /* no EXEC_PAGESIZE */
22471# else /* no HAVE_SYS_PARAM_H */
22472# define getpagesize() 8192 /* punt totally */
22473# endif /* no HAVE_SYS_PARAM_H */
22474# endif /* no _SC_PAGESIZE */
22475
22476#endif /* no HAVE_GETPAGESIZE */
22477
22478int
22479main ()
22480{
22481 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000022482 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000022483 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000022484 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000022485
22486 pagesize = getpagesize ();
22487
22488 /* First, make a file with some known garbage in it. */
22489 data = (char *) malloc (pagesize);
22490 if (!data)
22491 return 1;
22492 for (i = 0; i < pagesize; ++i)
22493 *(data + i) = rand ();
22494 umask (0);
22495 fd = creat ("conftest.mmap", 0600);
22496 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022497 return 2;
cristy3ed852e2009-09-05 21:47:34 +000022498 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022499 return 3;
cristy3ed852e2009-09-05 21:47:34 +000022500 close (fd);
22501
cristycd4c5312009-11-22 01:19:08 +000022502 /* Next, check that the tail of a page is zero-filled. File must have
22503 non-zero length, otherwise we risk SIGBUS for entire page. */
22504 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22505 if (fd2 < 0)
22506 return 4;
cristyc54f5d42009-11-27 21:36:31 +000022507 cdata2 = "";
22508 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000022509 return 5;
cristyc54f5d42009-11-27 21:36:31 +000022510 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000022511 if (data2 == MAP_FAILED)
22512 return 6;
22513 for (i = 0; i < pagesize; ++i)
22514 if (*(data2 + i))
22515 return 7;
22516 close (fd2);
22517 if (munmap (data2, pagesize))
22518 return 8;
22519
cristy3ed852e2009-09-05 21:47:34 +000022520 /* Next, try to mmap the file at a fixed address which already has
22521 something else allocated at it. If we can, also make sure that
22522 we see the same garbage. */
22523 fd = open ("conftest.mmap", O_RDWR);
22524 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022525 return 9;
cristy3ed852e2009-09-05 21:47:34 +000022526 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22527 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000022528 return 10;
cristy3ed852e2009-09-05 21:47:34 +000022529 for (i = 0; i < pagesize; ++i)
22530 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000022531 return 11;
cristy3ed852e2009-09-05 21:47:34 +000022532
22533 /* Finally, make sure that changes to the mapped area do not
22534 percolate back to the file as seen by read(). (This is a bug on
22535 some variants of i386 svr4.0.) */
22536 for (i = 0; i < pagesize; ++i)
22537 *(data2 + i) = *(data2 + i) + 1;
22538 data3 = (char *) malloc (pagesize);
22539 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000022540 return 12;
cristy3ed852e2009-09-05 21:47:34 +000022541 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022542 return 13;
cristy3ed852e2009-09-05 21:47:34 +000022543 for (i = 0; i < pagesize; ++i)
22544 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000022545 return 14;
cristy3ed852e2009-09-05 21:47:34 +000022546 close (fd);
22547 return 0;
22548}
22549_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022550if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022551 ac_cv_func_mmap_fixed_mapped=yes
22552else
cristy8b350f62009-11-15 23:12:43 +000022553 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000022554fi
cristy8b350f62009-11-15 23:12:43 +000022555rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22556 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022557fi
22558
cristy3ed852e2009-09-05 21:47:34 +000022559fi
cristy8b350f62009-11-15 23:12:43 +000022560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000022561$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22562if test $ac_cv_func_mmap_fixed_mapped = yes; then
22563
cristy8b350f62009-11-15 23:12:43 +000022564$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022565
22566fi
cristycd4c5312009-11-22 01:19:08 +000022567rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000022568
cristy3ed852e2009-09-05 21:47:34 +000022569for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000022570do :
22571 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22572if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022573 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022574#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000022575_ACEOF
22576
22577fi
22578
22579done
22580
cristy3ed852e2009-09-05 21:47:34 +000022581for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000022582do :
22583 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22584ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyf6fcb5d2010-09-24 01:19:13 +000022585eval as_val=\$$as_ac_var
22586 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022587 cat >>confdefs.h <<_ACEOF
22588#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22589_ACEOF
22590
22591fi
22592done
22593
22594if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022596$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022597if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022598 $as_echo_n "(cached) " >&6
22599else
cristy8b350f62009-11-15 23:12:43 +000022600 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022601 ac_cv_func_fork_works=cross
22602else
cristy8b350f62009-11-15 23:12:43 +000022603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022604/* end confdefs.h. */
22605$ac_includes_default
22606int
22607main ()
22608{
22609
22610 /* By Ruediger Kuhlmann. */
22611 return fork () < 0;
22612
22613 ;
22614 return 0;
22615}
22616_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022617if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022618 ac_cv_func_fork_works=yes
22619else
cristy8b350f62009-11-15 23:12:43 +000022620 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022621fi
cristy8b350f62009-11-15 23:12:43 +000022622rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22623 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022624fi
22625
cristy3ed852e2009-09-05 21:47:34 +000022626fi
cristy8b350f62009-11-15 23:12:43 +000022627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022628$as_echo "$ac_cv_func_fork_works" >&6; }
22629
22630else
22631 ac_cv_func_fork_works=$ac_cv_func_fork
22632fi
22633if test "x$ac_cv_func_fork_works" = xcross; then
22634 case $host in
22635 *-*-amigaos* | *-*-msdosdjgpp*)
22636 # Override, as these systems have only a dummy fork() stub
22637 ac_cv_func_fork_works=no
22638 ;;
22639 *)
22640 ac_cv_func_fork_works=yes
22641 ;;
22642 esac
cristy8b350f62009-11-15 23:12:43 +000022643 { $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 +000022644$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22645fi
22646ac_cv_func_vfork_works=$ac_cv_func_vfork
22647if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022649$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022650if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022651 $as_echo_n "(cached) " >&6
22652else
cristy8b350f62009-11-15 23:12:43 +000022653 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022654 ac_cv_func_vfork_works=cross
22655else
cristy8b350f62009-11-15 23:12:43 +000022656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022657/* end confdefs.h. */
22658/* Thanks to Paul Eggert for this test. */
22659$ac_includes_default
22660#include <sys/wait.h>
22661#ifdef HAVE_VFORK_H
22662# include <vfork.h>
22663#endif
22664/* On some sparc systems, changes by the child to local and incoming
22665 argument registers are propagated back to the parent. The compiler
22666 is told about this with #include <vfork.h>, but some compilers
22667 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22668 static variable whose address is put into a register that is
22669 clobbered by the vfork. */
22670static void
22671#ifdef __cplusplus
22672sparc_address_test (int arg)
22673# else
22674sparc_address_test (arg) int arg;
22675#endif
22676{
22677 static pid_t child;
22678 if (!child) {
22679 child = vfork ();
22680 if (child < 0) {
22681 perror ("vfork");
22682 _exit(2);
22683 }
22684 if (!child) {
22685 arg = getpid();
22686 write(-1, "", 0);
22687 _exit (arg);
22688 }
22689 }
22690}
22691
22692int
22693main ()
22694{
22695 pid_t parent = getpid ();
22696 pid_t child;
22697
22698 sparc_address_test (0);
22699
22700 child = vfork ();
22701
22702 if (child == 0) {
22703 /* Here is another test for sparc vfork register problems. This
22704 test uses lots of local variables, at least as many local
22705 variables as main has allocated so far including compiler
22706 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22707 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22708 reuse the register of parent for one of the local variables,
22709 since it will think that parent can't possibly be used any more
22710 in this routine. Assigning to the local variable will thus
22711 munge parent in the parent process. */
22712 pid_t
22713 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22714 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22715 /* Convince the compiler that p..p7 are live; otherwise, it might
22716 use the same hardware register for all 8 local variables. */
22717 if (p != p1 || p != p2 || p != p3 || p != p4
22718 || p != p5 || p != p6 || p != p7)
22719 _exit(1);
22720
22721 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22722 from child file descriptors. If the child closes a descriptor
22723 before it execs or exits, this munges the parent's descriptor
22724 as well. Test for this by closing stdout in the child. */
22725 _exit(close(fileno(stdout)) != 0);
22726 } else {
22727 int status;
22728 struct stat st;
22729
22730 while (wait(&status) != child)
22731 ;
22732 return (
22733 /* Was there some problem with vforking? */
22734 child < 0
22735
22736 /* Did the child fail? (This shouldn't happen.) */
22737 || status
22738
22739 /* Did the vfork/compiler bug occur? */
22740 || parent != getpid()
22741
22742 /* Did the file descriptor bug occur? */
22743 || fstat(fileno(stdout), &st) != 0
22744 );
22745 }
22746}
22747_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022748if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022749 ac_cv_func_vfork_works=yes
22750else
cristy8b350f62009-11-15 23:12:43 +000022751 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022752fi
cristy8b350f62009-11-15 23:12:43 +000022753rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22754 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022755fi
22756
cristy3ed852e2009-09-05 21:47:34 +000022757fi
cristy8b350f62009-11-15 23:12:43 +000022758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022759$as_echo "$ac_cv_func_vfork_works" >&6; }
22760
22761fi;
22762if test "x$ac_cv_func_fork_works" = xcross; then
22763 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022764 { $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 +000022765$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22766fi
22767
22768if test "x$ac_cv_func_vfork_works" = xyes; then
22769
cristy8b350f62009-11-15 23:12:43 +000022770$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022771
22772else
22773
cristy8b350f62009-11-15 23:12:43 +000022774$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022775
22776fi
22777if test "x$ac_cv_func_fork_works" = xyes; then
22778
cristy8b350f62009-11-15 23:12:43 +000022779$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022780
22781fi
22782
cristy8b350f62009-11-15 23:12:43 +000022783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022784$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022785if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022786 $as_echo_n "(cached) " >&6
22787else
cristy8b350f62009-11-15 23:12:43 +000022788 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022789 ac_cv_func_memcmp_working=no
22790else
cristy8b350f62009-11-15 23:12:43 +000022791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022792/* end confdefs.h. */
22793$ac_includes_default
22794int
22795main ()
22796{
22797
22798 /* Some versions of memcmp are not 8-bit clean. */
22799 char c0 = '\100', c1 = '\200', c2 = '\201';
22800 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22801 return 1;
22802
22803 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22804 or more and with at least one buffer not starting on a 4-byte boundary.
22805 William Lewis provided this test program. */
22806 {
22807 char foo[21];
22808 char bar[21];
22809 int i;
22810 for (i = 0; i < 4; i++)
22811 {
22812 char *a = foo + i;
22813 char *b = bar + i;
22814 strcpy (a, "--------01111111");
22815 strcpy (b, "--------10000000");
22816 if (memcmp (a, b, 16) >= 0)
22817 return 1;
22818 }
22819 return 0;
22820 }
22821
22822 ;
22823 return 0;
22824}
22825_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022826if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022827 ac_cv_func_memcmp_working=yes
22828else
cristy8b350f62009-11-15 23:12:43 +000022829 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000022830fi
cristy8b350f62009-11-15 23:12:43 +000022831rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22832 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022833fi
22834
cristy3ed852e2009-09-05 21:47:34 +000022835fi
cristy8b350f62009-11-15 23:12:43 +000022836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000022837$as_echo "$ac_cv_func_memcmp_working" >&6; }
22838test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22839 *" memcmp.$ac_objext "* ) ;;
22840 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22841 ;;
22842esac
22843
22844
cristy3ed852e2009-09-05 21:47:34 +000022845for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000022846do :
22847 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22848ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyf6fcb5d2010-09-24 01:19:13 +000022849eval as_val=\$$as_ac_Header
22850 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022851 cat >>confdefs.h <<_ACEOF
22852#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22853_ACEOF
22854
22855fi
22856
22857done
22858
cristy8b350f62009-11-15 23:12:43 +000022859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000022860$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022861if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022862 $as_echo_n "(cached) " >&6
22863else
22864 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22865 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22866 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000022867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022868/* end confdefs.h. */
22869$ac_includes_default
22870#ifdef HAVE_SYS_SELECT_H
22871# include <sys/select.h>
22872#endif
22873#ifdef HAVE_SYS_SOCKET_H
22874# include <sys/socket.h>
22875#endif
22876
22877int
22878main ()
22879{
22880extern int select ($ac_arg1,
22881 $ac_arg234, $ac_arg234, $ac_arg234,
22882 $ac_arg5);
22883 ;
22884 return 0;
22885}
22886_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022887if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022888 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000022889fi
cristy3ed852e2009-09-05 21:47:34 +000022890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22891 done
22892 done
22893done
22894# Provide a safe default value.
22895: ${ac_cv_func_select_args='int,int *,struct timeval *'}
22896
22897fi
cristy8b350f62009-11-15 23:12:43 +000022898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000022899$as_echo "$ac_cv_func_select_args" >&6; }
22900ac_save_IFS=$IFS; IFS=','
22901set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22902IFS=$ac_save_IFS
22903shift
22904
22905cat >>confdefs.h <<_ACEOF
22906#define SELECT_TYPE_ARG1 $1
22907_ACEOF
22908
22909
22910cat >>confdefs.h <<_ACEOF
22911#define SELECT_TYPE_ARG234 ($2)
22912_ACEOF
22913
22914
22915cat >>confdefs.h <<_ACEOF
22916#define SELECT_TYPE_ARG5 ($3)
22917_ACEOF
22918
22919rm -f conftest*
22920
cristy8b350f62009-11-15 23:12:43 +000022921if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022922 $as_echo_n "(cached) " >&6
22923else
22924 ac_cv_func_setvbuf_reversed=no
22925fi
22926
22927
cristy8b350f62009-11-15 23:12:43 +000022928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000022929$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022930if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022931 $as_echo_n "(cached) " >&6
22932else
cristy8b350f62009-11-15 23:12:43 +000022933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022934/* end confdefs.h. */
22935#include <sys/types.h>
22936#include <signal.h>
22937
22938int
22939main ()
22940{
22941return *(signal (0, 0)) (0) == 1;
22942 ;
22943 return 0;
22944}
22945_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022946if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022947 ac_cv_type_signal=int
22948else
cristy8b350f62009-11-15 23:12:43 +000022949 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000022950fi
cristy3ed852e2009-09-05 21:47:34 +000022951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22952fi
cristy8b350f62009-11-15 23:12:43 +000022953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000022954$as_echo "$ac_cv_type_signal" >&6; }
22955
22956cat >>confdefs.h <<_ACEOF
22957#define RETSIGTYPE $ac_cv_type_signal
22958_ACEOF
22959
22960
cristy8b350f62009-11-15 23:12:43 +000022961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022962$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022963if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022964 $as_echo_n "(cached) " >&6
22965else
cristy8b350f62009-11-15 23:12:43 +000022966 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022967 ac_cv_func_strtod=no
22968else
cristy8b350f62009-11-15 23:12:43 +000022969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022970/* end confdefs.h. */
22971
22972$ac_includes_default
22973#ifndef strtod
22974double strtod ();
22975#endif
22976int
22977main()
22978{
22979 {
22980 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
22981 char *string = " +69";
22982 char *term;
22983 double value;
22984 value = strtod (string, &term);
22985 if (value != 69 || term != (string + 4))
22986 return 1;
22987 }
22988
22989 {
22990 /* Under Solaris 2.4, strtod returns the wrong value for the
22991 terminating character under some conditions. */
22992 char *string = "NaN";
22993 char *term;
22994 strtod (string, &term);
22995 if (term != string && *(term - 1) == 0)
22996 return 1;
22997 }
22998 return 0;
22999}
23000
23001_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023002if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023003 ac_cv_func_strtod=yes
23004else
cristy8b350f62009-11-15 23:12:43 +000023005 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000023006fi
cristy8b350f62009-11-15 23:12:43 +000023007rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23008 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023009fi
23010
cristy3ed852e2009-09-05 21:47:34 +000023011fi
cristy8b350f62009-11-15 23:12:43 +000023012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023013$as_echo "$ac_cv_func_strtod" >&6; }
23014if test $ac_cv_func_strtod = no; then
23015 case " $LIBOBJS " in
23016 *" strtod.$ac_objext "* ) ;;
23017 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23018 ;;
23019esac
23020
cristy8b350f62009-11-15 23:12:43 +000023021ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
23022if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023023
cristy3ed852e2009-09-05 21:47:34 +000023024fi
23025
cristy3ed852e2009-09-05 21:47:34 +000023026if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023028$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023029if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023030 $as_echo_n "(cached) " >&6
23031else
23032 ac_check_lib_save_LIBS=$LIBS
23033LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023035/* end confdefs.h. */
23036
23037/* Override any GCC internal prototype to avoid an error.
23038 Use char because int might match the return type of a GCC
23039 builtin and then its argument prototype would still apply. */
23040#ifdef __cplusplus
23041extern "C"
23042#endif
23043char pow ();
23044int
23045main ()
23046{
23047return pow ();
23048 ;
23049 return 0;
23050}
23051_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023052if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023053 ac_cv_lib_m_pow=yes
23054else
cristy8b350f62009-11-15 23:12:43 +000023055 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023056fi
cristy8b350f62009-11-15 23:12:43 +000023057rm -f core conftest.err conftest.$ac_objext \
23058 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023059LIBS=$ac_check_lib_save_LIBS
23060fi
cristy8b350f62009-11-15 23:12:43 +000023061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023062$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023063if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023064 POW_LIB=-lm
23065else
cristy8b350f62009-11-15 23:12:43 +000023066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023067$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23068fi
23069
23070fi
23071
23072fi
23073
cristy3ed852e2009-09-05 21:47:34 +000023074for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023075do :
23076 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23077if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023078 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023079#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023080_ACEOF
23081
cristy8b350f62009-11-15 23:12:43 +000023082ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23083if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023084
cristy8b350f62009-11-15 23:12:43 +000023085$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023086
23087fi
23088
23089fi
23090done
23091
23092
23093
cristy161b9262010-03-20 19:34:32 +000023094#
23095# Find math library
23096#
23097MATH_LIBS=''
23098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23099$as_echo_n "checking for sqrt in -lm... " >&6; }
23100if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23101 $as_echo_n "(cached) " >&6
23102else
23103 ac_check_lib_save_LIBS=$LIBS
23104LIBS="-lm $LIBS"
23105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23106/* end confdefs.h. */
23107
23108/* Override any GCC internal prototype to avoid an error.
23109 Use char because int might match the return type of a GCC
23110 builtin and then its argument prototype would still apply. */
23111#ifdef __cplusplus
23112extern "C"
23113#endif
23114char sqrt ();
23115int
23116main ()
23117{
23118return sqrt ();
23119 ;
23120 return 0;
23121}
23122_ACEOF
23123if ac_fn_c_try_link "$LINENO"; then :
23124 ac_cv_lib_m_sqrt=yes
23125else
23126 ac_cv_lib_m_sqrt=no
23127fi
23128rm -f core conftest.err conftest.$ac_objext \
23129 conftest$ac_exeext conftest.$ac_ext
23130LIBS=$ac_check_lib_save_LIBS
23131fi
23132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23133$as_echo "$ac_cv_lib_m_sqrt" >&6; }
23134if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23135 MATH_LIBS="-lm"
23136fi
23137
23138LIBS="$MATH_LIBS $LIBS"
23139
23140
cristyf1897e32010-08-29 19:59:09 +000023141for 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 +000023142do :
23143 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23144ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyf6fcb5d2010-09-24 01:19:13 +000023145eval as_val=\$$as_ac_var
23146 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023147 cat >>confdefs.h <<_ACEOF
23148#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23149_ACEOF
23150
23151fi
23152done
23153
23154
cristye43a45e2009-09-28 14:49:00 +000023155#
23156# Check for clock_gettime().
23157#
cristy8b350f62009-11-15 23:12:43 +000023158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023159$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023160if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023161 $as_echo_n "(cached) " >&6
23162else
23163 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023165/* end confdefs.h. */
23166
23167/* Override any GCC internal prototype to avoid an error.
23168 Use char because int might match the return type of a GCC
23169 builtin and then its argument prototype would still apply. */
23170#ifdef __cplusplus
23171extern "C"
23172#endif
23173char clock_gettime ();
23174int
23175main ()
23176{
23177return clock_gettime ();
23178 ;
23179 return 0;
23180}
23181_ACEOF
23182for ac_lib in '' rt; do
23183 if test -z "$ac_lib"; then
23184 ac_res="none required"
23185 else
23186 ac_res=-l$ac_lib
23187 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23188 fi
cristy8b350f62009-11-15 23:12:43 +000023189 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023190 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000023191fi
cristy8b350f62009-11-15 23:12:43 +000023192rm -f core conftest.err conftest.$ac_objext \
23193 conftest$ac_exeext
23194 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023195 break
23196fi
23197done
cristy8b350f62009-11-15 23:12:43 +000023198if test "${ac_cv_search_clock_gettime+set}" = set; then :
23199
cristye43a45e2009-09-28 14:49:00 +000023200else
23201 ac_cv_search_clock_gettime=no
23202fi
23203rm conftest.$ac_ext
23204LIBS=$ac_func_search_save_LIBS
23205fi
cristy8b350f62009-11-15 23:12:43 +000023206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023207$as_echo "$ac_cv_search_clock_gettime" >&6; }
23208ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000023209if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000023210 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23211
23212
cristy8b350f62009-11-15 23:12:43 +000023213$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023214
cristy8b350f62009-11-15 23:12:43 +000023215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000023216$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023218/* end confdefs.h. */
23219#include <time.h>
23220int
23221main ()
23222{
23223clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000023224 ;
23225 return 0;
23226}
23227_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023228if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023229
cristy8b350f62009-11-15 23:12:43 +000023230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000023231$as_echo "yes" >&6; }
23232
cristy8b350f62009-11-15 23:12:43 +000023233$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023234
23235
23236else
cristy8b350f62009-11-15 23:12:43 +000023237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000023238$as_echo "no" >&6; }
23239
23240fi
cristye43a45e2009-09-28 14:49:00 +000023241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23242
23243else
23244
cristy8b350f62009-11-15 23:12:43 +000023245 for ac_func in gettimeofday ftime
23246do :
23247 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23248ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyf6fcb5d2010-09-24 01:19:13 +000023249eval as_val=\$$as_ac_var
23250 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000023251 cat >>confdefs.h <<_ACEOF
23252#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23253_ACEOF
23254 break
23255fi
23256done
23257
23258
23259
23260fi
23261
23262
cristy3ed852e2009-09-05 21:47:34 +000023263########
23264#
23265# Check for function prototypes
23266#
23267########
23268
cristy8b350f62009-11-15 23:12:43 +000023269ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000023270#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023271"
23272if test "x$ac_cv_have_decl_pread" = x""yes; then :
23273 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023274else
cristy8b350f62009-11-15 23:12:43 +000023275 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023276fi
23277
cristy3ed852e2009-09-05 21:47:34 +000023278cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023279#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023280_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023281ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000023282#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023283"
23284if test "x$ac_cv_have_decl_pwrite" = 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_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023292_ACEOF
23293
23294
cristy8b350f62009-11-15 23:12:43 +000023295ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000023296#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000023297"
23298if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23299 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023300else
cristy8b350f62009-11-15 23:12:43 +000023301 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023302fi
23303
cristy3ed852e2009-09-05 21:47:34 +000023304cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023305#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023306_ACEOF
23307
23308
cristy8b350f62009-11-15 23:12:43 +000023309ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000023310#include <stdio.h>
23311#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000023312"
23313if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23314 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023315else
cristy8b350f62009-11-15 23:12:43 +000023316 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023317fi
23318
cristy3ed852e2009-09-05 21:47:34 +000023319cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023320#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023321_ACEOF
23322
23323
cristy3ed852e2009-09-05 21:47:34 +000023324########
23325#
23326# C++ Support Tests (For Magick++)
23327#
23328########
23329have_magick_plus_plus='no'
23330if test "$with_magick_plus_plus" = 'yes'; then
23331 OLIBS="$LIBS"
23332 LIBS=''
23333 ac_ext=cpp
23334ac_cpp='$CXXCPP $CPPFLAGS'
23335ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23336ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23337ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23338
23339
23340 # Full set of headers used...
23341 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23342 # functional iomanip iosfwd iostream iterator list string strstream utility
23343 ac_ext=cpp
23344ac_cpp='$CXXCPP $CPPFLAGS'
23345ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23346ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23347ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23348
23349 ac_ext=cpp
23350ac_cpp='$CXXCPP $CPPFLAGS'
23351ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23352ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23353ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23354if test -z "$CXX"; then
23355 if test -n "$CCC"; then
23356 CXX=$CCC
23357 else
23358 if test -n "$ac_tool_prefix"; then
23359 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23360 do
23361 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23362set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023364$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023365if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023366 $as_echo_n "(cached) " >&6
23367else
23368 if test -n "$CXX"; then
23369 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23370else
23371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23372for as_dir in $PATH
23373do
23374 IFS=$as_save_IFS
23375 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023376 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23378 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023380 break 2
23381 fi
23382done
cristy8b350f62009-11-15 23:12:43 +000023383 done
cristy3ed852e2009-09-05 21:47:34 +000023384IFS=$as_save_IFS
23385
23386fi
23387fi
23388CXX=$ac_cv_prog_CXX
23389if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023391$as_echo "$CXX" >&6; }
23392else
cristy8b350f62009-11-15 23:12:43 +000023393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023394$as_echo "no" >&6; }
23395fi
23396
23397
23398 test -n "$CXX" && break
23399 done
23400fi
23401if test -z "$CXX"; then
23402 ac_ct_CXX=$CXX
23403 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23404do
23405 # Extract the first word of "$ac_prog", so it can be a program name with args.
23406set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023408$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023409if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023410 $as_echo_n "(cached) " >&6
23411else
23412 if test -n "$ac_ct_CXX"; then
23413 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23414else
23415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23416for as_dir in $PATH
23417do
23418 IFS=$as_save_IFS
23419 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023420 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23422 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023424 break 2
23425 fi
23426done
cristy8b350f62009-11-15 23:12:43 +000023427 done
cristy3ed852e2009-09-05 21:47:34 +000023428IFS=$as_save_IFS
23429
23430fi
23431fi
23432ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23433if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023435$as_echo "$ac_ct_CXX" >&6; }
23436else
cristy8b350f62009-11-15 23:12:43 +000023437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023438$as_echo "no" >&6; }
23439fi
23440
23441
23442 test -n "$ac_ct_CXX" && break
23443done
23444
23445 if test "x$ac_ct_CXX" = x; then
23446 CXX="g++"
23447 else
23448 case $cross_compiling:$ac_tool_warned in
23449yes:)
cristy8b350f62009-11-15 23:12:43 +000023450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23452ac_tool_warned=yes ;;
23453esac
23454 CXX=$ac_ct_CXX
23455 fi
23456fi
23457
23458 fi
23459fi
23460# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000023461$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000023462set X $ac_compile
23463ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000023464for ac_option in --version -v -V -qversion; do
23465 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000023466case "(($ac_try" in
23467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23468 *) ac_try_echo=$ac_try;;
23469esac
cristy8b350f62009-11-15 23:12:43 +000023470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23471$as_echo "$ac_try_echo"; } >&5
23472 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000023473 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000023474 if test -s conftest.err; then
23475 sed '10a\
23476... rest of stderr output deleted ...
23477 10q' conftest.err >conftest.er1
23478 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000023479 fi
cristycd4c5312009-11-22 01:19:08 +000023480 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000023481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23482 test $ac_status = 0; }
23483done
cristy3ed852e2009-09-05 21:47:34 +000023484
cristy8b350f62009-11-15 23:12:43 +000023485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000023486$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023487if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023488 $as_echo_n "(cached) " >&6
23489else
cristy8b350f62009-11-15 23:12:43 +000023490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023491/* end confdefs.h. */
23492
23493int
23494main ()
23495{
23496#ifndef __GNUC__
23497 choke me
23498#endif
23499
23500 ;
23501 return 0;
23502}
23503_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023504if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023505 ac_compiler_gnu=yes
23506else
cristy8b350f62009-11-15 23:12:43 +000023507 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000023508fi
cristy3ed852e2009-09-05 21:47:34 +000023509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23510ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23511
23512fi
cristy8b350f62009-11-15 23:12:43 +000023513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000023514$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23515if test $ac_compiler_gnu = yes; then
23516 GXX=yes
23517else
23518 GXX=
23519fi
23520ac_test_CXXFLAGS=${CXXFLAGS+set}
23521ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000023522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023523$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023524if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023525 $as_echo_n "(cached) " >&6
23526else
23527 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23528 ac_cxx_werror_flag=yes
23529 ac_cv_prog_cxx_g=no
23530 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023532/* end confdefs.h. */
23533
23534int
23535main ()
23536{
23537
23538 ;
23539 return 0;
23540}
23541_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023542if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023543 ac_cv_prog_cxx_g=yes
23544else
cristy8b350f62009-11-15 23:12:43 +000023545 CXXFLAGS=""
23546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023547/* end confdefs.h. */
23548
23549int
23550main ()
23551{
23552
23553 ;
23554 return 0;
23555}
23556_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023557if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023558
cristy8b350f62009-11-15 23:12:43 +000023559else
23560 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000023561 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023563/* end confdefs.h. */
23564
23565int
23566main ()
23567{
23568
23569 ;
23570 return 0;
23571}
23572_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023573if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023574 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000023575fi
cristy3ed852e2009-09-05 21:47:34 +000023576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23577fi
cristy3ed852e2009-09-05 21:47:34 +000023578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23579fi
cristy3ed852e2009-09-05 21:47:34 +000023580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23581 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23582fi
cristy8b350f62009-11-15 23:12:43 +000023583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023584$as_echo "$ac_cv_prog_cxx_g" >&6; }
23585if test "$ac_test_CXXFLAGS" = set; then
23586 CXXFLAGS=$ac_save_CXXFLAGS
23587elif test $ac_cv_prog_cxx_g = yes; then
23588 if test "$GXX" = yes; then
23589 CXXFLAGS="-g -O2"
23590 else
23591 CXXFLAGS="-g"
23592 fi
23593else
23594 if test "$GXX" = yes; then
23595 CXXFLAGS="-O2"
23596 else
23597 CXXFLAGS=
23598 fi
23599fi
23600ac_ext=cpp
23601ac_cpp='$CXXCPP $CPPFLAGS'
23602ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23603ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23604ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23605
23606depcc="$CXX" am_compiler_list=
23607
cristy8b350f62009-11-15 23:12:43 +000023608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023609$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023610if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023611 $as_echo_n "(cached) " >&6
23612else
23613 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23614 # We make a subdir and do the tests there. Otherwise we can end up
23615 # making bogus files that we don't know about and never remove. For
23616 # instance it was reported that on HP-UX the gcc test will end up
23617 # making a dummy file named `D' -- because `-MD' means `put the output
23618 # in D'.
23619 mkdir conftest.dir
23620 # Copy depcomp to subdir because otherwise we won't find it if we're
23621 # using a relative directory.
23622 cp "$am_depcomp" conftest.dir
23623 cd conftest.dir
23624 # We will build objects and dependencies in a subdirectory because
23625 # it helps to detect inapplicable dependency modes. For instance
23626 # both Tru64's cc and ICC support -MD to output dependencies as a
23627 # side effect of compilation, but ICC will put the dependencies in
23628 # the current directory while Tru64 will put them in the object
23629 # directory.
23630 mkdir sub
23631
23632 am_cv_CXX_dependencies_compiler_type=none
23633 if test "$am_compiler_list" = ""; then
23634 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23635 fi
23636 am__universal=false
23637 case " $depcc " in #(
23638 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23639 esac
23640
23641 for depmode in $am_compiler_list; do
23642 # Setup a source with many dependencies, because some compilers
23643 # like to wrap large dependency lists on column 80 (with \), and
23644 # we should not choose a depcomp mode which is confused by this.
23645 #
23646 # We need to recreate these files for each test, as the compiler may
23647 # overwrite some of them when testing with obscure command lines.
23648 # This happens at least with the AIX C compiler.
23649 : > sub/conftest.c
23650 for i in 1 2 3 4 5 6; do
23651 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23652 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23653 # Solaris 8's {/usr,}/bin/sh.
23654 touch sub/conftst$i.h
23655 done
23656 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23657
23658 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23659 # mode. It turns out that the SunPro C++ compiler does not properly
23660 # handle `-M -o', and we need to detect this. Also, some Intel
23661 # versions had trouble with output in subdirs
23662 am__obj=sub/conftest.${OBJEXT-o}
23663 am__minus_obj="-o $am__obj"
23664 case $depmode in
23665 gcc)
23666 # This depmode causes a compiler race in universal mode.
23667 test "$am__universal" = false || continue
23668 ;;
23669 nosideeffect)
23670 # after this tag, mechanisms are not by side-effect, so they'll
23671 # only be used when explicitly requested
23672 if test "x$enable_dependency_tracking" = xyes; then
23673 continue
23674 else
23675 break
23676 fi
23677 ;;
23678 msvisualcpp | msvcmsys)
23679 # This compiler won't grok `-c -o', but also, the minuso test has
23680 # not run yet. These depmodes are late enough in the game, and
23681 # so weak that their functioning should not be impacted.
23682 am__obj=conftest.${OBJEXT-o}
23683 am__minus_obj=
23684 ;;
23685 none) break ;;
23686 esac
23687 if depmode=$depmode \
23688 source=sub/conftest.c object=$am__obj \
23689 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23690 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23691 >/dev/null 2>conftest.err &&
23692 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23693 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23694 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23695 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23696 # icc doesn't choke on unknown options, it will just issue warnings
23697 # or remarks (even with -Werror). So we grep stderr for any message
23698 # that says an option was ignored or not supported.
23699 # When given -MP, icc 7.0 and 7.1 complain thusly:
23700 # icc: Command line warning: ignoring option '-M'; no argument required
23701 # The diagnosis changed in icc 8.0:
23702 # icc: Command line remark: option '-MP' not supported
23703 if (grep 'ignoring option' conftest.err ||
23704 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23705 am_cv_CXX_dependencies_compiler_type=$depmode
23706 break
23707 fi
23708 fi
23709 done
23710
23711 cd ..
23712 rm -rf conftest.dir
23713else
23714 am_cv_CXX_dependencies_compiler_type=none
23715fi
23716
23717fi
cristy8b350f62009-11-15 23:12:43 +000023718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023719$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23720CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23721
23722 if
23723 test "x$enable_dependency_tracking" != xno \
23724 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23725 am__fastdepCXX_TRUE=
23726 am__fastdepCXX_FALSE='#'
23727else
23728 am__fastdepCXX_TRUE='#'
23729 am__fastdepCXX_FALSE=
23730fi
23731
23732
cristy8b350f62009-11-15 23:12:43 +000023733 { $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 +000023734$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023735if test "${ax_cv_cxx_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023736 $as_echo_n "(cached) " >&6
23737else
23738
23739 ac_ext=cpp
23740ac_cpp='$CXXCPP $CPPFLAGS'
23741ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23742ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23743ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23744
cristy8b350f62009-11-15 23:12:43 +000023745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023746/* end confdefs.h. */
23747
23748int f(int x){return 1;}
23749int f(char x){return 1;}
23750int f(bool x){return 1;}
23751
23752int
23753main ()
23754{
23755bool b = true; return f(b);
23756 ;
23757 return 0;
23758}
23759_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023760if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023761 ax_cv_cxx_bool=yes
cristy3ed852e2009-09-05 21:47:34 +000023762else
cristy964cb7f2010-04-25 23:18:00 +000023763 ax_cv_cxx_bool=no
cristy3ed852e2009-09-05 21:47:34 +000023764fi
cristy3ed852e2009-09-05 21:47:34 +000023765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23766 ac_ext=cpp
23767ac_cpp='$CXXCPP $CPPFLAGS'
23768ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23769ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23770ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23771
23772
23773fi
cristy964cb7f2010-04-25 23:18:00 +000023774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23775$as_echo "$ax_cv_cxx_bool" >&6; }
23776if test "$ax_cv_cxx_bool" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023777
cristy8b350f62009-11-15 23:12:43 +000023778$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023779
23780fi
23781
cristy8b350f62009-11-15 23:12:43 +000023782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023783$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023784if test "${ax_cv_cxx_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023785 $as_echo_n "(cached) " >&6
23786else
23787
23788 ac_ext=cpp
23789ac_cpp='$CXXCPP $CPPFLAGS'
23790ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23791ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23792ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23793
cristy8b350f62009-11-15 23:12:43 +000023794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023795/* end confdefs.h. */
23796namespace Outer { namespace Inner { int i = 0; }}
23797int
23798main ()
23799{
23800using namespace Outer::Inner; return i;
23801 ;
23802 return 0;
23803}
23804_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023805if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023806 ax_cv_cxx_namespaces=yes
cristy3ed852e2009-09-05 21:47:34 +000023807else
cristy964cb7f2010-04-25 23:18:00 +000023808 ax_cv_cxx_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000023809fi
cristy3ed852e2009-09-05 21:47:34 +000023810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23811 ac_ext=cpp
23812ac_cpp='$CXXCPP $CPPFLAGS'
23813ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23814ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23815ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23816
23817
23818fi
cristy964cb7f2010-04-25 23:18:00 +000023819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23820$as_echo "$ax_cv_cxx_namespaces" >&6; }
23821if test "$ax_cv_cxx_namespaces" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023822
cristy8b350f62009-11-15 23:12:43 +000023823$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023824
23825fi
23826
cristy964cb7f2010-04-25 23:18:00 +000023827
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
23829$as_echo_n "checking if g++ supports namespace std... " >&6; }
23830if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023831 $as_echo_n "(cached) " >&6
23832else
23833
cristy964cb7f2010-04-25 23:18:00 +000023834 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000023835ac_cpp='$CXXCPP $CPPFLAGS'
23836ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23837ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23838ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23839
cristy964cb7f2010-04-25 23:18:00 +000023840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023841/* end confdefs.h. */
23842#include <iostream>
cristy964cb7f2010-04-25 23:18:00 +000023843 std::istream& is = std::cin;
cristy3ed852e2009-09-05 21:47:34 +000023844int
23845main ()
23846{
cristy964cb7f2010-04-25 23:18:00 +000023847
cristy3ed852e2009-09-05 21:47:34 +000023848 ;
23849 return 0;
23850}
23851_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023852if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023853 ax_cv_cxx_have_std_namespace=yes
cristy3ed852e2009-09-05 21:47:34 +000023854else
cristy964cb7f2010-04-25 23:18:00 +000023855 ax_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000023856fi
cristy3ed852e2009-09-05 21:47:34 +000023857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +000023858 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000023859ac_cpp='$CXXCPP $CPPFLAGS'
23860ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23861ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23862ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23863
23864
23865fi
cristy964cb7f2010-04-25 23:18:00 +000023866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
23867$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
23868 if test "$ax_cv_cxx_have_std_namespace" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023869
cristy964cb7f2010-04-25 23:18:00 +000023870$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023871
cristy964cb7f2010-04-25 23:18:00 +000023872 fi
cristy3ed852e2009-09-05 21:47:34 +000023873
cristy8b350f62009-11-15 23:12:43 +000023874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000023875$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023876if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023877 $as_echo_n "(cached) " >&6
23878else
23879
23880
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
cristy8b350f62009-11-15 23:12:43 +000023887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023888/* end confdefs.h. */
23889#include <iostream>
23890#include <map>
23891#include <iomanip>
23892#include <cmath>
23893#ifdef HAVE_NAMESPACES
23894using namespace std;
23895#endif
23896int
23897main ()
23898{
23899return 0;
23900 ;
23901 return 0;
23902}
23903_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023904if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023905 ac_cv_cxx_have_std_libs=yes
23906else
cristy8b350f62009-11-15 23:12:43 +000023907 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000023908fi
cristy3ed852e2009-09-05 21:47:34 +000023909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23910 ac_ext=cpp
23911ac_cpp='$CXXCPP $CPPFLAGS'
23912ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23913ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23914ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23915
23916
23917fi
cristy8b350f62009-11-15 23:12:43 +000023918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000023919$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
23920if test "$ac_cv_cxx_have_std_libs" = yes; then
23921
cristy8b350f62009-11-15 23:12:43 +000023922$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023923
23924fi
23925
cristy8b350f62009-11-15 23:12:43 +000023926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000023927$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023928if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023929 $as_echo_n "(cached) " >&6
23930else
23931
23932 ac_ext=cpp
23933ac_cpp='$CXXCPP $CPPFLAGS'
23934ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23935ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23936ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23937
cristy8b350f62009-11-15 23:12:43 +000023938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023939/* end confdefs.h. */
23940const wchar_t* s=L"wide string";
23941_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023942if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023943 ac_cv_cxx_have_lstring=yes
23944else
cristy8b350f62009-11-15 23:12:43 +000023945 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000023946fi
cristy3ed852e2009-09-05 21:47:34 +000023947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23948 ac_ext=cpp
23949ac_cpp='$CXXCPP $CPPFLAGS'
23950ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23951ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23952ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23953
23954
23955fi
cristy8b350f62009-11-15 23:12:43 +000023956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000023957$as_echo "$ac_cv_cxx_have_lstring" >&6; }
23958if test "$ac_cv_cxx_have_lstring" = yes; then
23959
cristy8b350f62009-11-15 23:12:43 +000023960$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023961
23962fi
23963
23964
23965 OPENMP_CXXFLAGS=
23966 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000023967if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023968 enableval=$enable_openmp;
23969fi
23970
23971 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000023972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
23973$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023974if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023975 $as_echo_n "(cached) " >&6
23976else
cristy8b350f62009-11-15 23:12:43 +000023977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23978/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023979
23980#ifndef _OPENMP
23981 choke me
23982#endif
23983#include <omp.h>
23984int main () { return omp_get_num_threads (); }
23985
23986_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023987if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023988 ac_cv_prog_cxx_openmp='none needed'
23989else
cristy8b350f62009-11-15 23:12:43 +000023990 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000023991 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
23992 ac_save_CXXFLAGS=$CXXFLAGS
23993 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000023994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23995/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023996
23997#ifndef _OPENMP
23998 choke me
23999#endif
24000#include <omp.h>
24001int main () { return omp_get_num_threads (); }
24002
24003_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024004if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024005 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000024006fi
cristy8b350f62009-11-15 23:12:43 +000024007rm -f core conftest.err conftest.$ac_objext \
24008 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024009 CXXFLAGS=$ac_save_CXXFLAGS
24010 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
24011 break
24012 fi
24013 done
24014fi
cristy8b350f62009-11-15 23:12:43 +000024015rm -f core conftest.err conftest.$ac_objext \
24016 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024017fi
cristy8b350f62009-11-15 23:12:43 +000024018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024019$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24020 case $ac_cv_prog_cxx_openmp in #(
24021 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000024022 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000024023 *)
cristy8b350f62009-11-15 23:12:43 +000024024 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000024025 esac
24026 fi
24027
24028
24029 ac_ext=c
24030ac_cpp='$CPP $CPPFLAGS'
24031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24033ac_compiler_gnu=$ac_cv_c_compiler_gnu
24034
24035
cristy8b350f62009-11-15 23:12:43 +000024036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024037$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24038 if \
cristy964cb7f2010-04-25 23:18:00 +000024039 test $ax_cv_cxx_bool = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024040 test $ac_cv_cxx_have_lstring = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024041 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024042 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024043 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024044 have_magick_plus_plus='yes'
24045 else
24046 have_magick_plus_plus='no (failed tests)'
24047 fi
cristy8b350f62009-11-15 23:12:43 +000024048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024049$as_echo "$have_magick_plus_plus" >&6; }
24050 LIBS="$OLIBS"
24051fi
24052 if test "$have_magick_plus_plus" = 'yes'; then
24053 WITH_MAGICK_PLUS_PLUS_TRUE=
24054 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24055else
24056 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24057 WITH_MAGICK_PLUS_PLUS_FALSE=
24058fi
24059
24060
24061# Only check for delegate libraries in subdirectories if requested.
24062if test "$enable_delegate_build" != 'no'; then
24063 # Check for delegate sub-directories and add -I & -L options as required.
24064 # This presumes that delegates are installed as detailed in the ImageMagick
24065 # README. If delegates are installed in a standard location where the
24066 # compiler will automatically find them then these options should not be
24067 # required.
24068
24069 #
24070 # Most delegates have includes in the same directory as the library, but not all...
24071 #
24072 # Includes
cristy5850e4b2010-01-08 14:28:24 +000024073 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 +000024074 if test -d "$builddir/$dir"; then
24075 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24076 else
24077 if test -d "$srcdirfull/$dir"; then
24078 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24079 fi
24080 fi
24081 done
24082
24083 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000024084 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 +000024085 if test -d "$builddir/$dir/.libs"; then
24086 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24087 else
24088 if test -d "$srcdirfull/$dir/.libs"; then
24089 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24090 fi
24091 fi
24092 if test -d "$builddir/$dir"; then
24093 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24094 else
24095 if test -d "$srcdirfull/$dir"; then
24096 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24097 fi
24098 fi
24099 done
24100fi
24101
24102# Assume that delegate headers reside under same directory as ImageMagick
24103# installation prefix.
24104MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24105
24106#
24107# Find the X11 RGB database
24108#
cristy8b350f62009-11-15 23:12:43 +000024109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024110$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024111if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024112 $as_echo_n "(cached) " >&6
24113else
24114 # Look for the header file in a standard set of common directories.
24115# Check X11 before X11Rn because it is often a symlink to the current release.
24116 for ac_dir in \
24117 /lib/usr/lib/X11 \
24118 /usr/X11/lib \
24119 /usr/X11R4/lib \
24120 /usr/X11R5/lib \
24121 /usr/X11R6/lib \
24122 /usr/X11R7/lib \
24123 /usr/X386/lib \
24124 /usr/XFree86/lib/X11 \
24125 /usr/athena/lib \
24126 /usr/lib \
24127 /usr/lib/X11 \
24128 /usr/lib/X11R4 \
24129 /usr/lib/X11R5 \
24130 /usr/lib/X11R6 \
24131 /usr/lib/X11R7 \
24132 /usr/local/X11/lib \
24133 /usr/local/X11R4/lib \
24134 /usr/local/X11R5/lib \
24135 /usr/local/X11R6/lib \
24136 /usr/local/lib \
24137 /usr/local/lib/X11 \
24138 /usr/local/lib/X11R4 \
24139 /usr/local/lib/X11R5 \
24140 /usr/local/lib/X11R6 \
24141 /usr/local/lib/X11R7 \
24142 /usr/local/x11r5/lib \
24143 /usr/lpp/Xamples/lib \
24144 /usr/openwin/lib \
24145 /usr/openwin/share/lib \
24146 /usr/unsupported/lib \
24147 /usr/x386/lib \
24148 ; do
24149 if test -f "$ac_dir/X11/rgb.txt"; then
24150 im_cv_x_configure="$ac_dir/X11/"
24151 break
24152 elif test -f "$ac_dir/rgb.txt"; then
24153 im_cv_x_configure="$ac_dir/"
24154 break
24155 fi
24156
24157 done
24158fi
cristy8b350f62009-11-15 23:12:43 +000024159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024160$as_echo "$im_cv_x_configure" >&6; }
24161X11_CONFIGURE_PATH="$im_cv_x_configure"
24162case "${build_os}" in
24163 mingw* )
24164 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24165 ;;
24166esac
24167
24168cat >>confdefs.h <<_ACEOF
24169#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24170_ACEOF
24171
24172
24173#
24174# Find OpenMP library
24175#
24176GOMP_LIBS=''
24177if test "$enable_openmp" != 'no'; then
24178 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024180$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024181if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024182 $as_echo_n "(cached) " >&6
24183else
24184 ac_check_lib_save_LIBS=$LIBS
24185LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024187/* end confdefs.h. */
24188
24189/* Override any GCC internal prototype to avoid an error.
24190 Use char because int might match the return type of a GCC
24191 builtin and then its argument prototype would still apply. */
24192#ifdef __cplusplus
24193extern "C"
24194#endif
24195char GOMP_parallel_start ();
24196int
24197main ()
24198{
24199return GOMP_parallel_start ();
24200 ;
24201 return 0;
24202}
24203_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024204if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024205 ac_cv_lib_gomp_GOMP_parallel_start=yes
24206else
cristy8b350f62009-11-15 23:12:43 +000024207 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024208fi
cristy8b350f62009-11-15 23:12:43 +000024209rm -f core conftest.err conftest.$ac_objext \
24210 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024211LIBS=$ac_check_lib_save_LIBS
24212fi
cristy8b350f62009-11-15 23:12:43 +000024213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024214$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024215if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024216 GOMP_LIBS="-lgomp"
24217fi
24218 # gcc
24219 else
cristy8b350f62009-11-15 23:12:43 +000024220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000024221$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024222if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024223 $as_echo_n "(cached) " >&6
24224else
24225 ac_check_lib_save_LIBS=$LIBS
24226LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024228/* end confdefs.h. */
24229
24230/* Override any GCC internal prototype to avoid an error.
24231 Use char because int might match the return type of a GCC
24232 builtin and then its argument prototype would still apply. */
24233#ifdef __cplusplus
24234extern "C"
24235#endif
24236char sunw_mp_register_warn ();
24237int
24238main ()
24239{
24240return sunw_mp_register_warn ();
24241 ;
24242 return 0;
24243}
24244_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024245if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024246 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24247else
cristy8b350f62009-11-15 23:12:43 +000024248 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000024249fi
cristy8b350f62009-11-15 23:12:43 +000024250rm -f core conftest.err conftest.$ac_objext \
24251 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024252LIBS=$ac_check_lib_save_LIBS
24253fi
cristy8b350f62009-11-15 23:12:43 +000024254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000024255$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024256if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024257 GOMP_LIBS="-lmtsk"
24258fi
24259 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000024260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024261$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024262if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024263 $as_echo_n "(cached) " >&6
24264else
24265 ac_check_lib_save_LIBS=$LIBS
24266LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024268/* end confdefs.h. */
24269
24270/* Override any GCC internal prototype to avoid an error.
24271 Use char because int might match the return type of a GCC
24272 builtin and then its argument prototype would still apply. */
24273#ifdef __cplusplus
24274extern "C"
24275#endif
24276char _xlsmpFlush ();
24277int
24278main ()
24279{
24280return _xlsmpFlush ();
24281 ;
24282 return 0;
24283}
24284_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024285if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024286 ac_cv_lib_xlsmp__xlsmpFlush=yes
24287else
cristy8b350f62009-11-15 23:12:43 +000024288 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000024289fi
cristy8b350f62009-11-15 23:12:43 +000024290rm -f core conftest.err conftest.$ac_objext \
24291 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024292LIBS=$ac_check_lib_save_LIBS
24293fi
cristy8b350f62009-11-15 23:12:43 +000024294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000024295$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024296if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024297 GOMP_LIBS="-lxlsmp"
24298fi
24299 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000024300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024301$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024302if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024303 $as_echo_n "(cached) " >&6
24304else
24305 ac_check_lib_save_LIBS=$LIBS
24306LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024308/* end confdefs.h. */
24309
24310/* Override any GCC internal prototype to avoid an error.
24311 Use char because int might match the return type of a GCC
24312 builtin and then its argument prototype would still apply. */
24313#ifdef __cplusplus
24314extern "C"
24315#endif
24316char mp_destroy ();
24317int
24318main ()
24319{
24320return mp_destroy ();
24321 ;
24322 return 0;
24323}
24324_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024325if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024326 ac_cv_lib_mp_mp_destroy=yes
24327else
cristy8b350f62009-11-15 23:12:43 +000024328 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000024329fi
cristy8b350f62009-11-15 23:12:43 +000024330rm -f core conftest.err conftest.$ac_objext \
24331 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024332LIBS=$ac_check_lib_save_LIBS
24333fi
cristy8b350f62009-11-15 23:12:43 +000024334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000024335$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024336if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024337 GOMP_LIBS="-lmp"
24338fi
24339 # SGI IRIX 6.5 MIPSpro C/C++
24340 fi
24341 LIBS="$GOMP_LIBS $LIBS"
24342fi
24343
24344
24345#
24346# Find Posix threads library
24347#
24348THREAD_LIBS=''
24349if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24350
24351 if test "x$PTHREAD_LIBS" = "x"; then
24352 case "${host_cpu}-${host_os}" in
24353 *-freebsd*)
24354
24355
24356
24357ac_ext=c
24358ac_cpp='$CPP $CPPFLAGS'
24359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24361ac_compiler_gnu=$ac_cv_c_compiler_gnu
24362
24363magick_pthread_lib_ok=no
24364
24365LIB=-lc_r
24366save_LIBS="$LIBS"
24367LIBS="$LIBS $LIB"
24368
cristy8b350f62009-11-15 23:12:43 +000024369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024370$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024372/* end confdefs.h. */
24373#include <pthread.h>
24374int
24375main ()
24376{
24377 pthread_t th;
24378 pthread_join(th, 0);
24379 pthread_attr_init(0);
24380 pthread_cleanup_push(0, 0);
24381 pthread_create(0,0,0,0);
24382 pthread_cleanup_pop(0);
24383 ;
24384 return 0;
24385}
24386_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024387if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024388 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024389fi
cristy8b350f62009-11-15 23:12:43 +000024390rm -f core conftest.err conftest.$ac_objext \
24391 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024392
cristy8b350f62009-11-15 23:12:43 +000024393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024394$as_echo "${magick_pthread_lib_ok}" >&6; }
24395if test "$magick_pthread_lib_ok" = yes
24396then
24397 PTHREAD_LIBS=-lc_r
24398 :
24399else
24400
24401 :
24402fi
24403
24404LIBS="$save_LIBS"
24405
24406ac_ext=c
24407ac_cpp='$CPP $CPPFLAGS'
24408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24410ac_compiler_gnu=$ac_cv_c_compiler_gnu
24411
24412 ;;
24413 esac
24414 fi
24415
24416 for lib in pthread pthreads; do
24417 if test "x$PTHREAD_LIBS" = "x"; then
24418
24419
24420
24421ac_ext=c
24422ac_cpp='$CPP $CPPFLAGS'
24423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24425ac_compiler_gnu=$ac_cv_c_compiler_gnu
24426
24427magick_pthread_lib_ok=no
24428
24429LIB=-l$lib
24430save_LIBS="$LIBS"
24431LIBS="$LIBS $LIB"
24432
cristy8b350f62009-11-15 23:12:43 +000024433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024434$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024436/* end confdefs.h. */
24437#include <pthread.h>
24438int
24439main ()
24440{
24441 pthread_t th;
24442 pthread_join(th, 0);
24443 pthread_attr_init(0);
24444 pthread_cleanup_push(0, 0);
24445 pthread_create(0,0,0,0);
24446 pthread_cleanup_pop(0);
24447 ;
24448 return 0;
24449}
24450_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024451if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024452 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024453fi
cristy8b350f62009-11-15 23:12:43 +000024454rm -f core conftest.err conftest.$ac_objext \
24455 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024456
cristy8b350f62009-11-15 23:12:43 +000024457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024458$as_echo "${magick_pthread_lib_ok}" >&6; }
24459if test "$magick_pthread_lib_ok" = yes
24460then
24461 PTHREAD_LIBS=-l$lib
24462 :
24463else
24464
24465 :
24466fi
24467
24468LIBS="$save_LIBS"
24469
24470ac_ext=c
24471ac_cpp='$CPP $CPPFLAGS'
24472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24474ac_compiler_gnu=$ac_cv_c_compiler_gnu
24475
24476
24477 fi
24478 done
24479
24480 THREAD_LIBS="$PTHREAD_LIBS"
24481 LIBS="$LIBS $THREAD_LIBS"
24482fi
24483
24484
24485#
24486# Check for umem.
24487#
24488have_umem='no'
24489UMEM_LIBS=''
24490if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000024492$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024494$as_echo "" >&6; }
24495 failed=0
24496 passed=0
cristy8b350f62009-11-15 23:12:43 +000024497 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24498if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024499 passed=`expr $passed + 1`
24500else
24501 failed=`expr $failed + 1`
24502fi
24503
24504
cristy8b350f62009-11-15 23:12:43 +000024505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024506$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024507if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024508 $as_echo_n "(cached) " >&6
24509else
24510 ac_check_lib_save_LIBS=$LIBS
24511LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024513/* end confdefs.h. */
24514
24515/* Override any GCC internal prototype to avoid an error.
24516 Use char because int might match the return type of a GCC
24517 builtin and then its argument prototype would still apply. */
24518#ifdef __cplusplus
24519extern "C"
24520#endif
24521char umem_alloc ();
24522int
24523main ()
24524{
24525return umem_alloc ();
24526 ;
24527 return 0;
24528}
24529_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024530if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024531 ac_cv_lib_umem_umem_alloc=yes
24532else
cristy8b350f62009-11-15 23:12:43 +000024533 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000024534fi
cristy8b350f62009-11-15 23:12:43 +000024535rm -f core conftest.err conftest.$ac_objext \
24536 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024537LIBS=$ac_check_lib_save_LIBS
24538fi
cristy8b350f62009-11-15 23:12:43 +000024539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024540$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024541if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024542 passed=`expr $passed + 1`
24543else
24544 failed=`expr $failed + 1`
24545fi
24546
cristy8b350f62009-11-15 23:12:43 +000024547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024548$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024549if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024550 $as_echo_n "(cached) " >&6
24551else
24552 ac_check_lib_save_LIBS=$LIBS
24553LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024555/* end confdefs.h. */
24556
24557/* Override any GCC internal prototype to avoid an error.
24558 Use char because int might match the return type of a GCC
24559 builtin and then its argument prototype would still apply. */
24560#ifdef __cplusplus
24561extern "C"
24562#endif
24563char umem_free ();
24564int
24565main ()
24566{
24567return umem_free ();
24568 ;
24569 return 0;
24570}
24571_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024572if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024573 ac_cv_lib_umem_umem_free=yes
24574else
cristy8b350f62009-11-15 23:12:43 +000024575 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000024576fi
cristy8b350f62009-11-15 23:12:43 +000024577rm -f core conftest.err conftest.$ac_objext \
24578 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024579LIBS=$ac_check_lib_save_LIBS
24580fi
cristy8b350f62009-11-15 23:12:43 +000024581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000024582$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024583if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024584 passed=`expr $passed + 1`
24585else
24586 failed=`expr $failed + 1`
24587fi
24588
cristy8b350f62009-11-15 23:12:43 +000024589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024590$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24591 if test $passed -gt 0; then
24592 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024594$as_echo "no -- some components failed test" >&6; }
24595 have_umem='no (failed tests)'
24596 else
24597 UMEM_LIBS='-lumem'
24598 LIBS="$UMEM_LIBS $LIBS"
24599
cristy8b350f62009-11-15 23:12:43 +000024600$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024601
cristy8b350f62009-11-15 23:12:43 +000024602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024603$as_echo "yes" >&6; }
24604 have_umem='yes'
24605 fi
24606 else
cristy8b350f62009-11-15 23:12:43 +000024607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024608$as_echo "no" >&6; }
24609 fi
24610fi
24611 if test "$have_umem" = 'yes'; then
24612 HasUMEM_TRUE=
24613 HasUMEM_FALSE='#'
24614else
24615 HasUMEM_TRUE='#'
24616 HasUMEM_FALSE=
24617fi
24618
24619
24620
24621#
24622# Add support for ccmalloc memory debugging library if requested
24623#
24624have_ccmalloc='no'
24625CCMALLOC_LIBS=''
24626if test "$enable_ccmalloc" = 'yes'; then
24627 # Extract the first word of "ccmalloc", so it can be a program name with args.
24628set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024630$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024631if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024632 $as_echo_n "(cached) " >&6
24633else
24634 case $CCMALLOCDelegate in
24635 [\\/]* | ?:[\\/]*)
24636 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24637 ;;
24638 *)
24639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24640for as_dir in $PATH
24641do
24642 IFS=$as_save_IFS
24643 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024644 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24646 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000024647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024648 break 2
24649 fi
24650done
cristy8b350f62009-11-15 23:12:43 +000024651 done
cristy3ed852e2009-09-05 21:47:34 +000024652IFS=$as_save_IFS
24653
24654 ;;
24655esac
24656fi
24657CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24658if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000024659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024660$as_echo "$CCMALLOCDelegate" >&6; }
24661else
cristy8b350f62009-11-15 23:12:43 +000024662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024663$as_echo "no" >&6; }
24664fi
24665
24666
24667 if test -n "$CCMALLOCDelegate"; then
24668 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24669 OLIBS="$LIBS"
24670 # Assume that gcc is used with ccmalloc.
24671 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000024672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024673$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024674if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024675 $as_echo_n "(cached) " >&6
24676else
24677 ac_check_lib_save_LIBS=$LIBS
24678LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024680/* end confdefs.h. */
24681
24682/* Override any GCC internal prototype to avoid an error.
24683 Use char because int might match the return type of a GCC
24684 builtin and then its argument prototype would still apply. */
24685#ifdef __cplusplus
24686extern "C"
24687#endif
24688char ccmalloc_malloc ();
24689int
24690main ()
24691{
24692return ccmalloc_malloc ();
24693 ;
24694 return 0;
24695}
24696_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024697if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024698 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24699else
cristy8b350f62009-11-15 23:12:43 +000024700 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024701fi
cristy8b350f62009-11-15 23:12:43 +000024702rm -f core conftest.err conftest.$ac_objext \
24703 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024704LIBS=$ac_check_lib_save_LIBS
24705fi
cristy8b350f62009-11-15 23:12:43 +000024706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024707$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024708if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024709 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24710fi
24711
24712 if test -n "$CCMALLOC_LIBS"; then
24713 LIBS="$OLIBS"
24714 LIBS="$LIBS $CCMALLOC_LIBS"
24715 have_ccmalloc='yes'
24716 else
24717 LIBS="$OLIBS"
24718 fi
24719 fi
24720fi
24721
24722#
24723# Add support for efence memory debugging library if requested
24724#
24725if test "$enable_efence" = 'yes'; then
24726 EFENCE_LIBS='-lefence'
24727 LIBS="$EFENCE_LIBS $LIBS"
24728fi
24729
cristy3ed852e2009-09-05 21:47:34 +000024730
24731#
24732# Check for BZLIB
24733#
24734
24735
24736# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024737if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024738 withval=$with_bzlib; with_bzlib=$withval
24739else
24740 with_bzlib='yes'
24741fi
24742
24743
24744if test "$with_bzlib" != 'yes'; then
24745 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24746fi
24747
24748have_bzlib='no'
24749if test "$with_bzlib" != 'no'; then
24750 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024752$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024754$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024756$as_echo "" >&6; }
24757 failed=0
24758 passed=0
24759 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024760 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24761if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024762 passed=`expr $passed + 1`
24763else
24764 failed=`expr $failed + 1`
24765fi
24766
24767
cristy8b350f62009-11-15 23:12:43 +000024768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024769$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024770if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024771 $as_echo_n "(cached) " >&6
24772else
24773 ac_check_lib_save_LIBS=$LIBS
24774LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024776/* end confdefs.h. */
24777
24778/* Override any GCC internal prototype to avoid an error.
24779 Use char because int might match the return type of a GCC
24780 builtin and then its argument prototype would still apply. */
24781#ifdef __cplusplus
24782extern "C"
24783#endif
24784char BZ2_bzDecompress ();
24785int
24786main ()
24787{
24788return BZ2_bzDecompress ();
24789 ;
24790 return 0;
24791}
24792_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024793if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024794 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24795else
cristy8b350f62009-11-15 23:12:43 +000024796 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024797fi
cristy8b350f62009-11-15 23:12:43 +000024798rm -f core conftest.err conftest.$ac_objext \
24799 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024800LIBS=$ac_check_lib_save_LIBS
24801fi
cristy8b350f62009-11-15 23:12:43 +000024802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024803$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024804if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024805 found_libbz=`expr $found_libbz + 1`
24806fi
24807
24808 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024810$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024811if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024812 $as_echo_n "(cached) " >&6
24813else
24814 ac_check_lib_save_LIBS=$LIBS
24815LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024817/* end confdefs.h. */
24818
24819/* Override any GCC internal prototype to avoid an error.
24820 Use char because int might match the return type of a GCC
24821 builtin and then its argument prototype would still apply. */
24822#ifdef __cplusplus
24823extern "C"
24824#endif
24825char _imp__BZ2_decompress ();
24826int
24827main ()
24828{
24829return _imp__BZ2_decompress ();
24830 ;
24831 return 0;
24832}
24833_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024834if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024835 ac_cv_lib_bz2__imp__BZ2_decompress=yes
24836else
cristy8b350f62009-11-15 23:12:43 +000024837 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000024838fi
cristy8b350f62009-11-15 23:12:43 +000024839rm -f core conftest.err conftest.$ac_objext \
24840 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024841LIBS=$ac_check_lib_save_LIBS
24842fi
cristy8b350f62009-11-15 23:12:43 +000024843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024844$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024845if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024846 found_libbz=`expr $found_libbz + 1`
24847fi
24848
24849 fi
24850 if test $found_libbz -gt 0; then
24851 passed=`expr $passed + 1`
24852 else
24853 failed=`expr $failed + 1`
24854 fi
cristy8b350f62009-11-15 23:12:43 +000024855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024856$as_echo_n "checking if BZLIB package is complete... " >&6; }
24857 if test $passed -gt 0; then
24858 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024860$as_echo "no -- some components failed test" >&6; }
24861 have_bzlib='no (failed tests)'
24862 else
24863 BZLIB_LIBS='-lbz2'
24864 LIBS="$BZLIB_LIBS $LIBS"
24865
cristy8b350f62009-11-15 23:12:43 +000024866$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024867
cristy8b350f62009-11-15 23:12:43 +000024868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024869$as_echo "yes" >&6; }
24870 have_bzlib='yes'
24871 fi
24872 else
cristy8b350f62009-11-15 23:12:43 +000024873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024874$as_echo "no" >&6; }
24875 fi
24876fi
24877 if test "$have_bzlib" = 'yes'; then
24878 BZLIB_DELEGATE_TRUE=
24879 BZLIB_DELEGATE_FALSE='#'
24880else
24881 BZLIB_DELEGATE_TRUE='#'
24882 BZLIB_DELEGATE_FALSE=
24883fi
24884
24885
24886
24887#
24888# Find the X11 include and library directories.
24889#
24890IPC_LIBS=''
24891X11_LIBS=''
24892XEXT_LIBS=''
24893XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000024895$as_echo_n "checking for X... " >&6; }
24896
24897
24898# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000024899if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024900 withval=$with_x;
24901fi
24902
24903# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24904if test "x$with_x" = xno; then
24905 # The user explicitly disabled X.
24906 have_x=disabled
24907else
24908 case $x_includes,$x_libraries in #(
cristyf6fcb5d2010-09-24 01:19:13 +000024909 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
cristy8b350f62009-11-15 23:12:43 +000024910 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024911 $as_echo_n "(cached) " >&6
24912else
24913 # One or both of the vars are not set, and there is no cached value.
24914ac_x_includes=no ac_x_libraries=no
24915rm -f -r conftest.dir
24916if mkdir conftest.dir; then
24917 cd conftest.dir
24918 cat >Imakefile <<'_ACEOF'
24919incroot:
24920 @echo incroot='${INCROOT}'
24921usrlibdir:
24922 @echo usrlibdir='${USRLIBDIR}'
24923libdir:
24924 @echo libdir='${LIBDIR}'
24925_ACEOF
24926 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristyf6fcb5d2010-09-24 01:19:13 +000024927 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000024928 for ac_var in incroot usrlibdir libdir; do
24929 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24930 done
24931 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24932 for ac_extension in a so sl dylib la dll; do
24933 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24934 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24935 ac_im_usrlibdir=$ac_im_libdir; break
24936 fi
24937 done
24938 # Screen out bogus values from the imake configuration. They are
24939 # bogus both because they are the default anyway, and because
24940 # using them would break gcc on systems where it needs fixed includes.
24941 case $ac_im_incroot in
24942 /usr/include) ac_x_includes= ;;
24943 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24944 esac
24945 case $ac_im_usrlibdir in
24946 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24947 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24948 esac
24949 fi
24950 cd ..
24951 rm -f -r conftest.dir
24952fi
24953
24954# Standard set of common directories for X headers.
24955# Check X11 before X11Rn because it is often a symlink to the current release.
24956ac_x_header_dirs='
24957/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000024958/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024959/usr/X11R6/include
24960/usr/X11R5/include
24961/usr/X11R4/include
24962
24963/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000024964/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024965/usr/include/X11R6
24966/usr/include/X11R5
24967/usr/include/X11R4
24968
24969/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000024970/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024971/usr/local/X11R6/include
24972/usr/local/X11R5/include
24973/usr/local/X11R4/include
24974
24975/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000024976/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024977/usr/local/include/X11R6
24978/usr/local/include/X11R5
24979/usr/local/include/X11R4
24980
24981/usr/X386/include
24982/usr/x386/include
24983/usr/XFree86/include/X11
24984
24985/usr/include
24986/usr/local/include
24987/usr/unsupported/include
24988/usr/athena/include
24989/usr/local/x11r5/include
24990/usr/lpp/Xamples/include
24991
24992/usr/openwin/include
24993/usr/openwin/share/include'
24994
24995if test "$ac_x_includes" = no; then
24996 # Guess where to find include files, by looking for Xlib.h.
24997 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000024998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024999/* end confdefs.h. */
25000#include <X11/Xlib.h>
25001_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025002if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025003 # We can compile using X headers with no special include directory.
25004ac_x_includes=
25005else
cristyc7083c12009-10-14 03:16:55 +000025006 for ac_dir in $ac_x_header_dirs; do
25007 if test -r "$ac_dir/X11/Xlib.h"; then
25008 ac_x_includes=$ac_dir
25009 break
25010 fi
25011done
25012fi
cristyc7083c12009-10-14 03:16:55 +000025013rm -f conftest.err conftest.$ac_ext
25014fi # $ac_x_includes = no
25015
25016if test "$ac_x_libraries" = no; then
25017 # Check for the libraries.
25018 # See if we find them without any special options.
25019 # Don't add to $LIBS permanently.
25020 ac_save_LIBS=$LIBS
25021 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025023/* end confdefs.h. */
25024#include <X11/Xlib.h>
25025int
25026main ()
25027{
25028XrmInitialize ()
25029 ;
25030 return 0;
25031}
25032_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025033if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025034 LIBS=$ac_save_LIBS
25035# We can link X programs with no special library path.
25036ac_x_libraries=
25037else
cristy8b350f62009-11-15 23:12:43 +000025038 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025039for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25040do
25041 # Don't even attempt the hair of trying to link an X program!
25042 for ac_extension in a so sl dylib la dll; do
25043 if test -r "$ac_dir/libX11.$ac_extension"; then
25044 ac_x_libraries=$ac_dir
25045 break 2
25046 fi
25047 done
25048done
25049fi
cristy8b350f62009-11-15 23:12:43 +000025050rm -f core conftest.err conftest.$ac_objext \
25051 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025052fi # $ac_x_libraries = no
25053
25054case $ac_x_includes,$ac_x_libraries in #(
25055 no,* | *,no | *\'*)
25056 # Didn't find X, or a directory has "'" in its name.
25057 ac_cv_have_x="have_x=no";; #(
25058 *)
25059 # Record where we found X for the cache.
25060 ac_cv_have_x="have_x=yes\
25061 ac_x_includes='$ac_x_includes'\
25062 ac_x_libraries='$ac_x_libraries'"
25063esac
25064fi
25065;; #(
25066 *) have_x=yes;;
25067 esac
25068 eval "$ac_cv_have_x"
25069fi # $with_x != no
25070
25071if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025073$as_echo "$have_x" >&6; }
25074 no_x=yes
25075else
25076 # If each of the values was on the command line, it overrides each guess.
25077 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25078 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25079 # Update the cache value to reflect the command line values.
25080 ac_cv_have_x="have_x=yes\
25081 ac_x_includes='$x_includes'\
25082 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025084$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25085fi
25086
cristy3ed852e2009-09-05 21:47:34 +000025087if test "$no_x" = yes; then
25088 # Not all programs may use this symbol, but it does not hurt to define it.
25089
cristy8b350f62009-11-15 23:12:43 +000025090$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025091
25092 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25093else
25094 if test -n "$x_includes"; then
25095 X_CFLAGS="$X_CFLAGS -I$x_includes"
25096 fi
25097
25098 # It would also be nice to do this for all -L options, not just this one.
25099 if test -n "$x_libraries"; then
25100 X_LIBS="$X_LIBS -L$x_libraries"
25101 # For Solaris; some versions of Sun CC require a space after -R and
25102 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025104$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25105 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25106 ac_xsave_c_werror_flag=$ac_c_werror_flag
25107 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025109/* end confdefs.h. */
25110
25111int
25112main ()
25113{
25114
25115 ;
25116 return 0;
25117}
25118_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025119if ac_fn_c_try_link "$LINENO"; then :
25120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025121$as_echo "no" >&6; }
25122 X_LIBS="$X_LIBS -R$x_libraries"
25123else
cristy8b350f62009-11-15 23:12:43 +000025124 LIBS="$ac_xsave_LIBS -R $x_libraries"
25125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025126/* end confdefs.h. */
25127
25128int
25129main ()
25130{
25131
25132 ;
25133 return 0;
25134}
25135_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025136if ac_fn_c_try_link "$LINENO"; then :
25137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025138$as_echo "yes" >&6; }
25139 X_LIBS="$X_LIBS -R $x_libraries"
25140else
cristy8b350f62009-11-15 23:12:43 +000025141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025142$as_echo "neither works" >&6; }
25143fi
cristy8b350f62009-11-15 23:12:43 +000025144rm -f core conftest.err conftest.$ac_objext \
25145 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025146fi
cristy8b350f62009-11-15 23:12:43 +000025147rm -f core conftest.err conftest.$ac_objext \
25148 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025149 ac_c_werror_flag=$ac_xsave_c_werror_flag
25150 LIBS=$ac_xsave_LIBS
25151 fi
25152
25153 # Check for system-dependent libraries X programs must link with.
25154 # Do this before checking for the system-independent R6 libraries
25155 # (-lICE), since we may need -lsocket or whatever for X linking.
25156
25157 if test "$ISC" = yes; then
25158 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25159 else
25160 # Martyn Johnson says this is needed for Ultrix, if the X
25161 # libraries were built with DECnet support. And Karl Berry says
25162 # the Alpha needs dnet_stub (dnet does not exist).
25163 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025165/* end confdefs.h. */
25166
25167/* Override any GCC internal prototype to avoid an error.
25168 Use char because int might match the return type of a GCC
25169 builtin and then its argument prototype would still apply. */
25170#ifdef __cplusplus
25171extern "C"
25172#endif
25173char XOpenDisplay ();
25174int
25175main ()
25176{
25177return XOpenDisplay ();
25178 ;
25179 return 0;
25180}
25181_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025182if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025183
cristy8b350f62009-11-15 23:12:43 +000025184else
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025186$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025187if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025188 $as_echo_n "(cached) " >&6
25189else
25190 ac_check_lib_save_LIBS=$LIBS
25191LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025193/* end confdefs.h. */
25194
25195/* Override any GCC internal prototype to avoid an error.
25196 Use char because int might match the return type of a GCC
25197 builtin and then its argument prototype would still apply. */
25198#ifdef __cplusplus
25199extern "C"
25200#endif
25201char dnet_ntoa ();
25202int
25203main ()
25204{
25205return dnet_ntoa ();
25206 ;
25207 return 0;
25208}
25209_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025210if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025211 ac_cv_lib_dnet_dnet_ntoa=yes
25212else
cristy8b350f62009-11-15 23:12:43 +000025213 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025214fi
cristy8b350f62009-11-15 23:12:43 +000025215rm -f core conftest.err conftest.$ac_objext \
25216 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025217LIBS=$ac_check_lib_save_LIBS
25218fi
cristy8b350f62009-11-15 23:12:43 +000025219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025220$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025221if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025222 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25223fi
25224
25225 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000025226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000025227$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025228if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025229 $as_echo_n "(cached) " >&6
25230else
25231 ac_check_lib_save_LIBS=$LIBS
25232LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025234/* end confdefs.h. */
25235
25236/* Override any GCC internal prototype to avoid an error.
25237 Use char because int might match the return type of a GCC
25238 builtin and then its argument prototype would still apply. */
25239#ifdef __cplusplus
25240extern "C"
25241#endif
25242char dnet_ntoa ();
25243int
25244main ()
25245{
25246return dnet_ntoa ();
25247 ;
25248 return 0;
25249}
25250_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025251if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025252 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25253else
cristy8b350f62009-11-15 23:12:43 +000025254 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025255fi
cristy8b350f62009-11-15 23:12:43 +000025256rm -f core conftest.err conftest.$ac_objext \
25257 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025258LIBS=$ac_check_lib_save_LIBS
25259fi
cristy8b350f62009-11-15 23:12:43 +000025260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025261$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025262if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025263 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25264fi
25265
25266 fi
25267fi
cristy8b350f62009-11-15 23:12:43 +000025268rm -f core conftest.err conftest.$ac_objext \
25269 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025270 LIBS="$ac_xsave_LIBS"
25271
25272 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25273 # to get the SysV transport functions.
25274 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25275 # needs -lnsl.
25276 # The nsl library prevents programs from opening the X display
25277 # on Irix 5.2, according to T.E. Dickey.
25278 # The functions gethostbyname, getservbyname, and inet_addr are
25279 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000025280 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25281if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025282
cristy3ed852e2009-09-05 21:47:34 +000025283fi
25284
cristy3ed852e2009-09-05 21:47:34 +000025285 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025287$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025288if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025289 $as_echo_n "(cached) " >&6
25290else
25291 ac_check_lib_save_LIBS=$LIBS
25292LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025294/* end confdefs.h. */
25295
25296/* Override any GCC internal prototype to avoid an error.
25297 Use char because int might match the return type of a GCC
25298 builtin and then its argument prototype would still apply. */
25299#ifdef __cplusplus
25300extern "C"
25301#endif
25302char gethostbyname ();
25303int
25304main ()
25305{
25306return gethostbyname ();
25307 ;
25308 return 0;
25309}
25310_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025311if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025312 ac_cv_lib_nsl_gethostbyname=yes
25313else
cristy8b350f62009-11-15 23:12:43 +000025314 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025315fi
cristy8b350f62009-11-15 23:12:43 +000025316rm -f core conftest.err conftest.$ac_objext \
25317 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025318LIBS=$ac_check_lib_save_LIBS
25319fi
cristy8b350f62009-11-15 23:12:43 +000025320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025321$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025322if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025323 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25324fi
25325
25326 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000025328$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025329if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025330 $as_echo_n "(cached) " >&6
25331else
25332 ac_check_lib_save_LIBS=$LIBS
25333LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025335/* end confdefs.h. */
25336
25337/* Override any GCC internal prototype to avoid an error.
25338 Use char because int might match the return type of a GCC
25339 builtin and then its argument prototype would still apply. */
25340#ifdef __cplusplus
25341extern "C"
25342#endif
25343char gethostbyname ();
25344int
25345main ()
25346{
25347return gethostbyname ();
25348 ;
25349 return 0;
25350}
25351_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025352if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025353 ac_cv_lib_bsd_gethostbyname=yes
25354else
cristy8b350f62009-11-15 23:12:43 +000025355 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025356fi
cristy8b350f62009-11-15 23:12:43 +000025357rm -f core conftest.err conftest.$ac_objext \
25358 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025359LIBS=$ac_check_lib_save_LIBS
25360fi
cristy8b350f62009-11-15 23:12:43 +000025361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025362$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025363if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025364 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25365fi
25366
25367 fi
25368 fi
25369
25370 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25371 # socket/setsockopt and other routines are undefined under SCO ODT
25372 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25373 # on later versions), says Simon Leinen: it contains gethostby*
25374 # variants that don't use the name server (or something). -lsocket
25375 # must be given before -lnsl if both are needed. We assume that
25376 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000025377 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25378if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025379
cristy3ed852e2009-09-05 21:47:34 +000025380fi
25381
cristy3ed852e2009-09-05 21:47:34 +000025382 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000025383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000025384$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025385if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025386 $as_echo_n "(cached) " >&6
25387else
25388 ac_check_lib_save_LIBS=$LIBS
25389LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025391/* end confdefs.h. */
25392
25393/* Override any GCC internal prototype to avoid an error.
25394 Use char because int might match the return type of a GCC
25395 builtin and then its argument prototype would still apply. */
25396#ifdef __cplusplus
25397extern "C"
25398#endif
25399char connect ();
25400int
25401main ()
25402{
25403return connect ();
25404 ;
25405 return 0;
25406}
25407_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025408if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025409 ac_cv_lib_socket_connect=yes
25410else
cristy8b350f62009-11-15 23:12:43 +000025411 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000025412fi
cristy8b350f62009-11-15 23:12:43 +000025413rm -f core conftest.err conftest.$ac_objext \
25414 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025415LIBS=$ac_check_lib_save_LIBS
25416fi
cristy8b350f62009-11-15 23:12:43 +000025417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000025418$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025419if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025420 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25421fi
25422
25423 fi
25424
25425 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000025426 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25427if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025428
cristy3ed852e2009-09-05 21:47:34 +000025429fi
25430
cristy3ed852e2009-09-05 21:47:34 +000025431 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000025432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000025433$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025434if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025435 $as_echo_n "(cached) " >&6
25436else
25437 ac_check_lib_save_LIBS=$LIBS
25438LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025440/* end confdefs.h. */
25441
25442/* Override any GCC internal prototype to avoid an error.
25443 Use char because int might match the return type of a GCC
25444 builtin and then its argument prototype would still apply. */
25445#ifdef __cplusplus
25446extern "C"
25447#endif
25448char remove ();
25449int
25450main ()
25451{
25452return remove ();
25453 ;
25454 return 0;
25455}
25456_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025457if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025458 ac_cv_lib_posix_remove=yes
25459else
cristy8b350f62009-11-15 23:12:43 +000025460 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000025461fi
cristy8b350f62009-11-15 23:12:43 +000025462rm -f core conftest.err conftest.$ac_objext \
25463 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025464LIBS=$ac_check_lib_save_LIBS
25465fi
cristy8b350f62009-11-15 23:12:43 +000025466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000025467$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025468if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025469 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25470fi
25471
25472 fi
25473
25474 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000025475 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25476if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025477
cristy3ed852e2009-09-05 21:47:34 +000025478fi
25479
cristy3ed852e2009-09-05 21:47:34 +000025480 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000025481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025482$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025483if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025484 $as_echo_n "(cached) " >&6
25485else
25486 ac_check_lib_save_LIBS=$LIBS
25487LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025489/* end confdefs.h. */
25490
25491/* Override any GCC internal prototype to avoid an error.
25492 Use char because int might match the return type of a GCC
25493 builtin and then its argument prototype would still apply. */
25494#ifdef __cplusplus
25495extern "C"
25496#endif
25497char shmat ();
25498int
25499main ()
25500{
25501return shmat ();
25502 ;
25503 return 0;
25504}
25505_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025506if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025507 ac_cv_lib_ipc_shmat=yes
25508else
cristy8b350f62009-11-15 23:12:43 +000025509 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000025510fi
cristy8b350f62009-11-15 23:12:43 +000025511rm -f core conftest.err conftest.$ac_objext \
25512 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025513LIBS=$ac_check_lib_save_LIBS
25514fi
cristy8b350f62009-11-15 23:12:43 +000025515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000025516$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025517if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025518 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25519fi
25520
25521 fi
25522 fi
25523
25524 # Check for libraries that X11R6 Xt/Xaw programs need.
25525 ac_save_LDFLAGS=$LDFLAGS
25526 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25527 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25528 # check for ICE first), but we must link in the order -lSM -lICE or
25529 # we get undefined symbols. So assume we have SM if we have ICE.
25530 # These have to be linked with before -lX11, unlike the other
25531 # libraries we check for below, so use a different variable.
25532 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000025533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025534$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025535if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025536 $as_echo_n "(cached) " >&6
25537else
25538 ac_check_lib_save_LIBS=$LIBS
25539LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025541/* end confdefs.h. */
25542
25543/* Override any GCC internal prototype to avoid an error.
25544 Use char because int might match the return type of a GCC
25545 builtin and then its argument prototype would still apply. */
25546#ifdef __cplusplus
25547extern "C"
25548#endif
25549char IceConnectionNumber ();
25550int
25551main ()
25552{
25553return IceConnectionNumber ();
25554 ;
25555 return 0;
25556}
25557_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025558if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025559 ac_cv_lib_ICE_IceConnectionNumber=yes
25560else
cristy8b350f62009-11-15 23:12:43 +000025561 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000025562fi
cristy8b350f62009-11-15 23:12:43 +000025563rm -f core conftest.err conftest.$ac_objext \
25564 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025565LIBS=$ac_check_lib_save_LIBS
25566fi
cristy8b350f62009-11-15 23:12:43 +000025567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000025568$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025569if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025570 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25571fi
25572
25573 LDFLAGS=$ac_save_LDFLAGS
25574
25575fi
25576
25577if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025579$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000025581$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025583$as_echo "" >&6; }
25584 LDFLAGS="$LDFLAGS $X_LIBS"
25585 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25586 LIBS="$X11_LIBS $LIBS"
25587 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25588
25589
cristy8b350f62009-11-15 23:12:43 +000025590$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025591
25592 #
25593 # Check for X11 shared memory extension
25594 #
25595 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000025596 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25597if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025598 have_shmctl='yes'
25599fi
25600
25601 if test "$have_shmctl" != 'yes'; then
25602 PERSIST_LIBS=$LIBS
25603 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000025604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025605/* end confdefs.h. */
25606
25607/* Override any GCC internal prototype to avoid an error.
25608 Use char because int might match the return type of a GCC
25609 builtin and then its argument prototype would still apply. */
25610#ifdef __cplusplus
25611extern "C"
25612#endif
25613char shmctl ();
25614int
25615main ()
25616{
25617return shmctl ();
25618 ;
25619 return 0;
25620}
25621_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025622if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025623 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000025624fi
cristy8b350f62009-11-15 23:12:43 +000025625rm -f core conftest.err conftest.$ac_objext \
25626 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025627 LIBS=$PERSIST_LIBS
25628 fi
25629
25630 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025632$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025633if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025634 $as_echo_n "(cached) " >&6
25635else
25636 ac_check_lib_save_LIBS=$LIBS
25637LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025639/* end confdefs.h. */
25640
25641/* Override any GCC internal prototype to avoid an error.
25642 Use char because int might match the return type of a GCC
25643 builtin and then its argument prototype would still apply. */
25644#ifdef __cplusplus
25645extern "C"
25646#endif
25647char XShmAttach ();
25648int
25649main ()
25650{
25651return XShmAttach ();
25652 ;
25653 return 0;
25654}
25655_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025656if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025657 ac_cv_lib_Xext_XShmAttach=yes
25658else
cristy8b350f62009-11-15 23:12:43 +000025659 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025660fi
cristy8b350f62009-11-15 23:12:43 +000025661rm -f core conftest.err conftest.$ac_objext \
25662 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025663LIBS=$ac_check_lib_save_LIBS
25664fi
cristy8b350f62009-11-15 23:12:43 +000025665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025666$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025667if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025668 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025669$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025670
25671fi
25672
25673 fi
25674
25675 #
25676 # Check for X11 shape extension
25677 #
cristy8b350f62009-11-15 23:12:43 +000025678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025679$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025680if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025681 $as_echo_n "(cached) " >&6
25682else
25683 ac_check_lib_save_LIBS=$LIBS
25684LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025686/* end confdefs.h. */
25687
25688/* Override any GCC internal prototype to avoid an error.
25689 Use char because int might match the return type of a GCC
25690 builtin and then its argument prototype would still apply. */
25691#ifdef __cplusplus
25692extern "C"
25693#endif
25694char XShapeCombineMask ();
25695int
25696main ()
25697{
25698return XShapeCombineMask ();
25699 ;
25700 return 0;
25701}
25702_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025703if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025704 ac_cv_lib_Xext_XShapeCombineMask=yes
25705else
cristy8b350f62009-11-15 23:12:43 +000025706 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025707fi
cristy8b350f62009-11-15 23:12:43 +000025708rm -f core conftest.err conftest.$ac_objext \
25709 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025710LIBS=$ac_check_lib_save_LIBS
25711fi
cristy8b350f62009-11-15 23:12:43 +000025712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025713$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025714if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025715 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025716$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025717
25718fi
25719
cristy8b350f62009-11-15 23:12:43 +000025720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025721$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025722if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025723 $as_echo_n "(cached) " >&6
25724else
25725 ac_check_lib_save_LIBS=$LIBS
25726LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025728/* end confdefs.h. */
25729
25730/* Override any GCC internal prototype to avoid an error.
25731 Use char because int might match the return type of a GCC
25732 builtin and then its argument prototype would still apply. */
25733#ifdef __cplusplus
25734extern "C"
25735#endif
25736char XtSetEventDispatcher ();
25737int
25738main ()
25739{
25740return XtSetEventDispatcher ();
25741 ;
25742 return 0;
25743}
25744_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025745if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025746 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25747else
cristy8b350f62009-11-15 23:12:43 +000025748 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025749fi
cristy8b350f62009-11-15 23:12:43 +000025750rm -f core conftest.err conftest.$ac_objext \
25751 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025752LIBS=$ac_check_lib_save_LIBS
25753fi
cristy8b350f62009-11-15 23:12:43 +000025754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025755$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025756if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025757 XT_LIBS='-lXt'
25758fi
25759
25760 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25761fi
25762if test "$no_x" != 'yes'; then
25763 have_x='yes'
25764else
25765 have_x='no'
25766fi
25767 if test "$have_x" = 'yes'; then
25768 X11_DELEGATE_TRUE=
25769 X11_DELEGATE_FALSE='#'
25770else
25771 X11_DELEGATE_TRUE='#'
25772 X11_DELEGATE_FALSE=
25773fi
25774
25775
25776
25777
25778
25779#
25780# Check for ZLIB
25781#
25782
25783# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025784if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025785 withval=$with_zlib; with_zlib=$withval
25786else
25787 with_zlib='yes'
25788fi
25789
25790
25791if test "$with_zlib" != 'yes'; then
25792 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25793fi
25794
25795have_zlib='no'
25796ZLIB_LIBS=''
25797if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025799$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025801$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025803$as_echo "" >&6; }
25804 ZLIB_LIBS=''
25805 failed=0
25806 passed=0
cristy8b350f62009-11-15 23:12:43 +000025807 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25808if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025809 passed=`expr $passed + 1`
25810else
25811 failed=`expr $failed + 1`
25812fi
25813
25814
cristy8b350f62009-11-15 23:12:43 +000025815 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25816if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025817 passed=`expr $passed + 1`
25818else
25819 failed=`expr $failed + 1`
25820fi
25821
25822
cristy8b350f62009-11-15 23:12:43 +000025823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025824$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025825if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025826 $as_echo_n "(cached) " >&6
25827else
25828 ac_check_lib_save_LIBS=$LIBS
25829LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025831/* end confdefs.h. */
25832
25833/* Override any GCC internal prototype to avoid an error.
25834 Use char because int might match the return type of a GCC
25835 builtin and then its argument prototype would still apply. */
25836#ifdef __cplusplus
25837extern "C"
25838#endif
25839char compress ();
25840int
25841main ()
25842{
25843return compress ();
25844 ;
25845 return 0;
25846}
25847_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025848if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025849 ac_cv_lib_z_compress=yes
25850else
cristy8b350f62009-11-15 23:12:43 +000025851 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000025852fi
cristy8b350f62009-11-15 23:12:43 +000025853rm -f core conftest.err conftest.$ac_objext \
25854 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025855LIBS=$ac_check_lib_save_LIBS
25856fi
cristy8b350f62009-11-15 23:12:43 +000025857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025858$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025859if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025860 passed=`expr $passed + 1`
25861else
25862 failed=`expr $failed + 1`
25863fi
25864
cristy8b350f62009-11-15 23:12:43 +000025865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025866$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025867if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025868 $as_echo_n "(cached) " >&6
25869else
25870 ac_check_lib_save_LIBS=$LIBS
25871LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025873/* end confdefs.h. */
25874
25875/* Override any GCC internal prototype to avoid an error.
25876 Use char because int might match the return type of a GCC
25877 builtin and then its argument prototype would still apply. */
25878#ifdef __cplusplus
25879extern "C"
25880#endif
25881char uncompress ();
25882int
25883main ()
25884{
25885return uncompress ();
25886 ;
25887 return 0;
25888}
25889_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025890if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025891 ac_cv_lib_z_uncompress=yes
25892else
cristy8b350f62009-11-15 23:12:43 +000025893 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000025894fi
cristy8b350f62009-11-15 23:12:43 +000025895rm -f core conftest.err conftest.$ac_objext \
25896 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025897LIBS=$ac_check_lib_save_LIBS
25898fi
cristy8b350f62009-11-15 23:12:43 +000025899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025900$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025901if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025902 passed=`expr $passed + 1`
25903else
25904 failed=`expr $failed + 1`
25905fi
25906
cristy8b350f62009-11-15 23:12:43 +000025907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025908$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025909if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025910 $as_echo_n "(cached) " >&6
25911else
25912 ac_check_lib_save_LIBS=$LIBS
25913LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025915/* end confdefs.h. */
25916
25917/* Override any GCC internal prototype to avoid an error.
25918 Use char because int might match the return type of a GCC
25919 builtin and then its argument prototype would still apply. */
25920#ifdef __cplusplus
25921extern "C"
25922#endif
25923char deflate ();
25924int
25925main ()
25926{
25927return deflate ();
25928 ;
25929 return 0;
25930}
25931_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025932if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025933 ac_cv_lib_z_deflate=yes
25934else
cristy8b350f62009-11-15 23:12:43 +000025935 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000025936fi
cristy8b350f62009-11-15 23:12:43 +000025937rm -f core conftest.err conftest.$ac_objext \
25938 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025939LIBS=$ac_check_lib_save_LIBS
25940fi
cristy8b350f62009-11-15 23:12:43 +000025941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025942$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025943if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025944 passed=`expr $passed + 1`
25945else
25946 failed=`expr $failed + 1`
25947fi
25948
cristy8b350f62009-11-15 23:12:43 +000025949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025950$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025951if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025952 $as_echo_n "(cached) " >&6
25953else
25954 ac_check_lib_save_LIBS=$LIBS
25955LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025957/* end confdefs.h. */
25958
25959/* Override any GCC internal prototype to avoid an error.
25960 Use char because int might match the return type of a GCC
25961 builtin and then its argument prototype would still apply. */
25962#ifdef __cplusplus
25963extern "C"
25964#endif
25965char inflate ();
25966int
25967main ()
25968{
25969return inflate ();
25970 ;
25971 return 0;
25972}
25973_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025974if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025975 ac_cv_lib_z_inflate=yes
25976else
cristy8b350f62009-11-15 23:12:43 +000025977 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000025978fi
cristy8b350f62009-11-15 23:12:43 +000025979rm -f core conftest.err conftest.$ac_objext \
25980 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025981LIBS=$ac_check_lib_save_LIBS
25982fi
cristy8b350f62009-11-15 23:12:43 +000025983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025984$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025985if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025986 passed=`expr $passed + 1`
25987else
25988 failed=`expr $failed + 1`
25989fi
25990
cristy8b350f62009-11-15 23:12:43 +000025991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025992$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025993if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025994 $as_echo_n "(cached) " >&6
25995else
25996 ac_check_lib_save_LIBS=$LIBS
25997LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025999/* end confdefs.h. */
26000
26001/* Override any GCC internal prototype to avoid an error.
26002 Use char because int might match the return type of a GCC
26003 builtin and then its argument prototype would still apply. */
26004#ifdef __cplusplus
26005extern "C"
26006#endif
26007char gzseek ();
26008int
26009main ()
26010{
26011return gzseek ();
26012 ;
26013 return 0;
26014}
26015_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026016if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026017 ac_cv_lib_z_gzseek=yes
26018else
cristy8b350f62009-11-15 23:12:43 +000026019 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000026020fi
cristy8b350f62009-11-15 23:12:43 +000026021rm -f core conftest.err conftest.$ac_objext \
26022 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026023LIBS=$ac_check_lib_save_LIBS
26024fi
cristy8b350f62009-11-15 23:12:43 +000026025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000026026$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026027if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026028 passed=`expr $passed + 1`
26029else
26030 failed=`expr $failed + 1`
26031fi
26032
cristy8b350f62009-11-15 23:12:43 +000026033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026034$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026035if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026036 $as_echo_n "(cached) " >&6
26037else
26038 ac_check_lib_save_LIBS=$LIBS
26039LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026041/* end confdefs.h. */
26042
26043/* Override any GCC internal prototype to avoid an error.
26044 Use char because int might match the return type of a GCC
26045 builtin and then its argument prototype would still apply. */
26046#ifdef __cplusplus
26047extern "C"
26048#endif
26049char gztell ();
26050int
26051main ()
26052{
26053return gztell ();
26054 ;
26055 return 0;
26056}
26057_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026058if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026059 ac_cv_lib_z_gztell=yes
26060else
cristy8b350f62009-11-15 23:12:43 +000026061 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026062fi
cristy8b350f62009-11-15 23:12:43 +000026063rm -f core conftest.err conftest.$ac_objext \
26064 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026065LIBS=$ac_check_lib_save_LIBS
26066fi
cristy8b350f62009-11-15 23:12:43 +000026067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026068$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026069if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026070 passed=`expr $passed + 1`
26071else
26072 failed=`expr $failed + 1`
26073fi
26074
cristy8b350f62009-11-15 23:12:43 +000026075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026076$as_echo_n "checking if ZLIB package is complete... " >&6; }
26077 if test $passed -gt 0; then
26078 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026080$as_echo "no -- some components failed test" >&6; }
26081 have_zlib='no (failed tests)'
26082 else
26083 ZLIB_LIBS='-lz'
26084 LIBS="$ZLIB_LIBS $LIBS"
26085
cristy8b350f62009-11-15 23:12:43 +000026086$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026087
cristy8b350f62009-11-15 23:12:43 +000026088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026089$as_echo "yes" >&6; }
26090 have_zlib='yes'
26091 fi
26092 else
cristy8b350f62009-11-15 23:12:43 +000026093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026094$as_echo "no" >&6; }
26095 fi
26096fi
26097 if test "$have_zlib" = 'yes'; then
26098 ZLIB_DELEGATE_TRUE=
26099 ZLIB_DELEGATE_FALSE='#'
26100else
26101 ZLIB_DELEGATE_TRUE='#'
26102 ZLIB_DELEGATE_FALSE=
26103fi
26104
26105
26106
26107#
26108# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26109#
26110LIB_DL=''
26111if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026113$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026114if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026115 $as_echo_n "(cached) " >&6
26116else
26117 ac_check_lib_save_LIBS=$LIBS
26118LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026120/* end confdefs.h. */
26121
26122/* Override any GCC internal prototype to avoid an error.
26123 Use char because int might match the return type of a GCC
26124 builtin and then its argument prototype would still apply. */
26125#ifdef __cplusplus
26126extern "C"
26127#endif
26128char dlopen ();
26129int
26130main ()
26131{
26132return dlopen ();
26133 ;
26134 return 0;
26135}
26136_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026137if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026138 ac_cv_lib_dl_dlopen=yes
26139else
cristy8b350f62009-11-15 23:12:43 +000026140 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026141fi
cristy8b350f62009-11-15 23:12:43 +000026142rm -f core conftest.err conftest.$ac_objext \
26143 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026144LIBS=$ac_check_lib_save_LIBS
26145fi
cristy8b350f62009-11-15 23:12:43 +000026146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026147$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026148if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026149 LIB_DL='-ldl'
26150fi
26151
26152 LIBS="$LIB_DL $LIBS"
26153fi
26154
26155
26156
26157#
26158# Check for Autotrace delegate library.
26159#
26160
26161# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026162if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026163 withval=$with_autotrace; with_autotrace=$withval
26164else
26165 with_autotrace='no'
26166fi
26167
26168
26169if test "$with_autotrace" != 'yes'; then
26170 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26171fi
26172
26173have_autotrace='no'
26174AUTOTRACE_CFLAGS=""
26175AUTOTRACE_LIBS=""
26176AUTOTRACE_PKG=""
26177if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026179$as_echo "-------------------------------------------------------------" >&6; }
26180
26181pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000026183$as_echo_n "checking for AUTOTRACE... " >&6; }
26184
26185if test -n "$AUTOTRACE_CFLAGS"; then
26186 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26187 elif test -n "$PKG_CONFIG"; then
26188 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026189 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026190 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26191 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26193 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026194 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26195else
26196 pkg_failed=yes
26197fi
26198 else
26199 pkg_failed=untried
26200fi
26201if test -n "$AUTOTRACE_LIBS"; then
26202 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26203 elif test -n "$PKG_CONFIG"; then
26204 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026205 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026206 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26207 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26209 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026210 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26211else
26212 pkg_failed=yes
26213fi
26214 else
26215 pkg_failed=untried
26216fi
26217
26218
26219
26220if test $pkg_failed = yes; then
26221
26222if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26223 _pkg_short_errors_supported=yes
26224else
26225 _pkg_short_errors_supported=no
26226fi
26227 if test $_pkg_short_errors_supported = yes; then
26228 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26229 else
26230 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26231 fi
26232 # Put the nasty error message in config.log where it belongs
26233 echo "$AUTOTRACE_PKG_ERRORS" >&5
26234
cristy8b350f62009-11-15 23:12:43 +000026235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026236$as_echo "no" >&6; }
26237 have_autotrace=no
26238elif test $pkg_failed = untried; then
26239 have_autotrace=no
26240else
26241 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26242 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000026243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026244$as_echo "yes" >&6; }
26245 have_autotrace=yes
26246fi
cristy8b350f62009-11-15 23:12:43 +000026247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026248$as_echo "" >&6; }
26249fi
26250
26251if test "$have_autotrace" = 'yes'; then
26252 failed=0
26253
cristy8b350f62009-11-15 23:12:43 +000026254$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026255
26256 if test "$with_modules" = 'no'; then
26257 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26258 fi
26259fi
26260
26261 if test "$have_autotrace" = 'yes'; then
26262 AUTOTRACE_DELEGATE_TRUE=
26263 AUTOTRACE_DELEGATE_FALSE='#'
26264else
26265 AUTOTRACE_DELEGATE_TRUE='#'
26266 AUTOTRACE_DELEGATE_FALSE=
26267fi
26268
26269
26270
26271
26272
26273#
26274# Check for Display Postscript delegate library.
26275#
26276
26277# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000026278if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026279 withval=$with_dps; with_dps=$withval
26280else
26281 with_dps='yes'
26282fi
26283
26284
26285if test "$with_dps" != 'yes'; then
26286 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26287fi
26288
26289have_dps='no'
26290DPS_LIBS=''
26291if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026293$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026295$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026297$as_echo "" >&6; }
26298 failed=0
26299 passed=0
26300 PERSIST_CPPFLAGS="$CPPFLAGS"
26301 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000026302 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26303if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026304 passed=`expr $passed + 1`
26305else
26306 failed=`expr $failed + 1`
26307fi
26308
26309
26310 # DPS issues:
26311 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26312 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26313 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26314 # ImageMagick itself doesn't use -lXt.
26315 have_libdps='no'
26316 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000026317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026318$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026319if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026320 $as_echo_n "(cached) " >&6
26321else
26322 ac_check_lib_save_LIBS=$LIBS
26323LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026325/* end confdefs.h. */
26326
26327/* Override any GCC internal prototype to avoid an error.
26328 Use char because int might match the return type of a GCC
26329 builtin and then its argument prototype would still apply. */
26330#ifdef __cplusplus
26331extern "C"
26332#endif
26333char DPSInitialize ();
26334int
26335main ()
26336{
26337return DPSInitialize ();
26338 ;
26339 return 0;
26340}
26341_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026342if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026343 ac_cv_lib_dps_DPSInitialize=yes
26344else
cristy8b350f62009-11-15 23:12:43 +000026345 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026346fi
cristy8b350f62009-11-15 23:12:43 +000026347rm -f core conftest.err conftest.$ac_objext \
26348 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026349LIBS=$ac_check_lib_save_LIBS
26350fi
cristy8b350f62009-11-15 23:12:43 +000026351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026352$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026353if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026354 have_libdps='yes'
26355else
26356 have_libdps='no'
26357fi
26358
26359 if test "$have_libdps" != 'yes'; then
26360 # Unset cache variable so we can try again.
26361 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000026362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026363$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026364if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026365 $as_echo_n "(cached) " >&6
26366else
26367 ac_check_lib_save_LIBS=$LIBS
26368LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026370/* end confdefs.h. */
26371
26372/* Override any GCC internal prototype to avoid an error.
26373 Use char because int might match the return type of a GCC
26374 builtin and then its argument prototype would still apply. */
26375#ifdef __cplusplus
26376extern "C"
26377#endif
26378char DPSInitialize ();
26379int
26380main ()
26381{
26382return DPSInitialize ();
26383 ;
26384 return 0;
26385}
26386_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026387if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026388 ac_cv_lib_dps_DPSInitialize=yes
26389else
cristy8b350f62009-11-15 23:12:43 +000026390 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026391fi
cristy8b350f62009-11-15 23:12:43 +000026392rm -f core conftest.err conftest.$ac_objext \
26393 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026394LIBS=$ac_check_lib_save_LIBS
26395fi
cristy8b350f62009-11-15 23:12:43 +000026396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026397$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026398if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026399 have_libdps='yes'
26400else
26401 have_libdps='no'
26402fi
26403
26404 if test "$have_libdps" = 'yes'; then
26405 LIBDPS_XT='-lXt'
26406 fi
26407 fi
26408 if test "$have_libdps" = 'yes'; then
26409 passed=`expr $passed + 1`
26410 else
26411 failed=`expr $failed + 1`
26412 fi
cristy8b350f62009-11-15 23:12:43 +000026413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026414$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026415if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026416 $as_echo_n "(cached) " >&6
26417else
26418 ac_check_lib_save_LIBS=$LIBS
26419LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026421/* end confdefs.h. */
26422
26423/* Override any GCC internal prototype to avoid an error.
26424 Use char because int might match the return type of a GCC
26425 builtin and then its argument prototype would still apply. */
26426#ifdef __cplusplus
26427extern "C"
26428#endif
26429char XDPSPixelsPerPoint ();
26430int
26431main ()
26432{
26433return XDPSPixelsPerPoint ();
26434 ;
26435 return 0;
26436}
26437_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026438if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026439 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26440else
cristy8b350f62009-11-15 23:12:43 +000026441 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000026442fi
cristy8b350f62009-11-15 23:12:43 +000026443rm -f core conftest.err conftest.$ac_objext \
26444 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026445LIBS=$ac_check_lib_save_LIBS
26446fi
cristy8b350f62009-11-15 23:12:43 +000026447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000026448$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026449if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026450 passed=`expr $passed + 1`
26451else
26452 failed=`expr $failed + 1`
26453fi
26454
cristy8b350f62009-11-15 23:12:43 +000026455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026456$as_echo_n "checking if DPS package is complete... " >&6; }
26457 if test $passed -gt 0; then
26458 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026460$as_echo "no -- some components failed test" >&6; }
26461 have_dps='no (failed tests)'
26462 CPPFLAGS="$PERSIST_CPPFLAGS"
26463 else
26464 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26465 LIBS="$DPS_LIBS $LIBS"
26466
cristy8b350f62009-11-15 23:12:43 +000026467$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026468
cristy8b350f62009-11-15 23:12:43 +000026469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026470$as_echo "yes" >&6; }
26471 have_dps='yes'
26472 fi
26473 else
cristy8b350f62009-11-15 23:12:43 +000026474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026475$as_echo "no" >&6; }
26476 CPPFLAGS=$PERSIST_CPPFLAGS
26477 fi
26478fi
26479 if test "$have_dps" = 'yes'; then
26480 DPS_DELEGATE_TRUE=
26481 DPS_DELEGATE_FALSE='#'
26482else
26483 DPS_DELEGATE_TRUE='#'
26484 DPS_DELEGATE_FALSE=
26485fi
26486
26487
26488
26489
26490#
26491# Check for DJVU delegate library.
26492#
26493
26494# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000026495if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026496 withval=$with_djvu; with_djvu=$withval
26497else
26498 with_djvu='yes'
26499fi
26500
26501
26502if test "$with_djvu" != 'yes'; then
26503 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26504fi
26505
26506have_djvu='no'
26507DJVU_LIBS=''
26508if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026510$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000026512$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026514$as_echo "" >&6; }
26515 failed=0
26516 passed=0
cristy8b350f62009-11-15 23:12:43 +000026517 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26518if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026519 passed=`expr $passed + 1`
26520else
26521 failed=`expr $failed + 1`
26522fi
26523
26524
cristy8b350f62009-11-15 23:12:43 +000026525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000026526$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026527if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026528 $as_echo_n "(cached) " >&6
26529else
26530 ac_check_lib_save_LIBS=$LIBS
26531LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026533/* end confdefs.h. */
26534
26535/* Override any GCC internal prototype to avoid an error.
26536 Use char because int might match the return type of a GCC
26537 builtin and then its argument prototype would still apply. */
26538#ifdef __cplusplus
26539extern "C"
26540#endif
26541char ddjvu_context_create ();
26542int
26543main ()
26544{
26545return ddjvu_context_create ();
26546 ;
26547 return 0;
26548}
26549_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026550if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026551 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26552else
cristy8b350f62009-11-15 23:12:43 +000026553 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000026554fi
cristy8b350f62009-11-15 23:12:43 +000026555rm -f core conftest.err conftest.$ac_objext \
26556 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026557LIBS=$ac_check_lib_save_LIBS
26558fi
cristy8b350f62009-11-15 23:12:43 +000026559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000026560$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026561if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026562 passed=`expr $passed + 1`
26563else
26564 failed=`expr $failed + 1`
26565fi
26566
cristy8b350f62009-11-15 23:12:43 +000026567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026568$as_echo_n "checking if DJVU package is complete... " >&6; }
26569 if test $passed -gt 0; then
26570 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026572$as_echo "no -- some components failed test" >&6; }
26573 have_djvu='no (failed tests)'
26574 else
26575 DJVU_LIBS='-ldjvulibre'
26576 LIBS="$DJVU_LIBS $LIBS"
26577
cristy8b350f62009-11-15 23:12:43 +000026578$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026579
cristy8b350f62009-11-15 23:12:43 +000026580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026581$as_echo "yes" >&6; }
26582 have_djvu='yes'
26583 fi
26584 else
cristy8b350f62009-11-15 23:12:43 +000026585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026586$as_echo "no" >&6; }
26587 fi
26588fi
26589 if test "$have_djvu" = 'yes'; then
26590 DJVU_DELEGATE_TRUE=
26591 DJVU_DELEGATE_FALSE='#'
26592else
26593 DJVU_DELEGATE_TRUE='#'
26594 DJVU_DELEGATE_FALSE=
26595fi
26596
26597
26598
26599
26600#
cristy430a7312010-01-21 20:44:04 +000026601# Set DejaVu font directory.
26602#
26603
26604# Check whether --with-dejavu-font-dir was given.
26605if test "${with_dejavu_font_dir+set}" = set; then :
26606 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26607else
26608 with_dejavu_font_dir='default'
26609fi
26610
26611
26612if test "$with_dejavu_font_dir" != 'default'; then
26613 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26614fi
26615
26616
26617#
cristy3ed852e2009-09-05 21:47:34 +000026618# Check for FFTW delegate library.
26619#
26620
26621# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000026622if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026623 withval=$with_fftw; with_fftw=$withval
26624else
26625 with_fftw='yes'
26626fi
26627
26628
26629if test "$with_fftw" != 'yes'; then
26630 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26631fi
26632
26633have_fftw='no'
26634FFTW_LIBS=''
26635if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026637$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026639$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026641$as_echo "" >&6; }
26642 failed=0
26643 passed=0
cristy8b350f62009-11-15 23:12:43 +000026644 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26645if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026646 passed=`expr $passed + 1`
26647else
26648 failed=`expr $failed + 1`
26649fi
26650
26651
cristy8b350f62009-11-15 23:12:43 +000026652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026653$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026654if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026655 $as_echo_n "(cached) " >&6
26656else
26657 ac_check_lib_save_LIBS=$LIBS
26658LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026660/* end confdefs.h. */
26661
26662/* Override any GCC internal prototype to avoid an error.
26663 Use char because int might match the return type of a GCC
26664 builtin and then its argument prototype would still apply. */
26665#ifdef __cplusplus
26666extern "C"
26667#endif
26668char fftw_execute ();
26669int
26670main ()
26671{
26672return fftw_execute ();
26673 ;
26674 return 0;
26675}
26676_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026677if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026678 ac_cv_lib_fftw3_fftw_execute=yes
26679else
cristy8b350f62009-11-15 23:12:43 +000026680 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026681fi
cristy8b350f62009-11-15 23:12:43 +000026682rm -f core conftest.err conftest.$ac_objext \
26683 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026684LIBS=$ac_check_lib_save_LIBS
26685fi
cristy8b350f62009-11-15 23:12:43 +000026686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026687$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026688if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026689 passed=`expr $passed + 1`
26690else
26691 failed=`expr $failed + 1`
26692fi
26693
cristy8b350f62009-11-15 23:12:43 +000026694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026695$as_echo_n "checking if FFTW package is complete... " >&6; }
26696 if test $passed -gt 0; then
26697 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026699$as_echo "no -- some components failed test" >&6; }
26700 have_fftw='no (failed tests)'
26701 else
26702 FFTW_LIBS='-lfftw3'
26703 LIBS="$FFTW_LIBS $LIBS"
26704
cristy8b350f62009-11-15 23:12:43 +000026705$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026706
cristy8b350f62009-11-15 23:12:43 +000026707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026708$as_echo "yes" >&6; }
26709 have_fftw='yes'
26710 fi
26711 else
cristy8b350f62009-11-15 23:12:43 +000026712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026713$as_echo "no" >&6; }
26714 fi
26715fi
26716 if test "$have_fftw" = 'yes'; then
26717 FFTW_DELEGATE_TRUE=
26718 FFTW_DELEGATE_FALSE='#'
26719else
26720 FFTW_DELEGATE_TRUE='#'
26721 FFTW_DELEGATE_FALSE=
26722fi
26723
26724
26725
26726
26727#
26728# Check for FlashPIX delegate library.
26729#
26730
26731# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026732if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026733 withval=$with_fpx; with_fpx=$withval
26734else
26735 with_fpx='yes'
26736fi
26737
26738
26739if test "$with_fpx" != 'yes'; then
26740 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26741fi
26742
26743have_fpx='no'
26744FPX_LIBS=''
26745if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026747$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026749$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026751$as_echo "" >&6; }
26752 failed=0
26753 passed=0
26754 ac_ext=cpp
26755ac_cpp='$CXXCPP $CPPFLAGS'
26756ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26757ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26758ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26759
26760
cristy8b350f62009-11-15 23:12:43 +000026761ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26762if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026763 passed=`expr $passed + 1`
26764else
26765 failed=`expr $failed + 1`
26766fi
26767
26768
cristy8b350f62009-11-15 23:12:43 +000026769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026770$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026771if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026772 $as_echo_n "(cached) " >&6
26773else
26774 ac_check_lib_save_LIBS=$LIBS
26775LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026777/* end confdefs.h. */
26778
26779/* Override any GCC internal prototype to avoid an error.
26780 Use char because int might match the return type of a GCC
26781 builtin and then its argument prototype would still apply. */
26782#ifdef __cplusplus
26783extern "C"
26784#endif
26785char FPX_OpenImageByFilename ();
26786int
26787main ()
26788{
26789return FPX_OpenImageByFilename ();
26790 ;
26791 return 0;
26792}
26793_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026794if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026795 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26796else
cristy8b350f62009-11-15 23:12:43 +000026797 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026798fi
cristy8b350f62009-11-15 23:12:43 +000026799rm -f core conftest.err conftest.$ac_objext \
26800 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026801LIBS=$ac_check_lib_save_LIBS
26802fi
cristy8b350f62009-11-15 23:12:43 +000026803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026804$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026805if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026806 passed=`expr $passed + 1`
26807else
26808 failed=`expr $failed + 1`
26809fi
26810
26811 ac_ext=c
26812ac_cpp='$CPP $CPPFLAGS'
26813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26815ac_compiler_gnu=$ac_cv_c_compiler_gnu
26816
cristy8b350f62009-11-15 23:12:43 +000026817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026818$as_echo_n "checking if FlashPIX package is complete... " >&6; }
26819 if test $passed -gt 0; then
26820 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026822$as_echo "no -- some components failed test" >&6; }
26823 have_fpx='no (failed tests)'
26824 else
26825 FPX_LIBS='-lfpx'
26826
cristy8b350f62009-11-15 23:12:43 +000026827$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026828
cristy8b350f62009-11-15 23:12:43 +000026829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026830$as_echo "yes" >&6; }
26831 have_fpx='yes'
26832 PERLMAINCC="$CXX"
26833 fi
26834 else
cristy8b350f62009-11-15 23:12:43 +000026835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026836$as_echo "no" >&6; }
26837 fi
26838fi
26839 if test "$have_fpx" = 'yes'; then
26840 FPX_DELEGATE_TRUE=
26841 FPX_DELEGATE_FALSE='#'
26842else
26843 FPX_DELEGATE_TRUE='#'
26844 FPX_DELEGATE_FALSE=
26845fi
26846
26847
26848
26849
26850#
26851# Check for fontconfig delegate library.
26852#
26853
26854# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000026855if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026856 withval=$with_fontconfig; with_fontconfig=$withval
26857else
26858 with_fontconfig=$have_x
26859fi
26860
26861
26862if test "$with_fontconfig" != 'yes'; then
26863 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26864fi
26865
26866have_fontconfig='no'
26867FONTCONFIG_CFLAGS=""
26868FONTCONFIG_LIBS=""
26869FONTCONFIG_PKG=""
26870if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026872$as_echo "-------------------------------------------------------------" >&6; }
26873
26874pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026876$as_echo_n "checking for FONTCONFIG... " >&6; }
26877
26878if test -n "$FONTCONFIG_CFLAGS"; then
26879 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26880 elif test -n "$PKG_CONFIG"; then
26881 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026882 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026883 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26884 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26886 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026887 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26888else
26889 pkg_failed=yes
26890fi
26891 else
26892 pkg_failed=untried
26893fi
26894if test -n "$FONTCONFIG_LIBS"; then
26895 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
26896 elif test -n "$PKG_CONFIG"; then
26897 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026898 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026899 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26900 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26902 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026903 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
26904else
26905 pkg_failed=yes
26906fi
26907 else
26908 pkg_failed=untried
26909fi
26910
26911
26912
26913if test $pkg_failed = yes; then
26914
26915if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26916 _pkg_short_errors_supported=yes
26917else
26918 _pkg_short_errors_supported=no
26919fi
26920 if test $_pkg_short_errors_supported = yes; then
26921 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
26922 else
26923 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
26924 fi
26925 # Put the nasty error message in config.log where it belongs
26926 echo "$FONTCONFIG_PKG_ERRORS" >&5
26927
cristy8b350f62009-11-15 23:12:43 +000026928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026929$as_echo "no" >&6; }
26930 have_fontconfig=no
26931elif test $pkg_failed = untried; then
26932 have_fontconfig=no
26933else
26934 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
26935 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000026936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026937$as_echo "yes" >&6; }
26938 have_fontconfig=yes
26939fi
cristy8b350f62009-11-15 23:12:43 +000026940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026941$as_echo "" >&6; }
26942fi
26943
26944if test "$have_fontconfig" = 'yes'; then
26945
cristy8b350f62009-11-15 23:12:43 +000026946$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026947
cristyd09bcf92010-03-25 03:04:45 +000026948 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000026949 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000026950 fi
cristy3ed852e2009-09-05 21:47:34 +000026951fi
26952
26953 if test "$have_fontconfig" = 'yes'; then
26954 FONTCONFIG_DELEGATE_TRUE=
26955 FONTCONFIG_DELEGATE_FALSE='#'
26956else
26957 FONTCONFIG_DELEGATE_TRUE='#'
26958 FONTCONFIG_DELEGATE_FALSE=
26959fi
26960
26961
26962
26963
26964
26965#
26966# Check for freetype delegate library.
26967#
26968
26969# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000026970if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026971 withval=$with_freetype; with_freetype=$withval
26972else
26973 with_freetype='yes'
26974fi
26975
26976
26977
26978if test "$with_freetype" != 'yes'; then
26979 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
26980fi
26981
26982have_freetype='no'
26983FREETYPE_LIBS=''
26984if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026986$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000026988$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026990$as_echo "" >&6; }
26991 failed=0
26992 passed=0
cristy66291112009-10-03 22:44:36 +000026993 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000026994 PERSIST_CPPFLAGS="$CPPFLAGS"
26995 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
26996 :
26997 else
26998 freetype_config=''
26999 for ac_prog in freetype-config
27000do
27001 # Extract the first word of "$ac_prog", so it can be a program name with args.
27002set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027004$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027005if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027006 $as_echo_n "(cached) " >&6
27007else
27008 if test -n "$freetype_config"; then
27009 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
27010else
27011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27012for as_dir in $PATH
27013do
27014 IFS=$as_save_IFS
27015 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027016 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27018 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027020 break 2
27021 fi
27022done
cristy8b350f62009-11-15 23:12:43 +000027023 done
cristy3ed852e2009-09-05 21:47:34 +000027024IFS=$as_save_IFS
27025
27026fi
27027fi
27028freetype_config=$ac_cv_prog_freetype_config
27029if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027031$as_echo "$freetype_config" >&6; }
27032else
cristy8b350f62009-11-15 23:12:43 +000027033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027034$as_echo "no" >&6; }
27035fi
27036
27037
27038 test -n "$freetype_config" && break
27039done
27040 if test -n "$freetype_config"; then
27041 freetype_cflags=`$freetype_config --cflags`
27042 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027043 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027044 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27045 fi
27046 fi
27047
27048 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027050$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027051if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027052 $as_echo_n "(cached) " >&6
27053else
27054 ac_check_lib_save_LIBS=$LIBS
27055LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027057/* end confdefs.h. */
27058
27059/* Override any GCC internal prototype to avoid an error.
27060 Use char because int might match the return type of a GCC
27061 builtin and then its argument prototype would still apply. */
27062#ifdef __cplusplus
27063extern "C"
27064#endif
27065char FT_Init_FreeType ();
27066int
27067main ()
27068{
27069return FT_Init_FreeType ();
27070 ;
27071 return 0;
27072}
27073_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027074if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027075 ac_cv_lib_freetype_FT_Init_FreeType=yes
27076else
cristy8b350f62009-11-15 23:12:43 +000027077 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027078fi
cristy8b350f62009-11-15 23:12:43 +000027079rm -f core conftest.err conftest.$ac_objext \
27080 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027081LIBS=$ac_check_lib_save_LIBS
27082fi
cristy8b350f62009-11-15 23:12:43 +000027083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027084$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027085if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027086 FREETYPE_LIBS='-lfreetype'
27087fi
27088
27089 if test "$FREETYPE_LIBS" != ''; then
27090 passed=`expr $passed + 1`
27091 else
27092 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027093 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027094 fi
27095 fi
27096
cristy8b350f62009-11-15 23:12:43 +000027097 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27098if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027099 FT2BUILD_H='#include <ft2build.h>'
27100else
27101 ft2build=''
27102fi
27103
27104
cristy8b350f62009-11-15 23:12:43 +000027105 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27106"
27107if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027108 have_freetype_h='yes'
27109else
27110 have_freetype_h='no'
27111fi
27112
27113
27114 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27115 passed=`expr $passed + 1`
27116 else
27117 failed=`expr $failed + 1`
27118 CPPFLAGS="$PERSIST_CPPFLAGS"
27119 fi
27120
cristy8b350f62009-11-15 23:12:43 +000027121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027122$as_echo_n "checking if FreeType package is complete... " >&6; }
27123 if test $passed -gt 0; then
27124 if test $failed -gt 0; then
27125 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027127$as_echo "no -- some components failed test" >&6; }
27128 have_freetype='no (failed tests)'
27129 else
27130 LIBS="$FREETYPE_LIBS $LIBS"
27131
cristy8b350f62009-11-15 23:12:43 +000027132$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027133
27134 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27135
cristy8b350f62009-11-15 23:12:43 +000027136$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027137
27138 fi
cristy8b350f62009-11-15 23:12:43 +000027139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027140$as_echo "yes" >&6; }
27141 have_freetype='yes'
27142 fi
27143 else
cristy8b350f62009-11-15 23:12:43 +000027144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027145$as_echo "no" >&6; }
27146 fi
27147fi
27148 if test "$have_freetype" = 'yes'; then
27149 FREETYPE_DELEGATE_TRUE=
27150 FREETYPE_DELEGATE_FALSE='#'
27151else
27152 FREETYPE_DELEGATE_TRUE='#'
27153 FREETYPE_DELEGATE_FALSE=
27154fi
27155
27156
27157
27158
27159
27160#
27161# Check for Ghostscript library or framework.
27162#
27163# Test for iapi.h & test for gsapi_new_instance in -lgs
27164# or -framework Ghostscript
27165
27166
27167# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027168if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027169 withval=$with_gslib; with_gslib=$withval
27170else
27171 with_gslib='no'
27172fi
27173
27174
cristyb7931f12009-09-25 10:22:21 +000027175gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027176if test "$with_gslib" != 'yes'; then
27177 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27178fi
27179
27180have_gslib='no'
27181GS_LIBS=''
27182if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027184$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027186$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027188$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027189 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027190 failed=0
27191 passed=0
cristy8b350f62009-11-15 23:12:43 +000027192 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27193if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027194 passed=`expr $passed + 1`
27195else
27196 failed=`expr $failed + 1`
27197fi
27198
27199
cristy8b350f62009-11-15 23:12:43 +000027200 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27201if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027202 passed=`expr $passed + 1`
27203else
27204 failed=`expr $failed + 1`
27205fi
27206
27207
cristy8b350f62009-11-15 23:12:43 +000027208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000027209$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027210if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027211 $as_echo_n "(cached) " >&6
27212else
27213 ac_check_framework_save_LIBS=$LIBS
27214LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027216/* end confdefs.h. */
27217
27218/* Override any GCC internal prototype to avoid an error.
27219 Use char because int might match the return type of a GCC
27220 builtin and then its argument prototype would still apply. */
27221#ifdef __cplusplus
27222extern "C"
27223#endif
27224char gsapi_new_instance ();
27225int
27226main ()
27227{
27228return gsapi_new_instance ();
27229 ;
27230 return 0;
27231}
27232_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027233if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027234 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27235else
cristy8b350f62009-11-15 23:12:43 +000027236 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027237fi
cristy8b350f62009-11-15 23:12:43 +000027238rm -f core conftest.err conftest.$ac_objext \
27239 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027240LIBS=$ac_check_framework_save_LIBS
27241fi
cristy8b350f62009-11-15 23:12:43 +000027242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027243$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027244if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027245 framework=`expr $framework + 1`
27246else
cristy8b350f62009-11-15 23:12:43 +000027247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000027248$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027249if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027250 $as_echo_n "(cached) " >&6
27251else
27252 ac_check_lib_save_LIBS=$LIBS
27253LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027255/* end confdefs.h. */
27256
27257/* Override any GCC internal prototype to avoid an error.
27258 Use char because int might match the return type of a GCC
27259 builtin and then its argument prototype would still apply. */
27260#ifdef __cplusplus
27261extern "C"
27262#endif
27263char gsapi_new_instance ();
27264int
27265main ()
27266{
27267return gsapi_new_instance ();
27268 ;
27269 return 0;
27270}
27271_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027272if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027273 ac_cv_lib_gs_gsapi_new_instance=yes
27274else
cristy8b350f62009-11-15 23:12:43 +000027275 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027276fi
cristy8b350f62009-11-15 23:12:43 +000027277rm -f core conftest.err conftest.$ac_objext \
27278 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027279LIBS=$ac_check_lib_save_LIBS
27280fi
cristy8b350f62009-11-15 23:12:43 +000027281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027282$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027283if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027284 passed=`expr $passed + 1`
27285else
27286 failed=`expr $failed + 1`
27287fi
27288
27289fi
cristy8b350f62009-11-15 23:12:43 +000027290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027291$as_echo_n "checking if Ghostscript package is complete... " >&6; }
27292 if test $passed -gt 0; then
27293 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027295$as_echo "no -- some components failed test" >&6; }
27296 have_gslib='no (failed tests)'
27297 else
27298 if test $framework -gt 0; then
27299 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000027300 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000027301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000027302$as_echo "yes, using framework." >&6; }
27303 else
cristy8b350f62009-11-15 23:12:43 +000027304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000027305$as_echo "yes, using library." >&6; }
27306 GS_LIBS='-lgs'
27307 fi
27308 LIBS="$GS_LIBS $LIBS"
27309
cristy8b350f62009-11-15 23:12:43 +000027310$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027311
27312 have_gslib='yes'
27313 fi
27314 else
cristy8b350f62009-11-15 23:12:43 +000027315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027316$as_echo "no" >&6; }
27317 fi
27318fi
27319 if test "$have_gslib" = 'yes'; then
27320 GS_DELEGATE_TRUE=
27321 GS_DELEGATE_FALSE='#'
27322else
27323 GS_DELEGATE_TRUE='#'
27324 GS_DELEGATE_FALSE=
27325fi
27326
27327
27328
27329# Set default font search path
27330
27331# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000027332if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027333 withval=$with_fontpath; with_fontpath=$withval
27334else
27335 with_fontpath=''
27336fi
27337
27338
27339if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27340 with_fontpath=''
27341else
27342
27343cat >>confdefs.h <<_ACEOF
27344#define MAGICK_FONT_PATH "$with_fontpath"
27345_ACEOF
27346
27347fi
27348if test "$with_fontpath=" != ''; then
27349 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27350fi
27351
27352# Set Ghostscript font directory
27353
27354# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027355if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027356 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27357else
27358 with_gs_font_dir='default'
27359fi
27360
27361
27362if test "$with_gs_font_dir" != 'default'; then
27363 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27364fi
27365
27366
27367#
27368# Check for GVC delegate library.
27369#
27370
27371# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000027372if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027373 withval=$with_gvc; with_gvc=$withval
27374else
27375 with_gvc='yes'
27376fi
27377
27378
27379if test "$with_gvc" != 'yes'; then
27380 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27381fi
27382
27383GVC_PKG=""
27384if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027386$as_echo "-------------------------------------------------------------" >&6; }
27387
27388pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000027390$as_echo_n "checking for GVC... " >&6; }
27391
27392if test -n "$GVC_CFLAGS"; then
27393 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27394 elif test -n "$PKG_CONFIG"; then
27395 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027396 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027397 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27398 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27400 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027401 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27402else
27403 pkg_failed=yes
27404fi
27405 else
27406 pkg_failed=untried
27407fi
27408if test -n "$GVC_LIBS"; then
27409 pkg_cv_GVC_LIBS="$GVC_LIBS"
27410 elif test -n "$PKG_CONFIG"; then
27411 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027412 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027413 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27414 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27416 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027417 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27418else
27419 pkg_failed=yes
27420fi
27421 else
27422 pkg_failed=untried
27423fi
27424
27425
27426
27427if test $pkg_failed = yes; then
27428
27429if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27430 _pkg_short_errors_supported=yes
27431else
27432 _pkg_short_errors_supported=no
27433fi
27434 if test $_pkg_short_errors_supported = yes; then
27435 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27436 else
27437 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27438 fi
27439 # Put the nasty error message in config.log where it belongs
27440 echo "$GVC_PKG_ERRORS" >&5
27441
cristy8b350f62009-11-15 23:12:43 +000027442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027443$as_echo "no" >&6; }
27444 have_gvc=no
27445elif test $pkg_failed = untried; then
27446 have_gvc=no
27447else
27448 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27449 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000027450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027451$as_echo "yes" >&6; }
27452 have_gvc=yes
27453fi
cristy8b350f62009-11-15 23:12:43 +000027454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027455$as_echo "" >&6; }
27456fi
27457
27458if test "$have_gvc" = 'yes'; then
27459
cristy8b350f62009-11-15 23:12:43 +000027460$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027461
27462 if test "$with_modules" = 'no'; then
27463 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27464 fi
27465fi
27466
27467 if test "$have_gvc" = 'yes'; then
27468 GVC_DELEGATE_TRUE=
27469 GVC_DELEGATE_FALSE='#'
27470else
27471 GVC_DELEGATE_TRUE='#'
27472 GVC_DELEGATE_FALSE=
27473fi
27474
27475
27476
27477
27478
27479#
27480# Check for JBIG delegate library.
27481#
27482
27483
27484# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000027485if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027486 withval=$with_jbig; with_jbig=$withval
27487else
27488 with_jbig='yes'
27489fi
27490
27491
27492have_jbig='no'
27493JBIG_LIBS=''
27494if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027496$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027498$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027500$as_echo "" >&6; }
27501 failed=0
27502 passed=0
cristy8b350f62009-11-15 23:12:43 +000027503 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27504if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027505 passed=`expr $passed + 1`
27506else
27507 failed=`expr $failed + 1`
27508fi
27509
27510
cristy8b350f62009-11-15 23:12:43 +000027511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000027512$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027513if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027514 $as_echo_n "(cached) " >&6
27515else
27516 ac_check_lib_save_LIBS=$LIBS
27517LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027519/* end confdefs.h. */
27520
27521/* Override any GCC internal prototype to avoid an error.
27522 Use char because int might match the return type of a GCC
27523 builtin and then its argument prototype would still apply. */
27524#ifdef __cplusplus
27525extern "C"
27526#endif
27527char jbg_dec_init ();
27528int
27529main ()
27530{
27531return jbg_dec_init ();
27532 ;
27533 return 0;
27534}
27535_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027536if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027537 ac_cv_lib_jbig_jbg_dec_init=yes
27538else
cristy8b350f62009-11-15 23:12:43 +000027539 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000027540fi
cristy8b350f62009-11-15 23:12:43 +000027541rm -f core conftest.err conftest.$ac_objext \
27542 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027543LIBS=$ac_check_lib_save_LIBS
27544fi
cristy8b350f62009-11-15 23:12:43 +000027545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000027546$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027547if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027548 passed=`expr $passed + 1`
27549else
27550 failed=`expr $failed + 1`
27551fi
27552
cristy8b350f62009-11-15 23:12:43 +000027553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027554$as_echo_n "checking if JBIG package is complete... " >&6; }
27555 if test $passed -gt 0; then
27556 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027558$as_echo "no -- some components failed test" >&6; }
27559 have_jbig='no (failed tests)'
27560 else
27561 JBIG_LIBS='-ljbig'
27562 LIBS="$JBIG_LIBS $LIBS"
27563
cristy8b350f62009-11-15 23:12:43 +000027564$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027565
cristy8b350f62009-11-15 23:12:43 +000027566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027567$as_echo "yes" >&6; }
27568 have_jbig='yes'
27569 fi
27570 else
cristy8b350f62009-11-15 23:12:43 +000027571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027572$as_echo "no" >&6; }
27573 fi
27574fi
27575 if test "$have_jbig" = 'yes'; then
27576 JBIG_DELEGATE_TRUE=
27577 JBIG_DELEGATE_FALSE='#'
27578else
27579 JBIG_DELEGATE_TRUE='#'
27580 JBIG_DELEGATE_FALSE=
27581fi
27582
27583
27584
27585
27586#
27587# Check for JPEG delegate library.
27588#
27589
27590# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000027591if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027592 withval=$with_jpeg; with_jpeg=$withval
27593else
27594 with_jpeg='yes'
27595fi
27596
27597
27598if test "$with_jpeg" != 'yes'; then
27599 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27600fi
27601
27602have_jpeg='no'
27603JPEG_LIBS=''
27604if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027606$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027608$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027610$as_echo "" >&6; }
27611 failed=0
27612 passed=0
cristy8b350f62009-11-15 23:12:43 +000027613 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27614if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027615 passed=`expr $passed + 1`
27616else
27617 failed=`expr $failed + 1`
27618fi
27619
27620
cristy8b350f62009-11-15 23:12:43 +000027621 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27622if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027623 passed=`expr $passed + 1`
27624else
27625 failed=`expr $failed + 1`
27626fi
27627
27628
cristy8b350f62009-11-15 23:12:43 +000027629 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27630if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027631 passed=`expr $passed + 1`
27632else
27633 failed=`expr $failed + 1`
27634fi
27635
27636
cristy8b350f62009-11-15 23:12:43 +000027637 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27638if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027639 passed=`expr $passed + 1`
27640else
27641 failed=`expr $failed + 1`
27642fi
27643
27644
cristy8b350f62009-11-15 23:12:43 +000027645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027646$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027647if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027648 $as_echo_n "(cached) " >&6
27649else
27650 ac_check_lib_save_LIBS=$LIBS
27651LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027653/* end confdefs.h. */
27654
27655/* Override any GCC internal prototype to avoid an error.
27656 Use char because int might match the return type of a GCC
27657 builtin and then its argument prototype would still apply. */
27658#ifdef __cplusplus
27659extern "C"
27660#endif
27661char jpeg_read_header ();
27662int
27663main ()
27664{
27665return jpeg_read_header ();
27666 ;
27667 return 0;
27668}
27669_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027670if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027671 ac_cv_lib_jpeg_jpeg_read_header=yes
27672else
cristy8b350f62009-11-15 23:12:43 +000027673 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027674fi
cristy8b350f62009-11-15 23:12:43 +000027675rm -f core conftest.err conftest.$ac_objext \
27676 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027677LIBS=$ac_check_lib_save_LIBS
27678fi
cristy8b350f62009-11-15 23:12:43 +000027679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027680$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027681if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027682 passed=`expr $passed + 1`
27683else
27684 failed=`expr $failed + 1`
27685fi
27686
27687
27688# Test for compatible JPEG library
27689if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027691$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027692if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027693 $as_echo_n "(cached) " >&6
27694else
cristy8b350f62009-11-15 23:12:43 +000027695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027696/* end confdefs.h. */
27697#include <stdio.h>
27698#include <stdlib.h>
27699#include <jpeglib.h>
27700
27701int
27702main ()
27703{
27704
27705#if JPEG_LIB_VERSION < 62
27706#error IJG JPEG library must be version 6b or newer!
27707#endif
27708return 0;
27709
27710 ;
27711 return 0;
27712}
27713_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027714if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027715 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27716else
cristy8b350f62009-11-15 23:12:43 +000027717 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027718fi
cristy3ed852e2009-09-05 21:47:34 +000027719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27720fi
cristy8b350f62009-11-15 23:12:43 +000027721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027722$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27723fi
cristy8b350f62009-11-15 23:12:43 +000027724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027725$as_echo_n "checking if JPEG package is complete... " >&6; }
27726 if test $passed -gt 0; then
27727 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027729$as_echo "no -- some components failed test" >&6; }
27730 have_jpeg='no (failed tests)'
27731 else
27732 JPEG_LIBS='-ljpeg'
27733 LIBS="$JPEG_LIBS $LIBS"
27734
cristy8b350f62009-11-15 23:12:43 +000027735$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027736
cristy8b350f62009-11-15 23:12:43 +000027737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027738$as_echo "yes" >&6; }
27739 have_jpeg='yes'
27740 fi
27741 else
cristy8b350f62009-11-15 23:12:43 +000027742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027743$as_echo "no" >&6; }
27744 fi
27745fi
27746 if test "$have_jpeg" = 'yes'; then
27747 JPEG_DELEGATE_TRUE=
27748 JPEG_DELEGATE_FALSE='#'
27749else
27750 JPEG_DELEGATE_TRUE='#'
27751 JPEG_DELEGATE_FALSE=
27752fi
27753
27754
27755
27756
27757#
27758# Check for JPEG Version 2 delegate library.
27759#
27760
27761# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027762if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027763 withval=$with_jp2; with_jp2=$withval
27764else
27765 with_jp2='yes'
27766fi
27767
27768
27769if test "$with_jp2" != 'yes'; then
27770 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27771fi
27772
27773have_jp2='no'
27774JP2_LIBS=''
27775if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027777$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027779$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027781$as_echo "" >&6; }
27782 failed=0
27783 passed=0
cristy8b350f62009-11-15 23:12:43 +000027784 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27785if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027786 passed=`expr $passed + 1`
27787else
27788 failed=`expr $failed + 1`
27789fi
27790
27791
cristy8b350f62009-11-15 23:12:43 +000027792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027793$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027794if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027795 $as_echo_n "(cached) " >&6
27796else
27797 ac_check_lib_save_LIBS=$LIBS
27798LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027800/* end confdefs.h. */
27801
27802/* Override any GCC internal prototype to avoid an error.
27803 Use char because int might match the return type of a GCC
27804 builtin and then its argument prototype would still apply. */
27805#ifdef __cplusplus
27806extern "C"
27807#endif
27808char jas_stream_fopen ();
27809int
27810main ()
27811{
27812return jas_stream_fopen ();
27813 ;
27814 return 0;
27815}
27816_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027817if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027818 ac_cv_lib_jasper_jas_stream_fopen=yes
27819else
cristy8b350f62009-11-15 23:12:43 +000027820 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000027821fi
cristy8b350f62009-11-15 23:12:43 +000027822rm -f core conftest.err conftest.$ac_objext \
27823 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027824LIBS=$ac_check_lib_save_LIBS
27825fi
cristy8b350f62009-11-15 23:12:43 +000027826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027827$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027828if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027829 passed=`expr $passed + 1`
27830else
27831 failed=`expr $failed + 1`
27832fi
27833
cristy8b350f62009-11-15 23:12:43 +000027834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027835$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27836 if test $passed -gt 0; then
27837 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027839$as_echo "no -- some components failed test" >&6; }
27840 have_jp2='no (failed tests)'
27841 else
27842 JP2_LIBS='-ljasper'
27843 LIBS="$JP2_LIBS $LIBS"
27844
cristy8b350f62009-11-15 23:12:43 +000027845$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027846
cristy8b350f62009-11-15 23:12:43 +000027847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027848$as_echo "yes" >&6; }
27849 have_jp2='yes'
27850 fi
27851 else
cristy8b350f62009-11-15 23:12:43 +000027852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027853$as_echo "no" >&6; }
27854 fi
27855fi
27856 if test "$have_jp2" = 'yes'; then
27857 JP2_DELEGATE_TRUE=
27858 JP2_DELEGATE_FALSE='#'
27859else
27860 JP2_DELEGATE_TRUE='#'
27861 JP2_DELEGATE_FALSE=
27862fi
27863
27864
27865
27866
27867#
27868# Check for LCMS delegate library.
27869#
cristy71203402010-06-18 13:12:03 +000027870# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000027871
27872# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000027873if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027874 withval=$with_lcms; with_lcms=$withval
27875else
27876 with_lcms='yes'
27877fi
27878
cristy71203402010-06-18 13:12:03 +000027879if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000027880 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27881fi
27882
cristy71203402010-06-18 13:12:03 +000027883# Disable LCMS2.
27884
27885# Check whether --with-lcms2 was given.
27886if test "${with_lcms2+set}" = set; then :
27887 withval=$with_lcms2; with_lcms2=$withval
27888else
27889 with_lcms2='yes'
27890fi
27891
27892if test "$with_lcms2" != 'yes' ; then
27893 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
27894fi
27895
27896have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000027897LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000027898if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027900$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000027901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
27902$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027904$as_echo "" >&6; }
27905 failed=0
27906 passed=0
27907 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000027908
27909 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000027910 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
27911if test "x$ac_cv_header_lcms2_h" = x""yes; then :
27912 have_lcms_header='yes'
27913fi
27914
27915
27916 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000027917
27918$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
27919
cristy71203402010-06-18 13:12:03 +000027920 passed=`expr $passed + 1`
27921 fi
27922
27923 # Check for <lcms2/lcms2.h)
27924 if test "$have_lcms_header" != 'yes'; then
27925 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
27926if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000027927 have_lcms_header='yes'
27928fi
27929
27930
cristy71203402010-06-18 13:12:03 +000027931 if test "$have_lcms_header" = 'yes'; then
27932 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000027933
cristy71203402010-06-18 13:12:03 +000027934$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000027935
cristy71203402010-06-18 13:12:03 +000027936 fi
cristyd09bcf92010-03-25 03:04:45 +000027937 fi
cristy71203402010-06-18 13:12:03 +000027938
27939 # Failed to find lcms header?
27940 if test "$have_lcms_header" != 'yes'; then
27941 failed=`expr $failed + 1`
27942 fi
27943
27944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
27945$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
27946if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
cristyd09bcf92010-03-25 03:04:45 +000027947 $as_echo_n "(cached) " >&6
27948else
27949 ac_check_lib_save_LIBS=$LIBS
27950LIBS="-llcms2 $LIBS"
27951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27952/* end confdefs.h. */
27953
27954/* Override any GCC internal prototype to avoid an error.
27955 Use char because int might match the return type of a GCC
27956 builtin and then its argument prototype would still apply. */
27957#ifdef __cplusplus
27958extern "C"
27959#endif
cristy71203402010-06-18 13:12:03 +000027960char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000027961int
27962main ()
27963{
cristy71203402010-06-18 13:12:03 +000027964return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000027965 ;
27966 return 0;
27967}
27968_ACEOF
27969if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000027970 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000027971else
cristy71203402010-06-18 13:12:03 +000027972 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000027973fi
27974rm -f core conftest.err conftest.$ac_objext \
27975 conftest$ac_exeext conftest.$ac_ext
27976LIBS=$ac_check_lib_save_LIBS
27977fi
cristy71203402010-06-18 13:12:03 +000027978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
27979$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
27980if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000027981 passed=`expr $passed + 1`
27982else
27983 failed=`expr $failed + 1`
27984fi
27985
cristy71203402010-06-18 13:12:03 +000027986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
27987$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000027988 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000027989 if test $failed -gt 0; then
27990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000027991$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000027992 have_lcms2='no (failed tests)'
27993 else
27994 LCMS_LIBS='-llcms2'
27995 LIBS="$LCMS_LIBS $LIBS"
27996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000027997$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000027998 have_lcms2='yes'
27999 fi
cristyd09bcf92010-03-25 03:04:45 +000028000 else
cristy71203402010-06-18 13:12:03 +000028001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000028002$as_echo "no" >&6; }
28003 fi
28004fi
28005
cristy71203402010-06-18 13:12:03 +000028006#
28007# Check for LCMS v1 (1.11 or later)
28008#
28009if test $have_lcms2 = 'yes'; then
28010 with_lcms='no'
28011fi
28012
28013have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000028014if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000028015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28016$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
28018$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28020$as_echo "" >&6; }
28021 failed=0
28022 passed=0
28023 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028024
28025 # Check for <lcms.h>
28026 if test "$have_lcms_header" != 'yes'; then
28027 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristy8b350f62009-11-15 23:12:43 +000028028if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028029 have_lcms_header='yes'
28030fi
28031
28032
cristy71203402010-06-18 13:12:03 +000028033 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028034 passed=`expr $passed + 1`
28035
cristy8b350f62009-11-15 23:12:43 +000028036$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028037
cristy71203402010-06-18 13:12:03 +000028038 fi
28039 fi
28040
28041 # Check for <lcms/lcms.h>
28042 if test "$have_lcms_header" != 'yes'; then
28043 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 +000028044if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028045 have_lcms_header='yes'
28046fi
28047
28048
cristy71203402010-06-18 13:12:03 +000028049 if test "$have_lcms_header" = 'yes'; then
28050 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028051
cristy8b350f62009-11-15 23:12:43 +000028052$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028053
cristy71203402010-06-18 13:12:03 +000028054 fi
cristy3ed852e2009-09-05 21:47:34 +000028055 fi
cristy71203402010-06-18 13:12:03 +000028056
28057 # Failed to find lcms header?
28058 if test "$have_lcms_header" != 'yes'; then
28059 failed=`expr $failed + 1`
28060 fi
28061
28062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28063$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28064if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028065 $as_echo_n "(cached) " >&6
28066else
28067 ac_check_lib_save_LIBS=$LIBS
28068LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028070/* end confdefs.h. */
28071
28072/* Override any GCC internal prototype to avoid an error.
28073 Use char because int might match the return type of a GCC
28074 builtin and then its argument prototype would still apply. */
28075#ifdef __cplusplus
28076extern "C"
28077#endif
cristy71203402010-06-18 13:12:03 +000028078char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028079int
28080main ()
28081{
cristy71203402010-06-18 13:12:03 +000028082return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028083 ;
28084 return 0;
28085}
28086_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028087if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028088 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000028089else
cristy71203402010-06-18 13:12:03 +000028090 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000028091fi
cristy8b350f62009-11-15 23:12:43 +000028092rm -f core conftest.err conftest.$ac_objext \
28093 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028094LIBS=$ac_check_lib_save_LIBS
28095fi
cristy71203402010-06-18 13:12:03 +000028096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28097$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28098if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028099 passed=`expr $passed + 1`
28100else
28101 failed=`expr $failed + 1`
28102fi
28103
cristy8b350f62009-11-15 23:12:43 +000028104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028105$as_echo_n "checking if LCMS package is complete... " >&6; }
28106 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028107 if test $failed -gt 0; then
28108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028109$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028110 have_lcms='no (failed tests)'
28111 else
28112 LCMS_LIBS='-llcms'
28113 LIBS="$LCMS_LIBS $LIBS"
28114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028115$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028116 have_lcms='yes'
28117 fi
cristy3ed852e2009-09-05 21:47:34 +000028118 else
cristy71203402010-06-18 13:12:03 +000028119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028120$as_echo "no" >&6; }
28121 fi
28122fi
cristy71203402010-06-18 13:12:03 +000028123
28124 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028125 LCMS_DELEGATE_TRUE=
28126 LCMS_DELEGATE_FALSE='#'
28127else
28128 LCMS_DELEGATE_TRUE='#'
28129 LCMS_DELEGATE_FALSE=
28130fi
28131
cristy71203402010-06-18 13:12:03 +000028132if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28133
28134$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28135
28136fi
28137
cristy3ed852e2009-09-05 21:47:34 +000028138
28139
28140
28141#
28142# Check for the LQR (Liquid Rescale) delegate library.
28143#
28144
28145# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028146if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028147 withval=$with_lqr; with_lqr=$withval
28148else
28149 with_lqr='yes'
28150fi
28151
28152
28153if test "$with_lqr" != 'yes'; then
28154 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28155fi
28156
28157have_lqr='no'
28158LQR_CFLAGS=""
28159LQR_LIBS=""
28160LQR_PKG=""
28161if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028163$as_echo "-------------------------------------------------------------" >&6; }
28164
28165pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028167$as_echo_n "checking for LQR... " >&6; }
28168
28169if test -n "$LQR_CFLAGS"; then
28170 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28171 elif test -n "$PKG_CONFIG"; then
28172 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028173 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028174 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28175 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28177 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028178 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28179else
28180 pkg_failed=yes
28181fi
28182 else
28183 pkg_failed=untried
28184fi
28185if test -n "$LQR_LIBS"; then
28186 pkg_cv_LQR_LIBS="$LQR_LIBS"
28187 elif test -n "$PKG_CONFIG"; then
28188 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028189 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028190 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28191 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28193 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028194 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28195else
28196 pkg_failed=yes
28197fi
28198 else
28199 pkg_failed=untried
28200fi
28201
28202
28203
28204if test $pkg_failed = yes; then
28205
28206if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28207 _pkg_short_errors_supported=yes
28208else
28209 _pkg_short_errors_supported=no
28210fi
28211 if test $_pkg_short_errors_supported = yes; then
28212 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28213 else
28214 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28215 fi
28216 # Put the nasty error message in config.log where it belongs
28217 echo "$LQR_PKG_ERRORS" >&5
28218
cristy8b350f62009-11-15 23:12:43 +000028219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028220$as_echo "no" >&6; }
28221 have_lqr=no
28222elif test $pkg_failed = untried; then
28223 have_lqr=no
28224else
28225 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28226 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028228$as_echo "yes" >&6; }
28229 have_lqr=yes
28230fi
cristy8b350f62009-11-15 23:12:43 +000028231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028232$as_echo "" >&6; }
28233fi
28234
28235if test "$have_lqr" = 'yes'; then
28236
cristy8b350f62009-11-15 23:12:43 +000028237$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028238
28239 CFLAGS="$LQR_CFLAGS $CFLAGS"
28240fi
28241
28242 if test "$have_lqr" = 'yes'; then
28243 LQR_DELEGATE_TRUE=
28244 LQR_DELEGATE_FALSE='#'
28245else
28246 LQR_DELEGATE_TRUE='#'
28247 LQR_DELEGATE_FALSE=
28248fi
28249
28250
28251
28252
28253
28254#
28255# Check for the OpenEXR delegate library.
28256#
28257
28258# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000028259if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028260 withval=$with_openexr; with_openexr=$withval
28261else
28262 with_openexr='yes'
28263fi
28264
28265
28266if test "$with_openexr" != 'yes'; then
28267 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28268fi
28269
28270have_openexr='no'
28271OPENEXR_CFLAGS=""
28272OPENEXR_LIBS=""
28273OPENEXR_PKG=""
28274if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028276$as_echo "-------------------------------------------------------------" >&6; }
28277
28278pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028280$as_echo_n "checking for OPENEXR... " >&6; }
28281
28282if test -n "$OPENEXR_CFLAGS"; then
28283 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28284 elif test -n "$PKG_CONFIG"; then
28285 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028286 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028287 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28288 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28290 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028291 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28292else
28293 pkg_failed=yes
28294fi
28295 else
28296 pkg_failed=untried
28297fi
28298if test -n "$OPENEXR_LIBS"; then
28299 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28300 elif test -n "$PKG_CONFIG"; then
28301 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028302 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028303 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28304 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28306 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028307 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28308else
28309 pkg_failed=yes
28310fi
28311 else
28312 pkg_failed=untried
28313fi
28314
28315
28316
28317if test $pkg_failed = yes; then
28318
28319if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28320 _pkg_short_errors_supported=yes
28321else
28322 _pkg_short_errors_supported=no
28323fi
28324 if test $_pkg_short_errors_supported = yes; then
28325 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28326 else
28327 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28328 fi
28329 # Put the nasty error message in config.log where it belongs
28330 echo "$OPENEXR_PKG_ERRORS" >&5
28331
cristy8b350f62009-11-15 23:12:43 +000028332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028333$as_echo "no" >&6; }
28334 have_openexr=no
28335elif test $pkg_failed = untried; then
28336 have_openexr=no
28337else
28338 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28339 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028341$as_echo "yes" >&6; }
28342 have_openexr=yes
28343fi
cristy8b350f62009-11-15 23:12:43 +000028344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028345$as_echo "" >&6; }
28346fi
28347
28348if test "$have_openexr" = 'yes'; then
28349
cristy8b350f62009-11-15 23:12:43 +000028350$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028351
28352 if test "$with_modules" = 'no'; then
28353 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28354 fi
28355fi
28356
28357 if test "$have_openexr" = 'yes'; then
28358 OPENEXR_DELEGATE_TRUE=
28359 OPENEXR_DELEGATE_FALSE='#'
28360else
28361 OPENEXR_DELEGATE_TRUE='#'
28362 OPENEXR_DELEGATE_FALSE=
28363fi
28364
28365
28366
28367
28368
28369#
28370# Check for PNG delegate library.
28371#
28372
28373# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000028374if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028375 withval=$with_png; with_png=$withval
28376else
28377 with_png='yes'
28378fi
28379
28380
28381if test "$with_png" != 'yes'; then
28382 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28383fi
28384
28385have_png='no'
28386PNG_LIBS=''
28387if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028389$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028391$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028393$as_echo "" >&6; }
28394 failed=0
28395 passed=0
cristy8b350f62009-11-15 23:12:43 +000028396 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28397if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028398 passed=`expr $passed + 1`
28399else
28400 failed=`expr $failed + 1`
28401fi
28402
28403
cristy8b350f62009-11-15 23:12:43 +000028404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000028405$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028406if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028407 $as_echo_n "(cached) " >&6
28408else
28409 ac_check_lib_save_LIBS=$LIBS
28410LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028412/* end confdefs.h. */
28413
28414/* Override any GCC internal prototype to avoid an error.
28415 Use char because int might match the return type of a GCC
28416 builtin and then its argument prototype would still apply. */
28417#ifdef __cplusplus
28418extern "C"
28419#endif
28420char png_get_io_ptr ();
28421int
28422main ()
28423{
28424return png_get_io_ptr ();
28425 ;
28426 return 0;
28427}
28428_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028429if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028430 ac_cv_lib_png_png_get_io_ptr=yes
28431else
cristy8b350f62009-11-15 23:12:43 +000028432 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000028433fi
cristy8b350f62009-11-15 23:12:43 +000028434rm -f core conftest.err conftest.$ac_objext \
28435 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028436LIBS=$ac_check_lib_save_LIBS
28437fi
cristy8b350f62009-11-15 23:12:43 +000028438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000028439$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028440if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028441 passed=`expr $passed + 1`
28442else
28443 failed=`expr $failed + 1`
28444fi
28445
cristy8b350f62009-11-15 23:12:43 +000028446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028447$as_echo_n "checking if PNG package is complete... " >&6; }
28448 if test $passed -gt 0; then
28449 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028451$as_echo "no -- some components failed test" >&6; }
28452 have_png='no (failed tests)'
28453 else
28454 PNG_LIBS='-lpng'
28455 LIBS="$PNG_LIBS $LIBS"
28456
cristy8b350f62009-11-15 23:12:43 +000028457$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028458
cristy8b350f62009-11-15 23:12:43 +000028459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028460$as_echo "yes" >&6; }
28461 have_png='yes'
28462 fi
28463 else
cristy8b350f62009-11-15 23:12:43 +000028464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028465$as_echo "no" >&6; }
28466 fi
28467fi
28468 if test "$have_png" = 'yes'; then
28469 PNG_DELEGATE_TRUE=
28470 PNG_DELEGATE_FALSE='#'
28471else
28472 PNG_DELEGATE_TRUE='#'
28473 PNG_DELEGATE_FALSE=
28474fi
28475
28476
28477
28478
28479#
28480# Check for RSVG delegate library.
28481#
28482
28483# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000028484if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028485 withval=$with_rsvg; with_rsvg=$withval
28486else
28487 with_rsvg=$have_x
28488fi
28489
28490
28491if test "$with_rsvg" != 'yes'; then
28492 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28493fi
28494
28495have_rsvg='no'
28496have_cairo='no'
28497RSVG_CFLAGS=""
28498RSVG_LIBS=""
28499RSVG_PKG=""
28500if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028502$as_echo "-------------------------------------------------------------" >&6; }
28503
28504pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028506$as_echo_n "checking for RSVG... " >&6; }
28507
28508if test -n "$RSVG_CFLAGS"; then
28509 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28510 elif test -n "$PKG_CONFIG"; then
28511 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028512 { { $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 +000028513 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28514 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28516 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028517 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28518else
28519 pkg_failed=yes
28520fi
28521 else
28522 pkg_failed=untried
28523fi
28524if test -n "$RSVG_LIBS"; then
28525 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28526 elif test -n "$PKG_CONFIG"; then
28527 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028528 { { $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 +000028529 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28530 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28532 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028533 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28534else
28535 pkg_failed=yes
28536fi
28537 else
28538 pkg_failed=untried
28539fi
28540
28541
28542
28543if test $pkg_failed = yes; then
28544
28545if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28546 _pkg_short_errors_supported=yes
28547else
28548 _pkg_short_errors_supported=no
28549fi
28550 if test $_pkg_short_errors_supported = yes; then
28551 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28552 else
28553 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28554 fi
28555 # Put the nasty error message in config.log where it belongs
28556 echo "$RSVG_PKG_ERRORS" >&5
28557
cristy8b350f62009-11-15 23:12:43 +000028558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028559$as_echo "no" >&6; }
28560 have_rsvg=no
28561elif test $pkg_failed = untried; then
28562 have_rsvg=no
28563else
28564 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28565 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028567$as_echo "yes" >&6; }
28568 have_rsvg=yes
28569fi
cristy8b350f62009-11-15 23:12:43 +000028570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028571$as_echo "" >&6; }
28572
28573pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028575$as_echo_n "checking for CAIRO_SVG... " >&6; }
28576
28577if test -n "$CAIRO_SVG_CFLAGS"; then
28578 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28579 elif test -n "$PKG_CONFIG"; then
28580 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028581 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028582 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28583 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28585 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028586 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28587else
28588 pkg_failed=yes
28589fi
28590 else
28591 pkg_failed=untried
28592fi
28593if test -n "$CAIRO_SVG_LIBS"; then
28594 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28595 elif test -n "$PKG_CONFIG"; then
28596 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028597 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028598 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28599 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28601 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028602 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28603else
28604 pkg_failed=yes
28605fi
28606 else
28607 pkg_failed=untried
28608fi
28609
28610
28611
28612if test $pkg_failed = yes; then
28613
28614if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28615 _pkg_short_errors_supported=yes
28616else
28617 _pkg_short_errors_supported=no
28618fi
28619 if test $_pkg_short_errors_supported = yes; then
28620 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28621 else
28622 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28623 fi
28624 # Put the nasty error message in config.log where it belongs
28625 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28626
cristy8b350f62009-11-15 23:12:43 +000028627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028628$as_echo "no" >&6; }
28629 have_cairo=no
28630elif test $pkg_failed = untried; then
28631 have_cairo=no
28632else
28633 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28634 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028636$as_echo "yes" >&6; }
28637 have_cairo=yes
28638fi
cristy8b350f62009-11-15 23:12:43 +000028639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028640$as_echo "" >&6; }
28641fi
28642
28643if test "$have_rsvg" = 'yes'; then
28644
cristy8b350f62009-11-15 23:12:43 +000028645$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028646
28647 if test "$with_modules" = 'no'; then
28648 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28649 fi
28650fi
28651
28652if test "$have_cairo" = 'yes'; then
28653
cristy8b350f62009-11-15 23:12:43 +000028654$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028655
28656 if test "$with_modules" = 'no'; then
28657 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28658 fi
28659fi
28660
28661 if test "$have_rsvg" = 'yes'; then
28662 RSVG_DELEGATE_TRUE=
28663 RSVG_DELEGATE_FALSE='#'
28664else
28665 RSVG_DELEGATE_TRUE='#'
28666 RSVG_DELEGATE_FALSE=
28667fi
28668
28669 if test "$have_cairo" = 'yes'; then
28670 CAIRO_DELEGATE_TRUE=
28671 CAIRO_DELEGATE_FALSE='#'
28672else
28673 CAIRO_DELEGATE_TRUE='#'
28674 CAIRO_DELEGATE_FALSE=
28675fi
28676
28677
28678
28679
28680
28681#
28682# Check for TIFF delegate library.
28683#
28684
28685# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000028686if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028687 withval=$with_tiff; with_tiff=$withval
28688else
28689 with_tiff='yes'
28690fi
28691
28692
28693if test "$with_tiff" != 'yes'; then
28694 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28695fi
28696
28697have_tiff='no'
28698TIFF_LIBS=''
28699if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028701$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028703$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028705$as_echo "" >&6; }
28706 failed=0
28707 passed=0
cristy8b350f62009-11-15 23:12:43 +000028708 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28709if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028710 passed=`expr $passed + 1`
28711else
28712 failed=`expr $failed + 1`
28713fi
28714
28715
cristy8b350f62009-11-15 23:12:43 +000028716 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28717if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028718 passed=`expr $passed + 1`
28719else
28720 failed=`expr $failed + 1`
28721fi
28722
28723
cristy8b350f62009-11-15 23:12:43 +000028724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028725$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028726if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028727 $as_echo_n "(cached) " >&6
28728else
28729 ac_check_lib_save_LIBS=$LIBS
28730LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028732/* end confdefs.h. */
28733
28734/* Override any GCC internal prototype to avoid an error.
28735 Use char because int might match the return type of a GCC
28736 builtin and then its argument prototype would still apply. */
28737#ifdef __cplusplus
28738extern "C"
28739#endif
28740char TIFFOpen ();
28741int
28742main ()
28743{
28744return TIFFOpen ();
28745 ;
28746 return 0;
28747}
28748_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028749if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028750 ac_cv_lib_tiff_TIFFOpen=yes
28751else
cristy8b350f62009-11-15 23:12:43 +000028752 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028753fi
cristy8b350f62009-11-15 23:12:43 +000028754rm -f core conftest.err conftest.$ac_objext \
28755 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028756LIBS=$ac_check_lib_save_LIBS
28757fi
cristy8b350f62009-11-15 23:12:43 +000028758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028759$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028760if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028761 passed=`expr $passed + 1`
28762else
28763 failed=`expr $failed + 1`
28764fi
28765
cristy8b350f62009-11-15 23:12:43 +000028766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028767$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028768if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028769 $as_echo_n "(cached) " >&6
28770else
28771 ac_check_lib_save_LIBS=$LIBS
28772LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028774/* end confdefs.h. */
28775
28776/* Override any GCC internal prototype to avoid an error.
28777 Use char because int might match the return type of a GCC
28778 builtin and then its argument prototype would still apply. */
28779#ifdef __cplusplus
28780extern "C"
28781#endif
28782char TIFFClientOpen ();
28783int
28784main ()
28785{
28786return TIFFClientOpen ();
28787 ;
28788 return 0;
28789}
28790_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028791if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028792 ac_cv_lib_tiff_TIFFClientOpen=yes
28793else
cristy8b350f62009-11-15 23:12:43 +000028794 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028795fi
cristy8b350f62009-11-15 23:12:43 +000028796rm -f core conftest.err conftest.$ac_objext \
28797 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028798LIBS=$ac_check_lib_save_LIBS
28799fi
cristy8b350f62009-11-15 23:12:43 +000028800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028801$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028802if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028803 passed=`expr $passed + 1`
28804else
28805 failed=`expr $failed + 1`
28806fi
28807
cristyb97f1002010-07-26 14:02:57 +000028808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
28809$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
28810if test "${ac_cv_lib_tiff_TIFFIsBigEndian+set}" = set; then :
28811 $as_echo_n "(cached) " >&6
28812else
28813 ac_check_lib_save_LIBS=$LIBS
28814LIBS="-ltiff $LIBS"
28815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28816/* end confdefs.h. */
28817
28818/* Override any GCC internal prototype to avoid an error.
28819 Use char because int might match the return type of a GCC
28820 builtin and then its argument prototype would still apply. */
28821#ifdef __cplusplus
28822extern "C"
28823#endif
28824char TIFFIsBigEndian ();
28825int
28826main ()
28827{
28828return TIFFIsBigEndian ();
28829 ;
28830 return 0;
28831}
28832_ACEOF
28833if ac_fn_c_try_link "$LINENO"; then :
28834 ac_cv_lib_tiff_TIFFIsBigEndian=yes
28835else
28836 ac_cv_lib_tiff_TIFFIsBigEndian=no
28837fi
28838rm -f core conftest.err conftest.$ac_objext \
28839 conftest$ac_exeext conftest.$ac_ext
28840LIBS=$ac_check_lib_save_LIBS
28841fi
28842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
28843$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
28844if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = x""yes; then :
28845 passed=`expr $passed + 1`
28846else
28847 failed=`expr $failed + 1`
28848fi
28849
cristy8b350f62009-11-15 23:12:43 +000028850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028851$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028852if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028853 $as_echo_n "(cached) " >&6
28854else
28855 ac_check_lib_save_LIBS=$LIBS
28856LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028858/* end confdefs.h. */
28859
28860/* Override any GCC internal prototype to avoid an error.
28861 Use char because int might match the return type of a GCC
28862 builtin and then its argument prototype would still apply. */
28863#ifdef __cplusplus
28864extern "C"
28865#endif
28866char TIFFIsByteSwapped ();
28867int
28868main ()
28869{
28870return TIFFIsByteSwapped ();
28871 ;
28872 return 0;
28873}
28874_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028875if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028876 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28877else
cristy8b350f62009-11-15 23:12:43 +000028878 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000028879fi
cristy8b350f62009-11-15 23:12:43 +000028880rm -f core conftest.err conftest.$ac_objext \
28881 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028882LIBS=$ac_check_lib_save_LIBS
28883fi
cristy8b350f62009-11-15 23:12:43 +000028884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000028885$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028886if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028887 passed=`expr $passed + 1`
28888else
28889 failed=`expr $failed + 1`
28890fi
28891
cristy8b350f62009-11-15 23:12:43 +000028892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028893$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028894if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028895 $as_echo_n "(cached) " >&6
28896else
28897 ac_check_lib_save_LIBS=$LIBS
28898LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028900/* end confdefs.h. */
28901
28902/* Override any GCC internal prototype to avoid an error.
28903 Use char because int might match the return type of a GCC
28904 builtin and then its argument prototype would still apply. */
28905#ifdef __cplusplus
28906extern "C"
28907#endif
28908char TIFFReadRGBATile ();
28909int
28910main ()
28911{
28912return TIFFReadRGBATile ();
28913 ;
28914 return 0;
28915}
28916_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028917if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028918 ac_cv_lib_tiff_TIFFReadRGBATile=yes
28919else
cristy8b350f62009-11-15 23:12:43 +000028920 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000028921fi
cristy8b350f62009-11-15 23:12:43 +000028922rm -f core conftest.err conftest.$ac_objext \
28923 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028924LIBS=$ac_check_lib_save_LIBS
28925fi
cristy8b350f62009-11-15 23:12:43 +000028926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000028927$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028928if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028929 passed=`expr $passed + 1`
28930else
28931 failed=`expr $failed + 1`
28932fi
28933
cristy8b350f62009-11-15 23:12:43 +000028934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028935$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028936if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028937 $as_echo_n "(cached) " >&6
28938else
28939 ac_check_lib_save_LIBS=$LIBS
28940LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028942/* end confdefs.h. */
28943
28944/* Override any GCC internal prototype to avoid an error.
28945 Use char because int might match the return type of a GCC
28946 builtin and then its argument prototype would still apply. */
28947#ifdef __cplusplus
28948extern "C"
28949#endif
28950char TIFFReadRGBAStrip ();
28951int
28952main ()
28953{
28954return TIFFReadRGBAStrip ();
28955 ;
28956 return 0;
28957}
28958_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028959if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028960 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
28961else
cristy8b350f62009-11-15 23:12:43 +000028962 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000028963fi
cristy8b350f62009-11-15 23:12:43 +000028964rm -f core conftest.err conftest.$ac_objext \
28965 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028966LIBS=$ac_check_lib_save_LIBS
28967fi
cristy8b350f62009-11-15 23:12:43 +000028968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000028969$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028970if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028971 passed=`expr $passed + 1`
28972else
28973 failed=`expr $failed + 1`
28974fi
28975
cristy8b350f62009-11-15 23:12:43 +000028976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028977$as_echo_n "checking if TIFF package is complete... " >&6; }
28978 if test $passed -gt 0; then
28979 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028981$as_echo "no -- some components failed test" >&6; }
28982 have_tiff='no (failed tests)'
28983 else
28984 TIFF_LIBS='-ltiff'
28985 LIBS="$TIFF_LIBS $LIBS"
28986
cristy8b350f62009-11-15 23:12:43 +000028987$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028988
cristy8b350f62009-11-15 23:12:43 +000028989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028990$as_echo "yes" >&6; }
28991 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000028992 for ac_header in tiffconf.h
28993do :
28994 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
28995if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028996 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028997#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000028998_ACEOF
28999
29000fi
29001
29002done
29003
cristy8b350f62009-11-15 23:12:43 +000029004 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000029005 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29006 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000029007do :
29008 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29009ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyf6fcb5d2010-09-24 01:19:13 +000029010eval as_val=\$$as_ac_var
29011 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029012 cat >>confdefs.h <<_ACEOF
29013#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29014_ACEOF
29015
29016fi
29017done
29018
29019 fi
29020 else
cristy8b350f62009-11-15 23:12:43 +000029021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029022$as_echo "no" >&6; }
29023 fi
29024fi
29025 if test "$have_tiff" = 'yes'; then
29026 TIFF_DELEGATE_TRUE=
29027 TIFF_DELEGATE_FALSE='#'
29028else
29029 TIFF_DELEGATE_TRUE='#'
29030 TIFF_DELEGATE_FALSE=
29031fi
29032
29033
29034
29035
29036#
29037# Set Windows font directory.
29038#
29039
29040# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029041if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029042 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29043else
29044 with_windows_font_dir=''
29045fi
29046
29047if test "$with_windows_font_dir" != '' ; then
29048 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29049fi
29050
29051
29052#
29053# Check for WMF delegate library.
29054#
29055
29056# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000029057if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029058 withval=$with_wmf; with_wmf=$withval
29059else
cristy8d63d1d2010-01-06 20:38:37 +000029060 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000029061fi
29062
29063
29064if test "$with_wmf" != 'yes'; then
29065 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29066fi
29067
29068have_wmf='no'
29069WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000029070if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029072$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029074$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029076$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000029077 failed=0
29078 passed=0
29079 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29080if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29081 passed=`expr $passed + 1`
29082else
29083 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029084fi
29085
29086
cristy735e8942010-04-02 20:32:57 +000029087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29088$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29089if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029090 $as_echo_n "(cached) " >&6
29091else
29092 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000029093LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029095/* end confdefs.h. */
29096
29097/* Override any GCC internal prototype to avoid an error.
29098 Use char because int might match the return type of a GCC
29099 builtin and then its argument prototype would still apply. */
29100#ifdef __cplusplus
29101extern "C"
29102#endif
cristy735e8942010-04-02 20:32:57 +000029103char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029104int
29105main ()
29106{
cristy735e8942010-04-02 20:32:57 +000029107return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029108 ;
29109 return 0;
29110}
29111_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029112if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000029113 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000029114else
cristy735e8942010-04-02 20:32:57 +000029115 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000029116fi
cristy8b350f62009-11-15 23:12:43 +000029117rm -f core conftest.err conftest.$ac_objext \
29118 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029119LIBS=$ac_check_lib_save_LIBS
29120fi
cristy735e8942010-04-02 20:32:57 +000029121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29122$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29123if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29124 passed=`expr $passed + 1`
29125else
29126 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029127fi
29128
cristy735e8942010-04-02 20:32:57 +000029129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29130$as_echo_n "checking if WMF package is complete... " >&6; }
29131 if test $passed -gt 0; then
29132 if test $failed -gt 0; then
29133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29134$as_echo "no -- some components failed test" >&6; }
29135 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000029136 else
cristy735e8942010-04-02 20:32:57 +000029137 WMF_LIBS='-lwmf -lwmflite'
29138 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029139
cristy8b350f62009-11-15 23:12:43 +000029140$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029141
cristy735e8942010-04-02 20:32:57 +000029142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029143$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000029144 have_wmf='yes'
29145 fi
cristy3ed852e2009-09-05 21:47:34 +000029146 else
cristy8b350f62009-11-15 23:12:43 +000029147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029148$as_echo "no" >&6; }
29149 fi
29150fi
29151 if test "$have_wmf" = 'yes'; then
29152 WMF_DELEGATE_TRUE=
29153 WMF_DELEGATE_FALSE='#'
29154else
29155 WMF_DELEGATE_TRUE='#'
29156 WMF_DELEGATE_FALSE=
29157fi
29158
29159
29160
29161
29162
cristy735e8942010-04-02 20:32:57 +000029163
cristy3ed852e2009-09-05 21:47:34 +000029164#
29165# Check for XML delegate library.
29166#
29167
29168# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000029169if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029170 withval=$with_xml; with_xml=$withval
29171else
29172 with_xml=$have_x
29173fi
29174
29175
29176if test "$with_xml" != 'yes' ; then
29177 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29178fi
29179
29180have_xml='no'
29181XML_LIBS=''
29182if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029184$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000029186$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029188$as_echo "" >&6; }
29189 PERSIST_LDFLAGS=$LDFLAGS
29190 PERSIST_CPPFLAGS=$CPPFLAGS
29191 xml2_config=''
29192 for ac_prog in xml2-config
29193do
29194 # Extract the first word of "$ac_prog", so it can be a program name with args.
29195set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029197$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029198if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029199 $as_echo_n "(cached) " >&6
29200else
29201 if test -n "$xml2_config"; then
29202 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29203else
29204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29205for as_dir in $PATH
29206do
29207 IFS=$as_save_IFS
29208 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029209 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29211 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029213 break 2
29214 fi
29215done
cristy8b350f62009-11-15 23:12:43 +000029216 done
cristy3ed852e2009-09-05 21:47:34 +000029217IFS=$as_save_IFS
29218
29219fi
29220fi
29221xml2_config=$ac_cv_prog_xml2_config
29222if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000029223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000029224$as_echo "$xml2_config" >&6; }
29225else
cristy8b350f62009-11-15 23:12:43 +000029226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029227$as_echo "no" >&6; }
29228fi
29229
29230
29231 test -n "$xml2_config" && break
29232done
29233 if test -n "$xml2_config"; then
29234 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29235 # the shared library installed under /usr/lib, whereas the package
29236 # installs itself under $prefix/libxml and $prefix/lib.
29237 xml2_prefix=`xml2-config --prefix`
29238 if test -d "${xml2_prefix}/include/libxml2"; then
29239 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29240 fi
29241 if test "${xml2_prefix}" != '/usr'; then
29242 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29243 fi
29244 fi
29245 failed=0
29246 passed=0
cristy8b350f62009-11-15 23:12:43 +000029247 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29248if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029249 passed=`expr $passed + 1`
29250else
29251 failed=`expr $failed + 1`
29252fi
29253
29254
cristy8b350f62009-11-15 23:12:43 +000029255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029256$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029257if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029258 $as_echo_n "(cached) " >&6
29259else
29260 ac_check_lib_save_LIBS=$LIBS
29261LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029263/* end confdefs.h. */
29264
29265/* Override any GCC internal prototype to avoid an error.
29266 Use char because int might match the return type of a GCC
29267 builtin and then its argument prototype would still apply. */
29268#ifdef __cplusplus
29269extern "C"
29270#endif
29271char xmlParseExternalEntity ();
29272int
29273main ()
29274{
29275return xmlParseExternalEntity ();
29276 ;
29277 return 0;
29278}
29279_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029280if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029281 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29282else
cristy8b350f62009-11-15 23:12:43 +000029283 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000029284fi
cristy8b350f62009-11-15 23:12:43 +000029285rm -f core conftest.err conftest.$ac_objext \
29286 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029287LIBS=$ac_check_lib_save_LIBS
29288fi
cristy8b350f62009-11-15 23:12:43 +000029289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000029290$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029291if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029292 passed=`expr $passed + 1`
29293else
29294 failed=`expr $failed + 1`
29295fi
29296
cristy8b350f62009-11-15 23:12:43 +000029297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029298$as_echo_n "checking if XML package is complete... " >&6; }
29299 if test $passed -gt 0; then
29300 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029302$as_echo "no -- some components failed test" >&6; }
29303 have_xml='no (failed tests)'
29304 LDFLAGS="$PERSIST_LDFLAGS"
29305 CPPFLAGS="$PERSIST_CPPFLAGS"
29306 else
29307 XML_LIBS='-lxml2'
29308 LIBS="$XML_LIBS $LIBS"
29309
cristy8b350f62009-11-15 23:12:43 +000029310$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029311
cristy8b350f62009-11-15 23:12:43 +000029312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029313$as_echo "yes" >&6; }
29314 have_xml='yes'
29315 fi
29316 else
cristy8b350f62009-11-15 23:12:43 +000029317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029318$as_echo "no" >&6; }
29319 fi
29320fi
29321 if test "$have_xml" = 'yes'; then
29322 XML_DELEGATE_TRUE=
29323 XML_DELEGATE_FALSE='#'
29324else
29325 XML_DELEGATE_TRUE='#'
29326 XML_DELEGATE_FALSE=
29327fi
29328
29329
29330
29331
29332# Substitute compiler name to build/link PerlMagick
29333#
29334
29335
29336#
29337# Configure install Paths
29338#
29339
29340# Subdirectory under lib to place ImageMagick lib files
29341LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29342
29343cat >>confdefs.h <<_ACEOF
29344#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29345_ACEOF
29346
29347
29348# Path to ImageMagick bin directory
29349EXECUTABLE_PATH="${BIN_DIR}"
29350DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29351case "${build_os}" in
29352 mingw* )
29353 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29354 ;;
29355esac
29356
29357cat >>confdefs.h <<_ACEOF
29358#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29359_ACEOF
29360
29361
29362
29363# Path to ImageMagick lib
29364LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29365DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29366case "${build_os}" in
29367 mingw* )
29368 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29369 ;;
29370esac
29371
29372cat >>confdefs.h <<_ACEOF
29373#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29374_ACEOF
29375
29376
29377
29378# Subdirectory under lib to place ImageMagick configuration files
29379CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29380
29381cat >>confdefs.h <<_ACEOF
29382#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29383_ACEOF
29384
29385CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29386DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29387case "${build_os}" in
29388 mingw* )
29389 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29390 ;;
29391esac
29392
29393cat >>confdefs.h <<_ACEOF
29394#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29395_ACEOF
29396
29397
29398
29399#
29400# Subdirectory under lib to place ImageMagick coder module files
29401CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29402
29403cat >>confdefs.h <<_ACEOF
29404#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29405_ACEOF
29406
29407CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29408DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29409case "${build_os}" in
29410 mingw* )
29411 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29412 ;;
29413esac
29414
29415cat >>confdefs.h <<_ACEOF
29416#define CODER_PATH "$DEFINE_CODER_PATH"
29417_ACEOF
29418
29419
29420
29421#
29422# Subdirectory under lib to place ImageMagick filter module files
29423FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29424
29425cat >>confdefs.h <<_ACEOF
29426#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29427_ACEOF
29428
29429FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29430DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29431case "${build_os}" in
29432 mingw* )
29433 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29434 ;;
29435esac
29436
29437cat >>confdefs.h <<_ACEOF
29438#define FILTER_PATH "$DEFINE_FILTER_PATH"
29439_ACEOF
29440
29441
29442
29443#
29444# Path to ImageMagick documentation files
29445DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29446DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29447DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29448case "${build_os}" in
29449 mingw* )
29450 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29451 ;;
29452esac
29453
29454cat >>confdefs.h <<_ACEOF
29455#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29456_ACEOF
29457
29458
29459
29460#
29461# Path to ImageMagick share files
29462SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29463SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29464DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29465case "${build_os}" in
29466 mingw* )
29467 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29468 ;;
29469esac
29470
29471cat >>confdefs.h <<_ACEOF
29472#define SHARE_PATH "$DEFINE_SHARE_PATH"
29473_ACEOF
29474
29475
29476
29477# Subdirectory under share to place ImageMagick configuration files
29478SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29479
29480cat >>confdefs.h <<_ACEOF
29481#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29482_ACEOF
29483
29484SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29485DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29486case "${build_os}" in
29487 mingw* )
29488 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29489 ;;
29490esac
29491
29492cat >>confdefs.h <<_ACEOF
29493#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29494_ACEOF
29495
29496
29497
29498#
29499# program_transform_name is formed for use in a Makefile, so create a
29500# modified version for use in a shell script.
29501configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29502
29503# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000029504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029505$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029507$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029509$as_echo "" >&6; }
29510AutotraceDecodeDelegateDefault='autotrace'
29511AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000029512BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000029513BZIPDelegateDefault='bzip2'
29514BrowseDelegateDefault='xdg-open'
29515CGMDecodeDelegateDefault='ralcgm'
29516CatDelegateDefault='cat'
29517DNGDecodeDelegateDefault='ufraw-batch'
29518GVCDecodeDelegateDefault='dot'
29519DVIDecodeDelegateDefault='dvips'
29520EchoDelegateDefault='echo'
29521EditorDelegateDefault='xterm'
29522FIGDecodeDelegateDefault='fig2dev'
29523ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29524DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29525MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29526GnuplotDecodeDelegateDefault='gnuplot'
29527HDRDecodeDelegateDefault='ra_pfm'
29528HPGLDecodeDelegateDefault='hp2xx'
29529HTMLDecodeDelegateDefault='html2ps'
29530ILBMDecodeDelegateDefault='ilbmtoppm'
29531ILBMEncodeDelegateDefault='ppmtoilbm'
29532LPDelegateDefault='lp'
29533LPRDelegateDefault='lpr'
29534LZWDecodeDelegateDefault='uncompress'
29535LZWEncodeDelegateDefault='compress'
29536LaunchDelegateDefault='gimp'
29537MANDelegateDefault='groff'
29538MPEGDecodeDelegateDefault='ffmpeg'
29539MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000029540MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000029541MVDelegateDefault='mv'
29542PCLDelegateDefault='pcl6'
29543PGPDecodeDelegateDefault='pgpv'
29544POVDelegateDefault='povray'
29545if test "$native_win32_build" = 'yes'; then
29546 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000029547elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029548 PSDelegateDefault='gsc'
29549else
29550 PSDelegateDefault='gs'
29551fi
29552RLEEncodeDelegateDefault='rawtorle'
29553RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000029554RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000029555SCANDecodeDelegateDefault='scanimage'
29556TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000029557UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000029558WMFDecodeDelegateDefault='wmf2eps'
29559WWWDecodeDelegateDefault='curl'
29560XPSDelegateDefault='gxps'
29561ZipDelegateDefault='gzip'
29562
29563# Search for delegates
29564# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29565set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029567$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029568if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029569 $as_echo_n "(cached) " >&6
29570else
29571 case $AutotraceDecodeDelegate in
29572 [\\/]* | ?:[\\/]*)
29573 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29574 ;;
29575 *)
29576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29577for as_dir in $PATH
29578do
29579 IFS=$as_save_IFS
29580 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029581 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29583 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029585 break 2
29586 fi
29587done
cristy8b350f62009-11-15 23:12:43 +000029588 done
cristy3ed852e2009-09-05 21:47:34 +000029589IFS=$as_save_IFS
29590
29591 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29592 ;;
29593esac
29594fi
29595AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29596if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029598$as_echo "$AutotraceDecodeDelegate" >&6; }
29599else
cristy8b350f62009-11-15 23:12:43 +000029600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029601$as_echo "no" >&6; }
29602fi
29603
29604
29605# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29606set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029608$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029609if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029610 $as_echo_n "(cached) " >&6
29611else
29612 case $AVIDecodeDelegate in
29613 [\\/]* | ?:[\\/]*)
29614 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29615 ;;
29616 *)
29617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29618for as_dir in $PATH
29619do
29620 IFS=$as_save_IFS
29621 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029622 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29624 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029626 break 2
29627 fi
29628done
cristy8b350f62009-11-15 23:12:43 +000029629 done
cristy3ed852e2009-09-05 21:47:34 +000029630IFS=$as_save_IFS
29631
29632 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29633 ;;
29634esac
29635fi
29636AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29637if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029639$as_echo "$AVIDecodeDelegate" >&6; }
29640else
cristy8b350f62009-11-15 23:12:43 +000029641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029642$as_echo "no" >&6; }
29643fi
29644
29645
29646# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29647set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029649$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029650if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029651 $as_echo_n "(cached) " >&6
29652else
29653 case $BlenderDecodeDelegate in
29654 [\\/]* | ?:[\\/]*)
29655 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29656 ;;
29657 *)
29658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29659for as_dir in $PATH
29660do
29661 IFS=$as_save_IFS
29662 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029663 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29665 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029667 break 2
29668 fi
29669done
cristy8b350f62009-11-15 23:12:43 +000029670 done
cristy3ed852e2009-09-05 21:47:34 +000029671IFS=$as_save_IFS
29672
29673 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29674 ;;
29675esac
29676fi
29677BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29678if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029680$as_echo "$BlenderDecodeDelegate" >&6; }
29681else
cristy8b350f62009-11-15 23:12:43 +000029682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029683$as_echo "no" >&6; }
29684fi
29685
29686
29687# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29688set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029690$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029691if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029692 $as_echo_n "(cached) " >&6
29693else
29694 case $BZIPDelegate in
29695 [\\/]* | ?:[\\/]*)
29696 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29697 ;;
29698 *)
29699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29700for as_dir in $PATH
29701do
29702 IFS=$as_save_IFS
29703 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029704 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29706 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029708 break 2
29709 fi
29710done
cristy8b350f62009-11-15 23:12:43 +000029711 done
cristy3ed852e2009-09-05 21:47:34 +000029712IFS=$as_save_IFS
29713
29714 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29715 ;;
29716esac
29717fi
29718BZIPDelegate=$ac_cv_path_BZIPDelegate
29719if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029721$as_echo "$BZIPDelegate" >&6; }
29722else
cristy8b350f62009-11-15 23:12:43 +000029723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029724$as_echo "no" >&6; }
29725fi
29726
29727
29728# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29729set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029731$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029732if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029733 $as_echo_n "(cached) " >&6
29734else
29735 case $BrowseDelegate in
29736 [\\/]* | ?:[\\/]*)
29737 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29738 ;;
29739 *)
29740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29741for as_dir in $PATH
29742do
29743 IFS=$as_save_IFS
29744 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029745 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29747 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029749 break 2
29750 fi
29751done
cristy8b350f62009-11-15 23:12:43 +000029752 done
cristy3ed852e2009-09-05 21:47:34 +000029753IFS=$as_save_IFS
29754
29755 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29756 ;;
29757esac
29758fi
29759BrowseDelegate=$ac_cv_path_BrowseDelegate
29760if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029762$as_echo "$BrowseDelegate" >&6; }
29763else
cristy8b350f62009-11-15 23:12:43 +000029764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029765$as_echo "no" >&6; }
29766fi
29767
29768
29769# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29770set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029772$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029773if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029774 $as_echo_n "(cached) " >&6
29775else
29776 case $CGMDecodeDelegate in
29777 [\\/]* | ?:[\\/]*)
29778 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29779 ;;
29780 *)
29781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29782for as_dir in $PATH
29783do
29784 IFS=$as_save_IFS
29785 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029786 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29788 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029790 break 2
29791 fi
29792done
cristy8b350f62009-11-15 23:12:43 +000029793 done
cristy3ed852e2009-09-05 21:47:34 +000029794IFS=$as_save_IFS
29795
29796 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29797 ;;
29798esac
29799fi
29800CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29801if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029803$as_echo "$CGMDecodeDelegate" >&6; }
29804else
cristy8b350f62009-11-15 23:12:43 +000029805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029806$as_echo "no" >&6; }
29807fi
29808
29809
29810# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29811set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029813$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029814if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029815 $as_echo_n "(cached) " >&6
29816else
29817 case $CatDelegate in
29818 [\\/]* | ?:[\\/]*)
29819 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29820 ;;
29821 *)
29822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29823for as_dir in $PATH
29824do
29825 IFS=$as_save_IFS
29826 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029827 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29829 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029831 break 2
29832 fi
29833done
cristy8b350f62009-11-15 23:12:43 +000029834 done
cristy3ed852e2009-09-05 21:47:34 +000029835IFS=$as_save_IFS
29836
29837 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29838 ;;
29839esac
29840fi
29841CatDelegate=$ac_cv_path_CatDelegate
29842if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029844$as_echo "$CatDelegate" >&6; }
29845else
cristy8b350f62009-11-15 23:12:43 +000029846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029847$as_echo "no" >&6; }
29848fi
29849
29850
29851# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29852set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029854$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029855if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029856 $as_echo_n "(cached) " >&6
29857else
29858 case $DNGDecodeDelegate in
29859 [\\/]* | ?:[\\/]*)
29860 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29861 ;;
29862 *)
29863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29864for as_dir in $PATH
29865do
29866 IFS=$as_save_IFS
29867 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029868 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29870 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029872 break 2
29873 fi
29874done
cristy8b350f62009-11-15 23:12:43 +000029875 done
cristy3ed852e2009-09-05 21:47:34 +000029876IFS=$as_save_IFS
29877
29878 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29879 ;;
29880esac
29881fi
29882DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29883if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029885$as_echo "$DNGDecodeDelegate" >&6; }
29886else
cristy8b350f62009-11-15 23:12:43 +000029887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029888$as_echo "no" >&6; }
29889fi
29890
29891
29892# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29893set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029895$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029896if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029897 $as_echo_n "(cached) " >&6
29898else
29899 case $GVCDecodeDelegate in
29900 [\\/]* | ?:[\\/]*)
29901 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29902 ;;
29903 *)
29904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29905for as_dir in $PATH
29906do
29907 IFS=$as_save_IFS
29908 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029909 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29911 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029913 break 2
29914 fi
29915done
cristy8b350f62009-11-15 23:12:43 +000029916 done
cristy3ed852e2009-09-05 21:47:34 +000029917IFS=$as_save_IFS
29918
29919 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29920 ;;
29921esac
29922fi
29923GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29924if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029926$as_echo "$GVCDecodeDelegate" >&6; }
29927else
cristy8b350f62009-11-15 23:12:43 +000029928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029929$as_echo "no" >&6; }
29930fi
29931
29932
29933# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29934set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029936$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029937if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029938 $as_echo_n "(cached) " >&6
29939else
29940 case $DVIDecodeDelegate in
29941 [\\/]* | ?:[\\/]*)
29942 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29943 ;;
29944 *)
29945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29946for as_dir in $PATH
29947do
29948 IFS=$as_save_IFS
29949 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029950 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29952 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029954 break 2
29955 fi
29956done
cristy8b350f62009-11-15 23:12:43 +000029957 done
cristy3ed852e2009-09-05 21:47:34 +000029958IFS=$as_save_IFS
29959
29960 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
29961 ;;
29962esac
29963fi
29964DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
29965if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029967$as_echo "$DVIDecodeDelegate" >&6; }
29968else
cristy8b350f62009-11-15 23:12:43 +000029969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029970$as_echo "no" >&6; }
29971fi
29972
29973
29974# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
29975set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029977$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029978if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029979 $as_echo_n "(cached) " >&6
29980else
29981 case $EchoDelegate in
29982 [\\/]* | ?:[\\/]*)
29983 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
29984 ;;
29985 *)
29986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29987for as_dir in $PATH
29988do
29989 IFS=$as_save_IFS
29990 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029991 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29993 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029995 break 2
29996 fi
29997done
cristy8b350f62009-11-15 23:12:43 +000029998 done
cristy3ed852e2009-09-05 21:47:34 +000029999IFS=$as_save_IFS
30000
30001 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30002 ;;
30003esac
30004fi
30005EchoDelegate=$ac_cv_path_EchoDelegate
30006if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030008$as_echo "$EchoDelegate" >&6; }
30009else
cristy8b350f62009-11-15 23:12:43 +000030010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030011$as_echo "no" >&6; }
30012fi
30013
30014
30015# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
30016set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030018$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030019if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030020 $as_echo_n "(cached) " >&6
30021else
30022 case $EditorDelegate in
30023 [\\/]* | ?:[\\/]*)
30024 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30025 ;;
30026 *)
30027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30028for as_dir in $PATH
30029do
30030 IFS=$as_save_IFS
30031 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030032 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30034 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030036 break 2
30037 fi
30038done
cristy8b350f62009-11-15 23:12:43 +000030039 done
cristy3ed852e2009-09-05 21:47:34 +000030040IFS=$as_save_IFS
30041
30042 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30043 ;;
30044esac
30045fi
30046EditorDelegate=$ac_cv_path_EditorDelegate
30047if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030049$as_echo "$EditorDelegate" >&6; }
30050else
cristy8b350f62009-11-15 23:12:43 +000030051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030052$as_echo "no" >&6; }
30053fi
30054
30055
30056# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30057set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030059$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030060if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030061 $as_echo_n "(cached) " >&6
30062else
30063 case $FIGDecodeDelegate in
30064 [\\/]* | ?:[\\/]*)
30065 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30066 ;;
30067 *)
30068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30069for as_dir in $PATH
30070do
30071 IFS=$as_save_IFS
30072 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030073 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30075 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030077 break 2
30078 fi
30079done
cristy8b350f62009-11-15 23:12:43 +000030080 done
cristy3ed852e2009-09-05 21:47:34 +000030081IFS=$as_save_IFS
30082
30083 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30084 ;;
30085esac
30086fi
30087FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30088if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030090$as_echo "$FIGDecodeDelegate" >&6; }
30091else
cristy8b350f62009-11-15 23:12:43 +000030092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030093$as_echo "no" >&6; }
30094fi
30095
30096
30097# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30098set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030100$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030101if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030102 $as_echo_n "(cached) " >&6
30103else
30104 case $ConvertDelegate in
30105 [\\/]* | ?:[\\/]*)
30106 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30107 ;;
30108 *)
30109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30110for as_dir in $PATH
30111do
30112 IFS=$as_save_IFS
30113 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030114 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30116 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030118 break 2
30119 fi
30120done
cristy8b350f62009-11-15 23:12:43 +000030121 done
cristy3ed852e2009-09-05 21:47:34 +000030122IFS=$as_save_IFS
30123
30124 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30125 ;;
30126esac
30127fi
30128ConvertDelegate=$ac_cv_path_ConvertDelegate
30129if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030131$as_echo "$ConvertDelegate" >&6; }
30132else
cristy8b350f62009-11-15 23:12:43 +000030133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030134$as_echo "no" >&6; }
30135fi
30136
30137
30138# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30139set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030141$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030142if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030143 $as_echo_n "(cached) " >&6
30144else
30145 case $DisplayDelegate in
30146 [\\/]* | ?:[\\/]*)
30147 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30148 ;;
30149 *)
30150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30151for as_dir in $PATH
30152do
30153 IFS=$as_save_IFS
30154 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030155 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30157 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030159 break 2
30160 fi
30161done
cristy8b350f62009-11-15 23:12:43 +000030162 done
cristy3ed852e2009-09-05 21:47:34 +000030163IFS=$as_save_IFS
30164
30165 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30166 ;;
30167esac
30168fi
30169DisplayDelegate=$ac_cv_path_DisplayDelegate
30170if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030172$as_echo "$DisplayDelegate" >&6; }
30173else
cristy8b350f62009-11-15 23:12:43 +000030174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030175$as_echo "no" >&6; }
30176fi
30177
30178
30179# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30180set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030182$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030183if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030184 $as_echo_n "(cached) " >&6
30185else
30186 case $MogrifyDelegate in
30187 [\\/]* | ?:[\\/]*)
30188 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30189 ;;
30190 *)
30191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30192for as_dir in $PATH
30193do
30194 IFS=$as_save_IFS
30195 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030196 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30198 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030200 break 2
30201 fi
30202done
cristy8b350f62009-11-15 23:12:43 +000030203 done
cristy3ed852e2009-09-05 21:47:34 +000030204IFS=$as_save_IFS
30205
30206 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30207 ;;
30208esac
30209fi
30210MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30211if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030213$as_echo "$MogrifyDelegate" >&6; }
30214else
cristy8b350f62009-11-15 23:12:43 +000030215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030216$as_echo "no" >&6; }
30217fi
30218
30219
30220# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30221set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030223$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030224if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030225 $as_echo_n "(cached) " >&6
30226else
30227 case $GnuplotDecodeDelegate in
30228 [\\/]* | ?:[\\/]*)
30229 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30230 ;;
30231 *)
30232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30233for as_dir in $PATH
30234do
30235 IFS=$as_save_IFS
30236 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030237 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30239 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030241 break 2
30242 fi
30243done
cristy8b350f62009-11-15 23:12:43 +000030244 done
cristy3ed852e2009-09-05 21:47:34 +000030245IFS=$as_save_IFS
30246
30247 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30248 ;;
30249esac
30250fi
30251GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30252if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030254$as_echo "$GnuplotDecodeDelegate" >&6; }
30255else
cristy8b350f62009-11-15 23:12:43 +000030256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030257$as_echo "no" >&6; }
30258fi
30259
30260
30261# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30262set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030264$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030265if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030266 $as_echo_n "(cached) " >&6
30267else
30268 case $HDRDecodeDelegate in
30269 [\\/]* | ?:[\\/]*)
30270 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30271 ;;
30272 *)
30273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30274for as_dir in $PATH
30275do
30276 IFS=$as_save_IFS
30277 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030278 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30280 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030282 break 2
30283 fi
30284done
cristy8b350f62009-11-15 23:12:43 +000030285 done
cristy3ed852e2009-09-05 21:47:34 +000030286IFS=$as_save_IFS
30287
30288 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30289 ;;
30290esac
30291fi
30292HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30293if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030295$as_echo "$HDRDecodeDelegate" >&6; }
30296else
cristy8b350f62009-11-15 23:12:43 +000030297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030298$as_echo "no" >&6; }
30299fi
30300
30301
30302# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30303set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030305$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030306if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030307 $as_echo_n "(cached) " >&6
30308else
30309 case $HPGLDecodeDelegate in
30310 [\\/]* | ?:[\\/]*)
30311 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30312 ;;
30313 *)
30314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30315for as_dir in $PATH
30316do
30317 IFS=$as_save_IFS
30318 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030319 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30321 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030323 break 2
30324 fi
30325done
cristy8b350f62009-11-15 23:12:43 +000030326 done
cristy3ed852e2009-09-05 21:47:34 +000030327IFS=$as_save_IFS
30328
30329 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30330 ;;
30331esac
30332fi
30333HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30334if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030336$as_echo "$HPGLDecodeDelegate" >&6; }
30337else
cristy8b350f62009-11-15 23:12:43 +000030338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030339$as_echo "no" >&6; }
30340fi
30341
30342
30343# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30344set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030346$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030347if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030348 $as_echo_n "(cached) " >&6
30349else
30350 case $HTMLDecodeDelegate in
30351 [\\/]* | ?:[\\/]*)
30352 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30353 ;;
30354 *)
30355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30356for as_dir in $PATH
30357do
30358 IFS=$as_save_IFS
30359 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030360 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30362 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030364 break 2
30365 fi
30366done
cristy8b350f62009-11-15 23:12:43 +000030367 done
cristy3ed852e2009-09-05 21:47:34 +000030368IFS=$as_save_IFS
30369
30370 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30371 ;;
30372esac
30373fi
30374HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30375if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030377$as_echo "$HTMLDecodeDelegate" >&6; }
30378else
cristy8b350f62009-11-15 23:12:43 +000030379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030380$as_echo "no" >&6; }
30381fi
30382
30383
30384# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30385set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030387$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030388if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030389 $as_echo_n "(cached) " >&6
30390else
30391 case $ILBMDecodeDelegate in
30392 [\\/]* | ?:[\\/]*)
30393 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30394 ;;
30395 *)
30396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30397for as_dir in $PATH
30398do
30399 IFS=$as_save_IFS
30400 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030401 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30403 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030405 break 2
30406 fi
30407done
cristy8b350f62009-11-15 23:12:43 +000030408 done
cristy3ed852e2009-09-05 21:47:34 +000030409IFS=$as_save_IFS
30410
30411 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30412 ;;
30413esac
30414fi
30415ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30416if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030418$as_echo "$ILBMDecodeDelegate" >&6; }
30419else
cristy8b350f62009-11-15 23:12:43 +000030420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030421$as_echo "no" >&6; }
30422fi
30423
30424
30425# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30426set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030428$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030429if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030430 $as_echo_n "(cached) " >&6
30431else
30432 case $ILBMEncodeDelegate in
30433 [\\/]* | ?:[\\/]*)
30434 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30435 ;;
30436 *)
30437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30438for as_dir in $PATH
30439do
30440 IFS=$as_save_IFS
30441 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030442 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30444 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030446 break 2
30447 fi
30448done
cristy8b350f62009-11-15 23:12:43 +000030449 done
cristy3ed852e2009-09-05 21:47:34 +000030450IFS=$as_save_IFS
30451
30452 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30453 ;;
30454esac
30455fi
30456ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30457if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030459$as_echo "$ILBMEncodeDelegate" >&6; }
30460else
cristy8b350f62009-11-15 23:12:43 +000030461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030462$as_echo "no" >&6; }
30463fi
30464
30465
30466# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30467set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030469$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030470if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030471 $as_echo_n "(cached) " >&6
30472else
30473 case $LPDelegate in
30474 [\\/]* | ?:[\\/]*)
30475 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30476 ;;
30477 *)
30478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30479for as_dir in $PATH
30480do
30481 IFS=$as_save_IFS
30482 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030483 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30485 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030487 break 2
30488 fi
30489done
cristy8b350f62009-11-15 23:12:43 +000030490 done
cristy3ed852e2009-09-05 21:47:34 +000030491IFS=$as_save_IFS
30492
30493 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30494 ;;
30495esac
30496fi
30497LPDelegate=$ac_cv_path_LPDelegate
30498if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030500$as_echo "$LPDelegate" >&6; }
30501else
cristy8b350f62009-11-15 23:12:43 +000030502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030503$as_echo "no" >&6; }
30504fi
30505
30506
30507# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30508set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030510$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030511if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030512 $as_echo_n "(cached) " >&6
30513else
30514 case $LPRDelegate in
30515 [\\/]* | ?:[\\/]*)
30516 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30517 ;;
30518 *)
30519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30520for as_dir in $PATH
30521do
30522 IFS=$as_save_IFS
30523 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030524 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30526 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030528 break 2
30529 fi
30530done
cristy8b350f62009-11-15 23:12:43 +000030531 done
cristy3ed852e2009-09-05 21:47:34 +000030532IFS=$as_save_IFS
30533
30534 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30535 ;;
30536esac
30537fi
30538LPRDelegate=$ac_cv_path_LPRDelegate
30539if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030541$as_echo "$LPRDelegate" >&6; }
30542else
cristy8b350f62009-11-15 23:12:43 +000030543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030544$as_echo "no" >&6; }
30545fi
30546
30547
30548# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30549set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030551$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030552if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030553 $as_echo_n "(cached) " >&6
30554else
30555 case $LZWDecodeDelegate in
30556 [\\/]* | ?:[\\/]*)
30557 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30558 ;;
30559 *)
30560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30561for as_dir in $PATH
30562do
30563 IFS=$as_save_IFS
30564 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030565 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30567 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030569 break 2
30570 fi
30571done
cristy8b350f62009-11-15 23:12:43 +000030572 done
cristy3ed852e2009-09-05 21:47:34 +000030573IFS=$as_save_IFS
30574
30575 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30576 ;;
30577esac
30578fi
30579LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30580if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030582$as_echo "$LZWDecodeDelegate" >&6; }
30583else
cristy8b350f62009-11-15 23:12:43 +000030584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030585$as_echo "no" >&6; }
30586fi
30587
30588
30589# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30590set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030592$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030593if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030594 $as_echo_n "(cached) " >&6
30595else
30596 case $LZWEncodeDelegate in
30597 [\\/]* | ?:[\\/]*)
30598 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30599 ;;
30600 *)
30601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30602for as_dir in $PATH
30603do
30604 IFS=$as_save_IFS
30605 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030606 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30608 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030610 break 2
30611 fi
30612done
cristy8b350f62009-11-15 23:12:43 +000030613 done
cristy3ed852e2009-09-05 21:47:34 +000030614IFS=$as_save_IFS
30615
30616 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30617 ;;
30618esac
30619fi
30620LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30621if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030623$as_echo "$LZWEncodeDelegate" >&6; }
30624else
cristy8b350f62009-11-15 23:12:43 +000030625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030626$as_echo "no" >&6; }
30627fi
30628
30629
30630# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30631set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030633$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030634if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030635 $as_echo_n "(cached) " >&6
30636else
30637 case $LaunchDelegate in
30638 [\\/]* | ?:[\\/]*)
30639 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30640 ;;
30641 *)
30642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30643for as_dir in $PATH
30644do
30645 IFS=$as_save_IFS
30646 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030647 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30649 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030651 break 2
30652 fi
30653done
cristy8b350f62009-11-15 23:12:43 +000030654 done
cristy3ed852e2009-09-05 21:47:34 +000030655IFS=$as_save_IFS
30656
30657 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30658 ;;
30659esac
30660fi
30661LaunchDelegate=$ac_cv_path_LaunchDelegate
30662if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030664$as_echo "$LaunchDelegate" >&6; }
30665else
cristy8b350f62009-11-15 23:12:43 +000030666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030667$as_echo "no" >&6; }
30668fi
30669
30670
30671# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30672set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030674$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030675if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030676 $as_echo_n "(cached) " >&6
30677else
30678 case $MANDelegate in
30679 [\\/]* | ?:[\\/]*)
30680 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30681 ;;
30682 *)
30683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30684for as_dir in $PATH
30685do
30686 IFS=$as_save_IFS
30687 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030688 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30690 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030692 break 2
30693 fi
30694done
cristy8b350f62009-11-15 23:12:43 +000030695 done
cristy3ed852e2009-09-05 21:47:34 +000030696IFS=$as_save_IFS
30697
30698 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30699 ;;
30700esac
30701fi
30702MANDelegate=$ac_cv_path_MANDelegate
30703if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030705$as_echo "$MANDelegate" >&6; }
30706else
cristy8b350f62009-11-15 23:12:43 +000030707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030708$as_echo "no" >&6; }
30709fi
30710
30711
30712# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30713set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030715$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030716if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030717 $as_echo_n "(cached) " >&6
30718else
30719 case $MPEGDecodeDelegate in
30720 [\\/]* | ?:[\\/]*)
30721 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30722 ;;
30723 *)
30724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30725for as_dir in $PATH
30726do
30727 IFS=$as_save_IFS
30728 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030729 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30731 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030733 break 2
30734 fi
30735done
cristy8b350f62009-11-15 23:12:43 +000030736 done
cristy3ed852e2009-09-05 21:47:34 +000030737IFS=$as_save_IFS
30738
30739 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30740 ;;
30741esac
30742fi
30743MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30744if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030746$as_echo "$MPEGDecodeDelegate" >&6; }
30747else
cristy8b350f62009-11-15 23:12:43 +000030748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030749$as_echo "no" >&6; }
30750fi
30751
30752
30753# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30754set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030756$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030757if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030758 $as_echo_n "(cached) " >&6
30759else
30760 case $MPEGEncodeDelegate in
30761 [\\/]* | ?:[\\/]*)
30762 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30763 ;;
30764 *)
30765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30766for as_dir in $PATH
30767do
30768 IFS=$as_save_IFS
30769 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030770 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30772 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030774 break 2
30775 fi
30776done
cristy8b350f62009-11-15 23:12:43 +000030777 done
cristy3ed852e2009-09-05 21:47:34 +000030778IFS=$as_save_IFS
30779
30780 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30781 ;;
30782esac
30783fi
30784MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30785if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030787$as_echo "$MPEGEncodeDelegate" >&6; }
30788else
cristy8b350f62009-11-15 23:12:43 +000030789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030790$as_echo "no" >&6; }
30791fi
30792
30793
cristy935c86e2010-06-05 23:50:07 +000030794# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30795set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30797$as_echo_n "checking for $ac_word... " >&6; }
30798if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30799 $as_echo_n "(cached) " >&6
30800else
30801 case $MrSIDDecodeDelegate in
30802 [\\/]* | ?:[\\/]*)
30803 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30804 ;;
30805 *)
30806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30807for as_dir in $PATH
30808do
30809 IFS=$as_save_IFS
30810 test -z "$as_dir" && as_dir=.
30811 for ac_exec_ext in '' $ac_executable_extensions; do
30812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30813 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30815 break 2
30816 fi
30817done
30818 done
30819IFS=$as_save_IFS
30820
30821 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
30822 ;;
30823esac
30824fi
30825MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
30826if test -n "$MrSIDDecodeDelegate"; then
30827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
30828$as_echo "$MrSIDDecodeDelegate" >&6; }
30829else
30830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30831$as_echo "no" >&6; }
30832fi
30833
30834
cristy3ed852e2009-09-05 21:47:34 +000030835# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30836set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030838$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030839if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030840 $as_echo_n "(cached) " >&6
30841else
30842 case $MVDelegate in
30843 [\\/]* | ?:[\\/]*)
30844 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30845 ;;
30846 *)
30847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30848for as_dir in $PATH
30849do
30850 IFS=$as_save_IFS
30851 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030852 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30854 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030856 break 2
30857 fi
30858done
cristy8b350f62009-11-15 23:12:43 +000030859 done
cristy3ed852e2009-09-05 21:47:34 +000030860IFS=$as_save_IFS
30861
30862 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30863 ;;
30864esac
30865fi
30866MVDelegate=$ac_cv_path_MVDelegate
30867if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030869$as_echo "$MVDelegate" >&6; }
30870else
cristy8b350f62009-11-15 23:12:43 +000030871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030872$as_echo "no" >&6; }
30873fi
30874
30875
30876# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30877set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030879$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030880if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030881 $as_echo_n "(cached) " >&6
30882else
30883 case $PCLDelegate in
30884 [\\/]* | ?:[\\/]*)
30885 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30886 ;;
30887 *)
30888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30889for as_dir in $PATH
30890do
30891 IFS=$as_save_IFS
30892 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030893 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30895 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030897 break 2
30898 fi
30899done
cristy8b350f62009-11-15 23:12:43 +000030900 done
cristy3ed852e2009-09-05 21:47:34 +000030901IFS=$as_save_IFS
30902
30903 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30904 ;;
30905esac
30906fi
30907PCLDelegate=$ac_cv_path_PCLDelegate
30908if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030910$as_echo "$PCLDelegate" >&6; }
30911else
cristy8b350f62009-11-15 23:12:43 +000030912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030913$as_echo "no" >&6; }
30914fi
30915
30916
30917# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30918set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030920$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030921if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030922 $as_echo_n "(cached) " >&6
30923else
30924 case $PGPDecodeDelegate in
30925 [\\/]* | ?:[\\/]*)
30926 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30927 ;;
30928 *)
30929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30930for as_dir in $PATH
30931do
30932 IFS=$as_save_IFS
30933 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030934 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30936 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030938 break 2
30939 fi
30940done
cristy8b350f62009-11-15 23:12:43 +000030941 done
cristy3ed852e2009-09-05 21:47:34 +000030942IFS=$as_save_IFS
30943
30944 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30945 ;;
30946esac
30947fi
30948PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30949if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030951$as_echo "$PGPDecodeDelegate" >&6; }
30952else
cristy8b350f62009-11-15 23:12:43 +000030953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030954$as_echo "no" >&6; }
30955fi
30956
30957
30958# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
30959set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030961$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030962if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030963 $as_echo_n "(cached) " >&6
30964else
30965 case $POVDelegate in
30966 [\\/]* | ?:[\\/]*)
30967 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
30968 ;;
30969 *)
30970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30971for as_dir in $PATH
30972do
30973 IFS=$as_save_IFS
30974 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030975 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30977 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030979 break 2
30980 fi
30981done
cristy8b350f62009-11-15 23:12:43 +000030982 done
cristy3ed852e2009-09-05 21:47:34 +000030983IFS=$as_save_IFS
30984
30985 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
30986 ;;
30987esac
30988fi
30989POVDelegate=$ac_cv_path_POVDelegate
30990if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030992$as_echo "$POVDelegate" >&6; }
30993else
cristy8b350f62009-11-15 23:12:43 +000030994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030995$as_echo "no" >&6; }
30996fi
30997
30998
30999for ac_prog in gsx gsc "$PSDelegateDefault"
31000do
31001 # Extract the first word of "$ac_prog", so it can be a program name with args.
31002set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031004$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031005if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031006 $as_echo_n "(cached) " >&6
31007else
31008 case $PSDelegate in
31009 [\\/]* | ?:[\\/]*)
31010 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31011 ;;
31012 *)
31013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31014for as_dir in $PATH
31015do
31016 IFS=$as_save_IFS
31017 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031018 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31020 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031022 break 2
31023 fi
31024done
cristy8b350f62009-11-15 23:12:43 +000031025 done
cristy3ed852e2009-09-05 21:47:34 +000031026IFS=$as_save_IFS
31027
31028 ;;
31029esac
31030fi
31031PSDelegate=$ac_cv_path_PSDelegate
31032if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031034$as_echo "$PSDelegate" >&6; }
31035else
cristy8b350f62009-11-15 23:12:43 +000031036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031037$as_echo "no" >&6; }
31038fi
31039
31040
31041 test -n "$PSDelegate" && break
31042done
31043test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31044
31045# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31046set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031048$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031049if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031050 $as_echo_n "(cached) " >&6
31051else
31052 case $RLEEncodeDelegate in
31053 [\\/]* | ?:[\\/]*)
31054 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31055 ;;
31056 *)
31057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31058for as_dir in $PATH
31059do
31060 IFS=$as_save_IFS
31061 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031062 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31064 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031066 break 2
31067 fi
31068done
cristy8b350f62009-11-15 23:12:43 +000031069 done
cristy3ed852e2009-09-05 21:47:34 +000031070IFS=$as_save_IFS
31071
31072 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31073 ;;
31074esac
31075fi
31076RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31077if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031079$as_echo "$RLEEncodeDelegate" >&6; }
31080else
cristy8b350f62009-11-15 23:12:43 +000031081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031082$as_echo "no" >&6; }
31083fi
31084
31085
31086# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31087set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031089$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031090if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031091 $as_echo_n "(cached) " >&6
31092else
31093 case $RMDelegate in
31094 [\\/]* | ?:[\\/]*)
31095 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31096 ;;
31097 *)
31098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31099for as_dir in $PATH
31100do
31101 IFS=$as_save_IFS
31102 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031103 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31105 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031107 break 2
31108 fi
31109done
cristy8b350f62009-11-15 23:12:43 +000031110 done
cristy3ed852e2009-09-05 21:47:34 +000031111IFS=$as_save_IFS
31112
31113 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31114 ;;
31115esac
31116fi
31117RMDelegate=$ac_cv_path_RMDelegate
31118if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031120$as_echo "$RMDelegate" >&6; }
31121else
cristy8b350f62009-11-15 23:12:43 +000031122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031123$as_echo "no" >&6; }
31124fi
31125
31126
cristy4689cf02010-02-17 21:15:45 +000031127# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31128set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31130$as_echo_n "checking for $ac_word... " >&6; }
31131if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31132 $as_echo_n "(cached) " >&6
31133else
31134 case $RSVGDecodeDelegate in
31135 [\\/]* | ?:[\\/]*)
31136 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31137 ;;
31138 *)
31139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31140for as_dir in $PATH
31141do
31142 IFS=$as_save_IFS
31143 test -z "$as_dir" && as_dir=.
31144 for ac_exec_ext in '' $ac_executable_extensions; do
31145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31146 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31148 break 2
31149 fi
31150done
31151 done
31152IFS=$as_save_IFS
31153
31154 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31155 ;;
31156esac
31157fi
31158RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31159if test -n "$RSVGDecodeDelegate"; then
31160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31161$as_echo "$RSVGDecodeDelegate" >&6; }
31162else
31163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31164$as_echo "no" >&6; }
31165fi
31166
31167
cristy3ed852e2009-09-05 21:47:34 +000031168# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31169set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031171$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031172if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031173 $as_echo_n "(cached) " >&6
31174else
31175 case $SCANDecodeDelegate in
31176 [\\/]* | ?:[\\/]*)
31177 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31178 ;;
31179 *)
31180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31181for as_dir in $PATH
31182do
31183 IFS=$as_save_IFS
31184 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031185 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31187 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031189 break 2
31190 fi
31191done
cristy8b350f62009-11-15 23:12:43 +000031192 done
cristy3ed852e2009-09-05 21:47:34 +000031193IFS=$as_save_IFS
31194
31195 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31196 ;;
31197esac
31198fi
31199SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31200if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031202$as_echo "$SCANDecodeDelegate" >&6; }
31203else
cristy8b350f62009-11-15 23:12:43 +000031204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031205$as_echo "no" >&6; }
31206fi
31207
31208
31209# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31210set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031212$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031213if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031214 $as_echo_n "(cached) " >&6
31215else
31216 case $TXTDelegate in
31217 [\\/]* | ?:[\\/]*)
31218 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31219 ;;
31220 *)
31221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31222for as_dir in $PATH
31223do
31224 IFS=$as_save_IFS
31225 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031226 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31228 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031230 break 2
31231 fi
31232done
cristy8b350f62009-11-15 23:12:43 +000031233 done
cristy3ed852e2009-09-05 21:47:34 +000031234IFS=$as_save_IFS
31235
31236 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31237 ;;
31238esac
31239fi
31240TXTDelegate=$ac_cv_path_TXTDelegate
31241if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031243$as_echo "$TXTDelegate" >&6; }
31244else
cristy8b350f62009-11-15 23:12:43 +000031245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031246$as_echo "no" >&6; }
31247fi
31248
31249
cristy5ac9ac82010-07-29 13:24:24 +000031250# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
31251set dummy "$UniconvertorDelegateDefault"; ac_word=$2
31252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31253$as_echo_n "checking for $ac_word... " >&6; }
31254if test "${ac_cv_path_UniconvertorDelegate+set}" = set; then :
31255 $as_echo_n "(cached) " >&6
31256else
31257 case $UniconvertorDelegate in
31258 [\\/]* | ?:[\\/]*)
31259 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
31260 ;;
31261 *)
31262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31263for as_dir in $PATH
31264do
31265 IFS=$as_save_IFS
31266 test -z "$as_dir" && as_dir=.
31267 for ac_exec_ext in '' $ac_executable_extensions; do
31268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31269 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
31270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31271 break 2
31272 fi
31273done
31274 done
31275IFS=$as_save_IFS
31276
31277 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
31278 ;;
31279esac
31280fi
31281UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
31282if test -n "$UniconvertorDelegate"; then
31283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
31284$as_echo "$UniconvertorDelegate" >&6; }
31285else
31286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31287$as_echo "no" >&6; }
31288fi
31289
31290
cristy3ed852e2009-09-05 21:47:34 +000031291# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31292set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031294$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031295if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031296 $as_echo_n "(cached) " >&6
31297else
31298 case $WMFDecodeDelegate in
31299 [\\/]* | ?:[\\/]*)
31300 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31301 ;;
31302 *)
31303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31304for as_dir in $PATH
31305do
31306 IFS=$as_save_IFS
31307 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031308 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31310 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031312 break 2
31313 fi
31314done
cristy8b350f62009-11-15 23:12:43 +000031315 done
cristy3ed852e2009-09-05 21:47:34 +000031316IFS=$as_save_IFS
31317
31318 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31319 ;;
31320esac
31321fi
31322WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31323if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031325$as_echo "$WMFDecodeDelegate" >&6; }
31326else
cristy8b350f62009-11-15 23:12:43 +000031327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031328$as_echo "no" >&6; }
31329fi
31330
31331
31332# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31333set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031335$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031336if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031337 $as_echo_n "(cached) " >&6
31338else
31339 case $WWWDecodeDelegate in
31340 [\\/]* | ?:[\\/]*)
31341 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31342 ;;
31343 *)
31344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31345for as_dir in $PATH
31346do
31347 IFS=$as_save_IFS
31348 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031349 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31351 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031353 break 2
31354 fi
31355done
cristy8b350f62009-11-15 23:12:43 +000031356 done
cristy3ed852e2009-09-05 21:47:34 +000031357IFS=$as_save_IFS
31358
31359 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31360 ;;
31361esac
31362fi
31363WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31364if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031366$as_echo "$WWWDecodeDelegate" >&6; }
31367else
cristy8b350f62009-11-15 23:12:43 +000031368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031369$as_echo "no" >&6; }
31370fi
31371
31372
31373# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31374set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031376$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031377if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031378 $as_echo_n "(cached) " >&6
31379else
31380 case $XPSDelegate in
31381 [\\/]* | ?:[\\/]*)
31382 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31383 ;;
31384 *)
31385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31386for as_dir in $PATH
31387do
31388 IFS=$as_save_IFS
31389 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031390 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31392 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031394 break 2
31395 fi
31396done
cristy8b350f62009-11-15 23:12:43 +000031397 done
cristy3ed852e2009-09-05 21:47:34 +000031398IFS=$as_save_IFS
31399
31400 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31401 ;;
31402esac
31403fi
31404XPSDelegate=$ac_cv_path_XPSDelegate
31405if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031407$as_echo "$XPSDelegate" >&6; }
31408else
cristy8b350f62009-11-15 23:12:43 +000031409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031410$as_echo "no" >&6; }
31411fi
31412
31413
31414# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31415set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031417$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031418if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031419 $as_echo_n "(cached) " >&6
31420else
31421 case $ZipDelegate in
31422 [\\/]* | ?:[\\/]*)
31423 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31424 ;;
31425 *)
31426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31427for as_dir in $PATH
31428do
31429 IFS=$as_save_IFS
31430 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031431 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31433 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031435 break 2
31436 fi
31437done
cristy8b350f62009-11-15 23:12:43 +000031438 done
cristy3ed852e2009-09-05 21:47:34 +000031439IFS=$as_save_IFS
31440
31441 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31442 ;;
31443esac
31444fi
31445ZipDelegate=$ac_cv_path_ZipDelegate
31446if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031448$as_echo "$ZipDelegate" >&6; }
31449else
cristy8b350f62009-11-15 23:12:43 +000031450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031451$as_echo "no" >&6; }
31452fi
31453
31454
31455
31456# Prefer lpr to lp; lp needs options tacked on.
31457if test "$LPRDelegate" != no; then
31458 PrintDelegate="$LPRDelegate"
31459else
31460 PrintDelegate="$LPDelegate -c -s"
31461fi
31462
31463
31464# Installed ImageMagick utiltity paths
31465ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31466DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31467MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31468
31469# Set delegate booleans
31470have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31471have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31472have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31473have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31474have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31475have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000031476have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000031477have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31478have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31479have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31480have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31481have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31482
31483#
31484# Test for font directories
31485#
31486type_include_files=''
31487
cristy430a7312010-01-21 20:44:04 +000031488# Dejavu fonts.
31489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31490$as_echo_n "checking for Dejavu fonts directory... " >&6; }
31491dejavu_font_dir=''
31492if test "${with_dejavu_font_dir}" != 'default'; then
31493 dejavu_font_dir="${with_dejavu_font_dir}/"
31494else
31495 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31496 if test -f "${font_dir}DejaVuSerif.ttf"; then
31497 dejavu_font_dir="${font_dir}"
31498 break 1
31499 fi
31500 done
31501fi
31502if test "${dejavu_font_dir}x" != 'x'; then
31503 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31505$as_echo "$dejavu_font_dir" >&6; }
31506else
31507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31508$as_echo "not found!" >&6; };
31509fi
31510
31511
cristy3ed852e2009-09-05 21:47:34 +000031512# Windows
31513windows_font_dir=''
31514if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31515 windows_font_dir="${with_windows_font_dir}/"
31516fi
cristy430a7312010-01-21 20:44:04 +000031517if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031518 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31519 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31520 fi
31521 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31522 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31523 fi
31524 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31525 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31526 fi
31527fi
cristy430a7312010-01-21 20:44:04 +000031528if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031529 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31530fi
31531
31532
31533# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000031534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000031535$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31536ghostscript_font_dir=''
31537if test "${with_gs_font_dir}" != 'default'; then
31538 ghostscript_font_dir="${with_gs_font_dir}/"
31539else
31540 if test "${native_win32_build}" = 'yes'; then
31541 # Native Windows Build
31542 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31543 if test -f "${font_dir}a010013l.pfb"; then
31544 ghostscript_font_dir="$font_dir"
31545 break 1
31546 fi
31547 done
31548 if test "${PSDelegate}" != 'gswin32c'; then
31549 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31550 fi
31551 else
31552 # Linux / Mac OS X / Unix Build
31553 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
31554 if test -f "${font_dir}a010013l.pfb"; then
31555 ghostscript_font_dir="${font_dir}"
31556 break 1
31557 fi
31558 done
31559 if test "${ghostscript_font_dir}x" = 'x'; then
31560 if test "$PSDelegate" != 'gs'; then
31561 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31562 fi
31563 fi
31564 fi
31565fi
31566if test "${ghostscript_font_dir}x" != 'x'; then
31567 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000031568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000031569$as_echo "$ghostscript_font_dir" >&6; }
31570else
cristy8b350f62009-11-15 23:12:43 +000031571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000031572$as_echo "not found!" >&6; };
31573fi
31574
31575case "${build_os}" in
31576 mingw* )
31577 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31578 ;;
31579esac
31580
31581
31582
31583#
31584# Handle case where user doesn't want frozen paths
31585#
31586if test "$with_frozenpaths" != 'yes'; then
31587 # Re-set delegate definitions to default (no paths)
31588 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31589 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31590 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31591 BZIPDelegate="$BZIPDelegateDefault"
31592 BrowseDelegate="$BrowseDelegateDefault"
31593 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31594 CatDelegate="$CatDelegateDefault"
31595 ConvertDelegate="$ConvertDelegateDefault"
31596 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31597 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31598 EchoDelegate="$EchoDelegateDefault"
31599 EditorDelegate="$EditorDelegateDefault"
31600 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31601 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31602 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31603 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31604 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31605 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31606 LPDelegate="$LPDelegateDefault"
31607 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31608 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31609 LaunchDelegate="$LaunchDelegateDefault"
31610 MANDelegate="$MANDelegateDefault"
31611 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31612 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031613 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000031614 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31615 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031616 PCLDelegate="$PCLDelegateDefault"
31617 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31618 POVDelegate="$POVDelegateDefault"
31619 PSDelegate="$PSDelegateDefault"
31620 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31621 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31622 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000031623 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031624 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31625 ShowImageDelegate="$ShowImageDelegateDefault"
31626 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000031627 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031628 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31629 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31630 XPSDelegate="$XPSDelegateDefault"
31631 ZipDelegate="$ZipDelegateDefault"
31632fi
31633
31634# Delegate substitutions
31635
31636
31637
31638
31639
31640
31641
31642
31643
31644
31645
31646
31647
31648
31649
31650
31651
31652
31653
31654
31655
31656
31657
31658
31659
31660
31661
31662
31663
31664
31665
31666
31667
31668
31669
31670
31671
31672
31673
31674
31675
31676
cristy935c86e2010-06-05 23:50:07 +000031677
cristy5ac9ac82010-07-29 13:24:24 +000031678
cristy3ed852e2009-09-05 21:47:34 +000031679#
31680# RPM support.
31681#
31682RPM=''
31683for ac_prog in gnutar gtar tar
31684do
31685 # Extract the first word of "$ac_prog", so it can be a program name with args.
31686set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031688$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031689if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031690 $as_echo_n "(cached) " >&6
31691else
31692 if test -n "$TAR"; then
31693 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31694else
31695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31696for as_dir in $PATH
31697do
31698 IFS=$as_save_IFS
31699 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031700 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31702 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031704 break 2
31705 fi
31706done
cristy8b350f62009-11-15 23:12:43 +000031707 done
cristy3ed852e2009-09-05 21:47:34 +000031708IFS=$as_save_IFS
31709
31710fi
31711fi
31712TAR=$ac_cv_prog_TAR
31713if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000031714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000031715$as_echo "$TAR" >&6; }
31716else
cristy8b350f62009-11-15 23:12:43 +000031717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031718$as_echo "no" >&6; }
31719fi
31720
31721
31722 test -n "$TAR" && break
31723done
31724
31725for ac_prog in perl
31726do
31727 # Extract the first word of "$ac_prog", so it can be a program name with args.
31728set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031730$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031731if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031732 $as_echo_n "(cached) " >&6
31733else
31734 if test -n "$PERL"; then
31735 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31736else
31737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31738for as_dir in $PATH
31739do
31740 IFS=$as_save_IFS
31741 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031742 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31744 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031746 break 2
31747 fi
31748done
cristy8b350f62009-11-15 23:12:43 +000031749 done
cristy3ed852e2009-09-05 21:47:34 +000031750IFS=$as_save_IFS
31751
31752fi
31753fi
31754PERL=$ac_cv_prog_PERL
31755if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031757$as_echo "$PERL" >&6; }
31758else
cristy8b350f62009-11-15 23:12:43 +000031759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031760$as_echo "no" >&6; }
31761fi
31762
31763
31764 test -n "$PERL" && break
31765done
31766
31767for ac_prog in rpmbuild rpm
31768do
31769 # Extract the first word of "$ac_prog", so it can be a program name with args.
31770set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031772$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031773if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031774 $as_echo_n "(cached) " >&6
31775else
31776 if test -n "$RPM"; then
31777 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31778else
31779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31780for as_dir in $PATH
31781do
31782 IFS=$as_save_IFS
31783 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031784 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31786 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031788 break 2
31789 fi
31790done
cristy8b350f62009-11-15 23:12:43 +000031791 done
cristy3ed852e2009-09-05 21:47:34 +000031792IFS=$as_save_IFS
31793
31794fi
31795fi
31796RPM=$ac_cv_prog_RPM
31797if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000031798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000031799$as_echo "$RPM" >&6; }
31800else
cristy8b350f62009-11-15 23:12:43 +000031801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031802$as_echo "no" >&6; }
31803fi
31804
31805
31806 test -n "$RPM" && break
31807done
31808
31809
31810ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31811
31812
31813AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31814
31815
31816AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31817
31818
31819AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31820
31821
31822 if test "x$RPM" != "x" ; then
31823 RPM_DELEGATE_TRUE=
31824 RPM_DELEGATE_FALSE='#'
31825else
31826 RPM_DELEGATE_TRUE='#'
31827 RPM_DELEGATE_FALSE=
31828fi
31829
31830
31831#
31832# 7ZIP support (http://p7zip.sourceforge.net/)
31833#
31834P7ZIP=''
31835for ac_prog in 7za
31836do
31837 # Extract the first word of "$ac_prog", so it can be a program name with args.
31838set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031840$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031841if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031842 $as_echo_n "(cached) " >&6
31843else
31844 if test -n "$P7ZIP"; then
31845 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31846else
31847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31848for as_dir in $PATH
31849do
31850 IFS=$as_save_IFS
31851 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031852 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31854 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031856 break 2
31857 fi
31858done
cristy8b350f62009-11-15 23:12:43 +000031859 done
cristy3ed852e2009-09-05 21:47:34 +000031860IFS=$as_save_IFS
31861
31862fi
31863fi
31864P7ZIP=$ac_cv_prog_P7ZIP
31865if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031867$as_echo "$P7ZIP" >&6; }
31868else
cristy8b350f62009-11-15 23:12:43 +000031869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031870$as_echo "no" >&6; }
31871fi
31872
31873
31874 test -n "$P7ZIP" && break
31875done
31876
31877
31878 if test "x$P7ZIP" != "x" ; then
31879 P7ZIP_DELEGATE_TRUE=
31880 P7ZIP_DELEGATE_FALSE='#'
31881else
31882 P7ZIP_DELEGATE_TRUE='#'
31883 P7ZIP_DELEGATE_FALSE=
31884fi
31885
31886
31887#
31888# ZIP support (http://www.info-zip.org/Zip.html)
31889#
31890ZIP=''
31891for ac_prog in zip
31892do
31893 # Extract the first word of "$ac_prog", so it can be a program name with args.
31894set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031896$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031897if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031898 $as_echo_n "(cached) " >&6
31899else
31900 if test -n "$ZIP"; then
31901 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31902else
31903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31904for as_dir in $PATH
31905do
31906 IFS=$as_save_IFS
31907 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031908 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31910 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031912 break 2
31913 fi
31914done
cristy8b350f62009-11-15 23:12:43 +000031915 done
cristy3ed852e2009-09-05 21:47:34 +000031916IFS=$as_save_IFS
31917
31918fi
31919fi
31920ZIP=$ac_cv_prog_ZIP
31921if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031923$as_echo "$ZIP" >&6; }
31924else
cristy8b350f62009-11-15 23:12:43 +000031925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031926$as_echo "no" >&6; }
31927fi
31928
31929
31930 test -n "$ZIP" && break
31931done
31932
31933
31934 if test "x$ZIP" != "x" ; then
31935 ZIP_DELEGATE_TRUE=
31936 ZIP_DELEGATE_FALSE='#'
31937else
31938 ZIP_DELEGATE_TRUE='#'
31939 ZIP_DELEGATE_FALSE=
31940fi
31941
31942
31943#
31944# GhostPCL related configuration.
31945#
31946PCLColorDevice=ppmraw
31947PCLCMYKDevice=bmpsep8
31948PCLMonoDevice=pbmraw
31949if test -z "$PCLVersion"; then
31950 PCLVersion='unknown'
31951fi
31952if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031954$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031956$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031958$as_echo "" >&6; }
31959 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000031960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031961$as_echo_n "checking for pcl color device... " >&6; }
31962 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31963 :
31964 else
31965 PCLColorDevice=ppmraw
31966 fi
cristy8b350f62009-11-15 23:12:43 +000031967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031968$as_echo "$PCLColorDevice" >&6; }
31969
31970 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031972$as_echo_n "checking for pcl CMYK device... " >&6; }
31973 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31974 :
31975 else
31976 PCLCMYKDevice=$PCLColorDevice
31977 fi
cristy8b350f62009-11-15 23:12:43 +000031978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031979$as_echo "$PCLCMYKDevice" >&6; }
31980
31981 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031983$as_echo_n "checking for pcl mono device... " >&6; }
31984 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31985 :
31986 else
31987 PCLMonoDevice=$PCLColorDevice
31988 fi
cristy8b350f62009-11-15 23:12:43 +000031989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031990$as_echo "$PCLMonoDevice" >&6; }
31991fi
31992
31993
31994
31995
31996
31997
31998#
31999# GhostXPS related configuration.
32000#
32001XPSColorDevice=ppmraw
32002XPSCMYKDevice=bmpsep8
32003XPSMonoDevice=pbmraw
32004if test -z "$XPSVersion"; then
32005 XPSVersion='unknown'
32006fi
32007if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032009$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032011$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032013$as_echo "" >&6; }
32014 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032016$as_echo_n "checking for xps color device... " >&6; }
32017 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32018 :
32019 else
32020 XPSColorDevice=ppmraw
32021 fi
cristy8b350f62009-11-15 23:12:43 +000032022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032023$as_echo "$XPSColorDevice" >&6; }
32024
32025 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032027$as_echo_n "checking for xps CMYK device... " >&6; }
32028 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32029 :
32030 else
32031 XPSCMYKDevice=$XPSColorDevice
32032 fi
cristy8b350f62009-11-15 23:12:43 +000032033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032034$as_echo "$XPSCMYKDevice" >&6; }
32035
32036 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032038$as_echo_n "checking for xps mono device... " >&6; }
32039 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32040 :
32041 else
32042 XPSMonoDevice=$XPSColorDevice
32043 fi
cristy8b350f62009-11-15 23:12:43 +000032044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032045$as_echo "$XPSMonoDevice" >&6; }
32046fi
32047
32048
32049
32050
32051
32052
32053#
32054# Ghostscript related configuration.
32055#
32056if test "$have_png" = 'yes'; then
32057 GSAlphaDevice=pngalpha
32058else
32059 GSAlphaDevice=pnmraw
32060fi
32061GSColorDevice=pnmraw
32062GSCMYKDevice=pam
32063GSMonoDevice=pbmraw
32064GSPDFDevice=pdfwrite
32065GSPSDevice=pswrite
32066GSEPSDevice=epswrite
32067GSVersion='unknown'
32068if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032070$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032072$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032074$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032076$as_echo_n "checking for Ghostscript version... " >&6; }
32077 if GSVersion=`$PSDelegate --version`; then
32078 :
32079 else
32080 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32081 fi
cristy8b350f62009-11-15 23:12:43 +000032082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032083$as_echo "$GSVersion" >&6; }
32084
32085 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000032086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032087$as_echo_n "checking for gs alpha device... " >&6; }
32088 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32089 :
32090 else
32091 GSAlphaDevice=pnmraw
32092 fi
cristy8b350f62009-11-15 23:12:43 +000032093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032094$as_echo "$GSAlphaDevice" >&6; }
32095
32096 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032098$as_echo_n "checking for gs color device... " >&6; }
32099 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32100 :
32101 else
32102 GSColorDevice=pnmraw
32103 fi
cristy8b350f62009-11-15 23:12:43 +000032104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032105$as_echo "$GSColorDevice" >&6; }
32106
32107 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032109$as_echo_n "checking for gs CMYK device... " >&6; }
32110 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32111 :
32112 else
32113 GSCMYKDevice=bmpsep8
32114 fi
cristy8b350f62009-11-15 23:12:43 +000032115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032116$as_echo "$GSCMYKDevice" >&6; }
32117
32118 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032120$as_echo_n "checking for gs mono device... " >&6; }
32121 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32122 :
32123 else
32124 GSMonoDevice=$GSColorDevice
32125 fi
cristy8b350f62009-11-15 23:12:43 +000032126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032127$as_echo "$GSMonoDevice" >&6; }
32128
32129 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000032130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032131$as_echo_n "checking for gs PDF writing device... " >&6; }
32132 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32133 :
32134 else
32135 GSPDFDevice=nodevice
32136 fi
cristy8b350f62009-11-15 23:12:43 +000032137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032138$as_echo "$GSPDFDevice" >&6; }
32139
32140 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000032141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032142$as_echo_n "checking for gs PS writing device... " >&6; }
32143 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32144 :
32145 else
32146 GSPSDevice=nodevice
32147 fi
cristy8b350f62009-11-15 23:12:43 +000032148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032149$as_echo "$GSPSDevice" >&6; }
32150
32151 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000032152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032153$as_echo_n "checking for gs EPS writing device... " >&6; }
32154 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32155 :
32156 else
32157 GSEPSDevice=nodevice
32158 fi
cristy8b350f62009-11-15 23:12:43 +000032159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032160$as_echo "$GSEPSDevice" >&6; }
32161fi
32162
32163
32164
32165
32166
32167
32168
32169
32170
32171
32172#
32173# PerlMagick-related configuration
32174#
32175
32176# Look for PERL if PerlMagick requested
32177# If name/path of desired PERL interpreter is specified, look for that one first
32178have_perl='no'
32179if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000032180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032181$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032183$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032185$as_echo "" >&6; }
32186 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032188$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032189if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032190 $as_echo_n "(cached) " >&6
32191else
32192 ac_cv_path_PERL="$with_perl"
32193fi
cristy8b350f62009-11-15 23:12:43 +000032194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032195$as_echo "$ac_cv_path_PERL" >&6; };
32196 PERL=$ac_cv_path_PERL
32197 have_perl="$ac_cv_path_PERL"
32198 else
32199 for ac_prog in perl perl5
32200do
32201 # Extract the first word of "$ac_prog", so it can be a program name with args.
32202set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032204$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032205if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032206 $as_echo_n "(cached) " >&6
32207else
32208 case $PERL in
32209 [\\/]* | ?:[\\/]*)
32210 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32211 ;;
32212 *)
32213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32214for as_dir in $PATH
32215do
32216 IFS=$as_save_IFS
32217 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032218 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32220 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032222 break 2
32223 fi
32224done
cristy8b350f62009-11-15 23:12:43 +000032225 done
cristy3ed852e2009-09-05 21:47:34 +000032226IFS=$as_save_IFS
32227
32228 ;;
32229esac
32230fi
32231PERL=$ac_cv_path_PERL
32232if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032234$as_echo "$PERL" >&6; }
32235else
cristy8b350f62009-11-15 23:12:43 +000032236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032237$as_echo "no" >&6; }
32238fi
32239
32240
32241 test -n "$PERL" && break
32242done
32243 if test "$ac_cv_path_PERL"; then
32244 have_perl="$ac_cv_path_PERL"
32245 fi
32246 fi
32247fi
32248
cristy949301e2010-01-06 01:38:40 +000032249if test "$with_perl" != 'yes' ; then
32250 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32251fi
32252
32253PERL_SUPPORTS_DESTDIR='no'
32254
cristy3ed852e2009-09-05 21:47:34 +000032255with_perl_static='no'
32256with_perl_dynamic='no'
32257if test "$have_perl" != 'no'; then
32258 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32259 with_perl_static='yes'
32260 fi
32261 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32262 with_perl_dynamic='yes'
32263 fi
32264 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy964cb7f2010-04-25 23:18:00 +000032265
32266
32267
32268
32269 if test -n "$PERL"; then :
32270
32271 ax_perl_version="5.8.1"
32272
32273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32274$as_echo_n "checking for perl version... " >&6; }
32275
32276 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32277
32278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32279$as_echo "$perl_version" >&6; }
32280
32281 PERL_VERSION=$perl_version
32282
32283
32284
32285
32286
32287 # Used to indicate true or false condition
32288 ax_compare_version=false
32289
32290 # Convert the two version strings to be compared into a format that
32291 # allows a simple string comparison. The end result is that a version
32292 # string of the form 1.12.5-r617 will be converted to the form
32293 # 0001001200050617. In other words, each number is zero padded to four
32294 # digits, and non digits are removed.
32295
32296 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32297 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32298 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32299 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32300 -e 's/[^0-9]//g'`
32301
32302
32303 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32304 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32305 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32306 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32307 -e 's/[^0-9]//g'`
32308
32309
32310 ax_compare_version=`echo "x$ax_compare_version_A
32311x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32312
32313
32314
32315 if test "$ax_compare_version" = "true" ; then
32316
32317 :
32318 PERL_SUPPORTS_DESTDIR='yes'
32319
32320 else
32321 :
32322 PERL_SUPPORTS_DESTDIR='no'
32323
cristy3ed852e2009-09-05 21:47:34 +000032324 fi
cristy3ed852e2009-09-05 21:47:34 +000032325
cristy964cb7f2010-04-25 23:18:00 +000032326
cristy3ed852e2009-09-05 21:47:34 +000032327else
cristy3ed852e2009-09-05 21:47:34 +000032328
cristy964cb7f2010-04-25 23:18:00 +000032329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32330$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32331 PERL_SUPPORTS_DESTDIR='no'
cristy3ed852e2009-09-05 21:47:34 +000032332
32333fi
32334
cristy3ed852e2009-09-05 21:47:34 +000032335fi
32336 if test "$have_perl" != 'no'; then
32337 WITH_PERL_TRUE=
32338 WITH_PERL_FALSE='#'
32339else
32340 WITH_PERL_TRUE='#'
32341 WITH_PERL_FALSE=
32342fi
32343
32344 if test $with_perl_static = 'yes'; then
32345 WITH_PERL_STATIC_TRUE=
32346 WITH_PERL_STATIC_FALSE='#'
32347else
32348 WITH_PERL_STATIC_TRUE='#'
32349 WITH_PERL_STATIC_FALSE=
32350fi
32351
32352 if test $with_perl_dynamic = 'yes'; then
32353 WITH_PERL_DYNAMIC_TRUE=
32354 WITH_PERL_DYNAMIC_FALSE='#'
32355else
32356 WITH_PERL_DYNAMIC_TRUE='#'
32357 WITH_PERL_DYNAMIC_FALSE=
32358fi
32359
32360
32361
32362# Determine path to pick up MagickCore library from for use with building PerlMagick
32363MAGICKCORE_PATH="${LIB_DIR}"
32364if test $with_perl_static = 'yes'; then
32365 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32366 libtool_objdir=$objdir
32367
32368 # Linker search path to library, followed by -lMagickCore
32369 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32370fi
32371
32372
32373# Create a simple string containing format names for all delegate libraries
32374DELEGATES=''
32375if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32376if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32377if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32378if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32379if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32380if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32381if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32382if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32383if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32384if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32385if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32386if test "$have_jpeg" = 'yes'; then
32387 DELEGATES="$DELEGATES jpeg";
32388 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32389fi
32390if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000032391if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000032392if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32393if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32394if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32395if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32396if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32397if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32398if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32399if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32400if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32401if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32402if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32403
32404
32405
32406#
32407# Handle special compiler flags
32408#
32409
32410# Add '-p' if prof source profiling support enabled
32411if test "$enable_prof" = 'yes'; then
32412 CFLAGS="-p $CFLAGS"
32413 CXXFLAGS="-p $CXXFLAGS"
32414 LDFLAGS="-p $LDFLAGS"
32415fi
32416
32417# Add '-pg' if gprof source profiling support enabled
32418if test "$enable_gprof" = 'yes'; then
32419 CFLAGS="-pg $CFLAGS"
32420 CXXFLAGS="-pg $CXXFLAGS"
32421 LDFLAGS="-pg $LDFLAGS"
32422fi
32423
32424# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32425# This is a gcc-specific feature
32426if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032428$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032429if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032430 $as_echo_n "(cached) " >&6
32431else
32432 ac_check_lib_save_LIBS=$LIBS
32433LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032435/* end confdefs.h. */
32436
32437/* Override any GCC internal prototype to avoid an error.
32438 Use char because int might match the return type of a GCC
32439 builtin and then its argument prototype would still apply. */
32440#ifdef __cplusplus
32441extern "C"
32442#endif
32443char _gcov_init ();
32444int
32445main ()
32446{
32447return _gcov_init ();
32448 ;
32449 return 0;
32450}
32451_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032452if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032453 ac_cv_lib_gcov__gcov_init=yes
32454else
cristy8b350f62009-11-15 23:12:43 +000032455 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032456fi
cristy8b350f62009-11-15 23:12:43 +000032457rm -f core conftest.err conftest.$ac_objext \
32458 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032459LIBS=$ac_check_lib_save_LIBS
32460fi
cristy8b350f62009-11-15 23:12:43 +000032461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032462$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032463if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032464 cat >>confdefs.h <<_ACEOF
32465#define HAVE_LIBGCOV 1
32466_ACEOF
32467
32468 LIBS="-lgcov $LIBS"
32469
32470fi
32471
cristy8b350f62009-11-15 23:12:43 +000032472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032473$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032474if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032475 $as_echo_n "(cached) " >&6
32476else
32477 ac_check_lib_save_LIBS=$LIBS
32478LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032480/* end confdefs.h. */
32481
32482/* Override any GCC internal prototype to avoid an error.
32483 Use char because int might match the return type of a GCC
32484 builtin and then its argument prototype would still apply. */
32485#ifdef __cplusplus
32486extern "C"
32487#endif
32488char __gcov_init ();
32489int
32490main ()
32491{
32492return __gcov_init ();
32493 ;
32494 return 0;
32495}
32496_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032497if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032498 ac_cv_lib_gcov___gcov_init=yes
32499else
cristy8b350f62009-11-15 23:12:43 +000032500 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032501fi
cristy8b350f62009-11-15 23:12:43 +000032502rm -f core conftest.err conftest.$ac_objext \
32503 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032504LIBS=$ac_check_lib_save_LIBS
32505fi
cristy8b350f62009-11-15 23:12:43 +000032506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032507$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032508if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032509 cat >>confdefs.h <<_ACEOF
32510#define HAVE_LIBGCOV 1
32511_ACEOF
32512
32513 LIBS="-lgcov $LIBS"
32514
32515fi
32516
32517 case "$target_os" in
32518 darwin*)
32519 OSX_GCOV_LDFLAG="-Wl,-single_module"
32520 ;;
32521 *)
32522 OSX_GCOV_LDFLAG=""
32523 ;;
32524 esac
32525
32526 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32527 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32528 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32529fi
32530
32531#
32532# Build library dependency list for libMagickCore
32533#
32534
32535MAGICK_LIBLTDL='' # Libltdl for build
32536MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32537MAGICK_LTDLDEPS='' # extra libltdl dependencies
32538if test "$with_ltdl" != 'no'
32539then
32540 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32541 MAGICK_API_LIBLTDL='-lltdl'
32542 fi
32543 MAGICK_LIBLTDL=${LIBLTDL}
32544 MAGICK_LTDLDEPS=${LTDLDEPS}
32545fi
32546
32547
32548
32549if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000032550 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 +000032551else
cristy2e8b51d2009-10-17 18:26:15 +000032552 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 +000032553fi
32554
32555
32556#
32557# Remove extraneous spaces from output variables (asthetic)
32558#
32559X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32560X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32561X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32562X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32563
32564CC=`echo $CC | sed -e 's/ */ /g'`
32565CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32566CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32567CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32568DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32569DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32570LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32571TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32572MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32573#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32574
32575# Pass only user-provided LIBS as "global" libraries
32576LIBS=$USER_LIBS
32577
32578#AC_SUBST(CPPFLAGS)
32579
32580#AC_SUBST(LDFLAGS)
32581#AC_SUBST(X_PRE_LIBS)
32582#AC_SUBST(X_LIBS)
32583#AC_SUBST(X_EXTRA_LIBS)
32584
32585MAGICK_CFLAGS=$CFLAGS
32586MAGICK_CXXFLAGS="$CXXFLAGS"
32587MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32588MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32589MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32590MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32591
32592
32593
32594
32595
32596
32597
32598
cristyfd9dcd42010-08-08 18:07:02 +000032599
cristy3ed852e2009-09-05 21:47:34 +000032600# Set configured scripts to executable.
32601ac_config_commands="$ac_config_commands default"
32602
32603ac_config_commands="$ac_config_commands MagickCore-config.in"
32604
32605ac_config_commands="$ac_config_commands Magick-config.in"
32606
32607ac_config_commands="$ac_config_commands MagickWand-config.in"
32608
32609ac_config_commands="$ac_config_commands Wand-config.in"
32610
32611ac_config_commands="$ac_config_commands Magick++-config.in"
32612
32613ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32614
32615
cristy8b350f62009-11-15 23:12:43 +000032616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032617$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000032619$as_echo "Update ImageMagick configuration" >&6; }
32620cat >confcache <<\_ACEOF
32621# This file is a shell script that caches the results of configure
32622# tests run on this system so they can be shared between configure
32623# scripts and configure runs, see configure's option --config-cache.
32624# It is not useful on other systems. If it contains results you don't
32625# want to keep, you may remove or edit it.
32626#
32627# config.status only pays attention to the cache file if you give it
32628# the --recheck option to rerun configure.
32629#
32630# `ac_cv_env_foo' variables (set or unset) will be overridden when
32631# loading this file, other *unset* `ac_cv_foo' will be assigned the
32632# following values.
32633
32634_ACEOF
32635
32636# The following way of writing the cache mishandles newlines in values,
32637# but we know of no workaround that is simple, portable, and efficient.
32638# So, we kill variables containing newlines.
32639# Ultrix sh set writes to stderr and can't be redirected directly,
32640# and sets the high bit in the cache file unless we assign to the vars.
32641(
32642 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32643 eval ac_val=\$$ac_var
32644 case $ac_val in #(
32645 *${as_nl}*)
32646 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000032647 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000032648$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32649 esac
32650 case $ac_var in #(
32651 _ | IFS | as_nl) ;; #(
32652 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000032653 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000032654 esac ;;
32655 esac
32656 done
32657
32658 (set) 2>&1 |
32659 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32660 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000032661 # `set' does not quote correctly, so add quotes: double-quote
32662 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000032663 sed -n \
32664 "s/'/'\\\\''/g;
32665 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32666 ;; #(
32667 *)
32668 # `set' quotes correctly as required by POSIX, so do not add quotes.
32669 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32670 ;;
32671 esac |
32672 sort
32673) |
32674 sed '
32675 /^ac_cv_env_/b end
32676 t clear
32677 :clear
32678 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32679 t end
32680 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32681 :end' >>confcache
32682if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32683 if test -w "$cache_file"; then
32684 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000032685 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032686$as_echo "$as_me: updating cache $cache_file" >&6;}
32687 cat confcache >$cache_file
32688 else
cristy8b350f62009-11-15 23:12:43 +000032689 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032690$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32691 fi
32692fi
32693rm -f confcache
32694
32695test "x$prefix" = xNONE && prefix=$ac_default_prefix
32696# Let make expand exec_prefix.
32697test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32698
32699DEFS=-DHAVE_CONFIG_H
32700
32701ac_libobjs=
32702ac_ltlibobjs=
32703for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32704 # 1. Remove the extension, and $U if already installed.
32705 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32706 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32707 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32708 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000032709 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32710 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000032711done
32712LIBOBJS=$ac_libobjs
32713
32714LTLIBOBJS=$ac_ltlibobjs
32715
32716
32717 if test -n "$EXEEXT"; then
32718 am__EXEEXT_TRUE=
32719 am__EXEEXT_FALSE='#'
32720else
32721 am__EXEEXT_TRUE='#'
32722 am__EXEEXT_FALSE=
32723fi
32724
32725if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032726 as_fn_error "conditional \"AMDEP\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032727Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032728fi
32729if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032730 as_fn_error "conditional \"am__fastdepCC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032731Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032732fi
cristya0b81c32010-01-22 02:54:33 +000032733if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032734 as_fn_error "conditional \"am__fastdepCC\" was never defined.
cristya0b81c32010-01-22 02:54:33 +000032735Usually this means the macro was only invoked conditionally." "$LINENO" 5
32736fi
cristy3ed852e2009-09-05 21:47:34 +000032737if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032738 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032739Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032740fi
32741if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032742 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032743Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032744fi
32745if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032746 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032747Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032748fi
32749if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032750 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032751Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032752fi
32753if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032754 as_fn_error "conditional \"USING_CL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032755Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032756fi
cristy3ed852e2009-09-05 21:47:34 +000032757if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032758 as_fn_error "conditional \"INSTALL_LTDL\" 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 "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032762 as_fn_error "conditional \"CONVENIENCE_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
32765LT_CONFIG_H=config/config.h
32766
32767 _ltdl_libobjs=
32768 _ltdl_ltlibobjs=
32769 if test -n "$_LT_LIBOBJS"; then
32770 # Remove the extension.
32771 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32772 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32773 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32774 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32775 done
32776 fi
32777 ltdl_LIBOBJS=$_ltdl_libobjs
32778
32779 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32780
32781
cristyfa112112010-01-04 17:48:07 +000032782if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032783 as_fn_error "conditional \"WITH_SHARED_LIBS\" was never defined.
cristyfa112112010-01-04 17:48:07 +000032784Usually this means the macro was only invoked conditionally." "$LINENO" 5
32785fi
cristy3ed852e2009-09-05 21:47:34 +000032786if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032787 as_fn_error "conditional \"WITH_MODULES\" 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 "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032791 as_fn_error "conditional \"WITH_LTDL\" 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 "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032795 as_fn_error "conditional \"MAINTAINER_MODE\" 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
32798
32799if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032800 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032801Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032802fi
32803if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032804 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032805Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032806fi
32807if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032808 as_fn_error "conditional \"HasUMEM\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032809Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032810fi
32811if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032812 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032813Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032814fi
32815if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032816 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032817Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032818fi
32819if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032820 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032821Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032822fi
32823if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032824 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032825Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032826fi
32827if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032828 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032829Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032830fi
32831if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032832 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032833Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032834fi
32835if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032836 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032837Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032838fi
32839if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032840 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032841Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032842fi
32843if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032844 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032845Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032846fi
32847if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032848 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032849Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032850fi
32851if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032852 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032853Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032854fi
32855if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032856 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032857Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032858fi
32859if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032860 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032861Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032862fi
32863if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032864 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032865Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032866fi
32867if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032868 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032869Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032870fi
32871if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032872 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032873Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032874fi
32875if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032876 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032877Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032878fi
32879if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032880 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032881Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032882fi
32883if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032884 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032885Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032886fi
32887if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032888 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032889Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032890fi
32891if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032892 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032893Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032894fi
32895if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032896 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032897Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032898fi
32899if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032900 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032901Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032902fi
32903if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032904 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032905Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032906fi
32907if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032908 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032909Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032910fi
32911if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032912 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032913Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032914fi
32915if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032916 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032917Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032918fi
32919if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032920 as_fn_error "conditional \"WITH_PERL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032921Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032922fi
32923if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032924 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032925Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032926fi
32927if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032928 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032929Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032930fi
32931
32932: ${CONFIG_STATUS=./config.status}
32933ac_write_fail=0
32934ac_clean_files_save=$ac_clean_files
32935ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000032936{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032937$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032938as_write_fail=0
32939cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032940#! $SHELL
32941# Generated by $as_me.
32942# Run this file to recreate the current configuration.
32943# Compiler output produced by configure, useful for debugging
32944# configure, is in config.log if it exists.
32945
32946debug=false
32947ac_cs_recheck=false
32948ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000032949
cristy8b350f62009-11-15 23:12:43 +000032950SHELL=\${CONFIG_SHELL-$SHELL}
32951export SHELL
32952_ASEOF
32953cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32954## -------------------- ##
32955## M4sh Initialization. ##
32956## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000032957
32958# Be more Bourne compatible
32959DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000032960if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000032961 emulate sh
32962 NULLCMD=:
32963 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32964 # is contrary to our usage. Disable this feature.
32965 alias -g '${1+"$@"}'='"$@"'
32966 setopt NO_GLOB_SUBST
32967else
cristy8b350f62009-11-15 23:12:43 +000032968 case `(set -o) 2>/dev/null` in #(
32969 *posix*) :
32970 set -o posix ;; #(
32971 *) :
32972 ;;
cristy3ed852e2009-09-05 21:47:34 +000032973esac
cristy3ed852e2009-09-05 21:47:34 +000032974fi
32975
32976
cristy3ed852e2009-09-05 21:47:34 +000032977as_nl='
32978'
32979export as_nl
32980# Printing a long string crashes Solaris 7 /usr/bin/printf.
32981as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32982as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32983as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000032984# Prefer a ksh shell builtin over an external printf program on Solaris,
32985# but without wasting forks for bash or zsh.
32986if test -z "$BASH_VERSION$ZSH_VERSION" \
32987 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32988 as_echo='print -r --'
32989 as_echo_n='print -rn --'
32990elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000032991 as_echo='printf %s\n'
32992 as_echo_n='printf %s'
32993else
32994 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32995 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32996 as_echo_n='/usr/ucb/echo -n'
32997 else
32998 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32999 as_echo_n_body='eval
33000 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000033001 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000033002 *"$as_nl"*)
33003 expr "X$arg" : "X\\(.*\\)$as_nl";
33004 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33005 esac;
33006 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33007 '
33008 export as_echo_n_body
33009 as_echo_n='sh -c $as_echo_n_body as_echo'
33010 fi
33011 export as_echo_body
33012 as_echo='sh -c $as_echo_body as_echo'
33013fi
33014
33015# The user is always right.
33016if test "${PATH_SEPARATOR+set}" != set; then
33017 PATH_SEPARATOR=:
33018 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33019 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33020 PATH_SEPARATOR=';'
33021 }
33022fi
33023
cristy3ed852e2009-09-05 21:47:34 +000033024
33025# IFS
33026# We need space, tab and new line, in precisely that order. Quoting is
33027# there to prevent editors from complaining about space-tab.
33028# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33029# splitting by setting IFS to empty value.)
33030IFS=" "" $as_nl"
33031
33032# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000033033case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000033034 *[\\/]* ) as_myself=$0 ;;
33035 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33036for as_dir in $PATH
33037do
33038 IFS=$as_save_IFS
33039 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033040 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33041 done
cristy3ed852e2009-09-05 21:47:34 +000033042IFS=$as_save_IFS
33043
33044 ;;
33045esac
33046# We did not find ourselves, most probably we were run as `sh COMMAND'
33047# in which case we are not to be found in the path.
33048if test "x$as_myself" = x; then
33049 as_myself=$0
33050fi
33051if test ! -f "$as_myself"; then
33052 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000033053 exit 1
cristy3ed852e2009-09-05 21:47:34 +000033054fi
33055
cristy8b350f62009-11-15 23:12:43 +000033056# Unset variables that we do not need and which cause bugs (e.g. in
33057# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33058# suppresses any "Segmentation fault" message there. '((' could
33059# trigger a bug in pdksh 5.2.14.
33060for as_var in BASH_ENV ENV MAIL MAILPATH
33061do eval test x\${$as_var+set} = xset \
33062 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033063done
33064PS1='$ '
33065PS2='> '
33066PS4='+ '
33067
33068# NLS nuisances.
33069LC_ALL=C
33070export LC_ALL
33071LANGUAGE=C
33072export LANGUAGE
33073
cristy8b350f62009-11-15 23:12:43 +000033074# CDPATH.
33075(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33076
33077
cristyf6fcb5d2010-09-24 01:19:13 +000033078# as_fn_error ERROR [LINENO LOG_FD]
33079# ---------------------------------
cristy8b350f62009-11-15 23:12:43 +000033080# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33081# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristyf6fcb5d2010-09-24 01:19:13 +000033082# script with status $?, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000033083as_fn_error ()
33084{
cristyf6fcb5d2010-09-24 01:19:13 +000033085 as_status=$?; test $as_status -eq 0 && as_status=1
33086 if test "$3"; then
33087 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33088 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
cristy8b350f62009-11-15 23:12:43 +000033089 fi
cristyf6fcb5d2010-09-24 01:19:13 +000033090 $as_echo "$as_me: error: $1" >&2
cristy8b350f62009-11-15 23:12:43 +000033091 as_fn_exit $as_status
33092} # as_fn_error
33093
33094
33095# as_fn_set_status STATUS
33096# -----------------------
33097# Set $? to STATUS, without forking.
33098as_fn_set_status ()
33099{
33100 return $1
33101} # as_fn_set_status
33102
33103# as_fn_exit STATUS
33104# -----------------
33105# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33106as_fn_exit ()
33107{
33108 set +e
33109 as_fn_set_status $1
33110 exit $1
33111} # as_fn_exit
33112
33113# as_fn_unset VAR
33114# ---------------
33115# Portably unset VAR.
33116as_fn_unset ()
33117{
33118 { eval $1=; unset $1;}
33119}
33120as_unset=as_fn_unset
33121# as_fn_append VAR VALUE
33122# ----------------------
33123# Append the text in VALUE to the end of the definition contained in VAR. Take
33124# advantage of any shell optimizations that allow amortized linear growth over
33125# repeated appends, instead of the typical quadratic growth present in naive
33126# implementations.
33127if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33128 eval 'as_fn_append ()
33129 {
33130 eval $1+=\$2
33131 }'
33132else
33133 as_fn_append ()
33134 {
33135 eval $1=\$$1\$2
33136 }
33137fi # as_fn_append
33138
33139# as_fn_arith ARG...
33140# ------------------
33141# Perform arithmetic evaluation on the ARGs, and store the result in the
33142# global $as_val. Take advantage of shells that can avoid forks. The arguments
33143# must be portable across $(()) and expr.
33144if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33145 eval 'as_fn_arith ()
33146 {
33147 as_val=$(( $* ))
33148 }'
33149else
33150 as_fn_arith ()
33151 {
33152 as_val=`expr "$@" || test $? -eq 1`
33153 }
33154fi # as_fn_arith
33155
33156
cristy3ed852e2009-09-05 21:47:34 +000033157if expr a : '\(a\)' >/dev/null 2>&1 &&
33158 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33159 as_expr=expr
33160else
33161 as_expr=false
33162fi
33163
33164if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33165 as_basename=basename
33166else
33167 as_basename=false
33168fi
33169
cristy8b350f62009-11-15 23:12:43 +000033170if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33171 as_dirname=dirname
33172else
33173 as_dirname=false
33174fi
cristy3ed852e2009-09-05 21:47:34 +000033175
cristy3ed852e2009-09-05 21:47:34 +000033176as_me=`$as_basename -- "$0" ||
33177$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33178 X"$0" : 'X\(//\)$' \| \
33179 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33180$as_echo X/"$0" |
33181 sed '/^.*\/\([^/][^/]*\)\/*$/{
33182 s//\1/
33183 q
33184 }
33185 /^X\/\(\/\/\)$/{
33186 s//\1/
33187 q
33188 }
33189 /^X\/\(\/\).*/{
33190 s//\1/
33191 q
33192 }
33193 s/.*/./; q'`
33194
cristy8b350f62009-11-15 23:12:43 +000033195# Avoid depending upon Character Ranges.
33196as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33197as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33198as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33199as_cr_digits='0123456789'
33200as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000033201
33202ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000033203case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000033204-n*)
cristy8b350f62009-11-15 23:12:43 +000033205 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000033206 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000033207 xy) ECHO_C='\c';;
33208 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33209 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000033210 esac;;
33211*)
33212 ECHO_N='-n';;
33213esac
cristy3ed852e2009-09-05 21:47:34 +000033214
33215rm -f conf$$ conf$$.exe conf$$.file
33216if test -d conf$$.dir; then
33217 rm -f conf$$.dir/conf$$.file
33218else
33219 rm -f conf$$.dir
33220 mkdir conf$$.dir 2>/dev/null
33221fi
33222if (echo >conf$$.file) 2>/dev/null; then
33223 if ln -s conf$$.file conf$$ 2>/dev/null; then
33224 as_ln_s='ln -s'
33225 # ... but there are two gotchas:
33226 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33227 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33228 # In both cases, we have to default to `cp -p'.
33229 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33230 as_ln_s='cp -p'
33231 elif ln conf$$.file conf$$ 2>/dev/null; then
33232 as_ln_s=ln
33233 else
33234 as_ln_s='cp -p'
33235 fi
33236else
33237 as_ln_s='cp -p'
33238fi
33239rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33240rmdir conf$$.dir 2>/dev/null
33241
cristy8b350f62009-11-15 23:12:43 +000033242
33243# as_fn_mkdir_p
33244# -------------
33245# Create "$as_dir" as a directory, including parents if necessary.
33246as_fn_mkdir_p ()
33247{
33248
33249 case $as_dir in #(
33250 -*) as_dir=./$as_dir;;
33251 esac
33252 test -d "$as_dir" || eval $as_mkdir_p || {
33253 as_dirs=
33254 while :; do
33255 case $as_dir in #(
33256 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33257 *) as_qdir=$as_dir;;
33258 esac
33259 as_dirs="'$as_qdir' $as_dirs"
33260 as_dir=`$as_dirname -- "$as_dir" ||
33261$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33262 X"$as_dir" : 'X\(//\)[^/]' \| \
33263 X"$as_dir" : 'X\(//\)$' \| \
33264 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33265$as_echo X"$as_dir" |
33266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33267 s//\1/
33268 q
33269 }
33270 /^X\(\/\/\)[^/].*/{
33271 s//\1/
33272 q
33273 }
33274 /^X\(\/\/\)$/{
33275 s//\1/
33276 q
33277 }
33278 /^X\(\/\).*/{
33279 s//\1/
33280 q
33281 }
33282 s/.*/./; q'`
33283 test -d "$as_dir" && break
33284 done
33285 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristyf6fcb5d2010-09-24 01:19:13 +000033286 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000033287
33288
33289} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033290if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033291 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000033292else
33293 test -d ./-p && rmdir ./-p
33294 as_mkdir_p=false
33295fi
33296
33297if test -x / >/dev/null 2>&1; then
33298 as_test_x='test -x'
33299else
33300 if ls -dL / >/dev/null 2>&1; then
33301 as_ls_L_option=L
33302 else
33303 as_ls_L_option=
33304 fi
33305 as_test_x='
33306 eval sh -c '\''
33307 if test -d "$1"; then
33308 test -d "$1/.";
33309 else
cristy8b350f62009-11-15 23:12:43 +000033310 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000033311 -*)set "./$1";;
33312 esac;
cristy8b350f62009-11-15 23:12:43 +000033313 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000033314 ???[sx]*):;;*)false;;esac;fi
33315 '\'' sh
33316 '
33317fi
33318as_executable_p=$as_test_x
33319
33320# Sed expression to map a string onto a valid CPP name.
33321as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33322
33323# Sed expression to map a string onto a valid variable name.
33324as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33325
33326
33327exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000033328## ----------------------------------- ##
33329## Main body of $CONFIG_STATUS script. ##
33330## ----------------------------------- ##
33331_ASEOF
33332test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033333
cristy8b350f62009-11-15 23:12:43 +000033334cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33335# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000033336# report actual input values of CONFIG_FILES etc. instead of their
33337# values after options handling.
33338ac_log="
cristy56225732010-09-04 23:44:25 +000033339This file was extended by ImageMagick $as_me 6.6.4, which was
cristyf6fcb5d2010-09-24 01:19:13 +000033340generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000033341
33342 CONFIG_FILES = $CONFIG_FILES
33343 CONFIG_HEADERS = $CONFIG_HEADERS
33344 CONFIG_LINKS = $CONFIG_LINKS
33345 CONFIG_COMMANDS = $CONFIG_COMMANDS
33346 $ $0 $@
33347
33348on `(hostname || uname -n) 2>/dev/null | sed 1q`
33349"
33350
33351_ACEOF
33352
33353case $ac_config_files in *"
33354"*) set x $ac_config_files; shift; ac_config_files=$*;;
33355esac
33356
33357case $ac_config_headers in *"
33358"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33359esac
33360
33361
33362cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33363# Files that config.status was made for.
33364config_files="$ac_config_files"
33365config_headers="$ac_config_headers"
33366config_commands="$ac_config_commands"
33367
33368_ACEOF
33369
33370cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33371ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000033372\`$as_me' instantiates files and other configuration actions
33373from templates according to the current configuration. Unless the files
33374and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000033375
cristy8b350f62009-11-15 23:12:43 +000033376Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000033377
33378 -h, --help print this help, then exit
33379 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000033380 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000033381 -q, --quiet, --silent
33382 do not print progress messages
33383 -d, --debug don't remove temporary files
33384 --recheck update $as_me by reconfiguring in the same conditions
33385 --file=FILE[:TEMPLATE]
33386 instantiate the configuration file FILE
33387 --header=FILE[:TEMPLATE]
33388 instantiate the configuration header FILE
33389
33390Configuration files:
33391$config_files
33392
33393Configuration headers:
33394$config_headers
33395
33396Configuration commands:
33397$config_commands
33398
cristy8b350f62009-11-15 23:12:43 +000033399Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000033400
33401_ACEOF
33402cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000033403ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000033404ac_cs_version="\\
cristy56225732010-09-04 23:44:25 +000033405ImageMagick config.status 6.6.4
cristyf6fcb5d2010-09-24 01:19:13 +000033406configured by $0, generated by GNU Autoconf 2.65,
cristycd4c5312009-11-22 01:19:08 +000033407 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000033408
cristyf6fcb5d2010-09-24 01:19:13 +000033409Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033410This config.status script is free software; the Free Software Foundation
33411gives unlimited permission to copy, distribute and modify it."
33412
33413ac_pwd='$ac_pwd'
33414srcdir='$srcdir'
33415INSTALL='$INSTALL'
33416MKDIR_P='$MKDIR_P'
33417AWK='$AWK'
33418test -n "\$AWK" || AWK=awk
33419_ACEOF
33420
33421cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33422# The default lists apply if the user does not specify any file.
33423ac_need_defaults=:
33424while test $# != 0
33425do
33426 case $1 in
33427 --*=*)
33428 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33429 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33430 ac_shift=:
33431 ;;
33432 *)
33433 ac_option=$1
33434 ac_optarg=$2
33435 ac_shift=shift
33436 ;;
33437 esac
33438
33439 case $ac_option in
33440 # Handling of the options.
33441 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33442 ac_cs_recheck=: ;;
33443 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33444 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000033445 --config | --confi | --conf | --con | --co | --c )
33446 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000033447 --debug | --debu | --deb | --de | --d | -d )
33448 debug=: ;;
33449 --file | --fil | --fi | --f )
33450 $ac_shift
33451 case $ac_optarg in
33452 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33453 esac
cristy8b350f62009-11-15 23:12:43 +000033454 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033455 ac_need_defaults=false;;
33456 --header | --heade | --head | --hea )
33457 $ac_shift
33458 case $ac_optarg in
33459 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33460 esac
cristy8b350f62009-11-15 23:12:43 +000033461 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033462 ac_need_defaults=false;;
33463 --he | --h)
33464 # Conflict between --help and --header
cristyf6fcb5d2010-09-24 01:19:13 +000033465 as_fn_error "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033466Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000033467 --help | --hel | -h )
33468 $as_echo "$ac_cs_usage"; exit ;;
33469 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33470 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33471 ac_cs_silent=: ;;
33472
33473 # This is an error.
cristyf6fcb5d2010-09-24 01:19:13 +000033474 -*) as_fn_error "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033475Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000033476
cristy8b350f62009-11-15 23:12:43 +000033477 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000033478 ac_need_defaults=false ;;
33479
33480 esac
33481 shift
33482done
33483
33484ac_configure_extra_args=
33485
33486if $ac_cs_silent; then
33487 exec 6>/dev/null
33488 ac_configure_extra_args="$ac_configure_extra_args --silent"
33489fi
33490
33491_ACEOF
33492cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33493if \$ac_cs_recheck; then
33494 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33495 shift
33496 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33497 CONFIG_SHELL='$SHELL'
33498 export CONFIG_SHELL
33499 exec "\$@"
33500fi
33501
33502_ACEOF
33503cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33504exec 5>>config.log
33505{
33506 echo
33507 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33508## Running $as_me. ##
33509_ASBOX
33510 $as_echo "$ac_log"
33511} >&5
33512
33513_ACEOF
33514cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33515#
33516# INIT-COMMANDS
33517#
33518PACKAGE="$PACKAGE"
33519AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33520
33521
33522# The HP-UX ksh and POSIX shell print the target directory to stdout
33523# if CDPATH is set.
33524(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33525
33526sed_quote_subst='$sed_quote_subst'
33527double_quote_subst='$double_quote_subst'
33528delay_variable_subst='$delay_variable_subst'
cristyfd9dcd42010-08-08 18:07:02 +000033529SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33530Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33531GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33532EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33533FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33534SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33535ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33536LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33537macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33538macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33539AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
33540DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33541OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33542enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33543enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33544pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33545enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33546host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33547host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33548host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33549build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33550build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33551build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33552NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33553LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33554max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33555ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33556exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33557lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33558lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33559lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33560reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33561reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33562deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33563file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33564AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33565AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33566STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33567RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33568old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33569old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33570old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
33571lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
33572CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
33573CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
33574compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
33575GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
33576lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
33577lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33578lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33579lt_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"`'
33580objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33581MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33582lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33583lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33584lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33585lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33586lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33587need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33588DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33589NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33590LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33591OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
33592OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
33593libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
33594shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
33595extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33596archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
33597enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
33598export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
33599whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
33600compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
33601old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
33602old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33603archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
33604archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33605module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
33606module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33607with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
33608allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
33609no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
33610hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
33611hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
33612hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
33613hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
33614hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
33615hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
33616hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
33617hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33618inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33619link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33620fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
33621always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33622export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33623exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33624include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33625prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33626file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33627variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33628need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33629need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
33630version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
33631runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
33632shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
33633shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
33634libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
33635library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
33636soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
33637install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
33638postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33639postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33640finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
33641finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
33642hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
33643sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
33644sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
33645hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
33646enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
33647enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
33648enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
33649old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
33650striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
33651compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
33652predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
33653postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
33654predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
33655postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
33656compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
33657LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
33658reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
33659reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33660old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33661compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
33662GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
33663lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
33664lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
33665lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
33666lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
33667lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
33668archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
33669enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
33670export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33671whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33672compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
33673old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33674old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33675archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33676archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33677module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33678module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33679with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
33680allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33681no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33682hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33683hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
33684hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
33685hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
33686hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
33687hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
33688hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
33689hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
33690inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
33691link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
33692fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
33693always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
33694export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33695exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33696include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33697prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33698file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
33699hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
33700compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
33701predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33702postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33703predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
33704postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
33705compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000033706
33707LTCC='$LTCC'
33708LTCFLAGS='$LTCFLAGS'
33709compiler='$compiler_DEFAULT'
33710
cristyfd9dcd42010-08-08 18:07:02 +000033711# A function that is used when there is no print builtin or printf.
33712func_fallback_echo ()
33713{
33714 eval 'cat <<_LTECHO_EOF
33715\$1
33716_LTECHO_EOF'
33717}
33718
cristy3ed852e2009-09-05 21:47:34 +000033719# Quote evaled strings.
33720for var in SED \
33721GREP \
33722EGREP \
33723FGREP \
cristyfd9dcd42010-08-08 18:07:02 +000033724SHELL \
33725ECHO \
cristy3ed852e2009-09-05 21:47:34 +000033726LD \
cristyfd9dcd42010-08-08 18:07:02 +000033727AS \
33728DLLTOOL \
33729OBJDUMP \
cristy3ed852e2009-09-05 21:47:34 +000033730NM \
33731LN_S \
33732lt_SP2NL \
33733lt_NL2SP \
33734reload_flag \
33735deplibs_check_method \
33736file_magic_cmd \
33737AR \
33738AR_FLAGS \
33739STRIP \
33740RANLIB \
33741CC \
33742CFLAGS \
33743compiler \
33744lt_cv_sys_global_symbol_pipe \
33745lt_cv_sys_global_symbol_to_cdecl \
33746lt_cv_sys_global_symbol_to_c_name_address \
33747lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy3ed852e2009-09-05 21:47:34 +000033748lt_prog_compiler_no_builtin_flag \
33749lt_prog_compiler_wl \
33750lt_prog_compiler_pic \
33751lt_prog_compiler_static \
33752lt_cv_prog_compiler_c_o \
33753need_locks \
33754DSYMUTIL \
33755NMEDIT \
33756LIPO \
33757OTOOL \
33758OTOOL64 \
33759shrext_cmds \
33760export_dynamic_flag_spec \
33761whole_archive_flag_spec \
33762compiler_needs_object \
33763with_gnu_ld \
33764allow_undefined_flag \
33765no_undefined_flag \
33766hardcode_libdir_flag_spec \
33767hardcode_libdir_flag_spec_ld \
33768hardcode_libdir_separator \
33769fix_srcfile_path \
33770exclude_expsyms \
33771include_expsyms \
33772file_list_spec \
33773variables_saved_for_relink \
33774libname_spec \
33775library_names_spec \
33776soname_spec \
cristyfd9dcd42010-08-08 18:07:02 +000033777install_override_mode \
cristy3ed852e2009-09-05 21:47:34 +000033778finish_eval \
33779old_striplib \
33780striplib \
33781compiler_lib_search_dirs \
33782predep_objects \
33783postdep_objects \
33784predeps \
33785postdeps \
33786compiler_lib_search_path \
33787LD_CXX \
cristyfd9dcd42010-08-08 18:07:02 +000033788reload_flag_CXX \
cristy3ed852e2009-09-05 21:47:34 +000033789compiler_CXX \
33790lt_prog_compiler_no_builtin_flag_CXX \
33791lt_prog_compiler_wl_CXX \
33792lt_prog_compiler_pic_CXX \
33793lt_prog_compiler_static_CXX \
33794lt_cv_prog_compiler_c_o_CXX \
33795export_dynamic_flag_spec_CXX \
33796whole_archive_flag_spec_CXX \
33797compiler_needs_object_CXX \
33798with_gnu_ld_CXX \
33799allow_undefined_flag_CXX \
33800no_undefined_flag_CXX \
33801hardcode_libdir_flag_spec_CXX \
33802hardcode_libdir_flag_spec_ld_CXX \
33803hardcode_libdir_separator_CXX \
33804fix_srcfile_path_CXX \
33805exclude_expsyms_CXX \
33806include_expsyms_CXX \
33807file_list_spec_CXX \
33808compiler_lib_search_dirs_CXX \
33809predep_objects_CXX \
33810postdep_objects_CXX \
33811predeps_CXX \
33812postdeps_CXX \
33813compiler_lib_search_path_CXX; do
cristyfd9dcd42010-08-08 18:07:02 +000033814 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy3ed852e2009-09-05 21:47:34 +000033815 *[\\\\\\\`\\"\\\$]*)
cristyfd9dcd42010-08-08 18:07:02 +000033816 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033817 ;;
33818 *)
33819 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33820 ;;
33821 esac
33822done
33823
33824# Double-quote double-evaled strings.
33825for var in reload_cmds \
33826old_postinstall_cmds \
33827old_postuninstall_cmds \
33828old_archive_cmds \
33829extract_expsyms_cmds \
33830old_archive_from_new_cmds \
33831old_archive_from_expsyms_cmds \
33832archive_cmds \
33833archive_expsym_cmds \
33834module_cmds \
33835module_expsym_cmds \
33836export_symbols_cmds \
33837prelink_cmds \
33838postinstall_cmds \
33839postuninstall_cmds \
33840finish_cmds \
33841sys_lib_search_path_spec \
33842sys_lib_dlsearch_path_spec \
cristyfd9dcd42010-08-08 18:07:02 +000033843reload_cmds_CXX \
cristy3ed852e2009-09-05 21:47:34 +000033844old_archive_cmds_CXX \
33845old_archive_from_new_cmds_CXX \
33846old_archive_from_expsyms_cmds_CXX \
33847archive_cmds_CXX \
33848archive_expsym_cmds_CXX \
33849module_cmds_CXX \
33850module_expsym_cmds_CXX \
33851export_symbols_cmds_CXX \
33852prelink_cmds_CXX; do
cristyfd9dcd42010-08-08 18:07:02 +000033853 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy3ed852e2009-09-05 21:47:34 +000033854 *[\\\\\\\`\\"\\\$]*)
cristyfd9dcd42010-08-08 18:07:02 +000033855 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033856 ;;
33857 *)
33858 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33859 ;;
33860 esac
33861done
33862
cristy3ed852e2009-09-05 21:47:34 +000033863ac_aux_dir='$ac_aux_dir'
33864xsi_shell='$xsi_shell'
33865lt_shell_append='$lt_shell_append'
33866
33867# See if we are running on zsh, and set the options which allow our
33868# commands through without removal of \ escapes INIT.
33869if test -n "\${ZSH_VERSION+set}" ; then
33870 setopt NO_GLOB_SUBST
33871fi
33872
33873
33874 PACKAGE='$PACKAGE'
33875 VERSION='$VERSION'
33876 TIMESTAMP='$TIMESTAMP'
33877 RM='$RM'
33878 ofile='$ofile'
33879
33880
33881
33882
33883
33884
33885_ACEOF
33886
33887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33888
33889# Handling of arguments.
33890for ac_config_target in $ac_config_targets
33891do
33892 case $ac_config_target in
33893 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33894 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33895 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33896 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33897 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33898 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33899 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000033900 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000033901 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33902 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33903 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33904 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33905 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33906 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33907 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33908 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33909 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33910 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33911 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33912 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33913 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33914 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33915 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33916 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33917 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33918 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33919 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33920 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33921 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33922 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33923 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33924 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33925 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33926 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33927 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33928 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33929 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33930 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33931 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33932 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33933 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
33934 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33935 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33936 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33937 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33938 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33939 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33940 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33941 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33942 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33943
cristyf6fcb5d2010-09-24 01:19:13 +000033944 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033945 esac
33946done
33947
33948
33949# If the user did not use the arguments to specify the items to instantiate,
33950# then the envvar interface is used. Set only those that are not.
33951# We use the long form for the default assignment because of an extremely
33952# bizarre bug on SunOS 4.1.3.
33953if $ac_need_defaults; then
33954 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33955 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33956 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33957fi
33958
33959# Have a temporary directory for convenience. Make it in the build tree
33960# simply because there is no reason against having it here, and in addition,
33961# creating and moving files from /tmp can sometimes cause problems.
33962# Hook for its removal unless debugging.
33963# Note that there is a small window in which the directory will not be cleaned:
33964# after its creation but before its name has been assigned to `$tmp'.
33965$debug ||
33966{
33967 tmp=
33968 trap 'exit_status=$?
33969 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33970' 0
cristy8b350f62009-11-15 23:12:43 +000033971 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000033972}
33973# Create a (secure) tmp directory for tmp files.
33974
33975{
33976 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33977 test -n "$tmp" && test -d "$tmp"
33978} ||
33979{
33980 tmp=./conf$$-$RANDOM
33981 (umask 077 && mkdir "$tmp")
cristyf6fcb5d2010-09-24 01:19:13 +000033982} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033983
33984# Set up the scripts for CONFIG_FILES section.
33985# No need to generate them if there are no CONFIG_FILES.
33986# This happens for instance with `./config.status config.h'.
33987if test -n "$CONFIG_FILES"; then
33988
33989
cristy8b350f62009-11-15 23:12:43 +000033990ac_cr=`echo X | tr X '\015'`
33991# On cygwin, bash can eat \r inside `` if the user requested igncr.
33992# But we know of no other shell where ac_cr would be empty at this
33993# point, so we can use a bashism as a fallback.
33994if test "x$ac_cr" = x; then
33995 eval ac_cr=\$\'\\r\'
33996fi
cristy3ed852e2009-09-05 21:47:34 +000033997ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33998if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033999 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000034000else
34001 ac_cs_awk_cr=$ac_cr
34002fi
34003
34004echo 'BEGIN {' >"$tmp/subs1.awk" &&
34005_ACEOF
34006
34007
34008{
34009 echo "cat >conf$$subs.awk <<_ACEOF" &&
34010 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34011 echo "_ACEOF"
34012} >conf$$subs.sh ||
cristyf6fcb5d2010-09-24 01:19:13 +000034013 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
34014ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
cristy3ed852e2009-09-05 21:47:34 +000034015ac_delim='%!_!# '
34016for ac_last_try in false false false false false :; do
34017 . ./conf$$subs.sh ||
cristyf6fcb5d2010-09-24 01:19:13 +000034018 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034019
34020 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34021 if test $ac_delim_n = $ac_delim_num; then
34022 break
34023 elif $ac_last_try; then
cristyf6fcb5d2010-09-24 01:19:13 +000034024 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034025 else
34026 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34027 fi
34028done
34029rm -f conf$$subs.sh
34030
34031cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34032cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34033_ACEOF
34034sed -n '
34035h
34036s/^/S["/; s/!.*/"]=/
34037p
34038g
34039s/^[^!]*!//
34040:repl
34041t repl
34042s/'"$ac_delim"'$//
34043t delim
34044:nl
34045h
cristycd4c5312009-11-22 01:19:08 +000034046s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034047t more1
34048s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34049p
34050n
34051b repl
34052:more1
34053s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34054p
34055g
34056s/.\{148\}//
34057t nl
34058:delim
34059h
cristycd4c5312009-11-22 01:19:08 +000034060s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034061t more2
34062s/["\\]/\\&/g; s/^/"/; s/$/"/
34063p
34064b
34065:more2
34066s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34067p
34068g
34069s/.\{148\}//
34070t delim
34071' <conf$$subs.awk | sed '
34072/^[^""]/{
34073 N
34074 s/\n//
34075}
34076' >>$CONFIG_STATUS || ac_write_fail=1
34077rm -f conf$$subs.awk
34078cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34079_ACAWK
34080cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34081 for (key in S) S_is_set[key] = 1
34082 FS = ""
34083
34084}
34085{
34086 line = $ 0
34087 nfields = split(line, field, "@")
34088 substed = 0
34089 len = length(field[1])
34090 for (i = 2; i < nfields; i++) {
34091 key = field[i]
34092 keylen = length(key)
34093 if (S_is_set[key]) {
34094 value = S[key]
34095 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34096 len += length(value) + length(field[++i])
34097 substed = 1
34098 } else
34099 len += 1 + keylen
34100 }
34101
34102 print line
34103}
34104
34105_ACAWK
34106_ACEOF
34107cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34108if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34109 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34110else
34111 cat
34112fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristyf6fcb5d2010-09-24 01:19:13 +000034113 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034114_ACEOF
34115
cristyf6fcb5d2010-09-24 01:19:13 +000034116# VPATH may cause trouble with some makes, so we remove $(srcdir),
34117# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000034118# trailing colons and then remove the whole line if VPATH becomes empty
34119# (actually we leave an empty line to preserve line numbers).
34120if test "x$srcdir" = x.; then
cristyf6fcb5d2010-09-24 01:19:13 +000034121 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34122s/:*\$(srcdir):*/:/
34123s/:*\${srcdir}:*/:/
34124s/:*@srcdir@:*/:/
34125s/^\([^=]*=[ ]*\):*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034126s/:*$//
34127s/^[^=]*=[ ]*$//
34128}'
34129fi
34130
34131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34132fi # test -n "$CONFIG_FILES"
34133
34134# Set up the scripts for CONFIG_HEADERS section.
34135# No need to generate them if there are no CONFIG_HEADERS.
34136# This happens for instance with `./config.status Makefile'.
34137if test -n "$CONFIG_HEADERS"; then
34138cat >"$tmp/defines.awk" <<\_ACAWK ||
34139BEGIN {
34140_ACEOF
34141
34142# Transform confdefs.h into an awk script `defines.awk', embedded as
34143# here-document in config.status, that substitutes the proper values into
34144# config.h.in to produce config.h.
34145
34146# Create a delimiter string that does not exist in confdefs.h, to ease
34147# handling of long lines.
34148ac_delim='%!_!# '
34149for ac_last_try in false false :; do
34150 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34151 if test -z "$ac_t"; then
34152 break
34153 elif $ac_last_try; then
cristyf6fcb5d2010-09-24 01:19:13 +000034154 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034155 else
34156 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34157 fi
34158done
34159
34160# For the awk script, D is an array of macro values keyed by name,
34161# likewise P contains macro parameters if any. Preserve backslash
34162# newline sequences.
34163
34164ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34165sed -n '
34166s/.\{148\}/&'"$ac_delim"'/g
34167t rset
34168:rset
34169s/^[ ]*#[ ]*define[ ][ ]*/ /
34170t def
34171d
34172:def
34173s/\\$//
34174t bsnl
34175s/["\\]/\\&/g
34176s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34177D["\1"]=" \3"/p
34178s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34179d
34180:bsnl
34181s/["\\]/\\&/g
34182s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34183D["\1"]=" \3\\\\\\n"\\/p
34184t cont
34185s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34186t cont
34187d
34188:cont
34189n
34190s/.\{148\}/&'"$ac_delim"'/g
34191t clear
34192:clear
34193s/\\$//
34194t bsnlc
34195s/["\\]/\\&/g; s/^/"/; s/$/"/p
34196d
34197:bsnlc
34198s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34199b cont
34200' <confdefs.h | sed '
34201s/'"$ac_delim"'/"\\\
34202"/g' >>$CONFIG_STATUS || ac_write_fail=1
34203
34204cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34205 for (key in D) D_is_set[key] = 1
34206 FS = ""
34207}
34208/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34209 line = \$ 0
34210 split(line, arg, " ")
34211 if (arg[1] == "#") {
34212 defundef = arg[2]
34213 mac1 = arg[3]
34214 } else {
34215 defundef = substr(arg[1], 2)
34216 mac1 = arg[2]
34217 }
34218 split(mac1, mac2, "(") #)
34219 macro = mac2[1]
34220 prefix = substr(line, 1, index(line, defundef) - 1)
34221 if (D_is_set[macro]) {
34222 # Preserve the white space surrounding the "#".
34223 print prefix "define", macro P[macro] D[macro]
34224 next
34225 } else {
34226 # Replace #undef with comments. This is necessary, for example,
34227 # in the case of _POSIX_SOURCE, which is predefined and required
34228 # on some systems where configure will not decide to define it.
34229 if (defundef == "undef") {
34230 print "/*", prefix defundef, macro, "*/"
34231 next
34232 }
34233 }
34234}
34235{ print }
34236_ACAWK
34237_ACEOF
34238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristyf6fcb5d2010-09-24 01:19:13 +000034239 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034240fi # test -n "$CONFIG_HEADERS"
34241
34242
34243eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34244shift
34245for ac_tag
34246do
34247 case $ac_tag in
34248 :[FHLC]) ac_mode=$ac_tag; continue;;
34249 esac
34250 case $ac_mode$ac_tag in
34251 :[FHL]*:*);;
cristyf6fcb5d2010-09-24 01:19:13 +000034252 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034253 :[FH]-) ac_tag=-:-;;
34254 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34255 esac
34256 ac_save_IFS=$IFS
34257 IFS=:
34258 set x $ac_tag
34259 IFS=$ac_save_IFS
34260 shift
34261 ac_file=$1
34262 shift
34263
34264 case $ac_mode in
34265 :L) ac_source=$1;;
34266 :[FH])
34267 ac_file_inputs=
34268 for ac_f
34269 do
34270 case $ac_f in
34271 -) ac_f="$tmp/stdin";;
34272 *) # Look for the file first in the build tree, then in the source tree
34273 # (if the path is not absolute). The absolute path cannot be DOS-style,
34274 # because $ac_f cannot contain `:'.
34275 test -f "$ac_f" ||
34276 case $ac_f in
34277 [\\/$]*) false;;
34278 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34279 esac ||
cristyf6fcb5d2010-09-24 01:19:13 +000034280 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034281 esac
34282 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000034283 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000034284 done
34285
34286 # Let's still pretend it is `configure' which instantiates (i.e., don't
34287 # use $as_me), people would be surprised to read:
34288 # /* config.h. Generated by config.status. */
34289 configure_input='Generated from '`
34290 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34291 `' by configure.'
34292 if test x"$ac_file" != x-; then
34293 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000034294 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034295$as_echo "$as_me: creating $ac_file" >&6;}
34296 fi
34297 # Neutralize special characters interpreted by sed in replacement strings.
34298 case $configure_input in #(
34299 *\&* | *\|* | *\\* )
34300 ac_sed_conf_input=`$as_echo "$configure_input" |
34301 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34302 *) ac_sed_conf_input=$configure_input;;
34303 esac
34304
34305 case $ac_tag in
34306 *:-:* | *:-) cat >"$tmp/stdin" \
cristyf6fcb5d2010-09-24 01:19:13 +000034307 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000034308 esac
34309 ;;
34310 esac
34311
34312 ac_dir=`$as_dirname -- "$ac_file" ||
34313$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34314 X"$ac_file" : 'X\(//\)[^/]' \| \
34315 X"$ac_file" : 'X\(//\)$' \| \
34316 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34317$as_echo X"$ac_file" |
34318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34319 s//\1/
34320 q
34321 }
34322 /^X\(\/\/\)[^/].*/{
34323 s//\1/
34324 q
34325 }
34326 /^X\(\/\/\)$/{
34327 s//\1/
34328 q
34329 }
34330 /^X\(\/\).*/{
34331 s//\1/
34332 q
34333 }
34334 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034335 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034336 ac_builddir=.
34337
34338case "$ac_dir" in
34339.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34340*)
34341 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34342 # A ".." for each directory in $ac_dir_suffix.
34343 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34344 case $ac_top_builddir_sub in
34345 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34346 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34347 esac ;;
34348esac
34349ac_abs_top_builddir=$ac_pwd
34350ac_abs_builddir=$ac_pwd$ac_dir_suffix
34351# for backward compatibility:
34352ac_top_builddir=$ac_top_build_prefix
34353
34354case $srcdir in
34355 .) # We are building in place.
34356 ac_srcdir=.
34357 ac_top_srcdir=$ac_top_builddir_sub
34358 ac_abs_top_srcdir=$ac_pwd ;;
34359 [\\/]* | ?:[\\/]* ) # Absolute name.
34360 ac_srcdir=$srcdir$ac_dir_suffix;
34361 ac_top_srcdir=$srcdir
34362 ac_abs_top_srcdir=$srcdir ;;
34363 *) # Relative name.
34364 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34365 ac_top_srcdir=$ac_top_build_prefix$srcdir
34366 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34367esac
34368ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34369
34370
34371 case $ac_mode in
34372 :F)
34373 #
34374 # CONFIG_FILE
34375 #
34376
34377 case $INSTALL in
34378 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34379 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34380 esac
34381 ac_MKDIR_P=$MKDIR_P
34382 case $MKDIR_P in
34383 [\\/$]* | ?:[\\/]* ) ;;
34384 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34385 esac
34386_ACEOF
34387
34388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34389# If the template does not know about datarootdir, expand it.
34390# FIXME: This hack should be removed a few years after 2.60.
34391ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000034392ac_sed_dataroot='
34393/datarootdir/ {
34394 p
34395 q
34396}
34397/@datadir@/p
34398/@docdir@/p
34399/@infodir@/p
34400/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000034401/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000034402case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34403*datarootdir*) ac_datarootdir_seen=yes;;
34404*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000034405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000034406$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34407_ACEOF
34408cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34409 ac_datarootdir_hack='
34410 s&@datadir@&$datadir&g
34411 s&@docdir@&$docdir&g
34412 s&@infodir@&$infodir&g
34413 s&@localedir@&$localedir&g
34414 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000034415 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000034416esac
34417_ACEOF
34418
34419# Neutralize VPATH when `$srcdir' = `.'.
34420# Shell code in configure.ac might set extrasub.
34421# FIXME: do we really want to maintain this feature?
34422cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34423ac_sed_extra="$ac_vpsub
34424$extrasub
34425_ACEOF
34426cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34427:t
34428/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34429s|@configure_input@|$ac_sed_conf_input|;t t
34430s&@top_builddir@&$ac_top_builddir_sub&;t t
34431s&@top_build_prefix@&$ac_top_build_prefix&;t t
34432s&@srcdir@&$ac_srcdir&;t t
34433s&@abs_srcdir@&$ac_abs_srcdir&;t t
34434s&@top_srcdir@&$ac_top_srcdir&;t t
34435s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34436s&@builddir@&$ac_builddir&;t t
34437s&@abs_builddir@&$ac_abs_builddir&;t t
34438s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34439s&@INSTALL@&$ac_INSTALL&;t t
34440s&@MKDIR_P@&$ac_MKDIR_P&;t t
34441$ac_datarootdir_hack
34442"
34443eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristyf6fcb5d2010-09-24 01:19:13 +000034444 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034445
34446test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34447 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34448 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000034449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristyf6fcb5d2010-09-24 01:19:13 +000034450which seems to be undefined. Please make sure it is defined." >&5
cristy3ed852e2009-09-05 21:47:34 +000034451$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristyf6fcb5d2010-09-24 01:19:13 +000034452which seems to be undefined. Please make sure it is defined." >&2;}
cristy3ed852e2009-09-05 21:47:34 +000034453
34454 rm -f "$tmp/stdin"
34455 case $ac_file in
34456 -) cat "$tmp/out" && rm -f "$tmp/out";;
34457 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34458 esac \
cristyf6fcb5d2010-09-24 01:19:13 +000034459 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034460 ;;
34461 :H)
34462 #
34463 # CONFIG_HEADER
34464 #
34465 if test x"$ac_file" != x-; then
34466 {
34467 $as_echo "/* $configure_input */" \
34468 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34469 } >"$tmp/config.h" \
cristyf6fcb5d2010-09-24 01:19:13 +000034470 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034471 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000034472 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034473$as_echo "$as_me: $ac_file is unchanged" >&6;}
34474 else
34475 rm -f "$ac_file"
34476 mv "$tmp/config.h" "$ac_file" \
cristyf6fcb5d2010-09-24 01:19:13 +000034477 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034478 fi
34479 else
34480 $as_echo "/* $configure_input */" \
34481 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristyf6fcb5d2010-09-24 01:19:13 +000034482 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034483 fi
34484# Compute "$ac_file"'s index in $config_headers.
34485_am_arg="$ac_file"
34486_am_stamp_count=1
34487for _am_header in $config_headers :; do
34488 case $_am_header in
34489 $_am_arg | $_am_arg:* )
34490 break ;;
34491 * )
34492 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34493 esac
34494done
34495echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34496$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34497 X"$_am_arg" : 'X\(//\)[^/]' \| \
34498 X"$_am_arg" : 'X\(//\)$' \| \
34499 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34500$as_echo X"$_am_arg" |
34501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34502 s//\1/
34503 q
34504 }
34505 /^X\(\/\/\)[^/].*/{
34506 s//\1/
34507 q
34508 }
34509 /^X\(\/\/\)$/{
34510 s//\1/
34511 q
34512 }
34513 /^X\(\/\).*/{
34514 s//\1/
34515 q
34516 }
34517 s/.*/./; q'`/stamp-h$_am_stamp_count
34518 ;;
34519
cristy8b350f62009-11-15 23:12:43 +000034520 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000034521$as_echo "$as_me: executing $ac_file commands" >&6;}
34522 ;;
34523 esac
34524
34525
34526 case $ac_file$ac_mode in
34527 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34528ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34529ac_prefix_conf_PKG=`echo MagickCore`
34530ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34531ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34532ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34533if test ".$ac_prefix_conf_INP" = "."; then
34534 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34535 case "$ac_file" in
34536 *.h) ac_prefix_conf_INP=$ac_file ;;
34537 *)
34538 esac
34539 test ".$ac_prefix_conf_INP" != "." && break
34540 done
34541fi
34542if test ".$ac_prefix_conf_INP" = "."; then
34543 case "$ac_prefix_conf_OUT" in
34544 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34545 ;;
34546 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34547 ;;
34548 *) ac_prefix_conf_INP=config.h
34549 ;;
34550 esac
34551fi
34552if test -z "$ac_prefix_conf_PKG" ; then
cristyf6fcb5d2010-09-24 01:19:13 +000034553 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034554else
34555 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34556 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34557 fi fi
cristy8b350f62009-11-15 23:12:43 +000034558 { $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 +000034559$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34560 if test -f $ac_prefix_conf_INP ; then
34561 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34562 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034563 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34564 echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034565 echo "#endif/" >>conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034566 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34567 echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034568 echo "#endif/" >> conftest.prefix
34569 # now executing _script on _DEF input to create _OUT output file
34570 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34571 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34572 echo ' ' >>$tmp/pconfig.h
34573 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34574
34575 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34576 echo ' ' >>$tmp/pconfig.h
34577 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34578 echo "#endif" >>$tmp/pconfig.h
34579 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034580 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034581$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34582 else
34583 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34584$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34585 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34586 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34587 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34588$as_echo X"$ac_prefix_conf_OUT" |
34589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34590 s//\1/
34591 q
34592 }
34593 /^X\(\/\/\)[^/].*/{
34594 s//\1/
34595 q
34596 }
34597 /^X\(\/\/\)$/{
34598 s//\1/
34599 q
34600 }
34601 /^X\(\/\).*/{
34602 s//\1/
34603 q
34604 }
34605 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034606 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034607 rm -f "$ac_prefix_conf_OUT"
34608 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34609 fi
34610 cp conftest.prefix _configs.sed
34611 else
cristyf6fcb5d2010-09-24 01:19:13 +000034612 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 +000034613 fi
34614 rm -f conftest.*
34615fi
34616 ;;
34617 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34618 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34619 # are listed without --file. Let's play safe and only enable the eval
34620 # if we detect the quoting.
34621 case $CONFIG_FILES in
34622 *\'*) eval set x "$CONFIG_FILES" ;;
34623 *) set x $CONFIG_FILES ;;
34624 esac
34625 shift
34626 for mf
34627 do
34628 # Strip MF so we end up with the name of the file.
34629 mf=`echo "$mf" | sed -e 's/:.*$//'`
34630 # Check whether this is an Automake generated Makefile or not.
34631 # We used to match only the files named `Makefile.in', but
34632 # some people rename them; so instead we look at the file content.
34633 # Grep'ing the first line is not enough: some people post-process
34634 # each Makefile.in and add a new line on top of each file to say so.
34635 # Grep'ing the whole file is not good either: AIX grep has a line
34636 # limit of 2048, but all sed's we know have understand at least 4000.
34637 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34638 dirpart=`$as_dirname -- "$mf" ||
34639$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34640 X"$mf" : 'X\(//\)[^/]' \| \
34641 X"$mf" : 'X\(//\)$' \| \
34642 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34643$as_echo X"$mf" |
34644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34645 s//\1/
34646 q
34647 }
34648 /^X\(\/\/\)[^/].*/{
34649 s//\1/
34650 q
34651 }
34652 /^X\(\/\/\)$/{
34653 s//\1/
34654 q
34655 }
34656 /^X\(\/\).*/{
34657 s//\1/
34658 q
34659 }
34660 s/.*/./; q'`
34661 else
34662 continue
34663 fi
34664 # Extract the definition of DEPDIR, am__include, and am__quote
34665 # from the Makefile without running `make'.
34666 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34667 test -z "$DEPDIR" && continue
34668 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34669 test -z "am__include" && continue
34670 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34671 # When using ansi2knr, U may be empty or an underscore; expand it
34672 U=`sed -n 's/^U = //p' < "$mf"`
34673 # Find all dependency output files, they are included files with
34674 # $(DEPDIR) in their names. We invoke sed twice because it is the
34675 # simplest approach to changing $(DEPDIR) to its actual value in the
34676 # expansion.
34677 for file in `sed -n "
34678 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34679 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34680 # Make sure the directory exists.
34681 test -f "$dirpart/$file" && continue
34682 fdir=`$as_dirname -- "$file" ||
34683$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34684 X"$file" : 'X\(//\)[^/]' \| \
34685 X"$file" : 'X\(//\)$' \| \
34686 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34687$as_echo X"$file" |
34688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34689 s//\1/
34690 q
34691 }
34692 /^X\(\/\/\)[^/].*/{
34693 s//\1/
34694 q
34695 }
34696 /^X\(\/\/\)$/{
34697 s//\1/
34698 q
34699 }
34700 /^X\(\/\).*/{
34701 s//\1/
34702 q
34703 }
34704 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034705 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034706 # echo "creating $dirpart/$file"
34707 echo '# dummy' > "$dirpart/$file"
34708 done
34709 done
34710}
34711 ;;
34712 "libtool":C)
34713
34714 # See if we are running on zsh, and set the options which allow our
34715 # commands through without removal of \ escapes.
34716 if test -n "${ZSH_VERSION+set}" ; then
34717 setopt NO_GLOB_SUBST
34718 fi
34719
34720 cfgfile="${ofile}T"
34721 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34722 $RM "$cfgfile"
34723
34724 cat <<_LT_EOF >> "$cfgfile"
34725#! $SHELL
34726
34727# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34728# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34729# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34730# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34731#
34732# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristyfd9dcd42010-08-08 18:07:02 +000034733# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
34734# Inc.
cristy3ed852e2009-09-05 21:47:34 +000034735# Written by Gordon Matzigkeit, 1996
34736#
34737# This file is part of GNU Libtool.
34738#
34739# GNU Libtool is free software; you can redistribute it and/or
34740# modify it under the terms of the GNU General Public License as
34741# published by the Free Software Foundation; either version 2 of
34742# the License, or (at your option) any later version.
34743#
34744# As a special exception to the GNU General Public License,
34745# if you distribute this file as part of a program or library that
34746# is built using GNU Libtool, you may include this file under the
34747# same distribution terms that you use for the rest of that program.
34748#
34749# GNU Libtool is distributed in the hope that it will be useful,
34750# but WITHOUT ANY WARRANTY; without even the implied warranty of
34751# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34752# GNU General Public License for more details.
34753#
34754# You should have received a copy of the GNU General Public License
34755# along with GNU Libtool; see the file COPYING. If not, a copy
34756# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34757# obtained by writing to the Free Software Foundation, Inc.,
34758# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34759
34760
34761# The names of the tagged configurations supported by this script.
34762available_tags="CXX "
34763
34764# ### BEGIN LIBTOOL CONFIG
34765
34766# A sed program that does not truncate output.
34767SED=$lt_SED
34768
34769# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34770Xsed="\$SED -e 1s/^X//"
34771
34772# A grep program that handles long lines.
34773GREP=$lt_GREP
34774
34775# An ERE matcher.
34776EGREP=$lt_EGREP
34777
34778# A literal string matcher.
34779FGREP=$lt_FGREP
34780
cristyfd9dcd42010-08-08 18:07:02 +000034781# Shell to use when invoking shell scripts.
34782SHELL=$lt_SHELL
34783
34784# An echo program that protects backslashes.
34785ECHO=$lt_ECHO
34786
cristy3ed852e2009-09-05 21:47:34 +000034787# Which release of libtool.m4 was used?
34788macro_version=$macro_version
34789macro_revision=$macro_revision
34790
34791# Assembler program.
cristyfd9dcd42010-08-08 18:07:02 +000034792AS=$lt_AS
cristy3ed852e2009-09-05 21:47:34 +000034793
34794# DLL creation program.
cristyfd9dcd42010-08-08 18:07:02 +000034795DLLTOOL=$lt_DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000034796
34797# Object dumper program.
cristyfd9dcd42010-08-08 18:07:02 +000034798OBJDUMP=$lt_OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000034799
34800# Whether or not to build shared libraries.
34801build_libtool_libs=$enable_shared
34802
34803# Whether or not to build static libraries.
34804build_old_libs=$enable_static
34805
34806# What type of objects to build.
34807pic_mode=$pic_mode
34808
34809# Whether or not to optimize for fast installation.
34810fast_install=$enable_fast_install
34811
34812# The host system.
34813host_alias=$host_alias
34814host=$host
34815host_os=$host_os
34816
34817# The build system.
34818build_alias=$build_alias
34819build=$build
34820build_os=$build_os
34821
34822# A BSD- or MS-compatible name lister.
34823NM=$lt_NM
34824
34825# Whether we need soft or hard links.
34826LN_S=$lt_LN_S
34827
34828# What is the maximum length of a command?
34829max_cmd_len=$max_cmd_len
34830
34831# Object file suffix (normally "o").
34832objext=$ac_objext
34833
34834# Executable file suffix (normally "").
34835exeext=$exeext
34836
34837# whether the shell understands "unset".
34838lt_unset=$lt_unset
34839
34840# turn spaces into newlines.
34841SP2NL=$lt_lt_SP2NL
34842
34843# turn newlines into spaces.
34844NL2SP=$lt_lt_NL2SP
34845
cristy3ed852e2009-09-05 21:47:34 +000034846# Method to check whether dependent libraries are shared objects.
34847deplibs_check_method=$lt_deplibs_check_method
34848
34849# Command to use when deplibs_check_method == "file_magic".
34850file_magic_cmd=$lt_file_magic_cmd
34851
34852# The archiver.
34853AR=$lt_AR
34854AR_FLAGS=$lt_AR_FLAGS
34855
34856# A symbol stripping program.
34857STRIP=$lt_STRIP
34858
34859# Commands used to install an old-style archive.
34860RANLIB=$lt_RANLIB
34861old_postinstall_cmds=$lt_old_postinstall_cmds
34862old_postuninstall_cmds=$lt_old_postuninstall_cmds
34863
cristyfd9dcd42010-08-08 18:07:02 +000034864# Whether to use a lock for old archive extraction.
34865lock_old_archive_extraction=$lock_old_archive_extraction
34866
cristy3ed852e2009-09-05 21:47:34 +000034867# A C compiler.
34868LTCC=$lt_CC
34869
34870# LTCC compiler flags.
34871LTCFLAGS=$lt_CFLAGS
34872
34873# Take the output of nm and produce a listing of raw symbols and C names.
34874global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34875
34876# Transform the output of nm in a proper C declaration.
34877global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34878
34879# Transform the output of nm in a C name address pair.
34880global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34881
34882# Transform the output of nm in a C name address pair when lib prefix is needed.
34883global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34884
34885# The name of the directory that contains temporary libtool files.
34886objdir=$objdir
34887
cristy3ed852e2009-09-05 21:47:34 +000034888# Used to examine libraries when file_magic_cmd begins with "file".
34889MAGIC_CMD=$MAGIC_CMD
34890
34891# Must we lock files when doing compilation?
34892need_locks=$lt_need_locks
34893
34894# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34895DSYMUTIL=$lt_DSYMUTIL
34896
34897# Tool to change global to local symbols on Mac OS X.
34898NMEDIT=$lt_NMEDIT
34899
34900# Tool to manipulate fat objects and archives on Mac OS X.
34901LIPO=$lt_LIPO
34902
34903# ldd/readelf like tool for Mach-O binaries on Mac OS X.
34904OTOOL=$lt_OTOOL
34905
34906# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34907OTOOL64=$lt_OTOOL64
34908
34909# Old archive suffix (normally "a").
34910libext=$libext
34911
34912# Shared library suffix (normally ".so").
34913shrext_cmds=$lt_shrext_cmds
34914
34915# The commands to extract the exported symbol list from a shared archive.
34916extract_expsyms_cmds=$lt_extract_expsyms_cmds
34917
34918# Variables whose values should be saved in libtool wrapper scripts and
34919# restored at link time.
34920variables_saved_for_relink=$lt_variables_saved_for_relink
34921
34922# Do we need the "lib" prefix for modules?
34923need_lib_prefix=$need_lib_prefix
34924
34925# Do we need a version for libraries?
34926need_version=$need_version
34927
34928# Library versioning type.
34929version_type=$version_type
34930
34931# Shared library runtime path variable.
34932runpath_var=$runpath_var
34933
34934# Shared library path variable.
34935shlibpath_var=$shlibpath_var
34936
34937# Is shlibpath searched before the hard-coded library search path?
34938shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34939
34940# Format of library name prefix.
34941libname_spec=$lt_libname_spec
34942
34943# List of archive names. First name is the real one, the rest are links.
34944# The last name is the one that the linker finds with -lNAME
34945library_names_spec=$lt_library_names_spec
34946
34947# The coded name of the library, if different from the real name.
34948soname_spec=$lt_soname_spec
34949
cristyfd9dcd42010-08-08 18:07:02 +000034950# Permission mode override for installation of shared libraries.
34951install_override_mode=$lt_install_override_mode
34952
cristy3ed852e2009-09-05 21:47:34 +000034953# Command to use after installation of a shared archive.
34954postinstall_cmds=$lt_postinstall_cmds
34955
34956# Command to use after uninstallation of a shared archive.
34957postuninstall_cmds=$lt_postuninstall_cmds
34958
34959# Commands used to finish a libtool library installation in a directory.
34960finish_cmds=$lt_finish_cmds
34961
34962# As "finish_cmds", except a single script fragment to be evaled but
34963# not shown.
34964finish_eval=$lt_finish_eval
34965
34966# Whether we should hardcode library paths into libraries.
34967hardcode_into_libs=$hardcode_into_libs
34968
34969# Compile-time system search path for libraries.
34970sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34971
34972# Run-time system search path for libraries.
34973sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34974
34975# Whether dlopen is supported.
34976dlopen_support=$enable_dlopen
34977
34978# Whether dlopen of programs is supported.
34979dlopen_self=$enable_dlopen_self
34980
34981# Whether dlopen of statically linked programs is supported.
34982dlopen_self_static=$enable_dlopen_self_static
34983
34984# Commands to strip libraries.
34985old_striplib=$lt_old_striplib
34986striplib=$lt_striplib
34987
34988
34989# The linker used to build libraries.
34990LD=$lt_LD
34991
cristyfd9dcd42010-08-08 18:07:02 +000034992# How to create reloadable object files.
34993reload_flag=$lt_reload_flag
34994reload_cmds=$lt_reload_cmds
34995
cristy3ed852e2009-09-05 21:47:34 +000034996# Commands used to build an old-style archive.
34997old_archive_cmds=$lt_old_archive_cmds
34998
34999# A language specific compiler.
35000CC=$lt_compiler
35001
35002# Is the compiler the GNU compiler?
35003with_gcc=$GCC
35004
35005# Compiler flag to turn off builtin functions.
35006no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35007
35008# How to pass a linker flag through the compiler.
35009wl=$lt_lt_prog_compiler_wl
35010
35011# Additional compiler flags for building library objects.
35012pic_flag=$lt_lt_prog_compiler_pic
35013
35014# Compiler flag to prevent dynamic linking.
35015link_static_flag=$lt_lt_prog_compiler_static
35016
35017# Does compiler simultaneously support -c and -o options?
35018compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35019
35020# Whether or not to add -lc for building shared libraries.
35021build_libtool_need_lc=$archive_cmds_need_lc
35022
35023# Whether or not to disallow shared libs when runtime libs are static.
35024allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35025
35026# Compiler flag to allow reflexive dlopens.
35027export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35028
35029# Compiler flag to generate shared objects directly from archives.
35030whole_archive_flag_spec=$lt_whole_archive_flag_spec
35031
35032# Whether the compiler copes with passing no objects directly.
35033compiler_needs_object=$lt_compiler_needs_object
35034
35035# Create an old-style archive from a shared archive.
35036old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35037
35038# Create a temporary old-style archive to link instead of a shared archive.
35039old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35040
35041# Commands used to build a shared archive.
35042archive_cmds=$lt_archive_cmds
35043archive_expsym_cmds=$lt_archive_expsym_cmds
35044
35045# Commands used to build a loadable module if different from building
35046# a shared archive.
35047module_cmds=$lt_module_cmds
35048module_expsym_cmds=$lt_module_expsym_cmds
35049
35050# Whether we are building with GNU ld or not.
35051with_gnu_ld=$lt_with_gnu_ld
35052
35053# Flag that allows shared libraries with undefined symbols to be built.
35054allow_undefined_flag=$lt_allow_undefined_flag
35055
35056# Flag that enforces no undefined symbols.
35057no_undefined_flag=$lt_no_undefined_flag
35058
35059# Flag to hardcode \$libdir into a binary during linking.
35060# This must work even if \$libdir does not exist
35061hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35062
35063# If ld is used when linking, flag to hardcode \$libdir into a binary
35064# during linking. This must work even if \$libdir does not exist.
35065hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35066
35067# Whether we need a single "-rpath" flag with a separated argument.
35068hardcode_libdir_separator=$lt_hardcode_libdir_separator
35069
35070# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35071# DIR into the resulting binary.
35072hardcode_direct=$hardcode_direct
35073
35074# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35075# DIR into the resulting binary and the resulting library dependency is
35076# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35077# library is relocated.
35078hardcode_direct_absolute=$hardcode_direct_absolute
35079
35080# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35081# into the resulting binary.
35082hardcode_minus_L=$hardcode_minus_L
35083
35084# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35085# into the resulting binary.
35086hardcode_shlibpath_var=$hardcode_shlibpath_var
35087
35088# Set to "yes" if building a shared library automatically hardcodes DIR
35089# into the library and all subsequent libraries and executables linked
35090# against it.
35091hardcode_automatic=$hardcode_automatic
35092
35093# Set to yes if linker adds runtime paths of dependent libraries
35094# to runtime path list.
35095inherit_rpath=$inherit_rpath
35096
35097# Whether libtool must link a program against all its dependency libraries.
35098link_all_deplibs=$link_all_deplibs
35099
35100# Fix the shell variable \$srcfile for the compiler.
35101fix_srcfile_path=$lt_fix_srcfile_path
35102
35103# Set to "yes" if exported symbols are required.
35104always_export_symbols=$always_export_symbols
35105
35106# The commands to list exported symbols.
35107export_symbols_cmds=$lt_export_symbols_cmds
35108
35109# Symbols that should not be listed in the preloaded symbols.
35110exclude_expsyms=$lt_exclude_expsyms
35111
35112# Symbols that must always be exported.
35113include_expsyms=$lt_include_expsyms
35114
35115# Commands necessary for linking programs (against libraries) with templates.
35116prelink_cmds=$lt_prelink_cmds
35117
35118# Specify filename containing input files.
35119file_list_spec=$lt_file_list_spec
35120
35121# How to hardcode a shared library path into an executable.
35122hardcode_action=$hardcode_action
35123
35124# The directories searched by this compiler when creating a shared library.
35125compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35126
35127# Dependencies to place before and after the objects being linked to
35128# create a shared library.
35129predep_objects=$lt_predep_objects
35130postdep_objects=$lt_postdep_objects
35131predeps=$lt_predeps
35132postdeps=$lt_postdeps
35133
35134# The library search path used internally by the compiler when linking
35135# a shared library.
35136compiler_lib_search_path=$lt_compiler_lib_search_path
35137
35138# ### END LIBTOOL CONFIG
35139
35140_LT_EOF
35141
35142 case $host_os in
35143 aix3*)
35144 cat <<\_LT_EOF >> "$cfgfile"
35145# AIX sometimes has problems with the GCC collect2 program. For some
35146# reason, if we set the COLLECT_NAMES environment variable, the problems
35147# vanish in a puff of smoke.
35148if test "X${COLLECT_NAMES+set}" != Xset; then
35149 COLLECT_NAMES=
35150 export COLLECT_NAMES
35151fi
35152_LT_EOF
35153 ;;
35154 esac
35155
35156
35157ltmain="$ac_aux_dir/ltmain.sh"
35158
35159
35160 # We use sed instead of cat because bash on DJGPP gets confused if
35161 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35162 # text mode, it properly converts lines to CR/LF. This bash problem
35163 # is reportedly fixed, but why not run on old versions too?
35164 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35165 || (rm -f "$cfgfile"; exit 1)
35166
35167 case $xsi_shell in
35168 yes)
35169 cat << \_LT_EOF >> "$cfgfile"
35170
35171# func_dirname file append nondir_replacement
35172# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35173# otherwise set result to NONDIR_REPLACEMENT.
35174func_dirname ()
35175{
35176 case ${1} in
35177 */*) func_dirname_result="${1%/*}${2}" ;;
35178 * ) func_dirname_result="${3}" ;;
35179 esac
35180}
35181
35182# func_basename file
35183func_basename ()
35184{
35185 func_basename_result="${1##*/}"
35186}
35187
35188# func_dirname_and_basename file append nondir_replacement
35189# perform func_basename and func_dirname in a single function
35190# call:
35191# dirname: Compute the dirname of FILE. If nonempty,
35192# add APPEND to the result, otherwise set result
35193# to NONDIR_REPLACEMENT.
35194# value returned in "$func_dirname_result"
35195# basename: Compute filename of FILE.
35196# value retuned in "$func_basename_result"
35197# Implementation must be kept synchronized with func_dirname
35198# and func_basename. For efficiency, we do not delegate to
35199# those functions but instead duplicate the functionality here.
35200func_dirname_and_basename ()
35201{
35202 case ${1} in
35203 */*) func_dirname_result="${1%/*}${2}" ;;
35204 * ) func_dirname_result="${3}" ;;
35205 esac
35206 func_basename_result="${1##*/}"
35207}
35208
35209# func_stripname prefix suffix name
35210# strip PREFIX and SUFFIX off of NAME.
35211# PREFIX and SUFFIX must not contain globbing or regex special
35212# characters, hashes, percent signs, but SUFFIX may contain a leading
35213# dot (in which case that matches only a dot).
35214func_stripname ()
35215{
35216 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35217 # positional parameters, so assign one to ordinary parameter first.
35218 func_stripname_result=${3}
35219 func_stripname_result=${func_stripname_result#"${1}"}
35220 func_stripname_result=${func_stripname_result%"${2}"}
35221}
35222
35223# func_opt_split
35224func_opt_split ()
35225{
35226 func_opt_split_opt=${1%%=*}
35227 func_opt_split_arg=${1#*=}
35228}
35229
35230# func_lo2o object
35231func_lo2o ()
35232{
35233 case ${1} in
35234 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35235 *) func_lo2o_result=${1} ;;
35236 esac
35237}
35238
35239# func_xform libobj-or-source
35240func_xform ()
35241{
35242 func_xform_result=${1%.*}.lo
35243}
35244
35245# func_arith arithmetic-term...
35246func_arith ()
35247{
35248 func_arith_result=$(( $* ))
35249}
35250
35251# func_len string
35252# STRING may not start with a hyphen.
35253func_len ()
35254{
35255 func_len_result=${#1}
35256}
35257
35258_LT_EOF
35259 ;;
35260 *) # Bourne compatible functions.
35261 cat << \_LT_EOF >> "$cfgfile"
35262
35263# func_dirname file append nondir_replacement
35264# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35265# otherwise set result to NONDIR_REPLACEMENT.
35266func_dirname ()
35267{
35268 # Extract subdirectory from the argument.
cristyfd9dcd42010-08-08 18:07:02 +000035269 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000035270 if test "X$func_dirname_result" = "X${1}"; then
35271 func_dirname_result="${3}"
35272 else
35273 func_dirname_result="$func_dirname_result${2}"
35274 fi
35275}
35276
35277# func_basename file
35278func_basename ()
35279{
cristyfd9dcd42010-08-08 18:07:02 +000035280 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000035281}
35282
35283
35284# func_stripname prefix suffix name
35285# strip PREFIX and SUFFIX off of NAME.
35286# PREFIX and SUFFIX must not contain globbing or regex special
35287# characters, hashes, percent signs, but SUFFIX may contain a leading
35288# dot (in which case that matches only a dot).
35289# func_strip_suffix prefix name
35290func_stripname ()
35291{
35292 case ${2} in
cristyfd9dcd42010-08-08 18:07:02 +000035293 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
35294 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000035295 esac
35296}
35297
35298# sed scripts:
35299my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35300my_sed_long_arg='1s/^-[^=]*=//'
35301
35302# func_opt_split
35303func_opt_split ()
35304{
cristyfd9dcd42010-08-08 18:07:02 +000035305 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
35306 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000035307}
35308
35309# func_lo2o object
35310func_lo2o ()
35311{
cristyfd9dcd42010-08-08 18:07:02 +000035312 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000035313}
35314
35315# func_xform libobj-or-source
35316func_xform ()
35317{
cristyfd9dcd42010-08-08 18:07:02 +000035318 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000035319}
35320
35321# func_arith arithmetic-term...
35322func_arith ()
35323{
35324 func_arith_result=`expr "$@"`
35325}
35326
35327# func_len string
35328# STRING may not start with a hyphen.
35329func_len ()
35330{
35331 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35332}
35333
35334_LT_EOF
35335esac
35336
35337case $lt_shell_append in
35338 yes)
35339 cat << \_LT_EOF >> "$cfgfile"
35340
35341# func_append var value
35342# Append VALUE to the end of shell variable VAR.
35343func_append ()
35344{
35345 eval "$1+=\$2"
35346}
35347_LT_EOF
35348 ;;
35349 *)
35350 cat << \_LT_EOF >> "$cfgfile"
35351
35352# func_append var value
35353# Append VALUE to the end of shell variable VAR.
35354func_append ()
35355{
35356 eval "$1=\$$1\$2"
35357}
35358
35359_LT_EOF
35360 ;;
35361 esac
35362
35363
35364 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35365 || (rm -f "$cfgfile"; exit 1)
35366
35367 mv -f "$cfgfile" "$ofile" ||
35368 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35369 chmod +x "$ofile"
35370
35371
35372 cat <<_LT_EOF >> "$ofile"
35373
35374# ### BEGIN LIBTOOL TAG CONFIG: CXX
35375
35376# The linker used to build libraries.
35377LD=$lt_LD_CXX
35378
cristyfd9dcd42010-08-08 18:07:02 +000035379# How to create reloadable object files.
35380reload_flag=$lt_reload_flag_CXX
35381reload_cmds=$lt_reload_cmds_CXX
35382
cristy3ed852e2009-09-05 21:47:34 +000035383# Commands used to build an old-style archive.
35384old_archive_cmds=$lt_old_archive_cmds_CXX
35385
35386# A language specific compiler.
35387CC=$lt_compiler_CXX
35388
35389# Is the compiler the GNU compiler?
35390with_gcc=$GCC_CXX
35391
35392# Compiler flag to turn off builtin functions.
35393no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35394
35395# How to pass a linker flag through the compiler.
35396wl=$lt_lt_prog_compiler_wl_CXX
35397
35398# Additional compiler flags for building library objects.
35399pic_flag=$lt_lt_prog_compiler_pic_CXX
35400
35401# Compiler flag to prevent dynamic linking.
35402link_static_flag=$lt_lt_prog_compiler_static_CXX
35403
35404# Does compiler simultaneously support -c and -o options?
35405compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35406
35407# Whether or not to add -lc for building shared libraries.
35408build_libtool_need_lc=$archive_cmds_need_lc_CXX
35409
35410# Whether or not to disallow shared libs when runtime libs are static.
35411allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35412
35413# Compiler flag to allow reflexive dlopens.
35414export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35415
35416# Compiler flag to generate shared objects directly from archives.
35417whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35418
35419# Whether the compiler copes with passing no objects directly.
35420compiler_needs_object=$lt_compiler_needs_object_CXX
35421
35422# Create an old-style archive from a shared archive.
35423old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35424
35425# Create a temporary old-style archive to link instead of a shared archive.
35426old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35427
35428# Commands used to build a shared archive.
35429archive_cmds=$lt_archive_cmds_CXX
35430archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35431
35432# Commands used to build a loadable module if different from building
35433# a shared archive.
35434module_cmds=$lt_module_cmds_CXX
35435module_expsym_cmds=$lt_module_expsym_cmds_CXX
35436
35437# Whether we are building with GNU ld or not.
35438with_gnu_ld=$lt_with_gnu_ld_CXX
35439
35440# Flag that allows shared libraries with undefined symbols to be built.
35441allow_undefined_flag=$lt_allow_undefined_flag_CXX
35442
35443# Flag that enforces no undefined symbols.
35444no_undefined_flag=$lt_no_undefined_flag_CXX
35445
35446# Flag to hardcode \$libdir into a binary during linking.
35447# This must work even if \$libdir does not exist
35448hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35449
35450# If ld is used when linking, flag to hardcode \$libdir into a binary
35451# during linking. This must work even if \$libdir does not exist.
35452hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35453
35454# Whether we need a single "-rpath" flag with a separated argument.
35455hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35456
35457# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35458# DIR into the resulting binary.
35459hardcode_direct=$hardcode_direct_CXX
35460
35461# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35462# DIR into the resulting binary and the resulting library dependency is
35463# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35464# library is relocated.
35465hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35466
35467# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35468# into the resulting binary.
35469hardcode_minus_L=$hardcode_minus_L_CXX
35470
35471# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35472# into the resulting binary.
35473hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35474
35475# Set to "yes" if building a shared library automatically hardcodes DIR
35476# into the library and all subsequent libraries and executables linked
35477# against it.
35478hardcode_automatic=$hardcode_automatic_CXX
35479
35480# Set to yes if linker adds runtime paths of dependent libraries
35481# to runtime path list.
35482inherit_rpath=$inherit_rpath_CXX
35483
35484# Whether libtool must link a program against all its dependency libraries.
35485link_all_deplibs=$link_all_deplibs_CXX
35486
35487# Fix the shell variable \$srcfile for the compiler.
35488fix_srcfile_path=$lt_fix_srcfile_path_CXX
35489
35490# Set to "yes" if exported symbols are required.
35491always_export_symbols=$always_export_symbols_CXX
35492
35493# The commands to list exported symbols.
35494export_symbols_cmds=$lt_export_symbols_cmds_CXX
35495
35496# Symbols that should not be listed in the preloaded symbols.
35497exclude_expsyms=$lt_exclude_expsyms_CXX
35498
35499# Symbols that must always be exported.
35500include_expsyms=$lt_include_expsyms_CXX
35501
35502# Commands necessary for linking programs (against libraries) with templates.
35503prelink_cmds=$lt_prelink_cmds_CXX
35504
35505# Specify filename containing input files.
35506file_list_spec=$lt_file_list_spec_CXX
35507
35508# How to hardcode a shared library path into an executable.
35509hardcode_action=$hardcode_action_CXX
35510
35511# The directories searched by this compiler when creating a shared library.
35512compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35513
35514# Dependencies to place before and after the objects being linked to
35515# create a shared library.
35516predep_objects=$lt_predep_objects_CXX
35517postdep_objects=$lt_postdep_objects_CXX
35518predeps=$lt_predeps_CXX
35519postdeps=$lt_postdeps_CXX
35520
35521# The library search path used internally by the compiler when linking
35522# a shared library.
35523compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35524
35525# ### END LIBTOOL TAG CONFIG: CXX
35526_LT_EOF
35527
35528 ;;
35529 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35530 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35531 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35532 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35533 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35534 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35535
35536 esac
35537done # for ac_tag
35538
35539
cristy8b350f62009-11-15 23:12:43 +000035540as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000035541_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000035542ac_clean_files=$ac_clean_files_save
35543
35544test $ac_write_fail = 0 ||
cristyf6fcb5d2010-09-24 01:19:13 +000035545 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035546
35547
35548# configure is writing to config.log, and then calls config.status.
35549# config.status does its own redirection, appending to config.log.
35550# Unfortunately, on DOS this fails, as config.log is still kept open
35551# by configure, so config.status won't be able to write to it; its
35552# output is simply discarded. So we exec the FD to /dev/null,
35553# effectively closing config.log, so it can be properly (re)opened and
35554# appended to by config.status. When coming back to configure, we
35555# need to make the FD available again.
35556if test "$no_create" != yes; then
35557 ac_cs_success=:
35558 ac_config_status_args=
35559 test "$silent" = yes &&
35560 ac_config_status_args="$ac_config_status_args --quiet"
35561 exec 5>/dev/null
35562 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35563 exec 5>>config.log
35564 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35565 # would make configure fail if this is the last instruction.
cristyf6fcb5d2010-09-24 01:19:13 +000035566 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000035567fi
35568if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000035569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000035570$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35571fi
35572
35573
35574rm -f magick-version
35575
cristy430a7312010-01-21 20:44:04 +000035576result_dejavu_font_dir='none'
35577if test "${dejavu_font_dir}x" != 'x'; then
35578 result_dejavu_font_dir=$dejavu_font_dir
35579fi
35580
cristy3ed852e2009-09-05 21:47:34 +000035581result_ghostscript_font_dir='none'
35582if test "${ghostscript_font_dir}x" != 'x'; then
35583 result_ghostscript_font_dir=$ghostscript_font_dir
35584fi
35585
35586result_windows_font_dir='none'
35587if test "${windows_font_dir}x" != 'x'; then
35588 result_windows_font_dir=${windows_font_dir}
35589fi
35590
cristy8b350f62009-11-15 23:12:43 +000035591{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000035592ImageMagick is configured as follows. Please verify that this configuration
35593matches your expectations.
35594
35595Host system type: $host
35596Build system type: $build
35597
35598 Option Value
35599-------------------------------------------------------------------------------
35600Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35601Static libraries --enable-static=$enable_static $libtool_build_static_libs
35602Module support --with-modules=$with_modules $with_modules
35603GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35604Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35605High Dynamic Range Imagery
35606 --enable-hdri=$enable_hdri $enable_hdri
35607
35608Delegate Configuration:
35609BZLIB --with-bzlib=$with_bzlib $have_bzlib
35610Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035611Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035612DJVU --with-djvu=$with_djvu $have_djvu
35613DPS --with-dps=$with_dps $have_dps
35614FFTW --with-fftw=$with_fftw $have_fftw
35615FlashPIX --with-fpx=$with_fpx $have_fpx
35616FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35617FreeType --with-freetype=$with_freetype $have_freetype
35618GhostPCL None $PCLDelegate ($PCLVersion)
35619GhostXPS None $XPSDelegate ($XPSVersion)
35620Ghostscript None $PSDelegate ($GSVersion)
35621Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35622Ghostscript lib --with-gslib=$with_gslib $have_gslib
35623Graphviz --with-gvc=$with_gvc $have_gvc
35624JBIG --with-jbig=$with_jbig $have_jbig
35625JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35626JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035627LCMS v1 --with-lcms=$with_lcms $have_lcms
35628LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035629LQR --with-lqr=$with_lqr $have_lqr
35630Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35631OpenEXR --with-openexr=$with_openexr $have_openexr
35632PERL --with-perl=$with_perl $have_perl
35633PNG --with-png=$with_png $have_png
35634RSVG --with-rsvg=$with_rsvg $have_rsvg
35635TIFF --with-tiff=$with_tiff $have_tiff
35636Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35637WMF --with-wmf=$with_wmf $have_wmf
35638X11 --with-x=$with_x $have_x
35639XML --with-xml=$with_xml $have_xml
35640ZLIB --with-zlib=$with_zlib $have_zlib
35641
35642X11 Configuration:
35643 X_CFLAGS = $X_CFLAGS
35644 X_PRE_LIBS = $X_PRE_LIBS
35645 X_LIBS = $X_LIBS
35646 X_EXTRA_LIBS = $X_EXTRA_LIBS
35647
35648Options used to compile and link:
35649 PREFIX = $PREFIX_DIR
35650 EXEC-PREFIX = $EXEC_PREFIX_DIR
35651 VERSION = $PACKAGE_VERSION
35652 CC = $CC
35653 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035654 CPPFLAGS = $MAGICK_CPPFLAGS
35655 PCFLAGS = $MAGICK_PCFLAGS
35656 DEFS = $DEFS
35657 LDFLAGS = $LDFLAGS
35658 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35659 LIBS = $MAGICK_LIBS
35660 CXX = $CXX
35661 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000035662 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000035663" >&5
35664$as_echo "
35665ImageMagick is configured as follows. Please verify that this configuration
35666matches your expectations.
35667
35668Host system type: $host
35669Build system type: $build
35670
35671 Option Value
35672-------------------------------------------------------------------------------
35673Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35674Static libraries --enable-static=$enable_static $libtool_build_static_libs
35675Module support --with-modules=$with_modules $with_modules
35676GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35677Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35678High Dynamic Range Imagery
35679 --enable-hdri=$enable_hdri $enable_hdri
35680
35681Delegate Configuration:
35682BZLIB --with-bzlib=$with_bzlib $have_bzlib
35683Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035684Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035685DJVU --with-djvu=$with_djvu $have_djvu
35686DPS --with-dps=$with_dps $have_dps
35687FFTW --with-fftw=$with_fftw $have_fftw
35688FlashPIX --with-fpx=$with_fpx $have_fpx
35689FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35690FreeType --with-freetype=$with_freetype $have_freetype
35691GhostPCL None $PCLDelegate ($PCLVersion)
35692GhostXPS None $XPSDelegate ($XPSVersion)
35693Ghostscript None $PSDelegate ($GSVersion)
35694Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35695Ghostscript lib --with-gslib=$with_gslib $have_gslib
35696Graphviz --with-gvc=$with_gvc $have_gvc
35697JBIG --with-jbig=$with_jbig $have_jbig
35698JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35699JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035700LCMS v1 --with-lcms=$with_lcms $have_lcms
35701LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035702LQR --with-lqr=$with_lqr $have_lqr
35703Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35704OpenEXR --with-openexr=$with_openexr $have_openexr
35705PERL --with-perl=$with_perl $have_perl
35706PNG --with-png=$with_png $have_png
35707RSVG --with-rsvg=$with_rsvg $have_rsvg
35708TIFF --with-tiff=$with_tiff $have_tiff
35709Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35710WMF --with-wmf=$with_wmf $have_wmf
35711X11 --with-x=$with_x $have_x
35712XML --with-xml=$with_xml $have_xml
35713ZLIB --with-zlib=$with_zlib $have_zlib
35714
35715X11 Configuration:
35716 X_CFLAGS = $X_CFLAGS
35717 X_PRE_LIBS = $X_PRE_LIBS
35718 X_LIBS = $X_LIBS
35719 X_EXTRA_LIBS = $X_EXTRA_LIBS
35720
35721Options used to compile and link:
35722 PREFIX = $PREFIX_DIR
35723 EXEC-PREFIX = $EXEC_PREFIX_DIR
35724 VERSION = $PACKAGE_VERSION
35725 CC = $CC
35726 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035727 CPPFLAGS = $MAGICK_CPPFLAGS
35728 PCFLAGS = $MAGICK_PCFLAGS
35729 DEFS = $DEFS
35730 LDFLAGS = $LDFLAGS
35731 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35732 LIBS = $MAGICK_LIBS
35733 CXX = $CXX
35734 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000035735 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000035736" >&6; }