blob: e909815697f54f2085ed8e9808900e1321e82af2 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy0684af42010-07-09 00:00:05 +00003# Generated by GNU Autoconf 2.66 for ImageMagick 6.6.3.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy3ed852e2009-09-05 21:47:34 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristy0684af42010-07-09 00:00:05 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +000011#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000094case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000095 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
cristy3ed852e2009-09-05 21:47:34 +0000103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000114 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000115fi
116
cristy8b350f62009-11-15 23:12:43 +0000117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
cristy8b350f62009-11-15 23:12:43 +0000135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy232a9ab2010-06-26 01:02:54 +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"
cristy0684af42010-07-09 00:00:05 +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
cristy0684af42010-07-09 00:00:05 +0000370# as_fn_error STATUS ERROR [LINENO LOG_FD]
371# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy0684af42010-07-09 00:00:05 +0000374# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000375as_fn_error ()
376{
cristy0684af42010-07-09 00:00:05 +0000377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000381 fi
cristy0684af42010-07-09 00:00:05 +0000382 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000383 as_fn_exit $as_status
384} # as_fn_error
385
cristy3ed852e2009-09-05 21:47:34 +0000386if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389else
390 as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395else
396 as_basename=false
397fi
398
cristy8b350f62009-11-15 23:12:43 +0000399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401else
402 as_dirname=false
403fi
cristy3ed852e2009-09-05 21:47:34 +0000404
cristy3ed852e2009-09-05 21:47:34 +0000405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409$as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
412 q
413 }
414 /^X\/\(\/\/\)$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\).*/{
419 s//\1/
420 q
421 }
422 s/.*/./; q'`
423
cristy8b350f62009-11-15 23:12:43 +0000424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000430
431
cristy8b350f62009-11-15 23:12:43 +0000432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
446 N
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
461}
462
cristy3ed852e2009-09-05 21:47:34 +0000463ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000464case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000465-n*)
cristy8b350f62009-11-15 23:12:43 +0000466 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000471 esac;;
472*)
473 ECHO_N='-n';;
474esac
cristy3ed852e2009-09-05 21:47:34 +0000475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
482fi
483if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
496 fi
497else
498 as_ln_s='cp -p'
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000504 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000505else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
508fi
509
510if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
517 fi
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
cristy8b350f62009-11-15 23:12:43 +0000523 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000524 -*)set "./$1";;
525 esac;
cristy8b350f62009-11-15 23:12:43 +0000526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
529 '
530fi
531as_executable_p=$as_test_x
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
cristy3ed852e2009-09-05 21:47:34 +0000539SHELL=${CONFIG_SHELL-/bin/sh}
540
cristy3ed852e2009-09-05 21:47:34 +0000541lt_ltdl_dir='ltdl'
542
543lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
544
cristy232a9ab2010-06-26 01:02:54 +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.
cristy0684af42010-07-09 00:00:05 +0000550# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000551# so uname gets run too.
552ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
553
554#
555# Initializations.
556#
557ac_default_prefix=/usr/local
558ac_clean_files=
559ac_config_libobj_dir=.
560LIBOBJS=
561cross_compiling=no
562subdirs=
563MFLAGS=
564MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000565
566# Identity of this package.
567PACKAGE_NAME='ImageMagick'
568PACKAGE_TARNAME='ImageMagick'
cristyfbb4a972010-06-30 17:42:22 +0000569PACKAGE_VERSION='6.6.3'
570PACKAGE_STRING='ImageMagick 6.6.3'
cristy3ed852e2009-09-05 21:47:34 +0000571PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000572PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000573
574ac_unique_file="magick/MagickCore.h"
575ac_config_libobj_dir=ltdl
576# Factoring default headers for most tests.
577ac_includes_default="\
578#include <stdio.h>
579#ifdef HAVE_SYS_TYPES_H
580# include <sys/types.h>
581#endif
582#ifdef HAVE_SYS_STAT_H
583# include <sys/stat.h>
584#endif
585#ifdef STDC_HEADERS
586# include <stdlib.h>
587# include <stddef.h>
588#else
589# ifdef HAVE_STDLIB_H
590# include <stdlib.h>
591# endif
592#endif
593#ifdef HAVE_STRING_H
594# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595# include <memory.h>
596# endif
597# include <string.h>
598#endif
599#ifdef HAVE_STRINGS_H
600# include <strings.h>
601#endif
602#ifdef HAVE_INTTYPES_H
603# include <inttypes.h>
604#endif
605#ifdef HAVE_STDINT_H
606# include <stdint.h>
607#endif
608#ifdef HAVE_UNISTD_H
609# include <unistd.h>
610#endif"
611
cristycd4c5312009-11-22 01:19:08 +0000612ac_header_list=
cristy3ed852e2009-09-05 21:47:34 +0000613ac_subst_vars='ltdl_LTLIBOBJS
614ltdl_LIBOBJS
615am__EXEEXT_FALSE
616am__EXEEXT_TRUE
617LTLIBOBJS
618MAGICK_LIBS
619MAGICK_LDFLAGS
620MAGICK_PCFLAGS
621MAGICK_CPPFLAGS
622MAGICK_CXXFLAGS
623MAGICK_CFLAGS
624MAGICK_DEP_LIBS
625MAGICK_LTDLDEPS
626MAGICK_LIBLTDL
627OSX_GCOV_LDFLAG
628DELEGATES
629MAGICKCORE_PATH
630PERL_SUPPORTS_DESTDIR
631WITH_PERL_DYNAMIC_FALSE
632WITH_PERL_DYNAMIC_TRUE
633WITH_PERL_STATIC_FALSE
634WITH_PERL_STATIC_TRUE
635WITH_PERL_FALSE
636WITH_PERL_TRUE
cristy964cb7f2010-04-25 23:18:00 +0000637PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000638GSVersion
639GSPSDevice
640GSPDFDevice
641GSMonoDevice
642GSEPSDevice
643GSColorDevice
644GSCMYKDevice
645GSAlphaDevice
646XPSVersion
647XPSCMYKDevice
648XPSColorDevice
649XPSMonoDevice
650PCLVersion
651PCLCMYKDevice
652PCLColorDevice
653PCLMonoDevice
654ZIP_DELEGATE_FALSE
655ZIP_DELEGATE_TRUE
656ZIP
657P7ZIP_DELEGATE_FALSE
658P7ZIP_DELEGATE_TRUE
659P7ZIP
660RPM_DELEGATE_FALSE
661RPM_DELEGATE_TRUE
662RPM
663PERL
664TAR
665ShowImageDelegate
666type_include_files
667ghostscript_font_dir
668windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000669dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000670PrintDelegate
671ZipDelegate
672XPSDelegate
673WWWDecodeDelegate
674WMFDecodeDelegate
675TXTDelegate
676SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000677RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000678RMDelegate
679RLEEncodeDelegate
680PSDelegate
681POVDelegate
682PGPDecodeDelegate
683PCLDelegate
684MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000685MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000686MPEGEncodeDelegate
687MPEGDecodeDelegate
688MANDelegate
689LaunchDelegate
690LZWEncodeDelegate
691LZWDecodeDelegate
692LPRDelegate
693LPDelegate
694ILBMEncodeDelegate
695ILBMDecodeDelegate
696HTMLDecodeDelegate
697HPGLDecodeDelegate
698HDRDecodeDelegate
699GnuplotDecodeDelegate
700MogrifyDelegate
701DisplayDelegate
702ConvertDelegate
703FIGDecodeDelegate
704EditorDelegate
705EchoDelegate
706DVIDecodeDelegate
707GVCDecodeDelegate
708DNGDecodeDelegate
709CatDelegate
710CGMDecodeDelegate
711BrowseDelegate
712BZIPDelegate
713BlenderDecodeDelegate
714AVIDecodeDelegate
715AutotraceDecodeDelegate
716SHARE_CONFIGURE_PATH
717SHARE_PATH
718DOCUMENTATION_PATH
719FILTER_PATH
720CODER_PATH
721CONFIGURE_PATH
722LIBRARY_PATH
723EXECUTABLE_PATH
724PERLMAINCC
725XML_LIBS
726XML_DELEGATE_FALSE
727XML_DELEGATE_TRUE
728xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000729WMF_LIBS
730WMF_DELEGATE_FALSE
731WMF_DELEGATE_TRUE
732TIFF_LIBS
733TIFF_DELEGATE_FALSE
734TIFF_DELEGATE_TRUE
735CAIRO_DELEGATE_FALSE
736CAIRO_DELEGATE_TRUE
737RSVG_DELEGATE_FALSE
738RSVG_DELEGATE_TRUE
739CAIRO_SVG_LIBS
740CAIRO_SVG_CFLAGS
741RSVG_LIBS
742RSVG_CFLAGS
743PNG_LIBS
744PNG_DELEGATE_FALSE
745PNG_DELEGATE_TRUE
746OPENEXR_DELEGATE_FALSE
747OPENEXR_DELEGATE_TRUE
748OPENEXR_LIBS
749OPENEXR_CFLAGS
750LQR_DELEGATE_FALSE
751LQR_DELEGATE_TRUE
752LQR_LIBS
753LQR_CFLAGS
754LCMS_LIBS
755LCMS_DELEGATE_FALSE
756LCMS_DELEGATE_TRUE
757JP2_LIBS
758JP2_DELEGATE_FALSE
759JP2_DELEGATE_TRUE
760JPEG_LIBS
761JPEG_DELEGATE_FALSE
762JPEG_DELEGATE_TRUE
763JBIG_LIBS
764JBIG_DELEGATE_FALSE
765JBIG_DELEGATE_TRUE
766GVC_DELEGATE_FALSE
767GVC_DELEGATE_TRUE
768GVC_LIBS
769GVC_CFLAGS
770GS_LIBS
771GS_DELEGATE_FALSE
772GS_DELEGATE_TRUE
773FREETYPE_LIBS
774FREETYPE_DELEGATE_FALSE
775FREETYPE_DELEGATE_TRUE
776freetype_config
777FONTCONFIG_DELEGATE_FALSE
778FONTCONFIG_DELEGATE_TRUE
779FONTCONFIG_LIBS
780FONTCONFIG_CFLAGS
781FPX_LIBS
782FPX_DELEGATE_FALSE
783FPX_DELEGATE_TRUE
784FFTW_LIBS
785FFTW_DELEGATE_FALSE
786FFTW_DELEGATE_TRUE
787DJVU_LIBS
788DJVU_DELEGATE_FALSE
789DJVU_DELEGATE_TRUE
790DPS_LIBS
791DPS_DELEGATE_FALSE
792DPS_DELEGATE_TRUE
793AUTOTRACE_DELEGATE_FALSE
794AUTOTRACE_DELEGATE_TRUE
795AUTOTRACE_LIBS
796AUTOTRACE_CFLAGS
797LIB_DL
798ZLIB_LIBS
799ZLIB_DELEGATE_FALSE
800ZLIB_DELEGATE_TRUE
801XEXT_LIBS
802X11_LIBS
803X11_DELEGATE_FALSE
804X11_DELEGATE_TRUE
805X_EXTRA_LIBS
806X_LIBS
807X_PRE_LIBS
808X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000809XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000810BZLIB_LIBS
811BZLIB_DELEGATE_FALSE
812BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000813CCMALLOCDelegate
814UMEM_LIBS
815HasUMEM_FALSE
816HasUMEM_TRUE
817THREAD_LIBS
818GOMP_LIBS
819WITH_MAGICK_PLUS_PLUS_FALSE
820WITH_MAGICK_PLUS_PLUS_TRUE
821OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000822MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000823POW_LIB
824LIBOBJS
825UINTPTR_T
826UINTMAX_T
827UINT64_T
828INT64_T
829UINT32_T
830INT32_T
831UINT16_T
832INT16_T
833UINT8_T
834INT8_T
835LIBRARY_EXTRA_CPPFLAGS
836MODULE_EXTRA_CPPFLAGS
837LIBSTDCLDFLAGS
838PERL_MAKE_OPTIONS
839QUANTUM_DEPTH
840MAINT
841MAINTAINER_MODE_FALSE
842MAINTAINER_MODE_TRUE
843MAGICK_HDRI
844DLLDFLAGS
845WITH_LTDL_FALSE
846WITH_LTDL_TRUE
847WITH_MODULES_FALSE
848WITH_MODULES_TRUE
cristyfa112112010-01-04 17:48:07 +0000849WITH_SHARED_LIBS_FALSE
850WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000851LTDLOPEN
852LT_CONFIG_H
853CONVENIENCE_LTDL_FALSE
854CONVENIENCE_LTDL_TRUE
855INSTALL_LTDL_FALSE
856INSTALL_LTDL_TRUE
857ARGZ_H
858sys_symbol_underscore
859LIBADD_DL
860LT_DLPREOPEN
861LIBADD_DLD_LINK
862LIBADD_SHL_LOAD
863LIBADD_DLOPEN
864LT_DLLOADERS
865INCLTDL
866LTDLINCL
867LTDLDEPS
868LIBLTDL
869LIBTOOL_DEPS
870CXXCPP
871OTOOL64
872OTOOL
873LIPO
874NMEDIT
875DSYMUTIL
cristy4dc44432009-12-30 23:30:06 +0000876RANLIB
cristy3ed852e2009-09-05 21:47:34 +0000877AR
878NM
879ac_ct_DUMPBIN
880DUMPBIN
881LIBTOOL
882OBJDUMP
883DLLTOOL
884AS
885LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +0000886CL_LIBS
887CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000888OPENMP_CFLAGS
889PTHREAD_CFLAGS
890PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000891PTHREAD_CC
cristy964cb7f2010-04-25 23:18:00 +0000892ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000893WinPathScript
894USING_CL_FALSE
895USING_CL_TRUE
896CYGWIN_BUILD_FALSE
897CYGWIN_BUILD_TRUE
898WIN32_NATIVE_BUILD_FALSE
899WIN32_NATIVE_BUILD_TRUE
900WINGDI32_DELEGATE_FALSE
901WINGDI32_DELEGATE_TRUE
902GDI32_LIBS
903PKG_CONFIG
904LN_S
cristy3ed852e2009-09-05 21:47:34 +0000905LD
906FGREP
cristy3ed852e2009-09-05 21:47:34 +0000907SED
cristy95646052009-11-28 23:05:30 +0000908am__fastdepCXX_FALSE
909am__fastdepCXX_TRUE
910CXXDEPMODE
911ac_ct_CXX
912CXXFLAGS
913CXX
cristya0b81c32010-01-22 02:54:33 +0000914EGREP
915GREP
916CPP
cristy3ed852e2009-09-05 21:47:34 +0000917am__fastdepCC_FALSE
918am__fastdepCC_TRUE
919CCDEPMODE
920AMDEPBACKSLASH
921AMDEP_FALSE
922AMDEP_TRUE
923am__quote
924am__include
925DEPDIR
926OBJEXT
927EXEEXT
928ac_ct_CC
929CPPFLAGS
930LDFLAGS
931CFLAGS
932CC
933DIRSEP
934MAGICK_FILTER_MODULE_PATH
935MAGICK_CONFIGURE_BUILD_PATH
936MAGICK_CONFIGURE_SRC_PATH
937MAGICK_CODER_MODULE_PATH
938MAN_DIR
939INFO_DIR
940PERSISTINCLUDE_DIR
941INCLUDE_DIR
942LIB_DIR
943LOCALSTATE_DIR
944SHAREDSTATE_DIR
945SYSCONF_DIR
946DATA_DIR
947LIBEXEC_DIR
948SBIN_DIR
949BIN_DIR
950EXEC_PREFIX_DIR
951PREFIX_DIR
952CONFIG_STATUS_DEPENDENCIES
953MAGICK_LIB_VERSION_NUMBER
954MAGICK_LIB_VERSION_TEXT
955MAGICK_LIB_VERSION
956AM_BACKSLASH
957AM_DEFAULT_VERBOSITY
958am__untar
959am__tar
960AMTAR
961am__leading_dot
962SET_MAKE
963AWK
964mkdir_p
965MKDIR_P
966INSTALL_STRIP_PROGRAM
967STRIP
968install_sh
969MAKEINFO
970AUTOHEADER
971AUTOMAKE
972AUTOCONF
973ACLOCAL
974VERSION
975PACKAGE
976CYGPATH_W
977am__isrc
978INSTALL_DATA
979INSTALL_SCRIPT
980INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +0000981PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +0000982PACKAGE_RELEASE_DATE
983PACKAGE_LIB_VERSION_NUMBER
984PACKAGE_LIB_VERSION
985PACKAGE_CHANGE_DATE
986PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +0000987MAGICK_LIBRARY_VERSION_INFO
988MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +0000989MAGICK_LIBRARY_AGE
990MAGICK_LIBRARY_REVISION
991MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +0000992MAGICK_TARGET_OS
993MAGICK_TARGET_VENDOR
994MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +0000995target_os
996target_vendor
997target_cpu
998target
999host_os
1000host_vendor
1001host_cpu
1002host
1003build_os
1004build_vendor
1005build_cpu
1006build
1007CONFIGURE_ARGS
1008DISTCHECK_CONFIG_FLAGS
1009target_alias
1010host_alias
1011build_alias
1012LIBS
1013ECHO_T
1014ECHO_N
1015ECHO_C
1016DEFS
1017mandir
1018localedir
1019libdir
1020psdir
1021pdfdir
1022dvidir
1023htmldir
1024infodir
1025docdir
1026oldincludedir
1027includedir
1028localstatedir
1029sharedstatedir
1030sysconfdir
1031datadir
1032datarootdir
1033libexecdir
1034sbindir
1035bindir
1036program_transform_name
1037prefix
1038exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001039PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001040PACKAGE_BUGREPORT
1041PACKAGE_STRING
1042PACKAGE_VERSION
1043PACKAGE_TARNAME
1044PACKAGE_NAME
1045PATH_SEPARATOR
1046SHELL'
1047ac_subst_files=''
1048ac_user_opts='
1049enable_option_checking
1050enable_silent_rules
1051enable_dependency_tracking
1052with_gnu_ld
cristy3ed852e2009-09-05 21:47:34 +00001053with_dmalloc
1054enable_bounds_checking
1055enable_osx_universal_binary
1056with_threads
1057enable_openmp
cristy43596fe2010-01-21 16:46:08 +00001058enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001059enable_largefile
1060enable_shared
1061enable_static
1062with_pic
1063enable_fast_install
1064enable_libtool_lock
1065with_included_ltdl
1066with_ltdl_include
1067with_ltdl_lib
1068enable_ltdl_install
1069with_modules
1070enable_delegate_build
1071enable_deprecated
1072enable_installed
1073enable_cipher
1074enable_embeddable
1075enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001076enable_assert
1077enable_maintainer_mode
1078enable_ccmalloc
1079enable_efence
1080enable_prof
1081enable_gprof
1082enable_gcov
1083with_method_prefix
1084with_quantum_depth
1085with_cache
1086with_frozenpaths
1087with_magick_plus_plus
1088with_perl
1089with_perl_options
1090with_umem
1091with_libstdc
1092with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001093with_x
cristy3ed852e2009-09-05 21:47:34 +00001094with_zlib
1095with_autotrace
1096with_dps
1097with_djvu
cristy430a7312010-01-21 20:44:04 +00001098with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001099with_fftw
1100with_fpx
1101with_fontconfig
1102with_freetype
1103with_gslib
1104with_fontpath
1105with_gs_font_dir
1106with_gvc
1107with_jbig
1108with_jpeg
1109with_jp2
1110with_lcms
cristy71203402010-06-18 13:12:03 +00001111with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001112with_lqr
1113with_openexr
1114with_png
1115with_rsvg
1116with_tiff
1117with_windows_font_dir
1118with_wmf
1119with_xml
1120'
1121 ac_precious_vars='build_alias
1122host_alias
1123target_alias
1124CC
1125CFLAGS
1126LDFLAGS
1127LIBS
1128CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001129CPP
cristy3ed852e2009-09-05 21:47:34 +00001130CXX
1131CXXFLAGS
1132CCC
1133PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001134CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001135XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001136AUTOTRACE_CFLAGS
1137AUTOTRACE_LIBS
1138FONTCONFIG_CFLAGS
1139FONTCONFIG_LIBS
1140GVC_CFLAGS
1141GVC_LIBS
1142LQR_CFLAGS
1143LQR_LIBS
1144OPENEXR_CFLAGS
1145OPENEXR_LIBS
1146RSVG_CFLAGS
1147RSVG_LIBS
1148CAIRO_SVG_CFLAGS
1149CAIRO_SVG_LIBS'
1150
1151
1152# Initialize some variables set by options.
1153ac_init_help=
1154ac_init_version=false
1155ac_unrecognized_opts=
1156ac_unrecognized_sep=
1157# The variables have the same names as the options, with
1158# dashes changed to underlines.
1159cache_file=/dev/null
1160exec_prefix=NONE
1161no_create=
1162no_recursion=
1163prefix=NONE
1164program_prefix=NONE
1165program_suffix=NONE
1166program_transform_name=s,x,x,
1167silent=
1168site=
1169srcdir=
1170verbose=
1171x_includes=NONE
1172x_libraries=NONE
1173
1174# Installation directory options.
1175# These are left unexpanded so users can "make install exec_prefix=/foo"
1176# and all the variables that are supposed to be based on exec_prefix
1177# by default will actually change.
1178# Use braces instead of parens because sh, perl, etc. also accept them.
1179# (The list follows the same order as the GNU Coding Standards.)
1180bindir='${exec_prefix}/bin'
1181sbindir='${exec_prefix}/sbin'
1182libexecdir='${exec_prefix}/libexec'
1183datarootdir='${prefix}/share'
1184datadir='${datarootdir}'
1185sysconfdir='${prefix}/etc'
1186sharedstatedir='${prefix}/com'
1187localstatedir='${prefix}/var'
1188includedir='${prefix}/include'
1189oldincludedir='/usr/include'
1190docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1191infodir='${datarootdir}/info'
1192htmldir='${docdir}'
1193dvidir='${docdir}'
1194pdfdir='${docdir}'
1195psdir='${docdir}'
1196libdir='${exec_prefix}/lib'
1197localedir='${datarootdir}/locale'
1198mandir='${datarootdir}/man'
1199
1200ac_prev=
1201ac_dashdash=
1202for ac_option
1203do
1204 # If the previous option needs an argument, assign it.
1205 if test -n "$ac_prev"; then
1206 eval $ac_prev=\$ac_option
1207 ac_prev=
1208 continue
1209 fi
1210
1211 case $ac_option in
1212 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1213 *) ac_optarg=yes ;;
1214 esac
1215
1216 # Accept the important Cygnus configure options, so we can diagnose typos.
1217
1218 case $ac_dashdash$ac_option in
1219 --)
1220 ac_dashdash=yes ;;
1221
1222 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1223 ac_prev=bindir ;;
1224 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1225 bindir=$ac_optarg ;;
1226
1227 -build | --build | --buil | --bui | --bu)
1228 ac_prev=build_alias ;;
1229 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1230 build_alias=$ac_optarg ;;
1231
1232 -cache-file | --cache-file | --cache-fil | --cache-fi \
1233 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1234 ac_prev=cache_file ;;
1235 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1236 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1237 cache_file=$ac_optarg ;;
1238
1239 --config-cache | -C)
1240 cache_file=config.cache ;;
1241
1242 -datadir | --datadir | --datadi | --datad)
1243 ac_prev=datadir ;;
1244 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1245 datadir=$ac_optarg ;;
1246
1247 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1248 | --dataroo | --dataro | --datar)
1249 ac_prev=datarootdir ;;
1250 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1251 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1252 datarootdir=$ac_optarg ;;
1253
1254 -disable-* | --disable-*)
1255 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy0684af42010-07-09 00:00:05 +00001258 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1262 *"
1263"enable_$ac_useropt"
1264"*) ;;
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1267 esac
1268 eval enable_$ac_useropt=no ;;
1269
1270 -docdir | --docdir | --docdi | --doc | --do)
1271 ac_prev=docdir ;;
1272 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1273 docdir=$ac_optarg ;;
1274
1275 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1276 ac_prev=dvidir ;;
1277 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1278 dvidir=$ac_optarg ;;
1279
1280 -enable-* | --enable-*)
1281 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy0684af42010-07-09 00:00:05 +00001284 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1288 *"
1289"enable_$ac_useropt"
1290"*) ;;
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1293 esac
1294 eval enable_$ac_useropt=\$ac_optarg ;;
1295
1296 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1297 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1298 | --exec | --exe | --ex)
1299 ac_prev=exec_prefix ;;
1300 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1301 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1302 | --exec=* | --exe=* | --ex=*)
1303 exec_prefix=$ac_optarg ;;
1304
1305 -gas | --gas | --ga | --g)
1306 # Obsolete; use --with-gas.
1307 with_gas=yes ;;
1308
1309 -help | --help | --hel | --he | -h)
1310 ac_init_help=long ;;
1311 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1312 ac_init_help=recursive ;;
1313 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1314 ac_init_help=short ;;
1315
1316 -host | --host | --hos | --ho)
1317 ac_prev=host_alias ;;
1318 -host=* | --host=* | --hos=* | --ho=*)
1319 host_alias=$ac_optarg ;;
1320
1321 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1322 ac_prev=htmldir ;;
1323 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1324 | --ht=*)
1325 htmldir=$ac_optarg ;;
1326
1327 -includedir | --includedir | --includedi | --included | --include \
1328 | --includ | --inclu | --incl | --inc)
1329 ac_prev=includedir ;;
1330 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1331 | --includ=* | --inclu=* | --incl=* | --inc=*)
1332 includedir=$ac_optarg ;;
1333
1334 -infodir | --infodir | --infodi | --infod | --info | --inf)
1335 ac_prev=infodir ;;
1336 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1337 infodir=$ac_optarg ;;
1338
1339 -libdir | --libdir | --libdi | --libd)
1340 ac_prev=libdir ;;
1341 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1342 libdir=$ac_optarg ;;
1343
1344 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1345 | --libexe | --libex | --libe)
1346 ac_prev=libexecdir ;;
1347 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1348 | --libexe=* | --libex=* | --libe=*)
1349 libexecdir=$ac_optarg ;;
1350
1351 -localedir | --localedir | --localedi | --localed | --locale)
1352 ac_prev=localedir ;;
1353 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1354 localedir=$ac_optarg ;;
1355
1356 -localstatedir | --localstatedir | --localstatedi | --localstated \
1357 | --localstate | --localstat | --localsta | --localst | --locals)
1358 ac_prev=localstatedir ;;
1359 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1360 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1361 localstatedir=$ac_optarg ;;
1362
1363 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1364 ac_prev=mandir ;;
1365 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1366 mandir=$ac_optarg ;;
1367
1368 -nfp | --nfp | --nf)
1369 # Obsolete; use --without-fp.
1370 with_fp=no ;;
1371
1372 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1373 | --no-cr | --no-c | -n)
1374 no_create=yes ;;
1375
1376 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1377 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1378 no_recursion=yes ;;
1379
1380 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1381 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1382 | --oldin | --oldi | --old | --ol | --o)
1383 ac_prev=oldincludedir ;;
1384 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1385 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1386 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1387 oldincludedir=$ac_optarg ;;
1388
1389 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1390 ac_prev=prefix ;;
1391 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1392 prefix=$ac_optarg ;;
1393
1394 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1395 | --program-pre | --program-pr | --program-p)
1396 ac_prev=program_prefix ;;
1397 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1398 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1399 program_prefix=$ac_optarg ;;
1400
1401 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1402 | --program-suf | --program-su | --program-s)
1403 ac_prev=program_suffix ;;
1404 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1405 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1406 program_suffix=$ac_optarg ;;
1407
1408 -program-transform-name | --program-transform-name \
1409 | --program-transform-nam | --program-transform-na \
1410 | --program-transform-n | --program-transform- \
1411 | --program-transform | --program-transfor \
1412 | --program-transfo | --program-transf \
1413 | --program-trans | --program-tran \
1414 | --progr-tra | --program-tr | --program-t)
1415 ac_prev=program_transform_name ;;
1416 -program-transform-name=* | --program-transform-name=* \
1417 | --program-transform-nam=* | --program-transform-na=* \
1418 | --program-transform-n=* | --program-transform-=* \
1419 | --program-transform=* | --program-transfor=* \
1420 | --program-transfo=* | --program-transf=* \
1421 | --program-trans=* | --program-tran=* \
1422 | --progr-tra=* | --program-tr=* | --program-t=*)
1423 program_transform_name=$ac_optarg ;;
1424
1425 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1426 ac_prev=pdfdir ;;
1427 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1428 pdfdir=$ac_optarg ;;
1429
1430 -psdir | --psdir | --psdi | --psd | --ps)
1431 ac_prev=psdir ;;
1432 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1433 psdir=$ac_optarg ;;
1434
1435 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1436 | -silent | --silent | --silen | --sile | --sil)
1437 silent=yes ;;
1438
1439 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1440 ac_prev=sbindir ;;
1441 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1442 | --sbi=* | --sb=*)
1443 sbindir=$ac_optarg ;;
1444
1445 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1446 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1447 | --sharedst | --shareds | --shared | --share | --shar \
1448 | --sha | --sh)
1449 ac_prev=sharedstatedir ;;
1450 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1451 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1452 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1453 | --sha=* | --sh=*)
1454 sharedstatedir=$ac_optarg ;;
1455
1456 -site | --site | --sit)
1457 ac_prev=site ;;
1458 -site=* | --site=* | --sit=*)
1459 site=$ac_optarg ;;
1460
1461 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1462 ac_prev=srcdir ;;
1463 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1464 srcdir=$ac_optarg ;;
1465
1466 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1467 | --syscon | --sysco | --sysc | --sys | --sy)
1468 ac_prev=sysconfdir ;;
1469 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1470 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1471 sysconfdir=$ac_optarg ;;
1472
1473 -target | --target | --targe | --targ | --tar | --ta | --t)
1474 ac_prev=target_alias ;;
1475 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1476 target_alias=$ac_optarg ;;
1477
1478 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1479 verbose=yes ;;
1480
1481 -version | --version | --versio | --versi | --vers | -V)
1482 ac_init_version=: ;;
1483
1484 -with-* | --with-*)
1485 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1486 # Reject names that are not valid shell variable names.
1487 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy0684af42010-07-09 00:00:05 +00001488 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001489 ac_useropt_orig=$ac_useropt
1490 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1491 case $ac_user_opts in
1492 *"
1493"with_$ac_useropt"
1494"*) ;;
1495 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1496 ac_unrecognized_sep=', ';;
1497 esac
1498 eval with_$ac_useropt=\$ac_optarg ;;
1499
1500 -without-* | --without-*)
1501 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1502 # Reject names that are not valid shell variable names.
1503 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy0684af42010-07-09 00:00:05 +00001504 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001505 ac_useropt_orig=$ac_useropt
1506 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1507 case $ac_user_opts in
1508 *"
1509"with_$ac_useropt"
1510"*) ;;
1511 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1512 ac_unrecognized_sep=', ';;
1513 esac
1514 eval with_$ac_useropt=no ;;
1515
1516 --x)
1517 # Obsolete; use --with-x.
1518 with_x=yes ;;
1519
1520 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1521 | --x-incl | --x-inc | --x-in | --x-i)
1522 ac_prev=x_includes ;;
1523 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1524 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1525 x_includes=$ac_optarg ;;
1526
1527 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1528 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1529 ac_prev=x_libraries ;;
1530 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1531 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1532 x_libraries=$ac_optarg ;;
1533
cristy0684af42010-07-09 00:00:05 +00001534 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1535Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001536 ;;
1537
1538 *=*)
1539 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1540 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001541 case $ac_envvar in #(
1542 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy0684af42010-07-09 00:00:05 +00001543 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001544 esac
cristy3ed852e2009-09-05 21:47:34 +00001545 eval $ac_envvar=\$ac_optarg
1546 export $ac_envvar ;;
1547
1548 *)
1549 # FIXME: should be removed in autoconf 3.0.
1550 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1551 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1552 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1553 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1554 ;;
1555
1556 esac
1557done
1558
1559if test -n "$ac_prev"; then
1560 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy0684af42010-07-09 00:00:05 +00001561 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001562fi
1563
1564if test -n "$ac_unrecognized_opts"; then
1565 case $enable_option_checking in
1566 no) ;;
cristy0684af42010-07-09 00:00:05 +00001567 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001568 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1569 esac
1570fi
1571
1572# Check all directory arguments for consistency.
1573for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1574 datadir sysconfdir sharedstatedir localstatedir includedir \
1575 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1576 libdir localedir mandir
1577do
1578 eval ac_val=\$$ac_var
1579 # Remove trailing slashes.
1580 case $ac_val in
1581 */ )
1582 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1583 eval $ac_var=\$ac_val;;
1584 esac
1585 # Be sure to have absolute directory names.
1586 case $ac_val in
1587 [\\/$]* | ?:[\\/]* ) continue;;
1588 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1589 esac
cristy0684af42010-07-09 00:00:05 +00001590 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001591done
1592
1593# There might be people who depend on the old broken behavior: `$host'
1594# used to hold the argument of --host etc.
1595# FIXME: To remove some day.
1596build=$build_alias
1597host=$host_alias
1598target=$target_alias
1599
1600# FIXME: To remove some day.
1601if test "x$host_alias" != x; then
1602 if test "x$build_alias" = x; then
1603 cross_compiling=maybe
cristy0684af42010-07-09 00:00:05 +00001604 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1605 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001606 elif test "x$build_alias" != "x$host_alias"; then
1607 cross_compiling=yes
1608 fi
1609fi
1610
1611ac_tool_prefix=
1612test -n "$host_alias" && ac_tool_prefix=$host_alias-
1613
1614test "$silent" = yes && exec 6>/dev/null
1615
1616
1617ac_pwd=`pwd` && test -n "$ac_pwd" &&
1618ac_ls_di=`ls -di .` &&
1619ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy0684af42010-07-09 00:00:05 +00001620 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001621test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy0684af42010-07-09 00:00:05 +00001622 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001623
1624
1625# Find the source files, if location was not specified.
1626if test -z "$srcdir"; then
1627 ac_srcdir_defaulted=yes
1628 # Try the directory containing this script, then the parent directory.
1629 ac_confdir=`$as_dirname -- "$as_myself" ||
1630$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1631 X"$as_myself" : 'X\(//\)[^/]' \| \
1632 X"$as_myself" : 'X\(//\)$' \| \
1633 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1634$as_echo X"$as_myself" |
1635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1636 s//\1/
1637 q
1638 }
1639 /^X\(\/\/\)[^/].*/{
1640 s//\1/
1641 q
1642 }
1643 /^X\(\/\/\)$/{
1644 s//\1/
1645 q
1646 }
1647 /^X\(\/\).*/{
1648 s//\1/
1649 q
1650 }
1651 s/.*/./; q'`
1652 srcdir=$ac_confdir
1653 if test ! -r "$srcdir/$ac_unique_file"; then
1654 srcdir=..
1655 fi
1656else
1657 ac_srcdir_defaulted=no
1658fi
1659if test ! -r "$srcdir/$ac_unique_file"; then
1660 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy0684af42010-07-09 00:00:05 +00001661 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001662fi
1663ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1664ac_abs_confdir=`(
cristy0684af42010-07-09 00:00:05 +00001665 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001666 pwd)`
1667# When building in place, set srcdir=.
1668if test "$ac_abs_confdir" = "$ac_pwd"; then
1669 srcdir=.
1670fi
1671# Remove unnecessary trailing slashes from srcdir.
1672# Double slashes in file names in object file debugging info
1673# mess up M-x gdb in Emacs.
1674case $srcdir in
1675*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1676esac
1677for ac_var in $ac_precious_vars; do
1678 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1679 eval ac_env_${ac_var}_value=\$${ac_var}
1680 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1681 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1682done
1683
1684#
1685# Report the --help message.
1686#
1687if test "$ac_init_help" = "long"; then
1688 # Omit some internal or obsolete options to make the list less imposing.
1689 # This message is too long to be a string in the A/UX 3.1 sh.
1690 cat <<_ACEOF
cristyfbb4a972010-06-30 17:42:22 +00001691\`configure' configures ImageMagick 6.6.3 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001692
1693Usage: $0 [OPTION]... [VAR=VALUE]...
1694
1695To assign environment variables (e.g., CC, CFLAGS...), specify them as
1696VAR=VALUE. See below for descriptions of some of the useful variables.
1697
1698Defaults for the options are specified in brackets.
1699
1700Configuration:
1701 -h, --help display this help and exit
1702 --help=short display options specific to this package
1703 --help=recursive display the short help of all the included packages
1704 -V, --version display version information and exit
cristy0684af42010-07-09 00:00:05 +00001705 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001706 --cache-file=FILE cache test results in FILE [disabled]
1707 -C, --config-cache alias for \`--cache-file=config.cache'
1708 -n, --no-create do not create output files
1709 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1710
1711Installation directories:
1712 --prefix=PREFIX install architecture-independent files in PREFIX
1713 [$ac_default_prefix]
1714 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1715 [PREFIX]
1716
1717By default, \`make install' will install all the files in
1718\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1719an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1720for instance \`--prefix=\$HOME'.
1721
1722For better control, use the options below.
1723
1724Fine tuning of the installation directories:
1725 --bindir=DIR user executables [EPREFIX/bin]
1726 --sbindir=DIR system admin executables [EPREFIX/sbin]
1727 --libexecdir=DIR program executables [EPREFIX/libexec]
1728 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1729 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1730 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1731 --libdir=DIR object code libraries [EPREFIX/lib]
1732 --includedir=DIR C header files [PREFIX/include]
1733 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1734 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1735 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1736 --infodir=DIR info documentation [DATAROOTDIR/info]
1737 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1738 --mandir=DIR man documentation [DATAROOTDIR/man]
1739 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1740 --htmldir=DIR html documentation [DOCDIR]
1741 --dvidir=DIR dvi documentation [DOCDIR]
1742 --pdfdir=DIR pdf documentation [DOCDIR]
1743 --psdir=DIR ps documentation [DOCDIR]
1744_ACEOF
1745
1746 cat <<\_ACEOF
1747
1748Program names:
1749 --program-prefix=PREFIX prepend PREFIX to installed program names
1750 --program-suffix=SUFFIX append SUFFIX to installed program names
1751 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1752
1753X features:
1754 --x-includes=DIR X include files are in DIR
1755 --x-libraries=DIR X library files are in DIR
1756
1757System types:
1758 --build=BUILD configure for building on BUILD [guessed]
1759 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1760 --target=TARGET configure for building compilers for TARGET [HOST]
1761_ACEOF
1762fi
1763
1764if test -n "$ac_init_help"; then
1765 case $ac_init_help in
cristyfbb4a972010-06-30 17:42:22 +00001766 short | recursive ) echo "Configuration of ImageMagick 6.6.3:";;
cristy3ed852e2009-09-05 21:47:34 +00001767 esac
1768 cat <<\_ACEOF
1769
1770Optional Features:
1771 --disable-option-checking ignore unrecognized --enable/--with options
1772 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1773 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1774 --enable-silent-rules less verbose build output (undo: `make V=1')
1775 --disable-silent-rules verbose build output (undo: `make V=0')
1776 --disable-dependency-tracking speeds up one-time build
1777 --enable-dependency-tracking do not reject slow dependency extractors
1778 --bounds-checking enable run-time bounds-checking
1779 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001780 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001781 --disable-openmp do not use OpenMP
cristy43596fe2010-01-21 16:46:08 +00001782 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001783 --disable-largefile omit support for large files
1784 --enable-shared[=PKGS] build shared libraries [default=yes]
1785 --enable-static[=PKGS] build static libraries [default=yes]
1786 --enable-fast-install[=PKGS]
1787 optimize for fast installation [default=yes]
1788 --disable-libtool-lock avoid locking (might break parallel builds)
1789 --enable-ltdl-install install libltdl
1790 --enable-delegate-build look for delegate libraries in build directory
1791 --disable-deprecated exclude deprecated methods in MagickCore and
1792 MagickWand API's
1793 --disable-installed Formally install ImageMagick under PREFIX
1794 --disable-cipher disable enciphering and deciphering image pixels
1795 --enable-embeddable enable self-contained, embeddable,
1796 zero-configuration ImageMagick
1797 --enable-hdri accurately represent the wide range of intensity
1798 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001799 --disable-assert disable assert() statements in build
1800 --enable-maintainer-mode enable make rules and dependencies not useful
1801 (and sometimes confusing) to the casual installer
1802 --enable-ccmalloc enable 'ccmalloc' memory debug support
1803 --enable-efence enable 'efence' memory debug support
1804 --enable-prof enable 'prof' profiling support
1805 --enable-gprof enable 'gprof' profiling support
1806 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001807 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001808
1809Optional Packages:
1810 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1811 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1812 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy3ed852e2009-09-05 21:47:34 +00001813 --with-dmalloc use dmalloc, as in
1814 http://www.dmalloc.com/dmalloc.tar.gz
1815 --without-threads disable threads support
1816 --with-pic try to use only PIC/non-PIC objects [default=use
1817 both]
1818 --with-included-ltdl use the GNU ltdl sources included here
1819 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1820 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1821 --with-modules enable building dynamically loadable modules
1822 --with-method-prefix=PREFIX
1823 prefix MagickCore API methods
1824 --with-quantum-depth=DEPTH
1825 number of bits in a pixel quantum (default 16)
1826 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1827 memory)
1828 --with-frozenpaths freeze delegate paths
1829 --without-magick-plus-plus
1830 disable build/install of Magick++
1831 --with-perl enable build/install of PerlMagick
1832 --with-perl-options=OPTIONS
1833 options to pass on command-line when generating
1834 PerlMagick's build file
1835 --with-umem enable umem memory allocation library support
1836 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1837 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001838 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001839 --without-zlib disable ZLIB support
1840 --with-autotrace enable autotrace support
1841 --without-dps disable Display Postscript support
1842 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001843 --with-dejavu-font-dir=DIR
1844 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001845 --without-fftw disable FFTW support
1846 --without-fpx disable FlashPIX support
1847 --without-fontconfig disable fontconfig support
1848 --without-freetype disable Freetype support
1849 --without-gslib enable Ghostscript library support
1850 --with-fontpath=DIR prepend to default font search path
1851 --with-gs-font-dir=DIR Ghostscript font directory
1852 --without-gvc disable GVC support
1853 --without-jbig disable JBIG support
1854 --without-jpeg disable JPEG support
1855 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001856 --without-lcms disable lcms (v1.1X) support
1857 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001858 --without-lqr disable Liquid Rescale support
cristy3ed852e2009-09-05 21:47:34 +00001859 --without-openexr disable OpenEXR support
1860 --without-png disable PNG support
1861 --without-rsvg disable RSVG support
1862 --without-tiff disable TIFF support
1863 --with-windows-font-dir=DIR
1864 directory containing MS-Windows fonts
1865 --without-wmf disable WMF support
1866 --without-xml disable XML support
1867
1868Some influential environment variables:
1869 CC C compiler command
1870 CFLAGS C compiler flags
1871 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1872 nonstandard directory <lib dir>
1873 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001874 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001875 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001876 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001877 CXX C++ compiler command
1878 CXXFLAGS C++ compiler flags
1879 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00001880 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00001881 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00001882 AUTOTRACE_CFLAGS
1883 C compiler flags for AUTOTRACE, overriding pkg-config
1884 AUTOTRACE_LIBS
1885 linker flags for AUTOTRACE, overriding pkg-config
1886 FONTCONFIG_CFLAGS
1887 C compiler flags for FONTCONFIG, overriding pkg-config
1888 FONTCONFIG_LIBS
1889 linker flags for FONTCONFIG, overriding pkg-config
1890 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1891 GVC_LIBS linker flags for GVC, overriding pkg-config
1892 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1893 LQR_LIBS linker flags for LQR, overriding pkg-config
1894 OPENEXR_CFLAGS
1895 C compiler flags for OPENEXR, overriding pkg-config
1896 OPENEXR_LIBS
1897 linker flags for OPENEXR, overriding pkg-config
1898 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1899 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1900 CAIRO_SVG_CFLAGS
1901 C compiler flags for CAIRO_SVG, overriding pkg-config
1902 CAIRO_SVG_LIBS
1903 linker flags for CAIRO_SVG, overriding pkg-config
1904
1905Use these variables to override the choices made by `configure' or to help
1906it to find libraries and programs with nonstandard names/locations.
1907
1908Report bugs to <http://www.imagemagick.org>.
1909_ACEOF
1910ac_status=$?
1911fi
1912
1913if test "$ac_init_help" = "recursive"; then
1914 # If there are subdirs, report their specific --help.
1915 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1916 test -d "$ac_dir" ||
1917 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1918 continue
1919 ac_builddir=.
1920
1921case "$ac_dir" in
1922.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1923*)
1924 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1925 # A ".." for each directory in $ac_dir_suffix.
1926 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1927 case $ac_top_builddir_sub in
1928 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1929 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1930 esac ;;
1931esac
1932ac_abs_top_builddir=$ac_pwd
1933ac_abs_builddir=$ac_pwd$ac_dir_suffix
1934# for backward compatibility:
1935ac_top_builddir=$ac_top_build_prefix
1936
1937case $srcdir in
1938 .) # We are building in place.
1939 ac_srcdir=.
1940 ac_top_srcdir=$ac_top_builddir_sub
1941 ac_abs_top_srcdir=$ac_pwd ;;
1942 [\\/]* | ?:[\\/]* ) # Absolute name.
1943 ac_srcdir=$srcdir$ac_dir_suffix;
1944 ac_top_srcdir=$srcdir
1945 ac_abs_top_srcdir=$srcdir ;;
1946 *) # Relative name.
1947 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1948 ac_top_srcdir=$ac_top_build_prefix$srcdir
1949 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1950esac
1951ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1952
1953 cd "$ac_dir" || { ac_status=$?; continue; }
1954 # Check for guested configure.
1955 if test -f "$ac_srcdir/configure.gnu"; then
1956 echo &&
1957 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1958 elif test -f "$ac_srcdir/configure"; then
1959 echo &&
1960 $SHELL "$ac_srcdir/configure" --help=recursive
1961 else
1962 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1963 fi || ac_status=$?
1964 cd "$ac_pwd" || { ac_status=$?; break; }
1965 done
1966fi
1967
1968test -n "$ac_init_help" && exit $ac_status
1969if $ac_init_version; then
1970 cat <<\_ACEOF
cristyfbb4a972010-06-30 17:42:22 +00001971ImageMagick configure 6.6.3
cristy0684af42010-07-09 00:00:05 +00001972generated by GNU Autoconf 2.66
cristy3ed852e2009-09-05 21:47:34 +00001973
cristy0684af42010-07-09 00:00:05 +00001974Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00001975This configure script is free software; the Free Software Foundation
1976gives unlimited permission to copy, distribute and modify it.
1977_ACEOF
1978 exit
1979fi
cristy8b350f62009-11-15 23:12:43 +00001980
1981## ------------------------ ##
1982## Autoconf initialization. ##
1983## ------------------------ ##
1984
1985# ac_fn_c_try_compile LINENO
1986# --------------------------
1987# Try to compile conftest.$ac_ext, and return whether this succeeded.
1988ac_fn_c_try_compile ()
1989{
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 rm -f conftest.$ac_objext
1992 if { { ac_try="$ac_compile"
1993case "(($ac_try" in
1994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995 *) ac_try_echo=$ac_try;;
1996esac
1997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998$as_echo "$ac_try_echo"; } >&5
1999 (eval "$ac_compile") 2>conftest.err
2000 ac_status=$?
2001 if test -s conftest.err; then
2002 grep -v '^ *+' conftest.err >conftest.er1
2003 cat conftest.er1 >&5
2004 mv -f conftest.er1 conftest.err
2005 fi
2006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007 test $ac_status = 0; } && {
2008 test -z "$ac_c_werror_flag" ||
2009 test ! -s conftest.err
2010 } && test -s conftest.$ac_objext; then :
2011 ac_retval=0
2012else
2013 $as_echo "$as_me: failed program was:" >&5
2014sed 's/^/| /' conftest.$ac_ext >&5
2015
2016 ac_retval=1
2017fi
2018 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002019 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002020
2021} # ac_fn_c_try_compile
2022
cristy95646052009-11-28 23:05:30 +00002023# ac_fn_c_try_cpp LINENO
2024# ----------------------
2025# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2026ac_fn_c_try_cpp ()
2027{
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 if { { ac_try="$ac_cpp conftest.$ac_ext"
2030case "(($ac_try" in
2031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2032 *) ac_try_echo=$ac_try;;
2033esac
2034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2035$as_echo "$ac_try_echo"; } >&5
2036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2037 ac_status=$?
2038 if test -s conftest.err; then
2039 grep -v '^ *+' conftest.err >conftest.er1
2040 cat conftest.er1 >&5
2041 mv -f conftest.er1 conftest.err
2042 fi
2043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2044 test $ac_status = 0; } >/dev/null && {
2045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2046 test ! -s conftest.err
2047 }; then :
2048 ac_retval=0
2049else
2050 $as_echo "$as_me: failed program was:" >&5
2051sed 's/^/| /' conftest.$ac_ext >&5
2052
2053 ac_retval=1
2054fi
2055 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2056 as_fn_set_status $ac_retval
2057
2058} # ac_fn_c_try_cpp
2059
cristy8b350f62009-11-15 23:12:43 +00002060# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2061# -------------------------------------------------------
2062# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2063# the include files in INCLUDES and setting the cache variable VAR
2064# accordingly.
2065ac_fn_c_check_header_mongrel ()
2066{
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy0684af42010-07-09 00:00:05 +00002068 if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2070$as_echo_n "checking for $2... " >&6; }
cristy0684af42010-07-09 00:00:05 +00002071if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002072 $as_echo_n "(cached) " >&6
2073fi
2074eval ac_res=\$$3
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076$as_echo "$ac_res" >&6; }
2077else
2078 # Is the header compilable?
2079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2080$as_echo_n "checking $2 usability... " >&6; }
2081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082/* end confdefs.h. */
2083$4
2084#include <$2>
2085_ACEOF
2086if ac_fn_c_try_compile "$LINENO"; then :
2087 ac_header_compiler=yes
2088else
2089 ac_header_compiler=no
2090fi
2091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2093$as_echo "$ac_header_compiler" >&6; }
2094
2095# Is the header present?
2096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2097$as_echo_n "checking $2 presence... " >&6; }
2098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099/* end confdefs.h. */
2100#include <$2>
2101_ACEOF
2102if ac_fn_c_try_cpp "$LINENO"; then :
2103 ac_header_preproc=yes
2104else
2105 ac_header_preproc=no
2106fi
2107rm -f conftest.err conftest.$ac_ext
2108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2109$as_echo "$ac_header_preproc" >&6; }
2110
2111# So? What about this header?
2112case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2113 yes:no: )
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2115$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2117$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2118 ;;
2119 no:yes:* )
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2121$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2123$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2125$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2127$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2129$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy0684af42010-07-09 00:00:05 +00002130( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002131## Report this to http://www.imagemagick.org ##
cristy0684af42010-07-09 00:00:05 +00002132## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002133 ) | sed "s/^/$as_me: WARNING: /" >&2
2134 ;;
2135esac
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2137$as_echo_n "checking for $2... " >&6; }
cristy0684af42010-07-09 00:00:05 +00002138if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002139 $as_echo_n "(cached) " >&6
2140else
2141 eval "$3=\$ac_header_compiler"
2142fi
2143eval ac_res=\$$3
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2145$as_echo "$ac_res" >&6; }
2146fi
2147 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2148
2149} # ac_fn_c_check_header_mongrel
2150
2151# ac_fn_c_try_run LINENO
2152# ----------------------
2153# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2154# that executables *can* be run.
2155ac_fn_c_try_run ()
2156{
2157 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158 if { { ac_try="$ac_link"
2159case "(($ac_try" in
2160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2161 *) ac_try_echo=$ac_try;;
2162esac
2163eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2164$as_echo "$ac_try_echo"; } >&5
2165 (eval "$ac_link") 2>&5
2166 ac_status=$?
2167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2168 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2169 { { case "(($ac_try" in
2170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171 *) ac_try_echo=$ac_try;;
2172esac
2173eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2174$as_echo "$ac_try_echo"; } >&5
2175 (eval "$ac_try") 2>&5
2176 ac_status=$?
2177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2178 test $ac_status = 0; }; }; then :
2179 ac_retval=0
2180else
2181 $as_echo "$as_me: program exited with status $ac_status" >&5
2182 $as_echo "$as_me: failed program was:" >&5
2183sed 's/^/| /' conftest.$ac_ext >&5
2184
2185 ac_retval=$ac_status
2186fi
2187 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2188 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002189 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002190
2191} # ac_fn_c_try_run
2192
2193# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2194# -------------------------------------------------------
2195# Tests whether HEADER exists and can be compiled using the include files in
2196# INCLUDES, setting the cache variable VAR accordingly.
2197ac_fn_c_check_header_compile ()
2198{
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2201$as_echo_n "checking for $2... " >&6; }
cristy0684af42010-07-09 00:00:05 +00002202if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002203 $as_echo_n "(cached) " >&6
2204else
2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206/* end confdefs.h. */
2207$4
2208#include <$2>
2209_ACEOF
2210if ac_fn_c_try_compile "$LINENO"; then :
2211 eval "$3=yes"
2212else
2213 eval "$3=no"
2214fi
2215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216fi
2217eval ac_res=\$$3
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2219$as_echo "$ac_res" >&6; }
2220 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2221
2222} # ac_fn_c_check_header_compile
2223
cristya0b81c32010-01-22 02:54:33 +00002224# ac_fn_cxx_try_compile LINENO
2225# ----------------------------
2226# Try to compile conftest.$ac_ext, and return whether this succeeded.
2227ac_fn_cxx_try_compile ()
2228{
2229 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2230 rm -f conftest.$ac_objext
2231 if { { ac_try="$ac_compile"
2232case "(($ac_try" in
2233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2234 *) ac_try_echo=$ac_try;;
2235esac
2236eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2237$as_echo "$ac_try_echo"; } >&5
2238 (eval "$ac_compile") 2>conftest.err
2239 ac_status=$?
2240 if test -s conftest.err; then
2241 grep -v '^ *+' conftest.err >conftest.er1
2242 cat conftest.er1 >&5
2243 mv -f conftest.er1 conftest.err
2244 fi
2245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2246 test $ac_status = 0; } && {
2247 test -z "$ac_cxx_werror_flag" ||
2248 test ! -s conftest.err
2249 } && test -s conftest.$ac_objext; then :
2250 ac_retval=0
2251else
2252 $as_echo "$as_me: failed program was:" >&5
2253sed 's/^/| /' conftest.$ac_ext >&5
2254
2255 ac_retval=1
2256fi
2257 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2258 as_fn_set_status $ac_retval
2259
2260} # ac_fn_cxx_try_compile
2261
cristy8b350f62009-11-15 23:12:43 +00002262# ac_fn_c_try_link LINENO
2263# -----------------------
2264# Try to link conftest.$ac_ext, and return whether this succeeded.
2265ac_fn_c_try_link ()
2266{
2267 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2268 rm -f conftest.$ac_objext conftest$ac_exeext
2269 if { { ac_try="$ac_link"
2270case "(($ac_try" in
2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272 *) ac_try_echo=$ac_try;;
2273esac
2274eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2275$as_echo "$ac_try_echo"; } >&5
2276 (eval "$ac_link") 2>conftest.err
2277 ac_status=$?
2278 if test -s conftest.err; then
2279 grep -v '^ *+' conftest.err >conftest.er1
2280 cat conftest.er1 >&5
2281 mv -f conftest.er1 conftest.err
2282 fi
2283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2284 test $ac_status = 0; } && {
2285 test -z "$ac_c_werror_flag" ||
2286 test ! -s conftest.err
2287 } && test -s conftest$ac_exeext && {
2288 test "$cross_compiling" = yes ||
2289 $as_test_x conftest$ac_exeext
2290 }; then :
2291 ac_retval=0
2292else
2293 $as_echo "$as_me: failed program was:" >&5
2294sed 's/^/| /' conftest.$ac_ext >&5
2295
2296 ac_retval=1
2297fi
2298 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2299 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2300 # interfere with the next link command; also delete a directory that is
2301 # left behind by Apple's compiler. We do this before executing the actions.
2302 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2303 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002304 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002305
2306} # ac_fn_c_try_link
2307
2308# ac_fn_c_check_func LINENO FUNC VAR
2309# ----------------------------------
2310# Tests whether FUNC exists, setting the cache variable VAR accordingly
2311ac_fn_c_check_func ()
2312{
2313 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2315$as_echo_n "checking for $2... " >&6; }
cristy0684af42010-07-09 00:00:05 +00002316if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002317 $as_echo_n "(cached) " >&6
2318else
2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320/* end confdefs.h. */
2321/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2323#define $2 innocuous_$2
2324
2325/* System header to define __stub macros and hopefully few prototypes,
2326 which can conflict with char $2 (); below.
2327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2328 <limits.h> exists even on freestanding compilers. */
2329
2330#ifdef __STDC__
2331# include <limits.h>
2332#else
2333# include <assert.h>
2334#endif
2335
2336#undef $2
2337
2338/* Override any GCC internal prototype to avoid an error.
2339 Use char because int might match the return type of a GCC
2340 builtin and then its argument prototype would still apply. */
2341#ifdef __cplusplus
2342extern "C"
2343#endif
2344char $2 ();
2345/* The GNU C library defines this for functions which it implements
2346 to always fail with ENOSYS. Some functions are actually named
2347 something starting with __ and the normal name is an alias. */
2348#if defined __stub_$2 || defined __stub___$2
2349choke me
2350#endif
2351
2352int
2353main ()
2354{
2355return $2 ();
2356 ;
2357 return 0;
2358}
2359_ACEOF
2360if ac_fn_c_try_link "$LINENO"; then :
2361 eval "$3=yes"
2362else
2363 eval "$3=no"
2364fi
2365rm -f core conftest.err conftest.$ac_objext \
2366 conftest$ac_exeext conftest.$ac_ext
2367fi
2368eval ac_res=\$$3
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2370$as_echo "$ac_res" >&6; }
2371 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2372
2373} # ac_fn_c_check_func
2374
2375# ac_fn_cxx_try_cpp LINENO
2376# ------------------------
2377# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2378ac_fn_cxx_try_cpp ()
2379{
2380 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2381 if { { ac_try="$ac_cpp conftest.$ac_ext"
2382case "(($ac_try" in
2383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2384 *) ac_try_echo=$ac_try;;
2385esac
2386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2387$as_echo "$ac_try_echo"; } >&5
2388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2389 ac_status=$?
2390 if test -s conftest.err; then
2391 grep -v '^ *+' conftest.err >conftest.er1
2392 cat conftest.er1 >&5
2393 mv -f conftest.er1 conftest.err
2394 fi
2395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2396 test $ac_status = 0; } >/dev/null && {
2397 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2398 test ! -s conftest.err
2399 }; then :
2400 ac_retval=0
2401else
2402 $as_echo "$as_me: failed program was:" >&5
2403sed 's/^/| /' conftest.$ac_ext >&5
2404
2405 ac_retval=1
2406fi
2407 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002408 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002409
2410} # ac_fn_cxx_try_cpp
2411
2412# ac_fn_cxx_try_link LINENO
2413# -------------------------
2414# Try to link conftest.$ac_ext, and return whether this succeeded.
2415ac_fn_cxx_try_link ()
2416{
2417 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2418 rm -f conftest.$ac_objext conftest$ac_exeext
2419 if { { ac_try="$ac_link"
2420case "(($ac_try" in
2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422 *) ac_try_echo=$ac_try;;
2423esac
2424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2425$as_echo "$ac_try_echo"; } >&5
2426 (eval "$ac_link") 2>conftest.err
2427 ac_status=$?
2428 if test -s conftest.err; then
2429 grep -v '^ *+' conftest.err >conftest.er1
2430 cat conftest.er1 >&5
2431 mv -f conftest.er1 conftest.err
2432 fi
2433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2434 test $ac_status = 0; } && {
2435 test -z "$ac_cxx_werror_flag" ||
2436 test ! -s conftest.err
2437 } && test -s conftest$ac_exeext && {
2438 test "$cross_compiling" = yes ||
2439 $as_test_x conftest$ac_exeext
2440 }; then :
2441 ac_retval=0
2442else
2443 $as_echo "$as_me: failed program was:" >&5
2444sed 's/^/| /' conftest.$ac_ext >&5
2445
2446 ac_retval=1
2447fi
2448 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2449 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2450 # interfere with the next link command; also delete a directory that is
2451 # left behind by Apple's compiler. We do this before executing the actions.
2452 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2453 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002454 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002455
2456} # ac_fn_cxx_try_link
2457
cristy0684af42010-07-09 00:00:05 +00002458# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2459# ---------------------------------------------
2460# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2461# accordingly.
cristy8b350f62009-11-15 23:12:43 +00002462ac_fn_c_check_decl ()
2463{
2464 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy0684af42010-07-09 00:00:05 +00002465 as_decl_name=`echo $2|sed 's/ *(.*//'`
2466 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2468$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2469if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002470 $as_echo_n "(cached) " >&6
2471else
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473/* end confdefs.h. */
2474$4
2475int
2476main ()
2477{
cristy0684af42010-07-09 00:00:05 +00002478#ifndef $as_decl_name
2479#ifdef __cplusplus
2480 (void) $as_decl_use;
2481#else
2482 (void) $as_decl_name;
2483#endif
cristy8b350f62009-11-15 23:12:43 +00002484#endif
2485
2486 ;
2487 return 0;
2488}
2489_ACEOF
2490if ac_fn_c_try_compile "$LINENO"; then :
2491 eval "$3=yes"
2492else
2493 eval "$3=no"
2494fi
2495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2496fi
2497eval ac_res=\$$3
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2499$as_echo "$ac_res" >&6; }
2500 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2501
2502} # ac_fn_c_check_decl
2503
2504# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2505# -------------------------------------------
2506# Tests whether TYPE exists after having included INCLUDES, setting cache
2507# variable VAR accordingly.
2508ac_fn_c_check_type ()
2509{
2510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2512$as_echo_n "checking for $2... " >&6; }
cristy0684af42010-07-09 00:00:05 +00002513if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002514 $as_echo_n "(cached) " >&6
2515else
2516 eval "$3=no"
2517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518/* end confdefs.h. */
2519$4
2520int
2521main ()
2522{
2523if (sizeof ($2))
2524 return 0;
2525 ;
2526 return 0;
2527}
2528_ACEOF
2529if ac_fn_c_try_compile "$LINENO"; then :
2530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2531/* end confdefs.h. */
2532$4
2533int
2534main ()
2535{
2536if (sizeof (($2)))
2537 return 0;
2538 ;
2539 return 0;
2540}
2541_ACEOF
2542if ac_fn_c_try_compile "$LINENO"; then :
2543
2544else
2545 eval "$3=yes"
2546fi
2547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2548fi
2549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2550fi
2551eval ac_res=\$$3
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2553$as_echo "$ac_res" >&6; }
2554 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2555
2556} # ac_fn_c_check_type
2557
cristy92703d82010-04-26 00:18:18 +00002558# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2559# ----------------------------------------------------
2560# Tries to find if the field MEMBER exists in type AGGR, after including
2561# INCLUDES, setting cache variable VAR accordingly.
2562ac_fn_c_check_member ()
2563{
2564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2566$as_echo_n "checking for $2.$3... " >&6; }
cristy0684af42010-07-09 00:00:05 +00002567if eval "test \"\${$4+set}\"" = set; then :
cristy92703d82010-04-26 00:18:18 +00002568 $as_echo_n "(cached) " >&6
2569else
2570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2571/* end confdefs.h. */
2572$5
2573int
2574main ()
2575{
2576static $2 ac_aggr;
2577if (ac_aggr.$3)
2578return 0;
2579 ;
2580 return 0;
2581}
2582_ACEOF
2583if ac_fn_c_try_compile "$LINENO"; then :
2584 eval "$4=yes"
2585else
2586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2587/* end confdefs.h. */
2588$5
2589int
2590main ()
2591{
2592static $2 ac_aggr;
2593if (sizeof ac_aggr.$3)
2594return 0;
2595 ;
2596 return 0;
2597}
2598_ACEOF
2599if ac_fn_c_try_compile "$LINENO"; then :
2600 eval "$4=yes"
2601else
2602 eval "$4=no"
2603fi
2604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605fi
2606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607fi
2608eval ac_res=\$$4
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2610$as_echo "$ac_res" >&6; }
2611 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2612
2613} # ac_fn_c_check_member
2614
cristy8b350f62009-11-15 23:12:43 +00002615# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2616# --------------------------------------------
2617# Tries to find the compile-time value of EXPR in a program that includes
2618# INCLUDES, setting VAR accordingly. Returns whether the value could be
2619# computed
2620ac_fn_c_compute_int ()
2621{
2622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2623 if test "$cross_compiling" = yes; then
2624 # Depending upon the size, compute the lo and hi bounds.
2625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2626/* end confdefs.h. */
2627$4
2628int
2629main ()
2630{
2631static int test_array [1 - 2 * !(($2) >= 0)];
2632test_array [0] = 0
2633
2634 ;
2635 return 0;
2636}
2637_ACEOF
2638if ac_fn_c_try_compile "$LINENO"; then :
2639 ac_lo=0 ac_mid=0
2640 while :; do
2641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2642/* end confdefs.h. */
2643$4
2644int
2645main ()
2646{
2647static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2648test_array [0] = 0
2649
2650 ;
2651 return 0;
2652}
2653_ACEOF
2654if ac_fn_c_try_compile "$LINENO"; then :
2655 ac_hi=$ac_mid; break
2656else
2657 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2658 if test $ac_lo -le $ac_mid; then
2659 ac_lo= ac_hi=
2660 break
2661 fi
2662 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2663fi
2664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2665 done
2666else
2667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2668/* end confdefs.h. */
2669$4
2670int
2671main ()
2672{
2673static int test_array [1 - 2 * !(($2) < 0)];
2674test_array [0] = 0
2675
2676 ;
2677 return 0;
2678}
2679_ACEOF
2680if ac_fn_c_try_compile "$LINENO"; then :
2681 ac_hi=-1 ac_mid=-1
2682 while :; do
2683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2684/* end confdefs.h. */
2685$4
2686int
2687main ()
2688{
2689static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2690test_array [0] = 0
2691
2692 ;
2693 return 0;
2694}
2695_ACEOF
2696if ac_fn_c_try_compile "$LINENO"; then :
2697 ac_lo=$ac_mid; break
2698else
2699 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2700 if test $ac_mid -le $ac_hi; then
2701 ac_lo= ac_hi=
2702 break
2703 fi
2704 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2705fi
2706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2707 done
2708else
2709 ac_lo= ac_hi=
2710fi
2711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2712fi
2713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2714# Binary search between lo and hi bounds.
2715while test "x$ac_lo" != "x$ac_hi"; do
2716 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2718/* end confdefs.h. */
2719$4
2720int
2721main ()
2722{
2723static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2724test_array [0] = 0
2725
2726 ;
2727 return 0;
2728}
2729_ACEOF
2730if ac_fn_c_try_compile "$LINENO"; then :
2731 ac_hi=$ac_mid
2732else
2733 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2734fi
2735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2736done
2737case $ac_lo in #((
2738?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2739'') ac_retval=1 ;;
2740esac
2741 else
2742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2743/* end confdefs.h. */
2744$4
2745static long int longval () { return $2; }
2746static unsigned long int ulongval () { return $2; }
2747#include <stdio.h>
2748#include <stdlib.h>
2749int
2750main ()
2751{
2752
2753 FILE *f = fopen ("conftest.val", "w");
2754 if (! f)
2755 return 1;
2756 if (($2) < 0)
2757 {
2758 long int i = longval ();
2759 if (i != ($2))
2760 return 1;
2761 fprintf (f, "%ld", i);
2762 }
2763 else
2764 {
2765 unsigned long int i = ulongval ();
2766 if (i != ($2))
2767 return 1;
2768 fprintf (f, "%lu", i);
2769 }
2770 /* Do not output a trailing newline, as this causes \r\n confusion
2771 on some platforms. */
2772 return ferror (f) || fclose (f) != 0;
2773
2774 ;
2775 return 0;
2776}
2777_ACEOF
2778if ac_fn_c_try_run "$LINENO"; then :
2779 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2780else
2781 ac_retval=1
2782fi
2783rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2784 conftest.$ac_objext conftest.beam conftest.$ac_ext
2785rm -f conftest.val
2786
2787 fi
2788 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002789 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002790
2791} # ac_fn_c_compute_int
2792
2793# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2794# ---------------------------------------------------------
2795# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2796# the include files in INCLUDES and setting the cache variable VAR
2797# accordingly.
2798ac_fn_cxx_check_header_mongrel ()
2799{
2800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy0684af42010-07-09 00:00:05 +00002801 if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2803$as_echo_n "checking for $2... " >&6; }
cristy0684af42010-07-09 00:00:05 +00002804if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002805 $as_echo_n "(cached) " >&6
2806fi
2807eval ac_res=\$$3
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2809$as_echo "$ac_res" >&6; }
2810else
2811 # Is the header compilable?
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2813$as_echo_n "checking $2 usability... " >&6; }
2814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2815/* end confdefs.h. */
2816$4
2817#include <$2>
2818_ACEOF
2819if ac_fn_cxx_try_compile "$LINENO"; then :
2820 ac_header_compiler=yes
2821else
2822 ac_header_compiler=no
2823fi
2824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2826$as_echo "$ac_header_compiler" >&6; }
2827
2828# Is the header present?
2829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2830$as_echo_n "checking $2 presence... " >&6; }
2831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2832/* end confdefs.h. */
2833#include <$2>
2834_ACEOF
2835if ac_fn_cxx_try_cpp "$LINENO"; then :
2836 ac_header_preproc=yes
2837else
2838 ac_header_preproc=no
2839fi
2840rm -f conftest.err conftest.$ac_ext
2841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2842$as_echo "$ac_header_preproc" >&6; }
2843
2844# So? What about this header?
2845case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2846 yes:no: )
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2848$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2850$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2851 ;;
2852 no:yes:* )
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2854$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2856$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2858$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2860$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2862$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy0684af42010-07-09 00:00:05 +00002863( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002864## Report this to http://www.imagemagick.org ##
cristy0684af42010-07-09 00:00:05 +00002865## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002866 ) | sed "s/^/$as_me: WARNING: /" >&2
2867 ;;
2868esac
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2870$as_echo_n "checking for $2... " >&6; }
cristy0684af42010-07-09 00:00:05 +00002871if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002872 $as_echo_n "(cached) " >&6
2873else
2874 eval "$3=\$ac_header_compiler"
2875fi
2876eval ac_res=\$$3
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2878$as_echo "$ac_res" >&6; }
2879fi
2880 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2881
2882} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002883cat >config.log <<_ACEOF
2884This file contains any messages produced by compilers while
2885running configure, to aid debugging if configure makes a mistake.
2886
cristyfbb4a972010-06-30 17:42:22 +00002887It was created by ImageMagick $as_me 6.6.3, which was
cristy0684af42010-07-09 00:00:05 +00002888generated by GNU Autoconf 2.66. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002889
2890 $ $0 $@
2891
2892_ACEOF
2893exec 5>>config.log
2894{
2895cat <<_ASUNAME
2896## --------- ##
2897## Platform. ##
2898## --------- ##
2899
2900hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2901uname -m = `(uname -m) 2>/dev/null || echo unknown`
2902uname -r = `(uname -r) 2>/dev/null || echo unknown`
2903uname -s = `(uname -s) 2>/dev/null || echo unknown`
2904uname -v = `(uname -v) 2>/dev/null || echo unknown`
2905
2906/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2907/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2908
2909/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2910/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2911/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2912/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2913/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2914/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2915/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2916
2917_ASUNAME
2918
2919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920for as_dir in $PATH
2921do
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002924 $as_echo "PATH: $as_dir"
2925 done
cristy3ed852e2009-09-05 21:47:34 +00002926IFS=$as_save_IFS
2927
2928} >&5
2929
2930cat >&5 <<_ACEOF
2931
2932
2933## ----------- ##
2934## Core tests. ##
2935## ----------- ##
2936
2937_ACEOF
2938
2939
2940# Keep a trace of the command line.
2941# Strip out --no-create and --no-recursion so they do not pile up.
2942# Strip out --silent because we don't want to record it for future runs.
2943# Also quote any args containing shell meta-characters.
2944# Make two passes to allow for proper duplicate-argument suppression.
2945ac_configure_args=
2946ac_configure_args0=
2947ac_configure_args1=
2948ac_must_keep_next=false
2949for ac_pass in 1 2
2950do
2951 for ac_arg
2952 do
2953 case $ac_arg in
2954 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2955 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2956 | -silent | --silent | --silen | --sile | --sil)
2957 continue ;;
2958 *\'*)
2959 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2960 esac
2961 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00002962 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00002963 2)
cristy8b350f62009-11-15 23:12:43 +00002964 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002965 if test $ac_must_keep_next = true; then
2966 ac_must_keep_next=false # Got value, back to normal.
2967 else
2968 case $ac_arg in
2969 *=* | --config-cache | -C | -disable-* | --disable-* \
2970 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2971 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2972 | -with-* | --with-* | -without-* | --without-* | --x)
2973 case "$ac_configure_args0 " in
2974 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2975 esac
2976 ;;
2977 -* ) ac_must_keep_next=true ;;
2978 esac
2979 fi
cristy8b350f62009-11-15 23:12:43 +00002980 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002981 ;;
2982 esac
2983 done
2984done
cristy8b350f62009-11-15 23:12:43 +00002985{ ac_configure_args0=; unset ac_configure_args0;}
2986{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00002987
2988# When interrupted or exit'd, cleanup temporary files, and complete
2989# config.log. We remove comments because anyway the quotes in there
2990# would cause problems or look ugly.
2991# WARNING: Use '\'' to represent an apostrophe within the trap.
2992# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2993trap 'exit_status=$?
2994 # Save into config.log some information that might help in debugging.
2995 {
2996 echo
2997
cristy0684af42010-07-09 00:00:05 +00002998 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00002999## Cache variables. ##
cristy0684af42010-07-09 00:00:05 +00003000## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003001 echo
3002 # The following way of writing the cache mishandles newlines in values,
3003(
3004 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3005 eval ac_val=\$$ac_var
3006 case $ac_val in #(
3007 *${as_nl}*)
3008 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003009 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003010$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3011 esac
3012 case $ac_var in #(
3013 _ | IFS | as_nl) ;; #(
3014 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003015 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003016 esac ;;
3017 esac
3018 done
3019 (set) 2>&1 |
3020 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3021 *${as_nl}ac_space=\ *)
3022 sed -n \
3023 "s/'\''/'\''\\\\'\'''\''/g;
3024 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3025 ;; #(
3026 *)
3027 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3028 ;;
3029 esac |
3030 sort
3031)
3032 echo
3033
cristy0684af42010-07-09 00:00:05 +00003034 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003035## Output variables. ##
cristy0684af42010-07-09 00:00:05 +00003036## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003037 echo
3038 for ac_var in $ac_subst_vars
3039 do
3040 eval ac_val=\$$ac_var
3041 case $ac_val in
3042 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3043 esac
3044 $as_echo "$ac_var='\''$ac_val'\''"
3045 done | sort
3046 echo
3047
3048 if test -n "$ac_subst_files"; then
cristy0684af42010-07-09 00:00:05 +00003049 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003050## File substitutions. ##
cristy0684af42010-07-09 00:00:05 +00003051## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003052 echo
3053 for ac_var in $ac_subst_files
3054 do
3055 eval ac_val=\$$ac_var
3056 case $ac_val in
3057 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3058 esac
3059 $as_echo "$ac_var='\''$ac_val'\''"
3060 done | sort
3061 echo
3062 fi
3063
3064 if test -s confdefs.h; then
cristy0684af42010-07-09 00:00:05 +00003065 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003066## confdefs.h. ##
cristy0684af42010-07-09 00:00:05 +00003067## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003068 echo
3069 cat confdefs.h
3070 echo
3071 fi
3072 test "$ac_signal" != 0 &&
3073 $as_echo "$as_me: caught signal $ac_signal"
3074 $as_echo "$as_me: exit $exit_status"
3075 } >&5
3076 rm -f core *.core core.conftest.* &&
3077 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3078 exit $exit_status
3079' 0
3080for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003081 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003082done
3083ac_signal=0
3084
3085# confdefs.h avoids OS command line length limits that DEFS can exceed.
3086rm -f -r conftest* confdefs.h
3087
cristy8b350f62009-11-15 23:12:43 +00003088$as_echo "/* confdefs.h */" > confdefs.h
3089
cristy3ed852e2009-09-05 21:47:34 +00003090# Predefined preprocessor variables.
3091
3092cat >>confdefs.h <<_ACEOF
3093#define PACKAGE_NAME "$PACKAGE_NAME"
3094_ACEOF
3095
cristy3ed852e2009-09-05 21:47:34 +00003096cat >>confdefs.h <<_ACEOF
3097#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3098_ACEOF
3099
cristy3ed852e2009-09-05 21:47:34 +00003100cat >>confdefs.h <<_ACEOF
3101#define PACKAGE_VERSION "$PACKAGE_VERSION"
3102_ACEOF
3103
cristy3ed852e2009-09-05 21:47:34 +00003104cat >>confdefs.h <<_ACEOF
3105#define PACKAGE_STRING "$PACKAGE_STRING"
3106_ACEOF
3107
cristy3ed852e2009-09-05 21:47:34 +00003108cat >>confdefs.h <<_ACEOF
3109#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3110_ACEOF
3111
cristy8b350f62009-11-15 23:12:43 +00003112cat >>confdefs.h <<_ACEOF
3113#define PACKAGE_URL "$PACKAGE_URL"
3114_ACEOF
3115
cristy3ed852e2009-09-05 21:47:34 +00003116
3117# Let the site file select an alternate cache file if it wants to.
3118# Prefer an explicitly selected file to automatically selected ones.
3119ac_site_file1=NONE
3120ac_site_file2=NONE
3121if test -n "$CONFIG_SITE"; then
cristy0684af42010-07-09 00:00:05 +00003122 # We do not want a PATH search for config.site.
3123 case $CONFIG_SITE in #((
3124 -*) ac_site_file1=./$CONFIG_SITE;;
3125 */*) ac_site_file1=$CONFIG_SITE;;
3126 *) ac_site_file1=./$CONFIG_SITE;;
3127 esac
cristy3ed852e2009-09-05 21:47:34 +00003128elif test "x$prefix" != xNONE; then
3129 ac_site_file1=$prefix/share/config.site
3130 ac_site_file2=$prefix/etc/config.site
3131else
3132 ac_site_file1=$ac_default_prefix/share/config.site
3133 ac_site_file2=$ac_default_prefix/etc/config.site
3134fi
3135for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3136do
3137 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003138 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003139 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003140$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3141 sed 's/^/| /' "$ac_site_file" >&5
cristy0684af42010-07-09 00:00:05 +00003142 . "$ac_site_file" \
3143 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3145as_fn_error $? "failed to load site script $ac_site_file
3146See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003147 fi
3148done
3149
3150if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003151 # Some versions of bash will fail to source /dev/null (special files
3152 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3153 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003154 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003155$as_echo "$as_me: loading cache $cache_file" >&6;}
3156 case $cache_file in
3157 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3158 *) . "./$cache_file";;
3159 esac
3160 fi
3161else
cristy8b350f62009-11-15 23:12:43 +00003162 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003163$as_echo "$as_me: creating cache $cache_file" >&6;}
3164 >$cache_file
3165fi
3166
cristycd4c5312009-11-22 01:19:08 +00003167as_fn_append ac_header_list " stdlib.h"
3168as_fn_append ac_header_list " unistd.h"
3169as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003170# Check that the precious variables saved in the cache have kept the same
3171# value.
3172ac_cache_corrupted=false
3173for ac_var in $ac_precious_vars; do
3174 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3175 eval ac_new_set=\$ac_env_${ac_var}_set
3176 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3177 eval ac_new_val=\$ac_env_${ac_var}_value
3178 case $ac_old_set,$ac_new_set in
3179 set,)
cristy8b350f62009-11-15 23:12:43 +00003180 { $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 +00003181$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3182 ac_cache_corrupted=: ;;
3183 ,set)
cristy8b350f62009-11-15 23:12:43 +00003184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003185$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3186 ac_cache_corrupted=: ;;
3187 ,);;
3188 *)
3189 if test "x$ac_old_val" != "x$ac_new_val"; then
3190 # differences in whitespace do not lead to failure.
3191 ac_old_val_w=`echo x $ac_old_val`
3192 ac_new_val_w=`echo x $ac_new_val`
3193 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003195$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3196 ac_cache_corrupted=:
3197 else
cristy8b350f62009-11-15 23:12:43 +00003198 { $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 +00003199$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3200 eval $ac_var=\$ac_old_val
3201 fi
cristy8b350f62009-11-15 23:12:43 +00003202 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003203$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003204 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003205$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3206 fi;;
3207 esac
3208 # Pass precious variables to config.status.
3209 if test "$ac_new_set" = set; then
3210 case $ac_new_val in
3211 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3212 *) ac_arg=$ac_var=$ac_new_val ;;
3213 esac
3214 case " $ac_configure_args " in
3215 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003216 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003217 esac
3218 fi
3219done
3220if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003224$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy0684af42010-07-09 00:00:05 +00003225 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003226fi
cristy8b350f62009-11-15 23:12:43 +00003227## -------------------- ##
3228## Main body of script. ##
3229## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003230
3231ac_ext=c
3232ac_cpp='$CPP $CPPFLAGS'
3233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236
3237
3238
3239ac_aux_dir=
3240for ac_dir in config "$srcdir"/config; do
cristy0684af42010-07-09 00:00:05 +00003241 if test -f "$ac_dir/install-sh"; then
3242 ac_aux_dir=$ac_dir
3243 ac_install_sh="$ac_aux_dir/install-sh -c"
3244 break
3245 elif test -f "$ac_dir/install.sh"; then
3246 ac_aux_dir=$ac_dir
3247 ac_install_sh="$ac_aux_dir/install.sh -c"
3248 break
3249 elif test -f "$ac_dir/shtool"; then
3250 ac_aux_dir=$ac_dir
3251 ac_install_sh="$ac_aux_dir/shtool install -c"
3252 break
3253 fi
cristy3ed852e2009-09-05 21:47:34 +00003254done
3255if test -z "$ac_aux_dir"; then
cristy0684af42010-07-09 00:00:05 +00003256 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003257fi
3258
3259# These three variables are undocumented and unsupported,
3260# and are intended to be withdrawn in a future Autoconf release.
3261# They can cause serious problems if a builder's source tree is in a directory
3262# whose full name contains unusual characters.
3263ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3264ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3265ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3266
3267
3268
3269
3270ac_config_headers="$ac_config_headers config/config.h"
3271
3272ac_config_commands="$ac_config_commands magick/magick-config.h"
3273
cristy430a7312010-01-21 20:44:04 +00003274ac_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 +00003275
3276
3277#
3278# Save initial user-tunable values
3279#
3280USER_LIBS=$LIBS
3281for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3282 eval isset=\${$var+set}
3283 if test "$isset" = 'set'; then
3284 eval val=$`echo $var`
3285 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3286 fi
3287done
3288
3289
3290CONFIGURE_ARGS="$0 ${ac_configure_args}"
3291
3292
3293# Source file containing package/library versioning information.
3294. ${srcdir}/version.sh
3295
cristy15a88782010-01-31 23:24:49 +00003296echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003297# Make sure we can run config.sub.
3298$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy0684af42010-07-09 00:00:05 +00003299 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003300
cristy8b350f62009-11-15 23:12:43 +00003301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003302$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003303if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003304 $as_echo_n "(cached) " >&6
3305else
3306 ac_build_alias=$build_alias
3307test "x$ac_build_alias" = x &&
3308 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3309test "x$ac_build_alias" = x &&
cristy0684af42010-07-09 00:00:05 +00003310 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003311ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy0684af42010-07-09 00:00:05 +00003312 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003313
3314fi
cristy8b350f62009-11-15 23:12:43 +00003315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003316$as_echo "$ac_cv_build" >&6; }
3317case $ac_cv_build in
3318*-*-*) ;;
cristy0684af42010-07-09 00:00:05 +00003319*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003320esac
3321build=$ac_cv_build
3322ac_save_IFS=$IFS; IFS='-'
3323set x $ac_cv_build
3324shift
3325build_cpu=$1
3326build_vendor=$2
3327shift; shift
3328# Remember, the first character of IFS is used to create $*,
3329# except with old shells:
3330build_os=$*
3331IFS=$ac_save_IFS
3332case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3333
3334
cristy8b350f62009-11-15 23:12:43 +00003335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003336$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003337if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003338 $as_echo_n "(cached) " >&6
3339else
3340 if test "x$host_alias" = x; then
3341 ac_cv_host=$ac_cv_build
3342else
3343 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy0684af42010-07-09 00:00:05 +00003344 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003345fi
3346
3347fi
cristy8b350f62009-11-15 23:12:43 +00003348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003349$as_echo "$ac_cv_host" >&6; }
3350case $ac_cv_host in
3351*-*-*) ;;
cristy0684af42010-07-09 00:00:05 +00003352*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003353esac
3354host=$ac_cv_host
3355ac_save_IFS=$IFS; IFS='-'
3356set x $ac_cv_host
3357shift
3358host_cpu=$1
3359host_vendor=$2
3360shift; shift
3361# Remember, the first character of IFS is used to create $*,
3362# except with old shells:
3363host_os=$*
3364IFS=$ac_save_IFS
3365case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3366
3367
cristy8b350f62009-11-15 23:12:43 +00003368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003369$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003370if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003371 $as_echo_n "(cached) " >&6
3372else
3373 if test "x$target_alias" = x; then
3374 ac_cv_target=$ac_cv_host
3375else
3376 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy0684af42010-07-09 00:00:05 +00003377 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003378fi
3379
3380fi
cristy8b350f62009-11-15 23:12:43 +00003381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003382$as_echo "$ac_cv_target" >&6; }
3383case $ac_cv_target in
3384*-*-*) ;;
cristy0684af42010-07-09 00:00:05 +00003385*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003386esac
3387target=$ac_cv_target
3388ac_save_IFS=$IFS; IFS='-'
3389set x $ac_cv_target
3390shift
3391target_cpu=$1
3392target_vendor=$2
3393shift; shift
3394# Remember, the first character of IFS is used to create $*,
3395# except with old shells:
3396target_os=$*
3397IFS=$ac_save_IFS
3398case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3399
3400
3401# The aliases save the names the user supplied, while $host etc.
3402# will get canonicalized.
3403test -n "$target_alias" &&
3404 test "$program_prefix$program_suffix$program_transform_name" = \
3405 NONENONEs,x,x, &&
3406 program_prefix=${target_alias}-
3407
cristy837d6dc2010-02-27 01:16:57 +00003408
3409
3410
3411
cristy3225a072010-04-17 01:47:28 +00003412MAGICK_TARGET_CPU=$target_cpu
3413
3414
3415MAGICK_TARGET_VENDOR=$target_vendor
3416
3417
3418MAGICK_TARGET_OS=$target_os
3419
3420
cristy3ed852e2009-09-05 21:47:34 +00003421# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003422MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3423
3424MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3425
cristy3ed852e2009-09-05 21:47:34 +00003426
3427
3428# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003430$as_echo_n "checking whether build environment is sane... " >&6; }
3431# Just in case
3432sleep 1
3433echo timestamp > conftest.file
3434# Reject unsafe characters in $srcdir or the absolute working directory
3435# name. Accept space and tab only in the latter.
3436am_lf='
3437'
3438case `pwd` in
3439 *[\\\"\#\$\&\'\`$am_lf]*)
cristy0684af42010-07-09 00:00:05 +00003440 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003441esac
3442case $srcdir in
3443 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy0684af42010-07-09 00:00:05 +00003444 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003445esac
3446
3447# Do `set' in a subshell so we don't clobber the current shell's
3448# arguments. Must try -L first in case configure is actually a
3449# symlink; some systems play weird games with the mod time of symlinks
3450# (eg FreeBSD returns the mod time of the symlink's containing
3451# directory).
3452if (
3453 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3454 if test "$*" = "X"; then
3455 # -L didn't work.
3456 set X `ls -t "$srcdir/configure" conftest.file`
3457 fi
3458 rm -f conftest.file
3459 if test "$*" != "X $srcdir/configure conftest.file" \
3460 && test "$*" != "X conftest.file $srcdir/configure"; then
3461
3462 # If neither matched, then we have a broken ls. This can happen
3463 # if, for instance, CONFIG_SHELL is bash and it inherits a
3464 # broken ls alias from the environment. This has actually
3465 # happened. Such a system could not be considered "sane".
cristy0684af42010-07-09 00:00:05 +00003466 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy8b350f62009-11-15 23:12:43 +00003467alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003468 fi
3469
3470 test "$2" = conftest.file
3471 )
3472then
3473 # Ok.
3474 :
3475else
cristy0684af42010-07-09 00:00:05 +00003476 as_fn_error $? "newly created file is older than distributed files!
cristy8b350f62009-11-15 23:12:43 +00003477Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003478fi
cristy8b350f62009-11-15 23:12:43 +00003479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003480$as_echo "yes" >&6; }
3481
3482am__api_version='1.11'
3483
3484# Find a good install program. We prefer a C program (faster),
3485# so one script is as good as another. But avoid the broken or
3486# incompatible versions:
3487# SysV /etc/install, /usr/sbin/install
3488# SunOS /usr/etc/install
3489# IRIX /sbin/install
3490# AIX /bin/install
3491# AmigaOS /C/install, which installs bootblocks on floppy discs
3492# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3493# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3494# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3495# OS/2's system install, which has a completely different semantic
3496# ./install, which can be erroneously created by make from ./install.sh.
3497# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003499$as_echo_n "checking for a BSD-compatible install... " >&6; }
3500if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003501if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003502 $as_echo_n "(cached) " >&6
3503else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505for as_dir in $PATH
3506do
3507 IFS=$as_save_IFS
3508 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003509 # Account for people who put trailing slashes in PATH elements.
3510case $as_dir/ in #((
3511 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003512 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003513 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003514 /usr/ucb/* ) ;;
3515 *)
3516 # OSF1 and SCO ODT 3.0 have their own names for install.
3517 # Don't use installbsd from OSF since it installs stuff as root
3518 # by default.
3519 for ac_prog in ginstall scoinst install; do
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3522 if test $ac_prog = install &&
3523 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3524 # AIX install. It has an incompatible calling convention.
3525 :
3526 elif test $ac_prog = install &&
3527 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3528 # program-specific install script used by HP pwplus--don't use.
3529 :
3530 else
3531 rm -rf conftest.one conftest.two conftest.dir
3532 echo one > conftest.one
3533 echo two > conftest.two
3534 mkdir conftest.dir
3535 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3536 test -s conftest.one && test -s conftest.two &&
3537 test -s conftest.dir/conftest.one &&
3538 test -s conftest.dir/conftest.two
3539 then
3540 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3541 break 3
3542 fi
3543 fi
3544 fi
3545 done
3546 done
3547 ;;
3548esac
3549
cristy8b350f62009-11-15 23:12:43 +00003550 done
cristy3ed852e2009-09-05 21:47:34 +00003551IFS=$as_save_IFS
3552
3553rm -rf conftest.one conftest.two conftest.dir
3554
3555fi
3556 if test "${ac_cv_path_install+set}" = set; then
3557 INSTALL=$ac_cv_path_install
3558 else
3559 # As a last resort, use the slow shell script. Don't cache a
3560 # value for INSTALL within a source directory, because that will
3561 # break other packages using the cache if that directory is
3562 # removed, or if the value is a relative name.
3563 INSTALL=$ac_install_sh
3564 fi
3565fi
cristy8b350f62009-11-15 23:12:43 +00003566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003567$as_echo "$INSTALL" >&6; }
3568
3569# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3570# It thinks the first close brace ends the variable substitution.
3571test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3572
3573test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3574
3575test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3576
3577test "$program_prefix" != NONE &&
3578 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3579# Use a double $ so make ignores it.
3580test "$program_suffix" != NONE &&
3581 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3582# Double any \ or $.
3583# By default was `s,x,x', remove it if useless.
3584ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3585program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3586
3587# expand $ac_aux_dir to an absolute path
3588am_aux_dir=`cd $ac_aux_dir && pwd`
3589
3590if test x"${MISSING+set}" != xset; then
3591 case $am_aux_dir in
3592 *\ * | *\ *)
3593 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3594 *)
3595 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3596 esac
3597fi
3598# Use eval to expand $SHELL
3599if eval "$MISSING --run true"; then
3600 am_missing_run="$MISSING --run "
3601else
3602 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003604$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3605fi
3606
3607if test x"${install_sh}" != xset; then
3608 case $am_aux_dir in
3609 *\ * | *\ *)
3610 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3611 *)
3612 install_sh="\${SHELL} $am_aux_dir/install-sh"
3613 esac
3614fi
3615
3616# Installed binaries are usually stripped using `strip' when the user
3617# run `make install-strip'. However `strip' might not be the right
3618# tool to use in cross-compilation environments, therefore Automake
3619# will honor the `STRIP' environment variable to overrule this program.
3620if test "$cross_compiling" != no; then
3621 if test -n "$ac_tool_prefix"; then
3622 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3623set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003625$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003626if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003627 $as_echo_n "(cached) " >&6
3628else
3629 if test -n "$STRIP"; then
3630 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3631else
3632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633for as_dir in $PATH
3634do
3635 IFS=$as_save_IFS
3636 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003637 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3639 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003641 break 2
3642 fi
3643done
cristy8b350f62009-11-15 23:12:43 +00003644 done
cristy3ed852e2009-09-05 21:47:34 +00003645IFS=$as_save_IFS
3646
3647fi
3648fi
3649STRIP=$ac_cv_prog_STRIP
3650if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003652$as_echo "$STRIP" >&6; }
3653else
cristy8b350f62009-11-15 23:12:43 +00003654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003655$as_echo "no" >&6; }
3656fi
3657
3658
3659fi
3660if test -z "$ac_cv_prog_STRIP"; then
3661 ac_ct_STRIP=$STRIP
3662 # Extract the first word of "strip", so it can be a program name with args.
3663set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003665$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003666if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003667 $as_echo_n "(cached) " >&6
3668else
3669 if test -n "$ac_ct_STRIP"; then
3670 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3671else
3672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673for as_dir in $PATH
3674do
3675 IFS=$as_save_IFS
3676 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003677 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3679 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003681 break 2
3682 fi
3683done
cristy8b350f62009-11-15 23:12:43 +00003684 done
cristy3ed852e2009-09-05 21:47:34 +00003685IFS=$as_save_IFS
3686
3687fi
3688fi
3689ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3690if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003692$as_echo "$ac_ct_STRIP" >&6; }
3693else
cristy8b350f62009-11-15 23:12:43 +00003694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003695$as_echo "no" >&6; }
3696fi
3697
3698 if test "x$ac_ct_STRIP" = x; then
3699 STRIP=":"
3700 else
3701 case $cross_compiling:$ac_tool_warned in
3702yes:)
cristy8b350f62009-11-15 23:12:43 +00003703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3705ac_tool_warned=yes ;;
3706esac
3707 STRIP=$ac_ct_STRIP
3708 fi
3709else
3710 STRIP="$ac_cv_prog_STRIP"
3711fi
3712
3713fi
3714INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3715
cristy8b350f62009-11-15 23:12:43 +00003716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003717$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3718if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003719 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003720 $as_echo_n "(cached) " >&6
3721else
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3724do
3725 IFS=$as_save_IFS
3726 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003727 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003728 for ac_exec_ext in '' $ac_executable_extensions; do
3729 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3730 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3731 'mkdir (GNU coreutils) '* | \
3732 'mkdir (coreutils) '* | \
3733 'mkdir (fileutils) '4.1*)
3734 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3735 break 3;;
3736 esac
3737 done
3738 done
cristy8b350f62009-11-15 23:12:43 +00003739 done
cristy3ed852e2009-09-05 21:47:34 +00003740IFS=$as_save_IFS
3741
3742fi
3743
cristycd4c5312009-11-22 01:19:08 +00003744 test -d ./--version && rmdir ./--version
cristy3ed852e2009-09-05 21:47:34 +00003745 if test "${ac_cv_path_mkdir+set}" = set; then
3746 MKDIR_P="$ac_cv_path_mkdir -p"
3747 else
3748 # As a last resort, use the slow shell script. Don't cache a
3749 # value for MKDIR_P within a source directory, because that will
3750 # break other packages using the cache if that directory is
3751 # removed, or if the value is a relative name.
cristy3ed852e2009-09-05 21:47:34 +00003752 MKDIR_P="$ac_install_sh -d"
3753 fi
3754fi
cristy8b350f62009-11-15 23:12:43 +00003755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003756$as_echo "$MKDIR_P" >&6; }
3757
3758mkdir_p="$MKDIR_P"
3759case $mkdir_p in
3760 [\\/$]* | ?:[\\/]*) ;;
3761 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3762esac
3763
3764for ac_prog in gawk mawk nawk awk
3765do
3766 # Extract the first word of "$ac_prog", so it can be a program name with args.
3767set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003769$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003770if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003771 $as_echo_n "(cached) " >&6
3772else
3773 if test -n "$AWK"; then
3774 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3775else
3776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777for as_dir in $PATH
3778do
3779 IFS=$as_save_IFS
3780 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003781 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3783 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003785 break 2
3786 fi
3787done
cristy8b350f62009-11-15 23:12:43 +00003788 done
cristy3ed852e2009-09-05 21:47:34 +00003789IFS=$as_save_IFS
3790
3791fi
3792fi
3793AWK=$ac_cv_prog_AWK
3794if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003796$as_echo "$AWK" >&6; }
3797else
cristy8b350f62009-11-15 23:12:43 +00003798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003799$as_echo "no" >&6; }
3800fi
3801
3802
3803 test -n "$AWK" && break
3804done
3805
cristy8b350f62009-11-15 23:12:43 +00003806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003807$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3808set x ${MAKE-make}
3809ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy0684af42010-07-09 00:00:05 +00003810if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003811 $as_echo_n "(cached) " >&6
3812else
3813 cat >conftest.make <<\_ACEOF
3814SHELL = /bin/sh
3815all:
3816 @echo '@@@%%%=$(MAKE)=@@@%%%'
3817_ACEOF
cristy0684af42010-07-09 00:00:05 +00003818# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy3ed852e2009-09-05 21:47:34 +00003819case `${MAKE-make} -f conftest.make 2>/dev/null` in
3820 *@@@%%%=?*=@@@%%%*)
3821 eval ac_cv_prog_make_${ac_make}_set=yes;;
3822 *)
3823 eval ac_cv_prog_make_${ac_make}_set=no;;
3824esac
3825rm -f conftest.make
3826fi
3827if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003829$as_echo "yes" >&6; }
3830 SET_MAKE=
3831else
cristy8b350f62009-11-15 23:12:43 +00003832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003833$as_echo "no" >&6; }
3834 SET_MAKE="MAKE=${MAKE-make}"
3835fi
3836
3837rm -rf .tst 2>/dev/null
3838mkdir .tst 2>/dev/null
3839if test -d .tst; then
3840 am__leading_dot=.
3841else
3842 am__leading_dot=_
3843fi
3844rmdir .tst 2>/dev/null
3845
3846if test "`cd $srcdir && pwd`" != "`pwd`"; then
3847 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3848 # is not polluted with repeated "-I."
3849 am__isrc=' -I$(srcdir)'
3850 # test to see if srcdir already configured
3851 if test -f $srcdir/config.status; then
cristy0684af42010-07-09 00:00:05 +00003852 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003853 fi
3854fi
3855
3856# test whether we have cygpath
3857if test -z "$CYGPATH_W"; then
3858 if (cygpath --version) >/dev/null 2>/dev/null; then
3859 CYGPATH_W='cygpath -w'
3860 else
3861 CYGPATH_W=echo
3862 fi
3863fi
3864
3865
3866# Define the identity of the package.
3867 PACKAGE=$PACKAGE_NAME
cristy15a88782010-01-31 23:24:49 +00003868 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003869
3870
3871# Some tools Automake needs.
3872
3873ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3874
3875
3876AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3877
3878
3879AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3880
3881
3882AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3883
3884
3885MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3886
3887# We need awk for the "check" target. The system "awk" is bad on
3888# some platforms.
3889# Always define AMTAR for backward compatibility.
3890
3891AMTAR=${AMTAR-"${am_missing_run}tar"}
3892
3893am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3894
3895
3896
3897
3898
3899
3900# Enable support for silent build rules
3901# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00003902if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003903 enableval=$enable_silent_rules;
3904fi
3905
3906case $enable_silent_rules in
3907yes) AM_DEFAULT_VERBOSITY=0;;
3908no) AM_DEFAULT_VERBOSITY=1;;
3909*) AM_DEFAULT_VERBOSITY=0;;
3910esac
3911AM_BACKSLASH='\'
3912
3913
3914MAGICK_LIB_VERSION="0x"
3915if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3916 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3917fi
3918MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3919if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3920 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3921fi
3922MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3923if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3924 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3925fi
3926MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3927
3928
3929# Definition used to define MagickLibVersionText in version.h
3930MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3931
3932
3933# Definition used to define MagickLibVersionNumber in version.h
3934MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3935
3936
3937# Regenerate config.status if ChangeLog or version.sh is updated.
3938CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3939
3940
3941PERLMAINCC=$CC
3942
3943MAGICK_CFLAGS=''
3944MAGICK_CPPFLAGS=$CPPFLAGS_USER
3945MAGICK_PCFLAGS=$CPPFLAGS_USER
3946MAGICK_LDFLAGS=''
3947MAGICK_LIBS=''
3948
3949#
3950# Evaluate shell variable equivalents to Makefile directory variables
3951#
3952if test "x$prefix" = xNONE; then
3953 prefix=$ac_default_prefix
3954fi
3955# Let make expand exec_prefix.
3956if test "x$exec_prefix" = xNONE; then
3957 exec_prefix='${prefix}'
3958fi
3959
3960#
3961eval "eval PREFIX_DIR=${prefix}"
3962
3963eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3964
3965eval "eval BIN_DIR=$bindir"
3966
3967eval "eval SBIN_DIR=$sbindir"
3968
3969eval "eval LIBEXEC_DIR=$libexecdir"
3970
3971eval "eval DATA_DIR=$datadir"
3972
3973eval "eval SYSCONF_DIR=$sysconfdir"
3974
3975eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3976
3977eval "eval LOCALSTATE_DIR=$localstatedir"
3978
3979eval "eval LIB_DIR=$libdir"
3980
3981eval "eval INCLUDE_DIR=$includedir"
3982
3983eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
3984
3985eval "eval INFO_DIR=$infodir"
3986
3987eval "eval MAN_DIR=$mandir"
3988
3989
3990# Get full paths to source and build directories
3991srcdirfull="`cd $srcdir && pwd`"
3992builddir="`pwd`"
3993
3994#
3995# Compute variables useful for running uninstalled software.
3996#
3997MAGICK_CODER_MODULE_PATH="${builddir}/coders"
3998MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
3999MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4000MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4001DIRSEP=':'
4002case "${build_os}" in
4003 mingw* )
4004 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4005 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4006 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4007 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4008 DIRSEP=';'
4009 ;;
4010esac
4011case "${host_os}" in
4012 mingw* )
4013 DIRSEP=';'
4014 ;;
4015esac
4016
4017
4018
4019
4020
4021
cristya0b81c32010-01-22 02:54:33 +00004022
4023#
4024# Enable OS features.
4025#
4026DEPDIR="${am__leading_dot}deps"
4027
4028ac_config_commands="$ac_config_commands depfiles"
4029
4030
4031am_make=${MAKE-make}
4032cat > confinc << 'END'
4033am__doit:
4034 @echo this is the am__doit target
4035.PHONY: am__doit
4036END
4037# If we don't find an include directive, just comment out the code.
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4039$as_echo_n "checking for style of include used by $am_make... " >&6; }
4040am__include="#"
4041am__quote=
4042_am_result=none
4043# First try GNU make style include.
4044echo "include confinc" > confmf
4045# Ignore all kinds of additional output from `make'.
4046case `$am_make -s -f confmf 2> /dev/null` in #(
4047*the\ am__doit\ target*)
4048 am__include=include
4049 am__quote=
4050 _am_result=GNU
4051 ;;
4052esac
4053# Now try BSD make style include.
4054if test "$am__include" = "#"; then
4055 echo '.include "confinc"' > confmf
4056 case `$am_make -s -f confmf 2> /dev/null` in #(
4057 *the\ am__doit\ target*)
4058 am__include=.include
4059 am__quote="\""
4060 _am_result=BSD
4061 ;;
4062 esac
4063fi
4064
4065
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4067$as_echo "$_am_result" >&6; }
4068rm -f confinc confmf
4069
4070# Check whether --enable-dependency-tracking was given.
4071if test "${enable_dependency_tracking+set}" = set; then :
4072 enableval=$enable_dependency_tracking;
4073fi
4074
4075if test "x$enable_dependency_tracking" != xno; then
4076 am_depcomp="$ac_aux_dir/depcomp"
4077 AMDEPBACKSLASH='\'
4078fi
4079 if test "x$enable_dependency_tracking" != xno; then
4080 AMDEP_TRUE=
4081 AMDEP_FALSE='#'
4082else
4083 AMDEP_TRUE='#'
4084 AMDEP_FALSE=
4085fi
4086
4087
cristy3ed852e2009-09-05 21:47:34 +00004088ac_ext=c
4089ac_cpp='$CPP $CPPFLAGS'
4090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093if test -n "$ac_tool_prefix"; then
4094 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4095set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004097$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004098if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004099 $as_echo_n "(cached) " >&6
4100else
4101 if test -n "$CC"; then
4102 ac_cv_prog_CC="$CC" # Let the user override the test.
4103else
4104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105for as_dir in $PATH
4106do
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004109 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4111 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004113 break 2
4114 fi
4115done
cristy8b350f62009-11-15 23:12:43 +00004116 done
cristy3ed852e2009-09-05 21:47:34 +00004117IFS=$as_save_IFS
4118
4119fi
4120fi
4121CC=$ac_cv_prog_CC
4122if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004124$as_echo "$CC" >&6; }
4125else
cristy8b350f62009-11-15 23:12:43 +00004126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004127$as_echo "no" >&6; }
4128fi
4129
4130
4131fi
4132if test -z "$ac_cv_prog_CC"; then
4133 ac_ct_CC=$CC
4134 # Extract the first word of "gcc", so it can be a program name with args.
4135set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004137$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004138if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004139 $as_echo_n "(cached) " >&6
4140else
4141 if test -n "$ac_ct_CC"; then
4142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4143else
4144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145for as_dir in $PATH
4146do
4147 IFS=$as_save_IFS
4148 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004149 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4151 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004153 break 2
4154 fi
4155done
cristy8b350f62009-11-15 23:12:43 +00004156 done
cristy3ed852e2009-09-05 21:47:34 +00004157IFS=$as_save_IFS
4158
4159fi
4160fi
4161ac_ct_CC=$ac_cv_prog_ac_ct_CC
4162if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004164$as_echo "$ac_ct_CC" >&6; }
4165else
cristy8b350f62009-11-15 23:12:43 +00004166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004167$as_echo "no" >&6; }
4168fi
4169
4170 if test "x$ac_ct_CC" = x; then
4171 CC=""
4172 else
4173 case $cross_compiling:$ac_tool_warned in
4174yes:)
cristy8b350f62009-11-15 23:12:43 +00004175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4177ac_tool_warned=yes ;;
4178esac
4179 CC=$ac_ct_CC
4180 fi
4181else
4182 CC="$ac_cv_prog_CC"
4183fi
4184
4185if test -z "$CC"; then
4186 if test -n "$ac_tool_prefix"; then
4187 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4188set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004190$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004191if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004192 $as_echo_n "(cached) " >&6
4193else
4194 if test -n "$CC"; then
4195 ac_cv_prog_CC="$CC" # Let the user override the test.
4196else
4197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198for as_dir in $PATH
4199do
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004202 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4204 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004206 break 2
4207 fi
4208done
cristy8b350f62009-11-15 23:12:43 +00004209 done
cristy3ed852e2009-09-05 21:47:34 +00004210IFS=$as_save_IFS
4211
4212fi
4213fi
4214CC=$ac_cv_prog_CC
4215if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004217$as_echo "$CC" >&6; }
4218else
cristy8b350f62009-11-15 23:12:43 +00004219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004220$as_echo "no" >&6; }
4221fi
4222
4223
4224 fi
4225fi
4226if test -z "$CC"; then
4227 # Extract the first word of "cc", so it can be a program name with args.
4228set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004230$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004231if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004232 $as_echo_n "(cached) " >&6
4233else
4234 if test -n "$CC"; then
4235 ac_cv_prog_CC="$CC" # Let the user override the test.
4236else
4237 ac_prog_rejected=no
4238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239for as_dir in $PATH
4240do
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004243 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4245 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4246 ac_prog_rejected=yes
4247 continue
4248 fi
4249 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004251 break 2
4252 fi
4253done
cristy8b350f62009-11-15 23:12:43 +00004254 done
cristy3ed852e2009-09-05 21:47:34 +00004255IFS=$as_save_IFS
4256
4257if test $ac_prog_rejected = yes; then
4258 # We found a bogon in the path, so make sure we never use it.
4259 set dummy $ac_cv_prog_CC
4260 shift
4261 if test $# != 0; then
4262 # We chose a different compiler from the bogus one.
4263 # However, it has the same basename, so the bogon will be chosen
4264 # first if we set CC to just the basename; use the full file name.
4265 shift
4266 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4267 fi
4268fi
4269fi
4270fi
4271CC=$ac_cv_prog_CC
4272if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004274$as_echo "$CC" >&6; }
4275else
cristy8b350f62009-11-15 23:12:43 +00004276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004277$as_echo "no" >&6; }
4278fi
4279
4280
4281fi
4282if test -z "$CC"; then
4283 if test -n "$ac_tool_prefix"; then
4284 for ac_prog in cl.exe
4285 do
4286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4287set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004289$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004290if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004291 $as_echo_n "(cached) " >&6
4292else
4293 if test -n "$CC"; then
4294 ac_cv_prog_CC="$CC" # Let the user override the test.
4295else
4296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297for as_dir in $PATH
4298do
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004301 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4303 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004305 break 2
4306 fi
4307done
cristy8b350f62009-11-15 23:12:43 +00004308 done
cristy3ed852e2009-09-05 21:47:34 +00004309IFS=$as_save_IFS
4310
4311fi
4312fi
4313CC=$ac_cv_prog_CC
4314if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004316$as_echo "$CC" >&6; }
4317else
cristy8b350f62009-11-15 23:12:43 +00004318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004319$as_echo "no" >&6; }
4320fi
4321
4322
4323 test -n "$CC" && break
4324 done
4325fi
4326if test -z "$CC"; then
4327 ac_ct_CC=$CC
4328 for ac_prog in cl.exe
4329do
4330 # Extract the first word of "$ac_prog", so it can be a program name with args.
4331set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004333$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004334if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004335 $as_echo_n "(cached) " >&6
4336else
4337 if test -n "$ac_ct_CC"; then
4338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4339else
4340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341for as_dir in $PATH
4342do
4343 IFS=$as_save_IFS
4344 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004345 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4347 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004349 break 2
4350 fi
4351done
cristy8b350f62009-11-15 23:12:43 +00004352 done
cristy3ed852e2009-09-05 21:47:34 +00004353IFS=$as_save_IFS
4354
4355fi
4356fi
4357ac_ct_CC=$ac_cv_prog_ac_ct_CC
4358if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004360$as_echo "$ac_ct_CC" >&6; }
4361else
cristy8b350f62009-11-15 23:12:43 +00004362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004363$as_echo "no" >&6; }
4364fi
4365
4366
4367 test -n "$ac_ct_CC" && break
4368done
4369
4370 if test "x$ac_ct_CC" = x; then
4371 CC=""
4372 else
4373 case $cross_compiling:$ac_tool_warned in
4374yes:)
cristy8b350f62009-11-15 23:12:43 +00004375{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004376$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4377ac_tool_warned=yes ;;
4378esac
4379 CC=$ac_ct_CC
4380 fi
4381fi
4382
4383fi
4384
4385
cristy8b350f62009-11-15 23:12:43 +00004386test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +00004388as_fn_error $? "no acceptable C compiler found in \$PATH
4389See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004390
4391# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004392$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004393set X $ac_compile
4394ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004395for ac_option in --version -v -V -qversion; do
4396 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004397case "(($ac_try" in
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4400esac
cristy8b350f62009-11-15 23:12:43 +00004401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4402$as_echo "$ac_try_echo"; } >&5
4403 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004404 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004405 if test -s conftest.err; then
4406 sed '10a\
4407... rest of stderr output deleted ...
4408 10q' conftest.err >conftest.er1
4409 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004410 fi
cristycd4c5312009-11-22 01:19:08 +00004411 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4413 test $ac_status = 0; }
4414done
cristy3ed852e2009-09-05 21:47:34 +00004415
cristy8b350f62009-11-15 23:12:43 +00004416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004417/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004418
cristy3ed852e2009-09-05 21:47:34 +00004419int
4420main ()
4421{
4422
4423 ;
4424 return 0;
4425}
4426_ACEOF
4427ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004428ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004429# Try to create an executable without -o first, disregard a.out.
4430# It will help us diagnose broken compilers, and finding out an intuition
4431# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4433$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004434ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4435
4436# The possible output files:
4437ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4438
4439ac_rmfiles=
4440for ac_file in $ac_files
4441do
4442 case $ac_file in
4443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4444 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4445 esac
4446done
4447rm -f $ac_rmfiles
4448
cristy8b350f62009-11-15 23:12:43 +00004449if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004450case "(($ac_try" in
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4453esac
cristy8b350f62009-11-15 23:12:43 +00004454eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004456 (eval "$ac_link_default") 2>&5
4457 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4459 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004460 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4461# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4462# in a Makefile. We should not override ac_cv_exeext if it was cached,
4463# so that the user can short-circuit this test for compilers unknown to
4464# Autoconf.
4465for ac_file in $ac_files ''
4466do
4467 test -f "$ac_file" || continue
4468 case $ac_file in
4469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4470 ;;
4471 [ab].out )
4472 # We found the default executable, but exeext='' is most
4473 # certainly right.
4474 break;;
4475 *.* )
cristy8b350f62009-11-15 23:12:43 +00004476 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004477 then :; else
4478 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4479 fi
4480 # We set ac_cv_exeext here because the later test for it is not
4481 # safe: cross compilers may not add the suffix if given an `-o'
4482 # argument, so we may need to know it at that point already.
4483 # Even if this section looks crufty: it has the advantage of
4484 # actually working.
4485 break;;
4486 * )
4487 break;;
4488 esac
4489done
4490test "$ac_cv_exeext" = no && ac_cv_exeext=
4491
4492else
4493 ac_file=''
4494fi
cristy8b350f62009-11-15 23:12:43 +00004495if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497$as_echo "no" >&6; }
4498$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004499sed 's/^/| /' conftest.$ac_ext >&5
4500
cristy8b350f62009-11-15 23:12:43 +00004501{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004502$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +00004503as_fn_error 77 "C compiler cannot create executables
4504See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004505else
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4507$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004508fi
cristycd4c5312009-11-22 01:19:08 +00004509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4510$as_echo_n "checking for C compiler default output file name... " >&6; }
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4512$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004513ac_exeext=$ac_cv_exeext
4514
cristycd4c5312009-11-22 01:19:08 +00004515rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004516ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004518$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004519if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004520case "(($ac_try" in
4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522 *) ac_try_echo=$ac_try;;
4523esac
cristy8b350f62009-11-15 23:12:43 +00004524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4525$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004526 (eval "$ac_link") 2>&5
4527 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4529 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004530 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4531# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4532# work properly (i.e., refer to `conftest.exe'), while it won't with
4533# `rm'.
4534for ac_file in conftest.exe conftest conftest.*; do
4535 test -f "$ac_file" || continue
4536 case $ac_file in
4537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4538 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4539 break;;
4540 * ) break;;
4541 esac
4542done
4543else
cristy8b350f62009-11-15 23:12:43 +00004544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +00004546as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4547See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004548fi
cristycd4c5312009-11-22 01:19:08 +00004549rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004551$as_echo "$ac_cv_exeext" >&6; }
4552
4553rm -f conftest.$ac_ext
4554EXEEXT=$ac_cv_exeext
4555ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557/* end confdefs.h. */
4558#include <stdio.h>
4559int
4560main ()
4561{
4562FILE *f = fopen ("conftest.out", "w");
4563 return ferror (f) || fclose (f) != 0;
4564
4565 ;
4566 return 0;
4567}
4568_ACEOF
4569ac_clean_files="$ac_clean_files conftest.out"
4570# Check that the compiler produces executables we can run. If not, either
4571# the compiler is broken, or we cross compile.
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4573$as_echo_n "checking whether we are cross compiling... " >&6; }
4574if test "$cross_compiling" != yes; then
4575 { { ac_try="$ac_link"
4576case "(($ac_try" in
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4579esac
4580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4581$as_echo "$ac_try_echo"; } >&5
4582 (eval "$ac_link") 2>&5
4583 ac_status=$?
4584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4585 test $ac_status = 0; }
4586 if { ac_try='./conftest$ac_cv_exeext'
4587 { { case "(($ac_try" in
4588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589 *) ac_try_echo=$ac_try;;
4590esac
4591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4592$as_echo "$ac_try_echo"; } >&5
4593 (eval "$ac_try") 2>&5
4594 ac_status=$?
4595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4596 test $ac_status = 0; }; }; then
4597 cross_compiling=no
4598 else
4599 if test "$cross_compiling" = maybe; then
4600 cross_compiling=yes
4601 else
4602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +00004604as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004605If you meant to cross compile, use \`--host'.
cristy0684af42010-07-09 00:00:05 +00004606See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004607 fi
4608 fi
4609fi
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4611$as_echo "$cross_compiling" >&6; }
4612
4613rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4614ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004616$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004617if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004618 $as_echo_n "(cached) " >&6
4619else
cristy8b350f62009-11-15 23:12:43 +00004620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004621/* end confdefs.h. */
4622
4623int
4624main ()
4625{
4626
4627 ;
4628 return 0;
4629}
4630_ACEOF
4631rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004632if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004633case "(($ac_try" in
4634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635 *) ac_try_echo=$ac_try;;
4636esac
cristy8b350f62009-11-15 23:12:43 +00004637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4638$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004639 (eval "$ac_compile") 2>&5
4640 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4642 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004643 for ac_file in conftest.o conftest.obj conftest.*; do
4644 test -f "$ac_file" || continue;
4645 case $ac_file in
4646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4647 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4648 break;;
4649 esac
4650done
4651else
4652 $as_echo "$as_me: failed program was:" >&5
4653sed 's/^/| /' conftest.$ac_ext >&5
4654
cristy8b350f62009-11-15 23:12:43 +00004655{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004656$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +00004657as_fn_error $? "cannot compute suffix of object files: cannot compile
4658See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004659fi
cristy3ed852e2009-09-05 21:47:34 +00004660rm -f conftest.$ac_cv_objext conftest.$ac_ext
4661fi
cristy8b350f62009-11-15 23:12:43 +00004662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004663$as_echo "$ac_cv_objext" >&6; }
4664OBJEXT=$ac_cv_objext
4665ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004667$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004668if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004669 $as_echo_n "(cached) " >&6
4670else
cristy8b350f62009-11-15 23:12:43 +00004671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004672/* end confdefs.h. */
4673
4674int
4675main ()
4676{
4677#ifndef __GNUC__
4678 choke me
4679#endif
4680
4681 ;
4682 return 0;
4683}
4684_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004685if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004686 ac_compiler_gnu=yes
4687else
cristy8b350f62009-11-15 23:12:43 +00004688 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004689fi
cristy3ed852e2009-09-05 21:47:34 +00004690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691ac_cv_c_compiler_gnu=$ac_compiler_gnu
4692
4693fi
cristy8b350f62009-11-15 23:12:43 +00004694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004695$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4696if test $ac_compiler_gnu = yes; then
4697 GCC=yes
4698else
4699 GCC=
4700fi
4701ac_test_CFLAGS=${CFLAGS+set}
4702ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004704$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004705if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004706 $as_echo_n "(cached) " >&6
4707else
4708 ac_save_c_werror_flag=$ac_c_werror_flag
4709 ac_c_werror_flag=yes
4710 ac_cv_prog_cc_g=no
4711 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004713/* end confdefs.h. */
4714
4715int
4716main ()
4717{
4718
4719 ;
4720 return 0;
4721}
4722_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004723if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004724 ac_cv_prog_cc_g=yes
4725else
cristy8b350f62009-11-15 23:12:43 +00004726 CFLAGS=""
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004728/* end confdefs.h. */
4729
4730int
4731main ()
4732{
4733
4734 ;
4735 return 0;
4736}
4737_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004738if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004739
cristy8b350f62009-11-15 23:12:43 +00004740else
4741 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004742 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004744/* end confdefs.h. */
4745
4746int
4747main ()
4748{
4749
4750 ;
4751 return 0;
4752}
4753_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004754if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004755 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004756fi
cristy3ed852e2009-09-05 21:47:34 +00004757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4758fi
cristy3ed852e2009-09-05 21:47:34 +00004759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760fi
cristy3ed852e2009-09-05 21:47:34 +00004761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 ac_c_werror_flag=$ac_save_c_werror_flag
4763fi
cristy8b350f62009-11-15 23:12:43 +00004764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004765$as_echo "$ac_cv_prog_cc_g" >&6; }
4766if test "$ac_test_CFLAGS" = set; then
4767 CFLAGS=$ac_save_CFLAGS
4768elif test $ac_cv_prog_cc_g = yes; then
4769 if test "$GCC" = yes; then
4770 CFLAGS="-g -O2"
4771 else
4772 CFLAGS="-g"
4773 fi
4774else
4775 if test "$GCC" = yes; then
4776 CFLAGS="-O2"
4777 else
4778 CFLAGS=
4779 fi
4780fi
cristy8b350f62009-11-15 23:12:43 +00004781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004782$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004783if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004784 $as_echo_n "(cached) " >&6
4785else
4786 ac_cv_prog_cc_c89=no
4787ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004789/* end confdefs.h. */
4790#include <stdarg.h>
4791#include <stdio.h>
4792#include <sys/types.h>
4793#include <sys/stat.h>
4794/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4795struct buf { int x; };
4796FILE * (*rcsopen) (struct buf *, struct stat *, int);
4797static char *e (p, i)
4798 char **p;
4799 int i;
4800{
4801 return p[i];
4802}
4803static char *f (char * (*g) (char **, int), char **p, ...)
4804{
4805 char *s;
4806 va_list v;
4807 va_start (v,p);
4808 s = g (p, va_arg (v,int));
4809 va_end (v);
4810 return s;
4811}
4812
4813/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4814 function prototypes and stuff, but not '\xHH' hex character constants.
4815 These don't provoke an error unfortunately, instead are silently treated
4816 as 'x'. The following induces an error, until -std is added to get
4817 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4818 array size at least. It's necessary to write '\x00'==0 to get something
4819 that's true only with -std. */
4820int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4821
4822/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4823 inside strings and character constants. */
4824#define FOO(x) 'x'
4825int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4826
4827int test (int i, double x);
4828struct s1 {int (*f) (int a);};
4829struct s2 {int (*f) (double a);};
4830int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4831int argc;
4832char **argv;
4833int
4834main ()
4835{
4836return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4837 ;
4838 return 0;
4839}
4840_ACEOF
4841for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4842 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4843do
4844 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004845 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004846 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004847fi
cristy3ed852e2009-09-05 21:47:34 +00004848rm -f core conftest.err conftest.$ac_objext
4849 test "x$ac_cv_prog_cc_c89" != "xno" && break
4850done
4851rm -f conftest.$ac_ext
4852CC=$ac_save_CC
4853
4854fi
4855# AC_CACHE_VAL
4856case "x$ac_cv_prog_cc_c89" in
4857 x)
cristy8b350f62009-11-15 23:12:43 +00004858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004859$as_echo "none needed" >&6; } ;;
4860 xno)
cristy8b350f62009-11-15 23:12:43 +00004861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004862$as_echo "unsupported" >&6; } ;;
4863 *)
4864 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004866$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4867esac
cristy8b350f62009-11-15 23:12:43 +00004868if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004869
cristy8b350f62009-11-15 23:12:43 +00004870fi
cristy3ed852e2009-09-05 21:47:34 +00004871
4872ac_ext=c
4873ac_cpp='$CPP $CPPFLAGS'
4874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4876ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00004877
cristya0b81c32010-01-22 02:54:33 +00004878depcc="$CC" am_compiler_list=
cristy3ed852e2009-09-05 21:47:34 +00004879
cristya0b81c32010-01-22 02:54:33 +00004880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4881$as_echo_n "checking dependency style of $depcc... " >&6; }
4882if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4883 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00004884else
cristya0b81c32010-01-22 02:54:33 +00004885 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4886 # We make a subdir and do the tests there. Otherwise we can end up
4887 # making bogus files that we don't know about and never remove. For
4888 # instance it was reported that on HP-UX the gcc test will end up
4889 # making a dummy file named `D' -- because `-MD' means `put the output
4890 # in D'.
4891 mkdir conftest.dir
4892 # Copy depcomp to subdir because otherwise we won't find it if we're
4893 # using a relative directory.
4894 cp "$am_depcomp" conftest.dir
4895 cd conftest.dir
4896 # We will build objects and dependencies in a subdirectory because
4897 # it helps to detect inapplicable dependency modes. For instance
4898 # both Tru64's cc and ICC support -MD to output dependencies as a
4899 # side effect of compilation, but ICC will put the dependencies in
4900 # the current directory while Tru64 will put them in the object
4901 # directory.
4902 mkdir sub
4903
4904 am_cv_CC_dependencies_compiler_type=none
4905 if test "$am_compiler_list" = ""; then
4906 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4907 fi
4908 am__universal=false
4909 case " $depcc " in #(
4910 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4911 esac
4912
4913 for depmode in $am_compiler_list; do
4914 # Setup a source with many dependencies, because some compilers
4915 # like to wrap large dependency lists on column 80 (with \), and
4916 # we should not choose a depcomp mode which is confused by this.
4917 #
4918 # We need to recreate these files for each test, as the compiler may
4919 # overwrite some of them when testing with obscure command lines.
4920 # This happens at least with the AIX C compiler.
4921 : > sub/conftest.c
4922 for i in 1 2 3 4 5 6; do
4923 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4924 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4925 # Solaris 8's {/usr,}/bin/sh.
4926 touch sub/conftst$i.h
4927 done
4928 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4929
4930 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4931 # mode. It turns out that the SunPro C++ compiler does not properly
4932 # handle `-M -o', and we need to detect this. Also, some Intel
4933 # versions had trouble with output in subdirs
4934 am__obj=sub/conftest.${OBJEXT-o}
4935 am__minus_obj="-o $am__obj"
4936 case $depmode in
4937 gcc)
4938 # This depmode causes a compiler race in universal mode.
4939 test "$am__universal" = false || continue
4940 ;;
4941 nosideeffect)
4942 # after this tag, mechanisms are not by side-effect, so they'll
4943 # only be used when explicitly requested
4944 if test "x$enable_dependency_tracking" = xyes; then
4945 continue
4946 else
4947 break
4948 fi
4949 ;;
4950 msvisualcpp | msvcmsys)
4951 # This compiler won't grok `-c -o', but also, the minuso test has
4952 # not run yet. These depmodes are late enough in the game, and
4953 # so weak that their functioning should not be impacted.
4954 am__obj=conftest.${OBJEXT-o}
4955 am__minus_obj=
4956 ;;
4957 none) break ;;
4958 esac
4959 if depmode=$depmode \
4960 source=sub/conftest.c object=$am__obj \
4961 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4962 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4963 >/dev/null 2>conftest.err &&
4964 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4965 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4966 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4967 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4968 # icc doesn't choke on unknown options, it will just issue warnings
4969 # or remarks (even with -Werror). So we grep stderr for any message
4970 # that says an option was ignored or not supported.
4971 # When given -MP, icc 7.0 and 7.1 complain thusly:
4972 # icc: Command line warning: ignoring option '-M'; no argument required
4973 # The diagnosis changed in icc 8.0:
4974 # icc: Command line remark: option '-MP' not supported
4975 if (grep 'ignoring option' conftest.err ||
4976 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4977 am_cv_CC_dependencies_compiler_type=$depmode
4978 break
4979 fi
4980 fi
4981 done
4982
4983 cd ..
4984 rm -rf conftest.dir
4985else
4986 am_cv_CC_dependencies_compiler_type=none
4987fi
4988
4989fi
4990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4991$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4992CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4993
4994 if
4995 test "x$enable_dependency_tracking" != xno \
4996 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4997 am__fastdepCC_TRUE=
4998 am__fastdepCC_FALSE='#'
4999else
5000 am__fastdepCC_TRUE='#'
5001 am__fastdepCC_FALSE=
cristy3ed852e2009-09-05 21:47:34 +00005002fi
5003
5004
5005
cristya0b81c32010-01-22 02:54:33 +00005006ac_ext=c
5007ac_cpp='$CPP $CPPFLAGS'
5008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5010ac_compiler_gnu=$ac_cv_c_compiler_gnu
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5012$as_echo_n "checking how to run the C preprocessor... " >&6; }
5013# On Suns, sometimes $CPP names a directory.
5014if test -n "$CPP" && test -d "$CPP"; then
5015 CPP=
5016fi
5017if test -z "$CPP"; then
5018 if test "${ac_cv_prog_CPP+set}" = set; then :
5019 $as_echo_n "(cached) " >&6
5020else
5021 # Double quotes because CPP needs to be expanded
5022 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5023 do
5024 ac_preproc_ok=false
5025for ac_c_preproc_warn_flag in '' yes
5026do
5027 # Use a header file that comes with gcc, so configuring glibc
5028 # with a fresh cross-compiler works.
5029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5030 # <limits.h> exists even on freestanding compilers.
5031 # On the NeXT, cc -E runs the code through the compiler's parser,
5032 # not just through cpp. "Syntax error" is here to catch this case.
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034/* end confdefs.h. */
5035#ifdef __STDC__
5036# include <limits.h>
5037#else
5038# include <assert.h>
5039#endif
5040 Syntax error
5041_ACEOF
5042if ac_fn_c_try_cpp "$LINENO"; then :
5043
5044else
5045 # Broken: fails on valid input.
5046continue
5047fi
5048rm -f conftest.err conftest.$ac_ext
5049
5050 # OK, works on sane cases. Now check whether nonexistent headers
5051 # can be detected and how.
5052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053/* end confdefs.h. */
5054#include <ac_nonexistent.h>
5055_ACEOF
5056if ac_fn_c_try_cpp "$LINENO"; then :
5057 # Broken: success on invalid input.
5058continue
5059else
5060 # Passes both tests.
5061ac_preproc_ok=:
5062break
5063fi
5064rm -f conftest.err conftest.$ac_ext
5065
5066done
5067# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5068rm -f conftest.err conftest.$ac_ext
5069if $ac_preproc_ok; then :
5070 break
5071fi
5072
5073 done
5074 ac_cv_prog_CPP=$CPP
5075
5076fi
5077 CPP=$ac_cv_prog_CPP
5078else
5079 ac_cv_prog_CPP=$CPP
5080fi
5081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5082$as_echo "$CPP" >&6; }
5083ac_preproc_ok=false
5084for ac_c_preproc_warn_flag in '' yes
5085do
5086 # Use a header file that comes with gcc, so configuring glibc
5087 # with a fresh cross-compiler works.
5088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5089 # <limits.h> exists even on freestanding compilers.
5090 # On the NeXT, cc -E runs the code through the compiler's parser,
5091 # not just through cpp. "Syntax error" is here to catch this case.
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093/* end confdefs.h. */
5094#ifdef __STDC__
5095# include <limits.h>
5096#else
5097# include <assert.h>
5098#endif
5099 Syntax error
5100_ACEOF
5101if ac_fn_c_try_cpp "$LINENO"; then :
5102
5103else
5104 # Broken: fails on valid input.
5105continue
5106fi
5107rm -f conftest.err conftest.$ac_ext
5108
5109 # OK, works on sane cases. Now check whether nonexistent headers
5110 # can be detected and how.
5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112/* end confdefs.h. */
5113#include <ac_nonexistent.h>
5114_ACEOF
5115if ac_fn_c_try_cpp "$LINENO"; then :
5116 # Broken: success on invalid input.
5117continue
5118else
5119 # Passes both tests.
5120ac_preproc_ok=:
5121break
5122fi
5123rm -f conftest.err conftest.$ac_ext
5124
5125done
5126# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5127rm -f conftest.err conftest.$ac_ext
5128if $ac_preproc_ok; then :
5129
5130else
5131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5132$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +00005133as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5134See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005135fi
5136
5137ac_ext=c
5138ac_cpp='$CPP $CPPFLAGS'
5139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141ac_compiler_gnu=$ac_cv_c_compiler_gnu
5142
5143
5144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5145$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5146if test "${ac_cv_path_GREP+set}" = set; then :
5147 $as_echo_n "(cached) " >&6
5148else
5149 if test -z "$GREP"; then
5150 ac_path_GREP_found=false
5151 # Loop through the user's path and test for each of PROGNAME-LIST
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5154do
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
5157 for ac_prog in grep ggrep; do
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5160 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5161# Check for GNU ac_path_GREP and select it if it is found.
5162 # Check for GNU $ac_path_GREP
5163case `"$ac_path_GREP" --version 2>&1` in
5164*GNU*)
5165 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5166*)
5167 ac_count=0
5168 $as_echo_n 0123456789 >"conftest.in"
5169 while :
5170 do
5171 cat "conftest.in" "conftest.in" >"conftest.tmp"
5172 mv "conftest.tmp" "conftest.in"
5173 cp "conftest.in" "conftest.nl"
5174 $as_echo 'GREP' >> "conftest.nl"
5175 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5176 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5177 as_fn_arith $ac_count + 1 && ac_count=$as_val
5178 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5179 # Best one so far, save it but keep looking for a better one
5180 ac_cv_path_GREP="$ac_path_GREP"
5181 ac_path_GREP_max=$ac_count
5182 fi
5183 # 10*(2^10) chars as input seems more than enough
5184 test $ac_count -gt 10 && break
5185 done
5186 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5187esac
5188
5189 $ac_path_GREP_found && break 3
5190 done
5191 done
5192 done
5193IFS=$as_save_IFS
5194 if test -z "$ac_cv_path_GREP"; then
cristy0684af42010-07-09 00:00:05 +00005195 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005196 fi
5197else
5198 ac_cv_path_GREP=$GREP
5199fi
5200
5201fi
5202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5203$as_echo "$ac_cv_path_GREP" >&6; }
5204 GREP="$ac_cv_path_GREP"
5205
5206
5207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5208$as_echo_n "checking for egrep... " >&6; }
5209if test "${ac_cv_path_EGREP+set}" = set; then :
5210 $as_echo_n "(cached) " >&6
5211else
5212 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5213 then ac_cv_path_EGREP="$GREP -E"
5214 else
5215 if test -z "$EGREP"; then
5216 ac_path_EGREP_found=false
5217 # Loop through the user's path and test for each of PROGNAME-LIST
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5220do
5221 IFS=$as_save_IFS
5222 test -z "$as_dir" && as_dir=.
5223 for ac_prog in egrep; do
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5226 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5227# Check for GNU ac_path_EGREP and select it if it is found.
5228 # Check for GNU $ac_path_EGREP
5229case `"$ac_path_EGREP" --version 2>&1` in
5230*GNU*)
5231 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5232*)
5233 ac_count=0
5234 $as_echo_n 0123456789 >"conftest.in"
5235 while :
5236 do
5237 cat "conftest.in" "conftest.in" >"conftest.tmp"
5238 mv "conftest.tmp" "conftest.in"
5239 cp "conftest.in" "conftest.nl"
5240 $as_echo 'EGREP' >> "conftest.nl"
5241 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5242 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5243 as_fn_arith $ac_count + 1 && ac_count=$as_val
5244 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5245 # Best one so far, save it but keep looking for a better one
5246 ac_cv_path_EGREP="$ac_path_EGREP"
5247 ac_path_EGREP_max=$ac_count
5248 fi
5249 # 10*(2^10) chars as input seems more than enough
5250 test $ac_count -gt 10 && break
5251 done
5252 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5253esac
5254
5255 $ac_path_EGREP_found && break 3
5256 done
5257 done
5258 done
5259IFS=$as_save_IFS
5260 if test -z "$ac_cv_path_EGREP"; then
cristy0684af42010-07-09 00:00:05 +00005261 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005262 fi
5263else
5264 ac_cv_path_EGREP=$EGREP
5265fi
5266
5267 fi
5268fi
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5270$as_echo "$ac_cv_path_EGREP" >&6; }
5271 EGREP="$ac_cv_path_EGREP"
5272
5273
5274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5275$as_echo_n "checking for ANSI C header files... " >&6; }
5276if test "${ac_cv_header_stdc+set}" = set; then :
5277 $as_echo_n "(cached) " >&6
5278else
5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280/* end confdefs.h. */
5281#include <stdlib.h>
5282#include <stdarg.h>
5283#include <string.h>
5284#include <float.h>
5285
5286int
5287main ()
5288{
5289
5290 ;
5291 return 0;
5292}
5293_ACEOF
5294if ac_fn_c_try_compile "$LINENO"; then :
5295 ac_cv_header_stdc=yes
5296else
5297 ac_cv_header_stdc=no
5298fi
5299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5300
5301if test $ac_cv_header_stdc = yes; then
5302 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304/* end confdefs.h. */
5305#include <string.h>
5306
5307_ACEOF
5308if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5309 $EGREP "memchr" >/dev/null 2>&1; then :
5310
5311else
5312 ac_cv_header_stdc=no
5313fi
5314rm -f conftest*
5315
5316fi
5317
5318if test $ac_cv_header_stdc = yes; then
5319 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321/* end confdefs.h. */
5322#include <stdlib.h>
5323
5324_ACEOF
5325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5326 $EGREP "free" >/dev/null 2>&1; then :
5327
5328else
5329 ac_cv_header_stdc=no
5330fi
5331rm -f conftest*
5332
5333fi
5334
5335if test $ac_cv_header_stdc = yes; then
5336 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5337 if test "$cross_compiling" = yes; then :
5338 :
5339else
5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341/* end confdefs.h. */
5342#include <ctype.h>
5343#include <stdlib.h>
5344#if ((' ' & 0x0FF) == 0x020)
5345# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5346# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5347#else
5348# define ISLOWER(c) \
5349 (('a' <= (c) && (c) <= 'i') \
5350 || ('j' <= (c) && (c) <= 'r') \
5351 || ('s' <= (c) && (c) <= 'z'))
5352# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5353#endif
5354
5355#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5356int
5357main ()
5358{
5359 int i;
5360 for (i = 0; i < 256; i++)
5361 if (XOR (islower (i), ISLOWER (i))
5362 || toupper (i) != TOUPPER (i))
5363 return 2;
5364 return 0;
5365}
5366_ACEOF
5367if ac_fn_c_try_run "$LINENO"; then :
5368
5369else
5370 ac_cv_header_stdc=no
5371fi
5372rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5373 conftest.$ac_objext conftest.beam conftest.$ac_ext
5374fi
5375
5376fi
5377fi
5378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5379$as_echo "$ac_cv_header_stdc" >&6; }
5380if test $ac_cv_header_stdc = yes; then
5381
5382$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5383
5384fi
5385
5386# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5387for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5388 inttypes.h stdint.h unistd.h
5389do :
5390 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5391ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5392"
cristy0684af42010-07-09 00:00:05 +00005393if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005394 cat >>confdefs.h <<_ACEOF
5395#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5396_ACEOF
5397
5398fi
5399
5400done
5401
5402
5403
5404 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5405if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5406 MINIX=yes
5407else
5408 MINIX=
5409fi
5410
5411
5412 if test "$MINIX" = yes; then
5413
5414$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5415
5416
5417$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5418
5419
5420$as_echo "#define _MINIX 1" >>confdefs.h
5421
5422 fi
5423
5424
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5426$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5427if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5428 $as_echo_n "(cached) " >&6
5429else
5430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431/* end confdefs.h. */
5432
5433# define __EXTENSIONS__ 1
5434 $ac_includes_default
5435int
5436main ()
5437{
5438
5439 ;
5440 return 0;
5441}
5442_ACEOF
5443if ac_fn_c_try_compile "$LINENO"; then :
5444 ac_cv_safe_to_define___extensions__=yes
5445else
5446 ac_cv_safe_to_define___extensions__=no
5447fi
5448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5449fi
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5451$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5452 test $ac_cv_safe_to_define___extensions__ = yes &&
5453 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5454
5455 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5456
5457 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5458
5459 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5460
5461 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5462
5463
5464
5465# Check for programs
5466ac_ext=c
5467ac_cpp='$CPP $CPPFLAGS'
5468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5470ac_compiler_gnu=$ac_cv_c_compiler_gnu
5471if test -n "$ac_tool_prefix"; then
5472 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5473set dummy ${ac_tool_prefix}gcc; ac_word=$2
5474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475$as_echo_n "checking for $ac_word... " >&6; }
5476if test "${ac_cv_prog_CC+set}" = set; then :
5477 $as_echo_n "(cached) " >&6
5478else
5479 if test -n "$CC"; then
5480 ac_cv_prog_CC="$CC" # Let the user override the test.
5481else
5482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483for as_dir in $PATH
5484do
5485 IFS=$as_save_IFS
5486 test -z "$as_dir" && as_dir=.
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5489 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5491 break 2
5492 fi
5493done
5494 done
5495IFS=$as_save_IFS
5496
5497fi
5498fi
5499CC=$ac_cv_prog_CC
5500if test -n "$CC"; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5502$as_echo "$CC" >&6; }
5503else
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505$as_echo "no" >&6; }
5506fi
5507
5508
5509fi
5510if test -z "$ac_cv_prog_CC"; then
5511 ac_ct_CC=$CC
5512 # Extract the first word of "gcc", so it can be a program name with args.
5513set dummy gcc; ac_word=$2
5514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5515$as_echo_n "checking for $ac_word... " >&6; }
5516if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5517 $as_echo_n "(cached) " >&6
5518else
5519 if test -n "$ac_ct_CC"; then
5520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5521else
5522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523for as_dir in $PATH
5524do
5525 IFS=$as_save_IFS
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5529 ac_cv_prog_ac_ct_CC="gcc"
5530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 break 2
5532 fi
5533done
5534 done
5535IFS=$as_save_IFS
5536
5537fi
5538fi
5539ac_ct_CC=$ac_cv_prog_ac_ct_CC
5540if test -n "$ac_ct_CC"; then
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5542$as_echo "$ac_ct_CC" >&6; }
5543else
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545$as_echo "no" >&6; }
5546fi
5547
5548 if test "x$ac_ct_CC" = x; then
5549 CC=""
5550 else
5551 case $cross_compiling:$ac_tool_warned in
5552yes:)
5553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5555ac_tool_warned=yes ;;
5556esac
5557 CC=$ac_ct_CC
5558 fi
5559else
5560 CC="$ac_cv_prog_CC"
5561fi
5562
5563if test -z "$CC"; then
5564 if test -n "$ac_tool_prefix"; then
5565 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5566set dummy ${ac_tool_prefix}cc; ac_word=$2
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568$as_echo_n "checking for $ac_word... " >&6; }
5569if test "${ac_cv_prog_CC+set}" = set; then :
5570 $as_echo_n "(cached) " >&6
5571else
5572 if test -n "$CC"; then
5573 ac_cv_prog_CC="$CC" # Let the user override the test.
5574else
5575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576for as_dir in $PATH
5577do
5578 IFS=$as_save_IFS
5579 test -z "$as_dir" && as_dir=.
5580 for ac_exec_ext in '' $ac_executable_extensions; do
5581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5582 ac_cv_prog_CC="${ac_tool_prefix}cc"
5583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5584 break 2
5585 fi
5586done
5587 done
5588IFS=$as_save_IFS
5589
5590fi
5591fi
5592CC=$ac_cv_prog_CC
5593if test -n "$CC"; then
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5595$as_echo "$CC" >&6; }
5596else
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5598$as_echo "no" >&6; }
5599fi
5600
5601
5602 fi
5603fi
5604if test -z "$CC"; then
5605 # Extract the first word of "cc", so it can be a program name with args.
5606set dummy cc; ac_word=$2
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5608$as_echo_n "checking for $ac_word... " >&6; }
5609if test "${ac_cv_prog_CC+set}" = set; then :
5610 $as_echo_n "(cached) " >&6
5611else
5612 if test -n "$CC"; then
5613 ac_cv_prog_CC="$CC" # Let the user override the test.
5614else
5615 ac_prog_rejected=no
5616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617for as_dir in $PATH
5618do
5619 IFS=$as_save_IFS
5620 test -z "$as_dir" && as_dir=.
5621 for ac_exec_ext in '' $ac_executable_extensions; do
5622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5623 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5624 ac_prog_rejected=yes
5625 continue
5626 fi
5627 ac_cv_prog_CC="cc"
5628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 break 2
5630 fi
5631done
5632 done
5633IFS=$as_save_IFS
5634
5635if test $ac_prog_rejected = yes; then
5636 # We found a bogon in the path, so make sure we never use it.
5637 set dummy $ac_cv_prog_CC
5638 shift
5639 if test $# != 0; then
5640 # We chose a different compiler from the bogus one.
5641 # However, it has the same basename, so the bogon will be chosen
5642 # first if we set CC to just the basename; use the full file name.
5643 shift
5644 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5645 fi
5646fi
5647fi
5648fi
5649CC=$ac_cv_prog_CC
5650if test -n "$CC"; then
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5652$as_echo "$CC" >&6; }
5653else
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655$as_echo "no" >&6; }
5656fi
5657
5658
5659fi
5660if test -z "$CC"; then
5661 if test -n "$ac_tool_prefix"; then
5662 for ac_prog in cl.exe
5663 do
5664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5665set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667$as_echo_n "checking for $ac_word... " >&6; }
5668if test "${ac_cv_prog_CC+set}" = set; then :
5669 $as_echo_n "(cached) " >&6
5670else
5671 if test -n "$CC"; then
5672 ac_cv_prog_CC="$CC" # Let the user override the test.
5673else
5674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675for as_dir in $PATH
5676do
5677 IFS=$as_save_IFS
5678 test -z "$as_dir" && as_dir=.
5679 for ac_exec_ext in '' $ac_executable_extensions; do
5680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5681 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5683 break 2
5684 fi
5685done
5686 done
5687IFS=$as_save_IFS
5688
5689fi
5690fi
5691CC=$ac_cv_prog_CC
5692if test -n "$CC"; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5694$as_echo "$CC" >&6; }
5695else
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697$as_echo "no" >&6; }
5698fi
5699
5700
5701 test -n "$CC" && break
5702 done
5703fi
5704if test -z "$CC"; then
5705 ac_ct_CC=$CC
5706 for ac_prog in cl.exe
5707do
5708 # Extract the first word of "$ac_prog", so it can be a program name with args.
5709set dummy $ac_prog; ac_word=$2
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711$as_echo_n "checking for $ac_word... " >&6; }
5712if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5713 $as_echo_n "(cached) " >&6
5714else
5715 if test -n "$ac_ct_CC"; then
5716 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5717else
5718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719for as_dir in $PATH
5720do
5721 IFS=$as_save_IFS
5722 test -z "$as_dir" && as_dir=.
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5725 ac_cv_prog_ac_ct_CC="$ac_prog"
5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5727 break 2
5728 fi
5729done
5730 done
5731IFS=$as_save_IFS
5732
5733fi
5734fi
5735ac_ct_CC=$ac_cv_prog_ac_ct_CC
5736if test -n "$ac_ct_CC"; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5738$as_echo "$ac_ct_CC" >&6; }
5739else
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741$as_echo "no" >&6; }
5742fi
5743
5744
5745 test -n "$ac_ct_CC" && break
5746done
5747
5748 if test "x$ac_ct_CC" = x; then
5749 CC=""
5750 else
5751 case $cross_compiling:$ac_tool_warned in
5752yes:)
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5755ac_tool_warned=yes ;;
5756esac
5757 CC=$ac_ct_CC
5758 fi
5759fi
5760
5761fi
5762
5763
5764test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +00005766as_fn_error $? "no acceptable C compiler found in \$PATH
5767See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005768
5769# Provide some information about the compiler.
5770$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5771set X $ac_compile
5772ac_compiler=$2
5773for ac_option in --version -v -V -qversion; do
5774 { { ac_try="$ac_compiler $ac_option >&5"
5775case "(($ac_try" in
5776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5777 *) ac_try_echo=$ac_try;;
5778esac
5779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5780$as_echo "$ac_try_echo"; } >&5
5781 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5782 ac_status=$?
5783 if test -s conftest.err; then
5784 sed '10a\
5785... rest of stderr output deleted ...
5786 10q' conftest.err >conftest.er1
5787 cat conftest.er1 >&5
5788 fi
5789 rm -f conftest.er1 conftest.err
5790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5791 test $ac_status = 0; }
5792done
5793
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5795$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5796if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5797 $as_echo_n "(cached) " >&6
5798else
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800/* end confdefs.h. */
5801
5802int
5803main ()
5804{
5805#ifndef __GNUC__
5806 choke me
5807#endif
5808
5809 ;
5810 return 0;
5811}
5812_ACEOF
5813if ac_fn_c_try_compile "$LINENO"; then :
5814 ac_compiler_gnu=yes
5815else
5816 ac_compiler_gnu=no
5817fi
5818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819ac_cv_c_compiler_gnu=$ac_compiler_gnu
5820
5821fi
5822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5823$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5824if test $ac_compiler_gnu = yes; then
5825 GCC=yes
5826else
5827 GCC=
5828fi
5829ac_test_CFLAGS=${CFLAGS+set}
5830ac_save_CFLAGS=$CFLAGS
5831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5832$as_echo_n "checking whether $CC accepts -g... " >&6; }
5833if test "${ac_cv_prog_cc_g+set}" = set; then :
5834 $as_echo_n "(cached) " >&6
5835else
5836 ac_save_c_werror_flag=$ac_c_werror_flag
5837 ac_c_werror_flag=yes
5838 ac_cv_prog_cc_g=no
5839 CFLAGS="-g"
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841/* end confdefs.h. */
5842
5843int
5844main ()
5845{
5846
5847 ;
5848 return 0;
5849}
5850_ACEOF
5851if ac_fn_c_try_compile "$LINENO"; then :
5852 ac_cv_prog_cc_g=yes
5853else
5854 CFLAGS=""
5855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5856/* end confdefs.h. */
5857
5858int
5859main ()
5860{
5861
5862 ;
5863 return 0;
5864}
5865_ACEOF
5866if ac_fn_c_try_compile "$LINENO"; then :
5867
5868else
5869 ac_c_werror_flag=$ac_save_c_werror_flag
5870 CFLAGS="-g"
5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872/* end confdefs.h. */
5873
5874int
5875main ()
5876{
5877
5878 ;
5879 return 0;
5880}
5881_ACEOF
5882if ac_fn_c_try_compile "$LINENO"; then :
5883 ac_cv_prog_cc_g=yes
5884fi
5885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5886fi
5887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888fi
5889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5890 ac_c_werror_flag=$ac_save_c_werror_flag
5891fi
5892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5893$as_echo "$ac_cv_prog_cc_g" >&6; }
5894if test "$ac_test_CFLAGS" = set; then
5895 CFLAGS=$ac_save_CFLAGS
5896elif test $ac_cv_prog_cc_g = yes; then
5897 if test "$GCC" = yes; then
5898 CFLAGS="-g -O2"
5899 else
5900 CFLAGS="-g"
5901 fi
5902else
5903 if test "$GCC" = yes; then
5904 CFLAGS="-O2"
5905 else
5906 CFLAGS=
5907 fi
5908fi
5909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5910$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5911if test "${ac_cv_prog_cc_c89+set}" = set; then :
5912 $as_echo_n "(cached) " >&6
5913else
5914 ac_cv_prog_cc_c89=no
5915ac_save_CC=$CC
5916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917/* end confdefs.h. */
5918#include <stdarg.h>
5919#include <stdio.h>
5920#include <sys/types.h>
5921#include <sys/stat.h>
5922/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5923struct buf { int x; };
5924FILE * (*rcsopen) (struct buf *, struct stat *, int);
5925static char *e (p, i)
5926 char **p;
5927 int i;
5928{
5929 return p[i];
5930}
5931static char *f (char * (*g) (char **, int), char **p, ...)
5932{
5933 char *s;
5934 va_list v;
5935 va_start (v,p);
5936 s = g (p, va_arg (v,int));
5937 va_end (v);
5938 return s;
5939}
5940
5941/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5942 function prototypes and stuff, but not '\xHH' hex character constants.
5943 These don't provoke an error unfortunately, instead are silently treated
5944 as 'x'. The following induces an error, until -std is added to get
5945 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5946 array size at least. It's necessary to write '\x00'==0 to get something
5947 that's true only with -std. */
5948int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5949
5950/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5951 inside strings and character constants. */
5952#define FOO(x) 'x'
5953int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5954
5955int test (int i, double x);
5956struct s1 {int (*f) (int a);};
5957struct s2 {int (*f) (double a);};
5958int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5959int argc;
5960char **argv;
5961int
5962main ()
5963{
5964return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5965 ;
5966 return 0;
5967}
5968_ACEOF
5969for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5970 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5971do
5972 CC="$ac_save_CC $ac_arg"
5973 if ac_fn_c_try_compile "$LINENO"; then :
5974 ac_cv_prog_cc_c89=$ac_arg
5975fi
5976rm -f core conftest.err conftest.$ac_objext
5977 test "x$ac_cv_prog_cc_c89" != "xno" && break
5978done
5979rm -f conftest.$ac_ext
5980CC=$ac_save_CC
5981
5982fi
5983# AC_CACHE_VAL
5984case "x$ac_cv_prog_cc_c89" in
5985 x)
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5987$as_echo "none needed" >&6; } ;;
5988 xno)
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5990$as_echo "unsupported" >&6; } ;;
5991 *)
5992 CC="$CC $ac_cv_prog_cc_c89"
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5994$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5995esac
5996if test "x$ac_cv_prog_cc_c89" != xno; then :
5997
5998fi
5999
6000ac_ext=c
6001ac_cpp='$CPP $CPPFLAGS'
6002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6004ac_compiler_gnu=$ac_cv_c_compiler_gnu
6005
cristy3ed852e2009-09-05 21:47:34 +00006006depcc="$CC" am_compiler_list=
6007
cristy8b350f62009-11-15 23:12:43 +00006008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006009$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006010if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006011 $as_echo_n "(cached) " >&6
6012else
6013 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6014 # We make a subdir and do the tests there. Otherwise we can end up
6015 # making bogus files that we don't know about and never remove. For
6016 # instance it was reported that on HP-UX the gcc test will end up
6017 # making a dummy file named `D' -- because `-MD' means `put the output
6018 # in D'.
6019 mkdir conftest.dir
6020 # Copy depcomp to subdir because otherwise we won't find it if we're
6021 # using a relative directory.
6022 cp "$am_depcomp" conftest.dir
6023 cd conftest.dir
6024 # We will build objects and dependencies in a subdirectory because
6025 # it helps to detect inapplicable dependency modes. For instance
6026 # both Tru64's cc and ICC support -MD to output dependencies as a
6027 # side effect of compilation, but ICC will put the dependencies in
6028 # the current directory while Tru64 will put them in the object
6029 # directory.
6030 mkdir sub
6031
6032 am_cv_CC_dependencies_compiler_type=none
6033 if test "$am_compiler_list" = ""; then
6034 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6035 fi
6036 am__universal=false
6037 case " $depcc " in #(
6038 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6039 esac
6040
6041 for depmode in $am_compiler_list; do
6042 # Setup a source with many dependencies, because some compilers
6043 # like to wrap large dependency lists on column 80 (with \), and
6044 # we should not choose a depcomp mode which is confused by this.
6045 #
6046 # We need to recreate these files for each test, as the compiler may
6047 # overwrite some of them when testing with obscure command lines.
6048 # This happens at least with the AIX C compiler.
6049 : > sub/conftest.c
6050 for i in 1 2 3 4 5 6; do
6051 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6052 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6053 # Solaris 8's {/usr,}/bin/sh.
6054 touch sub/conftst$i.h
6055 done
6056 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6057
6058 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6059 # mode. It turns out that the SunPro C++ compiler does not properly
6060 # handle `-M -o', and we need to detect this. Also, some Intel
6061 # versions had trouble with output in subdirs
6062 am__obj=sub/conftest.${OBJEXT-o}
6063 am__minus_obj="-o $am__obj"
6064 case $depmode in
6065 gcc)
6066 # This depmode causes a compiler race in universal mode.
6067 test "$am__universal" = false || continue
6068 ;;
6069 nosideeffect)
6070 # after this tag, mechanisms are not by side-effect, so they'll
6071 # only be used when explicitly requested
6072 if test "x$enable_dependency_tracking" = xyes; then
6073 continue
6074 else
6075 break
6076 fi
6077 ;;
6078 msvisualcpp | msvcmsys)
6079 # This compiler won't grok `-c -o', but also, the minuso test has
6080 # not run yet. These depmodes are late enough in the game, and
6081 # so weak that their functioning should not be impacted.
6082 am__obj=conftest.${OBJEXT-o}
6083 am__minus_obj=
6084 ;;
6085 none) break ;;
6086 esac
6087 if depmode=$depmode \
6088 source=sub/conftest.c object=$am__obj \
6089 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6090 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6091 >/dev/null 2>conftest.err &&
6092 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6093 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6094 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6095 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6096 # icc doesn't choke on unknown options, it will just issue warnings
6097 # or remarks (even with -Werror). So we grep stderr for any message
6098 # that says an option was ignored or not supported.
6099 # When given -MP, icc 7.0 and 7.1 complain thusly:
6100 # icc: Command line warning: ignoring option '-M'; no argument required
6101 # The diagnosis changed in icc 8.0:
6102 # icc: Command line remark: option '-MP' not supported
6103 if (grep 'ignoring option' conftest.err ||
6104 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6105 am_cv_CC_dependencies_compiler_type=$depmode
6106 break
6107 fi
6108 fi
6109 done
6110
6111 cd ..
6112 rm -rf conftest.dir
6113else
6114 am_cv_CC_dependencies_compiler_type=none
6115fi
6116
6117fi
cristy8b350f62009-11-15 23:12:43 +00006118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00006119$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6120CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6121
6122 if
6123 test "x$enable_dependency_tracking" != xno \
6124 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6125 am__fastdepCC_TRUE=
6126 am__fastdepCC_FALSE='#'
6127else
6128 am__fastdepCC_TRUE='#'
6129 am__fastdepCC_FALSE=
6130fi
6131
6132
cristy95646052009-11-28 23:05:30 +00006133ac_ext=cpp
6134ac_cpp='$CXXCPP $CPPFLAGS'
6135ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6136ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6137ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6138if test -z "$CXX"; then
6139 if test -n "$CCC"; then
6140 CXX=$CCC
6141 else
6142 if test -n "$ac_tool_prefix"; then
6143 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6144 do
6145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6146set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6148$as_echo_n "checking for $ac_word... " >&6; }
6149if test "${ac_cv_prog_CXX+set}" = set; then :
6150 $as_echo_n "(cached) " >&6
6151else
6152 if test -n "$CXX"; then
6153 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6154else
6155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156for as_dir in $PATH
6157do
6158 IFS=$as_save_IFS
6159 test -z "$as_dir" && as_dir=.
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6162 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 break 2
6165 fi
6166done
6167 done
6168IFS=$as_save_IFS
6169
6170fi
6171fi
6172CXX=$ac_cv_prog_CXX
6173if test -n "$CXX"; then
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6175$as_echo "$CXX" >&6; }
6176else
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6178$as_echo "no" >&6; }
6179fi
6180
6181
6182 test -n "$CXX" && break
6183 done
6184fi
6185if test -z "$CXX"; then
6186 ac_ct_CXX=$CXX
6187 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6188do
6189 # Extract the first word of "$ac_prog", so it can be a program name with args.
6190set dummy $ac_prog; ac_word=$2
6191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6192$as_echo_n "checking for $ac_word... " >&6; }
6193if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6194 $as_echo_n "(cached) " >&6
6195else
6196 if test -n "$ac_ct_CXX"; then
6197 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6198else
6199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200for as_dir in $PATH
6201do
6202 IFS=$as_save_IFS
6203 test -z "$as_dir" && as_dir=.
6204 for ac_exec_ext in '' $ac_executable_extensions; do
6205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6206 ac_cv_prog_ac_ct_CXX="$ac_prog"
6207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6208 break 2
6209 fi
6210done
6211 done
6212IFS=$as_save_IFS
6213
6214fi
6215fi
6216ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6217if test -n "$ac_ct_CXX"; then
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6219$as_echo "$ac_ct_CXX" >&6; }
6220else
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6222$as_echo "no" >&6; }
6223fi
6224
6225
6226 test -n "$ac_ct_CXX" && break
6227done
6228
6229 if test "x$ac_ct_CXX" = x; then
6230 CXX="g++"
6231 else
6232 case $cross_compiling:$ac_tool_warned in
6233yes:)
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6236ac_tool_warned=yes ;;
6237esac
6238 CXX=$ac_ct_CXX
6239 fi
6240fi
6241
6242 fi
6243fi
6244# Provide some information about the compiler.
6245$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6246set X $ac_compile
6247ac_compiler=$2
6248for ac_option in --version -v -V -qversion; do
6249 { { ac_try="$ac_compiler $ac_option >&5"
6250case "(($ac_try" in
6251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6252 *) ac_try_echo=$ac_try;;
6253esac
6254eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6255$as_echo "$ac_try_echo"; } >&5
6256 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6257 ac_status=$?
6258 if test -s conftest.err; then
6259 sed '10a\
6260... rest of stderr output deleted ...
6261 10q' conftest.err >conftest.er1
6262 cat conftest.er1 >&5
6263 fi
6264 rm -f conftest.er1 conftest.err
6265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6266 test $ac_status = 0; }
6267done
6268
6269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6270$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6271if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6272 $as_echo_n "(cached) " >&6
6273else
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275/* end confdefs.h. */
6276
6277int
6278main ()
6279{
6280#ifndef __GNUC__
6281 choke me
6282#endif
6283
6284 ;
6285 return 0;
6286}
6287_ACEOF
6288if ac_fn_cxx_try_compile "$LINENO"; then :
6289 ac_compiler_gnu=yes
6290else
6291 ac_compiler_gnu=no
6292fi
6293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6294ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6295
6296fi
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6298$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6299if test $ac_compiler_gnu = yes; then
6300 GXX=yes
6301else
6302 GXX=
6303fi
6304ac_test_CXXFLAGS=${CXXFLAGS+set}
6305ac_save_CXXFLAGS=$CXXFLAGS
6306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6307$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6308if test "${ac_cv_prog_cxx_g+set}" = set; then :
6309 $as_echo_n "(cached) " >&6
6310else
6311 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6312 ac_cxx_werror_flag=yes
6313 ac_cv_prog_cxx_g=no
6314 CXXFLAGS="-g"
6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316/* end confdefs.h. */
6317
6318int
6319main ()
6320{
6321
6322 ;
6323 return 0;
6324}
6325_ACEOF
6326if ac_fn_cxx_try_compile "$LINENO"; then :
6327 ac_cv_prog_cxx_g=yes
6328else
6329 CXXFLAGS=""
6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331/* end confdefs.h. */
6332
6333int
6334main ()
6335{
6336
6337 ;
6338 return 0;
6339}
6340_ACEOF
6341if ac_fn_cxx_try_compile "$LINENO"; then :
6342
6343else
6344 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6345 CXXFLAGS="-g"
6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347/* end confdefs.h. */
6348
6349int
6350main ()
6351{
6352
6353 ;
6354 return 0;
6355}
6356_ACEOF
6357if ac_fn_cxx_try_compile "$LINENO"; then :
6358 ac_cv_prog_cxx_g=yes
6359fi
6360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6361fi
6362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6363fi
6364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6365 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6366fi
6367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6368$as_echo "$ac_cv_prog_cxx_g" >&6; }
6369if test "$ac_test_CXXFLAGS" = set; then
6370 CXXFLAGS=$ac_save_CXXFLAGS
6371elif test $ac_cv_prog_cxx_g = yes; then
6372 if test "$GXX" = yes; then
6373 CXXFLAGS="-g -O2"
6374 else
6375 CXXFLAGS="-g"
6376 fi
6377else
6378 if test "$GXX" = yes; then
6379 CXXFLAGS="-O2"
6380 else
6381 CXXFLAGS=
6382 fi
6383fi
6384ac_ext=c
6385ac_cpp='$CPP $CPPFLAGS'
6386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6388ac_compiler_gnu=$ac_cv_c_compiler_gnu
6389
6390depcc="$CXX" am_compiler_list=
6391
6392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6393$as_echo_n "checking dependency style of $depcc... " >&6; }
6394if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6395 $as_echo_n "(cached) " >&6
6396else
6397 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6398 # We make a subdir and do the tests there. Otherwise we can end up
6399 # making bogus files that we don't know about and never remove. For
6400 # instance it was reported that on HP-UX the gcc test will end up
6401 # making a dummy file named `D' -- because `-MD' means `put the output
6402 # in D'.
6403 mkdir conftest.dir
6404 # Copy depcomp to subdir because otherwise we won't find it if we're
6405 # using a relative directory.
6406 cp "$am_depcomp" conftest.dir
6407 cd conftest.dir
6408 # We will build objects and dependencies in a subdirectory because
6409 # it helps to detect inapplicable dependency modes. For instance
6410 # both Tru64's cc and ICC support -MD to output dependencies as a
6411 # side effect of compilation, but ICC will put the dependencies in
6412 # the current directory while Tru64 will put them in the object
6413 # directory.
6414 mkdir sub
6415
6416 am_cv_CXX_dependencies_compiler_type=none
6417 if test "$am_compiler_list" = ""; then
6418 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6419 fi
6420 am__universal=false
6421 case " $depcc " in #(
6422 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6423 esac
6424
6425 for depmode in $am_compiler_list; do
6426 # Setup a source with many dependencies, because some compilers
6427 # like to wrap large dependency lists on column 80 (with \), and
6428 # we should not choose a depcomp mode which is confused by this.
6429 #
6430 # We need to recreate these files for each test, as the compiler may
6431 # overwrite some of them when testing with obscure command lines.
6432 # This happens at least with the AIX C compiler.
6433 : > sub/conftest.c
6434 for i in 1 2 3 4 5 6; do
6435 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6436 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6437 # Solaris 8's {/usr,}/bin/sh.
6438 touch sub/conftst$i.h
6439 done
6440 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6441
6442 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6443 # mode. It turns out that the SunPro C++ compiler does not properly
6444 # handle `-M -o', and we need to detect this. Also, some Intel
6445 # versions had trouble with output in subdirs
6446 am__obj=sub/conftest.${OBJEXT-o}
6447 am__minus_obj="-o $am__obj"
6448 case $depmode in
6449 gcc)
6450 # This depmode causes a compiler race in universal mode.
6451 test "$am__universal" = false || continue
6452 ;;
6453 nosideeffect)
6454 # after this tag, mechanisms are not by side-effect, so they'll
6455 # only be used when explicitly requested
6456 if test "x$enable_dependency_tracking" = xyes; then
6457 continue
6458 else
6459 break
6460 fi
6461 ;;
6462 msvisualcpp | msvcmsys)
6463 # This compiler won't grok `-c -o', but also, the minuso test has
6464 # not run yet. These depmodes are late enough in the game, and
6465 # so weak that their functioning should not be impacted.
6466 am__obj=conftest.${OBJEXT-o}
6467 am__minus_obj=
6468 ;;
6469 none) break ;;
6470 esac
6471 if depmode=$depmode \
6472 source=sub/conftest.c object=$am__obj \
6473 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6474 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6475 >/dev/null 2>conftest.err &&
6476 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6477 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6478 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6479 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6480 # icc doesn't choke on unknown options, it will just issue warnings
6481 # or remarks (even with -Werror). So we grep stderr for any message
6482 # that says an option was ignored or not supported.
6483 # When given -MP, icc 7.0 and 7.1 complain thusly:
6484 # icc: Command line warning: ignoring option '-M'; no argument required
6485 # The diagnosis changed in icc 8.0:
6486 # icc: Command line remark: option '-MP' not supported
6487 if (grep 'ignoring option' conftest.err ||
6488 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6489 am_cv_CXX_dependencies_compiler_type=$depmode
6490 break
6491 fi
6492 fi
6493 done
6494
6495 cd ..
6496 rm -rf conftest.dir
6497else
6498 am_cv_CXX_dependencies_compiler_type=none
6499fi
6500
6501fi
6502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6503$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6504CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6505
6506 if
6507 test "x$enable_dependency_tracking" != xno \
6508 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6509 am__fastdepCXX_TRUE=
6510 am__fastdepCXX_FALSE='#'
6511else
6512 am__fastdepCXX_TRUE='#'
6513 am__fastdepCXX_FALSE=
6514fi
6515
6516
cristy8b350f62009-11-15 23:12:43 +00006517 case $ac_cv_prog_cc_stdc in #(
6518 no) :
6519 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6520 *) :
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006522$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006523if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006524 $as_echo_n "(cached) " >&6
6525else
6526 ac_cv_prog_cc_c99=no
6527ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006529/* end confdefs.h. */
6530#include <stdarg.h>
6531#include <stdbool.h>
6532#include <stdlib.h>
6533#include <wchar.h>
6534#include <stdio.h>
6535
6536// Check varargs macros. These examples are taken from C99 6.10.3.5.
6537#define debug(...) fprintf (stderr, __VA_ARGS__)
6538#define showlist(...) puts (#__VA_ARGS__)
6539#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6540static void
6541test_varargs_macros (void)
6542{
6543 int x = 1234;
6544 int y = 5678;
6545 debug ("Flag");
6546 debug ("X = %d\n", x);
6547 showlist (The first, second, and third items.);
6548 report (x>y, "x is %d but y is %d", x, y);
6549}
6550
6551// Check long long types.
6552#define BIG64 18446744073709551615ull
6553#define BIG32 4294967295ul
6554#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6555#if !BIG_OK
6556 your preprocessor is broken;
6557#endif
6558#if BIG_OK
6559#else
6560 your preprocessor is broken;
6561#endif
6562static long long int bignum = -9223372036854775807LL;
6563static unsigned long long int ubignum = BIG64;
6564
6565struct incomplete_array
6566{
6567 int datasize;
6568 double data[];
6569};
6570
6571struct named_init {
6572 int number;
6573 const wchar_t *name;
6574 double average;
6575};
6576
6577typedef const char *ccp;
6578
6579static inline int
6580test_restrict (ccp restrict text)
6581{
6582 // See if C++-style comments work.
6583 // Iterate through items via the restricted pointer.
6584 // Also check for declarations in for loops.
6585 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6586 continue;
6587 return 0;
6588}
6589
6590// Check varargs and va_copy.
6591static void
6592test_varargs (const char *format, ...)
6593{
6594 va_list args;
6595 va_start (args, format);
6596 va_list args_copy;
6597 va_copy (args_copy, args);
6598
6599 const char *str;
6600 int number;
6601 float fnumber;
6602
6603 while (*format)
6604 {
6605 switch (*format++)
6606 {
6607 case 's': // string
6608 str = va_arg (args_copy, const char *);
6609 break;
6610 case 'd': // int
6611 number = va_arg (args_copy, int);
6612 break;
6613 case 'f': // float
6614 fnumber = va_arg (args_copy, double);
6615 break;
6616 default:
6617 break;
6618 }
6619 }
6620 va_end (args_copy);
6621 va_end (args);
6622}
6623
6624int
6625main ()
6626{
6627
6628 // Check bool.
6629 _Bool success = false;
6630
6631 // Check restrict.
6632 if (test_restrict ("String literal") == 0)
6633 success = true;
6634 char *restrict newvar = "Another string";
6635
6636 // Check varargs.
6637 test_varargs ("s, d' f .", "string", 65, 34.234);
6638 test_varargs_macros ();
6639
6640 // Check flexible array members.
6641 struct incomplete_array *ia =
6642 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6643 ia->datasize = 10;
6644 for (int i = 0; i < ia->datasize; ++i)
6645 ia->data[i] = i * 1.234;
6646
6647 // Check named initializers.
6648 struct named_init ni = {
6649 .number = 34,
6650 .name = L"Test wide string",
6651 .average = 543.34343,
6652 };
6653
6654 ni.number = 58;
6655
6656 int dynamic_array[ni.number];
6657 dynamic_array[ni.number - 1] = 543;
6658
6659 // work around unused variable warnings
6660 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6661 || dynamic_array[ni.number - 1] != 543);
6662
6663 ;
6664 return 0;
6665}
6666_ACEOF
6667for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6668do
6669 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006670 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006671 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006672fi
cristy3ed852e2009-09-05 21:47:34 +00006673rm -f core conftest.err conftest.$ac_objext
6674 test "x$ac_cv_prog_cc_c99" != "xno" && break
6675done
6676rm -f conftest.$ac_ext
6677CC=$ac_save_CC
6678
6679fi
6680# AC_CACHE_VAL
6681case "x$ac_cv_prog_cc_c99" in
6682 x)
cristy8b350f62009-11-15 23:12:43 +00006683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006684$as_echo "none needed" >&6; } ;;
6685 xno)
cristy8b350f62009-11-15 23:12:43 +00006686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006687$as_echo "unsupported" >&6; } ;;
6688 *)
6689 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006691$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6692esac
cristy8b350f62009-11-15 23:12:43 +00006693if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006694 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6695else
cristy8b350f62009-11-15 23:12:43 +00006696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006697$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006698if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006699 $as_echo_n "(cached) " >&6
6700else
6701 ac_cv_prog_cc_c89=no
6702ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006704/* end confdefs.h. */
6705#include <stdarg.h>
6706#include <stdio.h>
6707#include <sys/types.h>
6708#include <sys/stat.h>
6709/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6710struct buf { int x; };
6711FILE * (*rcsopen) (struct buf *, struct stat *, int);
6712static char *e (p, i)
6713 char **p;
6714 int i;
6715{
6716 return p[i];
6717}
6718static char *f (char * (*g) (char **, int), char **p, ...)
6719{
6720 char *s;
6721 va_list v;
6722 va_start (v,p);
6723 s = g (p, va_arg (v,int));
6724 va_end (v);
6725 return s;
6726}
6727
6728/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6729 function prototypes and stuff, but not '\xHH' hex character constants.
6730 These don't provoke an error unfortunately, instead are silently treated
6731 as 'x'. The following induces an error, until -std is added to get
6732 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6733 array size at least. It's necessary to write '\x00'==0 to get something
6734 that's true only with -std. */
6735int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6736
6737/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6738 inside strings and character constants. */
6739#define FOO(x) 'x'
6740int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6741
6742int test (int i, double x);
6743struct s1 {int (*f) (int a);};
6744struct s2 {int (*f) (double a);};
6745int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6746int argc;
6747char **argv;
6748int
6749main ()
6750{
6751return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6752 ;
6753 return 0;
6754}
6755_ACEOF
6756for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6757 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6758do
6759 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006760 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006761 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006762fi
cristy3ed852e2009-09-05 21:47:34 +00006763rm -f core conftest.err conftest.$ac_objext
6764 test "x$ac_cv_prog_cc_c89" != "xno" && break
6765done
6766rm -f conftest.$ac_ext
6767CC=$ac_save_CC
6768
6769fi
6770# AC_CACHE_VAL
6771case "x$ac_cv_prog_cc_c89" in
6772 x)
cristy8b350f62009-11-15 23:12:43 +00006773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006774$as_echo "none needed" >&6; } ;;
6775 xno)
cristy8b350f62009-11-15 23:12:43 +00006776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006777$as_echo "unsupported" >&6; } ;;
6778 *)
6779 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006781$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6782esac
cristy8b350f62009-11-15 23:12:43 +00006783if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006784 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6785else
6786 ac_cv_prog_cc_stdc=no
6787fi
6788
cristy3ed852e2009-09-05 21:47:34 +00006789fi
cristy3ed852e2009-09-05 21:47:34 +00006790 ;;
6791esac
cristy8b350f62009-11-15 23:12:43 +00006792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006793$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006794 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006795 $as_echo_n "(cached) " >&6
6796fi
6797
cristy8b350f62009-11-15 23:12:43 +00006798 case $ac_cv_prog_cc_stdc in #(
6799 no) :
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6801$as_echo "unsupported" >&6; } ;; #(
6802 '') :
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6804$as_echo "none needed" >&6; } ;; #(
6805 *) :
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006807$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6808esac
6809
cristy3ed852e2009-09-05 21:47:34 +00006810ac_ext=c
6811ac_cpp='$CPP $CPPFLAGS'
6812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6814ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006816$as_echo_n "checking how to run the C preprocessor... " >&6; }
6817# On Suns, sometimes $CPP names a directory.
6818if test -n "$CPP" && test -d "$CPP"; then
6819 CPP=
6820fi
6821if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00006822 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006823 $as_echo_n "(cached) " >&6
6824else
6825 # Double quotes because CPP needs to be expanded
6826 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6827 do
6828 ac_preproc_ok=false
6829for ac_c_preproc_warn_flag in '' yes
6830do
6831 # Use a header file that comes with gcc, so configuring glibc
6832 # with a fresh cross-compiler works.
6833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6834 # <limits.h> exists even on freestanding compilers.
6835 # On the NeXT, cc -E runs the code through the compiler's parser,
6836 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006838/* end confdefs.h. */
6839#ifdef __STDC__
6840# include <limits.h>
6841#else
6842# include <assert.h>
6843#endif
6844 Syntax error
6845_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006846if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006847
cristy8b350f62009-11-15 23:12:43 +00006848else
cristy3ed852e2009-09-05 21:47:34 +00006849 # Broken: fails on valid input.
6850continue
6851fi
cristy3ed852e2009-09-05 21:47:34 +00006852rm -f conftest.err conftest.$ac_ext
6853
6854 # OK, works on sane cases. Now check whether nonexistent headers
6855 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006857/* end confdefs.h. */
6858#include <ac_nonexistent.h>
6859_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006860if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006861 # Broken: success on invalid input.
6862continue
6863else
cristy3ed852e2009-09-05 21:47:34 +00006864 # Passes both tests.
6865ac_preproc_ok=:
6866break
6867fi
cristy3ed852e2009-09-05 21:47:34 +00006868rm -f conftest.err conftest.$ac_ext
6869
6870done
6871# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6872rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006873if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00006874 break
6875fi
6876
6877 done
6878 ac_cv_prog_CPP=$CPP
6879
6880fi
6881 CPP=$ac_cv_prog_CPP
6882else
6883 ac_cv_prog_CPP=$CPP
6884fi
cristy8b350f62009-11-15 23:12:43 +00006885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006886$as_echo "$CPP" >&6; }
6887ac_preproc_ok=false
6888for ac_c_preproc_warn_flag in '' yes
6889do
6890 # Use a header file that comes with gcc, so configuring glibc
6891 # with a fresh cross-compiler works.
6892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6893 # <limits.h> exists even on freestanding compilers.
6894 # On the NeXT, cc -E runs the code through the compiler's parser,
6895 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006897/* end confdefs.h. */
6898#ifdef __STDC__
6899# include <limits.h>
6900#else
6901# include <assert.h>
6902#endif
6903 Syntax error
6904_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006905if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006906
cristy8b350f62009-11-15 23:12:43 +00006907else
cristy3ed852e2009-09-05 21:47:34 +00006908 # Broken: fails on valid input.
6909continue
6910fi
cristy3ed852e2009-09-05 21:47:34 +00006911rm -f conftest.err conftest.$ac_ext
6912
6913 # OK, works on sane cases. Now check whether nonexistent headers
6914 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006916/* end confdefs.h. */
6917#include <ac_nonexistent.h>
6918_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006919if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006920 # Broken: success on invalid input.
6921continue
6922else
cristy3ed852e2009-09-05 21:47:34 +00006923 # Passes both tests.
6924ac_preproc_ok=:
6925break
6926fi
cristy3ed852e2009-09-05 21:47:34 +00006927rm -f conftest.err conftest.$ac_ext
6928
6929done
6930# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6931rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006932if $ac_preproc_ok; then :
6933
cristy3ed852e2009-09-05 21:47:34 +00006934else
cristy8b350f62009-11-15 23:12:43 +00006935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00006936$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +00006937as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6938See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00006939fi
6940
6941ac_ext=c
6942ac_cpp='$CPP $CPPFLAGS'
6943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6945ac_compiler_gnu=$ac_cv_c_compiler_gnu
6946
cristy8b350f62009-11-15 23:12:43 +00006947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00006948$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006949if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006950 $as_echo_n "(cached) " >&6
6951else
6952 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6953 for ac_i in 1 2 3 4 5 6 7; do
6954 ac_script="$ac_script$as_nl$ac_script"
6955 done
6956 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00006957 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00006958 if test -z "$SED"; then
6959 ac_path_SED_found=false
6960 # Loop through the user's path and test for each of PROGNAME-LIST
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962for as_dir in $PATH
6963do
6964 IFS=$as_save_IFS
6965 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006966 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00006967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6969 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6970# Check for GNU ac_path_SED and select it if it is found.
6971 # Check for GNU $ac_path_SED
6972case `"$ac_path_SED" --version 2>&1` in
6973*GNU*)
6974 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6975*)
6976 ac_count=0
6977 $as_echo_n 0123456789 >"conftest.in"
6978 while :
6979 do
6980 cat "conftest.in" "conftest.in" >"conftest.tmp"
6981 mv "conftest.tmp" "conftest.in"
6982 cp "conftest.in" "conftest.nl"
6983 $as_echo '' >> "conftest.nl"
6984 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6985 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00006986 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00006987 if test $ac_count -gt ${ac_path_SED_max-0}; then
6988 # Best one so far, save it but keep looking for a better one
6989 ac_cv_path_SED="$ac_path_SED"
6990 ac_path_SED_max=$ac_count
6991 fi
6992 # 10*(2^10) chars as input seems more than enough
6993 test $ac_count -gt 10 && break
6994 done
6995 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6996esac
6997
6998 $ac_path_SED_found && break 3
6999 done
7000 done
cristy8b350f62009-11-15 23:12:43 +00007001 done
cristy3ed852e2009-09-05 21:47:34 +00007002IFS=$as_save_IFS
7003 if test -z "$ac_cv_path_SED"; then
cristy0684af42010-07-09 00:00:05 +00007004 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007005 fi
7006else
7007 ac_cv_path_SED=$SED
7008fi
7009
7010fi
cristy8b350f62009-11-15 23:12:43 +00007011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00007012$as_echo "$ac_cv_path_SED" >&6; }
7013 SED="$ac_cv_path_SED"
7014 rm -f conftest.sed
7015
7016test -z "$SED" && SED=sed
7017Xsed="$SED -e 1s/^X//"
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
cristy8b350f62009-11-15 23:12:43 +00007029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00007030$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007031if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007032 $as_echo_n "(cached) " >&6
7033else
7034 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7035 then ac_cv_path_FGREP="$GREP -F"
7036 else
7037 if test -z "$FGREP"; then
7038 ac_path_FGREP_found=false
7039 # Loop through the user's path and test for each of PROGNAME-LIST
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7042do
7043 IFS=$as_save_IFS
7044 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007045 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00007046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7048 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7049# Check for GNU ac_path_FGREP and select it if it is found.
7050 # Check for GNU $ac_path_FGREP
7051case `"$ac_path_FGREP" --version 2>&1` in
7052*GNU*)
7053 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7054*)
7055 ac_count=0
7056 $as_echo_n 0123456789 >"conftest.in"
7057 while :
7058 do
7059 cat "conftest.in" "conftest.in" >"conftest.tmp"
7060 mv "conftest.tmp" "conftest.in"
7061 cp "conftest.in" "conftest.nl"
7062 $as_echo 'FGREP' >> "conftest.nl"
7063 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7064 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007065 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007066 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7067 # Best one so far, save it but keep looking for a better one
7068 ac_cv_path_FGREP="$ac_path_FGREP"
7069 ac_path_FGREP_max=$ac_count
7070 fi
7071 # 10*(2^10) chars as input seems more than enough
7072 test $ac_count -gt 10 && break
7073 done
7074 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7075esac
7076
7077 $ac_path_FGREP_found && break 3
7078 done
7079 done
cristy8b350f62009-11-15 23:12:43 +00007080 done
cristy3ed852e2009-09-05 21:47:34 +00007081IFS=$as_save_IFS
7082 if test -z "$ac_cv_path_FGREP"; then
cristy0684af42010-07-09 00:00:05 +00007083 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007084 fi
7085else
7086 ac_cv_path_FGREP=$FGREP
7087fi
7088
7089 fi
7090fi
cristy8b350f62009-11-15 23:12:43 +00007091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007092$as_echo "$ac_cv_path_FGREP" >&6; }
7093 FGREP="$ac_cv_path_FGREP"
7094
7095
7096test -z "$GREP" && GREP=grep
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
cristy232a9ab2010-06-26 01:02:54 +00007114ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7115ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7116ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7117
7118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7119$as_echo_n "checking how to print strings... " >&6; }
7120# Test print first, because it will be a builtin if present.
7121if test "X`print -r -- -n 2>/dev/null`" = X-n && \
7122 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7123 ECHO='print -r --'
7124elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7125 ECHO='printf %s\n'
7126else
7127 # Use this function as a fallback that always works.
7128 func_fallback_echo ()
7129 {
7130 eval 'cat <<_LTECHO_EOF
7131$1
7132_LTECHO_EOF'
7133 }
7134 ECHO='func_fallback_echo'
7135fi
7136
7137# func_echo_all arg...
7138# Invoke $ECHO with all args, space-separated.
7139func_echo_all ()
7140{
7141 $ECHO ""
7142}
7143
7144case "$ECHO" in
7145 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7146$as_echo "printf" >&6; } ;;
7147 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7148$as_echo "print -r" >&6; } ;;
7149 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7150$as_echo "cat" >&6; } ;;
7151esac
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
cristy3ed852e2009-09-05 21:47:34 +00007166
7167
7168# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00007169if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007170 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7171else
7172 with_gnu_ld=no
7173fi
7174
7175ac_prog=ld
7176if test "$GCC" = yes; then
7177 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00007178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007179$as_echo_n "checking for ld used by $CC... " >&6; }
7180 case $host in
7181 *-*-mingw*)
7182 # gcc leaves a trailing carriage return which upsets mingw
7183 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7184 *)
7185 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7186 esac
7187 case $ac_prog in
7188 # Accept absolute paths.
7189 [\\/]* | ?:[\\/]*)
7190 re_direlt='/[^/][^/]*/\.\./'
7191 # Canonicalize the pathname of ld
7192 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7193 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7194 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7195 done
7196 test -z "$LD" && LD="$ac_prog"
7197 ;;
7198 "")
7199 # If it fails, then pretend we aren't using GCC.
7200 ac_prog=ld
7201 ;;
7202 *)
7203 # If it is relative, then search for the first ld in PATH.
7204 with_gnu_ld=unknown
7205 ;;
7206 esac
7207elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007209$as_echo_n "checking for GNU ld... " >&6; }
7210else
cristy8b350f62009-11-15 23:12:43 +00007211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007212$as_echo_n "checking for non-GNU ld... " >&6; }
7213fi
cristy8b350f62009-11-15 23:12:43 +00007214if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007215 $as_echo_n "(cached) " >&6
7216else
7217 if test -z "$LD"; then
7218 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7219 for ac_dir in $PATH; do
7220 IFS="$lt_save_ifs"
7221 test -z "$ac_dir" && ac_dir=.
7222 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7223 lt_cv_path_LD="$ac_dir/$ac_prog"
7224 # Check to see if the program is GNU ld. I'd rather use --version,
7225 # but apparently some variants of GNU ld only accept -v.
7226 # Break only if it was the GNU/non-GNU ld that we prefer.
7227 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7228 *GNU* | *'with BFD'*)
7229 test "$with_gnu_ld" != no && break
7230 ;;
7231 *)
7232 test "$with_gnu_ld" != yes && break
7233 ;;
7234 esac
7235 fi
7236 done
7237 IFS="$lt_save_ifs"
7238else
7239 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7240fi
7241fi
7242
7243LD="$lt_cv_path_LD"
7244if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00007245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00007246$as_echo "$LD" >&6; }
7247else
cristy8b350f62009-11-15 23:12:43 +00007248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007249$as_echo "no" >&6; }
7250fi
cristy0684af42010-07-09 00:00:05 +00007251test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy8b350f62009-11-15 23:12:43 +00007252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007253$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007254if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007255 $as_echo_n "(cached) " >&6
7256else
7257 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7258case `$LD -v 2>&1 </dev/null` in
7259*GNU* | *'with BFD'*)
7260 lt_cv_prog_gnu_ld=yes
7261 ;;
7262*)
7263 lt_cv_prog_gnu_ld=no
7264 ;;
7265esac
7266fi
cristy8b350f62009-11-15 23:12:43 +00007267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007268$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7269with_gnu_ld=$lt_cv_prog_gnu_ld
7270
7271
7272
7273
7274
7275
7276
7277
7278
cristy3ed852e2009-09-05 21:47:34 +00007279
cristy837d6dc2010-02-27 01:16:57 +00007280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7281$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7282if test "${ac_cv_prog_cc_c99+set}" = set; then :
7283 $as_echo_n "(cached) " >&6
7284else
7285 ac_cv_prog_cc_c99=no
7286ac_save_CC=$CC
7287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7288/* end confdefs.h. */
7289#include <stdarg.h>
7290#include <stdbool.h>
7291#include <stdlib.h>
7292#include <wchar.h>
7293#include <stdio.h>
7294
7295// Check varargs macros. These examples are taken from C99 6.10.3.5.
7296#define debug(...) fprintf (stderr, __VA_ARGS__)
7297#define showlist(...) puts (#__VA_ARGS__)
7298#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7299static void
7300test_varargs_macros (void)
7301{
7302 int x = 1234;
7303 int y = 5678;
7304 debug ("Flag");
7305 debug ("X = %d\n", x);
7306 showlist (The first, second, and third items.);
7307 report (x>y, "x is %d but y is %d", x, y);
7308}
7309
7310// Check long long types.
7311#define BIG64 18446744073709551615ull
7312#define BIG32 4294967295ul
7313#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7314#if !BIG_OK
7315 your preprocessor is broken;
7316#endif
7317#if BIG_OK
7318#else
7319 your preprocessor is broken;
7320#endif
7321static long long int bignum = -9223372036854775807LL;
7322static unsigned long long int ubignum = BIG64;
7323
7324struct incomplete_array
7325{
7326 int datasize;
7327 double data[];
7328};
7329
7330struct named_init {
7331 int number;
7332 const wchar_t *name;
7333 double average;
7334};
7335
7336typedef const char *ccp;
7337
7338static inline int
7339test_restrict (ccp restrict text)
7340{
7341 // See if C++-style comments work.
7342 // Iterate through items via the restricted pointer.
7343 // Also check for declarations in for loops.
7344 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7345 continue;
7346 return 0;
7347}
7348
7349// Check varargs and va_copy.
7350static void
7351test_varargs (const char *format, ...)
7352{
7353 va_list args;
7354 va_start (args, format);
7355 va_list args_copy;
7356 va_copy (args_copy, args);
7357
7358 const char *str;
7359 int number;
7360 float fnumber;
7361
7362 while (*format)
7363 {
7364 switch (*format++)
7365 {
7366 case 's': // string
7367 str = va_arg (args_copy, const char *);
7368 break;
7369 case 'd': // int
7370 number = va_arg (args_copy, int);
7371 break;
7372 case 'f': // float
7373 fnumber = va_arg (args_copy, double);
7374 break;
7375 default:
7376 break;
7377 }
7378 }
7379 va_end (args_copy);
7380 va_end (args);
7381}
7382
7383int
7384main ()
7385{
7386
7387 // Check bool.
7388 _Bool success = false;
7389
7390 // Check restrict.
7391 if (test_restrict ("String literal") == 0)
7392 success = true;
7393 char *restrict newvar = "Another string";
7394
7395 // Check varargs.
7396 test_varargs ("s, d' f .", "string", 65, 34.234);
7397 test_varargs_macros ();
7398
7399 // Check flexible array members.
7400 struct incomplete_array *ia =
7401 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7402 ia->datasize = 10;
7403 for (int i = 0; i < ia->datasize; ++i)
7404 ia->data[i] = i * 1.234;
7405
7406 // Check named initializers.
7407 struct named_init ni = {
7408 .number = 34,
7409 .name = L"Test wide string",
7410 .average = 543.34343,
7411 };
7412
7413 ni.number = 58;
7414
7415 int dynamic_array[ni.number];
7416 dynamic_array[ni.number - 1] = 543;
7417
7418 // work around unused variable warnings
7419 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7420 || dynamic_array[ni.number - 1] != 543);
7421
7422 ;
7423 return 0;
7424}
7425_ACEOF
7426for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7427do
7428 CC="$ac_save_CC $ac_arg"
7429 if ac_fn_c_try_compile "$LINENO"; then :
7430 ac_cv_prog_cc_c99=$ac_arg
7431fi
7432rm -f core conftest.err conftest.$ac_objext
7433 test "x$ac_cv_prog_cc_c99" != "xno" && break
7434done
7435rm -f conftest.$ac_ext
7436CC=$ac_save_CC
7437
7438fi
7439# AC_CACHE_VAL
7440case "x$ac_cv_prog_cc_c99" in
7441 x)
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7443$as_echo "none needed" >&6; } ;;
7444 xno)
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7446$as_echo "unsupported" >&6; } ;;
7447 *)
7448 CC="$CC $ac_cv_prog_cc_c99"
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7450$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7451esac
7452if test "x$ac_cv_prog_cc_c99" != xno; then :
7453
7454fi
7455
7456
cristy3ed852e2009-09-05 21:47:34 +00007457if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00007458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007459$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7460else
cristy8b350f62009-11-15 23:12:43 +00007461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007462$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7463fi
7464set dummy $CC; ac_cc=`$as_echo "$2" |
7465 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy0684af42010-07-09 00:00:05 +00007466if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007467 $as_echo_n "(cached) " >&6
7468else
cristy8b350f62009-11-15 23:12:43 +00007469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007470/* end confdefs.h. */
7471
7472int
7473main ()
7474{
7475
7476 ;
7477 return 0;
7478}
7479_ACEOF
7480# Make sure it works both with $CC and with simple cc.
7481# We do the test twice because some compilers refuse to overwrite an
7482# existing .o file with -o, though they will create one.
7483ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7484rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007485if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7487 *) ac_try_echo=$ac_try;;
7488esac
cristy8b350f62009-11-15 23:12:43 +00007489eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7490$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007491 (eval "$ac_try") 2>&5
7492 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7494 test $ac_status = 0; } &&
7495 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7497 *) ac_try_echo=$ac_try;;
7498esac
cristy8b350f62009-11-15 23:12:43 +00007499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7500$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007501 (eval "$ac_try") 2>&5
7502 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7504 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007505then
7506 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7507 if test "x$CC" != xcc; then
7508 # Test first that cc exists at all.
7509 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00007510 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7512 *) ac_try_echo=$ac_try;;
7513esac
cristy8b350f62009-11-15 23:12:43 +00007514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7515$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007516 (eval "$ac_try") 2>&5
7517 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7519 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00007520 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7521 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007522 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7524 *) ac_try_echo=$ac_try;;
7525esac
cristy8b350f62009-11-15 23:12:43 +00007526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7527$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007528 (eval "$ac_try") 2>&5
7529 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7531 test $ac_status = 0; } &&
7532 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7534 *) ac_try_echo=$ac_try;;
7535esac
cristy8b350f62009-11-15 23:12:43 +00007536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7537$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007538 (eval "$ac_try") 2>&5
7539 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7541 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007542 then
7543 # cc works too.
7544 :
7545 else
7546 # cc exists but doesn't like -o.
7547 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7548 fi
7549 fi
7550 fi
7551else
7552 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7553fi
7554rm -f core conftest*
7555
7556fi
7557if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00007558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007559$as_echo "yes" >&6; }
7560else
cristy8b350f62009-11-15 23:12:43 +00007561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007562$as_echo "no" >&6; }
7563
cristy8b350f62009-11-15 23:12:43 +00007564$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007565
7566fi
7567
7568# FIXME: we rely on the cache variable name because
7569# there is no other way.
7570set dummy $CC
7571am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7572eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7573if test "$am_t" != yes; then
7574 # Losing compiler, so override with the script.
7575 # FIXME: It is wrong to rewrite CC.
7576 # But if we don't then we get into trouble of one sort or another.
7577 # A longer-term fix would be to have automake use am__CC in this case,
7578 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7579 CC="$am_aux_dir/compile $CC"
7580fi
7581
7582
cristy92703d82010-04-26 00:18:18 +00007583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7584$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7585if test "${ac_cv_cflags_warn_all+set}" = set; then :
7586 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00007587else
cristy92703d82010-04-26 00:18:18 +00007588 ac_cv_cflags_warn_all="no, unknown"
7589
7590 ac_ext=c
7591ac_cpp='$CPP $CPPFLAGS'
7592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7594ac_compiler_gnu=$ac_cv_c_compiler_gnu
7595
7596 ac_save_CFLAGS="$CFLAGS"
7597for 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" #
7598do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600/* end confdefs.h. */
7601
7602int
7603main ()
7604{
7605return 0;
7606 ;
7607 return 0;
7608}
7609_ACEOF
7610if ac_fn_c_try_compile "$LINENO"; then :
7611 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
cristy3ed852e2009-09-05 21:47:34 +00007612fi
cristy92703d82010-04-26 00:18:18 +00007613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7614done
7615 CFLAGS="$ac_save_CFLAGS"
7616 ac_ext=c
7617ac_cpp='$CPP $CPPFLAGS'
7618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7620ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00007621
7622
cristy92703d82010-04-26 00:18:18 +00007623fi
7624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7625$as_echo "$ac_cv_cflags_warn_all" >&6; }
7626case ".$ac_cv_cflags_warn_all" in
7627 .ok|.ok,*) ;;
7628 .|.no|.no,*)
7629 ;;
7630 *)
7631 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7632 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7633 (: CFLAGS does contain $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 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7638 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7639 ac_status=$?
7640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7641 test $ac_status = 0; }
7642 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7643 fi
7644 ;;
7645esac
cristy3ed852e2009-09-05 21:47:34 +00007646
cristya0b81c32010-01-22 02:54:33 +00007647$ac_includes_default
7648
7649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7650$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7651set x ${MAKE-make}
7652ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy0684af42010-07-09 00:00:05 +00007653if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
cristya0b81c32010-01-22 02:54:33 +00007654 $as_echo_n "(cached) " >&6
7655else
7656 cat >conftest.make <<\_ACEOF
7657SHELL = /bin/sh
7658all:
7659 @echo '@@@%%%=$(MAKE)=@@@%%%'
7660_ACEOF
cristy0684af42010-07-09 00:00:05 +00007661# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007662case `${MAKE-make} -f conftest.make 2>/dev/null` in
7663 *@@@%%%=?*=@@@%%%*)
7664 eval ac_cv_prog_make_${ac_make}_set=yes;;
7665 *)
7666 eval ac_cv_prog_make_${ac_make}_set=no;;
7667esac
7668rm -f conftest.make
7669fi
7670if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7672$as_echo "yes" >&6; }
7673 SET_MAKE=
7674else
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676$as_echo "no" >&6; }
7677 SET_MAKE="MAKE=${MAKE-make}"
7678fi
7679
cristy8b350f62009-11-15 23:12:43 +00007680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007681$as_echo_n "checking whether ln -s works... " >&6; }
7682LN_S=$as_ln_s
7683if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007685$as_echo "yes" >&6; }
7686else
cristy8b350f62009-11-15 23:12:43 +00007687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007688$as_echo "no, using $LN_S" >&6; }
7689fi
7690
cristy8b350f62009-11-15 23:12:43 +00007691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00007692$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7693
7694# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00007695if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007696 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007698$as_echo "yes" >&6; }
7699
cristy8b350f62009-11-15 23:12:43 +00007700$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007701
7702 LIBS="$LIBS -ldmalloc"
7703 LDFLAGS="$LDFLAGS -g"
7704else
cristy8b350f62009-11-15 23:12:43 +00007705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007706$as_echo "no" >&6; }
7707fi
7708else
cristy8b350f62009-11-15 23:12:43 +00007709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007710$as_echo "no" >&6; }
7711fi
7712
7713
7714
cristy0d3a6382010-04-26 00:45:55 +00007715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7716$as_echo_n "checking for __attribute__... " >&6; }
7717if test "${ax_cv___attribute__+set}" = set; then :
7718 $as_echo_n "(cached) " >&6
7719else
7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721/* end confdefs.h. */
7722#include <stdlib.h>
7723 static void foo(void) __attribute__ ((unused));
7724 static void
7725 foo(void) {
7726 exit(1);
7727 }
7728
7729int
7730main ()
7731{
7732
7733 ;
7734 return 0;
7735}
7736_ACEOF
7737if ac_fn_c_try_compile "$LINENO"; then :
7738 ax_cv___attribute__=yes
7739else
7740 ax_cv___attribute__=no
7741
7742fi
7743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7744
7745fi
7746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7747$as_echo "$ax_cv___attribute__" >&6; }
7748 if test "$ax_cv___attribute__" = "yes"; then
7749
7750$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7751
7752 fi
7753
7754
cristy3ed852e2009-09-05 21:47:34 +00007755
7756if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7757 if test -n "$ac_tool_prefix"; then
7758 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7759set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007761$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007762if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007763 $as_echo_n "(cached) " >&6
7764else
7765 case $PKG_CONFIG in
7766 [\\/]* | ?:[\\/]*)
7767 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7768 ;;
7769 *)
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771for as_dir in $PATH
7772do
7773 IFS=$as_save_IFS
7774 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007775 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7777 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007779 break 2
7780 fi
7781done
cristy8b350f62009-11-15 23:12:43 +00007782 done
cristy3ed852e2009-09-05 21:47:34 +00007783IFS=$as_save_IFS
7784
7785 ;;
7786esac
7787fi
7788PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7789if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007791$as_echo "$PKG_CONFIG" >&6; }
7792else
cristy8b350f62009-11-15 23:12:43 +00007793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007794$as_echo "no" >&6; }
7795fi
7796
7797
7798fi
7799if test -z "$ac_cv_path_PKG_CONFIG"; then
7800 ac_pt_PKG_CONFIG=$PKG_CONFIG
7801 # Extract the first word of "pkg-config", so it can be a program name with args.
7802set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007804$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007805if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007806 $as_echo_n "(cached) " >&6
7807else
7808 case $ac_pt_PKG_CONFIG in
7809 [\\/]* | ?:[\\/]*)
7810 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7811 ;;
7812 *)
7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814for as_dir in $PATH
7815do
7816 IFS=$as_save_IFS
7817 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007818 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7820 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007822 break 2
7823 fi
7824done
cristy8b350f62009-11-15 23:12:43 +00007825 done
cristy3ed852e2009-09-05 21:47:34 +00007826IFS=$as_save_IFS
7827
7828 ;;
7829esac
7830fi
7831ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7832if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007834$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7835else
cristy8b350f62009-11-15 23:12:43 +00007836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007837$as_echo "no" >&6; }
7838fi
7839
7840 if test "x$ac_pt_PKG_CONFIG" = x; then
7841 PKG_CONFIG=""
7842 else
7843 case $cross_compiling:$ac_tool_warned in
7844yes:)
cristy8b350f62009-11-15 23:12:43 +00007845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00007846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7847ac_tool_warned=yes ;;
7848esac
7849 PKG_CONFIG=$ac_pt_PKG_CONFIG
7850 fi
7851else
7852 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7853fi
7854
7855fi
7856if test -n "$PKG_CONFIG"; then
7857 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00007858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00007859$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7860 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00007861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007862$as_echo "yes" >&6; }
7863 else
cristy8b350f62009-11-15 23:12:43 +00007864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007865$as_echo "no" >&6; }
7866 PKG_CONFIG=""
7867 fi
7868
7869fi
7870
7871#
cristy3ed852e2009-09-05 21:47:34 +00007872# Enable run-time checking.
7873#
7874# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007875if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007876 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7877else
7878 enable_bounds_checking='no'
7879fi
7880
7881
7882if test "$enable_bounds_checking" = yes; then
7883
cristy8b350f62009-11-15 23:12:43 +00007884$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007885
7886fi
7887
7888#
7889# Tests for Windows
7890#
7891
7892
cristy0d3a6382010-04-26 00:45:55 +00007893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7894$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7895if test "${ax_cv_c_compiler_ms+set}" = set; then :
7896 $as_echo_n "(cached) " >&6
7897else
7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899/* end confdefs.h. */
7900
7901int
7902main ()
7903{
7904#ifndef _MSC_VER
7905 choke me
7906#endif
7907
7908 ;
7909 return 0;
7910}
7911_ACEOF
7912if ac_fn_c_try_compile "$LINENO"; then :
7913 ax_compiler_ms=yes
7914else
7915 ax_compiler_ms=no
7916fi
7917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7918ax_cv_c_compiler_ms=$ax_compiler_ms
7919
7920fi
7921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7922$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00007923
7924GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007925native_win32_build='no'
7926cygwin_build='no'
7927case "${host_os}" in
7928 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007929 cygwin_build='yes'
7930 GDI32_LIBS='-lgdi32'
7931 ;;
7932 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007933 native_win32_build='yes'
7934 GDI32_LIBS='-lgdi32'
7935 ;;
7936esac
7937if test "${GDI32_LIBS}x" != 'x'; then
7938
cristy8b350f62009-11-15 23:12:43 +00007939$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007940
7941fi
7942
7943 if test "${GDI32_LIBS}x" != 'x' ; then
7944 WINGDI32_DELEGATE_TRUE=
7945 WINGDI32_DELEGATE_FALSE='#'
7946else
7947 WINGDI32_DELEGATE_TRUE='#'
7948 WINGDI32_DELEGATE_FALSE=
7949fi
7950
7951 if test "${native_win32_build}" = 'yes' ; then
7952 WIN32_NATIVE_BUILD_TRUE=
7953 WIN32_NATIVE_BUILD_FALSE='#'
7954else
7955 WIN32_NATIVE_BUILD_TRUE='#'
7956 WIN32_NATIVE_BUILD_FALSE=
7957fi
7958
7959 if test "${cygwin_build}" = 'yes' ; then
7960 CYGWIN_BUILD_TRUE=
7961 CYGWIN_BUILD_FALSE='#'
7962else
7963 CYGWIN_BUILD_TRUE='#'
7964 CYGWIN_BUILD_FALSE=
7965fi
7966
7967 if test "x${CC}" = 'xcl.exe' ; then
7968 USING_CL_TRUE=
7969 USING_CL_FALSE='#'
7970else
7971 USING_CL_TRUE='#'
7972 USING_CL_FALSE=
7973fi
7974
7975
7976WinPathScript="${srcdirfull}/winpath.sh"
7977
7978
7979#
7980# Compiler flags tweaks
7981#
7982if test "${GCC}" != "yes"; then
7983 case "${host}" in
7984 *-*-hpux* )
7985 # aCC: HP ANSI C++ B3910B A.03.34
7986 CFLAGS="${CFLAGS} -Wp,-H30000"
7987 if test -n "${CXXFLAGS}"; then
7988 CXXFLAGS='-AA'
7989 else
7990 CXXFLAGS="${CXXFLAGS} -AA"
7991 fi
7992 ;;
7993 *-dec-osf5.* )
7994 # Compaq alphaev68-dec-osf5.1 compiler
7995 if test -n "${CXXFLAGS}"; then
7996 CXXFLAGS='-std strict_ansi -noimplicit_include'
7997 else
7998 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
7999 fi
8000 esac
8001fi
8002
8003# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008005$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008006if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008007 $as_echo_n "(cached) " >&6
8008else
8009
8010im_cv_ld_lazyload='none'
8011case "${host}" in
8012 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8013 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8014 im_cv_ld_lazyload='-Wl,-zlazyload'
8015 fi
8016 ;;
8017esac
8018
8019fi
cristy8b350f62009-11-15 23:12:43 +00008020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008021$as_echo "$im_cv_ld_lazyload" >&6; }
8022if test "${im_cv_ld_lazyload}" != 'none' ; then
8023 if test -z "${LDFLAGS}" ; then
8024 LDFLAGS="${im_cv_ld_lazyload}"
8025 else
8026 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8027 fi
8028fi
8029
8030case "$host" in
8031*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008032 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008033if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008034 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8035else
8036 build_osxuniversal=no
8037fi
8038
8039
8040 if test "${build_osxuniversal}" != no ; then
8041 if test "$enable_dependency_tracking" != no ; then
cristy0684af42010-07-09 00:00:05 +00008042 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008043Please re-run configure with these options:
8044 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008045 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008046 fi
8047 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8048 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8049 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8050 fi
8051 ;;
8052esac
8053
8054# Enable support for threads
8055
8056# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008057if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008058 withval=$with_threads; with_threads=$withval
8059else
8060 with_threads='yes'
8061fi
8062
8063
8064have_threads=no
8065if test "$with_threads" != 'no'; then
8066
8067
8068
8069ac_ext=c
8070ac_cpp='$CPP $CPPFLAGS'
8071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8073ac_compiler_gnu=$ac_cv_c_compiler_gnu
8074
cristy964cb7f2010-04-25 23:18:00 +00008075ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008076
8077# We used to check for pthread.h first, but this fails if pthread.h
8078# requires special compiler flags (e.g. on True64 or Sequent).
8079# It gets checked for in the link test anyway.
8080
8081# First of all, check if the user has set any of the PTHREAD_LIBS,
8082# etcetera environment variables, and if threads linking works using
8083# them:
8084if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8085 save_CFLAGS="$CFLAGS"
8086 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8087 save_LIBS="$LIBS"
8088 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00008089 { $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 +00008090$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008092/* end confdefs.h. */
8093
8094/* Override any GCC internal prototype to avoid an error.
8095 Use char because int might match the return type of a GCC
8096 builtin and then its argument prototype would still apply. */
8097#ifdef __cplusplus
8098extern "C"
8099#endif
8100char pthread_join ();
8101int
8102main ()
8103{
8104return pthread_join ();
8105 ;
8106 return 0;
8107}
8108_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008109if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008110 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008111fi
cristy8b350f62009-11-15 23:12:43 +00008112rm -f core conftest.err conftest.$ac_objext \
8113 conftest$ac_exeext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +00008114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8115$as_echo "$ax_pthread_ok" >&6; }
8116 if test x"$ax_pthread_ok" = xno; then
cristy3ed852e2009-09-05 21:47:34 +00008117 PTHREAD_LIBS=""
8118 PTHREAD_CFLAGS=""
8119 fi
8120 LIBS="$save_LIBS"
8121 CFLAGS="$save_CFLAGS"
8122fi
8123
8124# We must check for the threads library under a number of different
8125# names; the ordering is very important because some systems
8126# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8127# libraries is broken (non-POSIX).
8128
8129# Create a list of thread flags to try. Items starting with a "-" are
8130# C compiler flags, and other items are library names, except for "none"
8131# which indicates that we try without any flags at all, and "pthread-config"
8132# which is a program returning the flags for the Pth emulation library.
8133
cristy964cb7f2010-04-25 23:18:00 +00008134ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy3ed852e2009-09-05 21:47:34 +00008135
8136# The ordering *is* (sometimes) important. Some notes on the
8137# individual items follow:
8138
8139# pthreads: AIX (must check this before -lpthread)
8140# none: in case threads are in libc; should be tried before -Kthread and
8141# other compiler flags to prevent continual compiler warnings
8142# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8143# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8144# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8145# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8146# -pthreads: Solaris/gcc
8147# -mthreads: Mingw32/gcc, Lynx/gcc
8148# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8149# doesn't hurt to check since this sometimes defines pthreads too;
8150# also defines -D_REENTRANT)
8151# ... -mt is also the pthreads flag for HP/aCC
8152# pthread: Linux, etcetera
8153# --thread-safe: KAI C++
8154# pthread-config: use pthread-config program (for GNU Pth library)
8155
8156case "${host_cpu}-${host_os}" in
8157 *solaris*)
8158
8159 # On Solaris (at least, for some versions), libc contains stubbed
8160 # (non-functional) versions of the pthreads routines, so link-based
8161 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8162 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8163 # a function called by this macro, so we could check for that, but
8164 # who knows whether they'll stub that too in a future libc.) So,
8165 # we'll just look for -pthreads and -lpthread first:
8166
cristy964cb7f2010-04-25 23:18:00 +00008167 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
cristy3ed852e2009-09-05 21:47:34 +00008168 ;;
cristy964cb7f2010-04-25 23:18:00 +00008169
8170 *-darwin*)
8171 acx_pthread_flags="-pthread $acx_pthread_flags"
8172 ;;
cristy3ed852e2009-09-05 21:47:34 +00008173esac
8174
cristy964cb7f2010-04-25 23:18:00 +00008175if test x"$ax_pthread_ok" = xno; then
8176for flag in $ax_pthread_flags; do
cristy3ed852e2009-09-05 21:47:34 +00008177
8178 case $flag in
8179 none)
cristy8b350f62009-11-15 23:12:43 +00008180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00008181$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8182 ;;
8183
8184 -*)
cristy8b350f62009-11-15 23:12:43 +00008185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008186$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8187 PTHREAD_CFLAGS="$flag"
8188 ;;
8189
8190 pthread-config)
8191 # Extract the first word of "pthread-config", so it can be a program name with args.
8192set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008194$as_echo_n "checking for $ac_word... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +00008195if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008196 $as_echo_n "(cached) " >&6
8197else
cristy964cb7f2010-04-25 23:18:00 +00008198 if test -n "$ax_pthread_config"; then
8199 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
cristy3ed852e2009-09-05 21:47:34 +00008200else
8201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202for as_dir in $PATH
8203do
8204 IFS=$as_save_IFS
8205 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008206 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008207 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 +00008208 ac_cv_prog_ax_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00008209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008210 break 2
8211 fi
8212done
cristy8b350f62009-11-15 23:12:43 +00008213 done
cristy3ed852e2009-09-05 21:47:34 +00008214IFS=$as_save_IFS
8215
cristy964cb7f2010-04-25 23:18:00 +00008216 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
cristy3ed852e2009-09-05 21:47:34 +00008217fi
8218fi
cristy964cb7f2010-04-25 23:18:00 +00008219ax_pthread_config=$ac_cv_prog_ax_pthread_config
8220if test -n "$ax_pthread_config"; then
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8222$as_echo "$ax_pthread_config" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008223else
cristy8b350f62009-11-15 23:12:43 +00008224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008225$as_echo "no" >&6; }
8226fi
8227
8228
cristy964cb7f2010-04-25 23:18:00 +00008229 if test x"$ax_pthread_config" = xno; then continue; fi
cristy3ed852e2009-09-05 21:47:34 +00008230 PTHREAD_CFLAGS="`pthread-config --cflags`"
8231 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8232 ;;
8233
8234 *)
cristy8b350f62009-11-15 23:12:43 +00008235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008236$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8237 PTHREAD_LIBS="-l$flag"
8238 ;;
8239 esac
8240
8241 save_LIBS="$LIBS"
8242 save_CFLAGS="$CFLAGS"
8243 LIBS="$PTHREAD_LIBS $LIBS"
8244 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8245
8246 # Check for various functions. We must include pthread.h,
8247 # since some functions may be macros. (On the Sequent, we
8248 # need a special flag -Kthread to make this header compile.)
8249 # We check for pthread_join because it is in -lpthread on IRIX
8250 # while pthread_create is in libc. We check for pthread_attr_init
8251 # due to DEC craziness with -lpthreads. We check for
8252 # pthread_cleanup_push because it is one of the few pthread
8253 # functions on Solaris that doesn't have a non-functional libc stub.
8254 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00008255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008256/* end confdefs.h. */
8257#include <pthread.h>
cristy964cb7f2010-04-25 23:18:00 +00008258 static void routine(void* a) {a=0;}
8259 static void* start_routine(void* a) {return a;}
cristy3ed852e2009-09-05 21:47:34 +00008260int
8261main ()
8262{
cristy964cb7f2010-04-25 23:18:00 +00008263pthread_t th; pthread_attr_t attr;
8264 pthread_join(th, 0);
8265 pthread_attr_init(&attr);
8266 pthread_cleanup_push(routine, 0);
8267 pthread_create(&th,0,start_routine,0);
8268 pthread_cleanup_pop(0);
cristy3ed852e2009-09-05 21:47:34 +00008269 ;
8270 return 0;
8271}
8272_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008273if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008274 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008275fi
cristy8b350f62009-11-15 23:12:43 +00008276rm -f core conftest.err conftest.$ac_objext \
8277 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008278
8279 LIBS="$save_LIBS"
8280 CFLAGS="$save_CFLAGS"
8281
cristy964cb7f2010-04-25 23:18:00 +00008282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8283$as_echo "$ax_pthread_ok" >&6; }
8284 if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008285 break;
8286 fi
8287
8288 PTHREAD_LIBS=""
8289 PTHREAD_CFLAGS=""
8290done
8291fi
8292
8293# Various other checks:
cristy964cb7f2010-04-25 23:18:00 +00008294if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008295 save_LIBS="$LIBS"
8296 LIBS="$PTHREAD_LIBS $LIBS"
8297 save_CFLAGS="$CFLAGS"
8298 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8299
8300 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00008301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00008302$as_echo_n "checking for joinable pthread attribute... " >&6; }
8303 attr_name=unknown
8304 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00008305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008306/* end confdefs.h. */
8307#include <pthread.h>
8308int
8309main ()
8310{
8311int attr=$attr; return attr;
8312 ;
8313 return 0;
8314}
8315_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008316if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008317 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00008318fi
cristy8b350f62009-11-15 23:12:43 +00008319rm -f core conftest.err conftest.$ac_objext \
8320 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008321 done
cristy8b350f62009-11-15 23:12:43 +00008322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00008323$as_echo "$attr_name" >&6; }
8324 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8325
8326cat >>confdefs.h <<_ACEOF
8327#define PTHREAD_CREATE_JOINABLE $attr_name
8328_ACEOF
8329
8330 fi
8331
cristy8b350f62009-11-15 23:12:43 +00008332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00008333$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8334 flag=no
8335 case "${host_cpu}-${host_os}" in
8336 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8337 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8338 esac
cristy8b350f62009-11-15 23:12:43 +00008339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00008340$as_echo "${flag}" >&6; }
8341 if test "x$flag" != xno; then
8342 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8343 fi
8344
8345 LIBS="$save_LIBS"
8346 CFLAGS="$save_CFLAGS"
8347
8348 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00008349 if test x"$GCC" != xyes; then
8350 for ac_prog in xlc_r cc_r
8351do
8352 # Extract the first word of "$ac_prog", so it can be a program name with args.
8353set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008355$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008356if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008357 $as_echo_n "(cached) " >&6
8358else
8359 if test -n "$PTHREAD_CC"; then
8360 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8361else
8362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363for as_dir in $PATH
8364do
8365 IFS=$as_save_IFS
8366 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008367 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008368 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 +00008369 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008371 break 2
8372 fi
8373done
cristy8b350f62009-11-15 23:12:43 +00008374 done
cristy3ed852e2009-09-05 21:47:34 +00008375IFS=$as_save_IFS
8376
cristy3ed852e2009-09-05 21:47:34 +00008377fi
8378fi
8379PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8380if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008382$as_echo "$PTHREAD_CC" >&6; }
8383else
cristy8b350f62009-11-15 23:12:43 +00008384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008385$as_echo "no" >&6; }
8386fi
8387
cristy736173a2009-09-20 21:18:22 +00008388
8389 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00008390done
cristy736173a2009-09-20 21:18:22 +00008391test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00008392
cristy736173a2009-09-20 21:18:22 +00008393 else
8394 PTHREAD_CC=$CC
8395 fi
cristy3ed852e2009-09-05 21:47:34 +00008396else
cristy736173a2009-09-20 21:18:22 +00008397 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00008398fi
8399
cristy3ed852e2009-09-05 21:47:34 +00008400
8401
8402
8403
8404# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
cristy964cb7f2010-04-25 23:18:00 +00008405if test x"$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008406
cristy8b350f62009-11-15 23:12:43 +00008407$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008408
8409 :
8410else
cristy964cb7f2010-04-25 23:18:00 +00008411 ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008412
8413fi
8414ac_ext=c
8415ac_cpp='$CPP $CPPFLAGS'
8416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8418ac_compiler_gnu=$ac_cv_c_compiler_gnu
8419
8420
cristy964cb7f2010-04-25 23:18:00 +00008421 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008422 have_threads=yes
8423 DEF_THREAD="$PTHREAD_CFLAGS"
8424 CFLAGS="$CFLAGS $DEF_THREAD"
8425 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8426 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008427 { $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 +00008428$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8429 CC="$PTHREAD_CC"
8430 fi
8431 fi
8432fi
8433
8434# Enable support for OpenMP
8435if test "$have_threads" != 'yes'; then
8436 ac_cv_prog_c_openmp=unsupported
8437fi
8438
8439 OPENMP_CFLAGS=
8440 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008441if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008442 enableval=$enable_openmp;
8443fi
8444
8445 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008447$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008448if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008449 $as_echo_n "(cached) " >&6
8450else
cristy8b350f62009-11-15 23:12:43 +00008451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008453
8454#ifndef _OPENMP
8455 choke me
8456#endif
8457#include <omp.h>
8458int main () { return omp_get_num_threads (); }
8459
8460_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008461if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008462 ac_cv_prog_c_openmp='none needed'
8463else
cristy8b350f62009-11-15 23:12:43 +00008464 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008465 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8466 ac_save_CFLAGS=$CFLAGS
8467 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8469/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008470
8471#ifndef _OPENMP
8472 choke me
8473#endif
8474#include <omp.h>
8475int main () { return omp_get_num_threads (); }
8476
8477_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008478if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008479 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008480fi
cristy8b350f62009-11-15 23:12:43 +00008481rm -f core conftest.err conftest.$ac_objext \
8482 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008483 CFLAGS=$ac_save_CFLAGS
8484 if test "$ac_cv_prog_c_openmp" != unsupported; then
8485 break
8486 fi
8487 done
8488fi
cristy8b350f62009-11-15 23:12:43 +00008489rm -f core conftest.err conftest.$ac_objext \
8490 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008491fi
cristy8b350f62009-11-15 23:12:43 +00008492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008493$as_echo "$ac_cv_prog_c_openmp" >&6; }
8494 case $ac_cv_prog_c_openmp in #(
8495 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008496 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008497 *)
cristy8b350f62009-11-15 23:12:43 +00008498 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008499 esac
8500 fi
8501
8502
8503CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8504MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8505
8506
cristy736173a2009-09-20 21:18:22 +00008507# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00008508
cristy964cb7f2010-04-25 23:18:00 +00008509
8510
8511ac_ext=c
8512ac_cpp='$CPP $CPPFLAGS'
8513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8515ac_compiler_gnu=$ac_cv_c_compiler_gnu
8516
8517ax_pthread_ok=no
8518
8519# We used to check for pthread.h first, but this fails if pthread.h
8520# requires special compiler flags (e.g. on True64 or Sequent).
8521# It gets checked for in the link test anyway.
8522
8523# First of all, check if the user has set any of the PTHREAD_LIBS,
8524# etcetera environment variables, and if threads linking works using
8525# them:
8526if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8527 save_CFLAGS="$CFLAGS"
8528 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8529 save_LIBS="$LIBS"
8530 LIBS="$PTHREAD_LIBS $LIBS"
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8532$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8534/* end confdefs.h. */
8535
8536/* Override any GCC internal prototype to avoid an error.
8537 Use char because int might match the return type of a GCC
8538 builtin and then its argument prototype would still apply. */
8539#ifdef __cplusplus
8540extern "C"
8541#endif
8542char pthread_join ();
8543int
8544main ()
8545{
8546return pthread_join ();
8547 ;
8548 return 0;
8549}
8550_ACEOF
8551if ac_fn_c_try_link "$LINENO"; then :
8552 ax_pthread_ok=yes
8553fi
8554rm -f core conftest.err conftest.$ac_objext \
8555 conftest$ac_exeext conftest.$ac_ext
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8557$as_echo "$ax_pthread_ok" >&6; }
8558 if test x"$ax_pthread_ok" = xno; then
8559 PTHREAD_LIBS=""
8560 PTHREAD_CFLAGS=""
8561 fi
8562 LIBS="$save_LIBS"
8563 CFLAGS="$save_CFLAGS"
8564fi
8565
8566# We must check for the threads library under a number of different
8567# names; the ordering is very important because some systems
8568# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8569# libraries is broken (non-POSIX).
8570
8571# Create a list of thread flags to try. Items starting with a "-" are
8572# C compiler flags, and other items are library names, except for "none"
8573# which indicates that we try without any flags at all, and "pthread-config"
8574# which is a program returning the flags for the Pth emulation library.
8575
8576ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8577
8578# The ordering *is* (sometimes) important. Some notes on the
8579# individual items follow:
8580
8581# pthreads: AIX (must check this before -lpthread)
8582# none: in case threads are in libc; should be tried before -Kthread and
8583# other compiler flags to prevent continual compiler warnings
8584# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8585# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8586# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8587# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8588# -pthreads: Solaris/gcc
8589# -mthreads: Mingw32/gcc, Lynx/gcc
8590# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8591# doesn't hurt to check since this sometimes defines pthreads too;
8592# also defines -D_REENTRANT)
8593# ... -mt is also the pthreads flag for HP/aCC
8594# pthread: Linux, etcetera
8595# --thread-safe: KAI C++
8596# pthread-config: use pthread-config program (for GNU Pth library)
8597
8598case "${host_cpu}-${host_os}" in
8599 *solaris*)
8600
8601 # On Solaris (at least, for some versions), libc contains stubbed
8602 # (non-functional) versions of the pthreads routines, so link-based
8603 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8604 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8605 # a function called by this macro, so we could check for that, but
8606 # who knows whether they'll stub that too in a future libc.) So,
8607 # we'll just look for -pthreads and -lpthread first:
8608
8609 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8610 ;;
8611
8612 *-darwin*)
8613 acx_pthread_flags="-pthread $acx_pthread_flags"
8614 ;;
8615esac
8616
8617if test x"$ax_pthread_ok" = xno; then
8618for flag in $ax_pthread_flags; do
8619
8620 case $flag in
8621 none)
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8623$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8624 ;;
8625
8626 -*)
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8628$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8629 PTHREAD_CFLAGS="$flag"
8630 ;;
8631
8632 pthread-config)
8633 # Extract the first word of "pthread-config", so it can be a program name with args.
8634set dummy pthread-config; ac_word=$2
8635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8636$as_echo_n "checking for $ac_word... " >&6; }
8637if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8638 $as_echo_n "(cached) " >&6
8639else
8640 if test -n "$ax_pthread_config"; then
8641 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8642else
8643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644for as_dir in $PATH
8645do
8646 IFS=$as_save_IFS
8647 test -z "$as_dir" && as_dir=.
8648 for ac_exec_ext in '' $ac_executable_extensions; do
8649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8650 ac_cv_prog_ax_pthread_config="yes"
8651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8652 break 2
8653 fi
8654done
8655 done
8656IFS=$as_save_IFS
8657
8658 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8659fi
8660fi
8661ax_pthread_config=$ac_cv_prog_ax_pthread_config
8662if test -n "$ax_pthread_config"; then
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8664$as_echo "$ax_pthread_config" >&6; }
8665else
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667$as_echo "no" >&6; }
8668fi
8669
8670
8671 if test x"$ax_pthread_config" = xno; then continue; fi
8672 PTHREAD_CFLAGS="`pthread-config --cflags`"
8673 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8674 ;;
8675
8676 *)
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8678$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8679 PTHREAD_LIBS="-l$flag"
8680 ;;
8681 esac
8682
8683 save_LIBS="$LIBS"
8684 save_CFLAGS="$CFLAGS"
8685 LIBS="$PTHREAD_LIBS $LIBS"
8686 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8687
8688 # Check for various functions. We must include pthread.h,
8689 # since some functions may be macros. (On the Sequent, we
8690 # need a special flag -Kthread to make this header compile.)
8691 # We check for pthread_join because it is in -lpthread on IRIX
8692 # while pthread_create is in libc. We check for pthread_attr_init
8693 # due to DEC craziness with -lpthreads. We check for
8694 # pthread_cleanup_push because it is one of the few pthread
8695 # functions on Solaris that doesn't have a non-functional libc stub.
8696 # We try pthread_create on general principles.
8697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698/* end confdefs.h. */
8699#include <pthread.h>
8700 static void routine(void* a) {a=0;}
8701 static void* start_routine(void* a) {return a;}
8702int
8703main ()
8704{
8705pthread_t th; pthread_attr_t attr;
8706 pthread_join(th, 0);
8707 pthread_attr_init(&attr);
8708 pthread_cleanup_push(routine, 0);
8709 pthread_create(&th,0,start_routine,0);
8710 pthread_cleanup_pop(0);
8711 ;
8712 return 0;
8713}
8714_ACEOF
8715if ac_fn_c_try_link "$LINENO"; then :
8716 ax_pthread_ok=yes
8717fi
8718rm -f core conftest.err conftest.$ac_objext \
8719 conftest$ac_exeext conftest.$ac_ext
8720
8721 LIBS="$save_LIBS"
8722 CFLAGS="$save_CFLAGS"
8723
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8725$as_echo "$ax_pthread_ok" >&6; }
8726 if test "x$ax_pthread_ok" = xyes; then
8727 break;
8728 fi
8729
8730 PTHREAD_LIBS=""
8731 PTHREAD_CFLAGS=""
8732done
8733fi
8734
8735# Various other checks:
8736if test "x$ax_pthread_ok" = xyes; then
8737 save_LIBS="$LIBS"
8738 LIBS="$PTHREAD_LIBS $LIBS"
8739 save_CFLAGS="$CFLAGS"
8740 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8741
8742 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8744$as_echo_n "checking for joinable pthread attribute... " >&6; }
8745 attr_name=unknown
8746 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748/* end confdefs.h. */
8749#include <pthread.h>
8750int
8751main ()
8752{
8753int attr=$attr; return attr;
8754 ;
8755 return 0;
8756}
8757_ACEOF
8758if ac_fn_c_try_link "$LINENO"; then :
8759 attr_name=$attr; break
8760fi
8761rm -f core conftest.err conftest.$ac_objext \
8762 conftest$ac_exeext conftest.$ac_ext
8763 done
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8765$as_echo "$attr_name" >&6; }
8766 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8767
8768cat >>confdefs.h <<_ACEOF
8769#define PTHREAD_CREATE_JOINABLE $attr_name
8770_ACEOF
8771
8772 fi
8773
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8775$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8776 flag=no
8777 case "${host_cpu}-${host_os}" in
8778 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8779 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8780 esac
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8782$as_echo "${flag}" >&6; }
8783 if test "x$flag" != xno; then
8784 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8785 fi
8786
8787 LIBS="$save_LIBS"
8788 CFLAGS="$save_CFLAGS"
8789
8790 # More AIX lossage: must compile with xlc_r or cc_r
8791 if test x"$GCC" != xyes; then
8792 for ac_prog in xlc_r cc_r
8793do
8794 # Extract the first word of "$ac_prog", so it can be a program name with args.
8795set dummy $ac_prog; ac_word=$2
8796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8797$as_echo_n "checking for $ac_word... " >&6; }
8798if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8799 $as_echo_n "(cached) " >&6
8800else
8801 if test -n "$PTHREAD_CC"; then
8802 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8803else
8804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8805for as_dir in $PATH
8806do
8807 IFS=$as_save_IFS
8808 test -z "$as_dir" && as_dir=.
8809 for ac_exec_ext in '' $ac_executable_extensions; do
8810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8811 ac_cv_prog_PTHREAD_CC="$ac_prog"
8812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8813 break 2
8814 fi
8815done
8816 done
8817IFS=$as_save_IFS
8818
8819fi
8820fi
8821PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8822if test -n "$PTHREAD_CC"; then
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8824$as_echo "$PTHREAD_CC" >&6; }
8825else
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827$as_echo "no" >&6; }
8828fi
8829
8830
8831 test -n "$PTHREAD_CC" && break
8832done
8833test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8834
8835 else
8836 PTHREAD_CC=$CC
8837 fi
8838else
8839 PTHREAD_CC="$CC"
8840fi
8841
8842
8843
8844
8845
8846# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8847if test x"$ax_pthread_ok" = xyes; then
8848
8849$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8850
8851 :
8852else
8853 ax_pthread_ok=no
8854
8855fi
8856ac_ext=c
8857ac_cpp='$CPP $CPPFLAGS'
8858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8860ac_compiler_gnu=$ac_cv_c_compiler_gnu
8861
8862
8863
cristy43596fe2010-01-21 16:46:08 +00008864# Check whether --enable-opencl was given.
8865if test "${enable_opencl+set}" = set; then :
8866 enableval=$enable_opencl; disable_opencl=$enableval
8867else
8868 disable_opencl='yes'
8869fi
8870
8871
8872if test "$disable_opencl" = 'yes'; then
8873 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008874ac_cpp='$CPP $CPPFLAGS'
8875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8877ac_compiler_gnu=$ac_cv_c_compiler_gnu
8878
cristy43596fe2010-01-21 16:46:08 +00008879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00008880$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008881if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008882 $as_echo_n "(cached) " >&6
8883else
cristy8b350f62009-11-15 23:12:43 +00008884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008885/* end confdefs.h. */
8886
8887int
8888main ()
8889{
8890#ifndef _MSC_VER
8891 choke me
8892#endif
8893
8894 ;
8895 return 0;
8896}
8897_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008898if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008899 ax_compiler_ms=yes
8900else
cristy8b350f62009-11-15 23:12:43 +00008901 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00008902fi
cristy736173a2009-09-20 21:18:22 +00008903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8904ax_cv_c_compiler_ms=$ax_compiler_ms
8905
8906fi
cristy8b350f62009-11-15 23:12:43 +00008907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00008908$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy43596fe2010-01-21 16:46:08 +00008909 if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008910 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8911fi
8912
cristy43596fe2010-01-21 16:46:08 +00008913 ax_save_CPPFLAGS=$CPPFLAGS
8914 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8915 for ac_header in CL/cl.h OpenCL/cl.h
cristy8b350f62009-11-15 23:12:43 +00008916do :
8917 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8918ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy0684af42010-07-09 00:00:05 +00008919if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy736173a2009-09-20 21:18:22 +00008920 cat >>confdefs.h <<_ACEOF
8921#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8922_ACEOF
8923
8924fi
8925
8926done
8927
cristy43596fe2010-01-21 16:46:08 +00008928 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00008929
cristy43596fe2010-01-21 16:46:08 +00008930 for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00008931do :
8932 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8933if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008934 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008935#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00008936_ACEOF
8937
8938fi
8939
8940done
8941
8942
8943
8944
cristy43596fe2010-01-21 16:46:08 +00008945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00008946$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008947if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008948 $as_echo_n "(cached) " >&6
8949else
8950 ax_cv_check_cl_libcl=no
cristy43596fe2010-01-21 16:46:08 +00008951 case $host_cpu in
8952 x86_64) ax_check_cl_libdir=lib64 ;;
8953 *) ax_check_cl_libdir=lib ;;
8954 esac
8955 ax_save_CPPFLAGS=$CPPFLAGS
8956 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8957 ax_save_LIBS=$LIBS
8958 LIBS=""
8959 ax_check_libs="-lOpenCL -lCL -lclparser"
8960 for ax_lib in $ax_check_libs; do
8961 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00008962 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8963else
8964 ax_try_lib=$ax_lib
8965fi
cristy43596fe2010-01-21 16:46:08 +00008966 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008968/* end confdefs.h. */
8969
cristy43596fe2010-01-21 16:46:08 +00008970 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8971 # include <windows.h>
8972 # endif
8973 # ifdef HAVE_CL_CL_H
8974 # include <CL/cl.h>
8975 # elif defined(HAVE_OPENCL_CL_H)
8976 # include <OpenCL/cl.h>
8977 # else
8978 # error no CL.h
8979 # endif
cristy736173a2009-09-20 21:18:22 +00008980int
8981main ()
8982{
cristyc7083c12009-10-14 03:16:55 +00008983clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008984 ;
8985 return 0;
8986}
8987_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008988if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008989 ax_cv_check_cl_libcl=$ax_try_lib; break
8990else
cristy8b350f62009-11-15 23:12:43 +00008991 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 +00008992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008993/* end confdefs.h. */
8994
cristy43596fe2010-01-21 16:46:08 +00008995 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8996 # include <windows.h>
8997 # endif
8998 # ifdef HAVE_CL_CL_H
8999 # include <CL/cl.h>
9000 # elif defined(HAVE_OPENCL_CL_H)
9001 # include <OpenCL/cl.h>
9002 # else
9003 # error no CL.h
9004 # endif
cristy736173a2009-09-20 21:18:22 +00009005int
9006main ()
9007{
cristyc7083c12009-10-14 03:16:55 +00009008clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009009 ;
9010 return 0;
9011}
9012_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009013if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009014 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9015else
cristy4dc44432009-12-30 23:30:06 +00009016 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 +00009017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009018/* end confdefs.h. */
9019
cristy43596fe2010-01-21 16:46:08 +00009020 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9021 # include <windows.h>
9022 # endif
9023 # ifdef HAVE_CL_CL_H
9024 # include <CL/cl.h>
9025 # elif defined(HAVE_OPENCL_CL_H)
9026 # include <OpenCL/cl.h>
9027 # else
9028 # error no CL.h
9029 # endif
cristy736173a2009-09-20 21:18:22 +00009030int
9031main ()
9032{
cristyc7083c12009-10-14 03:16:55 +00009033clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009034 ;
9035 return 0;
9036}
9037_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009038if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009039 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00009040fi
cristy8b350f62009-11-15 23:12:43 +00009041rm -f core conftest.err conftest.$ac_objext \
9042 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009043fi
cristy8b350f62009-11-15 23:12:43 +00009044rm -f core conftest.err conftest.$ac_objext \
9045 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009046fi
cristy8b350f62009-11-15 23:12:43 +00009047rm -f core conftest.err conftest.$ac_objext \
9048 conftest$ac_exeext conftest.$ac_ext
cristy43596fe2010-01-21 16:46:08 +00009049 done
cristy736173a2009-09-20 21:18:22 +00009050
cristy43596fe2010-01-21 16:46:08 +00009051 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00009052 LIBS='-framework OpenCL'
cristy43596fe2010-01-21 16:46:08 +00009053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009054/* end confdefs.h. */
9055
cristy43596fe2010-01-21 16:46:08 +00009056 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9057 # include <windows.h>
9058 # endif
9059 # ifdef HAVE_CL_CL_H
9060 # include <CL/cl.h>
9061 # elif defined(HAVE_OPENCL_CL_H)
9062 # include <OpenCL/cl.h>
9063 # else
9064 # error no CL.h
9065 # endif
cristy736173a2009-09-20 21:18:22 +00009066int
9067main ()
9068{
cristyc7083c12009-10-14 03:16:55 +00009069clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009070 ;
9071 return 0;
9072}
9073_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009074if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009075 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00009076fi
cristy8b350f62009-11-15 23:12:43 +00009077rm -f core conftest.err conftest.$ac_objext \
9078 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009079fi
9080
cristy43596fe2010-01-21 16:46:08 +00009081 LIBS=$ax_save_LIBS
9082 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00009083fi
cristy8b350f62009-11-15 23:12:43 +00009084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00009085$as_echo "$ax_cv_check_cl_libcl" >&6; }
9086
cristy43596fe2010-01-21 16:46:08 +00009087 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00009088 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9089else
cristy99cc3002010-01-21 14:50:11 +00009090 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9091$as_echo "#define _OPENCL 1" >>confdefs.h
9092
cristy736173a2009-09-20 21:18:22 +00009093fi
cristy43596fe2010-01-21 16:46:08 +00009094 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00009095ac_cpp='$CPP $CPPFLAGS'
9096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9098ac_compiler_gnu=$ac_cv_c_compiler_gnu
9099
cristy43596fe2010-01-21 16:46:08 +00009100fi
cristy736173a2009-09-20 21:18:22 +00009101
9102
9103
9104
cristyc7083c12009-10-14 03:16:55 +00009105CFLAGS="$CL_CFLAGS $CFLAGS"
9106LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009107
cristy2e8b51d2009-10-17 18:26:15 +00009108
cristy3ed852e2009-09-05 21:47:34 +00009109########
9110#
9111# Check for large file support
9112#
9113########
9114# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009115if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009116 enableval=$enable_largefile;
9117fi
9118
9119if test "$enable_largefile" != no; then
9120
cristy8b350f62009-11-15 23:12:43 +00009121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009122$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009123if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009124 $as_echo_n "(cached) " >&6
9125else
9126 ac_cv_sys_largefile_CC=no
9127 if test "$GCC" != yes; then
9128 ac_save_CC=$CC
9129 while :; do
9130 # IRIX 6.2 and later do not support large files by default,
9131 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009133/* end confdefs.h. */
9134#include <sys/types.h>
9135 /* Check that off_t can represent 2**63 - 1 correctly.
9136 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9137 since some C++ compilers masquerading as C compilers
9138 incorrectly reject 9223372036854775807. */
9139#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9140 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9141 && LARGE_OFF_T % 2147483647 == 1)
9142 ? 1 : -1];
9143int
9144main ()
9145{
9146
9147 ;
9148 return 0;
9149}
9150_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009151 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009152 break
cristy3ed852e2009-09-05 21:47:34 +00009153fi
cristy3ed852e2009-09-05 21:47:34 +00009154rm -f core conftest.err conftest.$ac_objext
9155 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009156 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009157 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009158fi
cristy3ed852e2009-09-05 21:47:34 +00009159rm -f core conftest.err conftest.$ac_objext
9160 break
9161 done
9162 CC=$ac_save_CC
9163 rm -f conftest.$ac_ext
9164 fi
9165fi
cristy8b350f62009-11-15 23:12:43 +00009166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009167$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9168 if test "$ac_cv_sys_largefile_CC" != no; then
9169 CC=$CC$ac_cv_sys_largefile_CC
9170 fi
9171
cristy8b350f62009-11-15 23:12:43 +00009172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009173$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009174if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009175 $as_echo_n "(cached) " >&6
9176else
9177 while :; do
cristy8b350f62009-11-15 23:12:43 +00009178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009179/* end confdefs.h. */
9180#include <sys/types.h>
9181 /* Check that off_t can represent 2**63 - 1 correctly.
9182 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9183 since some C++ compilers masquerading as C compilers
9184 incorrectly reject 9223372036854775807. */
9185#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9186 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9187 && LARGE_OFF_T % 2147483647 == 1)
9188 ? 1 : -1];
9189int
9190main ()
9191{
9192
9193 ;
9194 return 0;
9195}
9196_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009197if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009198 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009199fi
cristy3ed852e2009-09-05 21:47:34 +00009200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009202/* end confdefs.h. */
9203#define _FILE_OFFSET_BITS 64
9204#include <sys/types.h>
9205 /* Check that off_t can represent 2**63 - 1 correctly.
9206 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9207 since some C++ compilers masquerading as C compilers
9208 incorrectly reject 9223372036854775807. */
9209#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9210 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9211 && LARGE_OFF_T % 2147483647 == 1)
9212 ? 1 : -1];
9213int
9214main ()
9215{
9216
9217 ;
9218 return 0;
9219}
9220_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009221if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009222 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009223fi
cristy3ed852e2009-09-05 21:47:34 +00009224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9225 ac_cv_sys_file_offset_bits=unknown
9226 break
9227done
9228fi
cristy8b350f62009-11-15 23:12:43 +00009229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009230$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9231case $ac_cv_sys_file_offset_bits in #(
9232 no | unknown) ;;
9233 *)
9234cat >>confdefs.h <<_ACEOF
9235#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9236_ACEOF
9237;;
9238esac
9239rm -rf conftest*
9240 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009242$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009243if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009244 $as_echo_n "(cached) " >&6
9245else
9246 while :; do
cristy8b350f62009-11-15 23:12:43 +00009247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009248/* end confdefs.h. */
9249#include <sys/types.h>
9250 /* Check that off_t can represent 2**63 - 1 correctly.
9251 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9252 since some C++ compilers masquerading as C compilers
9253 incorrectly reject 9223372036854775807. */
9254#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9255 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9256 && LARGE_OFF_T % 2147483647 == 1)
9257 ? 1 : -1];
9258int
9259main ()
9260{
9261
9262 ;
9263 return 0;
9264}
9265_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009266if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009267 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009268fi
cristy3ed852e2009-09-05 21:47:34 +00009269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009271/* end confdefs.h. */
9272#define _LARGE_FILES 1
9273#include <sys/types.h>
9274 /* Check that off_t can represent 2**63 - 1 correctly.
9275 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9276 since some C++ compilers masquerading as C compilers
9277 incorrectly reject 9223372036854775807. */
9278#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9279 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9280 && LARGE_OFF_T % 2147483647 == 1)
9281 ? 1 : -1];
9282int
9283main ()
9284{
9285
9286 ;
9287 return 0;
9288}
9289_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009290if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009291 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009292fi
cristy3ed852e2009-09-05 21:47:34 +00009293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9294 ac_cv_sys_large_files=unknown
9295 break
9296done
9297fi
cristy8b350f62009-11-15 23:12:43 +00009298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009299$as_echo "$ac_cv_sys_large_files" >&6; }
9300case $ac_cv_sys_large_files in #(
9301 no | unknown) ;;
9302 *)
9303cat >>confdefs.h <<_ACEOF
9304#define _LARGE_FILES $ac_cv_sys_large_files
9305_ACEOF
9306;;
9307esac
9308rm -rf conftest*
9309 fi
9310fi
9311
cristy8b350f62009-11-15 23:12:43 +00009312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009313$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009314if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009315 $as_echo_n "(cached) " >&6
9316else
9317 while :; do
cristy8b350f62009-11-15 23:12:43 +00009318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009319/* end confdefs.h. */
9320#include <sys/types.h> /* for off_t */
9321 #include <stdio.h>
9322int
9323main ()
9324{
9325int (*fp) (FILE *, off_t, int) = fseeko;
9326 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9327 ;
9328 return 0;
9329}
9330_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009331if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009332 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009333fi
cristy8b350f62009-11-15 23:12:43 +00009334rm -f core conftest.err conftest.$ac_objext \
9335 conftest$ac_exeext conftest.$ac_ext
9336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009337/* end confdefs.h. */
9338#define _LARGEFILE_SOURCE 1
9339#include <sys/types.h> /* for off_t */
9340 #include <stdio.h>
9341int
9342main ()
9343{
9344int (*fp) (FILE *, off_t, int) = fseeko;
9345 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9346 ;
9347 return 0;
9348}
9349_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009350if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009351 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009352fi
cristy8b350f62009-11-15 23:12:43 +00009353rm -f core conftest.err conftest.$ac_objext \
9354 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009355 ac_cv_sys_largefile_source=unknown
9356 break
9357done
9358fi
cristy8b350f62009-11-15 23:12:43 +00009359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009360$as_echo "$ac_cv_sys_largefile_source" >&6; }
9361case $ac_cv_sys_largefile_source in #(
9362 no | unknown) ;;
9363 *)
9364cat >>confdefs.h <<_ACEOF
9365#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9366_ACEOF
9367;;
9368esac
9369rm -rf conftest*
9370
9371# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9372# in glibc 2.1.3, but that breaks too many other things.
9373# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9374if test $ac_cv_sys_largefile_source != unknown; then
9375
cristy8b350f62009-11-15 23:12:43 +00009376$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009377
9378fi
9379
9380LFS_CPPFLAGS=''
9381if test "$enable_largefile" != no; then
9382 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9383 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9384 else
cristy8b350f62009-11-15 23:12:43 +00009385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009386$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009387 if test "$cross_compiling" = yes; then :
9388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009389$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +00009390as_fn_error $? "cannot run test program while cross compiling
9391See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009392else
cristy8b350f62009-11-15 23:12:43 +00009393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009395#include <unistd.h>
9396 main () {
9397 exit(!(sizeof(off_t) == 8));
9398 }
9399_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009400if ac_fn_c_try_run "$LINENO"; then :
9401 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009402
cristy8b350f62009-11-15 23:12:43 +00009403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009404$as_echo "yes" >&6; }
9405else
cristy8b350f62009-11-15 23:12:43 +00009406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009407$as_echo "no" >&6; }
9408fi
cristy8b350f62009-11-15 23:12:43 +00009409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9410 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009411fi
9412
cristy3ed852e2009-09-05 21:47:34 +00009413 fi
9414 if test "$ac_cv_sys_large_files" != 'no'; then
9415 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9416 fi
9417 if test "$ac_cv_sys_largefile_source" != 'no'; then
9418 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9419 fi
9420fi
9421
9422
9423#
9424# Configure libtool & libltdl
9425#
9426# Configure libtool
9427enable_dlopen=yes
9428
9429
9430
9431case `pwd` in
9432 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00009433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00009434$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9435esac
9436
9437
9438
cristy232a9ab2010-06-26 01:02:54 +00009439macro_version='2.2.10'
9440macro_revision='1.3175'
cristy3ed852e2009-09-05 21:47:34 +00009441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454ltmain="$ac_aux_dir/ltmain.sh"
9455
cristy232a9ab2010-06-26 01:02:54 +00009456# Backslashify metacharacters that are still active within
9457# double-quoted strings.
9458sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9459
9460# Same as above, but do not quote variable references.
9461double_quote_subst='s/\(["`\\]\)/\\\1/g'
9462
9463# Sed substitution to delay expansion of an escaped shell variable in a
9464# double_quote_subst'ed string.
9465delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9466
9467# Sed substitution to delay expansion of an escaped single quote.
9468delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9469
9470# Sed substitution to avoid accidental globbing in evaled expressions
9471no_glob_subst='s/\*/\\\*/g'
9472
cristy8b350f62009-11-15 23:12:43 +00009473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00009474$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009475if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009476 $as_echo_n "(cached) " >&6
9477else
9478 if test -n "$NM"; then
9479 # Let the user override the test.
9480 lt_cv_path_NM="$NM"
9481else
9482 lt_nm_to_check="${ac_tool_prefix}nm"
9483 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9484 lt_nm_to_check="$lt_nm_to_check nm"
9485 fi
9486 for lt_tmp_nm in $lt_nm_to_check; do
9487 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9488 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9489 IFS="$lt_save_ifs"
9490 test -z "$ac_dir" && ac_dir=.
9491 tmp_nm="$ac_dir/$lt_tmp_nm"
9492 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9493 # Check to see if the nm accepts a BSD-compat flag.
9494 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9495 # nm: unknown option "B" ignored
9496 # Tru64's nm complains that /dev/null is an invalid object file
9497 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9498 */dev/null* | *'Invalid file or object type'*)
9499 lt_cv_path_NM="$tmp_nm -B"
9500 break
9501 ;;
9502 *)
9503 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9504 */dev/null*)
9505 lt_cv_path_NM="$tmp_nm -p"
9506 break
9507 ;;
9508 *)
9509 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9510 continue # so that we can try to find one that supports BSD flags
9511 ;;
9512 esac
9513 ;;
9514 esac
9515 fi
9516 done
9517 IFS="$lt_save_ifs"
9518 done
9519 : ${lt_cv_path_NM=no}
9520fi
9521fi
cristy8b350f62009-11-15 23:12:43 +00009522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00009523$as_echo "$lt_cv_path_NM" >&6; }
9524if test "$lt_cv_path_NM" != "no"; then
9525 NM="$lt_cv_path_NM"
9526else
9527 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy232a9ab2010-06-26 01:02:54 +00009528 if test -n "$DUMPBIN"; then :
9529 # Let the user override the test.
9530 else
9531 if test -n "$ac_tool_prefix"; then
9532 for ac_prog in dumpbin "link -dump"
cristy3ed852e2009-09-05 21:47:34 +00009533 do
9534 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9535set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009537$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009538if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009539 $as_echo_n "(cached) " >&6
9540else
9541 if test -n "$DUMPBIN"; then
9542 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9543else
9544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9545for as_dir in $PATH
9546do
9547 IFS=$as_save_IFS
9548 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009549 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9551 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009553 break 2
9554 fi
9555done
cristy8b350f62009-11-15 23:12:43 +00009556 done
cristy3ed852e2009-09-05 21:47:34 +00009557IFS=$as_save_IFS
9558
9559fi
9560fi
9561DUMPBIN=$ac_cv_prog_DUMPBIN
9562if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009564$as_echo "$DUMPBIN" >&6; }
9565else
cristy8b350f62009-11-15 23:12:43 +00009566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009567$as_echo "no" >&6; }
9568fi
9569
9570
9571 test -n "$DUMPBIN" && break
9572 done
9573fi
9574if test -z "$DUMPBIN"; then
9575 ac_ct_DUMPBIN=$DUMPBIN
cristy232a9ab2010-06-26 01:02:54 +00009576 for ac_prog in dumpbin "link -dump"
cristy3ed852e2009-09-05 21:47:34 +00009577do
9578 # Extract the first word of "$ac_prog", so it can be a program name with args.
9579set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009581$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009582if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009583 $as_echo_n "(cached) " >&6
9584else
9585 if test -n "$ac_ct_DUMPBIN"; then
9586 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9587else
9588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589for as_dir in $PATH
9590do
9591 IFS=$as_save_IFS
9592 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009593 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9595 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009597 break 2
9598 fi
9599done
cristy8b350f62009-11-15 23:12:43 +00009600 done
cristy3ed852e2009-09-05 21:47:34 +00009601IFS=$as_save_IFS
9602
9603fi
9604fi
9605ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9606if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009608$as_echo "$ac_ct_DUMPBIN" >&6; }
9609else
cristy8b350f62009-11-15 23:12:43 +00009610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009611$as_echo "no" >&6; }
9612fi
9613
9614
9615 test -n "$ac_ct_DUMPBIN" && break
9616done
9617
9618 if test "x$ac_ct_DUMPBIN" = x; then
9619 DUMPBIN=":"
9620 else
9621 case $cross_compiling:$ac_tool_warned in
9622yes:)
cristy8b350f62009-11-15 23:12:43 +00009623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9625ac_tool_warned=yes ;;
9626esac
9627 DUMPBIN=$ac_ct_DUMPBIN
9628 fi
9629fi
9630
cristy232a9ab2010-06-26 01:02:54 +00009631 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9632 *COFF*)
9633 DUMPBIN="$DUMPBIN -symbols"
9634 ;;
9635 *)
9636 DUMPBIN=:
9637 ;;
9638 esac
9639 fi
cristy3ed852e2009-09-05 21:47:34 +00009640
9641 if test "$DUMPBIN" != ":"; then
9642 NM="$DUMPBIN"
9643 fi
9644fi
9645test -z "$NM" && NM=nm
9646
9647
9648
9649
9650
9651
cristy8b350f62009-11-15 23:12:43 +00009652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009653$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009654if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009655 $as_echo_n "(cached) " >&6
9656else
9657 lt_cv_nm_interface="BSD nm"
9658 echo "int some_variable = 0;" > conftest.$ac_ext
cristy232a9ab2010-06-26 01:02:54 +00009659 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009660 (eval "$ac_compile" 2>conftest.err)
9661 cat conftest.err >&5
cristy232a9ab2010-06-26 01:02:54 +00009662 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009663 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9664 cat conftest.err >&5
cristy232a9ab2010-06-26 01:02:54 +00009665 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009666 cat conftest.out >&5
9667 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9668 lt_cv_nm_interface="MS dumpbin"
9669 fi
9670 rm -f conftest*
9671fi
cristy8b350f62009-11-15 23:12:43 +00009672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009673$as_echo "$lt_cv_nm_interface" >&6; }
9674
9675# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00009676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00009677$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009678if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009679 $as_echo_n "(cached) " >&6
9680else
9681 i=0
9682 teststring="ABCD"
9683
9684 case $build_os in
9685 msdosdjgpp*)
9686 # On DJGPP, this test can blow up pretty badly due to problems in libc
9687 # (any single argument exceeding 2000 bytes causes a buffer overrun
9688 # during glob expansion). Even if it were fixed, the result of this
9689 # check would be larger than it should be.
9690 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9691 ;;
9692
9693 gnu*)
9694 # Under GNU Hurd, this test is not required because there is
9695 # no limit to the length of command line arguments.
9696 # Libtool will interpret -1 as no limit whatsoever
9697 lt_cv_sys_max_cmd_len=-1;
9698 ;;
9699
9700 cygwin* | mingw* | cegcc*)
9701 # On Win9x/ME, this test blows up -- it succeeds, but takes
9702 # about 5 minutes as the teststring grows exponentially.
9703 # Worse, since 9x/ME are not pre-emptively multitasking,
9704 # you end up with a "frozen" computer, even though with patience
9705 # the test eventually succeeds (with a max line length of 256k).
9706 # Instead, let's just punt: use the minimum linelength reported by
9707 # all of the supported platforms: 8192 (on NT/2K/XP).
9708 lt_cv_sys_max_cmd_len=8192;
9709 ;;
9710
cristy232a9ab2010-06-26 01:02:54 +00009711 mint*)
9712 # On MiNT this can take a long time and run out of memory.
9713 lt_cv_sys_max_cmd_len=8192;
9714 ;;
9715
cristy3ed852e2009-09-05 21:47:34 +00009716 amigaos*)
9717 # On AmigaOS with pdksh, this test takes hours, literally.
9718 # So we just punt and use a minimum line length of 8192.
9719 lt_cv_sys_max_cmd_len=8192;
9720 ;;
9721
9722 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9723 # This has been around since 386BSD, at least. Likely further.
9724 if test -x /sbin/sysctl; then
9725 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9726 elif test -x /usr/sbin/sysctl; then
9727 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9728 else
9729 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9730 fi
9731 # And add a safety zone
9732 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9733 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9734 ;;
9735
9736 interix*)
9737 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9738 lt_cv_sys_max_cmd_len=196608
9739 ;;
9740
9741 osf*)
9742 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9743 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9744 # nice to cause kernel panics so lets avoid the loop below.
9745 # First set a reasonable default.
9746 lt_cv_sys_max_cmd_len=16384
9747 #
9748 if test -x /sbin/sysconfig; then
9749 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9750 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9751 esac
9752 fi
9753 ;;
9754 sco3.2v5*)
9755 lt_cv_sys_max_cmd_len=102400
9756 ;;
9757 sysv5* | sco5v6* | sysv4.2uw2*)
9758 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9759 if test -n "$kargmax"; then
9760 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9761 else
9762 lt_cv_sys_max_cmd_len=32768
9763 fi
9764 ;;
9765 *)
9766 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9767 if test -n "$lt_cv_sys_max_cmd_len"; then
9768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9769 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9770 else
9771 # Make teststring a little bigger before we do anything with it.
9772 # a 1K string should be a reasonable start.
9773 for i in 1 2 3 4 5 6 7 8 ; do
9774 teststring=$teststring$teststring
9775 done
9776 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9777 # If test is not a shell built-in, we'll probably end up computing a
9778 # maximum length that is only half of the actual maximum length, but
9779 # we can't tell.
cristy232a9ab2010-06-26 01:02:54 +00009780 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9781 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00009782 test $i != 17 # 1/2 MB should be enough
9783 do
9784 i=`expr $i + 1`
9785 teststring=$teststring$teststring
9786 done
9787 # Only check the string length outside the loop.
9788 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9789 teststring=
9790 # Add a significant safety factor because C++ compilers can tack on
9791 # massive amounts of additional arguments before passing them to the
9792 # linker. It appears as though 1/2 is a usable value.
9793 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9794 fi
9795 ;;
9796 esac
9797
9798fi
9799
9800if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00009801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00009802$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9803else
cristy8b350f62009-11-15 23:12:43 +00009804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00009805$as_echo "none" >&6; }
9806fi
9807max_cmd_len=$lt_cv_sys_max_cmd_len
9808
9809
9810
9811
9812
9813
9814: ${CP="cp -f"}
9815: ${MV="mv -f"}
9816: ${RM="rm -f"}
9817
cristy8b350f62009-11-15 23:12:43 +00009818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00009819$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9820# Try some XSI features
9821xsi_shell=no
9822( _lt_dummy="a/b/c"
9823 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9824 = c,a/b,, \
9825 && eval 'test $(( 1 + 1 )) -eq 2 \
9826 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9827 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00009828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00009829$as_echo "$xsi_shell" >&6; }
9830
9831
cristy8b350f62009-11-15 23:12:43 +00009832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00009833$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9834lt_shell_append=no
9835( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9836 >/dev/null 2>&1 \
9837 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00009838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00009839$as_echo "$lt_shell_append" >&6; }
9840
9841
9842if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9843 lt_unset=unset
9844else
9845 lt_unset=false
9846fi
9847
9848
9849
9850
9851
9852# test EBCDIC or ASCII
9853case `echo X|tr X '\101'` in
9854 A) # ASCII based system
9855 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9856 lt_SP2NL='tr \040 \012'
9857 lt_NL2SP='tr \015\012 \040\040'
9858 ;;
9859 *) # EBCDIC based system
9860 lt_SP2NL='tr \100 \n'
9861 lt_NL2SP='tr \r\n \100\100'
9862 ;;
9863esac
9864
9865
9866
9867
9868
9869
9870
9871
9872
cristy8b350f62009-11-15 23:12:43 +00009873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009874$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009875if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009876 $as_echo_n "(cached) " >&6
9877else
9878 lt_cv_ld_reload_flag='-r'
9879fi
cristy8b350f62009-11-15 23:12:43 +00009880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00009881$as_echo "$lt_cv_ld_reload_flag" >&6; }
9882reload_flag=$lt_cv_ld_reload_flag
9883case $reload_flag in
9884"" | " "*) ;;
9885*) reload_flag=" $reload_flag" ;;
9886esac
9887reload_cmds='$LD$reload_flag -o $output$reload_objs'
9888case $host_os in
9889 darwin*)
9890 if test "$GCC" = yes; then
9891 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9892 else
9893 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9894 fi
9895 ;;
9896esac
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906if test -n "$ac_tool_prefix"; then
9907 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9908set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009910$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009911if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009912 $as_echo_n "(cached) " >&6
9913else
9914 if test -n "$OBJDUMP"; then
9915 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9916else
9917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9918for as_dir in $PATH
9919do
9920 IFS=$as_save_IFS
9921 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009922 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9924 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00009925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009926 break 2
9927 fi
9928done
cristy8b350f62009-11-15 23:12:43 +00009929 done
cristy3ed852e2009-09-05 21:47:34 +00009930IFS=$as_save_IFS
9931
9932fi
9933fi
9934OBJDUMP=$ac_cv_prog_OBJDUMP
9935if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009937$as_echo "$OBJDUMP" >&6; }
9938else
cristy8b350f62009-11-15 23:12:43 +00009939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009940$as_echo "no" >&6; }
9941fi
9942
9943
9944fi
9945if test -z "$ac_cv_prog_OBJDUMP"; then
9946 ac_ct_OBJDUMP=$OBJDUMP
9947 # Extract the first word of "objdump", so it can be a program name with args.
9948set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009950$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009951if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009952 $as_echo_n "(cached) " >&6
9953else
9954 if test -n "$ac_ct_OBJDUMP"; then
9955 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9956else
9957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9958for as_dir in $PATH
9959do
9960 IFS=$as_save_IFS
9961 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009962 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9964 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +00009965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009966 break 2
9967 fi
9968done
cristy8b350f62009-11-15 23:12:43 +00009969 done
cristy3ed852e2009-09-05 21:47:34 +00009970IFS=$as_save_IFS
9971
9972fi
9973fi
9974ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9975if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009977$as_echo "$ac_ct_OBJDUMP" >&6; }
9978else
cristy8b350f62009-11-15 23:12:43 +00009979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009980$as_echo "no" >&6; }
9981fi
9982
9983 if test "x$ac_ct_OBJDUMP" = x; then
9984 OBJDUMP="false"
9985 else
9986 case $cross_compiling:$ac_tool_warned in
9987yes:)
cristy8b350f62009-11-15 23:12:43 +00009988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9990ac_tool_warned=yes ;;
9991esac
9992 OBJDUMP=$ac_ct_OBJDUMP
9993 fi
9994else
9995 OBJDUMP="$ac_cv_prog_OBJDUMP"
9996fi
9997
9998test -z "$OBJDUMP" && OBJDUMP=objdump
9999
10000
10001
10002
10003
10004
cristy8b350f62009-11-15 23:12:43 +000010005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000010006$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010007if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010008 $as_echo_n "(cached) " >&6
10009else
10010 lt_cv_file_magic_cmd='$MAGIC_CMD'
10011lt_cv_file_magic_test_file=
10012lt_cv_deplibs_check_method='unknown'
10013# Need to set the preceding variable on all platforms that support
10014# interlibrary dependencies.
10015# 'none' -- dependencies not supported.
10016# `unknown' -- same as none, but documents that we really don't know.
10017# 'pass_all' -- all dependencies passed with no checks.
10018# 'test_compile' -- check by making test program.
10019# 'file_magic [[regex]]' -- check by looking for files in library path
10020# which responds to the $file_magic_cmd with a given extended regex.
10021# If you have `file' or equivalent on your system and you're not sure
10022# whether `pass_all' will *always* work, you probably want this one.
10023
10024case $host_os in
10025aix[4-9]*)
10026 lt_cv_deplibs_check_method=pass_all
10027 ;;
10028
10029beos*)
10030 lt_cv_deplibs_check_method=pass_all
10031 ;;
10032
10033bsdi[45]*)
10034 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10035 lt_cv_file_magic_cmd='/usr/bin/file -L'
10036 lt_cv_file_magic_test_file=/shlib/libc.so
10037 ;;
10038
10039cygwin*)
10040 # func_win32_libid is a shell function defined in ltmain.sh
10041 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10042 lt_cv_file_magic_cmd='func_win32_libid'
10043 ;;
10044
10045mingw* | pw32*)
10046 # Base MSYS/MinGW do not provide the 'file' command needed by
10047 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10048 # unless we find 'file', for example because we are cross-compiling.
cristy232a9ab2010-06-26 01:02:54 +000010049 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10050 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +000010051 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10052 lt_cv_file_magic_cmd='func_win32_libid'
10053 else
cristy232a9ab2010-06-26 01:02:54 +000010054 # Keep this pattern in sync with the one in func_win32_libid.
10055 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 +000010056 lt_cv_file_magic_cmd='$OBJDUMP -f'
10057 fi
10058 ;;
10059
cristy232a9ab2010-06-26 01:02:54 +000010060cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000010061 # use the weaker test based on 'objdump'. See mingw*.
10062 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10063 lt_cv_file_magic_cmd='$OBJDUMP -f'
10064 ;;
10065
10066darwin* | rhapsody*)
10067 lt_cv_deplibs_check_method=pass_all
10068 ;;
10069
10070freebsd* | dragonfly*)
10071 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10072 case $host_cpu in
10073 i*86 )
10074 # Not sure whether the presence of OpenBSD here was a mistake.
10075 # Let's accept both of them until this is cleared up.
10076 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10077 lt_cv_file_magic_cmd=/usr/bin/file
10078 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10079 ;;
10080 esac
10081 else
10082 lt_cv_deplibs_check_method=pass_all
10083 fi
10084 ;;
10085
10086gnu*)
10087 lt_cv_deplibs_check_method=pass_all
10088 ;;
10089
cristy232a9ab2010-06-26 01:02:54 +000010090haiku*)
10091 lt_cv_deplibs_check_method=pass_all
10092 ;;
10093
cristy3ed852e2009-09-05 21:47:34 +000010094hpux10.20* | hpux11*)
10095 lt_cv_file_magic_cmd=/usr/bin/file
10096 case $host_cpu in
10097 ia64*)
10098 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10099 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10100 ;;
10101 hppa*64*)
cristy232a9ab2010-06-26 01:02:54 +000010102 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 +000010103 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10104 ;;
10105 *)
cristy232a9ab2010-06-26 01:02:54 +000010106 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 +000010107 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10108 ;;
10109 esac
10110 ;;
10111
10112interix[3-9]*)
10113 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10114 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10115 ;;
10116
10117irix5* | irix6* | nonstopux*)
10118 case $LD in
10119 *-32|*"-32 ") libmagic=32-bit;;
10120 *-n32|*"-n32 ") libmagic=N32;;
10121 *-64|*"-64 ") libmagic=64-bit;;
10122 *) libmagic=never-match;;
10123 esac
10124 lt_cv_deplibs_check_method=pass_all
10125 ;;
10126
10127# This must be Linux ELF.
cristy232a9ab2010-06-26 01:02:54 +000010128linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000010129 lt_cv_deplibs_check_method=pass_all
10130 ;;
10131
10132netbsd*)
10133 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10134 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10135 else
10136 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10137 fi
10138 ;;
10139
10140newos6*)
10141 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10142 lt_cv_file_magic_cmd=/usr/bin/file
10143 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10144 ;;
10145
10146*nto* | *qnx*)
10147 lt_cv_deplibs_check_method=pass_all
10148 ;;
10149
10150openbsd*)
10151 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10152 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10153 else
10154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10155 fi
10156 ;;
10157
10158osf3* | osf4* | osf5*)
10159 lt_cv_deplibs_check_method=pass_all
10160 ;;
10161
10162rdos*)
10163 lt_cv_deplibs_check_method=pass_all
10164 ;;
10165
10166solaris*)
10167 lt_cv_deplibs_check_method=pass_all
10168 ;;
10169
10170sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10171 lt_cv_deplibs_check_method=pass_all
10172 ;;
10173
10174sysv4 | sysv4.3*)
10175 case $host_vendor in
10176 motorola)
10177 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]'
10178 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10179 ;;
10180 ncr)
10181 lt_cv_deplibs_check_method=pass_all
10182 ;;
10183 sequent)
10184 lt_cv_file_magic_cmd='/bin/file'
10185 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10186 ;;
10187 sni)
10188 lt_cv_file_magic_cmd='/bin/file'
10189 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10190 lt_cv_file_magic_test_file=/lib/libc.so
10191 ;;
10192 siemens)
10193 lt_cv_deplibs_check_method=pass_all
10194 ;;
10195 pc)
10196 lt_cv_deplibs_check_method=pass_all
10197 ;;
10198 esac
10199 ;;
10200
10201tpf*)
10202 lt_cv_deplibs_check_method=pass_all
10203 ;;
10204esac
10205
10206fi
cristy8b350f62009-11-15 23:12:43 +000010207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +000010208$as_echo "$lt_cv_deplibs_check_method" >&6; }
10209file_magic_cmd=$lt_cv_file_magic_cmd
10210deplibs_check_method=$lt_cv_deplibs_check_method
10211test -z "$deplibs_check_method" && deplibs_check_method=unknown
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224if test -n "$ac_tool_prefix"; then
10225 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10226set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010228$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010229if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010230 $as_echo_n "(cached) " >&6
10231else
10232 if test -n "$AR"; then
10233 ac_cv_prog_AR="$AR" # Let the user override the test.
10234else
10235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10236for as_dir in $PATH
10237do
10238 IFS=$as_save_IFS
10239 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010240 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10242 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +000010243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010244 break 2
10245 fi
10246done
cristy8b350f62009-11-15 23:12:43 +000010247 done
cristy3ed852e2009-09-05 21:47:34 +000010248IFS=$as_save_IFS
10249
10250fi
10251fi
10252AR=$ac_cv_prog_AR
10253if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +000010254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010255$as_echo "$AR" >&6; }
10256else
cristy8b350f62009-11-15 23:12:43 +000010257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010258$as_echo "no" >&6; }
10259fi
10260
10261
10262fi
10263if test -z "$ac_cv_prog_AR"; then
10264 ac_ct_AR=$AR
10265 # Extract the first word of "ar", so it can be a program name with args.
10266set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010268$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010269if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010270 $as_echo_n "(cached) " >&6
10271else
10272 if test -n "$ac_ct_AR"; then
10273 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10274else
10275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10276for as_dir in $PATH
10277do
10278 IFS=$as_save_IFS
10279 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010280 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10282 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +000010283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010284 break 2
10285 fi
10286done
cristy8b350f62009-11-15 23:12:43 +000010287 done
cristy3ed852e2009-09-05 21:47:34 +000010288IFS=$as_save_IFS
10289
10290fi
10291fi
10292ac_ct_AR=$ac_cv_prog_ac_ct_AR
10293if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +000010294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010295$as_echo "$ac_ct_AR" >&6; }
10296else
cristy8b350f62009-11-15 23:12:43 +000010297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010298$as_echo "no" >&6; }
10299fi
10300
10301 if test "x$ac_ct_AR" = x; then
10302 AR="false"
10303 else
10304 case $cross_compiling:$ac_tool_warned in
10305yes:)
cristy8b350f62009-11-15 23:12:43 +000010306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10308ac_tool_warned=yes ;;
10309esac
10310 AR=$ac_ct_AR
10311 fi
10312else
10313 AR="$ac_cv_prog_AR"
10314fi
10315
10316test -z "$AR" && AR=ar
10317test -z "$AR_FLAGS" && AR_FLAGS=cru
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329if test -n "$ac_tool_prefix"; then
10330 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10331set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010333$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010334if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010335 $as_echo_n "(cached) " >&6
10336else
10337 if test -n "$STRIP"; then
10338 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10339else
10340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10341for as_dir in $PATH
10342do
10343 IFS=$as_save_IFS
10344 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010345 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10347 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +000010348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010349 break 2
10350 fi
10351done
cristy8b350f62009-11-15 23:12:43 +000010352 done
cristy3ed852e2009-09-05 21:47:34 +000010353IFS=$as_save_IFS
10354
10355fi
10356fi
10357STRIP=$ac_cv_prog_STRIP
10358if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010360$as_echo "$STRIP" >&6; }
10361else
cristy8b350f62009-11-15 23:12:43 +000010362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010363$as_echo "no" >&6; }
10364fi
10365
10366
10367fi
10368if test -z "$ac_cv_prog_STRIP"; then
10369 ac_ct_STRIP=$STRIP
10370 # Extract the first word of "strip", so it can be a program name with args.
10371set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010373$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010374if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010375 $as_echo_n "(cached) " >&6
10376else
10377 if test -n "$ac_ct_STRIP"; then
10378 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10379else
10380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10381for as_dir in $PATH
10382do
10383 IFS=$as_save_IFS
10384 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010385 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10387 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +000010388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010389 break 2
10390 fi
10391done
cristy8b350f62009-11-15 23:12:43 +000010392 done
cristy3ed852e2009-09-05 21:47:34 +000010393IFS=$as_save_IFS
10394
10395fi
10396fi
10397ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10398if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010400$as_echo "$ac_ct_STRIP" >&6; }
10401else
cristy8b350f62009-11-15 23:12:43 +000010402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010403$as_echo "no" >&6; }
10404fi
10405
10406 if test "x$ac_ct_STRIP" = x; then
10407 STRIP=":"
10408 else
10409 case $cross_compiling:$ac_tool_warned in
10410yes:)
cristy8b350f62009-11-15 23:12:43 +000010411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10413ac_tool_warned=yes ;;
10414esac
10415 STRIP=$ac_ct_STRIP
10416 fi
10417else
10418 STRIP="$ac_cv_prog_STRIP"
10419fi
10420
10421test -z "$STRIP" && STRIP=:
10422
10423
10424
10425
10426
10427
10428if test -n "$ac_tool_prefix"; then
10429 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10430set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010432$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010433if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010434 $as_echo_n "(cached) " >&6
10435else
10436 if test -n "$RANLIB"; then
10437 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10438else
10439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10440for as_dir in $PATH
10441do
10442 IFS=$as_save_IFS
10443 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010444 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10446 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +000010447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010448 break 2
10449 fi
10450done
cristy8b350f62009-11-15 23:12:43 +000010451 done
cristy3ed852e2009-09-05 21:47:34 +000010452IFS=$as_save_IFS
10453
10454fi
10455fi
10456RANLIB=$ac_cv_prog_RANLIB
10457if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010459$as_echo "$RANLIB" >&6; }
10460else
cristy8b350f62009-11-15 23:12:43 +000010461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010462$as_echo "no" >&6; }
10463fi
10464
10465
10466fi
10467if test -z "$ac_cv_prog_RANLIB"; then
10468 ac_ct_RANLIB=$RANLIB
10469 # Extract the first word of "ranlib", so it can be a program name with args.
10470set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010472$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010473if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010474 $as_echo_n "(cached) " >&6
10475else
10476 if test -n "$ac_ct_RANLIB"; then
10477 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10478else
10479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10480for as_dir in $PATH
10481do
10482 IFS=$as_save_IFS
10483 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010484 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10486 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +000010487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010488 break 2
10489 fi
10490done
cristy8b350f62009-11-15 23:12:43 +000010491 done
cristy3ed852e2009-09-05 21:47:34 +000010492IFS=$as_save_IFS
10493
10494fi
10495fi
10496ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10497if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010499$as_echo "$ac_ct_RANLIB" >&6; }
10500else
cristy8b350f62009-11-15 23:12:43 +000010501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010502$as_echo "no" >&6; }
10503fi
10504
10505 if test "x$ac_ct_RANLIB" = x; then
10506 RANLIB=":"
10507 else
10508 case $cross_compiling:$ac_tool_warned in
10509yes:)
cristy8b350f62009-11-15 23:12:43 +000010510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10512ac_tool_warned=yes ;;
10513esac
10514 RANLIB=$ac_ct_RANLIB
10515 fi
10516else
10517 RANLIB="$ac_cv_prog_RANLIB"
10518fi
10519
10520test -z "$RANLIB" && RANLIB=:
10521
10522
10523
10524
10525
10526
10527# Determine commands to create old-style static archives.
10528old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10529old_postinstall_cmds='chmod 644 $oldlib'
10530old_postuninstall_cmds=
10531
10532if test -n "$RANLIB"; then
10533 case $host_os in
10534 openbsd*)
10535 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10536 ;;
10537 *)
10538 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10539 ;;
10540 esac
10541 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10542fi
10543
cristy232a9ab2010-06-26 01:02:54 +000010544case $host_os in
10545 darwin*)
10546 lock_old_archive_extraction=yes ;;
10547 *)
10548 lock_old_archive_extraction=no ;;
10549esac
10550
10551
10552
10553
10554
10555
cristy3ed852e2009-09-05 21:47:34 +000010556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589# If no C compiler was specified, use CC.
10590LTCC=${LTCC-"$CC"}
10591
10592# If no C compiler flags were specified, use CFLAGS.
10593LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10594
10595# Allow CC to be a program name with arguments.
10596compiler=$CC
10597
10598
10599# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +000010600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +000010601$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010602if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010603 $as_echo_n "(cached) " >&6
10604else
10605
10606# These are sane defaults that work on at least a few old systems.
10607# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10608
10609# Character class describing NM global symbol codes.
10610symcode='[BCDEGRST]'
10611
10612# Regexp to match symbols that can be accessed directly from C.
10613sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10614
10615# Define system-specific variables.
10616case $host_os in
10617aix*)
10618 symcode='[BCDT]'
10619 ;;
10620cygwin* | mingw* | pw32* | cegcc*)
10621 symcode='[ABCDGISTW]'
10622 ;;
10623hpux*)
10624 if test "$host_cpu" = ia64; then
10625 symcode='[ABCDEGRST]'
10626 fi
10627 ;;
10628irix* | nonstopux*)
10629 symcode='[BCDEGRST]'
10630 ;;
10631osf*)
10632 symcode='[BCDEGQRST]'
10633 ;;
10634solaris*)
10635 symcode='[BDRT]'
10636 ;;
10637sco3.2v5*)
10638 symcode='[DT]'
10639 ;;
10640sysv4.2uw2*)
10641 symcode='[DT]'
10642 ;;
10643sysv5* | sco5v6* | unixware* | OpenUNIX*)
10644 symcode='[ABDT]'
10645 ;;
10646sysv4)
10647 symcode='[DFNSTU]'
10648 ;;
10649esac
10650
10651# If we're using GNU nm, then use its standard symbol codes.
10652case `$NM -V 2>&1` in
10653*GNU* | *'with BFD'*)
10654 symcode='[ABCDGIRSTW]' ;;
10655esac
10656
10657# Transform an extracted symbol line into a proper C declaration.
10658# Some systems (esp. on ia64) link data and code symbols differently,
10659# so use this general approach.
10660lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10661
10662# Transform an extracted symbol line into symbol name and symbol address
10663lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10664lt_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'"
10665
10666# Handle CRLF in mingw tool chain
10667opt_cr=
10668case $build_os in
10669mingw*)
10670 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10671 ;;
10672esac
10673
10674# Try without a prefix underscore, then with it.
10675for ac_symprfx in "" "_"; do
10676
10677 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10678 symxfrm="\\1 $ac_symprfx\\2 \\2"
10679
10680 # Write the raw and C identifiers.
10681 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10682 # Fake it for dumpbin and say T for any non-static function
10683 # and D for any global variable.
10684 # Also find C++ and __fastcall symbols from MSVC++,
10685 # which start with @ or ?.
10686 lt_cv_sys_global_symbol_pipe="$AWK '"\
10687" {last_section=section; section=\$ 3};"\
10688" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10689" \$ 0!~/External *\|/{next};"\
10690" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10691" {if(hide[section]) next};"\
10692" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10693" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10694" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10695" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10696" ' prfx=^$ac_symprfx"
10697 else
10698 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10699 fi
10700
10701 # Check to see that the pipe works correctly.
10702 pipe_works=no
10703
10704 rm -f conftest*
10705 cat > conftest.$ac_ext <<_LT_EOF
10706#ifdef __cplusplus
10707extern "C" {
10708#endif
10709char nm_test_var;
10710void nm_test_func(void);
10711void nm_test_func(void){}
10712#ifdef __cplusplus
10713}
10714#endif
10715int main(){nm_test_var='a';nm_test_func();return(0);}
10716_LT_EOF
10717
cristy8b350f62009-11-15 23:12:43 +000010718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010719 (eval $ac_compile) 2>&5
10720 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10722 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010723 # Now try to grab the symbols.
10724 nlist=conftest.nm
cristy232a9ab2010-06-26 01:02:54 +000010725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10726 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +000010727 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10729 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000010730 # Try sorting and uniquifying the output.
10731 if sort "$nlist" | uniq > "$nlist"T; then
10732 mv -f "$nlist"T "$nlist"
10733 else
10734 rm -f "$nlist"T
10735 fi
10736
10737 # Make sure that we snagged all the symbols we need.
10738 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10739 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10740 cat <<_LT_EOF > conftest.$ac_ext
10741#ifdef __cplusplus
10742extern "C" {
10743#endif
10744
10745_LT_EOF
10746 # Now generate the symbol file.
10747 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10748
10749 cat <<_LT_EOF >> conftest.$ac_ext
10750
10751/* The mapping between symbol names and symbols. */
10752const struct {
10753 const char *name;
10754 void *address;
10755}
10756lt__PROGRAM__LTX_preloaded_symbols[] =
10757{
10758 { "@PROGRAM@", (void *) 0 },
10759_LT_EOF
10760 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10761 cat <<\_LT_EOF >> conftest.$ac_ext
10762 {0, (void *) 0}
10763};
10764
10765/* This works around a problem in FreeBSD linker */
10766#ifdef FREEBSD_WORKAROUND
10767static const void *lt_preloaded_setup() {
10768 return lt__PROGRAM__LTX_preloaded_symbols;
10769}
10770#endif
10771
10772#ifdef __cplusplus
10773}
10774#endif
10775_LT_EOF
10776 # Now try linking the two files.
10777 mv conftest.$ac_objext conftstm.$ac_objext
10778 lt_save_LIBS="$LIBS"
10779 lt_save_CFLAGS="$CFLAGS"
10780 LIBS="conftstm.$ac_objext"
10781 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +000010782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010783 (eval $ac_link) 2>&5
10784 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10786 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +000010787 pipe_works=yes
10788 fi
10789 LIBS="$lt_save_LIBS"
10790 CFLAGS="$lt_save_CFLAGS"
10791 else
10792 echo "cannot find nm_test_func in $nlist" >&5
10793 fi
10794 else
10795 echo "cannot find nm_test_var in $nlist" >&5
10796 fi
10797 else
10798 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10799 fi
10800 else
10801 echo "$progname: failed program was:" >&5
10802 cat conftest.$ac_ext >&5
10803 fi
10804 rm -rf conftest* conftst*
10805
10806 # Do not use the global_symbol_pipe unless it works.
10807 if test "$pipe_works" = yes; then
10808 break
10809 else
10810 lt_cv_sys_global_symbol_pipe=
10811 fi
10812done
10813
10814fi
10815
10816if test -z "$lt_cv_sys_global_symbol_pipe"; then
10817 lt_cv_sys_global_symbol_to_cdecl=
10818fi
10819if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +000010820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +000010821$as_echo "failed" >&6; }
10822else
cristy8b350f62009-11-15 23:12:43 +000010823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000010824$as_echo "ok" >&6; }
10825fi
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +000010849if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010850 enableval=$enable_libtool_lock;
10851fi
10852
10853test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10854
10855# Some flags need to be propagated to the compiler or linker for good
10856# libtool support.
10857case $host in
10858ia64-*-hpux*)
10859 # Find out which ABI we are using.
10860 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010862 (eval $ac_compile) 2>&5
10863 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10865 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010866 case `/usr/bin/file conftest.$ac_objext` in
10867 *ELF-32*)
10868 HPUX_IA64_MODE="32"
10869 ;;
10870 *ELF-64*)
10871 HPUX_IA64_MODE="64"
10872 ;;
10873 esac
10874 fi
10875 rm -rf conftest*
10876 ;;
10877*-*-irix6*)
10878 # Find out which ABI we are using.
cristy232a9ab2010-06-26 01:02:54 +000010879 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010881 (eval $ac_compile) 2>&5
10882 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10884 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010885 if test "$lt_cv_prog_gnu_ld" = yes; then
10886 case `/usr/bin/file conftest.$ac_objext` in
10887 *32-bit*)
10888 LD="${LD-ld} -melf32bsmip"
10889 ;;
10890 *N32*)
10891 LD="${LD-ld} -melf32bmipn32"
10892 ;;
10893 *64-bit*)
10894 LD="${LD-ld} -melf64bmip"
10895 ;;
10896 esac
10897 else
10898 case `/usr/bin/file conftest.$ac_objext` in
10899 *32-bit*)
10900 LD="${LD-ld} -32"
10901 ;;
10902 *N32*)
10903 LD="${LD-ld} -n32"
10904 ;;
10905 *64-bit*)
10906 LD="${LD-ld} -64"
10907 ;;
10908 esac
10909 fi
10910 fi
10911 rm -rf conftest*
10912 ;;
10913
10914x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10915s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10916 # Find out which ABI we are using.
10917 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010919 (eval $ac_compile) 2>&5
10920 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10922 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010923 case `/usr/bin/file conftest.o` in
10924 *32-bit*)
10925 case $host in
10926 x86_64-*kfreebsd*-gnu)
10927 LD="${LD-ld} -m elf_i386_fbsd"
10928 ;;
10929 x86_64-*linux*)
10930 LD="${LD-ld} -m elf_i386"
10931 ;;
10932 ppc64-*linux*|powerpc64-*linux*)
10933 LD="${LD-ld} -m elf32ppclinux"
10934 ;;
10935 s390x-*linux*)
10936 LD="${LD-ld} -m elf_s390"
10937 ;;
10938 sparc64-*linux*)
10939 LD="${LD-ld} -m elf32_sparc"
10940 ;;
10941 esac
10942 ;;
10943 *64-bit*)
10944 case $host in
10945 x86_64-*kfreebsd*-gnu)
10946 LD="${LD-ld} -m elf_x86_64_fbsd"
10947 ;;
10948 x86_64-*linux*)
10949 LD="${LD-ld} -m elf_x86_64"
10950 ;;
10951 ppc*-*linux*|powerpc*-*linux*)
10952 LD="${LD-ld} -m elf64ppc"
10953 ;;
10954 s390*-*linux*|s390*-*tpf*)
10955 LD="${LD-ld} -m elf64_s390"
10956 ;;
10957 sparc*-*linux*)
10958 LD="${LD-ld} -m elf64_sparc"
10959 ;;
10960 esac
10961 ;;
10962 esac
10963 fi
10964 rm -rf conftest*
10965 ;;
10966
10967*-*-sco3.2v5*)
10968 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10969 SAVE_CFLAGS="$CFLAGS"
10970 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +000010971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000010972$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010973if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010974 $as_echo_n "(cached) " >&6
10975else
10976 ac_ext=c
10977ac_cpp='$CPP $CPPFLAGS'
10978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10980ac_compiler_gnu=$ac_cv_c_compiler_gnu
10981
cristy8b350f62009-11-15 23:12:43 +000010982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010983/* end confdefs.h. */
10984
10985int
10986main ()
10987{
10988
10989 ;
10990 return 0;
10991}
10992_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010993if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010994 lt_cv_cc_needs_belf=yes
10995else
cristy8b350f62009-11-15 23:12:43 +000010996 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +000010997fi
cristy8b350f62009-11-15 23:12:43 +000010998rm -f core conftest.err conftest.$ac_objext \
10999 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011000 ac_ext=c
11001ac_cpp='$CPP $CPPFLAGS'
11002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11004ac_compiler_gnu=$ac_cv_c_compiler_gnu
11005
11006fi
cristy8b350f62009-11-15 23:12:43 +000011007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000011008$as_echo "$lt_cv_cc_needs_belf" >&6; }
11009 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11010 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11011 CFLAGS="$SAVE_CFLAGS"
11012 fi
11013 ;;
11014sparc*-*solaris*)
11015 # Find out which ABI we are using.
11016 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000011018 (eval $ac_compile) 2>&5
11019 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000011020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11021 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000011022 case `/usr/bin/file conftest.o` in
11023 *64-bit*)
11024 case $lt_cv_prog_gnu_ld in
11025 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11026 *)
11027 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11028 LD="${LD-ld} -64"
11029 fi
11030 ;;
11031 esac
11032 ;;
11033 esac
11034 fi
11035 rm -rf conftest*
11036 ;;
11037esac
11038
11039need_locks="$enable_libtool_lock"
11040
11041
11042 case $host_os in
11043 rhapsody* | darwin*)
11044 if test -n "$ac_tool_prefix"; then
11045 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11046set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011048$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011049if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011050 $as_echo_n "(cached) " >&6
11051else
11052 if test -n "$DSYMUTIL"; then
11053 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11054else
11055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11056for as_dir in $PATH
11057do
11058 IFS=$as_save_IFS
11059 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011060 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11062 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011064 break 2
11065 fi
11066done
cristy8b350f62009-11-15 23:12:43 +000011067 done
cristy3ed852e2009-09-05 21:47:34 +000011068IFS=$as_save_IFS
11069
11070fi
11071fi
11072DSYMUTIL=$ac_cv_prog_DSYMUTIL
11073if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011075$as_echo "$DSYMUTIL" >&6; }
11076else
cristy8b350f62009-11-15 23:12:43 +000011077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011078$as_echo "no" >&6; }
11079fi
11080
11081
11082fi
11083if test -z "$ac_cv_prog_DSYMUTIL"; then
11084 ac_ct_DSYMUTIL=$DSYMUTIL
11085 # Extract the first word of "dsymutil", so it can be a program name with args.
11086set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011088$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011089if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011090 $as_echo_n "(cached) " >&6
11091else
11092 if test -n "$ac_ct_DSYMUTIL"; then
11093 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11094else
11095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096for as_dir in $PATH
11097do
11098 IFS=$as_save_IFS
11099 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011100 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11102 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011104 break 2
11105 fi
11106done
cristy8b350f62009-11-15 23:12:43 +000011107 done
cristy3ed852e2009-09-05 21:47:34 +000011108IFS=$as_save_IFS
11109
11110fi
11111fi
11112ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11113if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011115$as_echo "$ac_ct_DSYMUTIL" >&6; }
11116else
cristy8b350f62009-11-15 23:12:43 +000011117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011118$as_echo "no" >&6; }
11119fi
11120
11121 if test "x$ac_ct_DSYMUTIL" = x; then
11122 DSYMUTIL=":"
11123 else
11124 case $cross_compiling:$ac_tool_warned in
11125yes:)
cristy8b350f62009-11-15 23:12:43 +000011126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11128ac_tool_warned=yes ;;
11129esac
11130 DSYMUTIL=$ac_ct_DSYMUTIL
11131 fi
11132else
11133 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11134fi
11135
11136 if test -n "$ac_tool_prefix"; then
11137 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11138set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011140$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011141if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011142 $as_echo_n "(cached) " >&6
11143else
11144 if test -n "$NMEDIT"; then
11145 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11146else
11147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11148for as_dir in $PATH
11149do
11150 IFS=$as_save_IFS
11151 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011152 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11154 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +000011155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011156 break 2
11157 fi
11158done
cristy8b350f62009-11-15 23:12:43 +000011159 done
cristy3ed852e2009-09-05 21:47:34 +000011160IFS=$as_save_IFS
11161
11162fi
11163fi
11164NMEDIT=$ac_cv_prog_NMEDIT
11165if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011167$as_echo "$NMEDIT" >&6; }
11168else
cristy8b350f62009-11-15 23:12:43 +000011169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011170$as_echo "no" >&6; }
11171fi
11172
11173
11174fi
11175if test -z "$ac_cv_prog_NMEDIT"; then
11176 ac_ct_NMEDIT=$NMEDIT
11177 # Extract the first word of "nmedit", so it can be a program name with args.
11178set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011180$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011181if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011182 $as_echo_n "(cached) " >&6
11183else
11184 if test -n "$ac_ct_NMEDIT"; then
11185 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11186else
11187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188for as_dir in $PATH
11189do
11190 IFS=$as_save_IFS
11191 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011192 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11194 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +000011195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011196 break 2
11197 fi
11198done
cristy8b350f62009-11-15 23:12:43 +000011199 done
cristy3ed852e2009-09-05 21:47:34 +000011200IFS=$as_save_IFS
11201
11202fi
11203fi
11204ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11205if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011207$as_echo "$ac_ct_NMEDIT" >&6; }
11208else
cristy8b350f62009-11-15 23:12:43 +000011209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011210$as_echo "no" >&6; }
11211fi
11212
11213 if test "x$ac_ct_NMEDIT" = x; then
11214 NMEDIT=":"
11215 else
11216 case $cross_compiling:$ac_tool_warned in
11217yes:)
cristy8b350f62009-11-15 23:12:43 +000011218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11220ac_tool_warned=yes ;;
11221esac
11222 NMEDIT=$ac_ct_NMEDIT
11223 fi
11224else
11225 NMEDIT="$ac_cv_prog_NMEDIT"
11226fi
11227
11228 if test -n "$ac_tool_prefix"; then
11229 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11230set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011232$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011233if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011234 $as_echo_n "(cached) " >&6
11235else
11236 if test -n "$LIPO"; then
11237 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11238else
11239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11240for as_dir in $PATH
11241do
11242 IFS=$as_save_IFS
11243 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011244 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11246 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +000011247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011248 break 2
11249 fi
11250done
cristy8b350f62009-11-15 23:12:43 +000011251 done
cristy3ed852e2009-09-05 21:47:34 +000011252IFS=$as_save_IFS
11253
11254fi
11255fi
11256LIPO=$ac_cv_prog_LIPO
11257if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011259$as_echo "$LIPO" >&6; }
11260else
cristy8b350f62009-11-15 23:12:43 +000011261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011262$as_echo "no" >&6; }
11263fi
11264
11265
11266fi
11267if test -z "$ac_cv_prog_LIPO"; then
11268 ac_ct_LIPO=$LIPO
11269 # Extract the first word of "lipo", so it can be a program name with args.
11270set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011272$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011273if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011274 $as_echo_n "(cached) " >&6
11275else
11276 if test -n "$ac_ct_LIPO"; then
11277 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11278else
11279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11280for as_dir in $PATH
11281do
11282 IFS=$as_save_IFS
11283 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011284 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11286 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +000011287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011288 break 2
11289 fi
11290done
cristy8b350f62009-11-15 23:12:43 +000011291 done
cristy3ed852e2009-09-05 21:47:34 +000011292IFS=$as_save_IFS
11293
11294fi
11295fi
11296ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11297if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011299$as_echo "$ac_ct_LIPO" >&6; }
11300else
cristy8b350f62009-11-15 23:12:43 +000011301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011302$as_echo "no" >&6; }
11303fi
11304
11305 if test "x$ac_ct_LIPO" = x; then
11306 LIPO=":"
11307 else
11308 case $cross_compiling:$ac_tool_warned in
11309yes:)
cristy8b350f62009-11-15 23:12:43 +000011310{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011311$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11312ac_tool_warned=yes ;;
11313esac
11314 LIPO=$ac_ct_LIPO
11315 fi
11316else
11317 LIPO="$ac_cv_prog_LIPO"
11318fi
11319
11320 if test -n "$ac_tool_prefix"; then
11321 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11322set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011324$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011325if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011326 $as_echo_n "(cached) " >&6
11327else
11328 if test -n "$OTOOL"; then
11329 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11330else
11331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11332for as_dir in $PATH
11333do
11334 IFS=$as_save_IFS
11335 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011336 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11338 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +000011339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011340 break 2
11341 fi
11342done
cristy8b350f62009-11-15 23:12:43 +000011343 done
cristy3ed852e2009-09-05 21:47:34 +000011344IFS=$as_save_IFS
11345
11346fi
11347fi
11348OTOOL=$ac_cv_prog_OTOOL
11349if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011351$as_echo "$OTOOL" >&6; }
11352else
cristy8b350f62009-11-15 23:12:43 +000011353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011354$as_echo "no" >&6; }
11355fi
11356
11357
11358fi
11359if test -z "$ac_cv_prog_OTOOL"; then
11360 ac_ct_OTOOL=$OTOOL
11361 # Extract the first word of "otool", so it can be a program name with args.
11362set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011364$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011365if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011366 $as_echo_n "(cached) " >&6
11367else
11368 if test -n "$ac_ct_OTOOL"; then
11369 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11370else
11371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11372for as_dir in $PATH
11373do
11374 IFS=$as_save_IFS
11375 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011376 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11378 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +000011379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011380 break 2
11381 fi
11382done
cristy8b350f62009-11-15 23:12:43 +000011383 done
cristy3ed852e2009-09-05 21:47:34 +000011384IFS=$as_save_IFS
11385
11386fi
11387fi
11388ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11389if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011391$as_echo "$ac_ct_OTOOL" >&6; }
11392else
cristy8b350f62009-11-15 23:12:43 +000011393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011394$as_echo "no" >&6; }
11395fi
11396
11397 if test "x$ac_ct_OTOOL" = x; then
11398 OTOOL=":"
11399 else
11400 case $cross_compiling:$ac_tool_warned in
11401yes:)
cristy8b350f62009-11-15 23:12:43 +000011402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11404ac_tool_warned=yes ;;
11405esac
11406 OTOOL=$ac_ct_OTOOL
11407 fi
11408else
11409 OTOOL="$ac_cv_prog_OTOOL"
11410fi
11411
11412 if test -n "$ac_tool_prefix"; then
11413 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11414set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011416$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011417if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011418 $as_echo_n "(cached) " >&6
11419else
11420 if test -n "$OTOOL64"; then
11421 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11422else
11423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11424for as_dir in $PATH
11425do
11426 IFS=$as_save_IFS
11427 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011428 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11430 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000011431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011432 break 2
11433 fi
11434done
cristy8b350f62009-11-15 23:12:43 +000011435 done
cristy3ed852e2009-09-05 21:47:34 +000011436IFS=$as_save_IFS
11437
11438fi
11439fi
11440OTOOL64=$ac_cv_prog_OTOOL64
11441if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011443$as_echo "$OTOOL64" >&6; }
11444else
cristy8b350f62009-11-15 23:12:43 +000011445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011446$as_echo "no" >&6; }
11447fi
11448
11449
11450fi
11451if test -z "$ac_cv_prog_OTOOL64"; then
11452 ac_ct_OTOOL64=$OTOOL64
11453 # Extract the first word of "otool64", so it can be a program name with args.
11454set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011456$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011457if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011458 $as_echo_n "(cached) " >&6
11459else
11460 if test -n "$ac_ct_OTOOL64"; then
11461 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11462else
11463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11464for as_dir in $PATH
11465do
11466 IFS=$as_save_IFS
11467 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011468 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11470 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000011471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011472 break 2
11473 fi
11474done
cristy8b350f62009-11-15 23:12:43 +000011475 done
cristy3ed852e2009-09-05 21:47:34 +000011476IFS=$as_save_IFS
11477
11478fi
11479fi
11480ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11481if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011483$as_echo "$ac_ct_OTOOL64" >&6; }
11484else
cristy8b350f62009-11-15 23:12:43 +000011485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011486$as_echo "no" >&6; }
11487fi
11488
11489 if test "x$ac_ct_OTOOL64" = x; then
11490 OTOOL64=":"
11491 else
11492 case $cross_compiling:$ac_tool_warned in
11493yes:)
cristy8b350f62009-11-15 23:12:43 +000011494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11496ac_tool_warned=yes ;;
11497esac
11498 OTOOL64=$ac_ct_OTOOL64
11499 fi
11500else
11501 OTOOL64="$ac_cv_prog_OTOOL64"
11502fi
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
cristy8b350f62009-11-15 23:12:43 +000011530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011531$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011532if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011533 $as_echo_n "(cached) " >&6
11534else
11535 lt_cv_apple_cc_single_mod=no
11536 if test -z "${LT_MULTI_MODULE}"; then
11537 # By default we will add the -single_module flag. You can override
11538 # by either setting the environment variable LT_MULTI_MODULE
11539 # non-empty at configure time, or by adding -multi_module to the
11540 # link flags.
11541 rm -rf libconftest.dylib*
11542 echo "int foo(void){return 1;}" > conftest.c
11543 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11544-dynamiclib -Wl,-single_module conftest.c" >&5
11545 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11546 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11547 _lt_result=$?
11548 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11549 lt_cv_apple_cc_single_mod=yes
11550 else
11551 cat conftest.err >&5
11552 fi
11553 rm -rf libconftest.dylib*
11554 rm -f conftest.*
11555 fi
11556fi
cristy8b350f62009-11-15 23:12:43 +000011557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000011558$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011560$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011561if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011562 $as_echo_n "(cached) " >&6
11563else
11564 lt_cv_ld_exported_symbols_list=no
11565 save_LDFLAGS=$LDFLAGS
11566 echo "_main" > conftest.sym
11567 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000011568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011569/* end confdefs.h. */
11570
11571int
11572main ()
11573{
11574
11575 ;
11576 return 0;
11577}
11578_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011579if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011580 lt_cv_ld_exported_symbols_list=yes
11581else
cristy8b350f62009-11-15 23:12:43 +000011582 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000011583fi
cristy8b350f62009-11-15 23:12:43 +000011584rm -f core conftest.err conftest.$ac_objext \
11585 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011586 LDFLAGS="$save_LDFLAGS"
11587
11588fi
cristy8b350f62009-11-15 23:12:43 +000011589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000011590$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy232a9ab2010-06-26 01:02:54 +000011591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11592$as_echo_n "checking for -force_load linker flag... " >&6; }
11593if test "${lt_cv_ld_force_load+set}" = set; then :
11594 $as_echo_n "(cached) " >&6
11595else
11596 lt_cv_ld_force_load=no
11597 cat > conftest.c << _LT_EOF
11598int forced_loaded() { return 2;}
11599_LT_EOF
11600 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11601 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11602 echo "$AR cru libconftest.a conftest.o" >&5
11603 $AR cru libconftest.a conftest.o 2>&5
11604 echo "$RANLIB libconftest.a" >&5
11605 $RANLIB libconftest.a 2>&5
11606 cat > conftest.c << _LT_EOF
11607int main() { return 0;}
11608_LT_EOF
11609 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11610 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11611 _lt_result=$?
11612 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11613 lt_cv_ld_force_load=yes
11614 else
11615 cat conftest.err >&5
11616 fi
11617 rm -f conftest.err libconftest.a conftest conftest.c
11618 rm -rf conftest.dSYM
11619
11620fi
11621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11622$as_echo "$lt_cv_ld_force_load" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011623 case $host_os in
11624 rhapsody* | darwin1.[012])
11625 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11626 darwin1.*)
11627 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11628 darwin*) # darwin 5.x on
11629 # if running on 10.5 or later, the deployment target defaults
11630 # to the OS version, if on x86, and 10.4, the deployment
11631 # target defaults to 10.4. Don't you love it?
11632 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11633 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11634 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11635 10.[012]*)
11636 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11637 10.*)
11638 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11639 esac
11640 ;;
11641 esac
11642 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11643 _lt_dar_single_mod='$single_module'
11644 fi
11645 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11646 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11647 else
11648 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11649 fi
cristy232a9ab2010-06-26 01:02:54 +000011650 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy3ed852e2009-09-05 21:47:34 +000011651 _lt_dsymutil='~$DSYMUTIL $lib || :'
11652 else
11653 _lt_dsymutil=
11654 fi
11655 ;;
11656 esac
11657
cristy3ed852e2009-09-05 21:47:34 +000011658for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000011659do :
11660 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11661"
11662if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011663 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011664#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000011665_ACEOF
11666
11667fi
11668
11669done
11670
11671
11672
cristy3ed852e2009-09-05 21:47:34 +000011673
11674
11675
11676# Set options
11677enable_win32_dll=yes
11678
11679case $host in
cristy232a9ab2010-06-26 01:02:54 +000011680*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000011681 if test -n "$ac_tool_prefix"; then
11682 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11683set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011685$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011686if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011687 $as_echo_n "(cached) " >&6
11688else
11689 if test -n "$AS"; then
11690 ac_cv_prog_AS="$AS" # Let the user override the test.
11691else
11692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693for as_dir in $PATH
11694do
11695 IFS=$as_save_IFS
11696 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011697 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11699 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000011700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011701 break 2
11702 fi
11703done
cristy8b350f62009-11-15 23:12:43 +000011704 done
cristy3ed852e2009-09-05 21:47:34 +000011705IFS=$as_save_IFS
11706
11707fi
11708fi
11709AS=$ac_cv_prog_AS
11710if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000011711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011712$as_echo "$AS" >&6; }
11713else
cristy8b350f62009-11-15 23:12:43 +000011714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011715$as_echo "no" >&6; }
11716fi
11717
11718
11719fi
11720if test -z "$ac_cv_prog_AS"; then
11721 ac_ct_AS=$AS
11722 # Extract the first word of "as", so it can be a program name with args.
11723set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011725$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011726if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011727 $as_echo_n "(cached) " >&6
11728else
11729 if test -n "$ac_ct_AS"; then
11730 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11731else
11732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11733for as_dir in $PATH
11734do
11735 IFS=$as_save_IFS
11736 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011737 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11739 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000011740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011741 break 2
11742 fi
11743done
cristy8b350f62009-11-15 23:12:43 +000011744 done
cristy3ed852e2009-09-05 21:47:34 +000011745IFS=$as_save_IFS
11746
11747fi
11748fi
11749ac_ct_AS=$ac_cv_prog_ac_ct_AS
11750if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000011751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011752$as_echo "$ac_ct_AS" >&6; }
11753else
cristy8b350f62009-11-15 23:12:43 +000011754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011755$as_echo "no" >&6; }
11756fi
11757
11758 if test "x$ac_ct_AS" = x; then
11759 AS="false"
11760 else
11761 case $cross_compiling:$ac_tool_warned in
11762yes:)
cristy8b350f62009-11-15 23:12:43 +000011763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11765ac_tool_warned=yes ;;
11766esac
11767 AS=$ac_ct_AS
11768 fi
11769else
11770 AS="$ac_cv_prog_AS"
11771fi
11772
11773 if test -n "$ac_tool_prefix"; then
11774 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11775set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011777$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011778if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011779 $as_echo_n "(cached) " >&6
11780else
11781 if test -n "$DLLTOOL"; then
11782 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11783else
11784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785for as_dir in $PATH
11786do
11787 IFS=$as_save_IFS
11788 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011789 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11791 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000011792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011793 break 2
11794 fi
11795done
cristy8b350f62009-11-15 23:12:43 +000011796 done
cristy3ed852e2009-09-05 21:47:34 +000011797IFS=$as_save_IFS
11798
11799fi
11800fi
11801DLLTOOL=$ac_cv_prog_DLLTOOL
11802if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011804$as_echo "$DLLTOOL" >&6; }
11805else
cristy8b350f62009-11-15 23:12:43 +000011806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011807$as_echo "no" >&6; }
11808fi
11809
11810
11811fi
11812if test -z "$ac_cv_prog_DLLTOOL"; then
11813 ac_ct_DLLTOOL=$DLLTOOL
11814 # Extract the first word of "dlltool", so it can be a program name with args.
11815set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011817$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011818if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011819 $as_echo_n "(cached) " >&6
11820else
11821 if test -n "$ac_ct_DLLTOOL"; then
11822 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11823else
11824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11825for as_dir in $PATH
11826do
11827 IFS=$as_save_IFS
11828 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011829 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11831 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000011832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011833 break 2
11834 fi
11835done
cristy8b350f62009-11-15 23:12:43 +000011836 done
cristy3ed852e2009-09-05 21:47:34 +000011837IFS=$as_save_IFS
11838
11839fi
11840fi
11841ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11842if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011844$as_echo "$ac_ct_DLLTOOL" >&6; }
11845else
cristy8b350f62009-11-15 23:12:43 +000011846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011847$as_echo "no" >&6; }
11848fi
11849
11850 if test "x$ac_ct_DLLTOOL" = x; then
11851 DLLTOOL="false"
11852 else
11853 case $cross_compiling:$ac_tool_warned in
11854yes:)
cristy8b350f62009-11-15 23:12:43 +000011855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11857ac_tool_warned=yes ;;
11858esac
11859 DLLTOOL=$ac_ct_DLLTOOL
11860 fi
11861else
11862 DLLTOOL="$ac_cv_prog_DLLTOOL"
11863fi
11864
11865 if test -n "$ac_tool_prefix"; then
11866 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11867set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011869$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011870if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011871 $as_echo_n "(cached) " >&6
11872else
11873 if test -n "$OBJDUMP"; then
11874 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11875else
11876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11877for as_dir in $PATH
11878do
11879 IFS=$as_save_IFS
11880 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011881 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11883 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000011884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011885 break 2
11886 fi
11887done
cristy8b350f62009-11-15 23:12:43 +000011888 done
cristy3ed852e2009-09-05 21:47:34 +000011889IFS=$as_save_IFS
11890
11891fi
11892fi
11893OBJDUMP=$ac_cv_prog_OBJDUMP
11894if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011896$as_echo "$OBJDUMP" >&6; }
11897else
cristy8b350f62009-11-15 23:12:43 +000011898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011899$as_echo "no" >&6; }
11900fi
11901
11902
11903fi
11904if test -z "$ac_cv_prog_OBJDUMP"; then
11905 ac_ct_OBJDUMP=$OBJDUMP
11906 # Extract the first word of "objdump", so it can be a program name with args.
11907set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011909$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011910if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011911 $as_echo_n "(cached) " >&6
11912else
11913 if test -n "$ac_ct_OBJDUMP"; then
11914 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11915else
11916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11917for as_dir in $PATH
11918do
11919 IFS=$as_save_IFS
11920 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011921 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11923 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000011924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011925 break 2
11926 fi
11927done
cristy8b350f62009-11-15 23:12:43 +000011928 done
cristy3ed852e2009-09-05 21:47:34 +000011929IFS=$as_save_IFS
11930
11931fi
11932fi
11933ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11934if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011936$as_echo "$ac_ct_OBJDUMP" >&6; }
11937else
cristy8b350f62009-11-15 23:12:43 +000011938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011939$as_echo "no" >&6; }
11940fi
11941
11942 if test "x$ac_ct_OBJDUMP" = x; then
11943 OBJDUMP="false"
11944 else
11945 case $cross_compiling:$ac_tool_warned in
11946yes:)
cristy8b350f62009-11-15 23:12:43 +000011947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11949ac_tool_warned=yes ;;
11950esac
11951 OBJDUMP=$ac_ct_OBJDUMP
11952 fi
11953else
11954 OBJDUMP="$ac_cv_prog_OBJDUMP"
11955fi
11956
11957 ;;
11958esac
11959
11960test -z "$AS" && AS=as
11961
11962
11963
11964
11965
11966test -z "$DLLTOOL" && DLLTOOL=dlltool
11967
11968
11969
11970
11971
11972test -z "$OBJDUMP" && OBJDUMP=objdump
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000011983if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011984 enableval=$enable_shared; p=${PACKAGE-default}
11985 case $enableval in
11986 yes) enable_shared=yes ;;
11987 no) enable_shared=no ;;
11988 *)
11989 enable_shared=no
11990 # Look at the argument we got. We use all the common list separators.
11991 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11992 for pkg in $enableval; do
11993 IFS="$lt_save_ifs"
11994 if test "X$pkg" = "X$p"; then
11995 enable_shared=yes
11996 fi
11997 done
11998 IFS="$lt_save_ifs"
11999 ;;
12000 esac
12001else
12002 enable_shared=yes
12003fi
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000012014if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012015 enableval=$enable_static; p=${PACKAGE-default}
12016 case $enableval in
12017 yes) enable_static=yes ;;
12018 no) enable_static=no ;;
12019 *)
12020 enable_static=no
12021 # Look at the argument we got. We use all the common list separators.
12022 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12023 for pkg in $enableval; do
12024 IFS="$lt_save_ifs"
12025 if test "X$pkg" = "X$p"; then
12026 enable_static=yes
12027 fi
12028 done
12029 IFS="$lt_save_ifs"
12030 ;;
12031 esac
12032else
12033 enable_static=yes
12034fi
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000012046if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012047 withval=$with_pic; pic_mode="$withval"
12048else
12049 pic_mode=default
12050fi
12051
12052
12053test -z "$pic_mode" && pic_mode=default
12054
12055
12056
12057
12058
12059
12060
12061 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000012062if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012063 enableval=$enable_fast_install; p=${PACKAGE-default}
12064 case $enableval in
12065 yes) enable_fast_install=yes ;;
12066 no) enable_fast_install=no ;;
12067 *)
12068 enable_fast_install=no
12069 # Look at the argument we got. We use all the common list separators.
12070 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12071 for pkg in $enableval; do
12072 IFS="$lt_save_ifs"
12073 if test "X$pkg" = "X$p"; then
12074 enable_fast_install=yes
12075 fi
12076 done
12077 IFS="$lt_save_ifs"
12078 ;;
12079 esac
12080else
12081 enable_fast_install=yes
12082fi
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094# This can be used to rebuild libtool when needed
12095LIBTOOL_DEPS="$ltmain"
12096
12097# Always use our own libtool.
12098LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
cristy232a9ab2010-06-26 01:02:54 +000012124
cristy3ed852e2009-09-05 21:47:34 +000012125test -z "$LN_S" && LN_S="ln -s"
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140if test -n "${ZSH_VERSION+set}" ; then
12141 setopt NO_GLOB_SUBST
12142fi
12143
cristy8b350f62009-11-15 23:12:43 +000012144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012145$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012146if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012147 $as_echo_n "(cached) " >&6
12148else
12149 rm -f .libs 2>/dev/null
12150mkdir .libs 2>/dev/null
12151if test -d .libs; then
12152 lt_cv_objdir=.libs
12153else
12154 # MS-DOS does not allow filenames that begin with a dot.
12155 lt_cv_objdir=_libs
12156fi
12157rmdir .libs 2>/dev/null
12158fi
cristy8b350f62009-11-15 23:12:43 +000012159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012160$as_echo "$lt_cv_objdir" >&6; }
12161objdir=$lt_cv_objdir
12162
12163
12164
12165
12166
12167cat >>confdefs.h <<_ACEOF
12168#define LT_OBJDIR "$lt_cv_objdir/"
12169_ACEOF
12170
12171
12172
12173
cristy3ed852e2009-09-05 21:47:34 +000012174case $host_os in
12175aix3*)
12176 # AIX sometimes has problems with the GCC collect2 program. For some
12177 # reason, if we set the COLLECT_NAMES environment variable, the problems
12178 # vanish in a puff of smoke.
12179 if test "X${COLLECT_NAMES+set}" != Xset; then
12180 COLLECT_NAMES=
12181 export COLLECT_NAMES
12182 fi
12183 ;;
12184esac
12185
cristy3ed852e2009-09-05 21:47:34 +000012186# Global variables:
12187ofile=libtool
12188can_build_shared=yes
12189
12190# All known linkers require a `.a' archive for static linking (except MSVC,
12191# which needs '.lib').
12192libext=a
12193
12194with_gnu_ld="$lt_cv_prog_gnu_ld"
12195
12196old_CC="$CC"
12197old_CFLAGS="$CFLAGS"
12198
12199# Set sane defaults for various variables
12200test -z "$CC" && CC=cc
12201test -z "$LTCC" && LTCC=$CC
12202test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12203test -z "$LD" && LD=ld
12204test -z "$ac_objext" && ac_objext=o
12205
12206for cc_temp in $compiler""; do
12207 case $cc_temp in
12208 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12209 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12210 \-*) ;;
12211 *) break;;
12212 esac
12213done
cristy232a9ab2010-06-26 01:02:54 +000012214cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000012215
12216
12217# Only perform the check for file, if the check method requires it
12218test -z "$MAGIC_CMD" && MAGIC_CMD=file
12219case $deplibs_check_method in
12220file_magic*)
12221 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000012222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012223$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012224if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012225 $as_echo_n "(cached) " >&6
12226else
12227 case $MAGIC_CMD in
12228[\\/*] | ?:[\\/]*)
12229 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12230 ;;
12231*)
12232 lt_save_MAGIC_CMD="$MAGIC_CMD"
12233 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12234 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12235 for ac_dir in $ac_dummy; do
12236 IFS="$lt_save_ifs"
12237 test -z "$ac_dir" && ac_dir=.
12238 if test -f $ac_dir/${ac_tool_prefix}file; then
12239 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12240 if test -n "$file_magic_test_file"; then
12241 case $deplibs_check_method in
12242 "file_magic "*)
12243 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12244 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12245 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12246 $EGREP "$file_magic_regex" > /dev/null; then
12247 :
12248 else
12249 cat <<_LT_EOF 1>&2
12250
12251*** Warning: the command libtool uses to detect shared libraries,
12252*** $file_magic_cmd, produces output that libtool cannot recognize.
12253*** The result is that libtool may fail to recognize shared libraries
12254*** as such. This will affect the creation of libtool libraries that
12255*** depend on shared libraries, but programs linked with such libtool
12256*** libraries will work regardless of this problem. Nevertheless, you
12257*** may want to report the problem to your system manager and/or to
12258*** bug-libtool@gnu.org
12259
12260_LT_EOF
12261 fi ;;
12262 esac
12263 fi
12264 break
12265 fi
12266 done
12267 IFS="$lt_save_ifs"
12268 MAGIC_CMD="$lt_save_MAGIC_CMD"
12269 ;;
12270esac
12271fi
12272
12273MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12274if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012276$as_echo "$MAGIC_CMD" >&6; }
12277else
cristy8b350f62009-11-15 23:12:43 +000012278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012279$as_echo "no" >&6; }
12280fi
12281
12282
12283
12284
12285
12286if test -z "$lt_cv_path_MAGIC_CMD"; then
12287 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000012288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012289$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012290if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012291 $as_echo_n "(cached) " >&6
12292else
12293 case $MAGIC_CMD in
12294[\\/*] | ?:[\\/]*)
12295 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12296 ;;
12297*)
12298 lt_save_MAGIC_CMD="$MAGIC_CMD"
12299 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12300 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12301 for ac_dir in $ac_dummy; do
12302 IFS="$lt_save_ifs"
12303 test -z "$ac_dir" && ac_dir=.
12304 if test -f $ac_dir/file; then
12305 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12306 if test -n "$file_magic_test_file"; then
12307 case $deplibs_check_method in
12308 "file_magic "*)
12309 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12310 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12311 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12312 $EGREP "$file_magic_regex" > /dev/null; then
12313 :
12314 else
12315 cat <<_LT_EOF 1>&2
12316
12317*** Warning: the command libtool uses to detect shared libraries,
12318*** $file_magic_cmd, produces output that libtool cannot recognize.
12319*** The result is that libtool may fail to recognize shared libraries
12320*** as such. This will affect the creation of libtool libraries that
12321*** depend on shared libraries, but programs linked with such libtool
12322*** libraries will work regardless of this problem. Nevertheless, you
12323*** may want to report the problem to your system manager and/or to
12324*** bug-libtool@gnu.org
12325
12326_LT_EOF
12327 fi ;;
12328 esac
12329 fi
12330 break
12331 fi
12332 done
12333 IFS="$lt_save_ifs"
12334 MAGIC_CMD="$lt_save_MAGIC_CMD"
12335 ;;
12336esac
12337fi
12338
12339MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12340if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012342$as_echo "$MAGIC_CMD" >&6; }
12343else
cristy8b350f62009-11-15 23:12:43 +000012344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012345$as_echo "no" >&6; }
12346fi
12347
12348
12349 else
12350 MAGIC_CMD=:
12351 fi
12352fi
12353
12354 fi
12355 ;;
12356esac
12357
12358# Use C for the default configuration in the libtool script
12359
12360lt_save_CC="$CC"
12361ac_ext=c
12362ac_cpp='$CPP $CPPFLAGS'
12363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12365ac_compiler_gnu=$ac_cv_c_compiler_gnu
12366
12367
12368# Source file extension for C test sources.
12369ac_ext=c
12370
12371# Object file extension for compiled C test sources.
12372objext=o
12373objext=$objext
12374
12375# Code to be used in simple compile tests
12376lt_simple_compile_test_code="int some_variable = 0;"
12377
12378# Code to be used in simple link tests
12379lt_simple_link_test_code='int main(){return(0);}'
12380
12381
12382
12383
12384
12385
12386
12387# If no C compiler was specified, use CC.
12388LTCC=${LTCC-"$CC"}
12389
12390# If no C compiler flags were specified, use CFLAGS.
12391LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12392
12393# Allow CC to be a program name with arguments.
12394compiler=$CC
12395
12396# Save the default compiler, since it gets overwritten when the other
12397# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12398compiler_DEFAULT=$CC
12399
12400# save warnings/boilerplate of simple test code
12401ac_outfile=conftest.$ac_objext
12402echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12403eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12404_lt_compiler_boilerplate=`cat conftest.err`
12405$RM conftest*
12406
12407ac_outfile=conftest.$ac_objext
12408echo "$lt_simple_link_test_code" >conftest.$ac_ext
12409eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12410_lt_linker_boilerplate=`cat conftest.err`
12411$RM -r conftest*
12412
12413
12414## CAVEAT EMPTOR:
12415## There is no encapsulation within the following macros, do not change
12416## the running order or otherwise move them around unless you know exactly
12417## what you are doing...
12418if test -n "$compiler"; then
12419
12420lt_prog_compiler_no_builtin_flag=
12421
12422if test "$GCC" = yes; then
cristy232a9ab2010-06-26 01:02:54 +000012423 case $cc_basename in
12424 nvcc*)
12425 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12426 *)
12427 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12428 esac
cristy3ed852e2009-09-05 21:47:34 +000012429
cristy8b350f62009-11-15 23:12:43 +000012430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012431$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012432if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012433 $as_echo_n "(cached) " >&6
12434else
12435 lt_cv_prog_compiler_rtti_exceptions=no
12436 ac_outfile=conftest.$ac_objext
12437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12438 lt_compiler_flag="-fno-rtti -fno-exceptions"
12439 # Insert the option either (1) after the last *FLAGS variable, or
12440 # (2) before a word containing "conftest.", or (3) at the end.
12441 # Note that $ac_compile itself does not contain backslashes and begins
12442 # with a dollar sign (not a hyphen), so the echo should work correctly.
12443 # The option is referenced via a variable to avoid confusing sed.
12444 lt_compile=`echo "$ac_compile" | $SED \
12445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12447 -e 's:$: $lt_compiler_flag:'`
cristy232a9ab2010-06-26 01:02:54 +000012448 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012449 (eval "$lt_compile" 2>conftest.err)
12450 ac_status=$?
12451 cat conftest.err >&5
cristy232a9ab2010-06-26 01:02:54 +000012452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012453 if (exit $ac_status) && test -s "$ac_outfile"; then
12454 # The compiler can only warn and ignore the option if not recognized
12455 # So say no if there are warnings other than the usual output.
cristy232a9ab2010-06-26 01:02:54 +000012456 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12458 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12459 lt_cv_prog_compiler_rtti_exceptions=yes
12460 fi
12461 fi
12462 $RM conftest*
12463
12464fi
cristy8b350f62009-11-15 23:12:43 +000012465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012466$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12467
12468if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12469 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12470else
12471 :
12472fi
12473
12474fi
12475
12476
12477
12478
12479
12480
12481 lt_prog_compiler_wl=
12482lt_prog_compiler_pic=
12483lt_prog_compiler_static=
12484
cristy8b350f62009-11-15 23:12:43 +000012485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000012486$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12487
12488 if test "$GCC" = yes; then
12489 lt_prog_compiler_wl='-Wl,'
12490 lt_prog_compiler_static='-static'
12491
12492 case $host_os in
12493 aix*)
12494 # All AIX code is PIC.
12495 if test "$host_cpu" = ia64; then
12496 # AIX 5 now supports IA64 processor
12497 lt_prog_compiler_static='-Bstatic'
12498 fi
12499 ;;
12500
12501 amigaos*)
12502 case $host_cpu in
12503 powerpc)
12504 # see comment about AmigaOS4 .so support
12505 lt_prog_compiler_pic='-fPIC'
12506 ;;
12507 m68k)
12508 # FIXME: we need at least 68020 code to build shared libraries, but
12509 # adding the `-m68020' flag to GCC prevents building anything better,
12510 # like `-m68040'.
12511 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12512 ;;
12513 esac
12514 ;;
12515
12516 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12517 # PIC is the default for these OSes.
12518 ;;
12519
12520 mingw* | cygwin* | pw32* | os2* | cegcc*)
12521 # This hack is so that the source file can tell whether it is being
12522 # built for inclusion in a dll (and should export symbols for example).
12523 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12524 # (--disable-auto-import) libraries
12525 lt_prog_compiler_pic='-DDLL_EXPORT'
12526 ;;
12527
12528 darwin* | rhapsody*)
12529 # PIC is the default on this platform
12530 # Common symbols not allowed in MH_DYLIB files
12531 lt_prog_compiler_pic='-fno-common'
12532 ;;
12533
cristy232a9ab2010-06-26 01:02:54 +000012534 haiku*)
12535 # PIC is the default for Haiku.
12536 # The "-static" flag exists, but is broken.
12537 lt_prog_compiler_static=
12538 ;;
12539
cristy3ed852e2009-09-05 21:47:34 +000012540 hpux*)
12541 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12542 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12543 # sets the default TLS model and affects inlining.
12544 case $host_cpu in
12545 hppa*64*)
12546 # +Z the default
12547 ;;
12548 *)
12549 lt_prog_compiler_pic='-fPIC'
12550 ;;
12551 esac
12552 ;;
12553
12554 interix[3-9]*)
12555 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12556 # Instead, we relocate shared libraries at runtime.
12557 ;;
12558
12559 msdosdjgpp*)
12560 # Just because we use GCC doesn't mean we suddenly get shared libraries
12561 # on systems that don't support them.
12562 lt_prog_compiler_can_build_shared=no
12563 enable_shared=no
12564 ;;
12565
12566 *nto* | *qnx*)
12567 # QNX uses GNU C++, but need to define -shared option too, otherwise
12568 # it will coredump.
12569 lt_prog_compiler_pic='-fPIC -shared'
12570 ;;
12571
12572 sysv4*MP*)
12573 if test -d /usr/nec; then
12574 lt_prog_compiler_pic=-Kconform_pic
12575 fi
12576 ;;
12577
12578 *)
12579 lt_prog_compiler_pic='-fPIC'
12580 ;;
12581 esac
cristy232a9ab2010-06-26 01:02:54 +000012582
12583 case $cc_basename in
12584 nvcc*) # Cuda Compiler Driver 2.2
12585 lt_prog_compiler_wl='-Xlinker '
12586 lt_prog_compiler_pic='-Xcompiler -fPIC'
12587 ;;
12588 esac
cristy3ed852e2009-09-05 21:47:34 +000012589 else
12590 # PORTME Check for flag to pass linker flags through the system compiler.
12591 case $host_os in
12592 aix*)
12593 lt_prog_compiler_wl='-Wl,'
12594 if test "$host_cpu" = ia64; then
12595 # AIX 5 now supports IA64 processor
12596 lt_prog_compiler_static='-Bstatic'
12597 else
12598 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12599 fi
12600 ;;
12601
12602 mingw* | cygwin* | pw32* | os2* | cegcc*)
12603 # This hack is so that the source file can tell whether it is being
12604 # built for inclusion in a dll (and should export symbols for example).
12605 lt_prog_compiler_pic='-DDLL_EXPORT'
12606 ;;
12607
12608 hpux9* | hpux10* | hpux11*)
12609 lt_prog_compiler_wl='-Wl,'
12610 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12611 # not for PA HP-UX.
12612 case $host_cpu in
12613 hppa*64*|ia64*)
12614 # +Z the default
12615 ;;
12616 *)
12617 lt_prog_compiler_pic='+Z'
12618 ;;
12619 esac
12620 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12621 lt_prog_compiler_static='${wl}-a ${wl}archive'
12622 ;;
12623
12624 irix5* | irix6* | nonstopux*)
12625 lt_prog_compiler_wl='-Wl,'
12626 # PIC (with -KPIC) is the default.
12627 lt_prog_compiler_static='-non_shared'
12628 ;;
12629
cristy232a9ab2010-06-26 01:02:54 +000012630 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000012631 case $cc_basename in
12632 # old Intel for x86_64 which still supported -KPIC.
12633 ecc*)
12634 lt_prog_compiler_wl='-Wl,'
12635 lt_prog_compiler_pic='-KPIC'
12636 lt_prog_compiler_static='-static'
12637 ;;
12638 # icc used to be incompatible with GCC.
12639 # ICC 10 doesn't accept -KPIC any more.
12640 icc* | ifort*)
12641 lt_prog_compiler_wl='-Wl,'
12642 lt_prog_compiler_pic='-fPIC'
12643 lt_prog_compiler_static='-static'
12644 ;;
12645 # Lahey Fortran 8.1.
12646 lf95*)
12647 lt_prog_compiler_wl='-Wl,'
12648 lt_prog_compiler_pic='--shared'
12649 lt_prog_compiler_static='--static'
12650 ;;
cristy232a9ab2010-06-26 01:02:54 +000012651 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy3ed852e2009-09-05 21:47:34 +000012652 # Portland Group compilers (*not* the Pentium gcc compiler,
12653 # which looks to be a dead project)
12654 lt_prog_compiler_wl='-Wl,'
12655 lt_prog_compiler_pic='-fpic'
12656 lt_prog_compiler_static='-Bstatic'
12657 ;;
12658 ccc*)
12659 lt_prog_compiler_wl='-Wl,'
12660 # All Alpha code is PIC.
12661 lt_prog_compiler_static='-non_shared'
12662 ;;
cristy232a9ab2010-06-26 01:02:54 +000012663 xl* | bgxl* | bgf* | mpixl*)
12664 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy3ed852e2009-09-05 21:47:34 +000012665 lt_prog_compiler_wl='-Wl,'
12666 lt_prog_compiler_pic='-qpic'
12667 lt_prog_compiler_static='-qstaticlink'
12668 ;;
12669 *)
12670 case `$CC -V 2>&1 | sed 5q` in
cristy232a9ab2010-06-26 01:02:54 +000012671 *Sun\ F* | *Sun*Fortran*)
12672 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12673 lt_prog_compiler_pic='-KPIC'
12674 lt_prog_compiler_static='-Bstatic'
12675 lt_prog_compiler_wl=''
12676 ;;
cristy3ed852e2009-09-05 21:47:34 +000012677 *Sun\ C*)
12678 # Sun C 5.9
12679 lt_prog_compiler_pic='-KPIC'
12680 lt_prog_compiler_static='-Bstatic'
12681 lt_prog_compiler_wl='-Wl,'
12682 ;;
cristy3ed852e2009-09-05 21:47:34 +000012683 esac
12684 ;;
12685 esac
12686 ;;
12687
12688 newsos6)
12689 lt_prog_compiler_pic='-KPIC'
12690 lt_prog_compiler_static='-Bstatic'
12691 ;;
12692
12693 *nto* | *qnx*)
12694 # QNX uses GNU C++, but need to define -shared option too, otherwise
12695 # it will coredump.
12696 lt_prog_compiler_pic='-fPIC -shared'
12697 ;;
12698
12699 osf3* | osf4* | osf5*)
12700 lt_prog_compiler_wl='-Wl,'
12701 # All OSF/1 code is PIC.
12702 lt_prog_compiler_static='-non_shared'
12703 ;;
12704
12705 rdos*)
12706 lt_prog_compiler_static='-non_shared'
12707 ;;
12708
12709 solaris*)
12710 lt_prog_compiler_pic='-KPIC'
12711 lt_prog_compiler_static='-Bstatic'
12712 case $cc_basename in
cristy232a9ab2010-06-26 01:02:54 +000012713 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy3ed852e2009-09-05 21:47:34 +000012714 lt_prog_compiler_wl='-Qoption ld ';;
12715 *)
12716 lt_prog_compiler_wl='-Wl,';;
12717 esac
12718 ;;
12719
12720 sunos4*)
12721 lt_prog_compiler_wl='-Qoption ld '
12722 lt_prog_compiler_pic='-PIC'
12723 lt_prog_compiler_static='-Bstatic'
12724 ;;
12725
12726 sysv4 | sysv4.2uw2* | sysv4.3*)
12727 lt_prog_compiler_wl='-Wl,'
12728 lt_prog_compiler_pic='-KPIC'
12729 lt_prog_compiler_static='-Bstatic'
12730 ;;
12731
12732 sysv4*MP*)
12733 if test -d /usr/nec ;then
12734 lt_prog_compiler_pic='-Kconform_pic'
12735 lt_prog_compiler_static='-Bstatic'
12736 fi
12737 ;;
12738
12739 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12740 lt_prog_compiler_wl='-Wl,'
12741 lt_prog_compiler_pic='-KPIC'
12742 lt_prog_compiler_static='-Bstatic'
12743 ;;
12744
12745 unicos*)
12746 lt_prog_compiler_wl='-Wl,'
12747 lt_prog_compiler_can_build_shared=no
12748 ;;
12749
12750 uts4*)
12751 lt_prog_compiler_pic='-pic'
12752 lt_prog_compiler_static='-Bstatic'
12753 ;;
12754
12755 *)
12756 lt_prog_compiler_can_build_shared=no
12757 ;;
12758 esac
12759 fi
12760
12761case $host_os in
12762 # For platforms which do not support PIC, -DPIC is meaningless:
12763 *djgpp*)
12764 lt_prog_compiler_pic=
12765 ;;
12766 *)
12767 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12768 ;;
12769esac
cristy8b350f62009-11-15 23:12:43 +000012770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000012771$as_echo "$lt_prog_compiler_pic" >&6; }
12772
12773
12774
12775
12776
12777
12778#
12779# Check to make sure the PIC flag actually works.
12780#
12781if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000012782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012783$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012784if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012785 $as_echo_n "(cached) " >&6
12786else
12787 lt_cv_prog_compiler_pic_works=no
12788 ac_outfile=conftest.$ac_objext
12789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12790 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12791 # Insert the option either (1) after the last *FLAGS variable, or
12792 # (2) before a word containing "conftest.", or (3) at the end.
12793 # Note that $ac_compile itself does not contain backslashes and begins
12794 # with a dollar sign (not a hyphen), so the echo should work correctly.
12795 # The option is referenced via a variable to avoid confusing sed.
12796 lt_compile=`echo "$ac_compile" | $SED \
12797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12799 -e 's:$: $lt_compiler_flag:'`
cristy232a9ab2010-06-26 01:02:54 +000012800 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012801 (eval "$lt_compile" 2>conftest.err)
12802 ac_status=$?
12803 cat conftest.err >&5
cristy232a9ab2010-06-26 01:02:54 +000012804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012805 if (exit $ac_status) && test -s "$ac_outfile"; then
12806 # The compiler can only warn and ignore the option if not recognized
12807 # So say no if there are warnings other than the usual output.
cristy232a9ab2010-06-26 01:02:54 +000012808 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12810 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12811 lt_cv_prog_compiler_pic_works=yes
12812 fi
12813 fi
12814 $RM conftest*
12815
12816fi
cristy8b350f62009-11-15 23:12:43 +000012817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012818$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12819
12820if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12821 case $lt_prog_compiler_pic in
12822 "" | " "*) ;;
12823 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12824 esac
12825else
12826 lt_prog_compiler_pic=
12827 lt_prog_compiler_can_build_shared=no
12828fi
12829
12830fi
12831
12832
12833
12834
12835
12836
12837#
12838# Check to make sure the static flag actually works.
12839#
12840wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000012841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012842$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012843if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012844 $as_echo_n "(cached) " >&6
12845else
12846 lt_cv_prog_compiler_static_works=no
12847 save_LDFLAGS="$LDFLAGS"
12848 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12849 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12850 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12851 # The linker can only warn and ignore the option if not recognized
12852 # So say no if there are warnings
12853 if test -s conftest.err; then
12854 # Append any errors to the config.log.
12855 cat conftest.err 1>&5
cristy232a9ab2010-06-26 01:02:54 +000012856 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012857 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12858 if diff conftest.exp conftest.er2 >/dev/null; then
12859 lt_cv_prog_compiler_static_works=yes
12860 fi
12861 else
12862 lt_cv_prog_compiler_static_works=yes
12863 fi
12864 fi
12865 $RM -r conftest*
12866 LDFLAGS="$save_LDFLAGS"
12867
12868fi
cristy8b350f62009-11-15 23:12:43 +000012869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012870$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12871
12872if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12873 :
12874else
12875 lt_prog_compiler_static=
12876fi
12877
12878
12879
12880
12881
12882
12883
cristy8b350f62009-11-15 23:12:43 +000012884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012885$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012886if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012887 $as_echo_n "(cached) " >&6
12888else
12889 lt_cv_prog_compiler_c_o=no
12890 $RM -r conftest 2>/dev/null
12891 mkdir conftest
12892 cd conftest
12893 mkdir out
12894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12895
12896 lt_compiler_flag="-o out/conftest2.$ac_objext"
12897 # Insert the option either (1) after the last *FLAGS variable, or
12898 # (2) before a word containing "conftest.", or (3) at the end.
12899 # Note that $ac_compile itself does not contain backslashes and begins
12900 # with a dollar sign (not a hyphen), so the echo should work correctly.
12901 lt_compile=`echo "$ac_compile" | $SED \
12902 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12904 -e 's:$: $lt_compiler_flag:'`
cristy232a9ab2010-06-26 01:02:54 +000012905 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012906 (eval "$lt_compile" 2>out/conftest.err)
12907 ac_status=$?
12908 cat out/conftest.err >&5
cristy232a9ab2010-06-26 01:02:54 +000012909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012910 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12911 then
12912 # The compiler can only warn and ignore the option if not recognized
12913 # So say no if there are warnings
cristy232a9ab2010-06-26 01:02:54 +000012914 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012915 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12916 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12917 lt_cv_prog_compiler_c_o=yes
12918 fi
12919 fi
12920 chmod u+w . 2>&5
12921 $RM conftest*
12922 # SGI C++ compiler will create directory out/ii_files/ for
12923 # template instantiation
12924 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12925 $RM out/* && rmdir out
12926 cd ..
12927 $RM -r conftest
12928 $RM conftest*
12929
12930fi
cristy8b350f62009-11-15 23:12:43 +000012931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012932$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12933
12934
12935
12936
12937
12938
cristy8b350f62009-11-15 23:12:43 +000012939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012940$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012941if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012942 $as_echo_n "(cached) " >&6
12943else
12944 lt_cv_prog_compiler_c_o=no
12945 $RM -r conftest 2>/dev/null
12946 mkdir conftest
12947 cd conftest
12948 mkdir out
12949 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12950
12951 lt_compiler_flag="-o out/conftest2.$ac_objext"
12952 # Insert the option either (1) after the last *FLAGS variable, or
12953 # (2) before a word containing "conftest.", or (3) at the end.
12954 # Note that $ac_compile itself does not contain backslashes and begins
12955 # with a dollar sign (not a hyphen), so the echo should work correctly.
12956 lt_compile=`echo "$ac_compile" | $SED \
12957 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12959 -e 's:$: $lt_compiler_flag:'`
cristy232a9ab2010-06-26 01:02:54 +000012960 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012961 (eval "$lt_compile" 2>out/conftest.err)
12962 ac_status=$?
12963 cat out/conftest.err >&5
cristy232a9ab2010-06-26 01:02:54 +000012964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012965 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12966 then
12967 # The compiler can only warn and ignore the option if not recognized
12968 # So say no if there are warnings
cristy232a9ab2010-06-26 01:02:54 +000012969 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012970 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12971 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12972 lt_cv_prog_compiler_c_o=yes
12973 fi
12974 fi
12975 chmod u+w . 2>&5
12976 $RM conftest*
12977 # SGI C++ compiler will create directory out/ii_files/ for
12978 # template instantiation
12979 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12980 $RM out/* && rmdir out
12981 cd ..
12982 $RM -r conftest
12983 $RM conftest*
12984
12985fi
cristy8b350f62009-11-15 23:12:43 +000012986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012987$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12988
12989
12990
12991
12992hard_links="nottested"
12993if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12994 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000012995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000012996$as_echo_n "checking if we can lock with hard links... " >&6; }
12997 hard_links=yes
12998 $RM conftest*
12999 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13000 touch conftest.a
13001 ln conftest.a conftest.b 2>&5 || hard_links=no
13002 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000013003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013004$as_echo "$hard_links" >&6; }
13005 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000013006 { $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 +000013007$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13008 need_locks=warn
13009 fi
13010else
13011 need_locks=no
13012fi
13013
13014
13015
13016
13017
13018
cristy8b350f62009-11-15 23:12:43 +000013019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000013020$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13021
13022 runpath_var=
13023 allow_undefined_flag=
13024 always_export_symbols=no
13025 archive_cmds=
13026 archive_expsym_cmds=
13027 compiler_needs_object=no
13028 enable_shared_with_static_runtimes=no
13029 export_dynamic_flag_spec=
13030 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13031 hardcode_automatic=no
13032 hardcode_direct=no
13033 hardcode_direct_absolute=no
13034 hardcode_libdir_flag_spec=
13035 hardcode_libdir_flag_spec_ld=
13036 hardcode_libdir_separator=
13037 hardcode_minus_L=no
13038 hardcode_shlibpath_var=unsupported
13039 inherit_rpath=no
13040 link_all_deplibs=unknown
13041 module_cmds=
13042 module_expsym_cmds=
13043 old_archive_from_new_cmds=
13044 old_archive_from_expsyms_cmds=
13045 thread_safe_flag_spec=
13046 whole_archive_flag_spec=
13047 # include_expsyms should be a list of space-separated symbols to be *always*
13048 # included in the symbol list
13049 include_expsyms=
13050 # exclude_expsyms can be an extended regexp of symbols to exclude
13051 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13052 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13053 # as well as any symbol that contains `d'.
13054 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13055 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13056 # platforms (ab)use it in PIC code, but their linkers get confused if
13057 # the symbol is explicitly referenced. Since portable code cannot
13058 # rely on this symbol name, it's probably fine to never include it in
13059 # preloaded symbol tables.
13060 # Exclude shared library initialization/finalization symbols.
13061 extract_expsyms_cmds=
13062
13063 case $host_os in
13064 cygwin* | mingw* | pw32* | cegcc*)
13065 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13066 # When not using gcc, we currently assume that we are using
13067 # Microsoft Visual C++.
13068 if test "$GCC" != yes; then
13069 with_gnu_ld=no
13070 fi
13071 ;;
13072 interix*)
13073 # we just hope/assume this is gcc and not c89 (= MSVC++)
13074 with_gnu_ld=yes
13075 ;;
13076 openbsd*)
13077 with_gnu_ld=no
13078 ;;
13079 esac
13080
13081 ld_shlibs=yes
cristy232a9ab2010-06-26 01:02:54 +000013082
13083 # On some targets, GNU ld is compatible enough with the native linker
13084 # that we're better off using the native interface for both.
13085 lt_use_gnu_ld_interface=no
cristy3ed852e2009-09-05 21:47:34 +000013086 if test "$with_gnu_ld" = yes; then
cristy232a9ab2010-06-26 01:02:54 +000013087 case $host_os in
13088 aix*)
13089 # The AIX port of GNU ld has always aspired to compatibility
13090 # with the native linker. However, as the warning in the GNU ld
13091 # block says, versions before 2.19.5* couldn't really create working
13092 # shared libraries, regardless of the interface used.
13093 case `$LD -v 2>&1` in
13094 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13095 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13096 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13097 *)
13098 lt_use_gnu_ld_interface=yes
13099 ;;
13100 esac
13101 ;;
13102 *)
13103 lt_use_gnu_ld_interface=yes
13104 ;;
13105 esac
13106 fi
13107
13108 if test "$lt_use_gnu_ld_interface" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000013109 # If archive_cmds runs LD, not CC, wlarc should be empty
13110 wlarc='${wl}'
13111
13112 # Set some defaults for GNU ld with shared library support. These
13113 # are reset later if shared libraries are not supported. Putting them
13114 # here allows them to be overridden if necessary.
13115 runpath_var=LD_RUN_PATH
13116 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13117 export_dynamic_flag_spec='${wl}--export-dynamic'
13118 # ancient GNU ld didn't support --whole-archive et. al.
13119 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13120 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13121 else
13122 whole_archive_flag_spec=
13123 fi
13124 supports_anon_versioning=no
13125 case `$LD -v 2>&1` in
cristy232a9ab2010-06-26 01:02:54 +000013126 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy3ed852e2009-09-05 21:47:34 +000013127 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13128 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13129 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13130 *\ 2.11.*) ;; # other 2.11 versions
13131 *) supports_anon_versioning=yes ;;
13132 esac
13133
13134 # See if GNU ld supports shared libraries.
13135 case $host_os in
13136 aix[3-9]*)
13137 # On AIX/PPC, the GNU linker is very broken
13138 if test "$host_cpu" != ia64; then
13139 ld_shlibs=no
13140 cat <<_LT_EOF 1>&2
13141
cristy232a9ab2010-06-26 01:02:54 +000013142*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy3ed852e2009-09-05 21:47:34 +000013143*** to be unable to reliably create shared libraries on AIX.
13144*** Therefore, libtool is disabling shared libraries support. If you
cristy232a9ab2010-06-26 01:02:54 +000013145*** really care for shared libraries, you may want to install binutils
13146*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13147*** You will then need to restart the configuration process.
cristy3ed852e2009-09-05 21:47:34 +000013148
13149_LT_EOF
13150 fi
13151 ;;
13152
13153 amigaos*)
13154 case $host_cpu in
13155 powerpc)
13156 # see comment about AmigaOS4 .so support
13157 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13158 archive_expsym_cmds=''
13159 ;;
13160 m68k)
13161 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)'
13162 hardcode_libdir_flag_spec='-L$libdir'
13163 hardcode_minus_L=yes
13164 ;;
13165 esac
13166 ;;
13167
13168 beos*)
13169 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13170 allow_undefined_flag=unsupported
13171 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13172 # support --undefined. This deserves some investigation. FIXME
13173 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13174 else
13175 ld_shlibs=no
13176 fi
13177 ;;
13178
13179 cygwin* | mingw* | pw32* | cegcc*)
13180 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13181 # as there is no search path for DLLs.
13182 hardcode_libdir_flag_spec='-L$libdir'
cristy232a9ab2010-06-26 01:02:54 +000013183 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy3ed852e2009-09-05 21:47:34 +000013184 allow_undefined_flag=unsupported
13185 always_export_symbols=no
13186 enable_shared_with_static_runtimes=yes
13187 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13188
13189 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13191 # If the export-symbols file already is a .def file (1st line
13192 # is EXPORTS), use it as is; otherwise, prepend...
13193 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13194 cp $export_symbols $output_objdir/$soname.def;
13195 else
13196 echo EXPORTS > $output_objdir/$soname.def;
13197 cat $export_symbols >> $output_objdir/$soname.def;
13198 fi~
13199 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13200 else
13201 ld_shlibs=no
13202 fi
13203 ;;
13204
cristy232a9ab2010-06-26 01:02:54 +000013205 haiku*)
13206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13207 link_all_deplibs=yes
13208 ;;
13209
cristy3ed852e2009-09-05 21:47:34 +000013210 interix[3-9]*)
13211 hardcode_direct=no
13212 hardcode_shlibpath_var=no
13213 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13214 export_dynamic_flag_spec='${wl}-E'
13215 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13216 # Instead, shared libraries are loaded at an image base (0x10000000 by
13217 # default) and relocated if they conflict, which is a slow very memory
13218 # consuming and fragmenting process. To avoid this, we pick a random,
13219 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13220 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13221 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13222 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'
13223 ;;
13224
cristy232a9ab2010-06-26 01:02:54 +000013225 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013226 tmp_diet=no
13227 if test "$host_os" = linux-dietlibc; then
13228 case $cc_basename in
13229 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13230 esac
13231 fi
13232 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13233 && test "$tmp_diet" = no
13234 then
13235 tmp_addflag=
13236 tmp_sharedflag='-shared'
13237 case $cc_basename,$host_cpu in
13238 pgcc*) # Portland Group C compiler
cristy232a9ab2010-06-26 01:02:54 +000013239 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 +000013240 tmp_addflag=' $pic_flag'
13241 ;;
cristy232a9ab2010-06-26 01:02:54 +000013242 pgf77* | pgf90* | pgf95* | pgfortran*)
13243 # Portland Group f77 and f90 compilers
13244 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 +000013245 tmp_addflag=' $pic_flag -Mnomain' ;;
13246 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13247 tmp_addflag=' -i_dynamic' ;;
13248 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13249 tmp_addflag=' -i_dynamic -nofor_main' ;;
13250 ifc* | ifort*) # Intel Fortran compiler
13251 tmp_addflag=' -nofor_main' ;;
13252 lf95*) # Lahey Fortran 8.1
13253 whole_archive_flag_spec=
13254 tmp_sharedflag='--shared' ;;
cristy232a9ab2010-06-26 01:02:54 +000013255 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000013256 tmp_sharedflag='-qmkshrobj'
13257 tmp_addflag= ;;
cristy232a9ab2010-06-26 01:02:54 +000013258 nvcc*) # Cuda Compiler Driver 2.2
13259 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'
13260 compiler_needs_object=yes
13261 ;;
cristy3ed852e2009-09-05 21:47:34 +000013262 esac
13263 case `$CC -V 2>&1 | sed 5q` in
13264 *Sun\ C*) # Sun C 5.9
cristy232a9ab2010-06-26 01:02:54 +000013265 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 +000013266 compiler_needs_object=yes
13267 tmp_sharedflag='-G' ;;
13268 *Sun\ F*) # Sun Fortran 8.3
13269 tmp_sharedflag='-G' ;;
13270 esac
13271 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13272
13273 if test "x$supports_anon_versioning" = xyes; then
13274 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13275 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13276 echo "local: *; };" >> $output_objdir/$libname.ver~
13277 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13278 fi
13279
13280 case $cc_basename in
cristy232a9ab2010-06-26 01:02:54 +000013281 xlf* | bgf* | bgxlf* | mpixlf*)
cristy3ed852e2009-09-05 21:47:34 +000013282 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13283 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13284 hardcode_libdir_flag_spec=
13285 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy232a9ab2010-06-26 01:02:54 +000013286 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013287 if test "x$supports_anon_versioning" = xyes; then
13288 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13289 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13290 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy232a9ab2010-06-26 01:02:54 +000013291 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013292 fi
13293 ;;
13294 esac
13295 else
13296 ld_shlibs=no
13297 fi
13298 ;;
13299
13300 netbsd*)
13301 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13302 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13303 wlarc=
13304 else
13305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13306 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13307 fi
13308 ;;
13309
13310 solaris*)
13311 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13312 ld_shlibs=no
13313 cat <<_LT_EOF 1>&2
13314
13315*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13316*** create shared libraries on Solaris systems. Therefore, libtool
13317*** is disabling shared libraries support. We urge you to upgrade GNU
13318*** binutils to release 2.9.1 or newer. Another option is to modify
13319*** your PATH or compiler configuration so that the native linker is
13320*** used, and then restart.
13321
13322_LT_EOF
13323 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13325 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13326 else
13327 ld_shlibs=no
13328 fi
13329 ;;
13330
13331 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13332 case `$LD -v 2>&1` in
13333 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13334 ld_shlibs=no
13335 cat <<_LT_EOF 1>&2
13336
13337*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13338*** reliably create shared libraries on SCO systems. Therefore, libtool
13339*** is disabling shared libraries support. We urge you to upgrade GNU
13340*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13341*** your PATH or compiler configuration so that the native linker is
13342*** used, and then restart.
13343
13344_LT_EOF
13345 ;;
13346 *)
13347 # For security reasons, it is highly recommended that you always
13348 # use absolute paths for naming shared libraries, and exclude the
13349 # DT_RUNPATH tag from executables and libraries. But doing so
13350 # requires that you compile everything twice, which is a pain.
13351 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13352 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13354 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13355 else
13356 ld_shlibs=no
13357 fi
13358 ;;
13359 esac
13360 ;;
13361
13362 sunos4*)
13363 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13364 wlarc=
13365 hardcode_direct=yes
13366 hardcode_shlibpath_var=no
13367 ;;
13368
13369 *)
13370 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13371 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13372 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13373 else
13374 ld_shlibs=no
13375 fi
13376 ;;
13377 esac
13378
13379 if test "$ld_shlibs" = no; then
13380 runpath_var=
13381 hardcode_libdir_flag_spec=
13382 export_dynamic_flag_spec=
13383 whole_archive_flag_spec=
13384 fi
13385 else
13386 # PORTME fill in a description of your system's linker (not GNU ld)
13387 case $host_os in
13388 aix3*)
13389 allow_undefined_flag=unsupported
13390 always_export_symbols=yes
13391 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'
13392 # Note: this linker hardcodes the directories in LIBPATH if there
13393 # are no directories specified by -L.
13394 hardcode_minus_L=yes
13395 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13396 # Neither direct hardcoding nor static linking is supported with a
13397 # broken collect2.
13398 hardcode_direct=unsupported
13399 fi
13400 ;;
13401
13402 aix[4-9]*)
13403 if test "$host_cpu" = ia64; then
13404 # On IA64, the linker does run time linking by default, so we don't
13405 # have to do anything special.
13406 aix_use_runtimelinking=no
13407 exp_sym_flag='-Bexport'
13408 no_entry_flag=""
13409 else
13410 # If we're using GNU nm, then we don't want the "-C" option.
13411 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy232a9ab2010-06-26 01:02:54 +000013412 # Also, AIX nm treats weak defined symbols like other global
13413 # defined symbols, whereas GNU nm marks them as "W".
cristy3ed852e2009-09-05 21:47:34 +000013414 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy232a9ab2010-06-26 01:02:54 +000013415 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 +000013416 else
13417 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'
13418 fi
13419 aix_use_runtimelinking=no
13420
13421 # Test if we are trying to use run time linking or normal
13422 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13423 # need to do runtime linking.
13424 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13425 for ld_flag in $LDFLAGS; do
13426 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13427 aix_use_runtimelinking=yes
13428 break
13429 fi
13430 done
13431 ;;
13432 esac
13433
13434 exp_sym_flag='-bexport'
13435 no_entry_flag='-bnoentry'
13436 fi
13437
13438 # When large executables or shared objects are built, AIX ld can
13439 # have problems creating the table of contents. If linking a library
13440 # or program results in "error TOC overflow" add -mminimal-toc to
13441 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13442 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13443
13444 archive_cmds=''
13445 hardcode_direct=yes
13446 hardcode_direct_absolute=yes
13447 hardcode_libdir_separator=':'
13448 link_all_deplibs=yes
13449 file_list_spec='${wl}-f,'
13450
13451 if test "$GCC" = yes; then
13452 case $host_os in aix4.[012]|aix4.[012].*)
13453 # We only want to do this on AIX 4.2 and lower, the check
13454 # below for broken collect2 doesn't work under 4.3+
13455 collect2name=`${CC} -print-prog-name=collect2`
13456 if test -f "$collect2name" &&
13457 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13458 then
13459 # We have reworked collect2
13460 :
13461 else
13462 # We have old collect2
13463 hardcode_direct=unsupported
13464 # It fails to find uninstalled libraries when the uninstalled
13465 # path is not listed in the libpath. Setting hardcode_minus_L
13466 # to unsupported forces relinking
13467 hardcode_minus_L=yes
13468 hardcode_libdir_flag_spec='-L$libdir'
13469 hardcode_libdir_separator=
13470 fi
13471 ;;
13472 esac
13473 shared_flag='-shared'
13474 if test "$aix_use_runtimelinking" = yes; then
13475 shared_flag="$shared_flag "'${wl}-G'
13476 fi
13477 else
13478 # not using gcc
13479 if test "$host_cpu" = ia64; then
13480 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13481 # chokes on -Wl,-G. The following line is correct:
13482 shared_flag='-G'
13483 else
13484 if test "$aix_use_runtimelinking" = yes; then
13485 shared_flag='${wl}-G'
13486 else
13487 shared_flag='${wl}-bM:SRE'
13488 fi
13489 fi
13490 fi
13491
13492 export_dynamic_flag_spec='${wl}-bexpall'
13493 # It seems that -bexpall does not export symbols beginning with
13494 # underscore (_), so it is better to generate a list of symbols to export.
13495 always_export_symbols=yes
13496 if test "$aix_use_runtimelinking" = yes; then
13497 # Warning - without using the other runtime loading flags (-brtl),
13498 # -berok will link without error, but may produce a broken library.
13499 allow_undefined_flag='-berok'
13500 # Determine the default libpath from the value encoded in an
13501 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013503/* end confdefs.h. */
13504
13505int
13506main ()
13507{
13508
13509 ;
13510 return 0;
13511}
13512_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013513if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013514
13515lt_aix_libpath_sed='
13516 /Import File Strings/,/^$/ {
13517 /^0/ {
13518 s/^0 *\(.*\)$/\1/
13519 p
13520 }
13521 }'
13522aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13523# Check for a 64-bit object if we didn't find anything.
13524if test -z "$aix_libpath"; then
13525 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13526fi
cristy3ed852e2009-09-05 21:47:34 +000013527fi
cristy8b350f62009-11-15 23:12:43 +000013528rm -f core conftest.err conftest.$ac_objext \
13529 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013530if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13531
13532 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy232a9ab2010-06-26 01:02:54 +000013533 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 +000013534 else
13535 if test "$host_cpu" = ia64; then
13536 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13537 allow_undefined_flag="-z nodefs"
13538 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"
13539 else
13540 # Determine the default libpath from the value encoded in an
13541 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013543/* end confdefs.h. */
13544
13545int
13546main ()
13547{
13548
13549 ;
13550 return 0;
13551}
13552_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013553if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013554
13555lt_aix_libpath_sed='
13556 /Import File Strings/,/^$/ {
13557 /^0/ {
13558 s/^0 *\(.*\)$/\1/
13559 p
13560 }
13561 }'
13562aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13563# Check for a 64-bit object if we didn't find anything.
13564if test -z "$aix_libpath"; then
13565 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13566fi
cristy3ed852e2009-09-05 21:47:34 +000013567fi
cristy8b350f62009-11-15 23:12:43 +000013568rm -f core conftest.err conftest.$ac_objext \
13569 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013570if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13571
13572 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13573 # Warning - without using the other run time loading flags,
13574 # -berok will link without error, but may produce a broken library.
13575 no_undefined_flag=' ${wl}-bernotok'
13576 allow_undefined_flag=' ${wl}-berok'
cristy232a9ab2010-06-26 01:02:54 +000013577 if test "$with_gnu_ld" = yes; then
13578 # We only use this code for GNU lds that support --whole-archive.
13579 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13580 else
13581 # Exported symbols can be pulled into shared objects from archives
13582 whole_archive_flag_spec='$convenience'
13583 fi
cristy3ed852e2009-09-05 21:47:34 +000013584 archive_cmds_need_lc=yes
13585 # This is similar to how AIX traditionally builds its shared libraries.
13586 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'
13587 fi
13588 fi
13589 ;;
13590
13591 amigaos*)
13592 case $host_cpu in
13593 powerpc)
13594 # see comment about AmigaOS4 .so support
13595 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13596 archive_expsym_cmds=''
13597 ;;
13598 m68k)
13599 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)'
13600 hardcode_libdir_flag_spec='-L$libdir'
13601 hardcode_minus_L=yes
13602 ;;
13603 esac
13604 ;;
13605
13606 bsdi[45]*)
13607 export_dynamic_flag_spec=-rdynamic
13608 ;;
13609
13610 cygwin* | mingw* | pw32* | cegcc*)
13611 # When not using gcc, we currently assume that we are using
13612 # Microsoft Visual C++.
13613 # hardcode_libdir_flag_spec is actually meaningless, as there is
13614 # no search path for DLLs.
13615 hardcode_libdir_flag_spec=' '
13616 allow_undefined_flag=unsupported
13617 # Tell ltmain to make .lib files, not .a files.
13618 libext=lib
13619 # Tell ltmain to make .dll files, not .so files.
13620 shrext_cmds=".dll"
13621 # FIXME: Setting linknames here is a bad hack.
cristy232a9ab2010-06-26 01:02:54 +000013622 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000013623 # The linker will automatically build a .lib file if we build a DLL.
13624 old_archive_from_new_cmds='true'
13625 # FIXME: Should let the user specify the lib program.
13626 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13627 fix_srcfile_path='`cygpath -w "$srcfile"`'
13628 enable_shared_with_static_runtimes=yes
13629 ;;
13630
13631 darwin* | rhapsody*)
13632
13633
13634 archive_cmds_need_lc=no
13635 hardcode_direct=no
13636 hardcode_automatic=yes
13637 hardcode_shlibpath_var=unsupported
cristy232a9ab2010-06-26 01:02:54 +000013638 if test "$lt_cv_ld_force_load" = "yes"; then
13639 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\"`'
13640 else
13641 whole_archive_flag_spec=''
13642 fi
cristy3ed852e2009-09-05 21:47:34 +000013643 link_all_deplibs=yes
13644 allow_undefined_flag="$_lt_dar_allow_undefined"
13645 case $cc_basename in
13646 ifort*) _lt_dar_can_shared=yes ;;
13647 *) _lt_dar_can_shared=$GCC ;;
13648 esac
13649 if test "$_lt_dar_can_shared" = "yes"; then
cristy232a9ab2010-06-26 01:02:54 +000013650 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000013651 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13652 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13653 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}"
13654 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}"
13655
13656 else
13657 ld_shlibs=no
13658 fi
13659
13660 ;;
13661
13662 dgux*)
13663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13664 hardcode_libdir_flag_spec='-L$libdir'
13665 hardcode_shlibpath_var=no
13666 ;;
13667
13668 freebsd1*)
13669 ld_shlibs=no
13670 ;;
13671
13672 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13673 # support. Future versions do this automatically, but an explicit c++rt0.o
13674 # does not break anything, and helps significantly (at the cost of a little
13675 # extra space).
13676 freebsd2.2*)
13677 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13678 hardcode_libdir_flag_spec='-R$libdir'
13679 hardcode_direct=yes
13680 hardcode_shlibpath_var=no
13681 ;;
13682
13683 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13684 freebsd2*)
13685 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13686 hardcode_direct=yes
13687 hardcode_minus_L=yes
13688 hardcode_shlibpath_var=no
13689 ;;
13690
13691 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13692 freebsd* | dragonfly*)
13693 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13694 hardcode_libdir_flag_spec='-R$libdir'
13695 hardcode_direct=yes
13696 hardcode_shlibpath_var=no
13697 ;;
13698
13699 hpux9*)
13700 if test "$GCC" = yes; then
13701 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'
13702 else
13703 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'
13704 fi
13705 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13706 hardcode_libdir_separator=:
13707 hardcode_direct=yes
13708
13709 # hardcode_minus_L: Not really in the search PATH,
13710 # but as the default location of the library.
13711 hardcode_minus_L=yes
13712 export_dynamic_flag_spec='${wl}-E'
13713 ;;
13714
13715 hpux10*)
cristy232a9ab2010-06-26 01:02:54 +000013716 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013717 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13718 else
13719 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13720 fi
13721 if test "$with_gnu_ld" = no; then
13722 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13723 hardcode_libdir_flag_spec_ld='+b $libdir'
13724 hardcode_libdir_separator=:
13725 hardcode_direct=yes
13726 hardcode_direct_absolute=yes
13727 export_dynamic_flag_spec='${wl}-E'
13728 # hardcode_minus_L: Not really in the search PATH,
13729 # but as the default location of the library.
13730 hardcode_minus_L=yes
13731 fi
13732 ;;
13733
13734 hpux11*)
cristy232a9ab2010-06-26 01:02:54 +000013735 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013736 case $host_cpu in
13737 hppa*64*)
13738 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13739 ;;
13740 ia64*)
13741 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13742 ;;
13743 *)
13744 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13745 ;;
13746 esac
13747 else
13748 case $host_cpu in
13749 hppa*64*)
13750 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13751 ;;
13752 ia64*)
13753 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13754 ;;
13755 *)
cristy232a9ab2010-06-26 01:02:54 +000013756
13757 # Older versions of the 11.00 compiler do not understand -b yet
13758 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13760$as_echo_n "checking if $CC understands -b... " >&6; }
13761if test "${lt_cv_prog_compiler__b+set}" = set; then :
13762 $as_echo_n "(cached) " >&6
13763else
13764 lt_cv_prog_compiler__b=no
13765 save_LDFLAGS="$LDFLAGS"
13766 LDFLAGS="$LDFLAGS -b"
13767 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13768 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13769 # The linker can only warn and ignore the option if not recognized
13770 # So say no if there are warnings
13771 if test -s conftest.err; then
13772 # Append any errors to the config.log.
13773 cat conftest.err 1>&5
13774 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13775 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13776 if diff conftest.exp conftest.er2 >/dev/null; then
13777 lt_cv_prog_compiler__b=yes
13778 fi
13779 else
13780 lt_cv_prog_compiler__b=yes
13781 fi
13782 fi
13783 $RM -r conftest*
13784 LDFLAGS="$save_LDFLAGS"
13785
13786fi
13787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13788$as_echo "$lt_cv_prog_compiler__b" >&6; }
13789
13790if test x"$lt_cv_prog_compiler__b" = xyes; then
13791 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13792else
13793 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13794fi
13795
cristy3ed852e2009-09-05 21:47:34 +000013796 ;;
13797 esac
13798 fi
13799 if test "$with_gnu_ld" = no; then
13800 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13801 hardcode_libdir_separator=:
13802
13803 case $host_cpu in
13804 hppa*64*|ia64*)
13805 hardcode_direct=no
13806 hardcode_shlibpath_var=no
13807 ;;
13808 *)
13809 hardcode_direct=yes
13810 hardcode_direct_absolute=yes
13811 export_dynamic_flag_spec='${wl}-E'
13812
13813 # hardcode_minus_L: Not really in the search PATH,
13814 # but as the default location of the library.
13815 hardcode_minus_L=yes
13816 ;;
13817 esac
13818 fi
13819 ;;
13820
13821 irix5* | irix6* | nonstopux*)
13822 if test "$GCC" = yes; then
cristy232a9ab2010-06-26 01:02:54 +000013823 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 +000013824 # Try to use the -exported_symbol ld option, if it does not
13825 # work, assume that -exports_file does not work either and
13826 # implicitly export all symbols.
13827 save_LDFLAGS="$LDFLAGS"
13828 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000013829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000013831int foo(void) {}
13832_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013833if ac_fn_c_try_link "$LINENO"; then :
cristy232a9ab2010-06-26 01:02:54 +000013834 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 +000013835
cristy3ed852e2009-09-05 21:47:34 +000013836fi
cristy8b350f62009-11-15 23:12:43 +000013837rm -f core conftest.err conftest.$ac_objext \
13838 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013839 LDFLAGS="$save_LDFLAGS"
13840 else
cristy232a9ab2010-06-26 01:02:54 +000013841 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'
13842 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 +000013843 fi
13844 archive_cmds_need_lc='no'
13845 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13846 hardcode_libdir_separator=:
13847 inherit_rpath=yes
13848 link_all_deplibs=yes
13849 ;;
13850
13851 netbsd*)
13852 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13853 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13854 else
13855 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13856 fi
13857 hardcode_libdir_flag_spec='-R$libdir'
13858 hardcode_direct=yes
13859 hardcode_shlibpath_var=no
13860 ;;
13861
13862 newsos6)
13863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13864 hardcode_direct=yes
13865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13866 hardcode_libdir_separator=:
13867 hardcode_shlibpath_var=no
13868 ;;
13869
13870 *nto* | *qnx*)
13871 ;;
13872
13873 openbsd*)
13874 if test -f /usr/libexec/ld.so; then
13875 hardcode_direct=yes
13876 hardcode_shlibpath_var=no
13877 hardcode_direct_absolute=yes
13878 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13879 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13880 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13881 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13882 export_dynamic_flag_spec='${wl}-E'
13883 else
13884 case $host_os in
13885 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13886 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13887 hardcode_libdir_flag_spec='-R$libdir'
13888 ;;
13889 *)
13890 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13891 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13892 ;;
13893 esac
13894 fi
13895 else
13896 ld_shlibs=no
13897 fi
13898 ;;
13899
13900 os2*)
13901 hardcode_libdir_flag_spec='-L$libdir'
13902 hardcode_minus_L=yes
13903 allow_undefined_flag=unsupported
cristy232a9ab2010-06-26 01:02:54 +000013904 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 +000013905 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13906 ;;
13907
13908 osf3*)
13909 if test "$GCC" = yes; then
13910 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy232a9ab2010-06-26 01:02:54 +000013911 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 +000013912 else
13913 allow_undefined_flag=' -expect_unresolved \*'
cristy232a9ab2010-06-26 01:02:54 +000013914 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 +000013915 fi
13916 archive_cmds_need_lc='no'
13917 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13918 hardcode_libdir_separator=:
13919 ;;
13920
13921 osf4* | osf5*) # as osf3* with the addition of -msym flag
13922 if test "$GCC" = yes; then
13923 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy232a9ab2010-06-26 01:02:54 +000013924 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 +000013925 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13926 else
13927 allow_undefined_flag=' -expect_unresolved \*'
cristy232a9ab2010-06-26 01:02:54 +000013928 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 +000013929 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~
cristy232a9ab2010-06-26 01:02:54 +000013930 $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 +000013931
13932 # Both c and cxx compiler support -rpath directly
13933 hardcode_libdir_flag_spec='-rpath $libdir'
13934 fi
13935 archive_cmds_need_lc='no'
13936 hardcode_libdir_separator=:
13937 ;;
13938
13939 solaris*)
13940 no_undefined_flag=' -z defs'
13941 if test "$GCC" = yes; then
13942 wlarc='${wl}'
13943 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13944 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13945 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13946 else
13947 case `$CC -V 2>&1` in
13948 *"Compilers 5.0"*)
13949 wlarc=''
13950 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13951 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13952 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13953 ;;
13954 *)
13955 wlarc='${wl}'
13956 archive_cmds='$CC -G${allow_undefined_flag} -h $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 -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13959 ;;
13960 esac
13961 fi
13962 hardcode_libdir_flag_spec='-R$libdir'
13963 hardcode_shlibpath_var=no
13964 case $host_os in
13965 solaris2.[0-5] | solaris2.[0-5].*) ;;
13966 *)
13967 # The compiler driver will combine and reorder linker options,
13968 # but understands `-z linker_flag'. GCC discards it without `$wl',
13969 # but is careful enough not to reorder.
13970 # Supported since Solaris 2.6 (maybe 2.5.1?)
13971 if test "$GCC" = yes; then
13972 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13973 else
13974 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13975 fi
13976 ;;
13977 esac
13978 link_all_deplibs=yes
13979 ;;
13980
13981 sunos4*)
13982 if test "x$host_vendor" = xsequent; then
13983 # Use $CC to link under sequent, because it throws in some extra .o
13984 # files that make .init and .fini sections work.
13985 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13986 else
13987 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13988 fi
13989 hardcode_libdir_flag_spec='-L$libdir'
13990 hardcode_direct=yes
13991 hardcode_minus_L=yes
13992 hardcode_shlibpath_var=no
13993 ;;
13994
13995 sysv4)
13996 case $host_vendor in
13997 sni)
13998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13999 hardcode_direct=yes # is this really true???
14000 ;;
14001 siemens)
14002 ## LD is ld it makes a PLAMLIB
14003 ## CC just makes a GrossModule.
14004 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14005 reload_cmds='$CC -r -o $output$reload_objs'
14006 hardcode_direct=no
14007 ;;
14008 motorola)
14009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14010 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14011 ;;
14012 esac
14013 runpath_var='LD_RUN_PATH'
14014 hardcode_shlibpath_var=no
14015 ;;
14016
14017 sysv4.3*)
14018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14019 hardcode_shlibpath_var=no
14020 export_dynamic_flag_spec='-Bexport'
14021 ;;
14022
14023 sysv4*MP*)
14024 if test -d /usr/nec; then
14025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14026 hardcode_shlibpath_var=no
14027 runpath_var=LD_RUN_PATH
14028 hardcode_runpath_var=yes
14029 ld_shlibs=yes
14030 fi
14031 ;;
14032
14033 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14034 no_undefined_flag='${wl}-z,text'
14035 archive_cmds_need_lc=no
14036 hardcode_shlibpath_var=no
14037 runpath_var='LD_RUN_PATH'
14038
14039 if test "$GCC" = yes; then
14040 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14041 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14042 else
14043 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14044 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14045 fi
14046 ;;
14047
14048 sysv5* | sco3.2v5* | sco5v6*)
14049 # Note: We can NOT use -z defs as we might desire, because we do not
14050 # link with -lc, and that would cause any symbols used from libc to
14051 # always be unresolved, which means just about no library would
14052 # ever link correctly. If we're not using GNU ld we use -z text
14053 # though, which does catch some bad symbols but isn't as heavy-handed
14054 # as -z defs.
14055 no_undefined_flag='${wl}-z,text'
14056 allow_undefined_flag='${wl}-z,nodefs'
14057 archive_cmds_need_lc=no
14058 hardcode_shlibpath_var=no
14059 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14060 hardcode_libdir_separator=':'
14061 link_all_deplibs=yes
14062 export_dynamic_flag_spec='${wl}-Bexport'
14063 runpath_var='LD_RUN_PATH'
14064
14065 if test "$GCC" = yes; then
14066 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14067 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14068 else
14069 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14070 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14071 fi
14072 ;;
14073
14074 uts4*)
14075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14076 hardcode_libdir_flag_spec='-L$libdir'
14077 hardcode_shlibpath_var=no
14078 ;;
14079
14080 *)
14081 ld_shlibs=no
14082 ;;
14083 esac
14084
14085 if test x$host_vendor = xsni; then
14086 case $host in
14087 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14088 export_dynamic_flag_spec='${wl}-Blargedynsym'
14089 ;;
14090 esac
14091 fi
14092 fi
14093
cristy8b350f62009-11-15 23:12:43 +000014094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014095$as_echo "$ld_shlibs" >&6; }
14096test "$ld_shlibs" = no && can_build_shared=no
14097
14098with_gnu_ld=$with_gnu_ld
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114#
14115# Do we need to explicitly link libc?
14116#
14117case "x$archive_cmds_need_lc" in
14118x|xyes)
14119 # Assume -lc should be added
14120 archive_cmds_need_lc=yes
14121
14122 if test "$enable_shared" = yes && test "$GCC" = yes; then
14123 case $archive_cmds in
14124 *'~'*)
14125 # FIXME: we may have to deal with multi-command sequences.
14126 ;;
14127 '$CC '*)
14128 # Test whether the compiler implicitly links with -lc since on some
14129 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14130 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000014131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000014132$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy232a9ab2010-06-26 01:02:54 +000014133if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
14134 $as_echo_n "(cached) " >&6
14135else
14136 $RM conftest*
14137 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014138
cristy232a9ab2010-06-26 01:02:54 +000014139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014140 (eval $ac_compile) 2>&5
14141 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14143 test $ac_status = 0; } 2>conftest.err; then
cristy232a9ab2010-06-26 01:02:54 +000014144 soname=conftest
14145 lib=conftest
14146 libobjs=conftest.$ac_objext
14147 deplibs=
14148 wl=$lt_prog_compiler_wl
14149 pic_flag=$lt_prog_compiler_pic
14150 compiler_flags=-v
14151 linker_flags=-v
14152 verstring=
14153 output_objdir=.
14154 libname=conftest
14155 lt_save_allow_undefined_flag=$allow_undefined_flag
14156 allow_undefined_flag=
14157 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 +000014158 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14159 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14161 test $ac_status = 0; }
cristy232a9ab2010-06-26 01:02:54 +000014162 then
14163 lt_cv_archive_cmds_need_lc=no
14164 else
14165 lt_cv_archive_cmds_need_lc=yes
14166 fi
14167 allow_undefined_flag=$lt_save_allow_undefined_flag
14168 else
14169 cat conftest.err 1>&5
14170 fi
14171 $RM conftest*
14172
14173fi
14174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14175$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14176 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy3ed852e2009-09-05 21:47:34 +000014177 ;;
14178 esac
14179 fi
14180 ;;
14181esac
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
cristy8b350f62009-11-15 23:12:43 +000014339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000014340$as_echo_n "checking dynamic linker characteristics... " >&6; }
14341
14342if test "$GCC" = yes; then
14343 case $host_os in
14344 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14345 *) lt_awk_arg="/^libraries:/" ;;
14346 esac
cristy232a9ab2010-06-26 01:02:54 +000014347 case $host_os in
14348 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14349 *) lt_sed_strip_eq="s,=/,/,g" ;;
14350 esac
14351 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14352 case $lt_search_path_spec in
14353 *\;*)
cristy3ed852e2009-09-05 21:47:34 +000014354 # if the path contains ";" then we assume it to be the separator
14355 # otherwise default to the standard path separator (i.e. ":") - it is
14356 # assumed that no part of a normal pathname contains ";" but that should
14357 # okay in the real world where ";" in dirpaths is itself problematic.
cristy232a9ab2010-06-26 01:02:54 +000014358 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14359 ;;
14360 *)
14361 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14362 ;;
14363 esac
cristy3ed852e2009-09-05 21:47:34 +000014364 # Ok, now we have the path, separated by spaces, we can step through it
14365 # and add multilib dir if necessary.
14366 lt_tmp_lt_search_path_spec=
14367 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14368 for lt_sys_path in $lt_search_path_spec; do
14369 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14370 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14371 else
14372 test -d "$lt_sys_path" && \
14373 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14374 fi
14375 done
cristy232a9ab2010-06-26 01:02:54 +000014376 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy3ed852e2009-09-05 21:47:34 +000014377BEGIN {RS=" "; FS="/|\n";} {
14378 lt_foo="";
14379 lt_count=0;
14380 for (lt_i = NF; lt_i > 0; lt_i--) {
14381 if ($lt_i != "" && $lt_i != ".") {
14382 if ($lt_i == "..") {
14383 lt_count++;
14384 } else {
14385 if (lt_count == 0) {
14386 lt_foo="/" $lt_i lt_foo;
14387 } else {
14388 lt_count--;
14389 }
14390 }
14391 }
14392 }
14393 if (lt_foo != "") { lt_freq[lt_foo]++; }
14394 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14395}'`
cristy232a9ab2010-06-26 01:02:54 +000014396 # AWK program above erroneously prepends '/' to C:/dos/paths
14397 # for these hosts.
14398 case $host_os in
14399 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14400 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14401 esac
14402 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy3ed852e2009-09-05 21:47:34 +000014403else
14404 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14405fi
14406library_names_spec=
14407libname_spec='lib$name'
14408soname_spec=
14409shrext_cmds=".so"
14410postinstall_cmds=
14411postuninstall_cmds=
14412finish_cmds=
14413finish_eval=
14414shlibpath_var=
14415shlibpath_overrides_runpath=unknown
14416version_type=none
14417dynamic_linker="$host_os ld.so"
14418sys_lib_dlsearch_path_spec="/lib /usr/lib"
14419need_lib_prefix=unknown
14420hardcode_into_libs=no
14421
14422# when you set need_version to no, make sure it does not cause -set_version
14423# flags to be left without arguments
14424need_version=unknown
14425
14426case $host_os in
14427aix3*)
14428 version_type=linux
14429 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14430 shlibpath_var=LIBPATH
14431
14432 # AIX 3 has no versioning support, so we append a major version to the name.
14433 soname_spec='${libname}${release}${shared_ext}$major'
14434 ;;
14435
14436aix[4-9]*)
14437 version_type=linux
14438 need_lib_prefix=no
14439 need_version=no
14440 hardcode_into_libs=yes
14441 if test "$host_cpu" = ia64; then
14442 # AIX 5 supports IA64
14443 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14444 shlibpath_var=LD_LIBRARY_PATH
14445 else
14446 # With GCC up to 2.95.x, collect2 would create an import file
14447 # for dependence libraries. The import file would start with
14448 # the line `#! .'. This would cause the generated library to
14449 # depend on `.', always an invalid library. This was fixed in
14450 # development snapshots of GCC prior to 3.0.
14451 case $host_os in
14452 aix4 | aix4.[01] | aix4.[01].*)
14453 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14454 echo ' yes '
14455 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14456 :
14457 else
14458 can_build_shared=no
14459 fi
14460 ;;
14461 esac
14462 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14463 # soname into executable. Probably we can add versioning support to
14464 # collect2, so additional links can be useful in future.
14465 if test "$aix_use_runtimelinking" = yes; then
14466 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14467 # instead of lib<name>.a to let people know that these are not
14468 # typical AIX shared libraries.
14469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14470 else
14471 # We preserve .a as extension for shared libraries through AIX4.2
14472 # and later when we are not doing run time linking.
14473 library_names_spec='${libname}${release}.a $libname.a'
14474 soname_spec='${libname}${release}${shared_ext}$major'
14475 fi
14476 shlibpath_var=LIBPATH
14477 fi
14478 ;;
14479
14480amigaos*)
14481 case $host_cpu in
14482 powerpc)
14483 # Since July 2007 AmigaOS4 officially supports .so libraries.
14484 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14486 ;;
14487 m68k)
14488 library_names_spec='$libname.ixlibrary $libname.a'
14489 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy232a9ab2010-06-26 01:02:54 +000014490 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 +000014491 ;;
14492 esac
14493 ;;
14494
14495beos*)
14496 library_names_spec='${libname}${shared_ext}'
14497 dynamic_linker="$host_os ld.so"
14498 shlibpath_var=LIBRARY_PATH
14499 ;;
14500
14501bsdi[45]*)
14502 version_type=linux
14503 need_version=no
14504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14505 soname_spec='${libname}${release}${shared_ext}$major'
14506 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14507 shlibpath_var=LD_LIBRARY_PATH
14508 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14509 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14510 # the default ld.so.conf also contains /usr/contrib/lib and
14511 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14512 # libtool to hard-code these into programs
14513 ;;
14514
14515cygwin* | mingw* | pw32* | cegcc*)
14516 version_type=windows
14517 shrext_cmds=".dll"
14518 need_version=no
14519 need_lib_prefix=no
14520
14521 case $GCC,$host_os in
14522 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14523 library_names_spec='$libname.dll.a'
14524 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14525 postinstall_cmds='base_file=`basename \${file}`~
14526 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14527 dldir=$destdir/`dirname \$dlpath`~
14528 test -d \$dldir || mkdir -p \$dldir~
14529 $install_prog $dir/$dlname \$dldir/$dlname~
14530 chmod a+x \$dldir/$dlname~
14531 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14532 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14533 fi'
14534 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14535 dlpath=$dir/\$dldll~
14536 $RM \$dlpath'
14537 shlibpath_overrides_runpath=yes
14538
14539 case $host_os in
14540 cygwin*)
14541 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14542 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy232a9ab2010-06-26 01:02:54 +000014543
14544 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy3ed852e2009-09-05 21:47:34 +000014545 ;;
14546 mingw* | cegcc*)
14547 # MinGW DLLs use traditional 'lib' prefix
14548 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy3ed852e2009-09-05 21:47:34 +000014549 ;;
14550 pw32*)
14551 # pw32 DLLs use 'pw' prefix rather than 'lib'
14552 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14553 ;;
14554 esac
14555 ;;
14556
14557 *)
14558 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14559 ;;
14560 esac
14561 dynamic_linker='Win32 ld.exe'
14562 # FIXME: first we should search . and the directory the executable is in
14563 shlibpath_var=PATH
14564 ;;
14565
14566darwin* | rhapsody*)
14567 dynamic_linker="$host_os dyld"
14568 version_type=darwin
14569 need_lib_prefix=no
14570 need_version=no
14571 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14572 soname_spec='${libname}${release}${major}$shared_ext'
14573 shlibpath_overrides_runpath=yes
14574 shlibpath_var=DYLD_LIBRARY_PATH
14575 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14576
14577 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14578 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14579 ;;
14580
14581dgux*)
14582 version_type=linux
14583 need_lib_prefix=no
14584 need_version=no
14585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14586 soname_spec='${libname}${release}${shared_ext}$major'
14587 shlibpath_var=LD_LIBRARY_PATH
14588 ;;
14589
14590freebsd1*)
14591 dynamic_linker=no
14592 ;;
14593
14594freebsd* | dragonfly*)
14595 # DragonFly does not have aout. When/if they implement a new
14596 # versioning mechanism, adjust this.
14597 if test -x /usr/bin/objformat; then
14598 objformat=`/usr/bin/objformat`
14599 else
14600 case $host_os in
14601 freebsd[123]*) objformat=aout ;;
14602 *) objformat=elf ;;
14603 esac
14604 fi
14605 version_type=freebsd-$objformat
14606 case $version_type in
14607 freebsd-elf*)
14608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14609 need_version=no
14610 need_lib_prefix=no
14611 ;;
14612 freebsd-*)
14613 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14614 need_version=yes
14615 ;;
14616 esac
14617 shlibpath_var=LD_LIBRARY_PATH
14618 case $host_os in
14619 freebsd2*)
14620 shlibpath_overrides_runpath=yes
14621 ;;
14622 freebsd3.[01]* | freebsdelf3.[01]*)
14623 shlibpath_overrides_runpath=yes
14624 hardcode_into_libs=yes
14625 ;;
14626 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14627 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14628 shlibpath_overrides_runpath=no
14629 hardcode_into_libs=yes
14630 ;;
14631 *) # from 4.6 on, and DragonFly
14632 shlibpath_overrides_runpath=yes
14633 hardcode_into_libs=yes
14634 ;;
14635 esac
14636 ;;
14637
14638gnu*)
14639 version_type=linux
14640 need_lib_prefix=no
14641 need_version=no
14642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14643 soname_spec='${libname}${release}${shared_ext}$major'
14644 shlibpath_var=LD_LIBRARY_PATH
14645 hardcode_into_libs=yes
14646 ;;
14647
cristy232a9ab2010-06-26 01:02:54 +000014648haiku*)
14649 version_type=linux
14650 need_lib_prefix=no
14651 need_version=no
14652 dynamic_linker="$host_os runtime_loader"
14653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14654 soname_spec='${libname}${release}${shared_ext}$major'
14655 shlibpath_var=LIBRARY_PATH
14656 shlibpath_overrides_runpath=yes
14657 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14658 hardcode_into_libs=yes
14659 ;;
14660
cristy3ed852e2009-09-05 21:47:34 +000014661hpux9* | hpux10* | hpux11*)
14662 # Give a soname corresponding to the major version so that dld.sl refuses to
14663 # link against other versions.
14664 version_type=sunos
14665 need_lib_prefix=no
14666 need_version=no
14667 case $host_cpu in
14668 ia64*)
14669 shrext_cmds='.so'
14670 hardcode_into_libs=yes
14671 dynamic_linker="$host_os dld.so"
14672 shlibpath_var=LD_LIBRARY_PATH
14673 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14675 soname_spec='${libname}${release}${shared_ext}$major'
14676 if test "X$HPUX_IA64_MODE" = X32; then
14677 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14678 else
14679 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14680 fi
14681 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14682 ;;
14683 hppa*64*)
14684 shrext_cmds='.sl'
14685 hardcode_into_libs=yes
14686 dynamic_linker="$host_os dld.sl"
14687 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14688 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14690 soname_spec='${libname}${release}${shared_ext}$major'
14691 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14692 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14693 ;;
14694 *)
14695 shrext_cmds='.sl'
14696 dynamic_linker="$host_os dld.sl"
14697 shlibpath_var=SHLIB_PATH
14698 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14700 soname_spec='${libname}${release}${shared_ext}$major'
14701 ;;
14702 esac
cristy232a9ab2010-06-26 01:02:54 +000014703 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy3ed852e2009-09-05 21:47:34 +000014704 postinstall_cmds='chmod 555 $lib'
cristy232a9ab2010-06-26 01:02:54 +000014705 # or fails outright, so override atomically:
14706 install_override_mode=555
cristy3ed852e2009-09-05 21:47:34 +000014707 ;;
14708
14709interix[3-9]*)
14710 version_type=linux
14711 need_lib_prefix=no
14712 need_version=no
14713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14714 soname_spec='${libname}${release}${shared_ext}$major'
14715 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14716 shlibpath_var=LD_LIBRARY_PATH
14717 shlibpath_overrides_runpath=no
14718 hardcode_into_libs=yes
14719 ;;
14720
14721irix5* | irix6* | nonstopux*)
14722 case $host_os in
14723 nonstopux*) version_type=nonstopux ;;
14724 *)
14725 if test "$lt_cv_prog_gnu_ld" = yes; then
14726 version_type=linux
14727 else
14728 version_type=irix
14729 fi ;;
14730 esac
14731 need_lib_prefix=no
14732 need_version=no
14733 soname_spec='${libname}${release}${shared_ext}$major'
14734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14735 case $host_os in
14736 irix5* | nonstopux*)
14737 libsuff= shlibsuff=
14738 ;;
14739 *)
14740 case $LD in # libtool.m4 will add one of these switches to LD
14741 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14742 libsuff= shlibsuff= libmagic=32-bit;;
14743 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14744 libsuff=32 shlibsuff=N32 libmagic=N32;;
14745 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14746 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14747 *) libsuff= shlibsuff= libmagic=never-match;;
14748 esac
14749 ;;
14750 esac
14751 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14752 shlibpath_overrides_runpath=no
14753 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14754 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14755 hardcode_into_libs=yes
14756 ;;
14757
14758# No shared lib support for Linux oldld, aout, or coff.
14759linux*oldld* | linux*aout* | linux*coff*)
14760 dynamic_linker=no
14761 ;;
14762
14763# This must be Linux ELF.
cristy232a9ab2010-06-26 01:02:54 +000014764linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000014765 version_type=linux
14766 need_lib_prefix=no
14767 need_version=no
14768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14769 soname_spec='${libname}${release}${shared_ext}$major'
14770 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14771 shlibpath_var=LD_LIBRARY_PATH
14772 shlibpath_overrides_runpath=no
cristy232a9ab2010-06-26 01:02:54 +000014773
cristy3ed852e2009-09-05 21:47:34 +000014774 # Some binutils ld are patched to set DT_RUNPATH
cristy232a9ab2010-06-26 01:02:54 +000014775 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14776 $as_echo_n "(cached) " >&6
14777else
14778 lt_cv_shlibpath_overrides_runpath=no
14779 save_LDFLAGS=$LDFLAGS
14780 save_libdir=$libdir
14781 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14782 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014784/* end confdefs.h. */
14785
14786int
14787main ()
14788{
14789
14790 ;
14791 return 0;
14792}
14793_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014794if ac_fn_c_try_link "$LINENO"; then :
14795 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy232a9ab2010-06-26 01:02:54 +000014796 lt_cv_shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000014797fi
cristy3ed852e2009-09-05 21:47:34 +000014798fi
cristy8b350f62009-11-15 23:12:43 +000014799rm -f core conftest.err conftest.$ac_objext \
14800 conftest$ac_exeext conftest.$ac_ext
cristy232a9ab2010-06-26 01:02:54 +000014801 LDFLAGS=$save_LDFLAGS
14802 libdir=$save_libdir
14803
14804fi
14805
14806 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy3ed852e2009-09-05 21:47:34 +000014807
14808 # This implies no fast_install, which is unacceptable.
14809 # Some rework will be needed to allow for fast_install
14810 # before this can be enabled.
14811 hardcode_into_libs=yes
14812
cristy679ed8e2009-12-05 02:37:41 +000014813 # Add ABI-specific directories to the system library path.
14814 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14815
cristy3ed852e2009-09-05 21:47:34 +000014816 # Append ld.so.conf contents to the search path
14817 if test -f /etc/ld.so.conf; then
cristy232a9ab2010-06-26 01:02:54 +000014818 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 +000014819 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy232a9ab2010-06-26 01:02:54 +000014820
cristy3ed852e2009-09-05 21:47:34 +000014821 fi
14822
14823 # We used to test for /lib/ld.so.1 and disable shared libraries on
14824 # powerpc, because MkLinux only supported shared libraries with the
14825 # GNU dynamic linker. Since this was broken with cross compilers,
14826 # most powerpc-linux boxes support dynamic linking these days and
14827 # people can always --disable-shared, the test was removed, and we
14828 # assume the GNU/Linux dynamic linker is in use.
14829 dynamic_linker='GNU/Linux ld.so'
14830 ;;
14831
14832netbsd*)
14833 version_type=sunos
14834 need_lib_prefix=no
14835 need_version=no
14836 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14839 dynamic_linker='NetBSD (a.out) ld.so'
14840 else
14841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14842 soname_spec='${libname}${release}${shared_ext}$major'
14843 dynamic_linker='NetBSD ld.elf_so'
14844 fi
14845 shlibpath_var=LD_LIBRARY_PATH
14846 shlibpath_overrides_runpath=yes
14847 hardcode_into_libs=yes
14848 ;;
14849
14850newsos6)
14851 version_type=linux
14852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14853 shlibpath_var=LD_LIBRARY_PATH
14854 shlibpath_overrides_runpath=yes
14855 ;;
14856
14857*nto* | *qnx*)
14858 version_type=qnx
14859 need_lib_prefix=no
14860 need_version=no
14861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14862 soname_spec='${libname}${release}${shared_ext}$major'
14863 shlibpath_var=LD_LIBRARY_PATH
14864 shlibpath_overrides_runpath=no
14865 hardcode_into_libs=yes
14866 dynamic_linker='ldqnx.so'
14867 ;;
14868
14869openbsd*)
14870 version_type=sunos
14871 sys_lib_dlsearch_path_spec="/usr/lib"
14872 need_lib_prefix=no
14873 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14874 case $host_os in
14875 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14876 *) need_version=no ;;
14877 esac
14878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14879 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14880 shlibpath_var=LD_LIBRARY_PATH
14881 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14882 case $host_os in
14883 openbsd2.[89] | openbsd2.[89].*)
14884 shlibpath_overrides_runpath=no
14885 ;;
14886 *)
14887 shlibpath_overrides_runpath=yes
14888 ;;
14889 esac
14890 else
14891 shlibpath_overrides_runpath=yes
14892 fi
14893 ;;
14894
14895os2*)
14896 libname_spec='$name'
14897 shrext_cmds=".dll"
14898 need_lib_prefix=no
14899 library_names_spec='$libname${shared_ext} $libname.a'
14900 dynamic_linker='OS/2 ld.exe'
14901 shlibpath_var=LIBPATH
14902 ;;
14903
14904osf3* | osf4* | osf5*)
14905 version_type=osf
14906 need_lib_prefix=no
14907 need_version=no
14908 soname_spec='${libname}${release}${shared_ext}$major'
14909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14910 shlibpath_var=LD_LIBRARY_PATH
14911 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14912 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14913 ;;
14914
14915rdos*)
14916 dynamic_linker=no
14917 ;;
14918
14919solaris*)
14920 version_type=linux
14921 need_lib_prefix=no
14922 need_version=no
14923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14924 soname_spec='${libname}${release}${shared_ext}$major'
14925 shlibpath_var=LD_LIBRARY_PATH
14926 shlibpath_overrides_runpath=yes
14927 hardcode_into_libs=yes
14928 # ldd complains unless libraries are executable
14929 postinstall_cmds='chmod +x $lib'
14930 ;;
14931
14932sunos4*)
14933 version_type=sunos
14934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14935 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14936 shlibpath_var=LD_LIBRARY_PATH
14937 shlibpath_overrides_runpath=yes
14938 if test "$with_gnu_ld" = yes; then
14939 need_lib_prefix=no
14940 fi
14941 need_version=yes
14942 ;;
14943
14944sysv4 | sysv4.3*)
14945 version_type=linux
14946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14947 soname_spec='${libname}${release}${shared_ext}$major'
14948 shlibpath_var=LD_LIBRARY_PATH
14949 case $host_vendor in
14950 sni)
14951 shlibpath_overrides_runpath=no
14952 need_lib_prefix=no
14953 runpath_var=LD_RUN_PATH
14954 ;;
14955 siemens)
14956 need_lib_prefix=no
14957 ;;
14958 motorola)
14959 need_lib_prefix=no
14960 need_version=no
14961 shlibpath_overrides_runpath=no
14962 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14963 ;;
14964 esac
14965 ;;
14966
14967sysv4*MP*)
14968 if test -d /usr/nec ;then
14969 version_type=linux
14970 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14971 soname_spec='$libname${shared_ext}.$major'
14972 shlibpath_var=LD_LIBRARY_PATH
14973 fi
14974 ;;
14975
14976sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14977 version_type=freebsd-elf
14978 need_lib_prefix=no
14979 need_version=no
14980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14981 soname_spec='${libname}${release}${shared_ext}$major'
14982 shlibpath_var=LD_LIBRARY_PATH
14983 shlibpath_overrides_runpath=yes
14984 hardcode_into_libs=yes
14985 if test "$with_gnu_ld" = yes; then
14986 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14987 else
14988 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14989 case $host_os in
14990 sco3.2v5*)
14991 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14992 ;;
14993 esac
14994 fi
14995 sys_lib_dlsearch_path_spec='/usr/lib'
14996 ;;
14997
14998tpf*)
14999 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15000 version_type=linux
15001 need_lib_prefix=no
15002 need_version=no
15003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15004 shlibpath_var=LD_LIBRARY_PATH
15005 shlibpath_overrides_runpath=no
15006 hardcode_into_libs=yes
15007 ;;
15008
15009uts4*)
15010 version_type=linux
15011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15012 soname_spec='${libname}${release}${shared_ext}$major'
15013 shlibpath_var=LD_LIBRARY_PATH
15014 ;;
15015
15016*)
15017 dynamic_linker=no
15018 ;;
15019esac
cristy8b350f62009-11-15 23:12:43 +000015020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000015021$as_echo "$dynamic_linker" >&6; }
15022test "$dynamic_linker" = no && can_build_shared=no
15023
15024variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15025if test "$GCC" = yes; then
15026 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15027fi
15028
15029if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15030 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15031fi
15032if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15033 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15034fi
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
cristy232a9ab2010-06-26 01:02:54 +000015122
15123
15124
15125
15126
cristy8b350f62009-11-15 23:12:43 +000015127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000015128$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15129hardcode_action=
15130if test -n "$hardcode_libdir_flag_spec" ||
15131 test -n "$runpath_var" ||
15132 test "X$hardcode_automatic" = "Xyes" ; then
15133
15134 # We can hardcode non-existent directories.
15135 if test "$hardcode_direct" != no &&
15136 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15137 # have to relink, otherwise we might link with an installed library
15138 # when we should be linking with a yet-to-be-installed one
15139 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15140 test "$hardcode_minus_L" != no; then
15141 # Linking always hardcodes the temporary library directory.
15142 hardcode_action=relink
15143 else
15144 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15145 hardcode_action=immediate
15146 fi
15147else
15148 # We cannot hardcode anything, or else we can only hardcode existing
15149 # directories.
15150 hardcode_action=unsupported
15151fi
cristy8b350f62009-11-15 23:12:43 +000015152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000015153$as_echo "$hardcode_action" >&6; }
15154
15155if test "$hardcode_action" = relink ||
15156 test "$inherit_rpath" = yes; then
15157 # Fast installation is not supported
15158 enable_fast_install=no
15159elif test "$shlibpath_overrides_runpath" = yes ||
15160 test "$enable_shared" = no; then
15161 # Fast installation is not necessary
15162 enable_fast_install=needless
15163fi
15164
15165
15166
15167
15168
15169
15170 if test "x$enable_dlopen" != xyes; then
15171 enable_dlopen=unknown
15172 enable_dlopen_self=unknown
15173 enable_dlopen_self_static=unknown
15174else
15175 lt_cv_dlopen=no
15176 lt_cv_dlopen_libs=
15177
15178 case $host_os in
15179 beos*)
15180 lt_cv_dlopen="load_add_on"
15181 lt_cv_dlopen_libs=
15182 lt_cv_dlopen_self=yes
15183 ;;
15184
15185 mingw* | pw32* | cegcc*)
15186 lt_cv_dlopen="LoadLibrary"
15187 lt_cv_dlopen_libs=
15188 ;;
15189
15190 cygwin*)
15191 lt_cv_dlopen="dlopen"
15192 lt_cv_dlopen_libs=
15193 ;;
15194
15195 darwin*)
15196 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000015197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015198$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015199if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015200 $as_echo_n "(cached) " >&6
15201else
15202 ac_check_lib_save_LIBS=$LIBS
15203LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015205/* end confdefs.h. */
15206
15207/* Override any GCC internal prototype to avoid an error.
15208 Use char because int might match the return type of a GCC
15209 builtin and then its argument prototype would still apply. */
15210#ifdef __cplusplus
15211extern "C"
15212#endif
15213char dlopen ();
15214int
15215main ()
15216{
15217return dlopen ();
15218 ;
15219 return 0;
15220}
15221_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015222if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015223 ac_cv_lib_dl_dlopen=yes
15224else
cristy8b350f62009-11-15 23:12:43 +000015225 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015226fi
cristy8b350f62009-11-15 23:12:43 +000015227rm -f core conftest.err conftest.$ac_objext \
15228 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015229LIBS=$ac_check_lib_save_LIBS
15230fi
cristy8b350f62009-11-15 23:12:43 +000015231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015232$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015233if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015234 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15235else
15236
15237 lt_cv_dlopen="dyld"
15238 lt_cv_dlopen_libs=
15239 lt_cv_dlopen_self=yes
15240
15241fi
15242
15243 ;;
15244
15245 *)
cristy8b350f62009-11-15 23:12:43 +000015246 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15247if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015248 lt_cv_dlopen="shl_load"
15249else
cristy8b350f62009-11-15 23:12:43 +000015250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015251$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015252if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015253 $as_echo_n "(cached) " >&6
15254else
15255 ac_check_lib_save_LIBS=$LIBS
15256LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015258/* end confdefs.h. */
15259
15260/* Override any GCC internal prototype to avoid an error.
15261 Use char because int might match the return type of a GCC
15262 builtin and then its argument prototype would still apply. */
15263#ifdef __cplusplus
15264extern "C"
15265#endif
15266char shl_load ();
15267int
15268main ()
15269{
15270return shl_load ();
15271 ;
15272 return 0;
15273}
15274_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015275if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015276 ac_cv_lib_dld_shl_load=yes
15277else
cristy8b350f62009-11-15 23:12:43 +000015278 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000015279fi
cristy8b350f62009-11-15 23:12:43 +000015280rm -f core conftest.err conftest.$ac_objext \
15281 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015282LIBS=$ac_check_lib_save_LIBS
15283fi
cristy8b350f62009-11-15 23:12:43 +000015284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000015285$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015286if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015287 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15288else
cristy8b350f62009-11-15 23:12:43 +000015289 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15290if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015291 lt_cv_dlopen="dlopen"
15292else
cristy8b350f62009-11-15 23:12:43 +000015293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015294$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015295if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015296 $as_echo_n "(cached) " >&6
15297else
15298 ac_check_lib_save_LIBS=$LIBS
15299LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015301/* end confdefs.h. */
15302
15303/* Override any GCC internal prototype to avoid an error.
15304 Use char because int might match the return type of a GCC
15305 builtin and then its argument prototype would still apply. */
15306#ifdef __cplusplus
15307extern "C"
15308#endif
15309char dlopen ();
15310int
15311main ()
15312{
15313return dlopen ();
15314 ;
15315 return 0;
15316}
15317_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015318if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015319 ac_cv_lib_dl_dlopen=yes
15320else
cristy8b350f62009-11-15 23:12:43 +000015321 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015322fi
cristy8b350f62009-11-15 23:12:43 +000015323rm -f core conftest.err conftest.$ac_objext \
15324 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015325LIBS=$ac_check_lib_save_LIBS
15326fi
cristy8b350f62009-11-15 23:12:43 +000015327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015328$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015329if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015330 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15331else
cristy8b350f62009-11-15 23:12:43 +000015332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015333$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015334if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015335 $as_echo_n "(cached) " >&6
15336else
15337 ac_check_lib_save_LIBS=$LIBS
15338LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015340/* end confdefs.h. */
15341
15342/* Override any GCC internal prototype to avoid an error.
15343 Use char because int might match the return type of a GCC
15344 builtin and then its argument prototype would still apply. */
15345#ifdef __cplusplus
15346extern "C"
15347#endif
15348char dlopen ();
15349int
15350main ()
15351{
15352return dlopen ();
15353 ;
15354 return 0;
15355}
15356_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015357if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015358 ac_cv_lib_svld_dlopen=yes
15359else
cristy8b350f62009-11-15 23:12:43 +000015360 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015361fi
cristy8b350f62009-11-15 23:12:43 +000015362rm -f core conftest.err conftest.$ac_objext \
15363 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015364LIBS=$ac_check_lib_save_LIBS
15365fi
cristy8b350f62009-11-15 23:12:43 +000015366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015367$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015368if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015369 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15370else
cristy8b350f62009-11-15 23:12:43 +000015371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015372$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015373if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015374 $as_echo_n "(cached) " >&6
15375else
15376 ac_check_lib_save_LIBS=$LIBS
15377LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015379/* end confdefs.h. */
15380
15381/* Override any GCC internal prototype to avoid an error.
15382 Use char because int might match the return type of a GCC
15383 builtin and then its argument prototype would still apply. */
15384#ifdef __cplusplus
15385extern "C"
15386#endif
15387char dld_link ();
15388int
15389main ()
15390{
15391return dld_link ();
15392 ;
15393 return 0;
15394}
15395_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015396if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015397 ac_cv_lib_dld_dld_link=yes
15398else
cristy8b350f62009-11-15 23:12:43 +000015399 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000015400fi
cristy8b350f62009-11-15 23:12:43 +000015401rm -f core conftest.err conftest.$ac_objext \
15402 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015403LIBS=$ac_check_lib_save_LIBS
15404fi
cristy8b350f62009-11-15 23:12:43 +000015405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000015406$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015407if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015408 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15409fi
15410
15411
15412fi
15413
15414
15415fi
15416
15417
15418fi
15419
15420
15421fi
15422
15423
15424fi
15425
15426 ;;
15427 esac
15428
15429 if test "x$lt_cv_dlopen" != xno; then
15430 enable_dlopen=yes
15431 else
15432 enable_dlopen=no
15433 fi
15434
15435 case $lt_cv_dlopen in
15436 dlopen)
15437 save_CPPFLAGS="$CPPFLAGS"
15438 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15439
15440 save_LDFLAGS="$LDFLAGS"
15441 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15442
15443 save_LIBS="$LIBS"
15444 LIBS="$lt_cv_dlopen_libs $LIBS"
15445
cristy8b350f62009-11-15 23:12:43 +000015446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015447$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015448if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015449 $as_echo_n "(cached) " >&6
15450else
15451 if test "$cross_compiling" = yes; then :
15452 lt_cv_dlopen_self=cross
15453else
15454 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15455 lt_status=$lt_dlunknown
15456 cat > conftest.$ac_ext <<_LT_EOF
cristy232a9ab2010-06-26 01:02:54 +000015457#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000015458#include "confdefs.h"
15459
15460#if HAVE_DLFCN_H
15461#include <dlfcn.h>
15462#endif
15463
15464#include <stdio.h>
15465
15466#ifdef RTLD_GLOBAL
15467# define LT_DLGLOBAL RTLD_GLOBAL
15468#else
15469# ifdef DL_GLOBAL
15470# define LT_DLGLOBAL DL_GLOBAL
15471# else
15472# define LT_DLGLOBAL 0
15473# endif
15474#endif
15475
15476/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15477 find out it does not work in some platform. */
15478#ifndef LT_DLLAZY_OR_NOW
15479# ifdef RTLD_LAZY
15480# define LT_DLLAZY_OR_NOW RTLD_LAZY
15481# else
15482# ifdef DL_LAZY
15483# define LT_DLLAZY_OR_NOW DL_LAZY
15484# else
15485# ifdef RTLD_NOW
15486# define LT_DLLAZY_OR_NOW RTLD_NOW
15487# else
15488# ifdef DL_NOW
15489# define LT_DLLAZY_OR_NOW DL_NOW
15490# else
15491# define LT_DLLAZY_OR_NOW 0
15492# endif
15493# endif
15494# endif
15495# endif
15496#endif
15497
cristy232a9ab2010-06-26 01:02:54 +000015498/* When -fvisbility=hidden is used, assume the code has been annotated
15499 correspondingly for the symbols needed. */
15500#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15501void fnord () __attribute__((visibility("default")));
15502#endif
15503
15504void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000015505int main ()
15506{
15507 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15508 int status = $lt_dlunknown;
15509
15510 if (self)
15511 {
15512 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy232a9ab2010-06-26 01:02:54 +000015513 else
15514 {
15515 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15516 else puts (dlerror ());
15517 }
cristy3ed852e2009-09-05 21:47:34 +000015518 /* dlclose (self); */
15519 }
15520 else
15521 puts (dlerror ());
15522
15523 return status;
15524}
15525_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015527 (eval $ac_link) 2>&5
15528 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15530 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015531 (./conftest; exit; ) >&5 2>/dev/null
15532 lt_status=$?
15533 case x$lt_status in
15534 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15535 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15536 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15537 esac
15538 else :
15539 # compilation failed
15540 lt_cv_dlopen_self=no
15541 fi
15542fi
15543rm -fr conftest*
15544
15545
15546fi
cristy8b350f62009-11-15 23:12:43 +000015547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000015548$as_echo "$lt_cv_dlopen_self" >&6; }
15549
15550 if test "x$lt_cv_dlopen_self" = xyes; then
15551 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000015552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015553$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015554if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015555 $as_echo_n "(cached) " >&6
15556else
15557 if test "$cross_compiling" = yes; then :
15558 lt_cv_dlopen_self_static=cross
15559else
15560 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15561 lt_status=$lt_dlunknown
15562 cat > conftest.$ac_ext <<_LT_EOF
cristy232a9ab2010-06-26 01:02:54 +000015563#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000015564#include "confdefs.h"
15565
15566#if HAVE_DLFCN_H
15567#include <dlfcn.h>
15568#endif
15569
15570#include <stdio.h>
15571
15572#ifdef RTLD_GLOBAL
15573# define LT_DLGLOBAL RTLD_GLOBAL
15574#else
15575# ifdef DL_GLOBAL
15576# define LT_DLGLOBAL DL_GLOBAL
15577# else
15578# define LT_DLGLOBAL 0
15579# endif
15580#endif
15581
15582/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15583 find out it does not work in some platform. */
15584#ifndef LT_DLLAZY_OR_NOW
15585# ifdef RTLD_LAZY
15586# define LT_DLLAZY_OR_NOW RTLD_LAZY
15587# else
15588# ifdef DL_LAZY
15589# define LT_DLLAZY_OR_NOW DL_LAZY
15590# else
15591# ifdef RTLD_NOW
15592# define LT_DLLAZY_OR_NOW RTLD_NOW
15593# else
15594# ifdef DL_NOW
15595# define LT_DLLAZY_OR_NOW DL_NOW
15596# else
15597# define LT_DLLAZY_OR_NOW 0
15598# endif
15599# endif
15600# endif
15601# endif
15602#endif
15603
cristy232a9ab2010-06-26 01:02:54 +000015604/* When -fvisbility=hidden is used, assume the code has been annotated
15605 correspondingly for the symbols needed. */
15606#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15607void fnord () __attribute__((visibility("default")));
15608#endif
15609
15610void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000015611int main ()
15612{
15613 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15614 int status = $lt_dlunknown;
15615
15616 if (self)
15617 {
15618 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy232a9ab2010-06-26 01:02:54 +000015619 else
15620 {
15621 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15622 else puts (dlerror ());
15623 }
cristy3ed852e2009-09-05 21:47:34 +000015624 /* dlclose (self); */
15625 }
15626 else
15627 puts (dlerror ());
15628
15629 return status;
15630}
15631_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015633 (eval $ac_link) 2>&5
15634 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15636 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015637 (./conftest; exit; ) >&5 2>/dev/null
15638 lt_status=$?
15639 case x$lt_status in
15640 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15641 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15642 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15643 esac
15644 else :
15645 # compilation failed
15646 lt_cv_dlopen_self_static=no
15647 fi
15648fi
15649rm -fr conftest*
15650
15651
15652fi
cristy8b350f62009-11-15 23:12:43 +000015653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015654$as_echo "$lt_cv_dlopen_self_static" >&6; }
15655 fi
15656
15657 CPPFLAGS="$save_CPPFLAGS"
15658 LDFLAGS="$save_LDFLAGS"
15659 LIBS="$save_LIBS"
15660 ;;
15661 esac
15662
15663 case $lt_cv_dlopen_self in
15664 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15665 *) enable_dlopen_self=unknown ;;
15666 esac
15667
15668 case $lt_cv_dlopen_self_static in
15669 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15670 *) enable_dlopen_self_static=unknown ;;
15671 esac
15672fi
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690striplib=
15691old_striplib=
cristy8b350f62009-11-15 23:12:43 +000015692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000015693$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15694if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15695 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15696 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000015697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015698$as_echo "yes" >&6; }
15699else
15700# FIXME - insert some real tests, host_os isn't really good enough
15701 case $host_os in
15702 darwin*)
15703 if test -n "$STRIP" ; then
15704 striplib="$STRIP -x"
15705 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000015706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015707$as_echo "yes" >&6; }
15708 else
cristy8b350f62009-11-15 23:12:43 +000015709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015710$as_echo "no" >&6; }
15711 fi
15712 ;;
15713 *)
cristy8b350f62009-11-15 23:12:43 +000015714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015715$as_echo "no" >&6; }
15716 ;;
15717 esac
15718fi
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000015732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015733$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015735$as_echo "$can_build_shared" >&6; }
15736
cristy8b350f62009-11-15 23:12:43 +000015737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015738$as_echo_n "checking whether to build shared libraries... " >&6; }
15739 test "$can_build_shared" = "no" && enable_shared=no
15740
15741 # On AIX, shared libraries and static libraries use the same namespace, and
15742 # are all built from PIC.
15743 case $host_os in
15744 aix3*)
15745 test "$enable_shared" = yes && enable_static=no
15746 if test -n "$RANLIB"; then
15747 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15748 postinstall_cmds='$RANLIB $lib'
15749 fi
15750 ;;
15751
15752 aix[4-9]*)
15753 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15754 test "$enable_shared" = yes && enable_static=no
15755 fi
15756 ;;
15757 esac
cristy8b350f62009-11-15 23:12:43 +000015758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015759$as_echo "$enable_shared" >&6; }
15760
cristy8b350f62009-11-15 23:12:43 +000015761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015762$as_echo_n "checking whether to build static libraries... " >&6; }
15763 # Make sure either enable_shared or enable_static is yes.
15764 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000015765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015766$as_echo "$enable_static" >&6; }
15767
15768
15769
15770
15771fi
15772ac_ext=c
15773ac_cpp='$CPP $CPPFLAGS'
15774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15776ac_compiler_gnu=$ac_cv_c_compiler_gnu
15777
15778CC="$lt_save_CC"
15779
cristy232a9ab2010-06-26 01:02:54 +000015780 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15781 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15782 (test "X$CXX" != "Xg++"))) ; then
15783 ac_ext=cpp
15784ac_cpp='$CXXCPP $CPPFLAGS'
15785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15789$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15790if test -z "$CXXCPP"; then
15791 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
15792 $as_echo_n "(cached) " >&6
15793else
15794 # Double quotes because CXXCPP needs to be expanded
15795 for CXXCPP in "$CXX -E" "/lib/cpp"
15796 do
15797 ac_preproc_ok=false
15798for ac_cxx_preproc_warn_flag in '' yes
15799do
15800 # Use a header file that comes with gcc, so configuring glibc
15801 # with a fresh cross-compiler works.
15802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15803 # <limits.h> exists even on freestanding compilers.
15804 # On the NeXT, cc -E runs the code through the compiler's parser,
15805 # not just through cpp. "Syntax error" is here to catch this case.
15806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15807/* end confdefs.h. */
15808#ifdef __STDC__
15809# include <limits.h>
15810#else
15811# include <assert.h>
15812#endif
15813 Syntax error
15814_ACEOF
15815if ac_fn_cxx_try_cpp "$LINENO"; then :
15816
15817else
15818 # Broken: fails on valid input.
15819continue
15820fi
15821rm -f conftest.err conftest.$ac_ext
15822
15823 # OK, works on sane cases. Now check whether nonexistent headers
15824 # can be detected and how.
15825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15826/* end confdefs.h. */
15827#include <ac_nonexistent.h>
15828_ACEOF
15829if ac_fn_cxx_try_cpp "$LINENO"; then :
15830 # Broken: success on invalid input.
15831continue
15832else
15833 # Passes both tests.
15834ac_preproc_ok=:
15835break
15836fi
15837rm -f conftest.err conftest.$ac_ext
15838
15839done
15840# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15841rm -f conftest.err conftest.$ac_ext
15842if $ac_preproc_ok; then :
15843 break
15844fi
15845
15846 done
15847 ac_cv_prog_CXXCPP=$CXXCPP
15848
15849fi
15850 CXXCPP=$ac_cv_prog_CXXCPP
15851else
15852 ac_cv_prog_CXXCPP=$CXXCPP
15853fi
15854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15855$as_echo "$CXXCPP" >&6; }
15856ac_preproc_ok=false
15857for ac_cxx_preproc_warn_flag in '' yes
15858do
15859 # Use a header file that comes with gcc, so configuring glibc
15860 # with a fresh cross-compiler works.
15861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15862 # <limits.h> exists even on freestanding compilers.
15863 # On the NeXT, cc -E runs the code through the compiler's parser,
15864 # not just through cpp. "Syntax error" is here to catch this case.
15865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15866/* end confdefs.h. */
15867#ifdef __STDC__
15868# include <limits.h>
15869#else
15870# include <assert.h>
15871#endif
15872 Syntax error
15873_ACEOF
15874if ac_fn_cxx_try_cpp "$LINENO"; then :
15875
15876else
15877 # Broken: fails on valid input.
15878continue
15879fi
15880rm -f conftest.err conftest.$ac_ext
15881
15882 # OK, works on sane cases. Now check whether nonexistent headers
15883 # can be detected and how.
15884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15885/* end confdefs.h. */
15886#include <ac_nonexistent.h>
15887_ACEOF
15888if ac_fn_cxx_try_cpp "$LINENO"; then :
15889 # Broken: success on invalid input.
15890continue
15891else
15892 # Passes both tests.
15893ac_preproc_ok=:
15894break
15895fi
15896rm -f conftest.err conftest.$ac_ext
15897
15898done
15899# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15900rm -f conftest.err conftest.$ac_ext
15901if $ac_preproc_ok; then :
15902
15903else
15904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +000015906as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15907See \`config.log' for more details" "$LINENO" 5; }
cristy232a9ab2010-06-26 01:02:54 +000015908fi
15909
15910ac_ext=c
15911ac_cpp='$CPP $CPPFLAGS'
15912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15914ac_compiler_gnu=$ac_cv_c_compiler_gnu
15915
15916else
15917 _lt_caught_CXX_error=yes
15918fi
cristy3ed852e2009-09-05 21:47:34 +000015919
15920ac_ext=cpp
15921ac_cpp='$CXXCPP $CPPFLAGS'
15922ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15923ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15924ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15925
15926archive_cmds_need_lc_CXX=no
15927allow_undefined_flag_CXX=
15928always_export_symbols_CXX=no
15929archive_expsym_cmds_CXX=
15930compiler_needs_object_CXX=no
15931export_dynamic_flag_spec_CXX=
15932hardcode_direct_CXX=no
15933hardcode_direct_absolute_CXX=no
15934hardcode_libdir_flag_spec_CXX=
15935hardcode_libdir_flag_spec_ld_CXX=
15936hardcode_libdir_separator_CXX=
15937hardcode_minus_L_CXX=no
15938hardcode_shlibpath_var_CXX=unsupported
15939hardcode_automatic_CXX=no
15940inherit_rpath_CXX=no
15941module_cmds_CXX=
15942module_expsym_cmds_CXX=
15943link_all_deplibs_CXX=unknown
15944old_archive_cmds_CXX=$old_archive_cmds
cristy232a9ab2010-06-26 01:02:54 +000015945reload_flag_CXX=$reload_flag
15946reload_cmds_CXX=$reload_cmds
cristy3ed852e2009-09-05 21:47:34 +000015947no_undefined_flag_CXX=
15948whole_archive_flag_spec_CXX=
15949enable_shared_with_static_runtimes_CXX=no
15950
15951# Source file extension for C++ test sources.
15952ac_ext=cpp
15953
15954# Object file extension for compiled C++ test sources.
15955objext=o
15956objext_CXX=$objext
15957
15958# No sense in running all these tests if we already determined that
15959# the CXX compiler isn't working. Some variables (like enable_shared)
15960# are currently assumed to apply to all compilers on this platform,
15961# and will be corrupted by setting them based on a non-working compiler.
15962if test "$_lt_caught_CXX_error" != yes; then
15963 # Code to be used in simple compile tests
15964 lt_simple_compile_test_code="int some_variable = 0;"
15965
15966 # Code to be used in simple link tests
15967 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15968
15969 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15970
15971
15972
15973
15974
15975
15976# If no C compiler was specified, use CC.
15977LTCC=${LTCC-"$CC"}
15978
15979# If no C compiler flags were specified, use CFLAGS.
15980LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15981
15982# Allow CC to be a program name with arguments.
15983compiler=$CC
15984
15985
15986 # save warnings/boilerplate of simple test code
15987 ac_outfile=conftest.$ac_objext
15988echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15989eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15990_lt_compiler_boilerplate=`cat conftest.err`
15991$RM conftest*
15992
15993 ac_outfile=conftest.$ac_objext
15994echo "$lt_simple_link_test_code" >conftest.$ac_ext
15995eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15996_lt_linker_boilerplate=`cat conftest.err`
15997$RM -r conftest*
15998
15999
16000 # Allow CC to be a program name with arguments.
16001 lt_save_CC=$CC
16002 lt_save_LD=$LD
16003 lt_save_GCC=$GCC
16004 GCC=$GXX
16005 lt_save_with_gnu_ld=$with_gnu_ld
16006 lt_save_path_LD=$lt_cv_path_LD
16007 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16008 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16009 else
16010 $as_unset lt_cv_prog_gnu_ld
16011 fi
16012 if test -n "${lt_cv_path_LDCXX+set}"; then
16013 lt_cv_path_LD=$lt_cv_path_LDCXX
16014 else
16015 $as_unset lt_cv_path_LD
16016 fi
16017 test -z "${LDCXX+set}" || LD=$LDCXX
16018 CC=${CXX-"c++"}
16019 compiler=$CC
16020 compiler_CXX=$CC
16021 for cc_temp in $compiler""; do
16022 case $cc_temp in
16023 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16024 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16025 \-*) ;;
16026 *) break;;
16027 esac
16028done
cristy232a9ab2010-06-26 01:02:54 +000016029cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000016030
16031
16032 if test -n "$compiler"; then
16033 # We don't want -fno-exception when compiling C++ code, so set the
16034 # no_builtin_flag separately
16035 if test "$GXX" = yes; then
16036 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16037 else
16038 lt_prog_compiler_no_builtin_flag_CXX=
16039 fi
16040
16041 if test "$GXX" = yes; then
16042 # Set up default GNU C++ configuration
16043
16044
16045
16046# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000016047if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016048 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16049else
16050 with_gnu_ld=no
16051fi
16052
16053ac_prog=ld
16054if test "$GCC" = yes; then
16055 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000016056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016057$as_echo_n "checking for ld used by $CC... " >&6; }
16058 case $host in
16059 *-*-mingw*)
16060 # gcc leaves a trailing carriage return which upsets mingw
16061 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16062 *)
16063 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16064 esac
16065 case $ac_prog in
16066 # Accept absolute paths.
16067 [\\/]* | ?:[\\/]*)
16068 re_direlt='/[^/][^/]*/\.\./'
16069 # Canonicalize the pathname of ld
16070 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16071 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16072 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16073 done
16074 test -z "$LD" && LD="$ac_prog"
16075 ;;
16076 "")
16077 # If it fails, then pretend we aren't using GCC.
16078 ac_prog=ld
16079 ;;
16080 *)
16081 # If it is relative, then search for the first ld in PATH.
16082 with_gnu_ld=unknown
16083 ;;
16084 esac
16085elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000016086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016087$as_echo_n "checking for GNU ld... " >&6; }
16088else
cristy8b350f62009-11-15 23:12:43 +000016089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016090$as_echo_n "checking for non-GNU ld... " >&6; }
16091fi
cristy8b350f62009-11-15 23:12:43 +000016092if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016093 $as_echo_n "(cached) " >&6
16094else
16095 if test -z "$LD"; then
16096 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16097 for ac_dir in $PATH; do
16098 IFS="$lt_save_ifs"
16099 test -z "$ac_dir" && ac_dir=.
16100 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16101 lt_cv_path_LD="$ac_dir/$ac_prog"
16102 # Check to see if the program is GNU ld. I'd rather use --version,
16103 # but apparently some variants of GNU ld only accept -v.
16104 # Break only if it was the GNU/non-GNU ld that we prefer.
16105 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16106 *GNU* | *'with BFD'*)
16107 test "$with_gnu_ld" != no && break
16108 ;;
16109 *)
16110 test "$with_gnu_ld" != yes && break
16111 ;;
16112 esac
16113 fi
16114 done
16115 IFS="$lt_save_ifs"
16116else
16117 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16118fi
16119fi
16120
16121LD="$lt_cv_path_LD"
16122if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000016123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000016124$as_echo "$LD" >&6; }
16125else
cristy8b350f62009-11-15 23:12:43 +000016126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016127$as_echo "no" >&6; }
16128fi
cristy0684af42010-07-09 00:00:05 +000016129test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy8b350f62009-11-15 23:12:43 +000016130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016131$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016132if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016133 $as_echo_n "(cached) " >&6
16134else
16135 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16136case `$LD -v 2>&1 </dev/null` in
16137*GNU* | *'with BFD'*)
16138 lt_cv_prog_gnu_ld=yes
16139 ;;
16140*)
16141 lt_cv_prog_gnu_ld=no
16142 ;;
16143esac
16144fi
cristy8b350f62009-11-15 23:12:43 +000016145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016146$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16147with_gnu_ld=$lt_cv_prog_gnu_ld
16148
16149
16150
16151
16152
16153
16154
16155 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16156 # archiving commands below assume that GNU ld is being used.
16157 if test "$with_gnu_ld" = yes; then
16158 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16159 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'
16160
16161 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16162 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16163
16164 # If archive_cmds runs LD, not CC, wlarc should be empty
16165 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16166 # investigate it a little bit more. (MM)
16167 wlarc='${wl}'
16168
16169 # ancient GNU ld didn't support --whole-archive et. al.
16170 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16171 $GREP 'no-whole-archive' > /dev/null; then
16172 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16173 else
16174 whole_archive_flag_spec_CXX=
16175 fi
16176 else
16177 with_gnu_ld=no
16178 wlarc=
16179
16180 # A generic and very simple default shared library creation
16181 # command for GNU C++ for the case where it uses the native
16182 # linker, instead of GNU ld. If possible, this setting should
16183 # overridden to take advantage of the native linker features on
16184 # the platform it is being used on.
16185 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16186 fi
16187
16188 # Commands to make compiler produce verbose output that lists
16189 # what "hidden" libraries, object files and flags are used when
16190 # linking a shared library.
cristy232a9ab2010-06-26 01:02:54 +000016191 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016192
16193 else
16194 GXX=no
16195 with_gnu_ld=no
16196 wlarc=
16197 fi
16198
16199 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000016200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016201$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16202 ld_shlibs_CXX=yes
16203 case $host_os in
16204 aix3*)
16205 # FIXME: insert proper C++ library support
16206 ld_shlibs_CXX=no
16207 ;;
16208 aix[4-9]*)
16209 if test "$host_cpu" = ia64; then
16210 # On IA64, the linker does run time linking by default, so we don't
16211 # have to do anything special.
16212 aix_use_runtimelinking=no
16213 exp_sym_flag='-Bexport'
16214 no_entry_flag=""
16215 else
16216 aix_use_runtimelinking=no
16217
16218 # Test if we are trying to use run time linking or normal
16219 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16220 # need to do runtime linking.
16221 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16222 for ld_flag in $LDFLAGS; do
16223 case $ld_flag in
16224 *-brtl*)
16225 aix_use_runtimelinking=yes
16226 break
16227 ;;
16228 esac
16229 done
16230 ;;
16231 esac
16232
16233 exp_sym_flag='-bexport'
16234 no_entry_flag='-bnoentry'
16235 fi
16236
16237 # When large executables or shared objects are built, AIX ld can
16238 # have problems creating the table of contents. If linking a library
16239 # or program results in "error TOC overflow" add -mminimal-toc to
16240 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16241 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16242
16243 archive_cmds_CXX=''
16244 hardcode_direct_CXX=yes
16245 hardcode_direct_absolute_CXX=yes
16246 hardcode_libdir_separator_CXX=':'
16247 link_all_deplibs_CXX=yes
16248 file_list_spec_CXX='${wl}-f,'
16249
16250 if test "$GXX" = yes; then
16251 case $host_os in aix4.[012]|aix4.[012].*)
16252 # We only want to do this on AIX 4.2 and lower, the check
16253 # below for broken collect2 doesn't work under 4.3+
16254 collect2name=`${CC} -print-prog-name=collect2`
16255 if test -f "$collect2name" &&
16256 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16257 then
16258 # We have reworked collect2
16259 :
16260 else
16261 # We have old collect2
16262 hardcode_direct_CXX=unsupported
16263 # It fails to find uninstalled libraries when the uninstalled
16264 # path is not listed in the libpath. Setting hardcode_minus_L
16265 # to unsupported forces relinking
16266 hardcode_minus_L_CXX=yes
16267 hardcode_libdir_flag_spec_CXX='-L$libdir'
16268 hardcode_libdir_separator_CXX=
16269 fi
16270 esac
16271 shared_flag='-shared'
16272 if test "$aix_use_runtimelinking" = yes; then
16273 shared_flag="$shared_flag "'${wl}-G'
16274 fi
16275 else
16276 # not using gcc
16277 if test "$host_cpu" = ia64; then
16278 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16279 # chokes on -Wl,-G. The following line is correct:
16280 shared_flag='-G'
16281 else
16282 if test "$aix_use_runtimelinking" = yes; then
16283 shared_flag='${wl}-G'
16284 else
16285 shared_flag='${wl}-bM:SRE'
16286 fi
16287 fi
16288 fi
16289
16290 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16291 # It seems that -bexpall does not export symbols beginning with
16292 # underscore (_), so it is better to generate a list of symbols to
16293 # export.
16294 always_export_symbols_CXX=yes
16295 if test "$aix_use_runtimelinking" = yes; then
16296 # Warning - without using the other runtime loading flags (-brtl),
16297 # -berok will link without error, but may produce a broken library.
16298 allow_undefined_flag_CXX='-berok'
16299 # Determine the default libpath from the value encoded in an empty
16300 # executable.
cristy8b350f62009-11-15 23:12:43 +000016301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016302/* end confdefs.h. */
16303
16304int
16305main ()
16306{
16307
16308 ;
16309 return 0;
16310}
16311_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016312if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016313
16314lt_aix_libpath_sed='
16315 /Import File Strings/,/^$/ {
16316 /^0/ {
16317 s/^0 *\(.*\)$/\1/
16318 p
16319 }
16320 }'
16321aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16322# Check for a 64-bit object if we didn't find anything.
16323if test -z "$aix_libpath"; then
16324 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16325fi
cristy3ed852e2009-09-05 21:47:34 +000016326fi
cristy8b350f62009-11-15 23:12:43 +000016327rm -f core conftest.err conftest.$ac_objext \
16328 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016329if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16330
16331 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16332
cristy232a9ab2010-06-26 01:02:54 +000016333 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 +000016334 else
16335 if test "$host_cpu" = ia64; then
16336 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16337 allow_undefined_flag_CXX="-z nodefs"
16338 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"
16339 else
16340 # Determine the default libpath from the value encoded in an
16341 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000016342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016343/* end confdefs.h. */
16344
16345int
16346main ()
16347{
16348
16349 ;
16350 return 0;
16351}
16352_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016353if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016354
16355lt_aix_libpath_sed='
16356 /Import File Strings/,/^$/ {
16357 /^0/ {
16358 s/^0 *\(.*\)$/\1/
16359 p
16360 }
16361 }'
16362aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16363# Check for a 64-bit object if we didn't find anything.
16364if test -z "$aix_libpath"; then
16365 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16366fi
cristy3ed852e2009-09-05 21:47:34 +000016367fi
cristy8b350f62009-11-15 23:12:43 +000016368rm -f core conftest.err conftest.$ac_objext \
16369 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016370if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16371
16372 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16373 # Warning - without using the other run time loading flags,
16374 # -berok will link without error, but may produce a broken library.
16375 no_undefined_flag_CXX=' ${wl}-bernotok'
16376 allow_undefined_flag_CXX=' ${wl}-berok'
cristy232a9ab2010-06-26 01:02:54 +000016377 if test "$with_gnu_ld" = yes; then
16378 # We only use this code for GNU lds that support --whole-archive.
16379 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16380 else
16381 # Exported symbols can be pulled into shared objects from archives
16382 whole_archive_flag_spec_CXX='$convenience'
16383 fi
cristy3ed852e2009-09-05 21:47:34 +000016384 archive_cmds_need_lc_CXX=yes
16385 # This is similar to how AIX traditionally builds its shared
16386 # libraries.
16387 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'
16388 fi
16389 fi
16390 ;;
16391
16392 beos*)
16393 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16394 allow_undefined_flag_CXX=unsupported
16395 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16396 # support --undefined. This deserves some investigation. FIXME
16397 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16398 else
16399 ld_shlibs_CXX=no
16400 fi
16401 ;;
16402
16403 chorus*)
16404 case $cc_basename in
16405 *)
16406 # FIXME: insert proper C++ library support
16407 ld_shlibs_CXX=no
16408 ;;
16409 esac
16410 ;;
16411
16412 cygwin* | mingw* | pw32* | cegcc*)
16413 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16414 # as there is no search path for DLLs.
16415 hardcode_libdir_flag_spec_CXX='-L$libdir'
cristy232a9ab2010-06-26 01:02:54 +000016416 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
cristy3ed852e2009-09-05 21:47:34 +000016417 allow_undefined_flag_CXX=unsupported
16418 always_export_symbols_CXX=no
16419 enable_shared_with_static_runtimes_CXX=yes
16420
16421 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16422 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'
16423 # If the export-symbols file already is a .def file (1st line
16424 # is EXPORTS), use it as is; otherwise, prepend...
16425 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16426 cp $export_symbols $output_objdir/$soname.def;
16427 else
16428 echo EXPORTS > $output_objdir/$soname.def;
16429 cat $export_symbols >> $output_objdir/$soname.def;
16430 fi~
16431 $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'
16432 else
16433 ld_shlibs_CXX=no
16434 fi
16435 ;;
16436 darwin* | rhapsody*)
16437
16438
16439 archive_cmds_need_lc_CXX=no
16440 hardcode_direct_CXX=no
16441 hardcode_automatic_CXX=yes
16442 hardcode_shlibpath_var_CXX=unsupported
cristy232a9ab2010-06-26 01:02:54 +000016443 if test "$lt_cv_ld_force_load" = "yes"; then
16444 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\"`'
16445 else
16446 whole_archive_flag_spec_CXX=''
16447 fi
cristy3ed852e2009-09-05 21:47:34 +000016448 link_all_deplibs_CXX=yes
16449 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16450 case $cc_basename in
16451 ifort*) _lt_dar_can_shared=yes ;;
16452 *) _lt_dar_can_shared=$GCC ;;
16453 esac
16454 if test "$_lt_dar_can_shared" = "yes"; then
cristy232a9ab2010-06-26 01:02:54 +000016455 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000016456 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}"
16457 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16458 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}"
16459 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}"
16460 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16461 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}"
16462 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}"
16463 fi
16464
16465 else
16466 ld_shlibs_CXX=no
16467 fi
16468
16469 ;;
16470
16471 dgux*)
16472 case $cc_basename in
16473 ec++*)
16474 # FIXME: insert proper C++ library support
16475 ld_shlibs_CXX=no
16476 ;;
16477 ghcx*)
16478 # Green Hills C++ Compiler
16479 # FIXME: insert proper C++ library support
16480 ld_shlibs_CXX=no
16481 ;;
16482 *)
16483 # FIXME: insert proper C++ library support
16484 ld_shlibs_CXX=no
16485 ;;
16486 esac
16487 ;;
16488
16489 freebsd[12]*)
16490 # C++ shared libraries reported to be fairly broken before
16491 # switch to ELF
16492 ld_shlibs_CXX=no
16493 ;;
16494
16495 freebsd-elf*)
16496 archive_cmds_need_lc_CXX=no
16497 ;;
16498
16499 freebsd* | dragonfly*)
16500 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16501 # conventions
16502 ld_shlibs_CXX=yes
16503 ;;
16504
16505 gnu*)
16506 ;;
16507
cristy232a9ab2010-06-26 01:02:54 +000016508 haiku*)
16509 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16510 link_all_deplibs_CXX=yes
16511 ;;
16512
cristy3ed852e2009-09-05 21:47:34 +000016513 hpux9*)
16514 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16515 hardcode_libdir_separator_CXX=:
16516 export_dynamic_flag_spec_CXX='${wl}-E'
16517 hardcode_direct_CXX=yes
16518 hardcode_minus_L_CXX=yes # Not in the search PATH,
16519 # but as the default
16520 # location of the library.
16521
16522 case $cc_basename in
16523 CC*)
16524 # FIXME: insert proper C++ library support
16525 ld_shlibs_CXX=no
16526 ;;
16527 aCC*)
16528 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'
16529 # Commands to make compiler produce verbose output that lists
16530 # what "hidden" libraries, object files and flags are used when
16531 # linking a shared library.
16532 #
16533 # There doesn't appear to be a way to prevent this compiler from
16534 # explicitly linking system object files so we need to strip them
16535 # from the output so that they don't get included in the library
16536 # dependencies.
cristy232a9ab2010-06-26 01:02:54 +000016537 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 +000016538 ;;
16539 *)
16540 if test "$GXX" = yes; then
16541 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'
16542 else
16543 # FIXME: insert proper C++ library support
16544 ld_shlibs_CXX=no
16545 fi
16546 ;;
16547 esac
16548 ;;
16549
16550 hpux10*|hpux11*)
16551 if test $with_gnu_ld = no; then
16552 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16553 hardcode_libdir_separator_CXX=:
16554
16555 case $host_cpu in
16556 hppa*64*|ia64*)
16557 ;;
16558 *)
16559 export_dynamic_flag_spec_CXX='${wl}-E'
16560 ;;
16561 esac
16562 fi
16563 case $host_cpu in
16564 hppa*64*|ia64*)
16565 hardcode_direct_CXX=no
16566 hardcode_shlibpath_var_CXX=no
16567 ;;
16568 *)
16569 hardcode_direct_CXX=yes
16570 hardcode_direct_absolute_CXX=yes
16571 hardcode_minus_L_CXX=yes # Not in the search PATH,
16572 # but as the default
16573 # location of the library.
16574 ;;
16575 esac
16576
16577 case $cc_basename in
16578 CC*)
16579 # FIXME: insert proper C++ library support
16580 ld_shlibs_CXX=no
16581 ;;
16582 aCC*)
16583 case $host_cpu in
16584 hppa*64*)
16585 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16586 ;;
16587 ia64*)
16588 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16589 ;;
16590 *)
16591 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16592 ;;
16593 esac
16594 # Commands to make compiler produce verbose output that lists
16595 # what "hidden" libraries, object files and flags are used when
16596 # linking a shared library.
16597 #
16598 # There doesn't appear to be a way to prevent this compiler from
16599 # explicitly linking system object files so we need to strip them
16600 # from the output so that they don't get included in the library
16601 # dependencies.
cristy232a9ab2010-06-26 01:02:54 +000016602 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 +000016603 ;;
16604 *)
16605 if test "$GXX" = yes; then
16606 if test $with_gnu_ld = no; then
16607 case $host_cpu in
16608 hppa*64*)
16609 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16610 ;;
16611 ia64*)
16612 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16613 ;;
16614 *)
16615 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'
16616 ;;
16617 esac
16618 fi
16619 else
16620 # FIXME: insert proper C++ library support
16621 ld_shlibs_CXX=no
16622 fi
16623 ;;
16624 esac
16625 ;;
16626
16627 interix[3-9]*)
16628 hardcode_direct_CXX=no
16629 hardcode_shlibpath_var_CXX=no
16630 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16631 export_dynamic_flag_spec_CXX='${wl}-E'
16632 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16633 # Instead, shared libraries are loaded at an image base (0x10000000 by
16634 # default) and relocated if they conflict, which is a slow very memory
16635 # consuming and fragmenting process. To avoid this, we pick a random,
16636 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16637 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16638 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'
16639 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'
16640 ;;
16641 irix5* | irix6*)
16642 case $cc_basename in
16643 CC*)
16644 # SGI C++
cristy232a9ab2010-06-26 01:02:54 +000016645 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 +000016646
16647 # Archives containing C++ object files must be created using
16648 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16649 # necessary to make sure instantiated templates are included
16650 # in the archive.
16651 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16652 ;;
16653 *)
16654 if test "$GXX" = yes; then
16655 if test "$with_gnu_ld" = no; then
cristy232a9ab2010-06-26 01:02:54 +000016656 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 +000016657 else
cristy232a9ab2010-06-26 01:02:54 +000016658 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 +000016659 fi
16660 fi
16661 link_all_deplibs_CXX=yes
16662 ;;
16663 esac
16664 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16665 hardcode_libdir_separator_CXX=:
16666 inherit_rpath_CXX=yes
16667 ;;
16668
cristy232a9ab2010-06-26 01:02:54 +000016669 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016670 case $cc_basename in
16671 KCC*)
16672 # Kuck and Associates, Inc. (KAI) C++ Compiler
16673
16674 # KCC will only create a shared library if the output file
16675 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16676 # to its proper name (with version) after linking.
16677 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'
16678 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'
16679 # Commands to make compiler produce verbose output that lists
16680 # what "hidden" libraries, object files and flags are used when
16681 # linking a shared library.
16682 #
16683 # There doesn't appear to be a way to prevent this compiler from
16684 # explicitly linking system object files so we need to strip them
16685 # from the output so that they don't get included in the library
16686 # dependencies.
cristy232a9ab2010-06-26 01:02:54 +000016687 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 +000016688
16689 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16690 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16691
16692 # Archives containing C++ object files must be created using
16693 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16694 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16695 ;;
16696 icpc* | ecpc* )
16697 # Intel C++
16698 with_gnu_ld=yes
16699 # version 8.0 and above of icpc choke on multiply defined symbols
16700 # if we add $predep_objects and $postdep_objects, however 7.1 and
16701 # earlier do not add the objects themselves.
16702 case `$CC -V 2>&1` in
16703 *"Version 7."*)
16704 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16705 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'
16706 ;;
16707 *) # Version 8.0 or newer
16708 tmp_idyn=
16709 case $host_cpu in
16710 ia64*) tmp_idyn=' -i_dynamic';;
16711 esac
16712 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16713 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'
16714 ;;
16715 esac
16716 archive_cmds_need_lc_CXX=no
16717 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16718 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16719 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16720 ;;
16721 pgCC* | pgcpp*)
16722 # Portland Group C++ compiler
16723 case `$CC -V` in
cristy232a9ab2010-06-26 01:02:54 +000016724 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy3ed852e2009-09-05 21:47:34 +000016725 prelink_cmds_CXX='tpldir=Template.dir~
16726 rm -rf $tpldir~
16727 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy232a9ab2010-06-26 01:02:54 +000016728 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy3ed852e2009-09-05 21:47:34 +000016729 old_archive_cmds_CXX='tpldir=Template.dir~
16730 rm -rf $tpldir~
16731 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy232a9ab2010-06-26 01:02:54 +000016732 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy3ed852e2009-09-05 21:47:34 +000016733 $RANLIB $oldlib'
16734 archive_cmds_CXX='tpldir=Template.dir~
16735 rm -rf $tpldir~
16736 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy232a9ab2010-06-26 01:02:54 +000016737 $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 +000016738 archive_expsym_cmds_CXX='tpldir=Template.dir~
16739 rm -rf $tpldir~
16740 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy232a9ab2010-06-26 01:02:54 +000016741 $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 +000016742 ;;
cristy232a9ab2010-06-26 01:02:54 +000016743 *) # Version 6 and above use weak symbols
cristy3ed852e2009-09-05 21:47:34 +000016744 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16745 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'
16746 ;;
16747 esac
16748
16749 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16750 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy232a9ab2010-06-26 01:02:54 +000016751 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 +000016752 ;;
16753 cxx*)
16754 # Compaq C++
16755 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16756 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'
16757
16758 runpath_var=LD_RUN_PATH
16759 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16760 hardcode_libdir_separator_CXX=:
16761
16762 # Commands to make compiler produce verbose output that lists
16763 # what "hidden" libraries, object files and flags are used when
16764 # linking a shared library.
16765 #
16766 # There doesn't appear to be a way to prevent this compiler from
16767 # explicitly linking system object files so we need to strip them
16768 # from the output so that they don't get included in the library
16769 # dependencies.
cristy232a9ab2010-06-26 01:02:54 +000016770 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 +000016771 ;;
cristy232a9ab2010-06-26 01:02:54 +000016772 xl* | mpixl* | bgxl*)
cristy3ed852e2009-09-05 21:47:34 +000016773 # IBM XL 8.0 on PPC, with GNU ld
16774 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16775 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16776 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16777 if test "x$supports_anon_versioning" = xyes; then
16778 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16779 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16780 echo "local: *; };" >> $output_objdir/$libname.ver~
16781 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16782 fi
16783 ;;
16784 *)
16785 case `$CC -V 2>&1 | sed 5q` in
16786 *Sun\ C*)
16787 # Sun C++ 5.9
16788 no_undefined_flag_CXX=' -zdefs'
16789 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16790 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'
16791 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy232a9ab2010-06-26 01:02:54 +000016792 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 +000016793 compiler_needs_object_CXX=yes
16794
16795 # Not sure whether something based on
16796 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16797 # would be better.
cristy232a9ab2010-06-26 01:02:54 +000016798 output_verbose_link_cmd='func_echo_all'
cristy3ed852e2009-09-05 21:47:34 +000016799
16800 # Archives containing C++ object files must be created using
16801 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16802 # necessary to make sure instantiated templates are included
16803 # in the archive.
16804 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16805 ;;
16806 esac
16807 ;;
16808 esac
16809 ;;
16810
16811 lynxos*)
16812 # FIXME: insert proper C++ library support
16813 ld_shlibs_CXX=no
16814 ;;
16815
16816 m88k*)
16817 # FIXME: insert proper C++ library support
16818 ld_shlibs_CXX=no
16819 ;;
16820
16821 mvs*)
16822 case $cc_basename in
16823 cxx*)
16824 # FIXME: insert proper C++ library support
16825 ld_shlibs_CXX=no
16826 ;;
16827 *)
16828 # FIXME: insert proper C++ library support
16829 ld_shlibs_CXX=no
16830 ;;
16831 esac
16832 ;;
16833
16834 netbsd*)
16835 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16836 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16837 wlarc=
16838 hardcode_libdir_flag_spec_CXX='-R$libdir'
16839 hardcode_direct_CXX=yes
16840 hardcode_shlibpath_var_CXX=no
16841 fi
16842 # Workaround some broken pre-1.5 toolchains
16843 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16844 ;;
16845
16846 *nto* | *qnx*)
16847 ld_shlibs_CXX=yes
16848 ;;
16849
16850 openbsd2*)
16851 # C++ shared libraries are fairly broken
16852 ld_shlibs_CXX=no
16853 ;;
16854
16855 openbsd*)
16856 if test -f /usr/libexec/ld.so; then
16857 hardcode_direct_CXX=yes
16858 hardcode_shlibpath_var_CXX=no
16859 hardcode_direct_absolute_CXX=yes
16860 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16861 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16862 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16863 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16864 export_dynamic_flag_spec_CXX='${wl}-E'
16865 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16866 fi
cristy232a9ab2010-06-26 01:02:54 +000016867 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000016868 else
16869 ld_shlibs_CXX=no
16870 fi
16871 ;;
16872
16873 osf3* | osf4* | osf5*)
16874 case $cc_basename in
16875 KCC*)
16876 # Kuck and Associates, Inc. (KAI) C++ Compiler
16877
16878 # KCC will only create a shared library if the output file
16879 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16880 # to its proper name (with version) after linking.
16881 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'
16882
16883 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16884 hardcode_libdir_separator_CXX=:
16885
16886 # Archives containing C++ object files must be created using
16887 # the KAI C++ compiler.
16888 case $host in
16889 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16890 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16891 esac
16892 ;;
16893 RCC*)
16894 # Rational C++ 2.4.1
16895 # FIXME: insert proper C++ library support
16896 ld_shlibs_CXX=no
16897 ;;
16898 cxx*)
16899 case $host in
16900 osf3*)
16901 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy232a9ab2010-06-26 01:02:54 +000016902 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 +000016903 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16904 ;;
16905 *)
16906 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy232a9ab2010-06-26 01:02:54 +000016907 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 +000016908 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16909 echo "-hidden">> $lib.exp~
cristy232a9ab2010-06-26 01:02:54 +000016910 $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 +000016911 $RM $lib.exp'
16912 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16913 ;;
16914 esac
16915
16916 hardcode_libdir_separator_CXX=:
16917
16918 # Commands to make compiler produce verbose output that lists
16919 # what "hidden" libraries, object files and flags are used when
16920 # linking a shared library.
16921 #
16922 # There doesn't appear to be a way to prevent this compiler from
16923 # explicitly linking system object files so we need to strip them
16924 # from the output so that they don't get included in the library
16925 # dependencies.
cristy232a9ab2010-06-26 01:02:54 +000016926 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 +000016927 ;;
16928 *)
16929 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16930 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16931 case $host in
16932 osf3*)
cristy232a9ab2010-06-26 01:02:54 +000016933 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 +000016934 ;;
16935 *)
cristy232a9ab2010-06-26 01:02:54 +000016936 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 +000016937 ;;
16938 esac
16939
16940 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16941 hardcode_libdir_separator_CXX=:
16942
16943 # Commands to make compiler produce verbose output that lists
16944 # what "hidden" libraries, object files and flags are used when
16945 # linking a shared library.
cristy232a9ab2010-06-26 01:02:54 +000016946 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016947
16948 else
16949 # FIXME: insert proper C++ library support
16950 ld_shlibs_CXX=no
16951 fi
16952 ;;
16953 esac
16954 ;;
16955
16956 psos*)
16957 # FIXME: insert proper C++ library support
16958 ld_shlibs_CXX=no
16959 ;;
16960
16961 sunos4*)
16962 case $cc_basename in
16963 CC*)
16964 # Sun C++ 4.x
16965 # FIXME: insert proper C++ library support
16966 ld_shlibs_CXX=no
16967 ;;
16968 lcc*)
16969 # Lucid
16970 # FIXME: insert proper C++ library support
16971 ld_shlibs_CXX=no
16972 ;;
16973 *)
16974 # FIXME: insert proper C++ library support
16975 ld_shlibs_CXX=no
16976 ;;
16977 esac
16978 ;;
16979
16980 solaris*)
16981 case $cc_basename in
cristy232a9ab2010-06-26 01:02:54 +000016982 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000016983 # Sun C++ 4.2, 5.x and Centerline C++
16984 archive_cmds_need_lc_CXX=yes
16985 no_undefined_flag_CXX=' -zdefs'
16986 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16987 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16988 $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'
16989
16990 hardcode_libdir_flag_spec_CXX='-R$libdir'
16991 hardcode_shlibpath_var_CXX=no
16992 case $host_os in
16993 solaris2.[0-5] | solaris2.[0-5].*) ;;
16994 *)
16995 # The compiler driver will combine and reorder linker options,
16996 # but understands `-z linker_flag'.
16997 # Supported since Solaris 2.6 (maybe 2.5.1?)
16998 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16999 ;;
17000 esac
17001 link_all_deplibs_CXX=yes
17002
cristy232a9ab2010-06-26 01:02:54 +000017003 output_verbose_link_cmd='func_echo_all'
cristy3ed852e2009-09-05 21:47:34 +000017004
17005 # Archives containing C++ object files must be created using
17006 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17007 # necessary to make sure instantiated templates are included
17008 # in the archive.
17009 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17010 ;;
17011 gcx*)
17012 # Green Hills C++ Compiler
17013 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17014
17015 # The C++ compiler must be used to create the archive.
17016 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17017 ;;
17018 *)
17019 # GNU C++ compiler with Solaris linker
17020 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17021 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17022 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17023 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17024 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17025 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17026
17027 # Commands to make compiler produce verbose output that lists
17028 # what "hidden" libraries, object files and flags are used when
17029 # linking a shared library.
cristy232a9ab2010-06-26 01:02:54 +000017030 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017031 else
17032 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17033 # platform.
17034 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17035 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17036 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17037
17038 # Commands to make compiler produce verbose output that lists
17039 # what "hidden" libraries, object files and flags are used when
17040 # linking a shared library.
cristy232a9ab2010-06-26 01:02:54 +000017041 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017042 fi
17043
17044 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17045 case $host_os in
17046 solaris2.[0-5] | solaris2.[0-5].*) ;;
17047 *)
17048 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17049 ;;
17050 esac
17051 fi
17052 ;;
17053 esac
17054 ;;
17055
17056 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17057 no_undefined_flag_CXX='${wl}-z,text'
17058 archive_cmds_need_lc_CXX=no
17059 hardcode_shlibpath_var_CXX=no
17060 runpath_var='LD_RUN_PATH'
17061
17062 case $cc_basename in
17063 CC*)
17064 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17065 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17066 ;;
17067 *)
17068 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17069 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17070 ;;
17071 esac
17072 ;;
17073
17074 sysv5* | sco3.2v5* | sco5v6*)
17075 # Note: We can NOT use -z defs as we might desire, because we do not
17076 # link with -lc, and that would cause any symbols used from libc to
17077 # always be unresolved, which means just about no library would
17078 # ever link correctly. If we're not using GNU ld we use -z text
17079 # though, which does catch some bad symbols but isn't as heavy-handed
17080 # as -z defs.
17081 no_undefined_flag_CXX='${wl}-z,text'
17082 allow_undefined_flag_CXX='${wl}-z,nodefs'
17083 archive_cmds_need_lc_CXX=no
17084 hardcode_shlibpath_var_CXX=no
17085 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17086 hardcode_libdir_separator_CXX=':'
17087 link_all_deplibs_CXX=yes
17088 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17089 runpath_var='LD_RUN_PATH'
17090
17091 case $cc_basename in
17092 CC*)
17093 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17094 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy232a9ab2010-06-26 01:02:54 +000017095 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17096 '"$old_archive_cmds_CXX"
17097 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17098 '"$reload_cmds_CXX"
cristy3ed852e2009-09-05 21:47:34 +000017099 ;;
17100 *)
17101 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17102 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17103 ;;
17104 esac
17105 ;;
17106
17107 tandem*)
17108 case $cc_basename in
17109 NCC*)
17110 # NonStop-UX NCC 3.20
17111 # FIXME: insert proper C++ library support
17112 ld_shlibs_CXX=no
17113 ;;
17114 *)
17115 # FIXME: insert proper C++ library support
17116 ld_shlibs_CXX=no
17117 ;;
17118 esac
17119 ;;
17120
17121 vxworks*)
17122 # FIXME: insert proper C++ library support
17123 ld_shlibs_CXX=no
17124 ;;
17125
17126 *)
17127 # FIXME: insert proper C++ library support
17128 ld_shlibs_CXX=no
17129 ;;
17130 esac
17131
cristy8b350f62009-11-15 23:12:43 +000017132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017133$as_echo "$ld_shlibs_CXX" >&6; }
17134 test "$ld_shlibs_CXX" = no && can_build_shared=no
17135
17136 GCC_CXX="$GXX"
17137 LD_CXX="$LD"
17138
17139 ## CAVEAT EMPTOR:
17140 ## There is no encapsulation within the following macros, do not change
17141 ## the running order or otherwise move them around unless you know exactly
17142 ## what you are doing...
17143 # Dependencies to place before and after the object being linked:
17144predep_objects_CXX=
17145postdep_objects_CXX=
17146predeps_CXX=
17147postdeps_CXX=
17148compiler_lib_search_path_CXX=
17149
17150cat > conftest.$ac_ext <<_LT_EOF
17151class Foo
17152{
17153public:
17154 Foo (void) { a = 0; }
17155private:
17156 int a;
17157};
17158_LT_EOF
17159
cristy8b350f62009-11-15 23:12:43 +000017160if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017161 (eval $ac_compile) 2>&5
17162 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17164 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000017165 # Parse the compiler output and extract the necessary
17166 # objects, libraries and library flags.
17167
17168 # Sentinel used to keep track of whether or not we are before
17169 # the conftest object file.
17170 pre_test_object_deps_done=no
17171
17172 for p in `eval "$output_verbose_link_cmd"`; do
17173 case $p in
17174
17175 -L* | -R* | -l*)
17176 # Some compilers place space between "-{L,R}" and the path.
17177 # Remove the space.
17178 if test $p = "-L" ||
17179 test $p = "-R"; then
17180 prev=$p
17181 continue
17182 else
17183 prev=
17184 fi
17185
17186 if test "$pre_test_object_deps_done" = no; then
17187 case $p in
17188 -L* | -R*)
17189 # Internal compiler library paths should come after those
17190 # provided the user. The postdeps already come after the
17191 # user supplied libs so there is no need to process them.
17192 if test -z "$compiler_lib_search_path_CXX"; then
17193 compiler_lib_search_path_CXX="${prev}${p}"
17194 else
17195 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17196 fi
17197 ;;
17198 # The "-l" case would never come before the object being
17199 # linked, so don't bother handling this case.
17200 esac
17201 else
17202 if test -z "$postdeps_CXX"; then
17203 postdeps_CXX="${prev}${p}"
17204 else
17205 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17206 fi
17207 fi
17208 ;;
17209
17210 *.$objext)
17211 # This assumes that the test object file only shows up
17212 # once in the compiler output.
17213 if test "$p" = "conftest.$objext"; then
17214 pre_test_object_deps_done=yes
17215 continue
17216 fi
17217
17218 if test "$pre_test_object_deps_done" = no; then
17219 if test -z "$predep_objects_CXX"; then
17220 predep_objects_CXX="$p"
17221 else
17222 predep_objects_CXX="$predep_objects_CXX $p"
17223 fi
17224 else
17225 if test -z "$postdep_objects_CXX"; then
17226 postdep_objects_CXX="$p"
17227 else
17228 postdep_objects_CXX="$postdep_objects_CXX $p"
17229 fi
17230 fi
17231 ;;
17232
17233 *) ;; # Ignore the rest.
17234
17235 esac
17236 done
17237
17238 # Clean up.
17239 rm -f a.out a.exe
17240else
17241 echo "libtool.m4: error: problem compiling CXX test program"
17242fi
17243
17244$RM -f confest.$objext
17245
17246# PORTME: override above test on systems where it is broken
17247case $host_os in
17248interix[3-9]*)
17249 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17250 # hack all around it, let's just trust "g++" to DTRT.
17251 predep_objects_CXX=
17252 postdep_objects_CXX=
17253 postdeps_CXX=
17254 ;;
17255
17256linux*)
17257 case `$CC -V 2>&1 | sed 5q` in
17258 *Sun\ C*)
17259 # Sun C++ 5.9
17260
17261 # The more standards-conforming stlport4 library is
17262 # incompatible with the Cstd library. Avoid specifying
17263 # it if it's in CXXFLAGS. Ignore libCrun as
17264 # -library=stlport4 depends on it.
17265 case " $CXX $CXXFLAGS " in
17266 *" -library=stlport4 "*)
17267 solaris_use_stlport4=yes
17268 ;;
17269 esac
17270
17271 if test "$solaris_use_stlport4" != yes; then
17272 postdeps_CXX='-library=Cstd -library=Crun'
17273 fi
17274 ;;
17275 esac
17276 ;;
17277
17278solaris*)
17279 case $cc_basename in
cristy232a9ab2010-06-26 01:02:54 +000017280 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000017281 # The more standards-conforming stlport4 library is
17282 # incompatible with the Cstd library. Avoid specifying
17283 # it if it's in CXXFLAGS. Ignore libCrun as
17284 # -library=stlport4 depends on it.
17285 case " $CXX $CXXFLAGS " in
17286 *" -library=stlport4 "*)
17287 solaris_use_stlport4=yes
17288 ;;
17289 esac
17290
17291 # Adding this requires a known-good setup of shared libraries for
17292 # Sun compiler versions before 5.6, else PIC objects from an old
17293 # archive will be linked into the output, leading to subtle bugs.
17294 if test "$solaris_use_stlport4" != yes; then
17295 postdeps_CXX='-library=Cstd -library=Crun'
17296 fi
17297 ;;
17298 esac
17299 ;;
17300esac
17301
17302
17303case " $postdeps_CXX " in
17304*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17305esac
17306 compiler_lib_search_dirs_CXX=
17307if test -n "${compiler_lib_search_path_CXX}"; then
17308 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17309fi
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341 lt_prog_compiler_wl_CXX=
17342lt_prog_compiler_pic_CXX=
17343lt_prog_compiler_static_CXX=
17344
cristy8b350f62009-11-15 23:12:43 +000017345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000017346$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17347
17348 # C++ specific cases for pic, static, wl, etc.
17349 if test "$GXX" = yes; then
17350 lt_prog_compiler_wl_CXX='-Wl,'
17351 lt_prog_compiler_static_CXX='-static'
17352
17353 case $host_os in
17354 aix*)
17355 # All AIX code is PIC.
17356 if test "$host_cpu" = ia64; then
17357 # AIX 5 now supports IA64 processor
17358 lt_prog_compiler_static_CXX='-Bstatic'
17359 fi
17360 ;;
17361
17362 amigaos*)
17363 case $host_cpu in
17364 powerpc)
17365 # see comment about AmigaOS4 .so support
17366 lt_prog_compiler_pic_CXX='-fPIC'
17367 ;;
17368 m68k)
17369 # FIXME: we need at least 68020 code to build shared libraries, but
17370 # adding the `-m68020' flag to GCC prevents building anything better,
17371 # like `-m68040'.
17372 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17373 ;;
17374 esac
17375 ;;
17376
17377 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17378 # PIC is the default for these OSes.
17379 ;;
17380 mingw* | cygwin* | os2* | pw32* | cegcc*)
17381 # This hack is so that the source file can tell whether it is being
17382 # built for inclusion in a dll (and should export symbols for example).
17383 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17384 # (--disable-auto-import) libraries
17385 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17386 ;;
17387 darwin* | rhapsody*)
17388 # PIC is the default on this platform
17389 # Common symbols not allowed in MH_DYLIB files
17390 lt_prog_compiler_pic_CXX='-fno-common'
17391 ;;
17392 *djgpp*)
17393 # DJGPP does not support shared libraries at all
17394 lt_prog_compiler_pic_CXX=
17395 ;;
cristy232a9ab2010-06-26 01:02:54 +000017396 haiku*)
17397 # PIC is the default for Haiku.
17398 # The "-static" flag exists, but is broken.
17399 lt_prog_compiler_static_CXX=
17400 ;;
cristy3ed852e2009-09-05 21:47:34 +000017401 interix[3-9]*)
17402 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17403 # Instead, we relocate shared libraries at runtime.
17404 ;;
17405 sysv4*MP*)
17406 if test -d /usr/nec; then
17407 lt_prog_compiler_pic_CXX=-Kconform_pic
17408 fi
17409 ;;
17410 hpux*)
17411 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17412 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17413 # sets the default TLS model and affects inlining.
17414 case $host_cpu in
17415 hppa*64*)
17416 ;;
17417 *)
17418 lt_prog_compiler_pic_CXX='-fPIC'
17419 ;;
17420 esac
17421 ;;
17422 *qnx* | *nto*)
17423 # QNX uses GNU C++, but need to define -shared option too, otherwise
17424 # it will coredump.
17425 lt_prog_compiler_pic_CXX='-fPIC -shared'
17426 ;;
17427 *)
17428 lt_prog_compiler_pic_CXX='-fPIC'
17429 ;;
17430 esac
17431 else
17432 case $host_os in
17433 aix[4-9]*)
17434 # All AIX code is PIC.
17435 if test "$host_cpu" = ia64; then
17436 # AIX 5 now supports IA64 processor
17437 lt_prog_compiler_static_CXX='-Bstatic'
17438 else
17439 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17440 fi
17441 ;;
17442 chorus*)
17443 case $cc_basename in
17444 cxch68*)
17445 # Green Hills C++ Compiler
17446 # _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"
17447 ;;
17448 esac
17449 ;;
17450 dgux*)
17451 case $cc_basename in
17452 ec++*)
17453 lt_prog_compiler_pic_CXX='-KPIC'
17454 ;;
17455 ghcx*)
17456 # Green Hills C++ Compiler
17457 lt_prog_compiler_pic_CXX='-pic'
17458 ;;
17459 *)
17460 ;;
17461 esac
17462 ;;
17463 freebsd* | dragonfly*)
17464 # FreeBSD uses GNU C++
17465 ;;
17466 hpux9* | hpux10* | hpux11*)
17467 case $cc_basename in
17468 CC*)
17469 lt_prog_compiler_wl_CXX='-Wl,'
17470 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17471 if test "$host_cpu" != ia64; then
17472 lt_prog_compiler_pic_CXX='+Z'
17473 fi
17474 ;;
17475 aCC*)
17476 lt_prog_compiler_wl_CXX='-Wl,'
17477 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17478 case $host_cpu in
17479 hppa*64*|ia64*)
17480 # +Z the default
17481 ;;
17482 *)
17483 lt_prog_compiler_pic_CXX='+Z'
17484 ;;
17485 esac
17486 ;;
17487 *)
17488 ;;
17489 esac
17490 ;;
17491 interix*)
17492 # This is c89, which is MS Visual C++ (no shared libs)
17493 # Anyone wants to do a port?
17494 ;;
17495 irix5* | irix6* | nonstopux*)
17496 case $cc_basename in
17497 CC*)
17498 lt_prog_compiler_wl_CXX='-Wl,'
17499 lt_prog_compiler_static_CXX='-non_shared'
17500 # CC pic flag -KPIC is the default.
17501 ;;
17502 *)
17503 ;;
17504 esac
17505 ;;
cristy232a9ab2010-06-26 01:02:54 +000017506 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017507 case $cc_basename in
17508 KCC*)
17509 # KAI C++ Compiler
17510 lt_prog_compiler_wl_CXX='--backend -Wl,'
17511 lt_prog_compiler_pic_CXX='-fPIC'
17512 ;;
17513 ecpc* )
17514 # old Intel C++ for x86_64 which still supported -KPIC.
17515 lt_prog_compiler_wl_CXX='-Wl,'
17516 lt_prog_compiler_pic_CXX='-KPIC'
17517 lt_prog_compiler_static_CXX='-static'
17518 ;;
17519 icpc* )
17520 # Intel C++, used to be incompatible with GCC.
17521 # ICC 10 doesn't accept -KPIC any more.
17522 lt_prog_compiler_wl_CXX='-Wl,'
17523 lt_prog_compiler_pic_CXX='-fPIC'
17524 lt_prog_compiler_static_CXX='-static'
17525 ;;
17526 pgCC* | pgcpp*)
17527 # Portland Group C++ compiler
17528 lt_prog_compiler_wl_CXX='-Wl,'
17529 lt_prog_compiler_pic_CXX='-fpic'
17530 lt_prog_compiler_static_CXX='-Bstatic'
17531 ;;
17532 cxx*)
17533 # Compaq C++
17534 # Make sure the PIC flag is empty. It appears that all Alpha
17535 # Linux and Compaq Tru64 Unix objects are PIC.
17536 lt_prog_compiler_pic_CXX=
17537 lt_prog_compiler_static_CXX='-non_shared'
17538 ;;
cristy232a9ab2010-06-26 01:02:54 +000017539 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17540 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy3ed852e2009-09-05 21:47:34 +000017541 lt_prog_compiler_wl_CXX='-Wl,'
17542 lt_prog_compiler_pic_CXX='-qpic'
17543 lt_prog_compiler_static_CXX='-qstaticlink'
17544 ;;
17545 *)
17546 case `$CC -V 2>&1 | sed 5q` in
17547 *Sun\ C*)
17548 # Sun C++ 5.9
17549 lt_prog_compiler_pic_CXX='-KPIC'
17550 lt_prog_compiler_static_CXX='-Bstatic'
17551 lt_prog_compiler_wl_CXX='-Qoption ld '
17552 ;;
17553 esac
17554 ;;
17555 esac
17556 ;;
17557 lynxos*)
17558 ;;
17559 m88k*)
17560 ;;
17561 mvs*)
17562 case $cc_basename in
17563 cxx*)
17564 lt_prog_compiler_pic_CXX='-W c,exportall'
17565 ;;
17566 *)
17567 ;;
17568 esac
17569 ;;
17570 netbsd*)
17571 ;;
17572 *qnx* | *nto*)
17573 # QNX uses GNU C++, but need to define -shared option too, otherwise
17574 # it will coredump.
17575 lt_prog_compiler_pic_CXX='-fPIC -shared'
17576 ;;
17577 osf3* | osf4* | osf5*)
17578 case $cc_basename in
17579 KCC*)
17580 lt_prog_compiler_wl_CXX='--backend -Wl,'
17581 ;;
17582 RCC*)
17583 # Rational C++ 2.4.1
17584 lt_prog_compiler_pic_CXX='-pic'
17585 ;;
17586 cxx*)
17587 # Digital/Compaq C++
17588 lt_prog_compiler_wl_CXX='-Wl,'
17589 # Make sure the PIC flag is empty. It appears that all Alpha
17590 # Linux and Compaq Tru64 Unix objects are PIC.
17591 lt_prog_compiler_pic_CXX=
17592 lt_prog_compiler_static_CXX='-non_shared'
17593 ;;
17594 *)
17595 ;;
17596 esac
17597 ;;
17598 psos*)
17599 ;;
17600 solaris*)
17601 case $cc_basename in
cristy232a9ab2010-06-26 01:02:54 +000017602 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000017603 # Sun C++ 4.2, 5.x and Centerline C++
17604 lt_prog_compiler_pic_CXX='-KPIC'
17605 lt_prog_compiler_static_CXX='-Bstatic'
17606 lt_prog_compiler_wl_CXX='-Qoption ld '
17607 ;;
17608 gcx*)
17609 # Green Hills C++ Compiler
17610 lt_prog_compiler_pic_CXX='-PIC'
17611 ;;
17612 *)
17613 ;;
17614 esac
17615 ;;
17616 sunos4*)
17617 case $cc_basename in
17618 CC*)
17619 # Sun C++ 4.x
17620 lt_prog_compiler_pic_CXX='-pic'
17621 lt_prog_compiler_static_CXX='-Bstatic'
17622 ;;
17623 lcc*)
17624 # Lucid
17625 lt_prog_compiler_pic_CXX='-pic'
17626 ;;
17627 *)
17628 ;;
17629 esac
17630 ;;
17631 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17632 case $cc_basename in
17633 CC*)
17634 lt_prog_compiler_wl_CXX='-Wl,'
17635 lt_prog_compiler_pic_CXX='-KPIC'
17636 lt_prog_compiler_static_CXX='-Bstatic'
17637 ;;
17638 esac
17639 ;;
17640 tandem*)
17641 case $cc_basename in
17642 NCC*)
17643 # NonStop-UX NCC 3.20
17644 lt_prog_compiler_pic_CXX='-KPIC'
17645 ;;
17646 *)
17647 ;;
17648 esac
17649 ;;
17650 vxworks*)
17651 ;;
17652 *)
17653 lt_prog_compiler_can_build_shared_CXX=no
17654 ;;
17655 esac
17656 fi
17657
17658case $host_os in
17659 # For platforms which do not support PIC, -DPIC is meaningless:
17660 *djgpp*)
17661 lt_prog_compiler_pic_CXX=
17662 ;;
17663 *)
17664 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17665 ;;
17666esac
cristy8b350f62009-11-15 23:12:43 +000017667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017668$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17669
17670
17671
17672#
17673# Check to make sure the PIC flag actually works.
17674#
17675if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000017676 { $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 +000017677$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017678if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017679 $as_echo_n "(cached) " >&6
17680else
17681 lt_cv_prog_compiler_pic_works_CXX=no
17682 ac_outfile=conftest.$ac_objext
17683 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17684 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17685 # Insert the option either (1) after the last *FLAGS variable, or
17686 # (2) before a word containing "conftest.", or (3) at the end.
17687 # Note that $ac_compile itself does not contain backslashes and begins
17688 # with a dollar sign (not a hyphen), so the echo should work correctly.
17689 # The option is referenced via a variable to avoid confusing sed.
17690 lt_compile=`echo "$ac_compile" | $SED \
17691 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17692 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17693 -e 's:$: $lt_compiler_flag:'`
cristy232a9ab2010-06-26 01:02:54 +000017694 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017695 (eval "$lt_compile" 2>conftest.err)
17696 ac_status=$?
17697 cat conftest.err >&5
cristy232a9ab2010-06-26 01:02:54 +000017698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017699 if (exit $ac_status) && test -s "$ac_outfile"; then
17700 # The compiler can only warn and ignore the option if not recognized
17701 # So say no if there are warnings other than the usual output.
cristy232a9ab2010-06-26 01:02:54 +000017702 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17704 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17705 lt_cv_prog_compiler_pic_works_CXX=yes
17706 fi
17707 fi
17708 $RM conftest*
17709
17710fi
cristy8b350f62009-11-15 23:12:43 +000017711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017712$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17713
17714if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17715 case $lt_prog_compiler_pic_CXX in
17716 "" | " "*) ;;
17717 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17718 esac
17719else
17720 lt_prog_compiler_pic_CXX=
17721 lt_prog_compiler_can_build_shared_CXX=no
17722fi
17723
17724fi
17725
17726
17727
17728#
17729# Check to make sure the static flag actually works.
17730#
17731wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000017732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000017733$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017734if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017735 $as_echo_n "(cached) " >&6
17736else
17737 lt_cv_prog_compiler_static_works_CXX=no
17738 save_LDFLAGS="$LDFLAGS"
17739 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17740 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17741 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17742 # The linker can only warn and ignore the option if not recognized
17743 # So say no if there are warnings
17744 if test -s conftest.err; then
17745 # Append any errors to the config.log.
17746 cat conftest.err 1>&5
cristy232a9ab2010-06-26 01:02:54 +000017747 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17749 if diff conftest.exp conftest.er2 >/dev/null; then
17750 lt_cv_prog_compiler_static_works_CXX=yes
17751 fi
17752 else
17753 lt_cv_prog_compiler_static_works_CXX=yes
17754 fi
17755 fi
17756 $RM -r conftest*
17757 LDFLAGS="$save_LDFLAGS"
17758
17759fi
cristy8b350f62009-11-15 23:12:43 +000017760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017761$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17762
17763if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17764 :
17765else
17766 lt_prog_compiler_static_CXX=
17767fi
17768
17769
17770
17771
cristy8b350f62009-11-15 23:12:43 +000017772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017773$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017774if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017775 $as_echo_n "(cached) " >&6
17776else
17777 lt_cv_prog_compiler_c_o_CXX=no
17778 $RM -r conftest 2>/dev/null
17779 mkdir conftest
17780 cd conftest
17781 mkdir out
17782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17783
17784 lt_compiler_flag="-o out/conftest2.$ac_objext"
17785 # Insert the option either (1) after the last *FLAGS variable, or
17786 # (2) before a word containing "conftest.", or (3) at the end.
17787 # Note that $ac_compile itself does not contain backslashes and begins
17788 # with a dollar sign (not a hyphen), so the echo should work correctly.
17789 lt_compile=`echo "$ac_compile" | $SED \
17790 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17791 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17792 -e 's:$: $lt_compiler_flag:'`
cristy232a9ab2010-06-26 01:02:54 +000017793 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017794 (eval "$lt_compile" 2>out/conftest.err)
17795 ac_status=$?
17796 cat out/conftest.err >&5
cristy232a9ab2010-06-26 01:02:54 +000017797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017798 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17799 then
17800 # The compiler can only warn and ignore the option if not recognized
17801 # So say no if there are warnings
cristy232a9ab2010-06-26 01:02:54 +000017802 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017803 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17804 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17805 lt_cv_prog_compiler_c_o_CXX=yes
17806 fi
17807 fi
17808 chmod u+w . 2>&5
17809 $RM conftest*
17810 # SGI C++ compiler will create directory out/ii_files/ for
17811 # template instantiation
17812 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17813 $RM out/* && rmdir out
17814 cd ..
17815 $RM -r conftest
17816 $RM conftest*
17817
17818fi
cristy8b350f62009-11-15 23:12:43 +000017819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017820$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17821
17822
17823
cristy8b350f62009-11-15 23:12:43 +000017824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017825$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017826if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017827 $as_echo_n "(cached) " >&6
17828else
17829 lt_cv_prog_compiler_c_o_CXX=no
17830 $RM -r conftest 2>/dev/null
17831 mkdir conftest
17832 cd conftest
17833 mkdir out
17834 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17835
17836 lt_compiler_flag="-o out/conftest2.$ac_objext"
17837 # Insert the option either (1) after the last *FLAGS variable, or
17838 # (2) before a word containing "conftest.", or (3) at the end.
17839 # Note that $ac_compile itself does not contain backslashes and begins
17840 # with a dollar sign (not a hyphen), so the echo should work correctly.
17841 lt_compile=`echo "$ac_compile" | $SED \
17842 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17843 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17844 -e 's:$: $lt_compiler_flag:'`
cristy232a9ab2010-06-26 01:02:54 +000017845 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017846 (eval "$lt_compile" 2>out/conftest.err)
17847 ac_status=$?
17848 cat out/conftest.err >&5
cristy232a9ab2010-06-26 01:02:54 +000017849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017850 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17851 then
17852 # The compiler can only warn and ignore the option if not recognized
17853 # So say no if there are warnings
cristy232a9ab2010-06-26 01:02:54 +000017854 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017855 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17856 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17857 lt_cv_prog_compiler_c_o_CXX=yes
17858 fi
17859 fi
17860 chmod u+w . 2>&5
17861 $RM conftest*
17862 # SGI C++ compiler will create directory out/ii_files/ for
17863 # template instantiation
17864 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17865 $RM out/* && rmdir out
17866 cd ..
17867 $RM -r conftest
17868 $RM conftest*
17869
17870fi
cristy8b350f62009-11-15 23:12:43 +000017871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017872$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17873
17874
17875
17876
17877hard_links="nottested"
17878if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17879 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000017880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017881$as_echo_n "checking if we can lock with hard links... " >&6; }
17882 hard_links=yes
17883 $RM conftest*
17884 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17885 touch conftest.a
17886 ln conftest.a conftest.b 2>&5 || hard_links=no
17887 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000017888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017889$as_echo "$hard_links" >&6; }
17890 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000017891 { $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 +000017892$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17893 need_locks=warn
17894 fi
17895else
17896 need_locks=no
17897fi
17898
17899
17900
cristy8b350f62009-11-15 23:12:43 +000017901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000017902$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17903
17904 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17905 case $host_os in
17906 aix[4-9]*)
17907 # If we're using GNU nm, then we don't want the "-C" option.
17908 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy232a9ab2010-06-26 01:02:54 +000017909 # Also, AIX nm treats weak defined symbols like other global defined
17910 # symbols, whereas GNU nm marks them as "W".
cristy3ed852e2009-09-05 21:47:34 +000017911 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy232a9ab2010-06-26 01:02:54 +000017912 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 +000017913 else
17914 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'
17915 fi
17916 ;;
17917 pw32*)
17918 export_symbols_cmds_CXX="$ltdll_cmds"
17919 ;;
17920 cygwin* | mingw* | cegcc*)
17921 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'
17922 ;;
17923 *)
17924 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17925 ;;
17926 esac
17927 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17928
cristy8b350f62009-11-15 23:12:43 +000017929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017930$as_echo "$ld_shlibs_CXX" >&6; }
17931test "$ld_shlibs_CXX" = no && can_build_shared=no
17932
17933with_gnu_ld_CXX=$with_gnu_ld
17934
17935
17936
17937
17938
17939
17940#
17941# Do we need to explicitly link libc?
17942#
17943case "x$archive_cmds_need_lc_CXX" in
17944x|xyes)
17945 # Assume -lc should be added
17946 archive_cmds_need_lc_CXX=yes
17947
17948 if test "$enable_shared" = yes && test "$GCC" = yes; then
17949 case $archive_cmds_CXX in
17950 *'~'*)
17951 # FIXME: we may have to deal with multi-command sequences.
17952 ;;
17953 '$CC '*)
17954 # Test whether the compiler implicitly links with -lc since on some
17955 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17956 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000017957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000017958$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy232a9ab2010-06-26 01:02:54 +000017959if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
17960 $as_echo_n "(cached) " >&6
17961else
17962 $RM conftest*
17963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017964
cristy232a9ab2010-06-26 01:02:54 +000017965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017966 (eval $ac_compile) 2>&5
17967 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17969 test $ac_status = 0; } 2>conftest.err; then
cristy232a9ab2010-06-26 01:02:54 +000017970 soname=conftest
17971 lib=conftest
17972 libobjs=conftest.$ac_objext
17973 deplibs=
17974 wl=$lt_prog_compiler_wl_CXX
17975 pic_flag=$lt_prog_compiler_pic_CXX
17976 compiler_flags=-v
17977 linker_flags=-v
17978 verstring=
17979 output_objdir=.
17980 libname=conftest
17981 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17982 allow_undefined_flag_CXX=
17983 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 +000017984 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17985 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17987 test $ac_status = 0; }
cristy232a9ab2010-06-26 01:02:54 +000017988 then
17989 lt_cv_archive_cmds_need_lc_CXX=no
17990 else
17991 lt_cv_archive_cmds_need_lc_CXX=yes
17992 fi
17993 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17994 else
17995 cat conftest.err 1>&5
17996 fi
17997 $RM conftest*
17998
17999fi
18000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18001$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18002 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy3ed852e2009-09-05 21:47:34 +000018003 ;;
18004 esac
18005 fi
18006 ;;
18007esac
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
cristy8b350f62009-11-15 23:12:43 +000018072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000018073$as_echo_n "checking dynamic linker characteristics... " >&6; }
18074
18075library_names_spec=
18076libname_spec='lib$name'
18077soname_spec=
18078shrext_cmds=".so"
18079postinstall_cmds=
18080postuninstall_cmds=
18081finish_cmds=
18082finish_eval=
18083shlibpath_var=
18084shlibpath_overrides_runpath=unknown
18085version_type=none
18086dynamic_linker="$host_os ld.so"
18087sys_lib_dlsearch_path_spec="/lib /usr/lib"
18088need_lib_prefix=unknown
18089hardcode_into_libs=no
18090
18091# when you set need_version to no, make sure it does not cause -set_version
18092# flags to be left without arguments
18093need_version=unknown
18094
18095case $host_os in
18096aix3*)
18097 version_type=linux
18098 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18099 shlibpath_var=LIBPATH
18100
18101 # AIX 3 has no versioning support, so we append a major version to the name.
18102 soname_spec='${libname}${release}${shared_ext}$major'
18103 ;;
18104
18105aix[4-9]*)
18106 version_type=linux
18107 need_lib_prefix=no
18108 need_version=no
18109 hardcode_into_libs=yes
18110 if test "$host_cpu" = ia64; then
18111 # AIX 5 supports IA64
18112 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18113 shlibpath_var=LD_LIBRARY_PATH
18114 else
18115 # With GCC up to 2.95.x, collect2 would create an import file
18116 # for dependence libraries. The import file would start with
18117 # the line `#! .'. This would cause the generated library to
18118 # depend on `.', always an invalid library. This was fixed in
18119 # development snapshots of GCC prior to 3.0.
18120 case $host_os in
18121 aix4 | aix4.[01] | aix4.[01].*)
18122 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18123 echo ' yes '
18124 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18125 :
18126 else
18127 can_build_shared=no
18128 fi
18129 ;;
18130 esac
18131 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18132 # soname into executable. Probably we can add versioning support to
18133 # collect2, so additional links can be useful in future.
18134 if test "$aix_use_runtimelinking" = yes; then
18135 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18136 # instead of lib<name>.a to let people know that these are not
18137 # typical AIX shared libraries.
18138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18139 else
18140 # We preserve .a as extension for shared libraries through AIX4.2
18141 # and later when we are not doing run time linking.
18142 library_names_spec='${libname}${release}.a $libname.a'
18143 soname_spec='${libname}${release}${shared_ext}$major'
18144 fi
18145 shlibpath_var=LIBPATH
18146 fi
18147 ;;
18148
18149amigaos*)
18150 case $host_cpu in
18151 powerpc)
18152 # Since July 2007 AmigaOS4 officially supports .so libraries.
18153 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18155 ;;
18156 m68k)
18157 library_names_spec='$libname.ixlibrary $libname.a'
18158 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy232a9ab2010-06-26 01:02:54 +000018159 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 +000018160 ;;
18161 esac
18162 ;;
18163
18164beos*)
18165 library_names_spec='${libname}${shared_ext}'
18166 dynamic_linker="$host_os ld.so"
18167 shlibpath_var=LIBRARY_PATH
18168 ;;
18169
18170bsdi[45]*)
18171 version_type=linux
18172 need_version=no
18173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18174 soname_spec='${libname}${release}${shared_ext}$major'
18175 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18176 shlibpath_var=LD_LIBRARY_PATH
18177 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18178 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18179 # the default ld.so.conf also contains /usr/contrib/lib and
18180 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18181 # libtool to hard-code these into programs
18182 ;;
18183
18184cygwin* | mingw* | pw32* | cegcc*)
18185 version_type=windows
18186 shrext_cmds=".dll"
18187 need_version=no
18188 need_lib_prefix=no
18189
18190 case $GCC,$host_os in
18191 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18192 library_names_spec='$libname.dll.a'
18193 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18194 postinstall_cmds='base_file=`basename \${file}`~
18195 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18196 dldir=$destdir/`dirname \$dlpath`~
18197 test -d \$dldir || mkdir -p \$dldir~
18198 $install_prog $dir/$dlname \$dldir/$dlname~
18199 chmod a+x \$dldir/$dlname~
18200 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18201 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18202 fi'
18203 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18204 dlpath=$dir/\$dldll~
18205 $RM \$dlpath'
18206 shlibpath_overrides_runpath=yes
18207
18208 case $host_os in
18209 cygwin*)
18210 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18211 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy232a9ab2010-06-26 01:02:54 +000018212
cristy3ed852e2009-09-05 21:47:34 +000018213 ;;
18214 mingw* | cegcc*)
18215 # MinGW DLLs use traditional 'lib' prefix
18216 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy3ed852e2009-09-05 21:47:34 +000018217 ;;
18218 pw32*)
18219 # pw32 DLLs use 'pw' prefix rather than 'lib'
18220 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18221 ;;
18222 esac
18223 ;;
18224
18225 *)
18226 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18227 ;;
18228 esac
18229 dynamic_linker='Win32 ld.exe'
18230 # FIXME: first we should search . and the directory the executable is in
18231 shlibpath_var=PATH
18232 ;;
18233
18234darwin* | rhapsody*)
18235 dynamic_linker="$host_os dyld"
18236 version_type=darwin
18237 need_lib_prefix=no
18238 need_version=no
18239 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18240 soname_spec='${libname}${release}${major}$shared_ext'
18241 shlibpath_overrides_runpath=yes
18242 shlibpath_var=DYLD_LIBRARY_PATH
18243 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18244
18245 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18246 ;;
18247
18248dgux*)
18249 version_type=linux
18250 need_lib_prefix=no
18251 need_version=no
18252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18253 soname_spec='${libname}${release}${shared_ext}$major'
18254 shlibpath_var=LD_LIBRARY_PATH
18255 ;;
18256
18257freebsd1*)
18258 dynamic_linker=no
18259 ;;
18260
18261freebsd* | dragonfly*)
18262 # DragonFly does not have aout. When/if they implement a new
18263 # versioning mechanism, adjust this.
18264 if test -x /usr/bin/objformat; then
18265 objformat=`/usr/bin/objformat`
18266 else
18267 case $host_os in
18268 freebsd[123]*) objformat=aout ;;
18269 *) objformat=elf ;;
18270 esac
18271 fi
18272 version_type=freebsd-$objformat
18273 case $version_type in
18274 freebsd-elf*)
18275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18276 need_version=no
18277 need_lib_prefix=no
18278 ;;
18279 freebsd-*)
18280 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18281 need_version=yes
18282 ;;
18283 esac
18284 shlibpath_var=LD_LIBRARY_PATH
18285 case $host_os in
18286 freebsd2*)
18287 shlibpath_overrides_runpath=yes
18288 ;;
18289 freebsd3.[01]* | freebsdelf3.[01]*)
18290 shlibpath_overrides_runpath=yes
18291 hardcode_into_libs=yes
18292 ;;
18293 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18294 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18295 shlibpath_overrides_runpath=no
18296 hardcode_into_libs=yes
18297 ;;
18298 *) # from 4.6 on, and DragonFly
18299 shlibpath_overrides_runpath=yes
18300 hardcode_into_libs=yes
18301 ;;
18302 esac
18303 ;;
18304
18305gnu*)
18306 version_type=linux
18307 need_lib_prefix=no
18308 need_version=no
18309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18310 soname_spec='${libname}${release}${shared_ext}$major'
18311 shlibpath_var=LD_LIBRARY_PATH
18312 hardcode_into_libs=yes
18313 ;;
18314
cristy232a9ab2010-06-26 01:02:54 +000018315haiku*)
18316 version_type=linux
18317 need_lib_prefix=no
18318 need_version=no
18319 dynamic_linker="$host_os runtime_loader"
18320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18321 soname_spec='${libname}${release}${shared_ext}$major'
18322 shlibpath_var=LIBRARY_PATH
18323 shlibpath_overrides_runpath=yes
18324 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18325 hardcode_into_libs=yes
18326 ;;
18327
cristy3ed852e2009-09-05 21:47:34 +000018328hpux9* | hpux10* | hpux11*)
18329 # Give a soname corresponding to the major version so that dld.sl refuses to
18330 # link against other versions.
18331 version_type=sunos
18332 need_lib_prefix=no
18333 need_version=no
18334 case $host_cpu in
18335 ia64*)
18336 shrext_cmds='.so'
18337 hardcode_into_libs=yes
18338 dynamic_linker="$host_os dld.so"
18339 shlibpath_var=LD_LIBRARY_PATH
18340 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18342 soname_spec='${libname}${release}${shared_ext}$major'
18343 if test "X$HPUX_IA64_MODE" = X32; then
18344 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18345 else
18346 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18347 fi
18348 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18349 ;;
18350 hppa*64*)
18351 shrext_cmds='.sl'
18352 hardcode_into_libs=yes
18353 dynamic_linker="$host_os dld.sl"
18354 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18355 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18357 soname_spec='${libname}${release}${shared_ext}$major'
18358 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18360 ;;
18361 *)
18362 shrext_cmds='.sl'
18363 dynamic_linker="$host_os dld.sl"
18364 shlibpath_var=SHLIB_PATH
18365 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18367 soname_spec='${libname}${release}${shared_ext}$major'
18368 ;;
18369 esac
cristy232a9ab2010-06-26 01:02:54 +000018370 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy3ed852e2009-09-05 21:47:34 +000018371 postinstall_cmds='chmod 555 $lib'
cristy232a9ab2010-06-26 01:02:54 +000018372 # or fails outright, so override atomically:
18373 install_override_mode=555
cristy3ed852e2009-09-05 21:47:34 +000018374 ;;
18375
18376interix[3-9]*)
18377 version_type=linux
18378 need_lib_prefix=no
18379 need_version=no
18380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18381 soname_spec='${libname}${release}${shared_ext}$major'
18382 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18383 shlibpath_var=LD_LIBRARY_PATH
18384 shlibpath_overrides_runpath=no
18385 hardcode_into_libs=yes
18386 ;;
18387
18388irix5* | irix6* | nonstopux*)
18389 case $host_os in
18390 nonstopux*) version_type=nonstopux ;;
18391 *)
18392 if test "$lt_cv_prog_gnu_ld" = yes; then
18393 version_type=linux
18394 else
18395 version_type=irix
18396 fi ;;
18397 esac
18398 need_lib_prefix=no
18399 need_version=no
18400 soname_spec='${libname}${release}${shared_ext}$major'
18401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18402 case $host_os in
18403 irix5* | nonstopux*)
18404 libsuff= shlibsuff=
18405 ;;
18406 *)
18407 case $LD in # libtool.m4 will add one of these switches to LD
18408 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18409 libsuff= shlibsuff= libmagic=32-bit;;
18410 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18411 libsuff=32 shlibsuff=N32 libmagic=N32;;
18412 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18413 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18414 *) libsuff= shlibsuff= libmagic=never-match;;
18415 esac
18416 ;;
18417 esac
18418 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18419 shlibpath_overrides_runpath=no
18420 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18421 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18422 hardcode_into_libs=yes
18423 ;;
18424
18425# No shared lib support for Linux oldld, aout, or coff.
18426linux*oldld* | linux*aout* | linux*coff*)
18427 dynamic_linker=no
18428 ;;
18429
18430# This must be Linux ELF.
cristy232a9ab2010-06-26 01:02:54 +000018431linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018432 version_type=linux
18433 need_lib_prefix=no
18434 need_version=no
18435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18436 soname_spec='${libname}${release}${shared_ext}$major'
18437 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18438 shlibpath_var=LD_LIBRARY_PATH
18439 shlibpath_overrides_runpath=no
cristy232a9ab2010-06-26 01:02:54 +000018440
cristy3ed852e2009-09-05 21:47:34 +000018441 # Some binutils ld are patched to set DT_RUNPATH
cristy232a9ab2010-06-26 01:02:54 +000018442 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
18443 $as_echo_n "(cached) " >&6
18444else
18445 lt_cv_shlibpath_overrides_runpath=no
18446 save_LDFLAGS=$LDFLAGS
18447 save_libdir=$libdir
18448 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18449 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018451/* end confdefs.h. */
18452
18453int
18454main ()
18455{
18456
18457 ;
18458 return 0;
18459}
18460_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018461if ac_fn_cxx_try_link "$LINENO"; then :
18462 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy232a9ab2010-06-26 01:02:54 +000018463 lt_cv_shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000018464fi
cristy3ed852e2009-09-05 21:47:34 +000018465fi
cristy8b350f62009-11-15 23:12:43 +000018466rm -f core conftest.err conftest.$ac_objext \
18467 conftest$ac_exeext conftest.$ac_ext
cristy232a9ab2010-06-26 01:02:54 +000018468 LDFLAGS=$save_LDFLAGS
18469 libdir=$save_libdir
18470
18471fi
18472
18473 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy3ed852e2009-09-05 21:47:34 +000018474
18475 # This implies no fast_install, which is unacceptable.
18476 # Some rework will be needed to allow for fast_install
18477 # before this can be enabled.
18478 hardcode_into_libs=yes
18479
cristy679ed8e2009-12-05 02:37:41 +000018480 # Add ABI-specific directories to the system library path.
18481 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18482
cristy3ed852e2009-09-05 21:47:34 +000018483 # Append ld.so.conf contents to the search path
18484 if test -f /etc/ld.so.conf; then
cristy232a9ab2010-06-26 01:02:54 +000018485 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 +000018486 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy232a9ab2010-06-26 01:02:54 +000018487
cristy3ed852e2009-09-05 21:47:34 +000018488 fi
18489
18490 # We used to test for /lib/ld.so.1 and disable shared libraries on
18491 # powerpc, because MkLinux only supported shared libraries with the
18492 # GNU dynamic linker. Since this was broken with cross compilers,
18493 # most powerpc-linux boxes support dynamic linking these days and
18494 # people can always --disable-shared, the test was removed, and we
18495 # assume the GNU/Linux dynamic linker is in use.
18496 dynamic_linker='GNU/Linux ld.so'
18497 ;;
18498
18499netbsd*)
18500 version_type=sunos
18501 need_lib_prefix=no
18502 need_version=no
18503 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18506 dynamic_linker='NetBSD (a.out) ld.so'
18507 else
18508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18509 soname_spec='${libname}${release}${shared_ext}$major'
18510 dynamic_linker='NetBSD ld.elf_so'
18511 fi
18512 shlibpath_var=LD_LIBRARY_PATH
18513 shlibpath_overrides_runpath=yes
18514 hardcode_into_libs=yes
18515 ;;
18516
18517newsos6)
18518 version_type=linux
18519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18520 shlibpath_var=LD_LIBRARY_PATH
18521 shlibpath_overrides_runpath=yes
18522 ;;
18523
18524*nto* | *qnx*)
18525 version_type=qnx
18526 need_lib_prefix=no
18527 need_version=no
18528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18529 soname_spec='${libname}${release}${shared_ext}$major'
18530 shlibpath_var=LD_LIBRARY_PATH
18531 shlibpath_overrides_runpath=no
18532 hardcode_into_libs=yes
18533 dynamic_linker='ldqnx.so'
18534 ;;
18535
18536openbsd*)
18537 version_type=sunos
18538 sys_lib_dlsearch_path_spec="/usr/lib"
18539 need_lib_prefix=no
18540 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18541 case $host_os in
18542 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18543 *) need_version=no ;;
18544 esac
18545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18547 shlibpath_var=LD_LIBRARY_PATH
18548 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18549 case $host_os in
18550 openbsd2.[89] | openbsd2.[89].*)
18551 shlibpath_overrides_runpath=no
18552 ;;
18553 *)
18554 shlibpath_overrides_runpath=yes
18555 ;;
18556 esac
18557 else
18558 shlibpath_overrides_runpath=yes
18559 fi
18560 ;;
18561
18562os2*)
18563 libname_spec='$name'
18564 shrext_cmds=".dll"
18565 need_lib_prefix=no
18566 library_names_spec='$libname${shared_ext} $libname.a'
18567 dynamic_linker='OS/2 ld.exe'
18568 shlibpath_var=LIBPATH
18569 ;;
18570
18571osf3* | osf4* | osf5*)
18572 version_type=osf
18573 need_lib_prefix=no
18574 need_version=no
18575 soname_spec='${libname}${release}${shared_ext}$major'
18576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18577 shlibpath_var=LD_LIBRARY_PATH
18578 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18579 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18580 ;;
18581
18582rdos*)
18583 dynamic_linker=no
18584 ;;
18585
18586solaris*)
18587 version_type=linux
18588 need_lib_prefix=no
18589 need_version=no
18590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18591 soname_spec='${libname}${release}${shared_ext}$major'
18592 shlibpath_var=LD_LIBRARY_PATH
18593 shlibpath_overrides_runpath=yes
18594 hardcode_into_libs=yes
18595 # ldd complains unless libraries are executable
18596 postinstall_cmds='chmod +x $lib'
18597 ;;
18598
18599sunos4*)
18600 version_type=sunos
18601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18602 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18603 shlibpath_var=LD_LIBRARY_PATH
18604 shlibpath_overrides_runpath=yes
18605 if test "$with_gnu_ld" = yes; then
18606 need_lib_prefix=no
18607 fi
18608 need_version=yes
18609 ;;
18610
18611sysv4 | sysv4.3*)
18612 version_type=linux
18613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18614 soname_spec='${libname}${release}${shared_ext}$major'
18615 shlibpath_var=LD_LIBRARY_PATH
18616 case $host_vendor in
18617 sni)
18618 shlibpath_overrides_runpath=no
18619 need_lib_prefix=no
18620 runpath_var=LD_RUN_PATH
18621 ;;
18622 siemens)
18623 need_lib_prefix=no
18624 ;;
18625 motorola)
18626 need_lib_prefix=no
18627 need_version=no
18628 shlibpath_overrides_runpath=no
18629 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18630 ;;
18631 esac
18632 ;;
18633
18634sysv4*MP*)
18635 if test -d /usr/nec ;then
18636 version_type=linux
18637 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18638 soname_spec='$libname${shared_ext}.$major'
18639 shlibpath_var=LD_LIBRARY_PATH
18640 fi
18641 ;;
18642
18643sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18644 version_type=freebsd-elf
18645 need_lib_prefix=no
18646 need_version=no
18647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18648 soname_spec='${libname}${release}${shared_ext}$major'
18649 shlibpath_var=LD_LIBRARY_PATH
18650 shlibpath_overrides_runpath=yes
18651 hardcode_into_libs=yes
18652 if test "$with_gnu_ld" = yes; then
18653 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18654 else
18655 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18656 case $host_os in
18657 sco3.2v5*)
18658 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18659 ;;
18660 esac
18661 fi
18662 sys_lib_dlsearch_path_spec='/usr/lib'
18663 ;;
18664
18665tpf*)
18666 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18667 version_type=linux
18668 need_lib_prefix=no
18669 need_version=no
18670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18671 shlibpath_var=LD_LIBRARY_PATH
18672 shlibpath_overrides_runpath=no
18673 hardcode_into_libs=yes
18674 ;;
18675
18676uts4*)
18677 version_type=linux
18678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18679 soname_spec='${libname}${release}${shared_ext}$major'
18680 shlibpath_var=LD_LIBRARY_PATH
18681 ;;
18682
18683*)
18684 dynamic_linker=no
18685 ;;
18686esac
cristy8b350f62009-11-15 23:12:43 +000018687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000018688$as_echo "$dynamic_linker" >&6; }
18689test "$dynamic_linker" = no && can_build_shared=no
18690
18691variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18692if test "$GCC" = yes; then
18693 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18694fi
18695
18696if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18697 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18698fi
18699if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18700 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18701fi
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
cristy232a9ab2010-06-26 01:02:54 +000018738
18739
cristy8b350f62009-11-15 23:12:43 +000018740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018741$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18742hardcode_action_CXX=
18743if test -n "$hardcode_libdir_flag_spec_CXX" ||
18744 test -n "$runpath_var_CXX" ||
18745 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18746
18747 # We can hardcode non-existent directories.
18748 if test "$hardcode_direct_CXX" != no &&
18749 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18750 # have to relink, otherwise we might link with an installed library
18751 # when we should be linking with a yet-to-be-installed one
18752 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18753 test "$hardcode_minus_L_CXX" != no; then
18754 # Linking always hardcodes the temporary library directory.
18755 hardcode_action_CXX=relink
18756 else
18757 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18758 hardcode_action_CXX=immediate
18759 fi
18760else
18761 # We cannot hardcode anything, or else we can only hardcode existing
18762 # directories.
18763 hardcode_action_CXX=unsupported
18764fi
cristy8b350f62009-11-15 23:12:43 +000018765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018766$as_echo "$hardcode_action_CXX" >&6; }
18767
18768if test "$hardcode_action_CXX" = relink ||
18769 test "$inherit_rpath_CXX" = yes; then
18770 # Fast installation is not supported
18771 enable_fast_install=no
18772elif test "$shlibpath_overrides_runpath" = yes ||
18773 test "$enable_shared" = no; then
18774 # Fast installation is not necessary
18775 enable_fast_install=needless
18776fi
18777
18778
18779
18780
18781
18782
18783
18784 fi # test -n "$compiler"
18785
18786 CC=$lt_save_CC
18787 LDCXX=$LD
18788 LD=$lt_save_LD
18789 GCC=$lt_save_GCC
18790 with_gnu_ld=$lt_save_with_gnu_ld
18791 lt_cv_path_LDCXX=$lt_cv_path_LD
18792 lt_cv_path_LD=$lt_save_path_LD
18793 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18794 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18795fi # test "$_lt_caught_CXX_error" != yes
18796
18797ac_ext=c
18798ac_cpp='$CPP $CPPFLAGS'
18799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18801ac_compiler_gnu=$ac_cv_c_compiler_gnu
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815 ac_config_commands="$ac_config_commands libtool"
18816
18817
18818
18819
18820# Only expand once:
18821
18822
18823
18824
18825
18826# Configure libltdl
18827
18828
18829
18830
18831
18832
18833
cristy8b350f62009-11-15 23:12:43 +000018834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000018835$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018836if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018837 $as_echo_n "(cached) " >&6
18838else
18839
18840module=yes
18841eval libltdl_cv_shlibext=$shrext_cmds
18842
18843fi
cristy8b350f62009-11-15 23:12:43 +000018844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000018845$as_echo "$libltdl_cv_shlibext" >&6; }
18846if test -n "$libltdl_cv_shlibext"; then
18847
18848cat >>confdefs.h <<_ACEOF
18849#define LT_MODULE_EXT "$libltdl_cv_shlibext"
18850_ACEOF
18851
18852fi
18853
cristy8b350f62009-11-15 23:12:43 +000018854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018855$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018856if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018857 $as_echo_n "(cached) " >&6
18858else
18859 lt_cv_module_path_var="$shlibpath_var"
18860fi
cristy8b350f62009-11-15 23:12:43 +000018861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000018862$as_echo "$lt_cv_module_path_var" >&6; }
18863if test -n "$lt_cv_module_path_var"; then
18864
18865cat >>confdefs.h <<_ACEOF
18866#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18867_ACEOF
18868
18869fi
18870
cristy8b350f62009-11-15 23:12:43 +000018871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018872$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018873if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018874 $as_echo_n "(cached) " >&6
18875else
18876 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18877fi
cristy8b350f62009-11-15 23:12:43 +000018878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018879$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18880if test -n "$lt_cv_sys_dlsearch_path"; then
18881 sys_dlsearch_path=
18882 for dir in $lt_cv_sys_dlsearch_path; do
18883 if test -z "$sys_dlsearch_path"; then
18884 sys_dlsearch_path="$dir"
18885 else
18886 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18887 fi
18888 done
18889
18890cat >>confdefs.h <<_ACEOF
18891#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18892_ACEOF
18893
18894fi
18895
18896
18897LT_DLLOADERS=
18898
18899
18900ac_ext=c
18901ac_cpp='$CPP $CPPFLAGS'
18902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18904ac_compiler_gnu=$ac_cv_c_compiler_gnu
18905
18906
18907LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000018908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018909$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018910if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018911 $as_echo_n "(cached) " >&6
18912else
18913 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000018914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018915/* end confdefs.h. */
18916
18917/* Override any GCC internal prototype to avoid an error.
18918 Use char because int might match the return type of a GCC
18919 builtin and then its argument prototype would still apply. */
18920#ifdef __cplusplus
18921extern "C"
18922#endif
18923char dlopen ();
18924int
18925main ()
18926{
18927return dlopen ();
18928 ;
18929 return 0;
18930}
18931_ACEOF
18932for ac_lib in '' dl; do
18933 if test -z "$ac_lib"; then
18934 ac_res="none required"
18935 else
18936 ac_res=-l$ac_lib
18937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18938 fi
cristy8b350f62009-11-15 23:12:43 +000018939 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018940 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000018941fi
cristy8b350f62009-11-15 23:12:43 +000018942rm -f core conftest.err conftest.$ac_objext \
18943 conftest$ac_exeext
18944 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018945 break
18946fi
18947done
cristy8b350f62009-11-15 23:12:43 +000018948if test "${ac_cv_search_dlopen+set}" = set; then :
18949
cristy3ed852e2009-09-05 21:47:34 +000018950else
18951 ac_cv_search_dlopen=no
18952fi
18953rm conftest.$ac_ext
18954LIBS=$ac_func_search_save_LIBS
18955fi
cristy8b350f62009-11-15 23:12:43 +000018956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018957$as_echo "$ac_cv_search_dlopen" >&6; }
18958ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000018959if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000018960 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18961
cristy8b350f62009-11-15 23:12:43 +000018962$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018963
18964 if test "$ac_cv_search_dlopen" != "none required" ; then
18965 LIBADD_DLOPEN="-ldl"
18966 fi
18967 libltdl_cv_lib_dl_dlopen="yes"
18968 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18969else
cristy8b350f62009-11-15 23:12:43 +000018970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018971/* end confdefs.h. */
18972#if HAVE_DLFCN_H
18973# include <dlfcn.h>
18974#endif
18975
18976int
18977main ()
18978{
18979dlopen(0, 0);
18980 ;
18981 return 0;
18982}
18983_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018984if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018985
cristy8b350f62009-11-15 23:12:43 +000018986$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018987
18988 libltdl_cv_func_dlopen="yes"
18989 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18990else
cristy8b350f62009-11-15 23:12:43 +000018991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000018992$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018993if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018994 $as_echo_n "(cached) " >&6
18995else
18996 ac_check_lib_save_LIBS=$LIBS
18997LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018999/* end confdefs.h. */
19000
19001/* Override any GCC internal prototype to avoid an error.
19002 Use char because int might match the return type of a GCC
19003 builtin and then its argument prototype would still apply. */
19004#ifdef __cplusplus
19005extern "C"
19006#endif
19007char dlopen ();
19008int
19009main ()
19010{
19011return dlopen ();
19012 ;
19013 return 0;
19014}
19015_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019016if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019017 ac_cv_lib_svld_dlopen=yes
19018else
cristy8b350f62009-11-15 23:12:43 +000019019 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000019020fi
cristy8b350f62009-11-15 23:12:43 +000019021rm -f core conftest.err conftest.$ac_objext \
19022 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019023LIBS=$ac_check_lib_save_LIBS
19024fi
cristy8b350f62009-11-15 23:12:43 +000019025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019026$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019027if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019028
cristy8b350f62009-11-15 23:12:43 +000019029$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019030
19031 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19032 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19033fi
19034
19035fi
cristy8b350f62009-11-15 23:12:43 +000019036rm -f core conftest.err conftest.$ac_objext \
19037 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019038fi
19039
19040if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19041then
19042 lt_save_LIBS="$LIBS"
19043 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000019044 for ac_func in dlerror
19045do :
19046 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19047if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019048 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019049#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000019050_ACEOF
19051
19052fi
19053done
19054
19055 LIBS="$lt_save_LIBS"
19056fi
19057
19058
19059LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000019060ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19061if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019062
cristy8b350f62009-11-15 23:12:43 +000019063$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019064
19065 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19066else
cristy8b350f62009-11-15 23:12:43 +000019067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019068$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019069if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019070 $as_echo_n "(cached) " >&6
19071else
19072 ac_check_lib_save_LIBS=$LIBS
19073LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019075/* end confdefs.h. */
19076
19077/* Override any GCC internal prototype to avoid an error.
19078 Use char because int might match the return type of a GCC
19079 builtin and then its argument prototype would still apply. */
19080#ifdef __cplusplus
19081extern "C"
19082#endif
19083char shl_load ();
19084int
19085main ()
19086{
19087return shl_load ();
19088 ;
19089 return 0;
19090}
19091_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019092if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019093 ac_cv_lib_dld_shl_load=yes
19094else
cristy8b350f62009-11-15 23:12:43 +000019095 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000019096fi
cristy8b350f62009-11-15 23:12:43 +000019097rm -f core conftest.err conftest.$ac_objext \
19098 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019099LIBS=$ac_check_lib_save_LIBS
19100fi
cristy8b350f62009-11-15 23:12:43 +000019101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000019102$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019103if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019104
cristy8b350f62009-11-15 23:12:43 +000019105$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019106
19107 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19108 LIBADD_SHL_LOAD="-ldld"
19109fi
19110
19111fi
19112
19113
19114
19115case $host_os in
19116darwin[1567].*)
19117# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000019118 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19119if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019120
cristy8b350f62009-11-15 23:12:43 +000019121$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019122
19123 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19124fi
19125
19126 ;;
19127beos*)
19128 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19129 ;;
19130cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000019131 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19132"
19133if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19134 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000019135else
cristy8b350f62009-11-15 23:12:43 +000019136 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000019137fi
19138
cristy3ed852e2009-09-05 21:47:34 +000019139cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019140#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000019141_ACEOF
19142
cristy3ed852e2009-09-05 21:47:34 +000019143 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19144 ;;
19145esac
19146
cristy8b350f62009-11-15 23:12:43 +000019147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019148$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019149if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019150 $as_echo_n "(cached) " >&6
19151else
19152 ac_check_lib_save_LIBS=$LIBS
19153LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019155/* end confdefs.h. */
19156
19157/* Override any GCC internal prototype to avoid an error.
19158 Use char because int might match the return type of a GCC
19159 builtin and then its argument prototype would still apply. */
19160#ifdef __cplusplus
19161extern "C"
19162#endif
19163char dld_link ();
19164int
19165main ()
19166{
19167return dld_link ();
19168 ;
19169 return 0;
19170}
19171_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019172if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019173 ac_cv_lib_dld_dld_link=yes
19174else
cristy8b350f62009-11-15 23:12:43 +000019175 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000019176fi
cristy8b350f62009-11-15 23:12:43 +000019177rm -f core conftest.err conftest.$ac_objext \
19178 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019179LIBS=$ac_check_lib_save_LIBS
19180fi
cristy8b350f62009-11-15 23:12:43 +000019181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000019182$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019183if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019184
cristy8b350f62009-11-15 23:12:43 +000019185$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019186
19187 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19188fi
19189
19190
19191
19192
19193LT_DLPREOPEN=
19194if test -n "$LT_DLLOADERS"
19195then
19196 for lt_loader in $LT_DLLOADERS; do
19197 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19198 done
19199
cristy8b350f62009-11-15 23:12:43 +000019200$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019201
19202fi
19203
19204
19205LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19206
19207
19208ac_ext=c
19209ac_cpp='$CPP $CPPFLAGS'
19210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19212ac_compiler_gnu=$ac_cv_c_compiler_gnu
19213
19214
cristy8b350f62009-11-15 23:12:43 +000019215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019216$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019217if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019218 $as_echo_n "(cached) " >&6
19219else
19220 lt_cv_sys_symbol_underscore=no
19221 cat > conftest.$ac_ext <<_LT_EOF
19222void nm_test_func(){}
19223int main(){nm_test_func;return 0;}
19224_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019226 (eval $ac_compile) 2>&5
19227 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19229 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000019230 # Now try to grab the symbols.
19231 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000019232 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 +000019233 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19234 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19236 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000019237 # See whether the symbols have a leading underscore.
19238 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19239 lt_cv_sys_symbol_underscore=yes
19240 else
19241 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19242 :
19243 else
19244 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19245 fi
19246 fi
19247 else
19248 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19249 fi
19250 else
19251 echo "configure: failed program was:" >&5
19252 cat conftest.c >&5
19253 fi
19254 rm -rf conftest*
19255
19256fi
cristy8b350f62009-11-15 23:12:43 +000019257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019258$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19259 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19260
19261
19262if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19263 if test x"$libltdl_cv_func_dlopen" = xyes ||
19264 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000019265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000019266$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019267if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019268 $as_echo_n "(cached) " >&6
19269else
19270 libltdl_cv_need_uscore=unknown
19271 save_LIBS="$LIBS"
19272 LIBS="$LIBS $LIBADD_DLOPEN"
19273 if test "$cross_compiling" = yes; then :
19274 libltdl_cv_need_uscore=cross
19275else
19276 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19277 lt_status=$lt_dlunknown
19278 cat > conftest.$ac_ext <<_LT_EOF
cristy232a9ab2010-06-26 01:02:54 +000019279#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000019280#include "confdefs.h"
19281
19282#if HAVE_DLFCN_H
19283#include <dlfcn.h>
19284#endif
19285
19286#include <stdio.h>
19287
19288#ifdef RTLD_GLOBAL
19289# define LT_DLGLOBAL RTLD_GLOBAL
19290#else
19291# ifdef DL_GLOBAL
19292# define LT_DLGLOBAL DL_GLOBAL
19293# else
19294# define LT_DLGLOBAL 0
19295# endif
19296#endif
19297
19298/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19299 find out it does not work in some platform. */
19300#ifndef LT_DLLAZY_OR_NOW
19301# ifdef RTLD_LAZY
19302# define LT_DLLAZY_OR_NOW RTLD_LAZY
19303# else
19304# ifdef DL_LAZY
19305# define LT_DLLAZY_OR_NOW DL_LAZY
19306# else
19307# ifdef RTLD_NOW
19308# define LT_DLLAZY_OR_NOW RTLD_NOW
19309# else
19310# ifdef DL_NOW
19311# define LT_DLLAZY_OR_NOW DL_NOW
19312# else
19313# define LT_DLLAZY_OR_NOW 0
19314# endif
19315# endif
19316# endif
19317# endif
19318#endif
19319
cristy232a9ab2010-06-26 01:02:54 +000019320/* When -fvisbility=hidden is used, assume the code has been annotated
19321 correspondingly for the symbols needed. */
19322#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19323void fnord () __attribute__((visibility("default")));
19324#endif
19325
19326void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000019327int main ()
19328{
19329 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19330 int status = $lt_dlunknown;
19331
19332 if (self)
19333 {
19334 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy232a9ab2010-06-26 01:02:54 +000019335 else
19336 {
19337 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19338 else puts (dlerror ());
19339 }
cristy3ed852e2009-09-05 21:47:34 +000019340 /* dlclose (self); */
19341 }
19342 else
19343 puts (dlerror ());
19344
19345 return status;
19346}
19347_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019349 (eval $ac_link) 2>&5
19350 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19352 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000019353 (./conftest; exit; ) >&5 2>/dev/null
19354 lt_status=$?
19355 case x$lt_status in
19356 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19357 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19358 x$lt_dlunknown|x*) ;;
19359 esac
19360 else :
19361 # compilation failed
19362
19363 fi
19364fi
19365rm -fr conftest*
19366
19367 LIBS="$save_LIBS"
19368
19369fi
cristy8b350f62009-11-15 23:12:43 +000019370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019371$as_echo "$libltdl_cv_need_uscore" >&6; }
19372 fi
19373fi
19374
19375if test x"$libltdl_cv_need_uscore" = xyes; then
19376
cristy8b350f62009-11-15 23:12:43 +000019377$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019378
19379fi
19380
cristy8b350f62009-11-15 23:12:43 +000019381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019382$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019383if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019384 $as_echo_n "(cached) " >&6
19385else
19386 # PORTME does your system automatically load deplibs for dlopen?
19387 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19388 # For now, we just catch OSes we know something about -- in the
19389 # future, we'll try test this programmatically.
19390 lt_cv_sys_dlopen_deplibs=unknown
19391 case $host_os in
19392 aix3*|aix4.1.*|aix4.2.*)
19393 # Unknown whether this is true for these versions of AIX, but
19394 # we want this `case' here to explicitly catch those versions.
19395 lt_cv_sys_dlopen_deplibs=unknown
19396 ;;
19397 aix[4-9]*)
19398 lt_cv_sys_dlopen_deplibs=yes
19399 ;;
19400 amigaos*)
19401 case $host_cpu in
19402 powerpc)
19403 lt_cv_sys_dlopen_deplibs=no
19404 ;;
19405 esac
19406 ;;
19407 darwin*)
19408 # Assuming the user has installed a libdl from somewhere, this is true
19409 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19410 lt_cv_sys_dlopen_deplibs=yes
19411 ;;
19412 freebsd* | dragonfly*)
19413 lt_cv_sys_dlopen_deplibs=yes
19414 ;;
cristy232a9ab2010-06-26 01:02:54 +000019415 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000019416 # GNU and its variants, using gnu ld.so (Glibc)
19417 lt_cv_sys_dlopen_deplibs=yes
19418 ;;
19419 hpux10*|hpux11*)
19420 lt_cv_sys_dlopen_deplibs=yes
19421 ;;
19422 interix*)
19423 lt_cv_sys_dlopen_deplibs=yes
19424 ;;
19425 irix[12345]*|irix6.[01]*)
19426 # Catch all versions of IRIX before 6.2, and indicate that we don't
19427 # know how it worked for any of those versions.
19428 lt_cv_sys_dlopen_deplibs=unknown
19429 ;;
19430 irix*)
19431 # The case above catches anything before 6.2, and it's known that
19432 # at 6.2 and later dlopen does load deplibs.
19433 lt_cv_sys_dlopen_deplibs=yes
19434 ;;
19435 netbsd*)
19436 lt_cv_sys_dlopen_deplibs=yes
19437 ;;
19438 openbsd*)
19439 lt_cv_sys_dlopen_deplibs=yes
19440 ;;
19441 osf[1234]*)
19442 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19443 # it did *not* use an RPATH in a shared library to find objects the
19444 # library depends on, so we explicitly say `no'.
19445 lt_cv_sys_dlopen_deplibs=no
19446 ;;
19447 osf5.0|osf5.0a|osf5.1)
19448 # dlopen *does* load deplibs and with the right loader patch applied
19449 # it even uses RPATH in a shared library to search for shared objects
19450 # that the library depends on, but there's no easy way to know if that
19451 # patch is installed. Since this is the case, all we can really
19452 # say is unknown -- it depends on the patch being installed. If
19453 # it is, this changes to `yes'. Without it, it would be `no'.
19454 lt_cv_sys_dlopen_deplibs=unknown
19455 ;;
19456 osf*)
19457 # the two cases above should catch all versions of osf <= 5.1. Read
19458 # the comments above for what we know about them.
19459 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19460 # is used to find them so we can finally say `yes'.
19461 lt_cv_sys_dlopen_deplibs=yes
19462 ;;
19463 qnx*)
19464 lt_cv_sys_dlopen_deplibs=yes
19465 ;;
19466 solaris*)
19467 lt_cv_sys_dlopen_deplibs=yes
19468 ;;
19469 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19470 libltdl_cv_sys_dlopen_deplibs=yes
19471 ;;
19472 esac
19473
19474fi
cristy8b350f62009-11-15 23:12:43 +000019475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000019476$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19477if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19478
cristy8b350f62009-11-15 23:12:43 +000019479$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019480
19481fi
19482
19483:
19484
cristy3ed852e2009-09-05 21:47:34 +000019485for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000019486do :
19487 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19488"
19489if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019490 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019491#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000019492_ACEOF
19493
19494fi
19495
19496done
19497
19498
cristy8b350f62009-11-15 23:12:43 +000019499ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000019500# include <argz.h>
19501#endif
cristy8b350f62009-11-15 23:12:43 +000019502"
19503if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019504
19505cat >>confdefs.h <<_ACEOF
19506#define HAVE_ERROR_T 1
19507_ACEOF
19508
19509
19510else
19511
cristy8b350f62009-11-15 23:12:43 +000019512$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019513
19514
cristy8b350f62009-11-15 23:12:43 +000019515$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019516
19517fi
19518
19519
19520ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000019521for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19522 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000019523do :
19524 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19525ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy0684af42010-07-09 00:00:05 +000019526if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019527 cat >>confdefs.h <<_ACEOF
19528#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19529_ACEOF
19530
19531else
19532 ARGZ_H=argz.h;
19533
19534 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19535
19536fi
19537done
19538
19539
cristy8b350f62009-11-15 23:12:43 +000019540if test -z "$ARGZ_H"; then :
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019542$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019543if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019544 $as_echo_n "(cached) " >&6
19545else
19546 case $host_os in #(
19547 *cygwin*)
19548 lt_cv_sys_argz_works=no
19549 if test "$cross_compiling" != no; then
19550 lt_cv_sys_argz_works="guessing no"
19551 else
19552 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19553 save_IFS=$IFS
19554 IFS=-.
19555 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19556 IFS=$save_IFS
19557 lt_os_major=${2-0}
19558 lt_os_minor=${3-0}
19559 lt_os_micro=${4-0}
19560 if test "$lt_os_major" -gt 1 \
19561 || { test "$lt_os_major" -eq 1 \
19562 && { test "$lt_os_minor" -gt 5 \
19563 || { test "$lt_os_minor" -eq 5 \
19564 && test "$lt_os_micro" -gt 24; }; }; }; then
19565 lt_cv_sys_argz_works=yes
19566 fi
19567 fi
19568 ;; #(
19569 *) lt_cv_sys_argz_works=yes ;;
19570 esac
19571fi
cristy8b350f62009-11-15 23:12:43 +000019572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019573$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019574 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019575
cristy8b350f62009-11-15 23:12:43 +000019576$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019577
19578else
19579 ARGZ_H=argz.h
19580
19581
19582 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19583
19584fi
cristy3ed852e2009-09-05 21:47:34 +000019585fi
19586
19587
19588
cristy8b350f62009-11-15 23:12:43 +000019589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019590$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019591if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019592 $as_echo_n "(cached) " >&6
19593else
19594 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19595 libltdl_cv_preloaded_symbols=yes
19596 else
19597 libltdl_cv_preloaded_symbols=no
19598 fi
19599
19600fi
cristy8b350f62009-11-15 23:12:43 +000019601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019602$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19603if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19604
cristy8b350f62009-11-15 23:12:43 +000019605$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019606
19607fi
19608
19609# Set options
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000019622if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019623 withval=$with_included_ltdl;
19624fi
19625
19626
19627if test "x$with_included_ltdl" != xyes; then
19628 # We are not being forced to use the included libltdl sources, so
19629 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000019630 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000019631
cristy8b350f62009-11-15 23:12:43 +000019632"
19633if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19634 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 +000019635 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000019636"
19637if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000019639$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019640if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019641 $as_echo_n "(cached) " >&6
19642else
19643 ac_check_lib_save_LIBS=$LIBS
19644LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019646/* end confdefs.h. */
19647
19648/* Override any GCC internal prototype to avoid an error.
19649 Use char because int might match the return type of a GCC
19650 builtin and then its argument prototype would still apply. */
19651#ifdef __cplusplus
19652extern "C"
19653#endif
19654char lt_dladvise_preload ();
19655int
19656main ()
19657{
19658return lt_dladvise_preload ();
19659 ;
19660 return 0;
19661}
19662_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019663if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019664 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19665else
cristy8b350f62009-11-15 23:12:43 +000019666 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000019667fi
cristy8b350f62009-11-15 23:12:43 +000019668rm -f core conftest.err conftest.$ac_objext \
19669 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019670LIBS=$ac_check_lib_save_LIBS
19671fi
cristy8b350f62009-11-15 23:12:43 +000019672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000019673$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019674if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019675 with_included_ltdl=no
19676else
19677 with_included_ltdl=yes
19678fi
19679
19680else
19681 with_included_ltdl=yes
19682fi
19683
19684else
19685 with_included_ltdl=yes
19686fi
19687
19688
19689fi
19690
19691
19692
19693
19694# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000019695if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019696 withval=$with_ltdl_include;
19697fi
19698
19699
19700if test -n "$with_ltdl_include"; then
19701 if test -f "$with_ltdl_include/ltdl.h"; then :
19702 else
cristy0684af42010-07-09 00:00:05 +000019703 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019704 fi
19705else
19706 with_ltdl_include=no
19707fi
19708
19709
19710# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000019711if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019712 withval=$with_ltdl_lib;
19713fi
19714
19715
19716if test -n "$with_ltdl_lib"; then
19717 if test -f "$with_ltdl_lib/libltdl.la"; then :
19718 else
cristy0684af42010-07-09 00:00:05 +000019719 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019720 fi
19721else
19722 with_ltdl_lib=no
19723fi
19724
19725case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19726 ,yes,no,no,)
19727 case $enable_ltdl_convenience in
cristy0684af42010-07-09 00:00:05 +000019728 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019729 "") enable_ltdl_convenience=yes
19730 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19731esac
19732LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19733LTDLDEPS=$LIBLTDL
19734LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19735
19736
19737
19738
19739
19740# For backwards non-gettext consistent compatibility...
19741INCLTDL="$LTDLINCL"
19742
19743
19744 ;;
19745 ,no,no,no,)
19746 # If the included ltdl is not to be used, then use the
19747 # preinstalled libltdl we found.
19748
cristy8b350f62009-11-15 23:12:43 +000019749$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019750
19751 LIBLTDL=-lltdl
19752 LTDLDEPS=
19753 LTDLINCL=
19754 ;;
19755 ,no*,no,*)
cristy0684af42010-07-09 00:00:05 +000019756 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019757 ;;
19758 *) with_included_ltdl=no
19759 LIBLTDL="-L$with_ltdl_lib -lltdl"
19760 LTDLDEPS=
19761 LTDLINCL="-I$with_ltdl_include"
19762 ;;
19763esac
19764INCLTDL="$LTDLINCL"
19765
19766# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000019767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000019768$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019770$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000019772$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019774$as_echo "$LIBLTDL" >&6; }
19775
19776
19777
19778# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000019779if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019780 enableval=$enable_ltdl_install;
19781fi
19782
19783
19784case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19785 *yes*) ;;
19786 *) enable_ltdl_convenience=yes ;;
19787esac
19788
19789 if test x"${enable_ltdl_install-no}" != xno; then
19790 INSTALL_LTDL_TRUE=
19791 INSTALL_LTDL_FALSE='#'
19792else
19793 INSTALL_LTDL_TRUE='#'
19794 INSTALL_LTDL_FALSE=
19795fi
19796
19797 if test x"${enable_ltdl_convenience-no}" != xno; then
19798 CONVENIENCE_LTDL_TRUE=
19799 CONVENIENCE_LTDL_FALSE='#'
19800else
19801 CONVENIENCE_LTDL_TRUE='#'
19802 CONVENIENCE_LTDL_FALSE=
19803fi
19804
19805
19806
19807
19808
19809
cristy3ed852e2009-09-05 21:47:34 +000019810# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19811# the user used. This is so that ltdl.h can pick up the parent projects
19812# config.h file, The first file in AC_CONFIG_HEADERS must contain the
19813# definitions required by ltdl.c.
19814# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19815
19816
19817
cristy3ed852e2009-09-05 21:47:34 +000019818for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000019819do :
19820 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19821ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19822"
cristy0684af42010-07-09 00:00:05 +000019823if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019824 cat >>confdefs.h <<_ACEOF
19825#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19826_ACEOF
19827
19828fi
19829
19830done
19831
19832
cristy3ed852e2009-09-05 21:47:34 +000019833for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000019834do :
19835 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19836ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy0684af42010-07-09 00:00:05 +000019837if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019838 cat >>confdefs.h <<_ACEOF
19839#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19840_ACEOF
19841
19842else
19843
19844
19845 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
19846
19847fi
19848done
19849
cristy3ed852e2009-09-05 21:47:34 +000019850for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000019851do :
19852 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19853ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy0684af42010-07-09 00:00:05 +000019854if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019855 cat >>confdefs.h <<_ACEOF
19856#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19857_ACEOF
19858
19859else
19860
19861
19862 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
19863
19864fi
19865done
19866
19867
19868
19869cat >>confdefs.h <<_ACEOF
19870#define LT_LIBEXT "$libext"
19871_ACEOF
19872
19873
19874name=ltdl
19875LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
19876
19877
19878
19879
19880
19881
19882
19883
19884# Only expand once:
19885
19886
19887
19888# Check to see if building shared libraries
19889libtool_build_shared_libs='no'
19890if test "$enable_shared" = 'yes'; then
19891 libtool_build_shared_libs='yes'
19892fi
19893
19894# Check to see if building static libraries
19895libtool_build_static_libs='no'
19896if test "$enable_static" = 'yes'; then
19897 libtool_build_static_libs='yes'
19898fi
19899
cristyfa112112010-01-04 17:48:07 +000019900 if test "${libtool_build_shared_libs}" = 'yes'; then
19901 WITH_SHARED_LIBS_TRUE=
19902 WITH_SHARED_LIBS_FALSE='#'
19903else
19904 WITH_SHARED_LIBS_TRUE='#'
19905 WITH_SHARED_LIBS_FALSE=
cristy3ed852e2009-09-05 21:47:34 +000019906fi
19907
19908#
19909# Enable support for building loadable modules
19910#
19911
19912# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000019913if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019914 withval=$with_modules; with_modules=$withval
19915else
cristy5a1cefd2010-01-06 20:42:35 +000019916 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000019917fi
19918
19919
19920# Only allow building loadable modules if we are building shared libraries
19921if test "$with_modules" != 'no' ; then
19922 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000019923 { $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 +000019924$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
19925 with_modules='no'
19926 fi
19927fi
19928if test "$with_modules" != 'no'; then
19929
cristy8b350f62009-11-15 23:12:43 +000019930$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019931
19932fi
19933 if test "$with_modules" != 'no'; then
19934 WITH_MODULES_TRUE=
19935 WITH_MODULES_FALSE='#'
19936else
19937 WITH_MODULES_TRUE='#'
19938 WITH_MODULES_FALSE=
19939fi
19940
19941
19942# Enable building/use of libltdl if we are building shared libraries regardless
19943# of whether modules are built or not.
19944with_ltdl='no'
19945if test "$libtool_build_shared_libs" != 'no'; then
19946 with_ltdl='yes'
19947fi
19948
19949 if test "$with_ltdl" != 'no'; then
19950 WITH_LTDL_TRUE=
19951 WITH_LTDL_FALSE='#'
19952else
19953 WITH_LTDL_TRUE='#'
19954 WITH_LTDL_FALSE=
19955fi
19956
19957if test "$with_ltdl" != 'no'; then
19958
cristy8b350f62009-11-15 23:12:43 +000019959$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019960
19961
19962 # Set DLLDFLAGS
19963 if test X"$enable_shared" = Xyes; then
19964 DLLDFLAGS=-export-dynamic
19965
19966 fi
19967fi
19968
19969# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000019970# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000019971# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000019972if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019973 enableval=$enable_delegate_build; enable_delegate_build=$enableval
19974else
19975 enable_delegate_build='no'
19976fi
19977
19978
19979# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000019980if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019981 enableval=$enable_deprecated; enable_deprecated=$enableval
19982else
19983 enable_deprecated='no'
19984fi
19985
19986
19987if test "$enable_deprecated" = 'yes'; then
19988
cristy8b350f62009-11-15 23:12:43 +000019989$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019990
19991else
19992 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
19993fi
19994
19995# Build a version of ImageMagick which operates uninstalled.
19996# Used to build distributions located via MAGICK_HOME / executable path
19997# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000019998if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019999 enableval=$enable_installed; enable_installed=$enableval
20000else
20001 enable_installed='yes'
20002fi
20003
20004
20005if test "$enable_installed" = 'yes'; then
20006
cristy8b350f62009-11-15 23:12:43 +000020007$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020008
20009else
20010 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20011fi
20012
20013# Permit enciphering and deciphering image pixels.
20014# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020015if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020016 enableval=$enable_cipher; enable_cipher=$enableval
20017else
20018 enable_cipher='yes'
20019fi
20020
20021
20022if test "$enable_cipher" = 'yes'; then
20023
cristy8b350f62009-11-15 23:12:43 +000020024$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020025
20026fi
20027
20028# Build an embeddable version of ImageMagick.
20029# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020030if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020031 enableval=$enable_embeddable; enable_embeddable=$enableval
20032else
20033 enable_embeddable='no'
20034fi
20035
20036
20037if test "$enable_embeddable" = 'yes'; then
20038
cristy8b350f62009-11-15 23:12:43 +000020039$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020040
20041fi
20042
20043# Build a high dynamic range version of ImageMagick.
20044# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020045if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020046 enableval=$enable_hdri; enable_hdri=$enableval
20047else
20048 enable_hdri='no'
20049fi
20050
20051
20052MAGICK_HDRI=""
20053if test "$enable_hdri" = 'yes'; then
20054 MAGICK_HDRI="HDRI"
20055
cristy8b350f62009-11-15 23:12:43 +000020056$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020057
20058fi
20059
cristy3ed852e2009-09-05 21:47:34 +000020060# Build a version of ImageMagick with assert statements.
20061# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020062if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020063 enableval=$enable_assert; enable_assert=$enableval
20064else
20065 enable_assert='yes'
20066fi
20067
20068
20069if test "$enable_assert" = 'no'; then
20070
cristy8b350f62009-11-15 23:12:43 +000020071$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020072
20073fi
20074
20075# Add configure option --enable-maintainer-mode which enables dependency
20076# checking and generation useful to package maintainers. This is made an
20077# option to avoid confusing end users.
20078
cristy8b350f62009-11-15 23:12:43 +000020079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000020080$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20081 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000020082if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020083 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20084else
20085 USE_MAINTAINER_MODE=no
20086fi
20087
cristy8b350f62009-11-15 23:12:43 +000020088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000020089$as_echo "$USE_MAINTAINER_MODE" >&6; }
20090 if test $USE_MAINTAINER_MODE = yes; then
20091 MAINTAINER_MODE_TRUE=
20092 MAINTAINER_MODE_FALSE='#'
20093else
20094 MAINTAINER_MODE_TRUE='#'
20095 MAINTAINER_MODE_FALSE=
20096fi
20097
20098 MAINT=$MAINTAINER_MODE_TRUE
20099
20100
20101
20102
20103# Enable ccmalloc memory debugging support
20104# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020105if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020106 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20107else
20108 enable_ccmalloc='no'
20109fi
20110
20111
20112# Enable Electric Fence memory debugging support
20113# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020114if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020115 enableval=$enable_efence; enable_efence=$enableval
20116else
20117 enable_efence='no'
20118fi
20119
20120
20121# Enable prof-based profiling support
20122# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020123if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020124 enableval=$enable_prof; enable_prof=$enableval
20125else
20126 enable_prof='no'
20127fi
20128
20129
20130# Enable gprof-based profiling support
20131# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020132if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020133 enableval=$enable_gprof; enable_gprof=$enableval
20134else
20135 enable_gprof='no'
20136fi
20137
20138
20139# Enable gcov-based profiling support
20140# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020141if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020142 enableval=$enable_gcov; enable_gcov=$enableval
20143else
20144 enable_gcov='no'
20145fi
20146
20147
20148enable_profiling='no'
20149if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20150 enable_profiling='yes'
20151 if test "$libtool_build_shared_libs" = 'yes'; then
20152 echo "Warning: Can not profile code using shared libraries"
20153 fi
20154fi
20155
20156# Magick API method prefix
20157
20158# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020159if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020160 withval=$with_method_prefix; with_method_prefix=$enableval
20161else
20162 with_method_prefix=''
20163fi
20164
20165
20166if test "$with_method_prefix" != ''; then
20167
20168cat >>confdefs.h <<_ACEOF
20169#define NAMESPACE_PREFIX $with_method_prefix
20170_ACEOF
20171
20172fi
20173
20174# Number of bits in a Quantum
20175
20176# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020177if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020178 withval=$with_quantum_depth; with_quantum_depth=$withval
20179else
20180 with_quantum_depth=16
20181fi
20182
20183
20184if test "$with_quantum_depth" != '8'; then
20185 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20186fi
20187
20188case "${with_quantum_depth}" in
20189 8 ) ;;
20190 16 ) ;;
20191 32 ) ;;
20192 64 ) ;;
cristy0684af42010-07-09 00:00:05 +000020193 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000020194esac
20195QUANTUM_DEPTH="$with_quantum_depth"
20196
20197cat >>confdefs.h <<_ACEOF
20198#define QUANTUM_DEPTH $QUANTUM_DEPTH
20199_ACEOF
20200
20201
20202# Set pixel cache threshold
20203
20204# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000020205if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020206 withval=$with_cache; with_cache=$withval
20207else
20208 with_cache=''
20209fi
20210
20211
20212if test "$with_cache" != ''; then
20213
20214cat >>confdefs.h <<_ACEOF
20215#define PixelCacheThreshold $with_cache
20216_ACEOF
20217
20218 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20219fi
20220
20221# Disable/Enable support for full delegate paths
20222
20223# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000020224if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020225 withval=$with_frozenpaths; with_frozenpaths=$withval
20226else
20227 with_frozenpaths='no'
20228fi
20229
20230
20231# Enable build/install of Magick++
20232
20233# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000020234if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020235 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20236else
20237 with_magick_plus_plus='yes'
20238fi
20239
20240
20241# Disable build/install of PerlMagick.
20242
20243# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000020244if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020245 withval=$with_perl; with_perl=$withval
20246else
cristyb5f4e2f2010-04-25 00:49:11 +000020247 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000020248fi
20249
20250
20251# Options to pass when configuring PerlMagick
20252
20253# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000020254if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000020255 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000020256fi
20257
20258
cristy3ed852e2009-09-05 21:47:34 +000020259
20260# Enable umem, object-caching memory allocation library.
20261
20262# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000020263if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020264 withval=$with_umem; with_umem=$withval
20265else
20266 with_umem='no'
20267fi
20268
20269if test "$with_umem" != 'yes' ; then
20270 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20271fi
20272
20273#
20274# Specify path to shared libstdc++ if not in normal location
20275#
20276
20277# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000020278if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020279 withval=$with_libstdc; with_libstdc=$withval
20280else
20281 with_libstdc=''
20282fi
20283
20284
20285if test "$with_libstdc" != ''; then
20286 if test -d "$with_libstdc"; then
20287 LIBSTDCLDFLAGS="-L$with_libstdc"
20288 fi
20289fi
20290
20291
20292# Does gcc required -traditional?
20293if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000020294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020295$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020296if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020297 $as_echo_n "(cached) " >&6
20298else
20299 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000020300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020301/* end confdefs.h. */
20302#include <sgtty.h>
20303Autoconf TIOCGETP
20304_ACEOF
20305if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020306 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020307 ac_cv_prog_gcc_traditional=yes
20308else
20309 ac_cv_prog_gcc_traditional=no
20310fi
20311rm -f conftest*
20312
20313
20314 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000020315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020316/* end confdefs.h. */
20317#include <termio.h>
20318Autoconf TCGETA
20319_ACEOF
20320if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020321 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020322 ac_cv_prog_gcc_traditional=yes
20323fi
20324rm -f conftest*
20325
20326 fi
20327fi
cristy8b350f62009-11-15 23:12:43 +000020328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020329$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20330 if test $ac_cv_prog_gcc_traditional = yes; then
20331 CC="$CC -traditional"
20332 fi
20333fi
20334
20335
20336########
20337#
20338# Set defines required to build DLLs and modules using MinGW
20339#
20340########
20341# These options are set for multi-thread DLL module build
20342# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20343# module: _DLL
20344# executable/Magick++: _DLL _MAGICKMOD_
20345MODULE_EXTRA_CPPFLAGS=''
20346LIBRARY_EXTRA_CPPFLAGS=''
20347if test "${native_win32_build}" = 'yes'; then
20348 if test "${libtool_build_shared_libs}" = 'yes'; then
20349 CPPFLAGS="$CPPFLAGS -D_DLL"
20350 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20351 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20352 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20353 if test "$with_modules" = 'yes'; then
20354 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20355 else
20356 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20357 fi
20358 else
20359 CPPFLAGS="$CPPFLAGS -D_LIB"
20360 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20361 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20362 fi
20363 if test "$with_threads" = 'yes'; then
20364 CPPFLAGS="$CPPFLAGS -D_MT"
20365 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20366 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20367 fi
20368fi
20369
20370
20371
20372# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000020373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000020374$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020375if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020376 $as_echo_n "(cached) " >&6
20377else
cristy8b350f62009-11-15 23:12:43 +000020378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020379/* end confdefs.h. */
20380#include <stdlib.h>
20381#include <stdarg.h>
20382#include <string.h>
20383#include <float.h>
20384
20385int
20386main ()
20387{
20388
20389 ;
20390 return 0;
20391}
20392_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020393if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020394 ac_cv_header_stdc=yes
20395else
cristy8b350f62009-11-15 23:12:43 +000020396 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020397fi
cristy3ed852e2009-09-05 21:47:34 +000020398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20399
20400if test $ac_cv_header_stdc = yes; then
20401 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020403/* end confdefs.h. */
20404#include <string.h>
20405
20406_ACEOF
20407if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020408 $EGREP "memchr" >/dev/null 2>&1; then :
20409
cristy3ed852e2009-09-05 21:47:34 +000020410else
20411 ac_cv_header_stdc=no
20412fi
20413rm -f conftest*
20414
20415fi
20416
20417if test $ac_cv_header_stdc = yes; then
20418 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020420/* end confdefs.h. */
20421#include <stdlib.h>
20422
20423_ACEOF
20424if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020425 $EGREP "free" >/dev/null 2>&1; then :
20426
cristy3ed852e2009-09-05 21:47:34 +000020427else
20428 ac_cv_header_stdc=no
20429fi
20430rm -f conftest*
20431
20432fi
20433
20434if test $ac_cv_header_stdc = yes; then
20435 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000020436 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020437 :
20438else
cristy8b350f62009-11-15 23:12:43 +000020439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020440/* end confdefs.h. */
20441#include <ctype.h>
20442#include <stdlib.h>
20443#if ((' ' & 0x0FF) == 0x020)
20444# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20445# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20446#else
20447# define ISLOWER(c) \
20448 (('a' <= (c) && (c) <= 'i') \
20449 || ('j' <= (c) && (c) <= 'r') \
20450 || ('s' <= (c) && (c) <= 'z'))
20451# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20452#endif
20453
20454#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20455int
20456main ()
20457{
20458 int i;
20459 for (i = 0; i < 256; i++)
20460 if (XOR (islower (i), ISLOWER (i))
20461 || toupper (i) != TOUPPER (i))
20462 return 2;
20463 return 0;
20464}
20465_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020466if ac_fn_c_try_run "$LINENO"; then :
20467
cristy3ed852e2009-09-05 21:47:34 +000020468else
cristy8b350f62009-11-15 23:12:43 +000020469 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020470fi
cristy8b350f62009-11-15 23:12:43 +000020471rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20472 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020473fi
20474
cristy3ed852e2009-09-05 21:47:34 +000020475fi
20476fi
cristy8b350f62009-11-15 23:12:43 +000020477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000020478$as_echo "$ac_cv_header_stdc" >&6; }
20479if test $ac_cv_header_stdc = yes; then
20480
cristy8b350f62009-11-15 23:12:43 +000020481$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020482
20483fi
20484
20485if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000020486 { $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 +000020487 header files. Compilation cannot proceed. Please install the ANSI C
20488 headers and rerun this script." >&5
20489$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20490 header files. Compilation cannot proceed. Please install the ANSI C
20491 headers and rerun this script." >&2;};
20492fi
cristya0b81c32010-01-22 02:54:33 +000020493
20494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20495$as_echo_n "checking whether to enable assertions... " >&6; }
20496 # Check whether --enable-assert was given.
20497if test "${enable_assert+set}" = set; then :
20498 enableval=$enable_assert; ac_enable_assert=$enableval
20499 if test "x$enableval" = xno; then :
20500
20501$as_echo "#define NDEBUG 1" >>confdefs.h
20502
20503elif test "x$enableval" != xyes; then :
20504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20505$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20506 ac_enable_assert=yes
20507fi
20508else
20509 ac_enable_assert=yes
20510fi
20511
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20513$as_echo "$ac_enable_assert" >&6; }
20514
cristy3ed852e2009-09-05 21:47:34 +000020515ac_header_dirent=no
20516for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20517 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020519$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy0684af42010-07-09 00:00:05 +000020520if eval "test \"\${$as_ac_Header+set}\"" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020521 $as_echo_n "(cached) " >&6
20522else
cristy8b350f62009-11-15 23:12:43 +000020523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020524/* end confdefs.h. */
20525#include <sys/types.h>
20526#include <$ac_hdr>
20527
20528int
20529main ()
20530{
20531if ((DIR *) 0)
20532return 0;
20533 ;
20534 return 0;
20535}
20536_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020537if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020538 eval "$as_ac_Header=yes"
20539else
cristy8b350f62009-11-15 23:12:43 +000020540 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020541fi
cristy3ed852e2009-09-05 21:47:34 +000020542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20543fi
cristy8b350f62009-11-15 23:12:43 +000020544eval ac_res=\$$as_ac_Header
20545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020546$as_echo "$ac_res" >&6; }
cristy0684af42010-07-09 00:00:05 +000020547if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000020548 cat >>confdefs.h <<_ACEOF
20549#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20550_ACEOF
20551
20552ac_header_dirent=$ac_hdr; break
20553fi
20554
20555done
20556# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20557if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020559$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020560if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020561 $as_echo_n "(cached) " >&6
20562else
20563 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020565/* end confdefs.h. */
20566
20567/* Override any GCC internal prototype to avoid an error.
20568 Use char because int might match the return type of a GCC
20569 builtin and then its argument prototype would still apply. */
20570#ifdef __cplusplus
20571extern "C"
20572#endif
20573char opendir ();
20574int
20575main ()
20576{
20577return opendir ();
20578 ;
20579 return 0;
20580}
20581_ACEOF
20582for ac_lib in '' dir; do
20583 if test -z "$ac_lib"; then
20584 ac_res="none required"
20585 else
20586 ac_res=-l$ac_lib
20587 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20588 fi
cristy8b350f62009-11-15 23:12:43 +000020589 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020590 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020591fi
cristy8b350f62009-11-15 23:12:43 +000020592rm -f core conftest.err conftest.$ac_objext \
20593 conftest$ac_exeext
20594 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020595 break
20596fi
20597done
cristy8b350f62009-11-15 23:12:43 +000020598if test "${ac_cv_search_opendir+set}" = set; then :
20599
cristy3ed852e2009-09-05 21:47:34 +000020600else
20601 ac_cv_search_opendir=no
20602fi
20603rm conftest.$ac_ext
20604LIBS=$ac_func_search_save_LIBS
20605fi
cristy8b350f62009-11-15 23:12:43 +000020606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020607$as_echo "$ac_cv_search_opendir" >&6; }
20608ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020609if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20611
20612fi
20613
20614else
cristy8b350f62009-11-15 23:12:43 +000020615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020616$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020617if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020618 $as_echo_n "(cached) " >&6
20619else
20620 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020622/* end confdefs.h. */
20623
20624/* Override any GCC internal prototype to avoid an error.
20625 Use char because int might match the return type of a GCC
20626 builtin and then its argument prototype would still apply. */
20627#ifdef __cplusplus
20628extern "C"
20629#endif
20630char opendir ();
20631int
20632main ()
20633{
20634return opendir ();
20635 ;
20636 return 0;
20637}
20638_ACEOF
20639for ac_lib in '' x; do
20640 if test -z "$ac_lib"; then
20641 ac_res="none required"
20642 else
20643 ac_res=-l$ac_lib
20644 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20645 fi
cristy8b350f62009-11-15 23:12:43 +000020646 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020647 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020648fi
cristy8b350f62009-11-15 23:12:43 +000020649rm -f core conftest.err conftest.$ac_objext \
20650 conftest$ac_exeext
20651 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020652 break
20653fi
20654done
cristy8b350f62009-11-15 23:12:43 +000020655if test "${ac_cv_search_opendir+set}" = set; then :
20656
cristy3ed852e2009-09-05 21:47:34 +000020657else
20658 ac_cv_search_opendir=no
20659fi
20660rm conftest.$ac_ext
20661LIBS=$ac_func_search_save_LIBS
20662fi
cristy8b350f62009-11-15 23:12:43 +000020663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020664$as_echo "$ac_cv_search_opendir" >&6; }
20665ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020666if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020667 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20668
20669fi
20670
20671fi
20672
20673
20674# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020675for 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 +000020676do :
20677 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20678ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy0684af42010-07-09 00:00:05 +000020679if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000020680 cat >>confdefs.h <<_ACEOF
20681#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20682_ACEOF
20683
20684fi
20685
20686done
20687
20688
20689########
20690#
20691# Checks for typedefs, structures, and compiler characteristics.
20692#
20693########
20694
cristy8b350f62009-11-15 23:12:43 +000020695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020696$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020697if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020698 $as_echo_n "(cached) " >&6
20699else
cristy8b350f62009-11-15 23:12:43 +000020700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020701/* end confdefs.h. */
20702
20703#include <stdbool.h>
20704#ifndef bool
20705 "error: bool is not defined"
20706#endif
20707#ifndef false
20708 "error: false is not defined"
20709#endif
20710#if false
20711 "error: false is not 0"
20712#endif
20713#ifndef true
20714 "error: true is not defined"
20715#endif
20716#if true != 1
20717 "error: true is not 1"
20718#endif
20719#ifndef __bool_true_false_are_defined
20720 "error: __bool_true_false_are_defined is not defined"
20721#endif
20722
20723 struct s { _Bool s: 1; _Bool t; } s;
20724
20725 char a[true == 1 ? 1 : -1];
20726 char b[false == 0 ? 1 : -1];
20727 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20728 char d[(bool) 0.5 == true ? 1 : -1];
20729 bool e = &s;
20730 char f[(_Bool) 0.0 == false ? 1 : -1];
20731 char g[true];
20732 char h[sizeof (_Bool)];
20733 char i[sizeof s.t];
20734 enum { j = false, k = true, l = false * true, m = true * 256 };
20735 /* The following fails for
20736 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20737 _Bool n[m];
20738 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20739 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20740# if defined __xlc__ || defined __GNUC__
20741 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20742 reported by James Lemley on 2005-10-05; see
20743 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20744 This test is not quite right, since xlc is allowed to
20745 reject this program, as the initializer for xlcbug is
20746 not one of the forms that C requires support for.
20747 However, doing the test right would require a runtime
20748 test, and that would make cross-compilation harder.
20749 Let us hope that IBM fixes the xlc bug, and also adds
20750 support for this kind of constant expression. In the
20751 meantime, this test will reject xlc, which is OK, since
20752 our stdbool.h substitute should suffice. We also test
20753 this with GCC, where it should work, to detect more
20754 quickly whether someone messes up the test in the
20755 future. */
20756 char digs[] = "0123456789";
20757 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20758# endif
20759 /* Catch a bug in an HP-UX C compiler. See
20760 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20761 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20762 */
20763 _Bool q = true;
20764 _Bool *pq = &q;
20765
20766int
20767main ()
20768{
20769
20770 *pq |= q;
20771 *pq |= ! q;
20772 /* Refer to every declared value, to avoid compiler optimizations. */
20773 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20774 + !m + !n + !o + !p + !q + !pq);
20775
20776 ;
20777 return 0;
20778}
20779_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020780if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020781 ac_cv_header_stdbool_h=yes
20782else
cristy8b350f62009-11-15 23:12:43 +000020783 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000020784fi
cristy3ed852e2009-09-05 21:47:34 +000020785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20786fi
cristy8b350f62009-11-15 23:12:43 +000020787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000020788$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020789ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20790if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020791
20792cat >>confdefs.h <<_ACEOF
20793#define HAVE__BOOL 1
20794_ACEOF
20795
20796
20797fi
20798
20799if test $ac_cv_header_stdbool_h = yes; then
20800
cristy8b350f62009-11-15 23:12:43 +000020801$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020802
20803fi
20804
cristy8b350f62009-11-15 23:12:43 +000020805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020806$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020807if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020808 $as_echo_n "(cached) " >&6
20809else
cristy8b350f62009-11-15 23:12:43 +000020810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020811/* end confdefs.h. */
20812
20813int
20814main ()
20815{
20816
20817volatile int x;
20818int * volatile y = (int *) 0;
20819return !x && !y;
20820 ;
20821 return 0;
20822}
20823_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020824if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020825 ac_cv_c_volatile=yes
20826else
cristy8b350f62009-11-15 23:12:43 +000020827 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000020828fi
cristy3ed852e2009-09-05 21:47:34 +000020829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20830fi
cristy8b350f62009-11-15 23:12:43 +000020831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020832$as_echo "$ac_cv_c_volatile" >&6; }
20833if test $ac_cv_c_volatile = no; then
20834
cristy8b350f62009-11-15 23:12:43 +000020835$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020836
20837fi
20838
cristy8b350f62009-11-15 23:12:43 +000020839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000020840$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020841if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020842 $as_echo_n "(cached) " >&6
20843else
cristy8b350f62009-11-15 23:12:43 +000020844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020845/* end confdefs.h. */
20846#define x(y) #y
20847
20848char *s = x(teststring);
20849_ACEOF
20850if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020851 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020852 ac_cv_c_stringize=no
20853else
20854 ac_cv_c_stringize=yes
20855fi
20856rm -f conftest*
20857
20858fi
cristy8b350f62009-11-15 23:12:43 +000020859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000020860$as_echo "$ac_cv_c_stringize" >&6; }
20861if test $ac_cv_c_stringize = yes; then
20862
cristy8b350f62009-11-15 23:12:43 +000020863$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020864
20865fi
20866
cristy8b350f62009-11-15 23:12:43 +000020867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020868$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020869if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020870 $as_echo_n "(cached) " >&6
20871else
cristy8b350f62009-11-15 23:12:43 +000020872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020873/* end confdefs.h. */
20874#include <sys/types.h>
20875#include <sys/stat.h>
20876
20877#if defined S_ISBLK && defined S_IFDIR
20878extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20879#endif
20880
20881#if defined S_ISBLK && defined S_IFCHR
20882extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20883#endif
20884
20885#if defined S_ISLNK && defined S_IFREG
20886extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20887#endif
20888
20889#if defined S_ISSOCK && defined S_IFREG
20890extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20891#endif
20892
20893_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020894if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020895 ac_cv_header_stat_broken=no
20896else
cristy8b350f62009-11-15 23:12:43 +000020897 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000020898fi
cristy3ed852e2009-09-05 21:47:34 +000020899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20900fi
cristy8b350f62009-11-15 23:12:43 +000020901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020902$as_echo "$ac_cv_header_stat_broken" >&6; }
20903if test $ac_cv_header_stat_broken = yes; then
20904
cristy8b350f62009-11-15 23:12:43 +000020905$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020906
20907fi
20908
cristy8b350f62009-11-15 23:12:43 +000020909{ $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 +000020910$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020911if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020912 $as_echo_n "(cached) " >&6
20913else
cristy8b350f62009-11-15 23:12:43 +000020914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020915/* end confdefs.h. */
20916#include <sys/types.h>
20917#include <sys/time.h>
20918#include <time.h>
20919
20920int
20921main ()
20922{
20923if ((struct tm *) 0)
20924return 0;
20925 ;
20926 return 0;
20927}
20928_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020929if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020930 ac_cv_header_time=yes
20931else
cristy8b350f62009-11-15 23:12:43 +000020932 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000020933fi
cristy3ed852e2009-09-05 21:47:34 +000020934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20935fi
cristy8b350f62009-11-15 23:12:43 +000020936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000020937$as_echo "$ac_cv_header_time" >&6; }
20938if test $ac_cv_header_time = yes; then
20939
cristy8b350f62009-11-15 23:12:43 +000020940$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020941
20942fi
20943
cristy8b350f62009-11-15 23:12:43 +000020944{ $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 +000020945$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020946if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020947 $as_echo_n "(cached) " >&6
20948else
cristy8b350f62009-11-15 23:12:43 +000020949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020950/* end confdefs.h. */
20951#include <sys/types.h>
20952#include <time.h>
20953
20954int
20955main ()
20956{
20957struct tm tm;
20958 int *p = &tm.tm_sec;
20959 return !p;
20960 ;
20961 return 0;
20962}
20963_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020964if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020965 ac_cv_struct_tm=time.h
20966else
cristy8b350f62009-11-15 23:12:43 +000020967 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000020968fi
cristy3ed852e2009-09-05 21:47:34 +000020969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20970fi
cristy8b350f62009-11-15 23:12:43 +000020971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000020972$as_echo "$ac_cv_struct_tm" >&6; }
20973if test $ac_cv_struct_tm = sys/time.h; then
20974
cristy8b350f62009-11-15 23:12:43 +000020975$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020976
20977fi
20978
cristy92703d82010-04-26 00:18:18 +000020979ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
20980#include <$ac_cv_struct_tm>
20981
20982"
20983if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
20984
20985cat >>confdefs.h <<_ACEOF
20986#define HAVE_STRUCT_TM_TM_ZONE 1
20987_ACEOF
20988
20989
20990fi
20991
20992if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20993
20994$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
20995
20996else
20997 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
20998"
20999if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21000 ac_have_decl=1
21001else
21002 ac_have_decl=0
21003fi
21004
21005cat >>confdefs.h <<_ACEOF
21006#define HAVE_DECL_TZNAME $ac_have_decl
21007_ACEOF
21008
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21010$as_echo_n "checking for tzname... " >&6; }
21011if test "${ac_cv_var_tzname+set}" = set; then :
21012 $as_echo_n "(cached) " >&6
21013else
21014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21015/* end confdefs.h. */
21016#include <time.h>
21017#if !HAVE_DECL_TZNAME
21018extern char *tzname[];
21019#endif
21020
21021int
21022main ()
21023{
21024return tzname[0][0];
21025 ;
21026 return 0;
21027}
21028_ACEOF
21029if ac_fn_c_try_link "$LINENO"; then :
21030 ac_cv_var_tzname=yes
21031else
21032 ac_cv_var_tzname=no
21033fi
21034rm -f core conftest.err conftest.$ac_objext \
21035 conftest$ac_exeext conftest.$ac_ext
21036fi
21037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21038$as_echo "$ac_cv_var_tzname" >&6; }
21039 if test $ac_cv_var_tzname = yes; then
21040
21041$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21042
21043 fi
21044fi
21045
cristy8b350f62009-11-15 23:12:43 +000021046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021047$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021048if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021049 $as_echo_n "(cached) " >&6
21050else
21051 echo '#! /bin/cat
21052exit 69
21053' >conftest
21054chmod u+x conftest
21055(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21056if test $? -ne 69; then
21057 ac_cv_sys_interpreter=yes
21058else
21059 ac_cv_sys_interpreter=no
21060fi
21061rm -f conftest
21062fi
cristy8b350f62009-11-15 23:12:43 +000021063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021064$as_echo "$ac_cv_sys_interpreter" >&6; }
21065interpval=$ac_cv_sys_interpreter
21066
21067
cristy3ed852e2009-09-05 21:47:34 +000021068# If the C compiler supports the keyword inline, do nothing. Otherwise
21069# define inline to __inline__ or __inline if it accepts one of those,
21070# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021072$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021073if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021074 $as_echo_n "(cached) " >&6
21075else
21076 ac_cv_c_inline=no
21077for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021079/* end confdefs.h. */
21080#ifndef __cplusplus
21081typedef int foo_t;
21082static $ac_kw foo_t static_foo () {return 0; }
21083$ac_kw foo_t foo () {return 0; }
21084#endif
21085
21086_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021087if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021088 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021089fi
cristy3ed852e2009-09-05 21:47:34 +000021090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21091 test "$ac_cv_c_inline" != no && break
21092done
21093
21094fi
cristy8b350f62009-11-15 23:12:43 +000021095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021096$as_echo "$ac_cv_c_inline" >&6; }
21097
cristy3ed852e2009-09-05 21:47:34 +000021098case $ac_cv_c_inline in
21099 inline | yes) ;;
21100 *)
21101 case $ac_cv_c_inline in
21102 no) ac_val=;;
21103 *) ac_val=$ac_cv_c_inline;;
21104 esac
21105 cat >>confdefs.h <<_ACEOF
21106#ifndef __cplusplus
21107#define inline $ac_val
21108#endif
21109_ACEOF
21110 ;;
21111esac
21112
21113
21114# If the C compiler supports the keyword restrict, do nothing. Otherwise
21115# define restrict to __restrict__ or __restrict if it accepts one of those,
21116# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021118$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021119if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021120 $as_echo_n "(cached) " >&6
21121else
21122 ac_cv_c_restrict=no
21123 # The order here caters to the fact that C++ does not require restrict.
21124 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021126/* end confdefs.h. */
21127typedef int * int_ptr;
21128 int foo (int_ptr $ac_kw ip) {
21129 return ip[0];
21130 }
21131int
21132main ()
21133{
21134int s[1];
21135 int * $ac_kw t = s;
21136 t[0] = 0;
21137 return foo(t)
21138 ;
21139 return 0;
21140}
21141_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021142if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021143 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021144fi
cristy3ed852e2009-09-05 21:47:34 +000021145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21146 test "$ac_cv_c_restrict" != no && break
21147 done
21148
21149fi
cristy8b350f62009-11-15 23:12:43 +000021150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021151$as_echo "$ac_cv_c_restrict" >&6; }
21152
cristy3ed852e2009-09-05 21:47:34 +000021153 case $ac_cv_c_restrict in
21154 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021155 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021156 ;;
21157 *) cat >>confdefs.h <<_ACEOF
21158#define restrict $ac_cv_c_restrict
21159_ACEOF
21160 ;;
21161 esac
21162
21163
21164# If words are stored with the most significant byte first (like
21165# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021167$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021168if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021169 $as_echo_n "(cached) " >&6
21170else
21171 ac_cv_c_bigendian=unknown
21172 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021174/* end confdefs.h. */
21175#ifndef __APPLE_CC__
21176 not a universal capable compiler
21177 #endif
21178 typedef int dummy;
21179
21180_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021181if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021182
21183 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021184 # there are at least two -arch flags with different values.
21185 ac_arch=
21186 ac_prev=
21187 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21188 if test -n "$ac_prev"; then
21189 case $ac_word in
21190 i?86 | x86_64 | ppc | ppc64)
21191 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21192 ac_arch=$ac_word
21193 else
21194 ac_cv_c_bigendian=universal
21195 break
21196 fi
21197 ;;
21198 esac
21199 ac_prev=
21200 elif test "x$ac_word" = "x-arch"; then
21201 ac_prev=arch
21202 fi
21203 done
cristy3ed852e2009-09-05 21:47:34 +000021204fi
cristy3ed852e2009-09-05 21:47:34 +000021205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21206 if test $ac_cv_c_bigendian = unknown; then
21207 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000021208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021209/* end confdefs.h. */
21210#include <sys/types.h>
21211 #include <sys/param.h>
21212
21213int
21214main ()
21215{
21216#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21217 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21218 && LITTLE_ENDIAN)
21219 bogus endian macros
21220 #endif
21221
21222 ;
21223 return 0;
21224}
21225_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021226if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021227 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021229/* end confdefs.h. */
21230#include <sys/types.h>
21231 #include <sys/param.h>
21232
21233int
21234main ()
21235{
21236#if BYTE_ORDER != BIG_ENDIAN
21237 not big endian
21238 #endif
21239
21240 ;
21241 return 0;
21242}
21243_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021244if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021245 ac_cv_c_bigendian=yes
21246else
cristy8b350f62009-11-15 23:12:43 +000021247 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021248fi
cristy3ed852e2009-09-05 21:47:34 +000021249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021250fi
cristy3ed852e2009-09-05 21:47:34 +000021251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21252 fi
21253 if test $ac_cv_c_bigendian = unknown; then
21254 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000021255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021256/* end confdefs.h. */
21257#include <limits.h>
21258
21259int
21260main ()
21261{
21262#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21263 bogus endian macros
21264 #endif
21265
21266 ;
21267 return 0;
21268}
21269_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021270if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021271 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021273/* end confdefs.h. */
21274#include <limits.h>
21275
21276int
21277main ()
21278{
21279#ifndef _BIG_ENDIAN
21280 not big endian
21281 #endif
21282
21283 ;
21284 return 0;
21285}
21286_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021287if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021288 ac_cv_c_bigendian=yes
21289else
cristy8b350f62009-11-15 23:12:43 +000021290 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021291fi
cristy3ed852e2009-09-05 21:47:34 +000021292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021293fi
cristy3ed852e2009-09-05 21:47:34 +000021294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21295 fi
21296 if test $ac_cv_c_bigendian = unknown; then
21297 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000021298 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021299 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000021300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021301/* end confdefs.h. */
21302short int ascii_mm[] =
21303 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21304 short int ascii_ii[] =
21305 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21306 int use_ascii (int i) {
21307 return ascii_mm[i] + ascii_ii[i];
21308 }
21309 short int ebcdic_ii[] =
21310 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21311 short int ebcdic_mm[] =
21312 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21313 int use_ebcdic (int i) {
21314 return ebcdic_mm[i] + ebcdic_ii[i];
21315 }
21316 extern int foo;
21317
21318int
21319main ()
21320{
21321return use_ascii (foo) == use_ebcdic (foo);
21322 ;
21323 return 0;
21324}
21325_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021326if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021327 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21328 ac_cv_c_bigendian=yes
21329 fi
21330 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21331 if test "$ac_cv_c_bigendian" = unknown; then
21332 ac_cv_c_bigendian=no
21333 else
21334 # finding both strings is unlikely to happen, but who knows?
21335 ac_cv_c_bigendian=unknown
21336 fi
21337 fi
cristy3ed852e2009-09-05 21:47:34 +000021338fi
cristy3ed852e2009-09-05 21:47:34 +000021339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21340else
cristy8b350f62009-11-15 23:12:43 +000021341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021342/* end confdefs.h. */
21343$ac_includes_default
21344int
21345main ()
21346{
21347
21348 /* Are we little or big endian? From Harbison&Steele. */
21349 union
21350 {
21351 long int l;
21352 char c[sizeof (long int)];
21353 } u;
21354 u.l = 1;
21355 return u.c[sizeof (long int) - 1] == 1;
21356
21357 ;
21358 return 0;
21359}
21360_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021361if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021362 ac_cv_c_bigendian=no
21363else
cristy8b350f62009-11-15 23:12:43 +000021364 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000021365fi
cristy8b350f62009-11-15 23:12:43 +000021366rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21367 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021368fi
21369
cristy3ed852e2009-09-05 21:47:34 +000021370 fi
21371fi
cristy8b350f62009-11-15 23:12:43 +000021372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021373$as_echo "$ac_cv_c_bigendian" >&6; }
21374 case $ac_cv_c_bigendian in #(
21375 yes)
cristy8b350f62009-11-15 23:12:43 +000021376 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021377;; #(
21378 no)
21379 ;; #(
21380 universal)
21381
cristy8b350f62009-11-15 23:12:43 +000021382$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021383
21384 ;; #(
21385 *)
cristy0684af42010-07-09 00:00:05 +000021386 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000021387 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021388 esac
21389
21390
21391# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021392ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21393if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021394
cristy3ed852e2009-09-05 21:47:34 +000021395else
21396
21397cat >>confdefs.h <<_ACEOF
21398#define mode_t int
21399_ACEOF
21400
21401fi
21402
21403
21404# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021405ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21406if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021407
cristy3ed852e2009-09-05 21:47:34 +000021408else
21409
21410cat >>confdefs.h <<_ACEOF
21411#define off_t long int
21412_ACEOF
21413
21414fi
21415
21416
21417# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021418ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21419if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021420
cristy3ed852e2009-09-05 21:47:34 +000021421else
21422
21423cat >>confdefs.h <<_ACEOF
21424#define pid_t int
21425_ACEOF
21426
21427fi
21428
21429
21430# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021431ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21432if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021433
cristy3ed852e2009-09-05 21:47:34 +000021434else
21435
21436cat >>confdefs.h <<_ACEOF
21437#define size_t unsigned int
21438_ACEOF
21439
21440fi
21441
21442
21443# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021444ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21445if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021446
cristy3ed852e2009-09-05 21:47:34 +000021447else
21448
21449cat >>confdefs.h <<_ACEOF
21450#define ssize_t int
21451_ACEOF
21452
21453fi
21454
21455
21456# If the C compiler supports a working long double type with more range
21457# or precision than the double type, define HAVE_LONG_DOUBLE.
21458
cristy8b350f62009-11-15 23:12:43 +000021459 { $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 +000021460$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021461if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021462 $as_echo_n "(cached) " >&6
21463else
cristy8b350f62009-11-15 23:12:43 +000021464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021465/* end confdefs.h. */
21466#include <float.h>
21467 long double const a[] =
21468 {
21469 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21470 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21471 };
21472 long double
21473 f (long double x)
21474 {
21475 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21476 + (x ? f (x) : 'c'));
21477 }
21478
21479int
21480main ()
21481{
21482static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21483 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21484 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21485 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21486 && (int) LDBL_EPSILON == 0
21487 )];
21488test_array [0] = 0
21489
21490 ;
21491 return 0;
21492}
21493_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021494if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021495 ac_cv_type_long_double_wider=yes
21496else
cristy8b350f62009-11-15 23:12:43 +000021497 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000021498fi
cristy3ed852e2009-09-05 21:47:34 +000021499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21500fi
cristy8b350f62009-11-15 23:12:43 +000021501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000021502$as_echo "$ac_cv_type_long_double_wider" >&6; }
21503 if test $ac_cv_type_long_double_wider = yes; then
21504
cristy8b350f62009-11-15 23:12:43 +000021505$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021506
21507 fi
21508
21509
21510# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21511# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000021512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021513$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021514if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021515 $as_echo_n "(cached) " >&6
21516else
cristy8b350f62009-11-15 23:12:43 +000021517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021518/* end confdefs.h. */
21519$ac_includes_default
21520int
21521main ()
21522{
21523static int test_array [1 - 2 * !(((char) -1) < 0)];
21524test_array [0] = 0
21525
21526 ;
21527 return 0;
21528}
21529_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021530if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021531 ac_cv_c_char_unsigned=no
21532else
cristy8b350f62009-11-15 23:12:43 +000021533 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000021534fi
cristy3ed852e2009-09-05 21:47:34 +000021535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21536fi
cristy8b350f62009-11-15 23:12:43 +000021537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021538$as_echo "$ac_cv_c_char_unsigned" >&6; }
21539if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000021540 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021541
21542fi
21543
21544
21545# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21546# The cast to long int works around a bug in the HP C Compiler
21547# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21548# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21549# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021551$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021552if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021553 $as_echo_n "(cached) " >&6
21554else
cristy8b350f62009-11-15 23:12:43 +000021555 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 +000021556
cristy3ed852e2009-09-05 21:47:34 +000021557else
cristy8b350f62009-11-15 23:12:43 +000021558 if test "$ac_cv_type_signed_short" = yes; then
21559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +000021561as_fn_error 77 "cannot compute sizeof (signed short)
21562See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021563 else
21564 ac_cv_sizeof_signed_short=0
21565 fi
21566fi
cristy8b350f62009-11-15 23:12:43 +000021567
cristy3ed852e2009-09-05 21:47:34 +000021568fi
cristy8b350f62009-11-15 23:12:43 +000021569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021570$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21571
21572
21573
21574cat >>confdefs.h <<_ACEOF
21575#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21576_ACEOF
21577
21578
21579
21580# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21581# The cast to long int works around a bug in the HP C Compiler
21582# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21583# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21584# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021586$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021587if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021588 $as_echo_n "(cached) " >&6
21589else
cristy8b350f62009-11-15 23:12:43 +000021590 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 +000021591
cristy3ed852e2009-09-05 21:47:34 +000021592else
cristy8b350f62009-11-15 23:12:43 +000021593 if test "$ac_cv_type_unsigned_short" = yes; then
21594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +000021596as_fn_error 77 "cannot compute sizeof (unsigned short)
21597See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021598 else
21599 ac_cv_sizeof_unsigned_short=0
21600 fi
21601fi
cristy8b350f62009-11-15 23:12:43 +000021602
cristy3ed852e2009-09-05 21:47:34 +000021603fi
cristy8b350f62009-11-15 23:12:43 +000021604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021605$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21606
21607
21608
21609cat >>confdefs.h <<_ACEOF
21610#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21611_ACEOF
21612
21613
21614
21615# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21616# The cast to long int works around a bug in the HP C Compiler
21617# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21618# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21619# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021621$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021622if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021623 $as_echo_n "(cached) " >&6
21624else
cristy8b350f62009-11-15 23:12:43 +000021625 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 +000021626
cristy3ed852e2009-09-05 21:47:34 +000021627else
cristy8b350f62009-11-15 23:12:43 +000021628 if test "$ac_cv_type_signed_int" = yes; then
21629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +000021631as_fn_error 77 "cannot compute sizeof (signed int)
21632See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021633 else
21634 ac_cv_sizeof_signed_int=0
21635 fi
21636fi
cristy8b350f62009-11-15 23:12:43 +000021637
cristy3ed852e2009-09-05 21:47:34 +000021638fi
cristy8b350f62009-11-15 23:12:43 +000021639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021640$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21641
21642
21643
21644cat >>confdefs.h <<_ACEOF
21645#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21646_ACEOF
21647
21648
21649
21650# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21651# The cast to long int works around a bug in the HP C Compiler
21652# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21653# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21654# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021656$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021657if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021658 $as_echo_n "(cached) " >&6
21659else
cristy8b350f62009-11-15 23:12:43 +000021660 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 +000021661
cristy3ed852e2009-09-05 21:47:34 +000021662else
cristy8b350f62009-11-15 23:12:43 +000021663 if test "$ac_cv_type_unsigned_int" = yes; then
21664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +000021666as_fn_error 77 "cannot compute sizeof (unsigned int)
21667See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021668 else
21669 ac_cv_sizeof_unsigned_int=0
21670 fi
21671fi
cristy8b350f62009-11-15 23:12:43 +000021672
cristy3ed852e2009-09-05 21:47:34 +000021673fi
cristy8b350f62009-11-15 23:12:43 +000021674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021675$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21676
21677
21678
21679cat >>confdefs.h <<_ACEOF
21680#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21681_ACEOF
21682
21683
21684
21685# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21686# The cast to long int works around a bug in the HP C Compiler
21687# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21688# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21689# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021691$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021692if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021693 $as_echo_n "(cached) " >&6
21694else
cristy8b350f62009-11-15 23:12:43 +000021695 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 +000021696
cristy3ed852e2009-09-05 21:47:34 +000021697else
cristy8b350f62009-11-15 23:12:43 +000021698 if test "$ac_cv_type_signed_long" = yes; then
21699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +000021701as_fn_error 77 "cannot compute sizeof (signed long)
21702See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021703 else
21704 ac_cv_sizeof_signed_long=0
21705 fi
21706fi
cristy8b350f62009-11-15 23:12:43 +000021707
cristy3ed852e2009-09-05 21:47:34 +000021708fi
cristy8b350f62009-11-15 23:12:43 +000021709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021710$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21711
21712
21713
21714cat >>confdefs.h <<_ACEOF
21715#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21716_ACEOF
21717
21718
21719
21720# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21721# The cast to long int works around a bug in the HP C Compiler
21722# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21723# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21724# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021726$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021727if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021728 $as_echo_n "(cached) " >&6
21729else
cristy8b350f62009-11-15 23:12:43 +000021730 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 +000021731
cristy3ed852e2009-09-05 21:47:34 +000021732else
cristy8b350f62009-11-15 23:12:43 +000021733 if test "$ac_cv_type_unsigned_long" = yes; then
21734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021735$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +000021736as_fn_error 77 "cannot compute sizeof (unsigned long)
21737See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021738 else
21739 ac_cv_sizeof_unsigned_long=0
21740 fi
21741fi
cristy8b350f62009-11-15 23:12:43 +000021742
cristy3ed852e2009-09-05 21:47:34 +000021743fi
cristy8b350f62009-11-15 23:12:43 +000021744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021745$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21746
21747
21748
21749cat >>confdefs.h <<_ACEOF
21750#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21751_ACEOF
21752
21753
21754
21755# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21756# 'signed long long' is not supported then the value defined is zero.
21757# The cast to long int works around a bug in the HP C Compiler
21758# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21759# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21760# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021762$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021763if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021764 $as_echo_n "(cached) " >&6
21765else
cristy8b350f62009-11-15 23:12:43 +000021766 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 +000021767
cristy3ed852e2009-09-05 21:47:34 +000021768else
cristy8b350f62009-11-15 23:12:43 +000021769 if test "$ac_cv_type_signed_long_long" = yes; then
21770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021771$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +000021772as_fn_error 77 "cannot compute sizeof (signed long long)
21773See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021774 else
21775 ac_cv_sizeof_signed_long_long=0
21776 fi
21777fi
cristy8b350f62009-11-15 23:12:43 +000021778
cristy3ed852e2009-09-05 21:47:34 +000021779fi
cristy8b350f62009-11-15 23:12:43 +000021780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021781$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21782
21783
21784
21785cat >>confdefs.h <<_ACEOF
21786#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21787_ACEOF
21788
21789
21790
21791# Obtain size of a 'unsigned long long' and define as
21792# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21793# supported then the value defined is zero.
21794# The cast to long int works around a bug in the HP C Compiler
21795# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21796# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21797# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021799$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021800if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021801 $as_echo_n "(cached) " >&6
21802else
cristy8b350f62009-11-15 23:12:43 +000021803 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 +000021804
cristy3ed852e2009-09-05 21:47:34 +000021805else
cristy8b350f62009-11-15 23:12:43 +000021806 if test "$ac_cv_type_unsigned_long_long" = yes; then
21807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021808$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +000021809as_fn_error 77 "cannot compute sizeof (unsigned long long)
21810See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021811 else
21812 ac_cv_sizeof_unsigned_long_long=0
21813 fi
21814fi
cristy8b350f62009-11-15 23:12:43 +000021815
cristy3ed852e2009-09-05 21:47:34 +000021816fi
cristy8b350f62009-11-15 23:12:43 +000021817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021818$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21819
21820
21821
21822cat >>confdefs.h <<_ACEOF
21823#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21824_ACEOF
21825
21826
21827
21828# Obtain size of off_t and define as SIZEOF_OFF_T
21829# The cast to long int works around a bug in the HP C Compiler
21830# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21831# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21832# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021834$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021835if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021836 $as_echo_n "(cached) " >&6
21837else
cristy8b350f62009-11-15 23:12:43 +000021838 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 +000021839
cristy3ed852e2009-09-05 21:47:34 +000021840else
cristy8b350f62009-11-15 23:12:43 +000021841 if test "$ac_cv_type_off_t" = yes; then
21842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021843$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +000021844as_fn_error 77 "cannot compute sizeof (off_t)
21845See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021846 else
21847 ac_cv_sizeof_off_t=0
21848 fi
21849fi
cristy8b350f62009-11-15 23:12:43 +000021850
cristy3ed852e2009-09-05 21:47:34 +000021851fi
cristy8b350f62009-11-15 23:12:43 +000021852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021853$as_echo "$ac_cv_sizeof_off_t" >&6; }
21854
21855
21856
21857cat >>confdefs.h <<_ACEOF
21858#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21859_ACEOF
21860
21861
21862
21863# Obtain size of size_t and define as SIZEOF_SIZE_T
21864# The cast to long int works around a bug in the HP C Compiler
21865# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21866# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21867# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021869$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021870if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021871 $as_echo_n "(cached) " >&6
21872else
cristy8b350f62009-11-15 23:12:43 +000021873 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 +000021874
cristy3ed852e2009-09-05 21:47:34 +000021875else
cristy8b350f62009-11-15 23:12:43 +000021876 if test "$ac_cv_type_size_t" = yes; then
21877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021878$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +000021879as_fn_error 77 "cannot compute sizeof (size_t)
21880See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021881 else
21882 ac_cv_sizeof_size_t=0
21883 fi
21884fi
cristy8b350f62009-11-15 23:12:43 +000021885
cristy3ed852e2009-09-05 21:47:34 +000021886fi
cristy8b350f62009-11-15 23:12:43 +000021887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021888$as_echo "$ac_cv_sizeof_size_t" >&6; }
21889
21890
21891
21892cat >>confdefs.h <<_ACEOF
21893#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21894_ACEOF
21895
21896
21897
cristy330e9352010-06-01 18:42:49 +000021898# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
21899# The cast to long int works around a bug in the HP C Compiler
21900# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21901# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21902# This bug is HP SR number 8606223364.
21903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
21904$as_echo_n "checking size of ssize_t... " >&6; }
21905if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
21906 $as_echo_n "(cached) " >&6
21907else
21908 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
21909
21910else
21911 if test "$ac_cv_type_ssize_t" = yes; then
21912 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21913$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +000021914as_fn_error 77 "cannot compute sizeof (ssize_t)
21915See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000021916 else
21917 ac_cv_sizeof_ssize_t=0
21918 fi
21919fi
21920
21921fi
21922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
21923$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
21924
21925
21926
21927cat >>confdefs.h <<_ACEOF
21928#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
21929_ACEOF
21930
21931
21932
cristy3ed852e2009-09-05 21:47:34 +000021933# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
21934# The cast to long int works around a bug in the HP C Compiler
21935# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21936# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21937# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000021939$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021940if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021941 $as_echo_n "(cached) " >&6
21942else
cristy8b350f62009-11-15 23:12:43 +000021943 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 +000021944
cristy3ed852e2009-09-05 21:47:34 +000021945else
cristy8b350f62009-11-15 23:12:43 +000021946 if test "$ac_cv_type_unsigned_intp" = yes; then
21947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021948$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +000021949as_fn_error 77 "cannot compute sizeof (unsigned int*)
21950See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021951 else
21952 ac_cv_sizeof_unsigned_intp=0
21953 fi
21954fi
cristy8b350f62009-11-15 23:12:43 +000021955
cristy3ed852e2009-09-05 21:47:34 +000021956fi
cristy8b350f62009-11-15 23:12:43 +000021957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021958$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
21959
21960
21961
21962cat >>confdefs.h <<_ACEOF
21963#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
21964_ACEOF
21965
21966
21967
21968#
21969# Compute sized types for current CPU and compiler options.
21970#
21971
cristy8b350f62009-11-15 23:12:43 +000021972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021973$as_echo_n "checking for signed 8-bit type... " >&6; }
21974INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000021975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021976$as_echo "$INT8_T" >&6; }
21977
21978
cristy8b350f62009-11-15 23:12:43 +000021979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021980$as_echo_n "checking for unsigned 8-bit type... " >&6; }
21981UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000021982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021983$as_echo "$UINT8_T" >&6; }
21984
21985
cristy8b350f62009-11-15 23:12:43 +000021986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021987$as_echo_n "checking for signed 16-bit type... " >&6; }
21988INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000021989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021990$as_echo "$INT16_T" >&6; }
21991
21992
cristy8b350f62009-11-15 23:12:43 +000021993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021994$as_echo_n "checking for unsigned 16-bit type... " >&6; }
21995UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000021996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021997$as_echo "$UINT16_T" >&6; }
21998
21999
cristy8b350f62009-11-15 23:12:43 +000022000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022001$as_echo_n "checking for signed 32-bit type... " >&6; }
22002INT32_T='none'
22003if test $ac_cv_sizeof_signed_int -eq 4; then
22004 INT32_T='signed int'
22005elif test $ac_cv_sizeof_signed_long -eq 4; then
22006 INT32_T='signed long'
22007fi
cristy8b350f62009-11-15 23:12:43 +000022008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022009$as_echo "$INT32_T" >&6; }
22010
22011
cristy8b350f62009-11-15 23:12:43 +000022012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022013$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22014UINT32_T='none'
22015if test $ac_cv_sizeof_unsigned_int -eq 4; then
22016 UINT32_T='unsigned int'
22017elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22018 UINT32_T='unsigned long'
22019fi
cristy8b350f62009-11-15 23:12:43 +000022020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022021$as_echo "$UINT32_T" >&6; }
22022
22023
cristy8b350f62009-11-15 23:12:43 +000022024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022025$as_echo_n "checking for signed 64-bit type... " >&6; }
22026INT64_T='none'
22027if test $ac_cv_sizeof_signed_long -eq 8; then
22028 INT64_T='signed long'
22029elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22030 INT64_T='signed long long'
22031fi
cristy8b350f62009-11-15 23:12:43 +000022032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022033$as_echo "$INT64_T" >&6; }
22034
22035
cristy8b350f62009-11-15 23:12:43 +000022036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022037$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22038UINT64_T='none'
22039if test $ac_cv_sizeof_unsigned_long -eq 8; then
22040 UINT64_T='unsigned long'
22041elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22042 UINT64_T='unsigned long long'
22043fi
cristy8b350f62009-11-15 23:12:43 +000022044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022045$as_echo "$UINT64_T" >&6; }
22046
22047
cristy8b350f62009-11-15 23:12:43 +000022048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022049$as_echo_n "checking for unsigned maximum type... " >&6; }
22050UINTMAX_T='none'
22051if test "$UINT64_T" != 'none'; then
22052 UINTMAX_T=$UINT64_T
22053elif test "$UINT32_T" != 'none'; then
22054 UINTMAX_T=$UINT32_T
22055fi
cristy8b350f62009-11-15 23:12:43 +000022056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022057$as_echo "$UINTMAX_T" >&6; }
22058
22059
cristy8b350f62009-11-15 23:12:43 +000022060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022061$as_echo_n "checking for pointer difference type... " >&6; }
22062UINTPTR_T='none'
22063if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22064 UINTPTR_T='unsigned long'
22065elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22066 UINTPTR_T='unsigned long long'
22067fi
cristy8b350f62009-11-15 23:12:43 +000022068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022069$as_echo "$UINTPTR_T" >&6; }
22070
22071
cristy8b350f62009-11-15 23:12:43 +000022072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022073$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022075/* end confdefs.h. */
22076
22077int
22078main ()
22079{
22080{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22081 ;
22082 return 0;
22083}
22084_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022085if ac_fn_c_try_compile "$LINENO"; then :
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022087$as_echo "yes" >&6; }
22088else
cristy8b350f62009-11-15 23:12:43 +000022089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022090$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022092$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022094/* end confdefs.h. */
22095
22096int
22097main ()
22098{
22099{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22100 ;
22101 return 0;
22102}
22103_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022104if ac_fn_c_try_compile "$LINENO"; then :
22105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022106$as_echo "yes" >&6; }
22107
cristy8b350f62009-11-15 23:12:43 +000022108$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022109
22110else
cristy8b350f62009-11-15 23:12:43 +000022111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022112$as_echo "no" >&6; }
22113
cristy8b350f62009-11-15 23:12:43 +000022114$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022115
22116fi
cristy3ed852e2009-09-05 21:47:34 +000022117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22118fi
cristy3ed852e2009-09-05 21:47:34 +000022119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22120
22121########
22122#
22123# Check for functions
22124#
22125########
cristy3ed852e2009-09-05 21:47:34 +000022126for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000022127do :
22128 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22129ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy0684af42010-07-09 00:00:05 +000022130if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022131 cat >>confdefs.h <<_ACEOF
22132#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22133_ACEOF
22134
22135fi
22136
22137done
22138
cristy3ed852e2009-09-05 21:47:34 +000022139for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022140do :
22141 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22142if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022143 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022144#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022145_ACEOF
22146
22147fi
22148done
22149
cristy8b350f62009-11-15 23:12:43 +000022150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000022151$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022152if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022153 $as_echo_n "(cached) " >&6
22154else
cristy8b350f62009-11-15 23:12:43 +000022155 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022156 magick_cv_func_mmap_fileio=no
22157else
cristy8b350f62009-11-15 23:12:43 +000022158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022159/* end confdefs.h. */
22160$ac_includes_default
22161/* malloc might have been renamed as rpl_malloc. */
22162#undef malloc
22163
22164/*
22165 This test is derived from GNU Autoconf's similar macro.
22166 The purpose of this test is to verify that files may be memory
22167 mapped, and that memory mapping and file I/O are coherent.
22168
22169 The test creates a test file, memory maps the file, updates
22170 the file using the memory map, and then reads the file using
22171 file I/O to verify that the file contains the updates.
22172*/
22173
22174#include <fcntl.h>
22175#include <sys/mman.h>
22176
22177#if !STDC_HEADERS && !HAVE_STDLIB_H
22178char *malloc ();
22179#endif
22180
22181/* This mess was copied from the GNU getpagesize.h. */
22182#if !HAVE_GETPAGESIZE
22183/* Assume that all systems that can run configure have sys/param.h. */
22184# if !HAVE_SYS_PARAM_H
22185# define HAVE_SYS_PARAM_H 1
22186# endif
22187
22188# ifdef _SC_PAGESIZE
22189# define getpagesize() sysconf(_SC_PAGESIZE)
22190# else /* no _SC_PAGESIZE */
22191# if HAVE_SYS_PARAM_H
22192# include <sys/param.h>
22193# ifdef EXEC_PAGESIZE
22194# define getpagesize() EXEC_PAGESIZE
22195# else /* no EXEC_PAGESIZE */
22196# ifdef NBPG
22197# define getpagesize() NBPG * CLSIZE
22198# ifndef CLSIZE
22199# define CLSIZE 1
22200# endif /* no CLSIZE */
22201# else /* no NBPG */
22202# ifdef NBPC
22203# define getpagesize() NBPC
22204# else /* no NBPC */
22205# ifdef PAGESIZE
22206# define getpagesize() PAGESIZE
22207# endif /* PAGESIZE */
22208# endif /* no NBPC */
22209# endif /* no NBPG */
22210# endif /* no EXEC_PAGESIZE */
22211# else /* no HAVE_SYS_PARAM_H */
22212# define getpagesize() 8192 /* punt totally */
22213# endif /* no HAVE_SYS_PARAM_H */
22214# endif /* no _SC_PAGESIZE */
22215
22216#endif /* no HAVE_GETPAGESIZE */
22217
22218int
22219main ()
22220{
22221 char *data, *data2, *data3;
22222 int i, pagesize;
22223 int fd;
22224
22225 pagesize = getpagesize ();
22226
22227 /* First, make a file with some known garbage in it. */
22228 data = (char *) malloc (pagesize);
22229 if (!data)
22230 exit (1);
22231 for (i = 0; i < pagesize; ++i)
22232 *(data + i) = rand ();
22233 umask (0);
22234 fd = creat ("conftest.mmap", 0600);
22235 if (fd < 0)
22236 exit (1);
22237 if (write (fd, data, pagesize) != pagesize)
22238 exit (1);
22239 close (fd);
22240
22241 /* Mmap the file as read/write/shared and verify that we see the
22242 same garbage. */
22243 fd = open ("conftest.mmap", O_RDWR);
22244 if (fd < 0)
22245 exit (1);
22246 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22247 if (data2 == 0)
22248 exit (1);
22249 for (i = 0; i < pagesize; ++i)
22250 if (*(data + i) != *(data2 + i))
22251 exit (1);
22252
22253 /* Finally, make sure that changes to the mapped area
22254 percolate back to the file as seen by read(). */
22255 for (i = 0; i < pagesize; ++i)
22256 *(data2 + i) = *(data2 + i) + 1;
22257 data3 = (char *) malloc (pagesize);
22258 if (!data3)
22259 exit (1);
22260 if (read (fd, data3, pagesize) != pagesize)
22261 exit (1);
22262 for (i = 0; i < pagesize; ++i)
22263 if (*(data2 + i) != *(data3 + i))
22264 exit (1);
22265 close (fd);
22266 exit (0);
22267}
22268_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022269if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022270 magick_cv_func_mmap_fileio=yes
22271else
cristy8b350f62009-11-15 23:12:43 +000022272 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000022273fi
cristy8b350f62009-11-15 23:12:43 +000022274rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22275 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022276fi
22277
cristy3ed852e2009-09-05 21:47:34 +000022278fi
cristy8b350f62009-11-15 23:12:43 +000022279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000022280$as_echo "$magick_cv_func_mmap_fileio" >&6; }
22281if test $magick_cv_func_mmap_fileio = yes; then
22282
cristy8b350f62009-11-15 23:12:43 +000022283$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022284
22285fi
22286rm -f conftest.mmap
22287
cristy8b350f62009-11-15 23:12:43 +000022288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022289$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022290if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022291 $as_echo_n "(cached) " >&6
22292else
cristy8b350f62009-11-15 23:12:43 +000022293 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022294 ac_cv_func_closedir_void=yes
22295else
cristy8b350f62009-11-15 23:12:43 +000022296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022297/* end confdefs.h. */
22298$ac_includes_default
22299#include <$ac_header_dirent>
22300#ifndef __cplusplus
22301int closedir ();
22302#endif
22303
22304int
22305main ()
22306{
22307return closedir (opendir (".")) != 0;
22308 ;
22309 return 0;
22310}
22311_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022312if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022313 ac_cv_func_closedir_void=no
22314else
cristy8b350f62009-11-15 23:12:43 +000022315 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000022316fi
cristy8b350f62009-11-15 23:12:43 +000022317rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22318 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022319fi
22320
cristy3ed852e2009-09-05 21:47:34 +000022321fi
cristy8b350f62009-11-15 23:12:43 +000022322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022323$as_echo "$ac_cv_func_closedir_void" >&6; }
22324if test $ac_cv_func_closedir_void = yes; then
22325
cristy8b350f62009-11-15 23:12:43 +000022326$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022327
22328fi
22329
cristycd4c5312009-11-22 01:19:08 +000022330
22331
22332
22333 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000022334do :
22335 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000022336ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22337"
cristy0684af42010-07-09 00:00:05 +000022338if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022339 cat >>confdefs.h <<_ACEOF
22340#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22341_ACEOF
22342
22343fi
22344
22345done
22346
cristycd4c5312009-11-22 01:19:08 +000022347
22348
22349
22350
22351
22352
22353
cristy3ed852e2009-09-05 21:47:34 +000022354for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022355do :
22356 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22357if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022358 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022359#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022360_ACEOF
22361
22362fi
22363done
22364
cristy8b350f62009-11-15 23:12:43 +000022365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000022366$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022367if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022368 $as_echo_n "(cached) " >&6
22369else
cristy8b350f62009-11-15 23:12:43 +000022370 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022371 ac_cv_func_mmap_fixed_mapped=no
22372else
cristy8b350f62009-11-15 23:12:43 +000022373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022374/* end confdefs.h. */
22375$ac_includes_default
22376/* malloc might have been renamed as rpl_malloc. */
22377#undef malloc
22378
22379/* Thanks to Mike Haertel and Jim Avera for this test.
22380 Here is a matrix of mmap possibilities:
22381 mmap private not fixed
22382 mmap private fixed at somewhere currently unmapped
22383 mmap private fixed at somewhere already mapped
22384 mmap shared not fixed
22385 mmap shared fixed at somewhere currently unmapped
22386 mmap shared fixed at somewhere already mapped
22387 For private mappings, we should verify that changes cannot be read()
22388 back from the file, nor mmap's back from the file at a different
22389 address. (There have been systems where private was not correctly
22390 implemented like the infamous i386 svr4.0, and systems where the
22391 VM page cache was not coherent with the file system buffer cache
22392 like early versions of FreeBSD and possibly contemporary NetBSD.)
22393 For shared mappings, we should conversely verify that changes get
22394 propagated back to all the places they're supposed to be.
22395
22396 Grep wants private fixed already mapped.
22397 The main things grep needs to know about mmap are:
22398 * does it exist and is it safe to write into the mmap'd area
22399 * how to use it (BSD variants) */
22400
22401#include <fcntl.h>
22402#include <sys/mman.h>
22403
22404#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22405char *malloc ();
22406#endif
22407
22408/* This mess was copied from the GNU getpagesize.h. */
22409#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000022410# ifdef _SC_PAGESIZE
22411# define getpagesize() sysconf(_SC_PAGESIZE)
22412# else /* no _SC_PAGESIZE */
22413# ifdef HAVE_SYS_PARAM_H
22414# include <sys/param.h>
22415# ifdef EXEC_PAGESIZE
22416# define getpagesize() EXEC_PAGESIZE
22417# else /* no EXEC_PAGESIZE */
22418# ifdef NBPG
22419# define getpagesize() NBPG * CLSIZE
22420# ifndef CLSIZE
22421# define CLSIZE 1
22422# endif /* no CLSIZE */
22423# else /* no NBPG */
22424# ifdef NBPC
22425# define getpagesize() NBPC
22426# else /* no NBPC */
22427# ifdef PAGESIZE
22428# define getpagesize() PAGESIZE
22429# endif /* PAGESIZE */
22430# endif /* no NBPC */
22431# endif /* no NBPG */
22432# endif /* no EXEC_PAGESIZE */
22433# else /* no HAVE_SYS_PARAM_H */
22434# define getpagesize() 8192 /* punt totally */
22435# endif /* no HAVE_SYS_PARAM_H */
22436# endif /* no _SC_PAGESIZE */
22437
22438#endif /* no HAVE_GETPAGESIZE */
22439
22440int
22441main ()
22442{
22443 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000022444 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000022445 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000022446 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000022447
22448 pagesize = getpagesize ();
22449
22450 /* First, make a file with some known garbage in it. */
22451 data = (char *) malloc (pagesize);
22452 if (!data)
22453 return 1;
22454 for (i = 0; i < pagesize; ++i)
22455 *(data + i) = rand ();
22456 umask (0);
22457 fd = creat ("conftest.mmap", 0600);
22458 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022459 return 2;
cristy3ed852e2009-09-05 21:47:34 +000022460 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022461 return 3;
cristy3ed852e2009-09-05 21:47:34 +000022462 close (fd);
22463
cristycd4c5312009-11-22 01:19:08 +000022464 /* Next, check that the tail of a page is zero-filled. File must have
22465 non-zero length, otherwise we risk SIGBUS for entire page. */
22466 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22467 if (fd2 < 0)
22468 return 4;
cristyc54f5d42009-11-27 21:36:31 +000022469 cdata2 = "";
22470 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000022471 return 5;
cristyc54f5d42009-11-27 21:36:31 +000022472 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000022473 if (data2 == MAP_FAILED)
22474 return 6;
22475 for (i = 0; i < pagesize; ++i)
22476 if (*(data2 + i))
22477 return 7;
22478 close (fd2);
22479 if (munmap (data2, pagesize))
22480 return 8;
22481
cristy3ed852e2009-09-05 21:47:34 +000022482 /* Next, try to mmap the file at a fixed address which already has
22483 something else allocated at it. If we can, also make sure that
22484 we see the same garbage. */
22485 fd = open ("conftest.mmap", O_RDWR);
22486 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022487 return 9;
cristy3ed852e2009-09-05 21:47:34 +000022488 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22489 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000022490 return 10;
cristy3ed852e2009-09-05 21:47:34 +000022491 for (i = 0; i < pagesize; ++i)
22492 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000022493 return 11;
cristy3ed852e2009-09-05 21:47:34 +000022494
22495 /* Finally, make sure that changes to the mapped area do not
22496 percolate back to the file as seen by read(). (This is a bug on
22497 some variants of i386 svr4.0.) */
22498 for (i = 0; i < pagesize; ++i)
22499 *(data2 + i) = *(data2 + i) + 1;
22500 data3 = (char *) malloc (pagesize);
22501 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000022502 return 12;
cristy3ed852e2009-09-05 21:47:34 +000022503 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022504 return 13;
cristy3ed852e2009-09-05 21:47:34 +000022505 for (i = 0; i < pagesize; ++i)
22506 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000022507 return 14;
cristy3ed852e2009-09-05 21:47:34 +000022508 close (fd);
22509 return 0;
22510}
22511_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022512if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022513 ac_cv_func_mmap_fixed_mapped=yes
22514else
cristy8b350f62009-11-15 23:12:43 +000022515 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000022516fi
cristy8b350f62009-11-15 23:12:43 +000022517rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22518 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022519fi
22520
cristy3ed852e2009-09-05 21:47:34 +000022521fi
cristy8b350f62009-11-15 23:12:43 +000022522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000022523$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22524if test $ac_cv_func_mmap_fixed_mapped = yes; then
22525
cristy8b350f62009-11-15 23:12:43 +000022526$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022527
22528fi
cristycd4c5312009-11-22 01:19:08 +000022529rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000022530
cristy3ed852e2009-09-05 21:47:34 +000022531for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000022532do :
22533 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22534if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022535 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022536#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000022537_ACEOF
22538
22539fi
22540
22541done
22542
cristy3ed852e2009-09-05 21:47:34 +000022543for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000022544do :
22545 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22546ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy0684af42010-07-09 00:00:05 +000022547if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022548 cat >>confdefs.h <<_ACEOF
22549#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22550_ACEOF
22551
22552fi
22553done
22554
22555if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022557$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022558if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022559 $as_echo_n "(cached) " >&6
22560else
cristy8b350f62009-11-15 23:12:43 +000022561 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022562 ac_cv_func_fork_works=cross
22563else
cristy8b350f62009-11-15 23:12:43 +000022564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022565/* end confdefs.h. */
22566$ac_includes_default
22567int
22568main ()
22569{
22570
22571 /* By Ruediger Kuhlmann. */
22572 return fork () < 0;
22573
22574 ;
22575 return 0;
22576}
22577_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022578if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022579 ac_cv_func_fork_works=yes
22580else
cristy8b350f62009-11-15 23:12:43 +000022581 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022582fi
cristy8b350f62009-11-15 23:12:43 +000022583rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22584 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022585fi
22586
cristy3ed852e2009-09-05 21:47:34 +000022587fi
cristy8b350f62009-11-15 23:12:43 +000022588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022589$as_echo "$ac_cv_func_fork_works" >&6; }
22590
22591else
22592 ac_cv_func_fork_works=$ac_cv_func_fork
22593fi
22594if test "x$ac_cv_func_fork_works" = xcross; then
22595 case $host in
22596 *-*-amigaos* | *-*-msdosdjgpp*)
22597 # Override, as these systems have only a dummy fork() stub
22598 ac_cv_func_fork_works=no
22599 ;;
22600 *)
22601 ac_cv_func_fork_works=yes
22602 ;;
22603 esac
cristy8b350f62009-11-15 23:12:43 +000022604 { $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 +000022605$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22606fi
22607ac_cv_func_vfork_works=$ac_cv_func_vfork
22608if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022610$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022611if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022612 $as_echo_n "(cached) " >&6
22613else
cristy8b350f62009-11-15 23:12:43 +000022614 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022615 ac_cv_func_vfork_works=cross
22616else
cristy8b350f62009-11-15 23:12:43 +000022617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022618/* end confdefs.h. */
22619/* Thanks to Paul Eggert for this test. */
22620$ac_includes_default
22621#include <sys/wait.h>
22622#ifdef HAVE_VFORK_H
22623# include <vfork.h>
22624#endif
22625/* On some sparc systems, changes by the child to local and incoming
22626 argument registers are propagated back to the parent. The compiler
22627 is told about this with #include <vfork.h>, but some compilers
22628 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22629 static variable whose address is put into a register that is
22630 clobbered by the vfork. */
22631static void
22632#ifdef __cplusplus
22633sparc_address_test (int arg)
22634# else
22635sparc_address_test (arg) int arg;
22636#endif
22637{
22638 static pid_t child;
22639 if (!child) {
22640 child = vfork ();
22641 if (child < 0) {
22642 perror ("vfork");
22643 _exit(2);
22644 }
22645 if (!child) {
22646 arg = getpid();
22647 write(-1, "", 0);
22648 _exit (arg);
22649 }
22650 }
22651}
22652
22653int
22654main ()
22655{
22656 pid_t parent = getpid ();
22657 pid_t child;
22658
22659 sparc_address_test (0);
22660
22661 child = vfork ();
22662
22663 if (child == 0) {
22664 /* Here is another test for sparc vfork register problems. This
22665 test uses lots of local variables, at least as many local
22666 variables as main has allocated so far including compiler
22667 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22668 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22669 reuse the register of parent for one of the local variables,
22670 since it will think that parent can't possibly be used any more
22671 in this routine. Assigning to the local variable will thus
22672 munge parent in the parent process. */
22673 pid_t
22674 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22675 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22676 /* Convince the compiler that p..p7 are live; otherwise, it might
22677 use the same hardware register for all 8 local variables. */
22678 if (p != p1 || p != p2 || p != p3 || p != p4
22679 || p != p5 || p != p6 || p != p7)
22680 _exit(1);
22681
22682 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22683 from child file descriptors. If the child closes a descriptor
22684 before it execs or exits, this munges the parent's descriptor
22685 as well. Test for this by closing stdout in the child. */
22686 _exit(close(fileno(stdout)) != 0);
22687 } else {
22688 int status;
22689 struct stat st;
22690
22691 while (wait(&status) != child)
22692 ;
22693 return (
22694 /* Was there some problem with vforking? */
22695 child < 0
22696
22697 /* Did the child fail? (This shouldn't happen.) */
22698 || status
22699
22700 /* Did the vfork/compiler bug occur? */
22701 || parent != getpid()
22702
22703 /* Did the file descriptor bug occur? */
22704 || fstat(fileno(stdout), &st) != 0
22705 );
22706 }
22707}
22708_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022709if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022710 ac_cv_func_vfork_works=yes
22711else
cristy8b350f62009-11-15 23:12:43 +000022712 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022713fi
cristy8b350f62009-11-15 23:12:43 +000022714rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22715 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022716fi
22717
cristy3ed852e2009-09-05 21:47:34 +000022718fi
cristy8b350f62009-11-15 23:12:43 +000022719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022720$as_echo "$ac_cv_func_vfork_works" >&6; }
22721
22722fi;
22723if test "x$ac_cv_func_fork_works" = xcross; then
22724 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022725 { $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 +000022726$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22727fi
22728
22729if test "x$ac_cv_func_vfork_works" = xyes; then
22730
cristy8b350f62009-11-15 23:12:43 +000022731$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022732
22733else
22734
cristy8b350f62009-11-15 23:12:43 +000022735$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022736
22737fi
22738if test "x$ac_cv_func_fork_works" = xyes; then
22739
cristy8b350f62009-11-15 23:12:43 +000022740$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022741
22742fi
22743
cristy8b350f62009-11-15 23:12:43 +000022744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022745$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022746if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022747 $as_echo_n "(cached) " >&6
22748else
cristy8b350f62009-11-15 23:12:43 +000022749 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022750 ac_cv_func_memcmp_working=no
22751else
cristy8b350f62009-11-15 23:12:43 +000022752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022753/* end confdefs.h. */
22754$ac_includes_default
22755int
22756main ()
22757{
22758
22759 /* Some versions of memcmp are not 8-bit clean. */
22760 char c0 = '\100', c1 = '\200', c2 = '\201';
22761 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22762 return 1;
22763
22764 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22765 or more and with at least one buffer not starting on a 4-byte boundary.
22766 William Lewis provided this test program. */
22767 {
22768 char foo[21];
22769 char bar[21];
22770 int i;
22771 for (i = 0; i < 4; i++)
22772 {
22773 char *a = foo + i;
22774 char *b = bar + i;
22775 strcpy (a, "--------01111111");
22776 strcpy (b, "--------10000000");
22777 if (memcmp (a, b, 16) >= 0)
22778 return 1;
22779 }
22780 return 0;
22781 }
22782
22783 ;
22784 return 0;
22785}
22786_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022787if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022788 ac_cv_func_memcmp_working=yes
22789else
cristy8b350f62009-11-15 23:12:43 +000022790 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000022791fi
cristy8b350f62009-11-15 23:12:43 +000022792rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22793 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022794fi
22795
cristy3ed852e2009-09-05 21:47:34 +000022796fi
cristy8b350f62009-11-15 23:12:43 +000022797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000022798$as_echo "$ac_cv_func_memcmp_working" >&6; }
22799test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22800 *" memcmp.$ac_objext "* ) ;;
22801 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22802 ;;
22803esac
22804
22805
cristy3ed852e2009-09-05 21:47:34 +000022806for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000022807do :
22808 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22809ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy0684af42010-07-09 00:00:05 +000022810if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022811 cat >>confdefs.h <<_ACEOF
22812#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22813_ACEOF
22814
22815fi
22816
22817done
22818
cristy8b350f62009-11-15 23:12:43 +000022819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000022820$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022821if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022822 $as_echo_n "(cached) " >&6
22823else
22824 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22825 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22826 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000022827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022828/* end confdefs.h. */
22829$ac_includes_default
22830#ifdef HAVE_SYS_SELECT_H
22831# include <sys/select.h>
22832#endif
22833#ifdef HAVE_SYS_SOCKET_H
22834# include <sys/socket.h>
22835#endif
22836
22837int
22838main ()
22839{
22840extern int select ($ac_arg1,
22841 $ac_arg234, $ac_arg234, $ac_arg234,
22842 $ac_arg5);
22843 ;
22844 return 0;
22845}
22846_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022847if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022848 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000022849fi
cristy3ed852e2009-09-05 21:47:34 +000022850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22851 done
22852 done
22853done
22854# Provide a safe default value.
22855: ${ac_cv_func_select_args='int,int *,struct timeval *'}
22856
22857fi
cristy8b350f62009-11-15 23:12:43 +000022858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000022859$as_echo "$ac_cv_func_select_args" >&6; }
22860ac_save_IFS=$IFS; IFS=','
22861set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22862IFS=$ac_save_IFS
22863shift
22864
22865cat >>confdefs.h <<_ACEOF
22866#define SELECT_TYPE_ARG1 $1
22867_ACEOF
22868
22869
22870cat >>confdefs.h <<_ACEOF
22871#define SELECT_TYPE_ARG234 ($2)
22872_ACEOF
22873
22874
22875cat >>confdefs.h <<_ACEOF
22876#define SELECT_TYPE_ARG5 ($3)
22877_ACEOF
22878
22879rm -f conftest*
22880
cristy8b350f62009-11-15 23:12:43 +000022881if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022882 $as_echo_n "(cached) " >&6
22883else
22884 ac_cv_func_setvbuf_reversed=no
22885fi
22886
22887
cristy8b350f62009-11-15 23:12:43 +000022888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000022889$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022890if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022891 $as_echo_n "(cached) " >&6
22892else
cristy8b350f62009-11-15 23:12:43 +000022893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022894/* end confdefs.h. */
22895#include <sys/types.h>
22896#include <signal.h>
22897
22898int
22899main ()
22900{
22901return *(signal (0, 0)) (0) == 1;
22902 ;
22903 return 0;
22904}
22905_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022906if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022907 ac_cv_type_signal=int
22908else
cristy8b350f62009-11-15 23:12:43 +000022909 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000022910fi
cristy3ed852e2009-09-05 21:47:34 +000022911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22912fi
cristy8b350f62009-11-15 23:12:43 +000022913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000022914$as_echo "$ac_cv_type_signal" >&6; }
22915
22916cat >>confdefs.h <<_ACEOF
22917#define RETSIGTYPE $ac_cv_type_signal
22918_ACEOF
22919
22920
cristy8b350f62009-11-15 23:12:43 +000022921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022922$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022923if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022924 $as_echo_n "(cached) " >&6
22925else
cristy8b350f62009-11-15 23:12:43 +000022926 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022927 ac_cv_func_strtod=no
22928else
cristy8b350f62009-11-15 23:12:43 +000022929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022930/* end confdefs.h. */
22931
22932$ac_includes_default
22933#ifndef strtod
22934double strtod ();
22935#endif
22936int
22937main()
22938{
22939 {
22940 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
22941 char *string = " +69";
22942 char *term;
22943 double value;
22944 value = strtod (string, &term);
22945 if (value != 69 || term != (string + 4))
22946 return 1;
22947 }
22948
22949 {
22950 /* Under Solaris 2.4, strtod returns the wrong value for the
22951 terminating character under some conditions. */
22952 char *string = "NaN";
22953 char *term;
22954 strtod (string, &term);
22955 if (term != string && *(term - 1) == 0)
22956 return 1;
22957 }
22958 return 0;
22959}
22960
22961_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022962if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022963 ac_cv_func_strtod=yes
22964else
cristy8b350f62009-11-15 23:12:43 +000022965 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000022966fi
cristy8b350f62009-11-15 23:12:43 +000022967rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22968 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022969fi
22970
cristy3ed852e2009-09-05 21:47:34 +000022971fi
cristy8b350f62009-11-15 23:12:43 +000022972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022973$as_echo "$ac_cv_func_strtod" >&6; }
22974if test $ac_cv_func_strtod = no; then
22975 case " $LIBOBJS " in
22976 *" strtod.$ac_objext "* ) ;;
22977 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
22978 ;;
22979esac
22980
cristy8b350f62009-11-15 23:12:43 +000022981ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
22982if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022983
cristy3ed852e2009-09-05 21:47:34 +000022984fi
22985
cristy3ed852e2009-09-05 21:47:34 +000022986if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000022987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022988$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022989if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022990 $as_echo_n "(cached) " >&6
22991else
22992 ac_check_lib_save_LIBS=$LIBS
22993LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022995/* end confdefs.h. */
22996
22997/* Override any GCC internal prototype to avoid an error.
22998 Use char because int might match the return type of a GCC
22999 builtin and then its argument prototype would still apply. */
23000#ifdef __cplusplus
23001extern "C"
23002#endif
23003char pow ();
23004int
23005main ()
23006{
23007return pow ();
23008 ;
23009 return 0;
23010}
23011_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023012if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023013 ac_cv_lib_m_pow=yes
23014else
cristy8b350f62009-11-15 23:12:43 +000023015 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023016fi
cristy8b350f62009-11-15 23:12:43 +000023017rm -f core conftest.err conftest.$ac_objext \
23018 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023019LIBS=$ac_check_lib_save_LIBS
23020fi
cristy8b350f62009-11-15 23:12:43 +000023021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023022$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023023if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023024 POW_LIB=-lm
23025else
cristy8b350f62009-11-15 23:12:43 +000023026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023027$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23028fi
23029
23030fi
23031
23032fi
23033
cristy3ed852e2009-09-05 21:47:34 +000023034for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023035do :
23036 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23037if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023038 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023039#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023040_ACEOF
23041
cristy8b350f62009-11-15 23:12:43 +000023042ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23043if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023044
cristy8b350f62009-11-15 23:12:43 +000023045$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023046
23047fi
23048
23049fi
23050done
23051
23052
23053
cristy161b9262010-03-20 19:34:32 +000023054#
23055# Find math library
23056#
23057MATH_LIBS=''
23058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23059$as_echo_n "checking for sqrt in -lm... " >&6; }
23060if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23061 $as_echo_n "(cached) " >&6
23062else
23063 ac_check_lib_save_LIBS=$LIBS
23064LIBS="-lm $LIBS"
23065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23066/* end confdefs.h. */
23067
23068/* Override any GCC internal prototype to avoid an error.
23069 Use char because int might match the return type of a GCC
23070 builtin and then its argument prototype would still apply. */
23071#ifdef __cplusplus
23072extern "C"
23073#endif
23074char sqrt ();
23075int
23076main ()
23077{
23078return sqrt ();
23079 ;
23080 return 0;
23081}
23082_ACEOF
23083if ac_fn_c_try_link "$LINENO"; then :
23084 ac_cv_lib_m_sqrt=yes
23085else
23086 ac_cv_lib_m_sqrt=no
23087fi
23088rm -f core conftest.err conftest.$ac_objext \
23089 conftest$ac_exeext conftest.$ac_ext
23090LIBS=$ac_check_lib_save_LIBS
23091fi
23092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23093$as_echo "$ac_cv_lib_m_sqrt" >&6; }
23094if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23095 MATH_LIBS="-lm"
23096fi
23097
23098LIBS="$MATH_LIBS $LIBS"
23099
23100
cristya21afde2010-07-02 00:45:40 +000023101for ac_func in _exit atexit cimag clock directio execvp fchmod floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 localtime_r lstat memmove memset mkstemp munmap nanosleep _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign pow pread pwrite 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 usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000023102do :
23103 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23104ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy0684af42010-07-09 00:00:05 +000023105if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023106 cat >>confdefs.h <<_ACEOF
23107#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23108_ACEOF
23109
23110fi
23111done
23112
23113
cristye43a45e2009-09-28 14:49:00 +000023114#
23115# Check for clock_gettime().
23116#
cristy8b350f62009-11-15 23:12:43 +000023117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023118$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023119if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023120 $as_echo_n "(cached) " >&6
23121else
23122 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023124/* end confdefs.h. */
23125
23126/* Override any GCC internal prototype to avoid an error.
23127 Use char because int might match the return type of a GCC
23128 builtin and then its argument prototype would still apply. */
23129#ifdef __cplusplus
23130extern "C"
23131#endif
23132char clock_gettime ();
23133int
23134main ()
23135{
23136return clock_gettime ();
23137 ;
23138 return 0;
23139}
23140_ACEOF
23141for ac_lib in '' rt; do
23142 if test -z "$ac_lib"; then
23143 ac_res="none required"
23144 else
23145 ac_res=-l$ac_lib
23146 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23147 fi
cristy8b350f62009-11-15 23:12:43 +000023148 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023149 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000023150fi
cristy8b350f62009-11-15 23:12:43 +000023151rm -f core conftest.err conftest.$ac_objext \
23152 conftest$ac_exeext
23153 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023154 break
23155fi
23156done
cristy8b350f62009-11-15 23:12:43 +000023157if test "${ac_cv_search_clock_gettime+set}" = set; then :
23158
cristye43a45e2009-09-28 14:49:00 +000023159else
23160 ac_cv_search_clock_gettime=no
23161fi
23162rm conftest.$ac_ext
23163LIBS=$ac_func_search_save_LIBS
23164fi
cristy8b350f62009-11-15 23:12:43 +000023165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023166$as_echo "$ac_cv_search_clock_gettime" >&6; }
23167ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000023168if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000023169 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23170
23171
cristy8b350f62009-11-15 23:12:43 +000023172$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023173
cristy8b350f62009-11-15 23:12:43 +000023174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000023175$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023177/* end confdefs.h. */
23178#include <time.h>
23179int
23180main ()
23181{
23182clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000023183 ;
23184 return 0;
23185}
23186_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023187if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023188
cristy8b350f62009-11-15 23:12:43 +000023189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000023190$as_echo "yes" >&6; }
23191
cristy8b350f62009-11-15 23:12:43 +000023192$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023193
23194
23195else
cristy8b350f62009-11-15 23:12:43 +000023196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000023197$as_echo "no" >&6; }
23198
23199fi
cristye43a45e2009-09-28 14:49:00 +000023200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23201
23202else
23203
cristy8b350f62009-11-15 23:12:43 +000023204 for ac_func in gettimeofday ftime
23205do :
23206 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23207ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy0684af42010-07-09 00:00:05 +000023208if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000023209 cat >>confdefs.h <<_ACEOF
23210#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23211_ACEOF
23212 break
23213fi
23214done
23215
23216
23217
23218fi
23219
23220
cristy3ed852e2009-09-05 21:47:34 +000023221########
23222#
23223# Check for function prototypes
23224#
23225########
23226
cristy8b350f62009-11-15 23:12:43 +000023227ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000023228#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023229"
23230if test "x$ac_cv_have_decl_pread" = x""yes; then :
23231 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023232else
cristy8b350f62009-11-15 23:12:43 +000023233 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023234fi
23235
cristy3ed852e2009-09-05 21:47:34 +000023236cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023237#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023238_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023239ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000023240#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023241"
23242if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23243 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023244else
cristy8b350f62009-11-15 23:12:43 +000023245 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023246fi
23247
cristy3ed852e2009-09-05 21:47:34 +000023248cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023249#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023250_ACEOF
23251
23252
cristy8b350f62009-11-15 23:12:43 +000023253ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000023254#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000023255"
23256if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23257 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023258else
cristy8b350f62009-11-15 23:12:43 +000023259 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023260fi
23261
cristy3ed852e2009-09-05 21:47:34 +000023262cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023263#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023264_ACEOF
23265
23266
cristy8b350f62009-11-15 23:12:43 +000023267ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000023268#include <stdio.h>
23269#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000023270"
23271if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23272 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023273else
cristy8b350f62009-11-15 23:12:43 +000023274 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023275fi
23276
cristy3ed852e2009-09-05 21:47:34 +000023277cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023278#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023279_ACEOF
23280
23281
cristy3ed852e2009-09-05 21:47:34 +000023282########
23283#
23284# C++ Support Tests (For Magick++)
23285#
23286########
23287have_magick_plus_plus='no'
23288if test "$with_magick_plus_plus" = 'yes'; then
23289 OLIBS="$LIBS"
23290 LIBS=''
23291 ac_ext=cpp
23292ac_cpp='$CXXCPP $CPPFLAGS'
23293ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23294ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23295ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23296
23297
23298 # Full set of headers used...
23299 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23300 # functional iomanip iosfwd iostream iterator list string strstream utility
23301 ac_ext=cpp
23302ac_cpp='$CXXCPP $CPPFLAGS'
23303ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23304ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23305ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23306
23307 ac_ext=cpp
23308ac_cpp='$CXXCPP $CPPFLAGS'
23309ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23310ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23311ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23312if test -z "$CXX"; then
23313 if test -n "$CCC"; then
23314 CXX=$CCC
23315 else
23316 if test -n "$ac_tool_prefix"; then
23317 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23318 do
23319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23320set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023322$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023323if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023324 $as_echo_n "(cached) " >&6
23325else
23326 if test -n "$CXX"; then
23327 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23328else
23329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23330for as_dir in $PATH
23331do
23332 IFS=$as_save_IFS
23333 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023334 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23336 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023338 break 2
23339 fi
23340done
cristy8b350f62009-11-15 23:12:43 +000023341 done
cristy3ed852e2009-09-05 21:47:34 +000023342IFS=$as_save_IFS
23343
23344fi
23345fi
23346CXX=$ac_cv_prog_CXX
23347if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023349$as_echo "$CXX" >&6; }
23350else
cristy8b350f62009-11-15 23:12:43 +000023351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023352$as_echo "no" >&6; }
23353fi
23354
23355
23356 test -n "$CXX" && break
23357 done
23358fi
23359if test -z "$CXX"; then
23360 ac_ct_CXX=$CXX
23361 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23362do
23363 # Extract the first word of "$ac_prog", so it can be a program name with args.
23364set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023366$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023367if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023368 $as_echo_n "(cached) " >&6
23369else
23370 if test -n "$ac_ct_CXX"; then
23371 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23372else
23373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23374for as_dir in $PATH
23375do
23376 IFS=$as_save_IFS
23377 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023378 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23380 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023382 break 2
23383 fi
23384done
cristy8b350f62009-11-15 23:12:43 +000023385 done
cristy3ed852e2009-09-05 21:47:34 +000023386IFS=$as_save_IFS
23387
23388fi
23389fi
23390ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23391if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023393$as_echo "$ac_ct_CXX" >&6; }
23394else
cristy8b350f62009-11-15 23:12:43 +000023395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023396$as_echo "no" >&6; }
23397fi
23398
23399
23400 test -n "$ac_ct_CXX" && break
23401done
23402
23403 if test "x$ac_ct_CXX" = x; then
23404 CXX="g++"
23405 else
23406 case $cross_compiling:$ac_tool_warned in
23407yes:)
cristy8b350f62009-11-15 23:12:43 +000023408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23410ac_tool_warned=yes ;;
23411esac
23412 CXX=$ac_ct_CXX
23413 fi
23414fi
23415
23416 fi
23417fi
23418# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000023419$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000023420set X $ac_compile
23421ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000023422for ac_option in --version -v -V -qversion; do
23423 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000023424case "(($ac_try" in
23425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23426 *) ac_try_echo=$ac_try;;
23427esac
cristy8b350f62009-11-15 23:12:43 +000023428eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23429$as_echo "$ac_try_echo"; } >&5
23430 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000023431 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000023432 if test -s conftest.err; then
23433 sed '10a\
23434... rest of stderr output deleted ...
23435 10q' conftest.err >conftest.er1
23436 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000023437 fi
cristycd4c5312009-11-22 01:19:08 +000023438 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000023439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23440 test $ac_status = 0; }
23441done
cristy3ed852e2009-09-05 21:47:34 +000023442
cristy8b350f62009-11-15 23:12:43 +000023443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000023444$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023445if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023446 $as_echo_n "(cached) " >&6
23447else
cristy8b350f62009-11-15 23:12:43 +000023448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023449/* end confdefs.h. */
23450
23451int
23452main ()
23453{
23454#ifndef __GNUC__
23455 choke me
23456#endif
23457
23458 ;
23459 return 0;
23460}
23461_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023462if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023463 ac_compiler_gnu=yes
23464else
cristy8b350f62009-11-15 23:12:43 +000023465 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000023466fi
cristy3ed852e2009-09-05 21:47:34 +000023467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23468ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23469
23470fi
cristy8b350f62009-11-15 23:12:43 +000023471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000023472$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23473if test $ac_compiler_gnu = yes; then
23474 GXX=yes
23475else
23476 GXX=
23477fi
23478ac_test_CXXFLAGS=${CXXFLAGS+set}
23479ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000023480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023481$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023482if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023483 $as_echo_n "(cached) " >&6
23484else
23485 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23486 ac_cxx_werror_flag=yes
23487 ac_cv_prog_cxx_g=no
23488 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023490/* end confdefs.h. */
23491
23492int
23493main ()
23494{
23495
23496 ;
23497 return 0;
23498}
23499_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023500if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023501 ac_cv_prog_cxx_g=yes
23502else
cristy8b350f62009-11-15 23:12:43 +000023503 CXXFLAGS=""
23504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023505/* end confdefs.h. */
23506
23507int
23508main ()
23509{
23510
23511 ;
23512 return 0;
23513}
23514_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023515if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023516
cristy8b350f62009-11-15 23:12:43 +000023517else
23518 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000023519 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023521/* end confdefs.h. */
23522
23523int
23524main ()
23525{
23526
23527 ;
23528 return 0;
23529}
23530_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023531if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023532 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000023533fi
cristy3ed852e2009-09-05 21:47:34 +000023534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23535fi
cristy3ed852e2009-09-05 21:47:34 +000023536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23537fi
cristy3ed852e2009-09-05 21:47:34 +000023538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23539 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23540fi
cristy8b350f62009-11-15 23:12:43 +000023541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023542$as_echo "$ac_cv_prog_cxx_g" >&6; }
23543if test "$ac_test_CXXFLAGS" = set; then
23544 CXXFLAGS=$ac_save_CXXFLAGS
23545elif test $ac_cv_prog_cxx_g = yes; then
23546 if test "$GXX" = yes; then
23547 CXXFLAGS="-g -O2"
23548 else
23549 CXXFLAGS="-g"
23550 fi
23551else
23552 if test "$GXX" = yes; then
23553 CXXFLAGS="-O2"
23554 else
23555 CXXFLAGS=
23556 fi
23557fi
23558ac_ext=cpp
23559ac_cpp='$CXXCPP $CPPFLAGS'
23560ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23561ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23562ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23563
23564depcc="$CXX" am_compiler_list=
23565
cristy8b350f62009-11-15 23:12:43 +000023566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023567$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023568if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023569 $as_echo_n "(cached) " >&6
23570else
23571 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23572 # We make a subdir and do the tests there. Otherwise we can end up
23573 # making bogus files that we don't know about and never remove. For
23574 # instance it was reported that on HP-UX the gcc test will end up
23575 # making a dummy file named `D' -- because `-MD' means `put the output
23576 # in D'.
23577 mkdir conftest.dir
23578 # Copy depcomp to subdir because otherwise we won't find it if we're
23579 # using a relative directory.
23580 cp "$am_depcomp" conftest.dir
23581 cd conftest.dir
23582 # We will build objects and dependencies in a subdirectory because
23583 # it helps to detect inapplicable dependency modes. For instance
23584 # both Tru64's cc and ICC support -MD to output dependencies as a
23585 # side effect of compilation, but ICC will put the dependencies in
23586 # the current directory while Tru64 will put them in the object
23587 # directory.
23588 mkdir sub
23589
23590 am_cv_CXX_dependencies_compiler_type=none
23591 if test "$am_compiler_list" = ""; then
23592 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23593 fi
23594 am__universal=false
23595 case " $depcc " in #(
23596 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23597 esac
23598
23599 for depmode in $am_compiler_list; do
23600 # Setup a source with many dependencies, because some compilers
23601 # like to wrap large dependency lists on column 80 (with \), and
23602 # we should not choose a depcomp mode which is confused by this.
23603 #
23604 # We need to recreate these files for each test, as the compiler may
23605 # overwrite some of them when testing with obscure command lines.
23606 # This happens at least with the AIX C compiler.
23607 : > sub/conftest.c
23608 for i in 1 2 3 4 5 6; do
23609 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23610 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23611 # Solaris 8's {/usr,}/bin/sh.
23612 touch sub/conftst$i.h
23613 done
23614 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23615
23616 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23617 # mode. It turns out that the SunPro C++ compiler does not properly
23618 # handle `-M -o', and we need to detect this. Also, some Intel
23619 # versions had trouble with output in subdirs
23620 am__obj=sub/conftest.${OBJEXT-o}
23621 am__minus_obj="-o $am__obj"
23622 case $depmode in
23623 gcc)
23624 # This depmode causes a compiler race in universal mode.
23625 test "$am__universal" = false || continue
23626 ;;
23627 nosideeffect)
23628 # after this tag, mechanisms are not by side-effect, so they'll
23629 # only be used when explicitly requested
23630 if test "x$enable_dependency_tracking" = xyes; then
23631 continue
23632 else
23633 break
23634 fi
23635 ;;
23636 msvisualcpp | msvcmsys)
23637 # This compiler won't grok `-c -o', but also, the minuso test has
23638 # not run yet. These depmodes are late enough in the game, and
23639 # so weak that their functioning should not be impacted.
23640 am__obj=conftest.${OBJEXT-o}
23641 am__minus_obj=
23642 ;;
23643 none) break ;;
23644 esac
23645 if depmode=$depmode \
23646 source=sub/conftest.c object=$am__obj \
23647 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23648 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23649 >/dev/null 2>conftest.err &&
23650 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23651 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23652 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23653 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23654 # icc doesn't choke on unknown options, it will just issue warnings
23655 # or remarks (even with -Werror). So we grep stderr for any message
23656 # that says an option was ignored or not supported.
23657 # When given -MP, icc 7.0 and 7.1 complain thusly:
23658 # icc: Command line warning: ignoring option '-M'; no argument required
23659 # The diagnosis changed in icc 8.0:
23660 # icc: Command line remark: option '-MP' not supported
23661 if (grep 'ignoring option' conftest.err ||
23662 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23663 am_cv_CXX_dependencies_compiler_type=$depmode
23664 break
23665 fi
23666 fi
23667 done
23668
23669 cd ..
23670 rm -rf conftest.dir
23671else
23672 am_cv_CXX_dependencies_compiler_type=none
23673fi
23674
23675fi
cristy8b350f62009-11-15 23:12:43 +000023676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023677$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23678CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23679
23680 if
23681 test "x$enable_dependency_tracking" != xno \
23682 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23683 am__fastdepCXX_TRUE=
23684 am__fastdepCXX_FALSE='#'
23685else
23686 am__fastdepCXX_TRUE='#'
23687 am__fastdepCXX_FALSE=
23688fi
23689
23690
cristy8b350f62009-11-15 23:12:43 +000023691 { $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 +000023692$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023693if test "${ax_cv_cxx_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023694 $as_echo_n "(cached) " >&6
23695else
23696
23697 ac_ext=cpp
23698ac_cpp='$CXXCPP $CPPFLAGS'
23699ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23700ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23701ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23702
cristy8b350f62009-11-15 23:12:43 +000023703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023704/* end confdefs.h. */
23705
23706int f(int x){return 1;}
23707int f(char x){return 1;}
23708int f(bool x){return 1;}
23709
23710int
23711main ()
23712{
23713bool b = true; return f(b);
23714 ;
23715 return 0;
23716}
23717_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023718if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023719 ax_cv_cxx_bool=yes
cristy3ed852e2009-09-05 21:47:34 +000023720else
cristy964cb7f2010-04-25 23:18:00 +000023721 ax_cv_cxx_bool=no
cristy3ed852e2009-09-05 21:47:34 +000023722fi
cristy3ed852e2009-09-05 21:47:34 +000023723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23724 ac_ext=cpp
23725ac_cpp='$CXXCPP $CPPFLAGS'
23726ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23727ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23728ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23729
23730
23731fi
cristy964cb7f2010-04-25 23:18:00 +000023732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23733$as_echo "$ax_cv_cxx_bool" >&6; }
23734if test "$ax_cv_cxx_bool" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023735
cristy8b350f62009-11-15 23:12:43 +000023736$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023737
23738fi
23739
cristy8b350f62009-11-15 23:12:43 +000023740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023741$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023742if test "${ax_cv_cxx_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023743 $as_echo_n "(cached) " >&6
23744else
23745
23746 ac_ext=cpp
23747ac_cpp='$CXXCPP $CPPFLAGS'
23748ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23749ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23750ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23751
cristy8b350f62009-11-15 23:12:43 +000023752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023753/* end confdefs.h. */
23754namespace Outer { namespace Inner { int i = 0; }}
23755int
23756main ()
23757{
23758using namespace Outer::Inner; return i;
23759 ;
23760 return 0;
23761}
23762_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023763if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023764 ax_cv_cxx_namespaces=yes
cristy3ed852e2009-09-05 21:47:34 +000023765else
cristy964cb7f2010-04-25 23:18:00 +000023766 ax_cv_cxx_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000023767fi
cristy3ed852e2009-09-05 21:47:34 +000023768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23769 ac_ext=cpp
23770ac_cpp='$CXXCPP $CPPFLAGS'
23771ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23772ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23773ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23774
23775
23776fi
cristy964cb7f2010-04-25 23:18:00 +000023777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23778$as_echo "$ax_cv_cxx_namespaces" >&6; }
23779if test "$ax_cv_cxx_namespaces" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023780
cristy8b350f62009-11-15 23:12:43 +000023781$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023782
23783fi
23784
cristy964cb7f2010-04-25 23:18:00 +000023785
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
23787$as_echo_n "checking if g++ supports namespace std... " >&6; }
23788if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023789 $as_echo_n "(cached) " >&6
23790else
23791
cristy964cb7f2010-04-25 23:18:00 +000023792 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000023793ac_cpp='$CXXCPP $CPPFLAGS'
23794ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23795ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23796ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23797
cristy964cb7f2010-04-25 23:18:00 +000023798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023799/* end confdefs.h. */
23800#include <iostream>
cristy964cb7f2010-04-25 23:18:00 +000023801 std::istream& is = std::cin;
cristy3ed852e2009-09-05 21:47:34 +000023802int
23803main ()
23804{
cristy964cb7f2010-04-25 23:18:00 +000023805
cristy3ed852e2009-09-05 21:47:34 +000023806 ;
23807 return 0;
23808}
23809_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023810if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023811 ax_cv_cxx_have_std_namespace=yes
cristy3ed852e2009-09-05 21:47:34 +000023812else
cristy964cb7f2010-04-25 23:18:00 +000023813 ax_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000023814fi
cristy3ed852e2009-09-05 21:47:34 +000023815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +000023816 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000023817ac_cpp='$CXXCPP $CPPFLAGS'
23818ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23819ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23820ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23821
23822
23823fi
cristy964cb7f2010-04-25 23:18:00 +000023824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
23825$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
23826 if test "$ax_cv_cxx_have_std_namespace" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023827
cristy964cb7f2010-04-25 23:18:00 +000023828$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023829
cristy964cb7f2010-04-25 23:18:00 +000023830 fi
cristy3ed852e2009-09-05 21:47:34 +000023831
cristy8b350f62009-11-15 23:12:43 +000023832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000023833$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023834if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023835 $as_echo_n "(cached) " >&6
23836else
23837
23838
23839 ac_ext=cpp
23840ac_cpp='$CXXCPP $CPPFLAGS'
23841ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23842ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23843ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23844
cristy8b350f62009-11-15 23:12:43 +000023845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023846/* end confdefs.h. */
23847#include <iostream>
23848#include <map>
23849#include <iomanip>
23850#include <cmath>
23851#ifdef HAVE_NAMESPACES
23852using namespace std;
23853#endif
23854int
23855main ()
23856{
23857return 0;
23858 ;
23859 return 0;
23860}
23861_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023862if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023863 ac_cv_cxx_have_std_libs=yes
23864else
cristy8b350f62009-11-15 23:12:43 +000023865 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000023866fi
cristy3ed852e2009-09-05 21:47:34 +000023867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23868 ac_ext=cpp
23869ac_cpp='$CXXCPP $CPPFLAGS'
23870ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23871ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23872ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23873
23874
23875fi
cristy8b350f62009-11-15 23:12:43 +000023876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000023877$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
23878if test "$ac_cv_cxx_have_std_libs" = yes; then
23879
cristy8b350f62009-11-15 23:12:43 +000023880$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023881
23882fi
23883
cristy8b350f62009-11-15 23:12:43 +000023884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000023885$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023886if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023887 $as_echo_n "(cached) " >&6
23888else
23889
23890 ac_ext=cpp
23891ac_cpp='$CXXCPP $CPPFLAGS'
23892ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23893ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23894ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23895
cristy8b350f62009-11-15 23:12:43 +000023896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023897/* end confdefs.h. */
23898const wchar_t* s=L"wide string";
23899_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023900if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023901 ac_cv_cxx_have_lstring=yes
23902else
cristy8b350f62009-11-15 23:12:43 +000023903 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000023904fi
cristy3ed852e2009-09-05 21:47:34 +000023905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23906 ac_ext=cpp
23907ac_cpp='$CXXCPP $CPPFLAGS'
23908ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23909ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23910ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23911
23912
23913fi
cristy8b350f62009-11-15 23:12:43 +000023914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000023915$as_echo "$ac_cv_cxx_have_lstring" >&6; }
23916if test "$ac_cv_cxx_have_lstring" = yes; then
23917
cristy8b350f62009-11-15 23:12:43 +000023918$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023919
23920fi
23921
23922
23923 OPENMP_CXXFLAGS=
23924 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000023925if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023926 enableval=$enable_openmp;
23927fi
23928
23929 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000023930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
23931$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023932if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023933 $as_echo_n "(cached) " >&6
23934else
cristy8b350f62009-11-15 23:12:43 +000023935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23936/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023937
23938#ifndef _OPENMP
23939 choke me
23940#endif
23941#include <omp.h>
23942int main () { return omp_get_num_threads (); }
23943
23944_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023945if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023946 ac_cv_prog_cxx_openmp='none needed'
23947else
cristy8b350f62009-11-15 23:12:43 +000023948 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000023949 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
23950 ac_save_CXXFLAGS=$CXXFLAGS
23951 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000023952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23953/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023954
23955#ifndef _OPENMP
23956 choke me
23957#endif
23958#include <omp.h>
23959int main () { return omp_get_num_threads (); }
23960
23961_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023962if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023963 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000023964fi
cristy8b350f62009-11-15 23:12:43 +000023965rm -f core conftest.err conftest.$ac_objext \
23966 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023967 CXXFLAGS=$ac_save_CXXFLAGS
23968 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
23969 break
23970 fi
23971 done
23972fi
cristy8b350f62009-11-15 23:12:43 +000023973rm -f core conftest.err conftest.$ac_objext \
23974 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023975fi
cristy8b350f62009-11-15 23:12:43 +000023976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023977$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
23978 case $ac_cv_prog_cxx_openmp in #(
23979 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000023980 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000023981 *)
cristy8b350f62009-11-15 23:12:43 +000023982 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000023983 esac
23984 fi
23985
23986
23987 ac_ext=c
23988ac_cpp='$CPP $CPPFLAGS'
23989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23991ac_compiler_gnu=$ac_cv_c_compiler_gnu
23992
23993
cristy8b350f62009-11-15 23:12:43 +000023994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000023995$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
23996 if \
cristy964cb7f2010-04-25 23:18:00 +000023997 test $ax_cv_cxx_bool = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000023998 test $ac_cv_cxx_have_lstring = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000023999 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024000 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024001 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024002 have_magick_plus_plus='yes'
24003 else
24004 have_magick_plus_plus='no (failed tests)'
24005 fi
cristy8b350f62009-11-15 23:12:43 +000024006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024007$as_echo "$have_magick_plus_plus" >&6; }
24008 LIBS="$OLIBS"
24009fi
24010 if test "$have_magick_plus_plus" = 'yes'; then
24011 WITH_MAGICK_PLUS_PLUS_TRUE=
24012 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24013else
24014 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24015 WITH_MAGICK_PLUS_PLUS_FALSE=
24016fi
24017
24018
24019# Only check for delegate libraries in subdirectories if requested.
24020if test "$enable_delegate_build" != 'no'; then
24021 # Check for delegate sub-directories and add -I & -L options as required.
24022 # This presumes that delegates are installed as detailed in the ImageMagick
24023 # README. If delegates are installed in a standard location where the
24024 # compiler will automatically find them then these options should not be
24025 # required.
24026
24027 #
24028 # Most delegates have includes in the same directory as the library, but not all...
24029 #
24030 # Includes
cristy5850e4b2010-01-08 14:28:24 +000024031 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 +000024032 if test -d "$builddir/$dir"; then
24033 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24034 else
24035 if test -d "$srcdirfull/$dir"; then
24036 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24037 fi
24038 fi
24039 done
24040
24041 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000024042 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 +000024043 if test -d "$builddir/$dir/.libs"; then
24044 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24045 else
24046 if test -d "$srcdirfull/$dir/.libs"; then
24047 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24048 fi
24049 fi
24050 if test -d "$builddir/$dir"; then
24051 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24052 else
24053 if test -d "$srcdirfull/$dir"; then
24054 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24055 fi
24056 fi
24057 done
24058fi
24059
24060# Assume that delegate headers reside under same directory as ImageMagick
24061# installation prefix.
24062MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24063
24064#
24065# Find the X11 RGB database
24066#
cristy8b350f62009-11-15 23:12:43 +000024067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024068$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024069if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024070 $as_echo_n "(cached) " >&6
24071else
24072 # Look for the header file in a standard set of common directories.
24073# Check X11 before X11Rn because it is often a symlink to the current release.
24074 for ac_dir in \
24075 /lib/usr/lib/X11 \
24076 /usr/X11/lib \
24077 /usr/X11R4/lib \
24078 /usr/X11R5/lib \
24079 /usr/X11R6/lib \
24080 /usr/X11R7/lib \
24081 /usr/X386/lib \
24082 /usr/XFree86/lib/X11 \
24083 /usr/athena/lib \
24084 /usr/lib \
24085 /usr/lib/X11 \
24086 /usr/lib/X11R4 \
24087 /usr/lib/X11R5 \
24088 /usr/lib/X11R6 \
24089 /usr/lib/X11R7 \
24090 /usr/local/X11/lib \
24091 /usr/local/X11R4/lib \
24092 /usr/local/X11R5/lib \
24093 /usr/local/X11R6/lib \
24094 /usr/local/lib \
24095 /usr/local/lib/X11 \
24096 /usr/local/lib/X11R4 \
24097 /usr/local/lib/X11R5 \
24098 /usr/local/lib/X11R6 \
24099 /usr/local/lib/X11R7 \
24100 /usr/local/x11r5/lib \
24101 /usr/lpp/Xamples/lib \
24102 /usr/openwin/lib \
24103 /usr/openwin/share/lib \
24104 /usr/unsupported/lib \
24105 /usr/x386/lib \
24106 ; do
24107 if test -f "$ac_dir/X11/rgb.txt"; then
24108 im_cv_x_configure="$ac_dir/X11/"
24109 break
24110 elif test -f "$ac_dir/rgb.txt"; then
24111 im_cv_x_configure="$ac_dir/"
24112 break
24113 fi
24114
24115 done
24116fi
cristy8b350f62009-11-15 23:12:43 +000024117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024118$as_echo "$im_cv_x_configure" >&6; }
24119X11_CONFIGURE_PATH="$im_cv_x_configure"
24120case "${build_os}" in
24121 mingw* )
24122 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24123 ;;
24124esac
24125
24126cat >>confdefs.h <<_ACEOF
24127#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24128_ACEOF
24129
24130
24131#
24132# Find OpenMP library
24133#
24134GOMP_LIBS=''
24135if test "$enable_openmp" != 'no'; then
24136 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024138$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024139if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024140 $as_echo_n "(cached) " >&6
24141else
24142 ac_check_lib_save_LIBS=$LIBS
24143LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024145/* end confdefs.h. */
24146
24147/* Override any GCC internal prototype to avoid an error.
24148 Use char because int might match the return type of a GCC
24149 builtin and then its argument prototype would still apply. */
24150#ifdef __cplusplus
24151extern "C"
24152#endif
24153char GOMP_parallel_start ();
24154int
24155main ()
24156{
24157return GOMP_parallel_start ();
24158 ;
24159 return 0;
24160}
24161_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024162if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024163 ac_cv_lib_gomp_GOMP_parallel_start=yes
24164else
cristy8b350f62009-11-15 23:12:43 +000024165 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024166fi
cristy8b350f62009-11-15 23:12:43 +000024167rm -f core conftest.err conftest.$ac_objext \
24168 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024169LIBS=$ac_check_lib_save_LIBS
24170fi
cristy8b350f62009-11-15 23:12:43 +000024171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024172$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024173if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024174 GOMP_LIBS="-lgomp"
24175fi
24176 # gcc
24177 else
cristy8b350f62009-11-15 23:12:43 +000024178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000024179$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024180if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024181 $as_echo_n "(cached) " >&6
24182else
24183 ac_check_lib_save_LIBS=$LIBS
24184LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024186/* end confdefs.h. */
24187
24188/* Override any GCC internal prototype to avoid an error.
24189 Use char because int might match the return type of a GCC
24190 builtin and then its argument prototype would still apply. */
24191#ifdef __cplusplus
24192extern "C"
24193#endif
24194char sunw_mp_register_warn ();
24195int
24196main ()
24197{
24198return sunw_mp_register_warn ();
24199 ;
24200 return 0;
24201}
24202_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024203if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024204 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24205else
cristy8b350f62009-11-15 23:12:43 +000024206 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000024207fi
cristy8b350f62009-11-15 23:12:43 +000024208rm -f core conftest.err conftest.$ac_objext \
24209 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024210LIBS=$ac_check_lib_save_LIBS
24211fi
cristy8b350f62009-11-15 23:12:43 +000024212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000024213$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024214if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024215 GOMP_LIBS="-lmtsk"
24216fi
24217 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000024218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024219$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024220if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024221 $as_echo_n "(cached) " >&6
24222else
24223 ac_check_lib_save_LIBS=$LIBS
24224LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024226/* end confdefs.h. */
24227
24228/* Override any GCC internal prototype to avoid an error.
24229 Use char because int might match the return type of a GCC
24230 builtin and then its argument prototype would still apply. */
24231#ifdef __cplusplus
24232extern "C"
24233#endif
24234char _xlsmpFlush ();
24235int
24236main ()
24237{
24238return _xlsmpFlush ();
24239 ;
24240 return 0;
24241}
24242_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024243if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024244 ac_cv_lib_xlsmp__xlsmpFlush=yes
24245else
cristy8b350f62009-11-15 23:12:43 +000024246 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000024247fi
cristy8b350f62009-11-15 23:12:43 +000024248rm -f core conftest.err conftest.$ac_objext \
24249 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024250LIBS=$ac_check_lib_save_LIBS
24251fi
cristy8b350f62009-11-15 23:12:43 +000024252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000024253$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024254if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024255 GOMP_LIBS="-lxlsmp"
24256fi
24257 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000024258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024259$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024260if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024261 $as_echo_n "(cached) " >&6
24262else
24263 ac_check_lib_save_LIBS=$LIBS
24264LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024266/* end confdefs.h. */
24267
24268/* Override any GCC internal prototype to avoid an error.
24269 Use char because int might match the return type of a GCC
24270 builtin and then its argument prototype would still apply. */
24271#ifdef __cplusplus
24272extern "C"
24273#endif
24274char mp_destroy ();
24275int
24276main ()
24277{
24278return mp_destroy ();
24279 ;
24280 return 0;
24281}
24282_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024283if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024284 ac_cv_lib_mp_mp_destroy=yes
24285else
cristy8b350f62009-11-15 23:12:43 +000024286 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000024287fi
cristy8b350f62009-11-15 23:12:43 +000024288rm -f core conftest.err conftest.$ac_objext \
24289 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024290LIBS=$ac_check_lib_save_LIBS
24291fi
cristy8b350f62009-11-15 23:12:43 +000024292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000024293$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024294if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024295 GOMP_LIBS="-lmp"
24296fi
24297 # SGI IRIX 6.5 MIPSpro C/C++
24298 fi
24299 LIBS="$GOMP_LIBS $LIBS"
24300fi
24301
24302
24303#
24304# Find Posix threads library
24305#
24306THREAD_LIBS=''
24307if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24308
24309 if test "x$PTHREAD_LIBS" = "x"; then
24310 case "${host_cpu}-${host_os}" in
24311 *-freebsd*)
24312
24313
24314
24315ac_ext=c
24316ac_cpp='$CPP $CPPFLAGS'
24317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24319ac_compiler_gnu=$ac_cv_c_compiler_gnu
24320
24321magick_pthread_lib_ok=no
24322
24323LIB=-lc_r
24324save_LIBS="$LIBS"
24325LIBS="$LIBS $LIB"
24326
cristy8b350f62009-11-15 23:12:43 +000024327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024328$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024330/* end confdefs.h. */
24331#include <pthread.h>
24332int
24333main ()
24334{
24335 pthread_t th;
24336 pthread_join(th, 0);
24337 pthread_attr_init(0);
24338 pthread_cleanup_push(0, 0);
24339 pthread_create(0,0,0,0);
24340 pthread_cleanup_pop(0);
24341 ;
24342 return 0;
24343}
24344_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024345if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024346 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024347fi
cristy8b350f62009-11-15 23:12:43 +000024348rm -f core conftest.err conftest.$ac_objext \
24349 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024350
cristy8b350f62009-11-15 23:12:43 +000024351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024352$as_echo "${magick_pthread_lib_ok}" >&6; }
24353if test "$magick_pthread_lib_ok" = yes
24354then
24355 PTHREAD_LIBS=-lc_r
24356 :
24357else
24358
24359 :
24360fi
24361
24362LIBS="$save_LIBS"
24363
24364ac_ext=c
24365ac_cpp='$CPP $CPPFLAGS'
24366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24368ac_compiler_gnu=$ac_cv_c_compiler_gnu
24369
24370 ;;
24371 esac
24372 fi
24373
24374 for lib in pthread pthreads; do
24375 if test "x$PTHREAD_LIBS" = "x"; then
24376
24377
24378
24379ac_ext=c
24380ac_cpp='$CPP $CPPFLAGS'
24381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24383ac_compiler_gnu=$ac_cv_c_compiler_gnu
24384
24385magick_pthread_lib_ok=no
24386
24387LIB=-l$lib
24388save_LIBS="$LIBS"
24389LIBS="$LIBS $LIB"
24390
cristy8b350f62009-11-15 23:12:43 +000024391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024392$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024394/* end confdefs.h. */
24395#include <pthread.h>
24396int
24397main ()
24398{
24399 pthread_t th;
24400 pthread_join(th, 0);
24401 pthread_attr_init(0);
24402 pthread_cleanup_push(0, 0);
24403 pthread_create(0,0,0,0);
24404 pthread_cleanup_pop(0);
24405 ;
24406 return 0;
24407}
24408_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024409if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024410 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024411fi
cristy8b350f62009-11-15 23:12:43 +000024412rm -f core conftest.err conftest.$ac_objext \
24413 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024414
cristy8b350f62009-11-15 23:12:43 +000024415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024416$as_echo "${magick_pthread_lib_ok}" >&6; }
24417if test "$magick_pthread_lib_ok" = yes
24418then
24419 PTHREAD_LIBS=-l$lib
24420 :
24421else
24422
24423 :
24424fi
24425
24426LIBS="$save_LIBS"
24427
24428ac_ext=c
24429ac_cpp='$CPP $CPPFLAGS'
24430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24432ac_compiler_gnu=$ac_cv_c_compiler_gnu
24433
24434
24435 fi
24436 done
24437
24438 THREAD_LIBS="$PTHREAD_LIBS"
24439 LIBS="$LIBS $THREAD_LIBS"
24440fi
24441
24442
24443#
24444# Check for umem.
24445#
24446have_umem='no'
24447UMEM_LIBS=''
24448if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000024450$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024452$as_echo "" >&6; }
24453 failed=0
24454 passed=0
cristy8b350f62009-11-15 23:12:43 +000024455 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24456if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024457 passed=`expr $passed + 1`
24458else
24459 failed=`expr $failed + 1`
24460fi
24461
24462
cristy8b350f62009-11-15 23:12:43 +000024463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024464$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024465if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024466 $as_echo_n "(cached) " >&6
24467else
24468 ac_check_lib_save_LIBS=$LIBS
24469LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024471/* end confdefs.h. */
24472
24473/* Override any GCC internal prototype to avoid an error.
24474 Use char because int might match the return type of a GCC
24475 builtin and then its argument prototype would still apply. */
24476#ifdef __cplusplus
24477extern "C"
24478#endif
24479char umem_alloc ();
24480int
24481main ()
24482{
24483return umem_alloc ();
24484 ;
24485 return 0;
24486}
24487_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024488if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024489 ac_cv_lib_umem_umem_alloc=yes
24490else
cristy8b350f62009-11-15 23:12:43 +000024491 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000024492fi
cristy8b350f62009-11-15 23:12:43 +000024493rm -f core conftest.err conftest.$ac_objext \
24494 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024495LIBS=$ac_check_lib_save_LIBS
24496fi
cristy8b350f62009-11-15 23:12:43 +000024497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024498$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024499if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024500 passed=`expr $passed + 1`
24501else
24502 failed=`expr $failed + 1`
24503fi
24504
cristy8b350f62009-11-15 23:12:43 +000024505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024506$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024507if test "${ac_cv_lib_umem_umem_free+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_free ();
24522int
24523main ()
24524{
24525return umem_free ();
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_free=yes
24532else
cristy8b350f62009-11-15 23:12:43 +000024533 ac_cv_lib_umem_umem_free=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_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000024540$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024541if test "x$ac_cv_lib_umem_umem_free" = 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 if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024548$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24549 if test $passed -gt 0; then
24550 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024552$as_echo "no -- some components failed test" >&6; }
24553 have_umem='no (failed tests)'
24554 else
24555 UMEM_LIBS='-lumem'
24556 LIBS="$UMEM_LIBS $LIBS"
24557
cristy8b350f62009-11-15 23:12:43 +000024558$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024559
cristy8b350f62009-11-15 23:12:43 +000024560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024561$as_echo "yes" >&6; }
24562 have_umem='yes'
24563 fi
24564 else
cristy8b350f62009-11-15 23:12:43 +000024565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024566$as_echo "no" >&6; }
24567 fi
24568fi
24569 if test "$have_umem" = 'yes'; then
24570 HasUMEM_TRUE=
24571 HasUMEM_FALSE='#'
24572else
24573 HasUMEM_TRUE='#'
24574 HasUMEM_FALSE=
24575fi
24576
24577
24578
24579#
24580# Add support for ccmalloc memory debugging library if requested
24581#
24582have_ccmalloc='no'
24583CCMALLOC_LIBS=''
24584if test "$enable_ccmalloc" = 'yes'; then
24585 # Extract the first word of "ccmalloc", so it can be a program name with args.
24586set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024588$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024589if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024590 $as_echo_n "(cached) " >&6
24591else
24592 case $CCMALLOCDelegate in
24593 [\\/]* | ?:[\\/]*)
24594 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24595 ;;
24596 *)
24597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24598for as_dir in $PATH
24599do
24600 IFS=$as_save_IFS
24601 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024602 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24604 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000024605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024606 break 2
24607 fi
24608done
cristy8b350f62009-11-15 23:12:43 +000024609 done
cristy3ed852e2009-09-05 21:47:34 +000024610IFS=$as_save_IFS
24611
24612 ;;
24613esac
24614fi
24615CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24616if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000024617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024618$as_echo "$CCMALLOCDelegate" >&6; }
24619else
cristy8b350f62009-11-15 23:12:43 +000024620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024621$as_echo "no" >&6; }
24622fi
24623
24624
24625 if test -n "$CCMALLOCDelegate"; then
24626 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24627 OLIBS="$LIBS"
24628 # Assume that gcc is used with ccmalloc.
24629 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000024630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024631$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024632if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024633 $as_echo_n "(cached) " >&6
24634else
24635 ac_check_lib_save_LIBS=$LIBS
24636LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024638/* end confdefs.h. */
24639
24640/* Override any GCC internal prototype to avoid an error.
24641 Use char because int might match the return type of a GCC
24642 builtin and then its argument prototype would still apply. */
24643#ifdef __cplusplus
24644extern "C"
24645#endif
24646char ccmalloc_malloc ();
24647int
24648main ()
24649{
24650return ccmalloc_malloc ();
24651 ;
24652 return 0;
24653}
24654_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024655if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024656 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24657else
cristy8b350f62009-11-15 23:12:43 +000024658 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024659fi
cristy8b350f62009-11-15 23:12:43 +000024660rm -f core conftest.err conftest.$ac_objext \
24661 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024662LIBS=$ac_check_lib_save_LIBS
24663fi
cristy8b350f62009-11-15 23:12:43 +000024664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024665$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024666if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024667 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24668fi
24669
24670 if test -n "$CCMALLOC_LIBS"; then
24671 LIBS="$OLIBS"
24672 LIBS="$LIBS $CCMALLOC_LIBS"
24673 have_ccmalloc='yes'
24674 else
24675 LIBS="$OLIBS"
24676 fi
24677 fi
24678fi
24679
24680#
24681# Add support for efence memory debugging library if requested
24682#
24683if test "$enable_efence" = 'yes'; then
24684 EFENCE_LIBS='-lefence'
24685 LIBS="$EFENCE_LIBS $LIBS"
24686fi
24687
cristy3ed852e2009-09-05 21:47:34 +000024688
24689#
24690# Check for BZLIB
24691#
24692
24693
24694# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024695if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024696 withval=$with_bzlib; with_bzlib=$withval
24697else
24698 with_bzlib='yes'
24699fi
24700
24701
24702if test "$with_bzlib" != 'yes'; then
24703 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24704fi
24705
24706have_bzlib='no'
24707if test "$with_bzlib" != 'no'; then
24708 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024710$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024712$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024714$as_echo "" >&6; }
24715 failed=0
24716 passed=0
24717 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024718 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24719if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024720 passed=`expr $passed + 1`
24721else
24722 failed=`expr $failed + 1`
24723fi
24724
24725
cristy8b350f62009-11-15 23:12:43 +000024726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024727$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024728if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024729 $as_echo_n "(cached) " >&6
24730else
24731 ac_check_lib_save_LIBS=$LIBS
24732LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024734/* end confdefs.h. */
24735
24736/* Override any GCC internal prototype to avoid an error.
24737 Use char because int might match the return type of a GCC
24738 builtin and then its argument prototype would still apply. */
24739#ifdef __cplusplus
24740extern "C"
24741#endif
24742char BZ2_bzDecompress ();
24743int
24744main ()
24745{
24746return BZ2_bzDecompress ();
24747 ;
24748 return 0;
24749}
24750_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024751if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024752 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24753else
cristy8b350f62009-11-15 23:12:43 +000024754 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024755fi
cristy8b350f62009-11-15 23:12:43 +000024756rm -f core conftest.err conftest.$ac_objext \
24757 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024758LIBS=$ac_check_lib_save_LIBS
24759fi
cristy8b350f62009-11-15 23:12:43 +000024760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024761$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024762if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024763 found_libbz=`expr $found_libbz + 1`
24764fi
24765
24766 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024768$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024769if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024770 $as_echo_n "(cached) " >&6
24771else
24772 ac_check_lib_save_LIBS=$LIBS
24773LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024775/* end confdefs.h. */
24776
24777/* Override any GCC internal prototype to avoid an error.
24778 Use char because int might match the return type of a GCC
24779 builtin and then its argument prototype would still apply. */
24780#ifdef __cplusplus
24781extern "C"
24782#endif
24783char _imp__BZ2_decompress ();
24784int
24785main ()
24786{
24787return _imp__BZ2_decompress ();
24788 ;
24789 return 0;
24790}
24791_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024792if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024793 ac_cv_lib_bz2__imp__BZ2_decompress=yes
24794else
cristy8b350f62009-11-15 23:12:43 +000024795 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000024796fi
cristy8b350f62009-11-15 23:12:43 +000024797rm -f core conftest.err conftest.$ac_objext \
24798 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024799LIBS=$ac_check_lib_save_LIBS
24800fi
cristy8b350f62009-11-15 23:12:43 +000024801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024802$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024803if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024804 found_libbz=`expr $found_libbz + 1`
24805fi
24806
24807 fi
24808 if test $found_libbz -gt 0; then
24809 passed=`expr $passed + 1`
24810 else
24811 failed=`expr $failed + 1`
24812 fi
cristy8b350f62009-11-15 23:12:43 +000024813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024814$as_echo_n "checking if BZLIB package is complete... " >&6; }
24815 if test $passed -gt 0; then
24816 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024818$as_echo "no -- some components failed test" >&6; }
24819 have_bzlib='no (failed tests)'
24820 else
24821 BZLIB_LIBS='-lbz2'
24822 LIBS="$BZLIB_LIBS $LIBS"
24823
cristy8b350f62009-11-15 23:12:43 +000024824$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024825
cristy8b350f62009-11-15 23:12:43 +000024826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024827$as_echo "yes" >&6; }
24828 have_bzlib='yes'
24829 fi
24830 else
cristy8b350f62009-11-15 23:12:43 +000024831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024832$as_echo "no" >&6; }
24833 fi
24834fi
24835 if test "$have_bzlib" = 'yes'; then
24836 BZLIB_DELEGATE_TRUE=
24837 BZLIB_DELEGATE_FALSE='#'
24838else
24839 BZLIB_DELEGATE_TRUE='#'
24840 BZLIB_DELEGATE_FALSE=
24841fi
24842
24843
24844
24845#
24846# Find the X11 include and library directories.
24847#
24848IPC_LIBS=''
24849X11_LIBS=''
24850XEXT_LIBS=''
24851XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000024853$as_echo_n "checking for X... " >&6; }
24854
24855
24856# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000024857if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024858 withval=$with_x;
24859fi
24860
24861# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24862if test "x$with_x" = xno; then
24863 # The user explicitly disabled X.
24864 have_x=disabled
24865else
24866 case $x_includes,$x_libraries in #(
cristy0684af42010-07-09 00:00:05 +000024867 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristy8b350f62009-11-15 23:12:43 +000024868 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024869 $as_echo_n "(cached) " >&6
24870else
24871 # One or both of the vars are not set, and there is no cached value.
24872ac_x_includes=no ac_x_libraries=no
24873rm -f -r conftest.dir
24874if mkdir conftest.dir; then
24875 cd conftest.dir
24876 cat >Imakefile <<'_ACEOF'
24877incroot:
24878 @echo incroot='${INCROOT}'
24879usrlibdir:
24880 @echo usrlibdir='${USRLIBDIR}'
24881libdir:
24882 @echo libdir='${LIBDIR}'
24883_ACEOF
24884 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy0684af42010-07-09 00:00:05 +000024885 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000024886 for ac_var in incroot usrlibdir libdir; do
24887 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24888 done
24889 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24890 for ac_extension in a so sl dylib la dll; do
24891 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24892 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24893 ac_im_usrlibdir=$ac_im_libdir; break
24894 fi
24895 done
24896 # Screen out bogus values from the imake configuration. They are
24897 # bogus both because they are the default anyway, and because
24898 # using them would break gcc on systems where it needs fixed includes.
24899 case $ac_im_incroot in
24900 /usr/include) ac_x_includes= ;;
24901 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24902 esac
24903 case $ac_im_usrlibdir in
24904 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24905 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24906 esac
24907 fi
24908 cd ..
24909 rm -f -r conftest.dir
24910fi
24911
24912# Standard set of common directories for X headers.
24913# Check X11 before X11Rn because it is often a symlink to the current release.
24914ac_x_header_dirs='
24915/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000024916/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024917/usr/X11R6/include
24918/usr/X11R5/include
24919/usr/X11R4/include
24920
24921/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000024922/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024923/usr/include/X11R6
24924/usr/include/X11R5
24925/usr/include/X11R4
24926
24927/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000024928/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024929/usr/local/X11R6/include
24930/usr/local/X11R5/include
24931/usr/local/X11R4/include
24932
24933/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000024934/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024935/usr/local/include/X11R6
24936/usr/local/include/X11R5
24937/usr/local/include/X11R4
24938
24939/usr/X386/include
24940/usr/x386/include
24941/usr/XFree86/include/X11
24942
24943/usr/include
24944/usr/local/include
24945/usr/unsupported/include
24946/usr/athena/include
24947/usr/local/x11r5/include
24948/usr/lpp/Xamples/include
24949
24950/usr/openwin/include
24951/usr/openwin/share/include'
24952
24953if test "$ac_x_includes" = no; then
24954 # Guess where to find include files, by looking for Xlib.h.
24955 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000024956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024957/* end confdefs.h. */
24958#include <X11/Xlib.h>
24959_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024960if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024961 # We can compile using X headers with no special include directory.
24962ac_x_includes=
24963else
cristyc7083c12009-10-14 03:16:55 +000024964 for ac_dir in $ac_x_header_dirs; do
24965 if test -r "$ac_dir/X11/Xlib.h"; then
24966 ac_x_includes=$ac_dir
24967 break
24968 fi
24969done
24970fi
cristyc7083c12009-10-14 03:16:55 +000024971rm -f conftest.err conftest.$ac_ext
24972fi # $ac_x_includes = no
24973
24974if test "$ac_x_libraries" = no; then
24975 # Check for the libraries.
24976 # See if we find them without any special options.
24977 # Don't add to $LIBS permanently.
24978 ac_save_LIBS=$LIBS
24979 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024981/* end confdefs.h. */
24982#include <X11/Xlib.h>
24983int
24984main ()
24985{
24986XrmInitialize ()
24987 ;
24988 return 0;
24989}
24990_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024991if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024992 LIBS=$ac_save_LIBS
24993# We can link X programs with no special library path.
24994ac_x_libraries=
24995else
cristy8b350f62009-11-15 23:12:43 +000024996 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000024997for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24998do
24999 # Don't even attempt the hair of trying to link an X program!
25000 for ac_extension in a so sl dylib la dll; do
25001 if test -r "$ac_dir/libX11.$ac_extension"; then
25002 ac_x_libraries=$ac_dir
25003 break 2
25004 fi
25005 done
25006done
25007fi
cristy8b350f62009-11-15 23:12:43 +000025008rm -f core conftest.err conftest.$ac_objext \
25009 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025010fi # $ac_x_libraries = no
25011
25012case $ac_x_includes,$ac_x_libraries in #(
25013 no,* | *,no | *\'*)
25014 # Didn't find X, or a directory has "'" in its name.
25015 ac_cv_have_x="have_x=no";; #(
25016 *)
25017 # Record where we found X for the cache.
25018 ac_cv_have_x="have_x=yes\
25019 ac_x_includes='$ac_x_includes'\
25020 ac_x_libraries='$ac_x_libraries'"
25021esac
25022fi
25023;; #(
25024 *) have_x=yes;;
25025 esac
25026 eval "$ac_cv_have_x"
25027fi # $with_x != no
25028
25029if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025031$as_echo "$have_x" >&6; }
25032 no_x=yes
25033else
25034 # If each of the values was on the command line, it overrides each guess.
25035 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25036 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25037 # Update the cache value to reflect the command line values.
25038 ac_cv_have_x="have_x=yes\
25039 ac_x_includes='$x_includes'\
25040 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025042$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25043fi
25044
cristy3ed852e2009-09-05 21:47:34 +000025045if test "$no_x" = yes; then
25046 # Not all programs may use this symbol, but it does not hurt to define it.
25047
cristy8b350f62009-11-15 23:12:43 +000025048$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025049
25050 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25051else
25052 if test -n "$x_includes"; then
25053 X_CFLAGS="$X_CFLAGS -I$x_includes"
25054 fi
25055
25056 # It would also be nice to do this for all -L options, not just this one.
25057 if test -n "$x_libraries"; then
25058 X_LIBS="$X_LIBS -L$x_libraries"
25059 # For Solaris; some versions of Sun CC require a space after -R and
25060 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025062$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25063 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25064 ac_xsave_c_werror_flag=$ac_c_werror_flag
25065 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025067/* end confdefs.h. */
25068
25069int
25070main ()
25071{
25072
25073 ;
25074 return 0;
25075}
25076_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025077if ac_fn_c_try_link "$LINENO"; then :
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025079$as_echo "no" >&6; }
25080 X_LIBS="$X_LIBS -R$x_libraries"
25081else
cristy8b350f62009-11-15 23:12:43 +000025082 LIBS="$ac_xsave_LIBS -R $x_libraries"
25083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025084/* end confdefs.h. */
25085
25086int
25087main ()
25088{
25089
25090 ;
25091 return 0;
25092}
25093_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025094if ac_fn_c_try_link "$LINENO"; then :
25095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025096$as_echo "yes" >&6; }
25097 X_LIBS="$X_LIBS -R $x_libraries"
25098else
cristy8b350f62009-11-15 23:12:43 +000025099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025100$as_echo "neither works" >&6; }
25101fi
cristy8b350f62009-11-15 23:12:43 +000025102rm -f core conftest.err conftest.$ac_objext \
25103 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025104fi
cristy8b350f62009-11-15 23:12:43 +000025105rm -f core conftest.err conftest.$ac_objext \
25106 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025107 ac_c_werror_flag=$ac_xsave_c_werror_flag
25108 LIBS=$ac_xsave_LIBS
25109 fi
25110
25111 # Check for system-dependent libraries X programs must link with.
25112 # Do this before checking for the system-independent R6 libraries
25113 # (-lICE), since we may need -lsocket or whatever for X linking.
25114
25115 if test "$ISC" = yes; then
25116 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25117 else
25118 # Martyn Johnson says this is needed for Ultrix, if the X
25119 # libraries were built with DECnet support. And Karl Berry says
25120 # the Alpha needs dnet_stub (dnet does not exist).
25121 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025123/* end confdefs.h. */
25124
25125/* Override any GCC internal prototype to avoid an error.
25126 Use char because int might match the return type of a GCC
25127 builtin and then its argument prototype would still apply. */
25128#ifdef __cplusplus
25129extern "C"
25130#endif
25131char XOpenDisplay ();
25132int
25133main ()
25134{
25135return XOpenDisplay ();
25136 ;
25137 return 0;
25138}
25139_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025140if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025141
cristy8b350f62009-11-15 23:12:43 +000025142else
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025144$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025145if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025146 $as_echo_n "(cached) " >&6
25147else
25148 ac_check_lib_save_LIBS=$LIBS
25149LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025151/* end confdefs.h. */
25152
25153/* Override any GCC internal prototype to avoid an error.
25154 Use char because int might match the return type of a GCC
25155 builtin and then its argument prototype would still apply. */
25156#ifdef __cplusplus
25157extern "C"
25158#endif
25159char dnet_ntoa ();
25160int
25161main ()
25162{
25163return dnet_ntoa ();
25164 ;
25165 return 0;
25166}
25167_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025168if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025169 ac_cv_lib_dnet_dnet_ntoa=yes
25170else
cristy8b350f62009-11-15 23:12:43 +000025171 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025172fi
cristy8b350f62009-11-15 23:12:43 +000025173rm -f core conftest.err conftest.$ac_objext \
25174 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025175LIBS=$ac_check_lib_save_LIBS
25176fi
cristy8b350f62009-11-15 23:12:43 +000025177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025178$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025179if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025180 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25181fi
25182
25183 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000025184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000025185$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025186if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025187 $as_echo_n "(cached) " >&6
25188else
25189 ac_check_lib_save_LIBS=$LIBS
25190LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025192/* end confdefs.h. */
25193
25194/* Override any GCC internal prototype to avoid an error.
25195 Use char because int might match the return type of a GCC
25196 builtin and then its argument prototype would still apply. */
25197#ifdef __cplusplus
25198extern "C"
25199#endif
25200char dnet_ntoa ();
25201int
25202main ()
25203{
25204return dnet_ntoa ();
25205 ;
25206 return 0;
25207}
25208_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025209if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025210 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25211else
cristy8b350f62009-11-15 23:12:43 +000025212 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025213fi
cristy8b350f62009-11-15 23:12:43 +000025214rm -f core conftest.err conftest.$ac_objext \
25215 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025216LIBS=$ac_check_lib_save_LIBS
25217fi
cristy8b350f62009-11-15 23:12:43 +000025218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025219$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025220if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025221 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25222fi
25223
25224 fi
25225fi
cristy8b350f62009-11-15 23:12:43 +000025226rm -f core conftest.err conftest.$ac_objext \
25227 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025228 LIBS="$ac_xsave_LIBS"
25229
25230 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25231 # to get the SysV transport functions.
25232 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25233 # needs -lnsl.
25234 # The nsl library prevents programs from opening the X display
25235 # on Irix 5.2, according to T.E. Dickey.
25236 # The functions gethostbyname, getservbyname, and inet_addr are
25237 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000025238 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25239if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025240
cristy3ed852e2009-09-05 21:47:34 +000025241fi
25242
cristy3ed852e2009-09-05 21:47:34 +000025243 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025245$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025246if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025247 $as_echo_n "(cached) " >&6
25248else
25249 ac_check_lib_save_LIBS=$LIBS
25250LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025252/* end confdefs.h. */
25253
25254/* Override any GCC internal prototype to avoid an error.
25255 Use char because int might match the return type of a GCC
25256 builtin and then its argument prototype would still apply. */
25257#ifdef __cplusplus
25258extern "C"
25259#endif
25260char gethostbyname ();
25261int
25262main ()
25263{
25264return gethostbyname ();
25265 ;
25266 return 0;
25267}
25268_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025269if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025270 ac_cv_lib_nsl_gethostbyname=yes
25271else
cristy8b350f62009-11-15 23:12:43 +000025272 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025273fi
cristy8b350f62009-11-15 23:12:43 +000025274rm -f core conftest.err conftest.$ac_objext \
25275 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025276LIBS=$ac_check_lib_save_LIBS
25277fi
cristy8b350f62009-11-15 23:12:43 +000025278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025279$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025280if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025281 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25282fi
25283
25284 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000025286$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025287if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025288 $as_echo_n "(cached) " >&6
25289else
25290 ac_check_lib_save_LIBS=$LIBS
25291LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025293/* end confdefs.h. */
25294
25295/* Override any GCC internal prototype to avoid an error.
25296 Use char because int might match the return type of a GCC
25297 builtin and then its argument prototype would still apply. */
25298#ifdef __cplusplus
25299extern "C"
25300#endif
25301char gethostbyname ();
25302int
25303main ()
25304{
25305return gethostbyname ();
25306 ;
25307 return 0;
25308}
25309_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025310if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025311 ac_cv_lib_bsd_gethostbyname=yes
25312else
cristy8b350f62009-11-15 23:12:43 +000025313 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025314fi
cristy8b350f62009-11-15 23:12:43 +000025315rm -f core conftest.err conftest.$ac_objext \
25316 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025317LIBS=$ac_check_lib_save_LIBS
25318fi
cristy8b350f62009-11-15 23:12:43 +000025319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025320$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025321if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025322 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25323fi
25324
25325 fi
25326 fi
25327
25328 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25329 # socket/setsockopt and other routines are undefined under SCO ODT
25330 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25331 # on later versions), says Simon Leinen: it contains gethostby*
25332 # variants that don't use the name server (or something). -lsocket
25333 # must be given before -lnsl if both are needed. We assume that
25334 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000025335 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25336if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025337
cristy3ed852e2009-09-05 21:47:34 +000025338fi
25339
cristy3ed852e2009-09-05 21:47:34 +000025340 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000025341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000025342$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025343if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025344 $as_echo_n "(cached) " >&6
25345else
25346 ac_check_lib_save_LIBS=$LIBS
25347LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025349/* end confdefs.h. */
25350
25351/* Override any GCC internal prototype to avoid an error.
25352 Use char because int might match the return type of a GCC
25353 builtin and then its argument prototype would still apply. */
25354#ifdef __cplusplus
25355extern "C"
25356#endif
25357char connect ();
25358int
25359main ()
25360{
25361return connect ();
25362 ;
25363 return 0;
25364}
25365_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025366if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025367 ac_cv_lib_socket_connect=yes
25368else
cristy8b350f62009-11-15 23:12:43 +000025369 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000025370fi
cristy8b350f62009-11-15 23:12:43 +000025371rm -f core conftest.err conftest.$ac_objext \
25372 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025373LIBS=$ac_check_lib_save_LIBS
25374fi
cristy8b350f62009-11-15 23:12:43 +000025375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000025376$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025377if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025378 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25379fi
25380
25381 fi
25382
25383 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000025384 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25385if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025386
cristy3ed852e2009-09-05 21:47:34 +000025387fi
25388
cristy3ed852e2009-09-05 21:47:34 +000025389 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000025390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000025391$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025392if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025393 $as_echo_n "(cached) " >&6
25394else
25395 ac_check_lib_save_LIBS=$LIBS
25396LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025398/* end confdefs.h. */
25399
25400/* Override any GCC internal prototype to avoid an error.
25401 Use char because int might match the return type of a GCC
25402 builtin and then its argument prototype would still apply. */
25403#ifdef __cplusplus
25404extern "C"
25405#endif
25406char remove ();
25407int
25408main ()
25409{
25410return remove ();
25411 ;
25412 return 0;
25413}
25414_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025415if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025416 ac_cv_lib_posix_remove=yes
25417else
cristy8b350f62009-11-15 23:12:43 +000025418 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000025419fi
cristy8b350f62009-11-15 23:12:43 +000025420rm -f core conftest.err conftest.$ac_objext \
25421 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025422LIBS=$ac_check_lib_save_LIBS
25423fi
cristy8b350f62009-11-15 23:12:43 +000025424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000025425$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025426if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025427 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25428fi
25429
25430 fi
25431
25432 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000025433 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25434if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025435
cristy3ed852e2009-09-05 21:47:34 +000025436fi
25437
cristy3ed852e2009-09-05 21:47:34 +000025438 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000025439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025440$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025441if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025442 $as_echo_n "(cached) " >&6
25443else
25444 ac_check_lib_save_LIBS=$LIBS
25445LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025447/* end confdefs.h. */
25448
25449/* Override any GCC internal prototype to avoid an error.
25450 Use char because int might match the return type of a GCC
25451 builtin and then its argument prototype would still apply. */
25452#ifdef __cplusplus
25453extern "C"
25454#endif
25455char shmat ();
25456int
25457main ()
25458{
25459return shmat ();
25460 ;
25461 return 0;
25462}
25463_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025464if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025465 ac_cv_lib_ipc_shmat=yes
25466else
cristy8b350f62009-11-15 23:12:43 +000025467 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000025468fi
cristy8b350f62009-11-15 23:12:43 +000025469rm -f core conftest.err conftest.$ac_objext \
25470 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025471LIBS=$ac_check_lib_save_LIBS
25472fi
cristy8b350f62009-11-15 23:12:43 +000025473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000025474$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025475if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025476 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25477fi
25478
25479 fi
25480 fi
25481
25482 # Check for libraries that X11R6 Xt/Xaw programs need.
25483 ac_save_LDFLAGS=$LDFLAGS
25484 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25485 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25486 # check for ICE first), but we must link in the order -lSM -lICE or
25487 # we get undefined symbols. So assume we have SM if we have ICE.
25488 # These have to be linked with before -lX11, unlike the other
25489 # libraries we check for below, so use a different variable.
25490 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000025491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025492$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025493if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025494 $as_echo_n "(cached) " >&6
25495else
25496 ac_check_lib_save_LIBS=$LIBS
25497LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025499/* end confdefs.h. */
25500
25501/* Override any GCC internal prototype to avoid an error.
25502 Use char because int might match the return type of a GCC
25503 builtin and then its argument prototype would still apply. */
25504#ifdef __cplusplus
25505extern "C"
25506#endif
25507char IceConnectionNumber ();
25508int
25509main ()
25510{
25511return IceConnectionNumber ();
25512 ;
25513 return 0;
25514}
25515_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025516if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025517 ac_cv_lib_ICE_IceConnectionNumber=yes
25518else
cristy8b350f62009-11-15 23:12:43 +000025519 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000025520fi
cristy8b350f62009-11-15 23:12:43 +000025521rm -f core conftest.err conftest.$ac_objext \
25522 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025523LIBS=$ac_check_lib_save_LIBS
25524fi
cristy8b350f62009-11-15 23:12:43 +000025525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000025526$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025527if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025528 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25529fi
25530
25531 LDFLAGS=$ac_save_LDFLAGS
25532
25533fi
25534
25535if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025537$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000025539$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025541$as_echo "" >&6; }
25542 LDFLAGS="$LDFLAGS $X_LIBS"
25543 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25544 LIBS="$X11_LIBS $LIBS"
25545 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25546
25547
cristy8b350f62009-11-15 23:12:43 +000025548$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025549
25550 #
25551 # Check for X11 shared memory extension
25552 #
25553 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000025554 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25555if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025556 have_shmctl='yes'
25557fi
25558
25559 if test "$have_shmctl" != 'yes'; then
25560 PERSIST_LIBS=$LIBS
25561 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000025562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025563/* end confdefs.h. */
25564
25565/* Override any GCC internal prototype to avoid an error.
25566 Use char because int might match the return type of a GCC
25567 builtin and then its argument prototype would still apply. */
25568#ifdef __cplusplus
25569extern "C"
25570#endif
25571char shmctl ();
25572int
25573main ()
25574{
25575return shmctl ();
25576 ;
25577 return 0;
25578}
25579_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025580if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025581 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000025582fi
cristy8b350f62009-11-15 23:12:43 +000025583rm -f core conftest.err conftest.$ac_objext \
25584 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025585 LIBS=$PERSIST_LIBS
25586 fi
25587
25588 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025590$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025591if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025592 $as_echo_n "(cached) " >&6
25593else
25594 ac_check_lib_save_LIBS=$LIBS
25595LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025597/* end confdefs.h. */
25598
25599/* Override any GCC internal prototype to avoid an error.
25600 Use char because int might match the return type of a GCC
25601 builtin and then its argument prototype would still apply. */
25602#ifdef __cplusplus
25603extern "C"
25604#endif
25605char XShmAttach ();
25606int
25607main ()
25608{
25609return XShmAttach ();
25610 ;
25611 return 0;
25612}
25613_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025614if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025615 ac_cv_lib_Xext_XShmAttach=yes
25616else
cristy8b350f62009-11-15 23:12:43 +000025617 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025618fi
cristy8b350f62009-11-15 23:12:43 +000025619rm -f core conftest.err conftest.$ac_objext \
25620 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025621LIBS=$ac_check_lib_save_LIBS
25622fi
cristy8b350f62009-11-15 23:12:43 +000025623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025624$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025625if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025626 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025627$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025628
25629fi
25630
25631 fi
25632
25633 #
25634 # Check for X11 shape extension
25635 #
cristy8b350f62009-11-15 23:12:43 +000025636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025637$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025638if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025639 $as_echo_n "(cached) " >&6
25640else
25641 ac_check_lib_save_LIBS=$LIBS
25642LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025644/* end confdefs.h. */
25645
25646/* Override any GCC internal prototype to avoid an error.
25647 Use char because int might match the return type of a GCC
25648 builtin and then its argument prototype would still apply. */
25649#ifdef __cplusplus
25650extern "C"
25651#endif
25652char XShapeCombineMask ();
25653int
25654main ()
25655{
25656return XShapeCombineMask ();
25657 ;
25658 return 0;
25659}
25660_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025661if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025662 ac_cv_lib_Xext_XShapeCombineMask=yes
25663else
cristy8b350f62009-11-15 23:12:43 +000025664 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025665fi
cristy8b350f62009-11-15 23:12:43 +000025666rm -f core conftest.err conftest.$ac_objext \
25667 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025668LIBS=$ac_check_lib_save_LIBS
25669fi
cristy8b350f62009-11-15 23:12:43 +000025670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025671$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025672if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025673 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025674$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025675
25676fi
25677
cristy8b350f62009-11-15 23:12:43 +000025678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025679$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025680if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025681 $as_echo_n "(cached) " >&6
25682else
25683 ac_check_lib_save_LIBS=$LIBS
25684LIBS="-lXt $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 XtSetEventDispatcher ();
25695int
25696main ()
25697{
25698return XtSetEventDispatcher ();
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_Xt_XtSetEventDispatcher=yes
25705else
cristy8b350f62009-11-15 23:12:43 +000025706 ac_cv_lib_Xt_XtSetEventDispatcher=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_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025713$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025714if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025715 XT_LIBS='-lXt'
25716fi
25717
25718 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25719fi
25720if test "$no_x" != 'yes'; then
25721 have_x='yes'
25722else
25723 have_x='no'
25724fi
25725 if test "$have_x" = 'yes'; then
25726 X11_DELEGATE_TRUE=
25727 X11_DELEGATE_FALSE='#'
25728else
25729 X11_DELEGATE_TRUE='#'
25730 X11_DELEGATE_FALSE=
25731fi
25732
25733
25734
25735
25736
25737#
25738# Check for ZLIB
25739#
25740
25741# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025742if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025743 withval=$with_zlib; with_zlib=$withval
25744else
25745 with_zlib='yes'
25746fi
25747
25748
25749if test "$with_zlib" != 'yes'; then
25750 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25751fi
25752
25753have_zlib='no'
25754ZLIB_LIBS=''
25755if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025757$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025759$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025761$as_echo "" >&6; }
25762 ZLIB_LIBS=''
25763 failed=0
25764 passed=0
cristy8b350f62009-11-15 23:12:43 +000025765 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25766if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025767 passed=`expr $passed + 1`
25768else
25769 failed=`expr $failed + 1`
25770fi
25771
25772
cristy8b350f62009-11-15 23:12:43 +000025773 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25774if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025775 passed=`expr $passed + 1`
25776else
25777 failed=`expr $failed + 1`
25778fi
25779
25780
cristy8b350f62009-11-15 23:12:43 +000025781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025782$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025783if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025784 $as_echo_n "(cached) " >&6
25785else
25786 ac_check_lib_save_LIBS=$LIBS
25787LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025789/* end confdefs.h. */
25790
25791/* Override any GCC internal prototype to avoid an error.
25792 Use char because int might match the return type of a GCC
25793 builtin and then its argument prototype would still apply. */
25794#ifdef __cplusplus
25795extern "C"
25796#endif
25797char compress ();
25798int
25799main ()
25800{
25801return compress ();
25802 ;
25803 return 0;
25804}
25805_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025806if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025807 ac_cv_lib_z_compress=yes
25808else
cristy8b350f62009-11-15 23:12:43 +000025809 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000025810fi
cristy8b350f62009-11-15 23:12:43 +000025811rm -f core conftest.err conftest.$ac_objext \
25812 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025813LIBS=$ac_check_lib_save_LIBS
25814fi
cristy8b350f62009-11-15 23:12:43 +000025815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025816$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025817if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025818 passed=`expr $passed + 1`
25819else
25820 failed=`expr $failed + 1`
25821fi
25822
cristy8b350f62009-11-15 23:12:43 +000025823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025824$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025825if test "${ac_cv_lib_z_uncompress+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 uncompress ();
25840int
25841main ()
25842{
25843return uncompress ();
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_uncompress=yes
25850else
cristy8b350f62009-11-15 23:12:43 +000025851 ac_cv_lib_z_uncompress=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_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025858$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025859if test "x$ac_cv_lib_z_uncompress" = 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 deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025866$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025867if test "${ac_cv_lib_z_deflate+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 deflate ();
25882int
25883main ()
25884{
25885return deflate ();
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_deflate=yes
25892else
cristy8b350f62009-11-15 23:12:43 +000025893 ac_cv_lib_z_deflate=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_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025900$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025901if test "x$ac_cv_lib_z_deflate" = 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 inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025908$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025909if test "${ac_cv_lib_z_inflate+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 inflate ();
25924int
25925main ()
25926{
25927return inflate ();
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_inflate=yes
25934else
cristy8b350f62009-11-15 23:12:43 +000025935 ac_cv_lib_z_inflate=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_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025942$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025943if test "x$ac_cv_lib_z_inflate" = 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 gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025950$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025951if test "${ac_cv_lib_z_gzseek+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 gzseek ();
25966int
25967main ()
25968{
25969return gzseek ();
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_gzseek=yes
25976else
cristy8b350f62009-11-15 23:12:43 +000025977 ac_cv_lib_z_gzseek=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_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000025984$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025985if test "x$ac_cv_lib_z_gzseek" = 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 gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025992$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025993if test "${ac_cv_lib_z_gztell+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 gztell ();
26008int
26009main ()
26010{
26011return gztell ();
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_gztell=yes
26018else
cristy8b350f62009-11-15 23:12:43 +000026019 ac_cv_lib_z_gztell=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_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026026$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026027if test "x$ac_cv_lib_z_gztell" = 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 if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026034$as_echo_n "checking if ZLIB package is complete... " >&6; }
26035 if test $passed -gt 0; then
26036 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026038$as_echo "no -- some components failed test" >&6; }
26039 have_zlib='no (failed tests)'
26040 else
26041 ZLIB_LIBS='-lz'
26042 LIBS="$ZLIB_LIBS $LIBS"
26043
cristy8b350f62009-11-15 23:12:43 +000026044$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026045
cristy8b350f62009-11-15 23:12:43 +000026046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026047$as_echo "yes" >&6; }
26048 have_zlib='yes'
26049 fi
26050 else
cristy8b350f62009-11-15 23:12:43 +000026051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026052$as_echo "no" >&6; }
26053 fi
26054fi
26055 if test "$have_zlib" = 'yes'; then
26056 ZLIB_DELEGATE_TRUE=
26057 ZLIB_DELEGATE_FALSE='#'
26058else
26059 ZLIB_DELEGATE_TRUE='#'
26060 ZLIB_DELEGATE_FALSE=
26061fi
26062
26063
26064
26065#
26066# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26067#
26068LIB_DL=''
26069if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026071$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026072if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026073 $as_echo_n "(cached) " >&6
26074else
26075 ac_check_lib_save_LIBS=$LIBS
26076LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026078/* end confdefs.h. */
26079
26080/* Override any GCC internal prototype to avoid an error.
26081 Use char because int might match the return type of a GCC
26082 builtin and then its argument prototype would still apply. */
26083#ifdef __cplusplus
26084extern "C"
26085#endif
26086char dlopen ();
26087int
26088main ()
26089{
26090return dlopen ();
26091 ;
26092 return 0;
26093}
26094_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026095if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026096 ac_cv_lib_dl_dlopen=yes
26097else
cristy8b350f62009-11-15 23:12:43 +000026098 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026099fi
cristy8b350f62009-11-15 23:12:43 +000026100rm -f core conftest.err conftest.$ac_objext \
26101 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026102LIBS=$ac_check_lib_save_LIBS
26103fi
cristy8b350f62009-11-15 23:12:43 +000026104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026105$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026106if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026107 LIB_DL='-ldl'
26108fi
26109
26110 LIBS="$LIB_DL $LIBS"
26111fi
26112
26113
26114
26115#
26116# Check for Autotrace delegate library.
26117#
26118
26119# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026120if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026121 withval=$with_autotrace; with_autotrace=$withval
26122else
26123 with_autotrace='no'
26124fi
26125
26126
26127if test "$with_autotrace" != 'yes'; then
26128 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26129fi
26130
26131have_autotrace='no'
26132AUTOTRACE_CFLAGS=""
26133AUTOTRACE_LIBS=""
26134AUTOTRACE_PKG=""
26135if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026137$as_echo "-------------------------------------------------------------" >&6; }
26138
26139pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000026141$as_echo_n "checking for AUTOTRACE... " >&6; }
26142
26143if test -n "$AUTOTRACE_CFLAGS"; then
26144 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26145 elif test -n "$PKG_CONFIG"; then
26146 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026147 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026148 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26149 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26151 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026152 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26153else
26154 pkg_failed=yes
26155fi
26156 else
26157 pkg_failed=untried
26158fi
26159if test -n "$AUTOTRACE_LIBS"; then
26160 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26161 elif test -n "$PKG_CONFIG"; then
26162 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026163 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026164 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26165 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26167 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026168 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26169else
26170 pkg_failed=yes
26171fi
26172 else
26173 pkg_failed=untried
26174fi
26175
26176
26177
26178if test $pkg_failed = yes; then
26179
26180if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26181 _pkg_short_errors_supported=yes
26182else
26183 _pkg_short_errors_supported=no
26184fi
26185 if test $_pkg_short_errors_supported = yes; then
26186 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26187 else
26188 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26189 fi
26190 # Put the nasty error message in config.log where it belongs
26191 echo "$AUTOTRACE_PKG_ERRORS" >&5
26192
cristy8b350f62009-11-15 23:12:43 +000026193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026194$as_echo "no" >&6; }
26195 have_autotrace=no
26196elif test $pkg_failed = untried; then
26197 have_autotrace=no
26198else
26199 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26200 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000026201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026202$as_echo "yes" >&6; }
26203 have_autotrace=yes
26204fi
cristy8b350f62009-11-15 23:12:43 +000026205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026206$as_echo "" >&6; }
26207fi
26208
26209if test "$have_autotrace" = 'yes'; then
26210 failed=0
26211
cristy8b350f62009-11-15 23:12:43 +000026212$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026213
26214 if test "$with_modules" = 'no'; then
26215 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26216 fi
26217fi
26218
26219 if test "$have_autotrace" = 'yes'; then
26220 AUTOTRACE_DELEGATE_TRUE=
26221 AUTOTRACE_DELEGATE_FALSE='#'
26222else
26223 AUTOTRACE_DELEGATE_TRUE='#'
26224 AUTOTRACE_DELEGATE_FALSE=
26225fi
26226
26227
26228
26229
26230
26231#
26232# Check for Display Postscript delegate library.
26233#
26234
26235# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000026236if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026237 withval=$with_dps; with_dps=$withval
26238else
26239 with_dps='yes'
26240fi
26241
26242
26243if test "$with_dps" != 'yes'; then
26244 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26245fi
26246
26247have_dps='no'
26248DPS_LIBS=''
26249if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026251$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026253$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026255$as_echo "" >&6; }
26256 failed=0
26257 passed=0
26258 PERSIST_CPPFLAGS="$CPPFLAGS"
26259 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000026260 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26261if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026262 passed=`expr $passed + 1`
26263else
26264 failed=`expr $failed + 1`
26265fi
26266
26267
26268 # DPS issues:
26269 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26270 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26271 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26272 # ImageMagick itself doesn't use -lXt.
26273 have_libdps='no'
26274 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000026275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026276$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026277if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026278 $as_echo_n "(cached) " >&6
26279else
26280 ac_check_lib_save_LIBS=$LIBS
26281LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026283/* end confdefs.h. */
26284
26285/* Override any GCC internal prototype to avoid an error.
26286 Use char because int might match the return type of a GCC
26287 builtin and then its argument prototype would still apply. */
26288#ifdef __cplusplus
26289extern "C"
26290#endif
26291char DPSInitialize ();
26292int
26293main ()
26294{
26295return DPSInitialize ();
26296 ;
26297 return 0;
26298}
26299_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026300if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026301 ac_cv_lib_dps_DPSInitialize=yes
26302else
cristy8b350f62009-11-15 23:12:43 +000026303 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026304fi
cristy8b350f62009-11-15 23:12:43 +000026305rm -f core conftest.err conftest.$ac_objext \
26306 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026307LIBS=$ac_check_lib_save_LIBS
26308fi
cristy8b350f62009-11-15 23:12:43 +000026309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026310$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026311if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026312 have_libdps='yes'
26313else
26314 have_libdps='no'
26315fi
26316
26317 if test "$have_libdps" != 'yes'; then
26318 # Unset cache variable so we can try again.
26319 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000026320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026321$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026322if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026323 $as_echo_n "(cached) " >&6
26324else
26325 ac_check_lib_save_LIBS=$LIBS
26326LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026328/* end confdefs.h. */
26329
26330/* Override any GCC internal prototype to avoid an error.
26331 Use char because int might match the return type of a GCC
26332 builtin and then its argument prototype would still apply. */
26333#ifdef __cplusplus
26334extern "C"
26335#endif
26336char DPSInitialize ();
26337int
26338main ()
26339{
26340return DPSInitialize ();
26341 ;
26342 return 0;
26343}
26344_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026345if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026346 ac_cv_lib_dps_DPSInitialize=yes
26347else
cristy8b350f62009-11-15 23:12:43 +000026348 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026349fi
cristy8b350f62009-11-15 23:12:43 +000026350rm -f core conftest.err conftest.$ac_objext \
26351 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026352LIBS=$ac_check_lib_save_LIBS
26353fi
cristy8b350f62009-11-15 23:12:43 +000026354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026355$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026356if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026357 have_libdps='yes'
26358else
26359 have_libdps='no'
26360fi
26361
26362 if test "$have_libdps" = 'yes'; then
26363 LIBDPS_XT='-lXt'
26364 fi
26365 fi
26366 if test "$have_libdps" = 'yes'; then
26367 passed=`expr $passed + 1`
26368 else
26369 failed=`expr $failed + 1`
26370 fi
cristy8b350f62009-11-15 23:12:43 +000026371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026372$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026373if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026374 $as_echo_n "(cached) " >&6
26375else
26376 ac_check_lib_save_LIBS=$LIBS
26377LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026379/* end confdefs.h. */
26380
26381/* Override any GCC internal prototype to avoid an error.
26382 Use char because int might match the return type of a GCC
26383 builtin and then its argument prototype would still apply. */
26384#ifdef __cplusplus
26385extern "C"
26386#endif
26387char XDPSPixelsPerPoint ();
26388int
26389main ()
26390{
26391return XDPSPixelsPerPoint ();
26392 ;
26393 return 0;
26394}
26395_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026396if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026397 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26398else
cristy8b350f62009-11-15 23:12:43 +000026399 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000026400fi
cristy8b350f62009-11-15 23:12:43 +000026401rm -f core conftest.err conftest.$ac_objext \
26402 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026403LIBS=$ac_check_lib_save_LIBS
26404fi
cristy8b350f62009-11-15 23:12:43 +000026405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000026406$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026407if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026408 passed=`expr $passed + 1`
26409else
26410 failed=`expr $failed + 1`
26411fi
26412
cristy8b350f62009-11-15 23:12:43 +000026413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026414$as_echo_n "checking if DPS package is complete... " >&6; }
26415 if test $passed -gt 0; then
26416 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026418$as_echo "no -- some components failed test" >&6; }
26419 have_dps='no (failed tests)'
26420 CPPFLAGS="$PERSIST_CPPFLAGS"
26421 else
26422 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26423 LIBS="$DPS_LIBS $LIBS"
26424
cristy8b350f62009-11-15 23:12:43 +000026425$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026426
cristy8b350f62009-11-15 23:12:43 +000026427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026428$as_echo "yes" >&6; }
26429 have_dps='yes'
26430 fi
26431 else
cristy8b350f62009-11-15 23:12:43 +000026432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026433$as_echo "no" >&6; }
26434 CPPFLAGS=$PERSIST_CPPFLAGS
26435 fi
26436fi
26437 if test "$have_dps" = 'yes'; then
26438 DPS_DELEGATE_TRUE=
26439 DPS_DELEGATE_FALSE='#'
26440else
26441 DPS_DELEGATE_TRUE='#'
26442 DPS_DELEGATE_FALSE=
26443fi
26444
26445
26446
26447
26448#
26449# Check for DJVU delegate library.
26450#
26451
26452# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000026453if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026454 withval=$with_djvu; with_djvu=$withval
26455else
26456 with_djvu='yes'
26457fi
26458
26459
26460if test "$with_djvu" != 'yes'; then
26461 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26462fi
26463
26464have_djvu='no'
26465DJVU_LIBS=''
26466if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026468$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000026470$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026472$as_echo "" >&6; }
26473 failed=0
26474 passed=0
cristy8b350f62009-11-15 23:12:43 +000026475 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26476if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026477 passed=`expr $passed + 1`
26478else
26479 failed=`expr $failed + 1`
26480fi
26481
26482
cristy8b350f62009-11-15 23:12:43 +000026483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000026484$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026485if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026486 $as_echo_n "(cached) " >&6
26487else
26488 ac_check_lib_save_LIBS=$LIBS
26489LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026491/* end confdefs.h. */
26492
26493/* Override any GCC internal prototype to avoid an error.
26494 Use char because int might match the return type of a GCC
26495 builtin and then its argument prototype would still apply. */
26496#ifdef __cplusplus
26497extern "C"
26498#endif
26499char ddjvu_context_create ();
26500int
26501main ()
26502{
26503return ddjvu_context_create ();
26504 ;
26505 return 0;
26506}
26507_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026508if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026509 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26510else
cristy8b350f62009-11-15 23:12:43 +000026511 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000026512fi
cristy8b350f62009-11-15 23:12:43 +000026513rm -f core conftest.err conftest.$ac_objext \
26514 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026515LIBS=$ac_check_lib_save_LIBS
26516fi
cristy8b350f62009-11-15 23:12:43 +000026517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000026518$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026519if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026520 passed=`expr $passed + 1`
26521else
26522 failed=`expr $failed + 1`
26523fi
26524
cristy8b350f62009-11-15 23:12:43 +000026525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026526$as_echo_n "checking if DJVU package is complete... " >&6; }
26527 if test $passed -gt 0; then
26528 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026530$as_echo "no -- some components failed test" >&6; }
26531 have_djvu='no (failed tests)'
26532 else
26533 DJVU_LIBS='-ldjvulibre'
26534 LIBS="$DJVU_LIBS $LIBS"
26535
cristy8b350f62009-11-15 23:12:43 +000026536$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026537
cristy8b350f62009-11-15 23:12:43 +000026538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026539$as_echo "yes" >&6; }
26540 have_djvu='yes'
26541 fi
26542 else
cristy8b350f62009-11-15 23:12:43 +000026543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026544$as_echo "no" >&6; }
26545 fi
26546fi
26547 if test "$have_djvu" = 'yes'; then
26548 DJVU_DELEGATE_TRUE=
26549 DJVU_DELEGATE_FALSE='#'
26550else
26551 DJVU_DELEGATE_TRUE='#'
26552 DJVU_DELEGATE_FALSE=
26553fi
26554
26555
26556
26557
26558#
cristy430a7312010-01-21 20:44:04 +000026559# Set DejaVu font directory.
26560#
26561
26562# Check whether --with-dejavu-font-dir was given.
26563if test "${with_dejavu_font_dir+set}" = set; then :
26564 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26565else
26566 with_dejavu_font_dir='default'
26567fi
26568
26569
26570if test "$with_dejavu_font_dir" != 'default'; then
26571 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26572fi
26573
26574
26575#
cristy3ed852e2009-09-05 21:47:34 +000026576# Check for FFTW delegate library.
26577#
26578
26579# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000026580if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026581 withval=$with_fftw; with_fftw=$withval
26582else
26583 with_fftw='yes'
26584fi
26585
26586
26587if test "$with_fftw" != 'yes'; then
26588 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26589fi
26590
26591have_fftw='no'
26592FFTW_LIBS=''
26593if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026595$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026597$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026599$as_echo "" >&6; }
26600 failed=0
26601 passed=0
cristy8b350f62009-11-15 23:12:43 +000026602 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26603if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026604 passed=`expr $passed + 1`
26605else
26606 failed=`expr $failed + 1`
26607fi
26608
26609
cristy8b350f62009-11-15 23:12:43 +000026610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026611$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026612if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026613 $as_echo_n "(cached) " >&6
26614else
26615 ac_check_lib_save_LIBS=$LIBS
26616LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026618/* end confdefs.h. */
26619
26620/* Override any GCC internal prototype to avoid an error.
26621 Use char because int might match the return type of a GCC
26622 builtin and then its argument prototype would still apply. */
26623#ifdef __cplusplus
26624extern "C"
26625#endif
26626char fftw_execute ();
26627int
26628main ()
26629{
26630return fftw_execute ();
26631 ;
26632 return 0;
26633}
26634_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026635if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026636 ac_cv_lib_fftw3_fftw_execute=yes
26637else
cristy8b350f62009-11-15 23:12:43 +000026638 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026639fi
cristy8b350f62009-11-15 23:12:43 +000026640rm -f core conftest.err conftest.$ac_objext \
26641 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026642LIBS=$ac_check_lib_save_LIBS
26643fi
cristy8b350f62009-11-15 23:12:43 +000026644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026645$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026646if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026647 passed=`expr $passed + 1`
26648else
26649 failed=`expr $failed + 1`
26650fi
26651
cristy8b350f62009-11-15 23:12:43 +000026652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026653$as_echo_n "checking if FFTW package is complete... " >&6; }
26654 if test $passed -gt 0; then
26655 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026657$as_echo "no -- some components failed test" >&6; }
26658 have_fftw='no (failed tests)'
26659 else
26660 FFTW_LIBS='-lfftw3'
26661 LIBS="$FFTW_LIBS $LIBS"
26662
cristy8b350f62009-11-15 23:12:43 +000026663$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026664
cristy8b350f62009-11-15 23:12:43 +000026665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026666$as_echo "yes" >&6; }
26667 have_fftw='yes'
26668 fi
26669 else
cristy8b350f62009-11-15 23:12:43 +000026670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026671$as_echo "no" >&6; }
26672 fi
26673fi
26674 if test "$have_fftw" = 'yes'; then
26675 FFTW_DELEGATE_TRUE=
26676 FFTW_DELEGATE_FALSE='#'
26677else
26678 FFTW_DELEGATE_TRUE='#'
26679 FFTW_DELEGATE_FALSE=
26680fi
26681
26682
26683
26684
26685#
26686# Check for FlashPIX delegate library.
26687#
26688
26689# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026690if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026691 withval=$with_fpx; with_fpx=$withval
26692else
26693 with_fpx='yes'
26694fi
26695
26696
26697if test "$with_fpx" != 'yes'; then
26698 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26699fi
26700
26701have_fpx='no'
26702FPX_LIBS=''
26703if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026705$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026707$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026709$as_echo "" >&6; }
26710 failed=0
26711 passed=0
26712 ac_ext=cpp
26713ac_cpp='$CXXCPP $CPPFLAGS'
26714ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26715ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26716ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26717
26718
cristy8b350f62009-11-15 23:12:43 +000026719ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26720if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026721 passed=`expr $passed + 1`
26722else
26723 failed=`expr $failed + 1`
26724fi
26725
26726
cristy8b350f62009-11-15 23:12:43 +000026727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026728$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026729if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026730 $as_echo_n "(cached) " >&6
26731else
26732 ac_check_lib_save_LIBS=$LIBS
26733LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026735/* end confdefs.h. */
26736
26737/* Override any GCC internal prototype to avoid an error.
26738 Use char because int might match the return type of a GCC
26739 builtin and then its argument prototype would still apply. */
26740#ifdef __cplusplus
26741extern "C"
26742#endif
26743char FPX_OpenImageByFilename ();
26744int
26745main ()
26746{
26747return FPX_OpenImageByFilename ();
26748 ;
26749 return 0;
26750}
26751_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026752if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026753 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26754else
cristy8b350f62009-11-15 23:12:43 +000026755 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026756fi
cristy8b350f62009-11-15 23:12:43 +000026757rm -f core conftest.err conftest.$ac_objext \
26758 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026759LIBS=$ac_check_lib_save_LIBS
26760fi
cristy8b350f62009-11-15 23:12:43 +000026761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026762$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026763if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026764 passed=`expr $passed + 1`
26765else
26766 failed=`expr $failed + 1`
26767fi
26768
26769 ac_ext=c
26770ac_cpp='$CPP $CPPFLAGS'
26771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26773ac_compiler_gnu=$ac_cv_c_compiler_gnu
26774
cristy8b350f62009-11-15 23:12:43 +000026775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026776$as_echo_n "checking if FlashPIX package is complete... " >&6; }
26777 if test $passed -gt 0; then
26778 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026780$as_echo "no -- some components failed test" >&6; }
26781 have_fpx='no (failed tests)'
26782 else
26783 FPX_LIBS='-lfpx'
26784
cristy8b350f62009-11-15 23:12:43 +000026785$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026786
cristy8b350f62009-11-15 23:12:43 +000026787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026788$as_echo "yes" >&6; }
26789 have_fpx='yes'
26790 PERLMAINCC="$CXX"
26791 fi
26792 else
cristy8b350f62009-11-15 23:12:43 +000026793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026794$as_echo "no" >&6; }
26795 fi
26796fi
26797 if test "$have_fpx" = 'yes'; then
26798 FPX_DELEGATE_TRUE=
26799 FPX_DELEGATE_FALSE='#'
26800else
26801 FPX_DELEGATE_TRUE='#'
26802 FPX_DELEGATE_FALSE=
26803fi
26804
26805
26806
26807
26808#
26809# Check for fontconfig delegate library.
26810#
26811
26812# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000026813if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026814 withval=$with_fontconfig; with_fontconfig=$withval
26815else
26816 with_fontconfig=$have_x
26817fi
26818
26819
26820if test "$with_fontconfig" != 'yes'; then
26821 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26822fi
26823
26824have_fontconfig='no'
26825FONTCONFIG_CFLAGS=""
26826FONTCONFIG_LIBS=""
26827FONTCONFIG_PKG=""
26828if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026830$as_echo "-------------------------------------------------------------" >&6; }
26831
26832pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026834$as_echo_n "checking for FONTCONFIG... " >&6; }
26835
26836if test -n "$FONTCONFIG_CFLAGS"; then
26837 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26838 elif test -n "$PKG_CONFIG"; then
26839 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026840 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026841 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26842 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26844 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026845 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26846else
26847 pkg_failed=yes
26848fi
26849 else
26850 pkg_failed=untried
26851fi
26852if test -n "$FONTCONFIG_LIBS"; then
26853 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
26854 elif test -n "$PKG_CONFIG"; then
26855 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026856 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026857 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26858 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26860 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026861 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
26862else
26863 pkg_failed=yes
26864fi
26865 else
26866 pkg_failed=untried
26867fi
26868
26869
26870
26871if test $pkg_failed = yes; then
26872
26873if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26874 _pkg_short_errors_supported=yes
26875else
26876 _pkg_short_errors_supported=no
26877fi
26878 if test $_pkg_short_errors_supported = yes; then
26879 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
26880 else
26881 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
26882 fi
26883 # Put the nasty error message in config.log where it belongs
26884 echo "$FONTCONFIG_PKG_ERRORS" >&5
26885
cristy8b350f62009-11-15 23:12:43 +000026886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026887$as_echo "no" >&6; }
26888 have_fontconfig=no
26889elif test $pkg_failed = untried; then
26890 have_fontconfig=no
26891else
26892 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
26893 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000026894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026895$as_echo "yes" >&6; }
26896 have_fontconfig=yes
26897fi
cristy8b350f62009-11-15 23:12:43 +000026898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026899$as_echo "" >&6; }
26900fi
26901
26902if test "$have_fontconfig" = 'yes'; then
26903
cristy8b350f62009-11-15 23:12:43 +000026904$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026905
cristyd09bcf92010-03-25 03:04:45 +000026906 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000026907 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000026908 fi
cristy3ed852e2009-09-05 21:47:34 +000026909fi
26910
26911 if test "$have_fontconfig" = 'yes'; then
26912 FONTCONFIG_DELEGATE_TRUE=
26913 FONTCONFIG_DELEGATE_FALSE='#'
26914else
26915 FONTCONFIG_DELEGATE_TRUE='#'
26916 FONTCONFIG_DELEGATE_FALSE=
26917fi
26918
26919
26920
26921
26922
26923#
26924# Check for freetype delegate library.
26925#
26926
26927# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000026928if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026929 withval=$with_freetype; with_freetype=$withval
26930else
26931 with_freetype='yes'
26932fi
26933
26934
26935
26936if test "$with_freetype" != 'yes'; then
26937 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
26938fi
26939
26940have_freetype='no'
26941FREETYPE_LIBS=''
26942if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026944$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000026946$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026948$as_echo "" >&6; }
26949 failed=0
26950 passed=0
cristy66291112009-10-03 22:44:36 +000026951 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000026952 PERSIST_CPPFLAGS="$CPPFLAGS"
26953 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
26954 :
26955 else
26956 freetype_config=''
26957 for ac_prog in freetype-config
26958do
26959 # Extract the first word of "$ac_prog", so it can be a program name with args.
26960set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026962$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026963if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026964 $as_echo_n "(cached) " >&6
26965else
26966 if test -n "$freetype_config"; then
26967 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
26968else
26969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26970for as_dir in $PATH
26971do
26972 IFS=$as_save_IFS
26973 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026974 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26976 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026978 break 2
26979 fi
26980done
cristy8b350f62009-11-15 23:12:43 +000026981 done
cristy3ed852e2009-09-05 21:47:34 +000026982IFS=$as_save_IFS
26983
26984fi
26985fi
26986freetype_config=$ac_cv_prog_freetype_config
26987if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000026988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000026989$as_echo "$freetype_config" >&6; }
26990else
cristy8b350f62009-11-15 23:12:43 +000026991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026992$as_echo "no" >&6; }
26993fi
26994
26995
26996 test -n "$freetype_config" && break
26997done
26998 if test -n "$freetype_config"; then
26999 freetype_cflags=`$freetype_config --cflags`
27000 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027001 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027002 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27003 fi
27004 fi
27005
27006 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027008$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027009if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027010 $as_echo_n "(cached) " >&6
27011else
27012 ac_check_lib_save_LIBS=$LIBS
27013LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027015/* end confdefs.h. */
27016
27017/* Override any GCC internal prototype to avoid an error.
27018 Use char because int might match the return type of a GCC
27019 builtin and then its argument prototype would still apply. */
27020#ifdef __cplusplus
27021extern "C"
27022#endif
27023char FT_Init_FreeType ();
27024int
27025main ()
27026{
27027return FT_Init_FreeType ();
27028 ;
27029 return 0;
27030}
27031_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027032if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027033 ac_cv_lib_freetype_FT_Init_FreeType=yes
27034else
cristy8b350f62009-11-15 23:12:43 +000027035 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027036fi
cristy8b350f62009-11-15 23:12:43 +000027037rm -f core conftest.err conftest.$ac_objext \
27038 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027039LIBS=$ac_check_lib_save_LIBS
27040fi
cristy8b350f62009-11-15 23:12:43 +000027041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027042$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027043if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027044 FREETYPE_LIBS='-lfreetype'
27045fi
27046
27047 if test "$FREETYPE_LIBS" != ''; then
27048 passed=`expr $passed + 1`
27049 else
27050 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027051 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027052 fi
27053 fi
27054
cristy8b350f62009-11-15 23:12:43 +000027055 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27056if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027057 FT2BUILD_H='#include <ft2build.h>'
27058else
27059 ft2build=''
27060fi
27061
27062
cristy8b350f62009-11-15 23:12:43 +000027063 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27064"
27065if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027066 have_freetype_h='yes'
27067else
27068 have_freetype_h='no'
27069fi
27070
27071
27072 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27073 passed=`expr $passed + 1`
27074 else
27075 failed=`expr $failed + 1`
27076 CPPFLAGS="$PERSIST_CPPFLAGS"
27077 fi
27078
cristy8b350f62009-11-15 23:12:43 +000027079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027080$as_echo_n "checking if FreeType package is complete... " >&6; }
27081 if test $passed -gt 0; then
27082 if test $failed -gt 0; then
27083 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027085$as_echo "no -- some components failed test" >&6; }
27086 have_freetype='no (failed tests)'
27087 else
27088 LIBS="$FREETYPE_LIBS $LIBS"
27089
cristy8b350f62009-11-15 23:12:43 +000027090$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027091
27092 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27093
cristy8b350f62009-11-15 23:12:43 +000027094$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027095
27096 fi
cristy8b350f62009-11-15 23:12:43 +000027097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027098$as_echo "yes" >&6; }
27099 have_freetype='yes'
27100 fi
27101 else
cristy8b350f62009-11-15 23:12:43 +000027102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027103$as_echo "no" >&6; }
27104 fi
27105fi
27106 if test "$have_freetype" = 'yes'; then
27107 FREETYPE_DELEGATE_TRUE=
27108 FREETYPE_DELEGATE_FALSE='#'
27109else
27110 FREETYPE_DELEGATE_TRUE='#'
27111 FREETYPE_DELEGATE_FALSE=
27112fi
27113
27114
27115
27116
27117
27118#
27119# Check for Ghostscript library or framework.
27120#
27121# Test for iapi.h & test for gsapi_new_instance in -lgs
27122# or -framework Ghostscript
27123
27124
27125# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027126if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027127 withval=$with_gslib; with_gslib=$withval
27128else
27129 with_gslib='no'
27130fi
27131
27132
cristyb7931f12009-09-25 10:22:21 +000027133gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027134if test "$with_gslib" != 'yes'; then
27135 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27136fi
27137
27138have_gslib='no'
27139GS_LIBS=''
27140if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027142$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027144$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027146$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027147 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027148 failed=0
27149 passed=0
cristy8b350f62009-11-15 23:12:43 +000027150 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27151if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027152 passed=`expr $passed + 1`
27153else
27154 failed=`expr $failed + 1`
27155fi
27156
27157
cristy8b350f62009-11-15 23:12:43 +000027158 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27159if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027160 passed=`expr $passed + 1`
27161else
27162 failed=`expr $failed + 1`
27163fi
27164
27165
cristy8b350f62009-11-15 23:12:43 +000027166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000027167$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027168if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027169 $as_echo_n "(cached) " >&6
27170else
27171 ac_check_framework_save_LIBS=$LIBS
27172LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027174/* end confdefs.h. */
27175
27176/* Override any GCC internal prototype to avoid an error.
27177 Use char because int might match the return type of a GCC
27178 builtin and then its argument prototype would still apply. */
27179#ifdef __cplusplus
27180extern "C"
27181#endif
27182char gsapi_new_instance ();
27183int
27184main ()
27185{
27186return gsapi_new_instance ();
27187 ;
27188 return 0;
27189}
27190_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027191if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027192 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27193else
cristy8b350f62009-11-15 23:12:43 +000027194 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027195fi
cristy8b350f62009-11-15 23:12:43 +000027196rm -f core conftest.err conftest.$ac_objext \
27197 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027198LIBS=$ac_check_framework_save_LIBS
27199fi
cristy8b350f62009-11-15 23:12:43 +000027200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027201$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027202if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027203 framework=`expr $framework + 1`
27204else
cristy8b350f62009-11-15 23:12:43 +000027205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000027206$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027207if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027208 $as_echo_n "(cached) " >&6
27209else
27210 ac_check_lib_save_LIBS=$LIBS
27211LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027213/* end confdefs.h. */
27214
27215/* Override any GCC internal prototype to avoid an error.
27216 Use char because int might match the return type of a GCC
27217 builtin and then its argument prototype would still apply. */
27218#ifdef __cplusplus
27219extern "C"
27220#endif
27221char gsapi_new_instance ();
27222int
27223main ()
27224{
27225return gsapi_new_instance ();
27226 ;
27227 return 0;
27228}
27229_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027230if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027231 ac_cv_lib_gs_gsapi_new_instance=yes
27232else
cristy8b350f62009-11-15 23:12:43 +000027233 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027234fi
cristy8b350f62009-11-15 23:12:43 +000027235rm -f core conftest.err conftest.$ac_objext \
27236 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027237LIBS=$ac_check_lib_save_LIBS
27238fi
cristy8b350f62009-11-15 23:12:43 +000027239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027240$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027241if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027242 passed=`expr $passed + 1`
27243else
27244 failed=`expr $failed + 1`
27245fi
27246
27247fi
cristy8b350f62009-11-15 23:12:43 +000027248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027249$as_echo_n "checking if Ghostscript package is complete... " >&6; }
27250 if test $passed -gt 0; then
27251 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027253$as_echo "no -- some components failed test" >&6; }
27254 have_gslib='no (failed tests)'
27255 else
27256 if test $framework -gt 0; then
27257 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000027258 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000027259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000027260$as_echo "yes, using framework." >&6; }
27261 else
cristy8b350f62009-11-15 23:12:43 +000027262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000027263$as_echo "yes, using library." >&6; }
27264 GS_LIBS='-lgs'
27265 fi
27266 LIBS="$GS_LIBS $LIBS"
27267
cristy8b350f62009-11-15 23:12:43 +000027268$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027269
27270 have_gslib='yes'
27271 fi
27272 else
cristy8b350f62009-11-15 23:12:43 +000027273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027274$as_echo "no" >&6; }
27275 fi
27276fi
27277 if test "$have_gslib" = 'yes'; then
27278 GS_DELEGATE_TRUE=
27279 GS_DELEGATE_FALSE='#'
27280else
27281 GS_DELEGATE_TRUE='#'
27282 GS_DELEGATE_FALSE=
27283fi
27284
27285
27286
27287# Set default font search path
27288
27289# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000027290if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027291 withval=$with_fontpath; with_fontpath=$withval
27292else
27293 with_fontpath=''
27294fi
27295
27296
27297if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27298 with_fontpath=''
27299else
27300
27301cat >>confdefs.h <<_ACEOF
27302#define MAGICK_FONT_PATH "$with_fontpath"
27303_ACEOF
27304
27305fi
27306if test "$with_fontpath=" != ''; then
27307 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27308fi
27309
27310# Set Ghostscript font directory
27311
27312# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027313if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027314 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27315else
27316 with_gs_font_dir='default'
27317fi
27318
27319
27320if test "$with_gs_font_dir" != 'default'; then
27321 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27322fi
27323
27324
27325#
27326# Check for GVC delegate library.
27327#
27328
27329# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000027330if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027331 withval=$with_gvc; with_gvc=$withval
27332else
27333 with_gvc='yes'
27334fi
27335
27336
27337if test "$with_gvc" != 'yes'; then
27338 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27339fi
27340
27341GVC_PKG=""
27342if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027344$as_echo "-------------------------------------------------------------" >&6; }
27345
27346pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000027348$as_echo_n "checking for GVC... " >&6; }
27349
27350if test -n "$GVC_CFLAGS"; then
27351 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27352 elif test -n "$PKG_CONFIG"; then
27353 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027354 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027355 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27356 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27358 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027359 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27360else
27361 pkg_failed=yes
27362fi
27363 else
27364 pkg_failed=untried
27365fi
27366if test -n "$GVC_LIBS"; then
27367 pkg_cv_GVC_LIBS="$GVC_LIBS"
27368 elif test -n "$PKG_CONFIG"; then
27369 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027370 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027371 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27372 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27374 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027375 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27376else
27377 pkg_failed=yes
27378fi
27379 else
27380 pkg_failed=untried
27381fi
27382
27383
27384
27385if test $pkg_failed = yes; then
27386
27387if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27388 _pkg_short_errors_supported=yes
27389else
27390 _pkg_short_errors_supported=no
27391fi
27392 if test $_pkg_short_errors_supported = yes; then
27393 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27394 else
27395 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27396 fi
27397 # Put the nasty error message in config.log where it belongs
27398 echo "$GVC_PKG_ERRORS" >&5
27399
cristy8b350f62009-11-15 23:12:43 +000027400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027401$as_echo "no" >&6; }
27402 have_gvc=no
27403elif test $pkg_failed = untried; then
27404 have_gvc=no
27405else
27406 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27407 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000027408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027409$as_echo "yes" >&6; }
27410 have_gvc=yes
27411fi
cristy8b350f62009-11-15 23:12:43 +000027412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027413$as_echo "" >&6; }
27414fi
27415
27416if test "$have_gvc" = 'yes'; then
27417
cristy8b350f62009-11-15 23:12:43 +000027418$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027419
27420 if test "$with_modules" = 'no'; then
27421 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27422 fi
27423fi
27424
27425 if test "$have_gvc" = 'yes'; then
27426 GVC_DELEGATE_TRUE=
27427 GVC_DELEGATE_FALSE='#'
27428else
27429 GVC_DELEGATE_TRUE='#'
27430 GVC_DELEGATE_FALSE=
27431fi
27432
27433
27434
27435
27436
27437#
27438# Check for JBIG delegate library.
27439#
27440
27441
27442# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000027443if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027444 withval=$with_jbig; with_jbig=$withval
27445else
27446 with_jbig='yes'
27447fi
27448
27449
27450have_jbig='no'
27451JBIG_LIBS=''
27452if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027454$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027456$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027458$as_echo "" >&6; }
27459 failed=0
27460 passed=0
cristy8b350f62009-11-15 23:12:43 +000027461 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27462if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027463 passed=`expr $passed + 1`
27464else
27465 failed=`expr $failed + 1`
27466fi
27467
27468
cristy8b350f62009-11-15 23:12:43 +000027469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000027470$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027471if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027472 $as_echo_n "(cached) " >&6
27473else
27474 ac_check_lib_save_LIBS=$LIBS
27475LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027477/* end confdefs.h. */
27478
27479/* Override any GCC internal prototype to avoid an error.
27480 Use char because int might match the return type of a GCC
27481 builtin and then its argument prototype would still apply. */
27482#ifdef __cplusplus
27483extern "C"
27484#endif
27485char jbg_dec_init ();
27486int
27487main ()
27488{
27489return jbg_dec_init ();
27490 ;
27491 return 0;
27492}
27493_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027494if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027495 ac_cv_lib_jbig_jbg_dec_init=yes
27496else
cristy8b350f62009-11-15 23:12:43 +000027497 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000027498fi
cristy8b350f62009-11-15 23:12:43 +000027499rm -f core conftest.err conftest.$ac_objext \
27500 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027501LIBS=$ac_check_lib_save_LIBS
27502fi
cristy8b350f62009-11-15 23:12:43 +000027503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000027504$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027505if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027506 passed=`expr $passed + 1`
27507else
27508 failed=`expr $failed + 1`
27509fi
27510
cristy8b350f62009-11-15 23:12:43 +000027511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027512$as_echo_n "checking if JBIG package is complete... " >&6; }
27513 if test $passed -gt 0; then
27514 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027516$as_echo "no -- some components failed test" >&6; }
27517 have_jbig='no (failed tests)'
27518 else
27519 JBIG_LIBS='-ljbig'
27520 LIBS="$JBIG_LIBS $LIBS"
27521
cristy8b350f62009-11-15 23:12:43 +000027522$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027523
cristy8b350f62009-11-15 23:12:43 +000027524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027525$as_echo "yes" >&6; }
27526 have_jbig='yes'
27527 fi
27528 else
cristy8b350f62009-11-15 23:12:43 +000027529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027530$as_echo "no" >&6; }
27531 fi
27532fi
27533 if test "$have_jbig" = 'yes'; then
27534 JBIG_DELEGATE_TRUE=
27535 JBIG_DELEGATE_FALSE='#'
27536else
27537 JBIG_DELEGATE_TRUE='#'
27538 JBIG_DELEGATE_FALSE=
27539fi
27540
27541
27542
27543
27544#
27545# Check for JPEG delegate library.
27546#
27547
27548# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000027549if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027550 withval=$with_jpeg; with_jpeg=$withval
27551else
27552 with_jpeg='yes'
27553fi
27554
27555
27556if test "$with_jpeg" != 'yes'; then
27557 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27558fi
27559
27560have_jpeg='no'
27561JPEG_LIBS=''
27562if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027564$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027566$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027568$as_echo "" >&6; }
27569 failed=0
27570 passed=0
cristy8b350f62009-11-15 23:12:43 +000027571 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27572if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027573 passed=`expr $passed + 1`
27574else
27575 failed=`expr $failed + 1`
27576fi
27577
27578
cristy8b350f62009-11-15 23:12:43 +000027579 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27580if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027581 passed=`expr $passed + 1`
27582else
27583 failed=`expr $failed + 1`
27584fi
27585
27586
cristy8b350f62009-11-15 23:12:43 +000027587 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27588if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027589 passed=`expr $passed + 1`
27590else
27591 failed=`expr $failed + 1`
27592fi
27593
27594
cristy8b350f62009-11-15 23:12:43 +000027595 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27596if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027597 passed=`expr $passed + 1`
27598else
27599 failed=`expr $failed + 1`
27600fi
27601
27602
cristy8b350f62009-11-15 23:12:43 +000027603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027604$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027605if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027606 $as_echo_n "(cached) " >&6
27607else
27608 ac_check_lib_save_LIBS=$LIBS
27609LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027611/* end confdefs.h. */
27612
27613/* Override any GCC internal prototype to avoid an error.
27614 Use char because int might match the return type of a GCC
27615 builtin and then its argument prototype would still apply. */
27616#ifdef __cplusplus
27617extern "C"
27618#endif
27619char jpeg_read_header ();
27620int
27621main ()
27622{
27623return jpeg_read_header ();
27624 ;
27625 return 0;
27626}
27627_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027628if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027629 ac_cv_lib_jpeg_jpeg_read_header=yes
27630else
cristy8b350f62009-11-15 23:12:43 +000027631 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027632fi
cristy8b350f62009-11-15 23:12:43 +000027633rm -f core conftest.err conftest.$ac_objext \
27634 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027635LIBS=$ac_check_lib_save_LIBS
27636fi
cristy8b350f62009-11-15 23:12:43 +000027637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027638$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027639if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027640 passed=`expr $passed + 1`
27641else
27642 failed=`expr $failed + 1`
27643fi
27644
27645
27646# Test for compatible JPEG library
27647if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027649$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027650if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027651 $as_echo_n "(cached) " >&6
27652else
cristy8b350f62009-11-15 23:12:43 +000027653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027654/* end confdefs.h. */
27655#include <stdio.h>
27656#include <stdlib.h>
27657#include <jpeglib.h>
27658
27659int
27660main ()
27661{
27662
27663#if JPEG_LIB_VERSION < 62
27664#error IJG JPEG library must be version 6b or newer!
27665#endif
27666return 0;
27667
27668 ;
27669 return 0;
27670}
27671_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027672if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027673 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27674else
cristy8b350f62009-11-15 23:12:43 +000027675 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027676fi
cristy3ed852e2009-09-05 21:47:34 +000027677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27678fi
cristy8b350f62009-11-15 23:12:43 +000027679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027680$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27681fi
cristy8b350f62009-11-15 23:12:43 +000027682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027683$as_echo_n "checking if JPEG package is complete... " >&6; }
27684 if test $passed -gt 0; then
27685 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027687$as_echo "no -- some components failed test" >&6; }
27688 have_jpeg='no (failed tests)'
27689 else
27690 JPEG_LIBS='-ljpeg'
27691 LIBS="$JPEG_LIBS $LIBS"
27692
cristy8b350f62009-11-15 23:12:43 +000027693$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027694
cristy8b350f62009-11-15 23:12:43 +000027695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027696$as_echo "yes" >&6; }
27697 have_jpeg='yes'
27698 fi
27699 else
cristy8b350f62009-11-15 23:12:43 +000027700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027701$as_echo "no" >&6; }
27702 fi
27703fi
27704 if test "$have_jpeg" = 'yes'; then
27705 JPEG_DELEGATE_TRUE=
27706 JPEG_DELEGATE_FALSE='#'
27707else
27708 JPEG_DELEGATE_TRUE='#'
27709 JPEG_DELEGATE_FALSE=
27710fi
27711
27712
27713
27714
27715#
27716# Check for JPEG Version 2 delegate library.
27717#
27718
27719# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027720if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027721 withval=$with_jp2; with_jp2=$withval
27722else
27723 with_jp2='yes'
27724fi
27725
27726
27727if test "$with_jp2" != 'yes'; then
27728 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27729fi
27730
27731have_jp2='no'
27732JP2_LIBS=''
27733if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027735$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027737$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027739$as_echo "" >&6; }
27740 failed=0
27741 passed=0
cristy8b350f62009-11-15 23:12:43 +000027742 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27743if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027744 passed=`expr $passed + 1`
27745else
27746 failed=`expr $failed + 1`
27747fi
27748
27749
cristy8b350f62009-11-15 23:12:43 +000027750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027751$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027752if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027753 $as_echo_n "(cached) " >&6
27754else
27755 ac_check_lib_save_LIBS=$LIBS
27756LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027758/* end confdefs.h. */
27759
27760/* Override any GCC internal prototype to avoid an error.
27761 Use char because int might match the return type of a GCC
27762 builtin and then its argument prototype would still apply. */
27763#ifdef __cplusplus
27764extern "C"
27765#endif
27766char jas_stream_fopen ();
27767int
27768main ()
27769{
27770return jas_stream_fopen ();
27771 ;
27772 return 0;
27773}
27774_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027775if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027776 ac_cv_lib_jasper_jas_stream_fopen=yes
27777else
cristy8b350f62009-11-15 23:12:43 +000027778 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000027779fi
cristy8b350f62009-11-15 23:12:43 +000027780rm -f core conftest.err conftest.$ac_objext \
27781 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027782LIBS=$ac_check_lib_save_LIBS
27783fi
cristy8b350f62009-11-15 23:12:43 +000027784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027785$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027786if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027787 passed=`expr $passed + 1`
27788else
27789 failed=`expr $failed + 1`
27790fi
27791
cristy8b350f62009-11-15 23:12:43 +000027792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027793$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27794 if test $passed -gt 0; then
27795 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027797$as_echo "no -- some components failed test" >&6; }
27798 have_jp2='no (failed tests)'
27799 else
27800 JP2_LIBS='-ljasper'
27801 LIBS="$JP2_LIBS $LIBS"
27802
cristy8b350f62009-11-15 23:12:43 +000027803$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027804
cristy8b350f62009-11-15 23:12:43 +000027805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027806$as_echo "yes" >&6; }
27807 have_jp2='yes'
27808 fi
27809 else
cristy8b350f62009-11-15 23:12:43 +000027810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027811$as_echo "no" >&6; }
27812 fi
27813fi
27814 if test "$have_jp2" = 'yes'; then
27815 JP2_DELEGATE_TRUE=
27816 JP2_DELEGATE_FALSE='#'
27817else
27818 JP2_DELEGATE_TRUE='#'
27819 JP2_DELEGATE_FALSE=
27820fi
27821
27822
27823
27824
27825#
27826# Check for LCMS delegate library.
27827#
cristy71203402010-06-18 13:12:03 +000027828# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000027829
27830# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000027831if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027832 withval=$with_lcms; with_lcms=$withval
27833else
27834 with_lcms='yes'
27835fi
27836
cristy71203402010-06-18 13:12:03 +000027837if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000027838 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27839fi
27840
cristy71203402010-06-18 13:12:03 +000027841# Disable LCMS2.
27842
27843# Check whether --with-lcms2 was given.
27844if test "${with_lcms2+set}" = set; then :
27845 withval=$with_lcms2; with_lcms2=$withval
27846else
27847 with_lcms2='yes'
27848fi
27849
27850if test "$with_lcms2" != 'yes' ; then
27851 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
27852fi
27853
27854have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000027855LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000027856if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027858$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000027859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
27860$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027862$as_echo "" >&6; }
27863 failed=0
27864 passed=0
27865 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000027866
27867 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000027868 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
27869if test "x$ac_cv_header_lcms2_h" = x""yes; then :
27870 have_lcms_header='yes'
27871fi
27872
27873
27874 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000027875
27876$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
27877
cristy71203402010-06-18 13:12:03 +000027878 passed=`expr $passed + 1`
27879 fi
27880
27881 # Check for <lcms2/lcms2.h)
27882 if test "$have_lcms_header" != 'yes'; then
27883 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
27884if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000027885 have_lcms_header='yes'
27886fi
27887
27888
cristy71203402010-06-18 13:12:03 +000027889 if test "$have_lcms_header" = 'yes'; then
27890 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000027891
cristy71203402010-06-18 13:12:03 +000027892$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000027893
cristy71203402010-06-18 13:12:03 +000027894 fi
cristyd09bcf92010-03-25 03:04:45 +000027895 fi
cristy71203402010-06-18 13:12:03 +000027896
27897 # Failed to find lcms header?
27898 if test "$have_lcms_header" != 'yes'; then
27899 failed=`expr $failed + 1`
27900 fi
27901
27902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
27903$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
27904if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
cristyd09bcf92010-03-25 03:04:45 +000027905 $as_echo_n "(cached) " >&6
27906else
27907 ac_check_lib_save_LIBS=$LIBS
27908LIBS="-llcms2 $LIBS"
27909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27910/* end confdefs.h. */
27911
27912/* Override any GCC internal prototype to avoid an error.
27913 Use char because int might match the return type of a GCC
27914 builtin and then its argument prototype would still apply. */
27915#ifdef __cplusplus
27916extern "C"
27917#endif
cristy71203402010-06-18 13:12:03 +000027918char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000027919int
27920main ()
27921{
cristy71203402010-06-18 13:12:03 +000027922return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000027923 ;
27924 return 0;
27925}
27926_ACEOF
27927if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000027928 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000027929else
cristy71203402010-06-18 13:12:03 +000027930 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000027931fi
27932rm -f core conftest.err conftest.$ac_objext \
27933 conftest$ac_exeext conftest.$ac_ext
27934LIBS=$ac_check_lib_save_LIBS
27935fi
cristy71203402010-06-18 13:12:03 +000027936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
27937$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
27938if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000027939 passed=`expr $passed + 1`
27940else
27941 failed=`expr $failed + 1`
27942fi
27943
cristy71203402010-06-18 13:12:03 +000027944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
27945$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000027946 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000027947 if test $failed -gt 0; then
27948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000027949$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000027950 have_lcms2='no (failed tests)'
27951 else
27952 LCMS_LIBS='-llcms2'
27953 LIBS="$LCMS_LIBS $LIBS"
27954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000027955$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000027956 have_lcms2='yes'
27957 fi
cristyd09bcf92010-03-25 03:04:45 +000027958 else
cristy71203402010-06-18 13:12:03 +000027959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000027960$as_echo "no" >&6; }
27961 fi
27962fi
27963
cristy71203402010-06-18 13:12:03 +000027964#
27965# Check for LCMS v1 (1.11 or later)
27966#
27967if test $have_lcms2 = 'yes'; then
27968 with_lcms='no'
27969fi
27970
27971have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000027972if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000027973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27974$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000027975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
27976$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000027977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27978$as_echo "" >&6; }
27979 failed=0
27980 passed=0
27981 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000027982
27983 # Check for <lcms.h>
27984 if test "$have_lcms_header" != 'yes'; then
27985 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristy8b350f62009-11-15 23:12:43 +000027986if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027987 have_lcms_header='yes'
27988fi
27989
27990
cristy71203402010-06-18 13:12:03 +000027991 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000027992 passed=`expr $passed + 1`
27993
cristy8b350f62009-11-15 23:12:43 +000027994$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027995
cristy71203402010-06-18 13:12:03 +000027996 fi
27997 fi
27998
27999 # Check for <lcms/lcms.h>
28000 if test "$have_lcms_header" != 'yes'; then
28001 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 +000028002if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028003 have_lcms_header='yes'
28004fi
28005
28006
cristy71203402010-06-18 13:12:03 +000028007 if test "$have_lcms_header" = 'yes'; then
28008 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028009
cristy8b350f62009-11-15 23:12:43 +000028010$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028011
cristy71203402010-06-18 13:12:03 +000028012 fi
cristy3ed852e2009-09-05 21:47:34 +000028013 fi
cristy71203402010-06-18 13:12:03 +000028014
28015 # Failed to find lcms header?
28016 if test "$have_lcms_header" != 'yes'; then
28017 failed=`expr $failed + 1`
28018 fi
28019
28020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28021$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28022if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028023 $as_echo_n "(cached) " >&6
28024else
28025 ac_check_lib_save_LIBS=$LIBS
28026LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028028/* end confdefs.h. */
28029
28030/* Override any GCC internal prototype to avoid an error.
28031 Use char because int might match the return type of a GCC
28032 builtin and then its argument prototype would still apply. */
28033#ifdef __cplusplus
28034extern "C"
28035#endif
cristy71203402010-06-18 13:12:03 +000028036char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028037int
28038main ()
28039{
cristy71203402010-06-18 13:12:03 +000028040return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028041 ;
28042 return 0;
28043}
28044_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028045if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028046 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000028047else
cristy71203402010-06-18 13:12:03 +000028048 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000028049fi
cristy8b350f62009-11-15 23:12:43 +000028050rm -f core conftest.err conftest.$ac_objext \
28051 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028052LIBS=$ac_check_lib_save_LIBS
28053fi
cristy71203402010-06-18 13:12:03 +000028054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28055$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28056if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028057 passed=`expr $passed + 1`
28058else
28059 failed=`expr $failed + 1`
28060fi
28061
cristy8b350f62009-11-15 23:12:43 +000028062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028063$as_echo_n "checking if LCMS package is complete... " >&6; }
28064 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028065 if test $failed -gt 0; then
28066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028067$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028068 have_lcms='no (failed tests)'
28069 else
28070 LCMS_LIBS='-llcms'
28071 LIBS="$LCMS_LIBS $LIBS"
28072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028073$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028074 have_lcms='yes'
28075 fi
cristy3ed852e2009-09-05 21:47:34 +000028076 else
cristy71203402010-06-18 13:12:03 +000028077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028078$as_echo "no" >&6; }
28079 fi
28080fi
cristy71203402010-06-18 13:12:03 +000028081
28082 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028083 LCMS_DELEGATE_TRUE=
28084 LCMS_DELEGATE_FALSE='#'
28085else
28086 LCMS_DELEGATE_TRUE='#'
28087 LCMS_DELEGATE_FALSE=
28088fi
28089
cristy71203402010-06-18 13:12:03 +000028090if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28091
28092$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28093
28094fi
28095
cristy3ed852e2009-09-05 21:47:34 +000028096
28097
28098
28099#
28100# Check for the LQR (Liquid Rescale) delegate library.
28101#
28102
28103# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028104if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028105 withval=$with_lqr; with_lqr=$withval
28106else
28107 with_lqr='yes'
28108fi
28109
28110
28111if test "$with_lqr" != 'yes'; then
28112 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28113fi
28114
28115have_lqr='no'
28116LQR_CFLAGS=""
28117LQR_LIBS=""
28118LQR_PKG=""
28119if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028121$as_echo "-------------------------------------------------------------" >&6; }
28122
28123pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028125$as_echo_n "checking for LQR... " >&6; }
28126
28127if test -n "$LQR_CFLAGS"; then
28128 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28129 elif test -n "$PKG_CONFIG"; then
28130 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028131 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028132 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28133 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28135 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028136 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28137else
28138 pkg_failed=yes
28139fi
28140 else
28141 pkg_failed=untried
28142fi
28143if test -n "$LQR_LIBS"; then
28144 pkg_cv_LQR_LIBS="$LQR_LIBS"
28145 elif test -n "$PKG_CONFIG"; then
28146 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028147 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028148 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28149 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28151 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028152 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28153else
28154 pkg_failed=yes
28155fi
28156 else
28157 pkg_failed=untried
28158fi
28159
28160
28161
28162if test $pkg_failed = yes; then
28163
28164if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28165 _pkg_short_errors_supported=yes
28166else
28167 _pkg_short_errors_supported=no
28168fi
28169 if test $_pkg_short_errors_supported = yes; then
28170 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28171 else
28172 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28173 fi
28174 # Put the nasty error message in config.log where it belongs
28175 echo "$LQR_PKG_ERRORS" >&5
28176
cristy8b350f62009-11-15 23:12:43 +000028177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028178$as_echo "no" >&6; }
28179 have_lqr=no
28180elif test $pkg_failed = untried; then
28181 have_lqr=no
28182else
28183 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28184 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028186$as_echo "yes" >&6; }
28187 have_lqr=yes
28188fi
cristy8b350f62009-11-15 23:12:43 +000028189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028190$as_echo "" >&6; }
28191fi
28192
28193if test "$have_lqr" = 'yes'; then
28194
cristy8b350f62009-11-15 23:12:43 +000028195$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028196
28197 CFLAGS="$LQR_CFLAGS $CFLAGS"
28198fi
28199
28200 if test "$have_lqr" = 'yes'; then
28201 LQR_DELEGATE_TRUE=
28202 LQR_DELEGATE_FALSE='#'
28203else
28204 LQR_DELEGATE_TRUE='#'
28205 LQR_DELEGATE_FALSE=
28206fi
28207
28208
28209
28210
28211
28212#
28213# Check for the OpenEXR delegate library.
28214#
28215
28216# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000028217if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028218 withval=$with_openexr; with_openexr=$withval
28219else
28220 with_openexr='yes'
28221fi
28222
28223
28224if test "$with_openexr" != 'yes'; then
28225 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28226fi
28227
28228have_openexr='no'
28229OPENEXR_CFLAGS=""
28230OPENEXR_LIBS=""
28231OPENEXR_PKG=""
28232if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028234$as_echo "-------------------------------------------------------------" >&6; }
28235
28236pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028238$as_echo_n "checking for OPENEXR... " >&6; }
28239
28240if test -n "$OPENEXR_CFLAGS"; then
28241 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28242 elif test -n "$PKG_CONFIG"; then
28243 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028244 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028245 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28246 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28248 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028249 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28250else
28251 pkg_failed=yes
28252fi
28253 else
28254 pkg_failed=untried
28255fi
28256if test -n "$OPENEXR_LIBS"; then
28257 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28258 elif test -n "$PKG_CONFIG"; then
28259 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028260 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028261 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28262 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28264 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028265 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28266else
28267 pkg_failed=yes
28268fi
28269 else
28270 pkg_failed=untried
28271fi
28272
28273
28274
28275if test $pkg_failed = yes; then
28276
28277if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28278 _pkg_short_errors_supported=yes
28279else
28280 _pkg_short_errors_supported=no
28281fi
28282 if test $_pkg_short_errors_supported = yes; then
28283 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28284 else
28285 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28286 fi
28287 # Put the nasty error message in config.log where it belongs
28288 echo "$OPENEXR_PKG_ERRORS" >&5
28289
cristy8b350f62009-11-15 23:12:43 +000028290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028291$as_echo "no" >&6; }
28292 have_openexr=no
28293elif test $pkg_failed = untried; then
28294 have_openexr=no
28295else
28296 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28297 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028299$as_echo "yes" >&6; }
28300 have_openexr=yes
28301fi
cristy8b350f62009-11-15 23:12:43 +000028302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028303$as_echo "" >&6; }
28304fi
28305
28306if test "$have_openexr" = 'yes'; then
28307
cristy8b350f62009-11-15 23:12:43 +000028308$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028309
28310 if test "$with_modules" = 'no'; then
28311 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28312 fi
28313fi
28314
28315 if test "$have_openexr" = 'yes'; then
28316 OPENEXR_DELEGATE_TRUE=
28317 OPENEXR_DELEGATE_FALSE='#'
28318else
28319 OPENEXR_DELEGATE_TRUE='#'
28320 OPENEXR_DELEGATE_FALSE=
28321fi
28322
28323
28324
28325
28326
28327#
28328# Check for PNG delegate library.
28329#
28330
28331# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000028332if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028333 withval=$with_png; with_png=$withval
28334else
28335 with_png='yes'
28336fi
28337
28338
28339if test "$with_png" != 'yes'; then
28340 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28341fi
28342
28343have_png='no'
28344PNG_LIBS=''
28345if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028347$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028349$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028351$as_echo "" >&6; }
28352 failed=0
28353 passed=0
cristy8b350f62009-11-15 23:12:43 +000028354 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28355if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028356 passed=`expr $passed + 1`
28357else
28358 failed=`expr $failed + 1`
28359fi
28360
28361
cristy8b350f62009-11-15 23:12:43 +000028362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000028363$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028364if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028365 $as_echo_n "(cached) " >&6
28366else
28367 ac_check_lib_save_LIBS=$LIBS
28368LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028370/* end confdefs.h. */
28371
28372/* Override any GCC internal prototype to avoid an error.
28373 Use char because int might match the return type of a GCC
28374 builtin and then its argument prototype would still apply. */
28375#ifdef __cplusplus
28376extern "C"
28377#endif
28378char png_get_io_ptr ();
28379int
28380main ()
28381{
28382return png_get_io_ptr ();
28383 ;
28384 return 0;
28385}
28386_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028387if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028388 ac_cv_lib_png_png_get_io_ptr=yes
28389else
cristy8b350f62009-11-15 23:12:43 +000028390 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000028391fi
cristy8b350f62009-11-15 23:12:43 +000028392rm -f core conftest.err conftest.$ac_objext \
28393 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028394LIBS=$ac_check_lib_save_LIBS
28395fi
cristy8b350f62009-11-15 23:12:43 +000028396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000028397$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028398if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028399 passed=`expr $passed + 1`
28400else
28401 failed=`expr $failed + 1`
28402fi
28403
cristy8b350f62009-11-15 23:12:43 +000028404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028405$as_echo_n "checking if PNG package is complete... " >&6; }
28406 if test $passed -gt 0; then
28407 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028409$as_echo "no -- some components failed test" >&6; }
28410 have_png='no (failed tests)'
28411 else
28412 PNG_LIBS='-lpng'
28413 LIBS="$PNG_LIBS $LIBS"
28414
cristy8b350f62009-11-15 23:12:43 +000028415$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028416
cristy8b350f62009-11-15 23:12:43 +000028417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028418$as_echo "yes" >&6; }
28419 have_png='yes'
28420 fi
28421 else
cristy8b350f62009-11-15 23:12:43 +000028422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028423$as_echo "no" >&6; }
28424 fi
28425fi
28426 if test "$have_png" = 'yes'; then
28427 PNG_DELEGATE_TRUE=
28428 PNG_DELEGATE_FALSE='#'
28429else
28430 PNG_DELEGATE_TRUE='#'
28431 PNG_DELEGATE_FALSE=
28432fi
28433
28434
28435
28436
28437#
28438# Check for RSVG delegate library.
28439#
28440
28441# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000028442if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028443 withval=$with_rsvg; with_rsvg=$withval
28444else
28445 with_rsvg=$have_x
28446fi
28447
28448
28449if test "$with_rsvg" != 'yes'; then
28450 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28451fi
28452
28453have_rsvg='no'
28454have_cairo='no'
28455RSVG_CFLAGS=""
28456RSVG_LIBS=""
28457RSVG_PKG=""
28458if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028460$as_echo "-------------------------------------------------------------" >&6; }
28461
28462pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028464$as_echo_n "checking for RSVG... " >&6; }
28465
28466if test -n "$RSVG_CFLAGS"; then
28467 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28468 elif test -n "$PKG_CONFIG"; then
28469 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028470 { { $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 +000028471 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28472 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28474 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028475 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28476else
28477 pkg_failed=yes
28478fi
28479 else
28480 pkg_failed=untried
28481fi
28482if test -n "$RSVG_LIBS"; then
28483 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28484 elif test -n "$PKG_CONFIG"; then
28485 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028486 { { $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 +000028487 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28488 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28490 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028491 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28492else
28493 pkg_failed=yes
28494fi
28495 else
28496 pkg_failed=untried
28497fi
28498
28499
28500
28501if test $pkg_failed = yes; then
28502
28503if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28504 _pkg_short_errors_supported=yes
28505else
28506 _pkg_short_errors_supported=no
28507fi
28508 if test $_pkg_short_errors_supported = yes; then
28509 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28510 else
28511 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28512 fi
28513 # Put the nasty error message in config.log where it belongs
28514 echo "$RSVG_PKG_ERRORS" >&5
28515
cristy8b350f62009-11-15 23:12:43 +000028516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028517$as_echo "no" >&6; }
28518 have_rsvg=no
28519elif test $pkg_failed = untried; then
28520 have_rsvg=no
28521else
28522 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28523 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028525$as_echo "yes" >&6; }
28526 have_rsvg=yes
28527fi
cristy8b350f62009-11-15 23:12:43 +000028528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028529$as_echo "" >&6; }
28530
28531pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028533$as_echo_n "checking for CAIRO_SVG... " >&6; }
28534
28535if test -n "$CAIRO_SVG_CFLAGS"; then
28536 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28537 elif test -n "$PKG_CONFIG"; then
28538 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028539 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028540 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28541 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28543 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028544 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28545else
28546 pkg_failed=yes
28547fi
28548 else
28549 pkg_failed=untried
28550fi
28551if test -n "$CAIRO_SVG_LIBS"; then
28552 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28553 elif test -n "$PKG_CONFIG"; then
28554 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028555 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028556 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28557 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28559 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028560 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28561else
28562 pkg_failed=yes
28563fi
28564 else
28565 pkg_failed=untried
28566fi
28567
28568
28569
28570if test $pkg_failed = yes; then
28571
28572if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28573 _pkg_short_errors_supported=yes
28574else
28575 _pkg_short_errors_supported=no
28576fi
28577 if test $_pkg_short_errors_supported = yes; then
28578 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28579 else
28580 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28581 fi
28582 # Put the nasty error message in config.log where it belongs
28583 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28584
cristy8b350f62009-11-15 23:12:43 +000028585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028586$as_echo "no" >&6; }
28587 have_cairo=no
28588elif test $pkg_failed = untried; then
28589 have_cairo=no
28590else
28591 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28592 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028594$as_echo "yes" >&6; }
28595 have_cairo=yes
28596fi
cristy8b350f62009-11-15 23:12:43 +000028597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028598$as_echo "" >&6; }
28599fi
28600
28601if test "$have_rsvg" = 'yes'; then
28602
cristy8b350f62009-11-15 23:12:43 +000028603$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028604
28605 if test "$with_modules" = 'no'; then
28606 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28607 fi
28608fi
28609
28610if test "$have_cairo" = 'yes'; then
28611
cristy8b350f62009-11-15 23:12:43 +000028612$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028613
28614 if test "$with_modules" = 'no'; then
28615 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28616 fi
28617fi
28618
28619 if test "$have_rsvg" = 'yes'; then
28620 RSVG_DELEGATE_TRUE=
28621 RSVG_DELEGATE_FALSE='#'
28622else
28623 RSVG_DELEGATE_TRUE='#'
28624 RSVG_DELEGATE_FALSE=
28625fi
28626
28627 if test "$have_cairo" = 'yes'; then
28628 CAIRO_DELEGATE_TRUE=
28629 CAIRO_DELEGATE_FALSE='#'
28630else
28631 CAIRO_DELEGATE_TRUE='#'
28632 CAIRO_DELEGATE_FALSE=
28633fi
28634
28635
28636
28637
28638
28639#
28640# Check for TIFF delegate library.
28641#
28642
28643# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000028644if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028645 withval=$with_tiff; with_tiff=$withval
28646else
28647 with_tiff='yes'
28648fi
28649
28650
28651if test "$with_tiff" != 'yes'; then
28652 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28653fi
28654
28655have_tiff='no'
28656TIFF_LIBS=''
28657if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028659$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028661$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028663$as_echo "" >&6; }
28664 failed=0
28665 passed=0
cristy8b350f62009-11-15 23:12:43 +000028666 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28667if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028668 passed=`expr $passed + 1`
28669else
28670 failed=`expr $failed + 1`
28671fi
28672
28673
cristy8b350f62009-11-15 23:12:43 +000028674 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28675if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028676 passed=`expr $passed + 1`
28677else
28678 failed=`expr $failed + 1`
28679fi
28680
28681
cristy8b350f62009-11-15 23:12:43 +000028682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028683$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028684if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028685 $as_echo_n "(cached) " >&6
28686else
28687 ac_check_lib_save_LIBS=$LIBS
28688LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028690/* end confdefs.h. */
28691
28692/* Override any GCC internal prototype to avoid an error.
28693 Use char because int might match the return type of a GCC
28694 builtin and then its argument prototype would still apply. */
28695#ifdef __cplusplus
28696extern "C"
28697#endif
28698char TIFFOpen ();
28699int
28700main ()
28701{
28702return TIFFOpen ();
28703 ;
28704 return 0;
28705}
28706_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028707if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028708 ac_cv_lib_tiff_TIFFOpen=yes
28709else
cristy8b350f62009-11-15 23:12:43 +000028710 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028711fi
cristy8b350f62009-11-15 23:12:43 +000028712rm -f core conftest.err conftest.$ac_objext \
28713 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028714LIBS=$ac_check_lib_save_LIBS
28715fi
cristy8b350f62009-11-15 23:12:43 +000028716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028717$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028718if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028719 passed=`expr $passed + 1`
28720else
28721 failed=`expr $failed + 1`
28722fi
28723
cristy8b350f62009-11-15 23:12:43 +000028724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028725$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028726if test "${ac_cv_lib_tiff_TIFFClientOpen+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 TIFFClientOpen ();
28741int
28742main ()
28743{
28744return TIFFClientOpen ();
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_TIFFClientOpen=yes
28751else
cristy8b350f62009-11-15 23:12:43 +000028752 ac_cv_lib_tiff_TIFFClientOpen=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_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028759$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028760if test "x$ac_cv_lib_tiff_TIFFClientOpen" = 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 TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028767$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028768if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+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 TIFFIsByteSwapped ();
28783int
28784main ()
28785{
28786return TIFFIsByteSwapped ();
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_TIFFIsByteSwapped=yes
28793else
cristy8b350f62009-11-15 23:12:43 +000028794 ac_cv_lib_tiff_TIFFIsByteSwapped=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_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000028801$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028802if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028803 passed=`expr $passed + 1`
28804else
28805 failed=`expr $failed + 1`
28806fi
28807
cristy8b350f62009-11-15 23:12:43 +000028808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028809$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028810if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028811 $as_echo_n "(cached) " >&6
28812else
28813 ac_check_lib_save_LIBS=$LIBS
28814LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028816/* 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 TIFFReadRGBATile ();
28825int
28826main ()
28827{
28828return TIFFReadRGBATile ();
28829 ;
28830 return 0;
28831}
28832_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028833if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028834 ac_cv_lib_tiff_TIFFReadRGBATile=yes
28835else
cristy8b350f62009-11-15 23:12:43 +000028836 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000028837fi
cristy8b350f62009-11-15 23:12:43 +000028838rm -f core conftest.err conftest.$ac_objext \
28839 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028840LIBS=$ac_check_lib_save_LIBS
28841fi
cristy8b350f62009-11-15 23:12:43 +000028842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000028843$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028844if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028845 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 TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028851$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028852if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+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 TIFFReadRGBAStrip ();
28867int
28868main ()
28869{
28870return TIFFReadRGBAStrip ();
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_TIFFReadRGBAStrip=yes
28877else
cristy8b350f62009-11-15 23:12:43 +000028878 ac_cv_lib_tiff_TIFFReadRGBAStrip=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_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000028885$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028886if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = 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 if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028893$as_echo_n "checking if TIFF package is complete... " >&6; }
28894 if test $passed -gt 0; then
28895 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028897$as_echo "no -- some components failed test" >&6; }
28898 have_tiff='no (failed tests)'
28899 else
28900 TIFF_LIBS='-ltiff'
28901 LIBS="$TIFF_LIBS $LIBS"
28902
cristy8b350f62009-11-15 23:12:43 +000028903$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028904
cristy8b350f62009-11-15 23:12:43 +000028905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028906$as_echo "yes" >&6; }
28907 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000028908 for ac_header in tiffconf.h
28909do :
28910 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
28911if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028912 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028913#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000028914_ACEOF
28915
28916fi
28917
28918done
28919
cristy8b350f62009-11-15 23:12:43 +000028920 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000028921 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
28922 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000028923do :
28924 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28925ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy0684af42010-07-09 00:00:05 +000028926if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000028927 cat >>confdefs.h <<_ACEOF
28928#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28929_ACEOF
28930
28931fi
28932done
28933
28934 fi
28935 else
cristy8b350f62009-11-15 23:12:43 +000028936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028937$as_echo "no" >&6; }
28938 fi
28939fi
28940 if test "$have_tiff" = 'yes'; then
28941 TIFF_DELEGATE_TRUE=
28942 TIFF_DELEGATE_FALSE='#'
28943else
28944 TIFF_DELEGATE_TRUE='#'
28945 TIFF_DELEGATE_FALSE=
28946fi
28947
28948
28949
28950
28951#
28952# Set Windows font directory.
28953#
28954
28955# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028956if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028957 withval=$with_windows_font_dir; with_windows_font_dir=$withval
28958else
28959 with_windows_font_dir=''
28960fi
28961
28962if test "$with_windows_font_dir" != '' ; then
28963 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
28964fi
28965
28966
28967#
28968# Check for WMF delegate library.
28969#
28970
28971# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000028972if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028973 withval=$with_wmf; with_wmf=$withval
28974else
cristy8d63d1d2010-01-06 20:38:37 +000028975 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000028976fi
28977
28978
28979if test "$with_wmf" != 'yes'; then
28980 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
28981fi
28982
28983have_wmf='no'
28984WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000028985if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028987$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028989$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028991$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000028992 failed=0
28993 passed=0
28994 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
28995if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
28996 passed=`expr $passed + 1`
28997else
28998 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028999fi
29000
29001
cristy735e8942010-04-02 20:32:57 +000029002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29003$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29004if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029005 $as_echo_n "(cached) " >&6
29006else
29007 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000029008LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029010/* end confdefs.h. */
29011
29012/* Override any GCC internal prototype to avoid an error.
29013 Use char because int might match the return type of a GCC
29014 builtin and then its argument prototype would still apply. */
29015#ifdef __cplusplus
29016extern "C"
29017#endif
cristy735e8942010-04-02 20:32:57 +000029018char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029019int
29020main ()
29021{
cristy735e8942010-04-02 20:32:57 +000029022return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029023 ;
29024 return 0;
29025}
29026_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029027if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000029028 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000029029else
cristy735e8942010-04-02 20:32:57 +000029030 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000029031fi
cristy8b350f62009-11-15 23:12:43 +000029032rm -f core conftest.err conftest.$ac_objext \
29033 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029034LIBS=$ac_check_lib_save_LIBS
29035fi
cristy735e8942010-04-02 20:32:57 +000029036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29037$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29038if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29039 passed=`expr $passed + 1`
29040else
29041 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029042fi
29043
cristy735e8942010-04-02 20:32:57 +000029044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29045$as_echo_n "checking if WMF package is complete... " >&6; }
29046 if test $passed -gt 0; then
29047 if test $failed -gt 0; then
29048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29049$as_echo "no -- some components failed test" >&6; }
29050 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000029051 else
cristy735e8942010-04-02 20:32:57 +000029052 WMF_LIBS='-lwmf -lwmflite'
29053 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029054
cristy8b350f62009-11-15 23:12:43 +000029055$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029056
cristy735e8942010-04-02 20:32:57 +000029057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029058$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000029059 have_wmf='yes'
29060 fi
cristy3ed852e2009-09-05 21:47:34 +000029061 else
cristy8b350f62009-11-15 23:12:43 +000029062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029063$as_echo "no" >&6; }
29064 fi
29065fi
29066 if test "$have_wmf" = 'yes'; then
29067 WMF_DELEGATE_TRUE=
29068 WMF_DELEGATE_FALSE='#'
29069else
29070 WMF_DELEGATE_TRUE='#'
29071 WMF_DELEGATE_FALSE=
29072fi
29073
29074
29075
29076
29077
cristy735e8942010-04-02 20:32:57 +000029078
cristy3ed852e2009-09-05 21:47:34 +000029079#
29080# Check for XML delegate library.
29081#
29082
29083# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000029084if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029085 withval=$with_xml; with_xml=$withval
29086else
29087 with_xml=$have_x
29088fi
29089
29090
29091if test "$with_xml" != 'yes' ; then
29092 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29093fi
29094
29095have_xml='no'
29096XML_LIBS=''
29097if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029099$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000029101$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029103$as_echo "" >&6; }
29104 PERSIST_LDFLAGS=$LDFLAGS
29105 PERSIST_CPPFLAGS=$CPPFLAGS
29106 xml2_config=''
29107 for ac_prog in xml2-config
29108do
29109 # Extract the first word of "$ac_prog", so it can be a program name with args.
29110set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029112$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029113if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029114 $as_echo_n "(cached) " >&6
29115else
29116 if test -n "$xml2_config"; then
29117 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29118else
29119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29120for as_dir in $PATH
29121do
29122 IFS=$as_save_IFS
29123 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029124 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29126 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029128 break 2
29129 fi
29130done
cristy8b350f62009-11-15 23:12:43 +000029131 done
cristy3ed852e2009-09-05 21:47:34 +000029132IFS=$as_save_IFS
29133
29134fi
29135fi
29136xml2_config=$ac_cv_prog_xml2_config
29137if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000029138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000029139$as_echo "$xml2_config" >&6; }
29140else
cristy8b350f62009-11-15 23:12:43 +000029141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029142$as_echo "no" >&6; }
29143fi
29144
29145
29146 test -n "$xml2_config" && break
29147done
29148 if test -n "$xml2_config"; then
29149 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29150 # the shared library installed under /usr/lib, whereas the package
29151 # installs itself under $prefix/libxml and $prefix/lib.
29152 xml2_prefix=`xml2-config --prefix`
29153 if test -d "${xml2_prefix}/include/libxml2"; then
29154 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29155 fi
29156 if test "${xml2_prefix}" != '/usr'; then
29157 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29158 fi
29159 fi
29160 failed=0
29161 passed=0
cristy8b350f62009-11-15 23:12:43 +000029162 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29163if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029164 passed=`expr $passed + 1`
29165else
29166 failed=`expr $failed + 1`
29167fi
29168
29169
cristy8b350f62009-11-15 23:12:43 +000029170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029171$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029172if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029173 $as_echo_n "(cached) " >&6
29174else
29175 ac_check_lib_save_LIBS=$LIBS
29176LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029178/* end confdefs.h. */
29179
29180/* Override any GCC internal prototype to avoid an error.
29181 Use char because int might match the return type of a GCC
29182 builtin and then its argument prototype would still apply. */
29183#ifdef __cplusplus
29184extern "C"
29185#endif
29186char xmlParseExternalEntity ();
29187int
29188main ()
29189{
29190return xmlParseExternalEntity ();
29191 ;
29192 return 0;
29193}
29194_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029195if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029196 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29197else
cristy8b350f62009-11-15 23:12:43 +000029198 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000029199fi
cristy8b350f62009-11-15 23:12:43 +000029200rm -f core conftest.err conftest.$ac_objext \
29201 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029202LIBS=$ac_check_lib_save_LIBS
29203fi
cristy8b350f62009-11-15 23:12:43 +000029204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000029205$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029206if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029207 passed=`expr $passed + 1`
29208else
29209 failed=`expr $failed + 1`
29210fi
29211
cristy8b350f62009-11-15 23:12:43 +000029212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029213$as_echo_n "checking if XML package is complete... " >&6; }
29214 if test $passed -gt 0; then
29215 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029217$as_echo "no -- some components failed test" >&6; }
29218 have_xml='no (failed tests)'
29219 LDFLAGS="$PERSIST_LDFLAGS"
29220 CPPFLAGS="$PERSIST_CPPFLAGS"
29221 else
29222 XML_LIBS='-lxml2'
29223 LIBS="$XML_LIBS $LIBS"
29224
cristy8b350f62009-11-15 23:12:43 +000029225$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029226
cristy8b350f62009-11-15 23:12:43 +000029227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029228$as_echo "yes" >&6; }
29229 have_xml='yes'
29230 fi
29231 else
cristy8b350f62009-11-15 23:12:43 +000029232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029233$as_echo "no" >&6; }
29234 fi
29235fi
29236 if test "$have_xml" = 'yes'; then
29237 XML_DELEGATE_TRUE=
29238 XML_DELEGATE_FALSE='#'
29239else
29240 XML_DELEGATE_TRUE='#'
29241 XML_DELEGATE_FALSE=
29242fi
29243
29244
29245
29246
29247# Substitute compiler name to build/link PerlMagick
29248#
29249
29250
29251#
29252# Configure install Paths
29253#
29254
29255# Subdirectory under lib to place ImageMagick lib files
29256LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29257
29258cat >>confdefs.h <<_ACEOF
29259#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29260_ACEOF
29261
29262
29263# Path to ImageMagick bin directory
29264EXECUTABLE_PATH="${BIN_DIR}"
29265DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29266case "${build_os}" in
29267 mingw* )
29268 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29269 ;;
29270esac
29271
29272cat >>confdefs.h <<_ACEOF
29273#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29274_ACEOF
29275
29276
29277
29278# Path to ImageMagick lib
29279LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29280DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29281case "${build_os}" in
29282 mingw* )
29283 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29284 ;;
29285esac
29286
29287cat >>confdefs.h <<_ACEOF
29288#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29289_ACEOF
29290
29291
29292
29293# Subdirectory under lib to place ImageMagick configuration files
29294CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29295
29296cat >>confdefs.h <<_ACEOF
29297#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29298_ACEOF
29299
29300CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29301DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29302case "${build_os}" in
29303 mingw* )
29304 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29305 ;;
29306esac
29307
29308cat >>confdefs.h <<_ACEOF
29309#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29310_ACEOF
29311
29312
29313
29314#
29315# Subdirectory under lib to place ImageMagick coder module files
29316CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29317
29318cat >>confdefs.h <<_ACEOF
29319#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29320_ACEOF
29321
29322CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29323DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29324case "${build_os}" in
29325 mingw* )
29326 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29327 ;;
29328esac
29329
29330cat >>confdefs.h <<_ACEOF
29331#define CODER_PATH "$DEFINE_CODER_PATH"
29332_ACEOF
29333
29334
29335
29336#
29337# Subdirectory under lib to place ImageMagick filter module files
29338FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29339
29340cat >>confdefs.h <<_ACEOF
29341#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29342_ACEOF
29343
29344FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29345DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29346case "${build_os}" in
29347 mingw* )
29348 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29349 ;;
29350esac
29351
29352cat >>confdefs.h <<_ACEOF
29353#define FILTER_PATH "$DEFINE_FILTER_PATH"
29354_ACEOF
29355
29356
29357
29358#
29359# Path to ImageMagick documentation files
29360DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29361DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29362DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29363case "${build_os}" in
29364 mingw* )
29365 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29366 ;;
29367esac
29368
29369cat >>confdefs.h <<_ACEOF
29370#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29371_ACEOF
29372
29373
29374
29375#
29376# Path to ImageMagick share files
29377SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29378SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29379DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29380case "${build_os}" in
29381 mingw* )
29382 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29383 ;;
29384esac
29385
29386cat >>confdefs.h <<_ACEOF
29387#define SHARE_PATH "$DEFINE_SHARE_PATH"
29388_ACEOF
29389
29390
29391
29392# Subdirectory under share to place ImageMagick configuration files
29393SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29394
29395cat >>confdefs.h <<_ACEOF
29396#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29397_ACEOF
29398
29399SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29400DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29401case "${build_os}" in
29402 mingw* )
29403 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29404 ;;
29405esac
29406
29407cat >>confdefs.h <<_ACEOF
29408#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29409_ACEOF
29410
29411
29412
29413#
29414# program_transform_name is formed for use in a Makefile, so create a
29415# modified version for use in a shell script.
29416configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29417
29418# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000029419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029420$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029422$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029424$as_echo "" >&6; }
29425AutotraceDecodeDelegateDefault='autotrace'
29426AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000029427BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000029428BZIPDelegateDefault='bzip2'
29429BrowseDelegateDefault='xdg-open'
29430CGMDecodeDelegateDefault='ralcgm'
29431CatDelegateDefault='cat'
29432DNGDecodeDelegateDefault='ufraw-batch'
29433GVCDecodeDelegateDefault='dot'
29434DVIDecodeDelegateDefault='dvips'
29435EchoDelegateDefault='echo'
29436EditorDelegateDefault='xterm'
29437FIGDecodeDelegateDefault='fig2dev'
29438ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29439DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29440MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29441GnuplotDecodeDelegateDefault='gnuplot'
29442HDRDecodeDelegateDefault='ra_pfm'
29443HPGLDecodeDelegateDefault='hp2xx'
29444HTMLDecodeDelegateDefault='html2ps'
29445ILBMDecodeDelegateDefault='ilbmtoppm'
29446ILBMEncodeDelegateDefault='ppmtoilbm'
29447LPDelegateDefault='lp'
29448LPRDelegateDefault='lpr'
29449LZWDecodeDelegateDefault='uncompress'
29450LZWEncodeDelegateDefault='compress'
29451LaunchDelegateDefault='gimp'
29452MANDelegateDefault='groff'
29453MPEGDecodeDelegateDefault='ffmpeg'
29454MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000029455MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000029456MVDelegateDefault='mv'
29457PCLDelegateDefault='pcl6'
29458PGPDecodeDelegateDefault='pgpv'
29459POVDelegateDefault='povray'
29460if test "$native_win32_build" = 'yes'; then
29461 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000029462elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029463 PSDelegateDefault='gsc'
29464else
29465 PSDelegateDefault='gs'
29466fi
29467RLEEncodeDelegateDefault='rawtorle'
29468RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000029469RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000029470SCANDecodeDelegateDefault='scanimage'
29471TXTDelegateDefault='enscript'
29472WMFDecodeDelegateDefault='wmf2eps'
29473WWWDecodeDelegateDefault='curl'
29474XPSDelegateDefault='gxps'
29475ZipDelegateDefault='gzip'
29476
29477# Search for delegates
29478# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29479set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029481$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029482if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029483 $as_echo_n "(cached) " >&6
29484else
29485 case $AutotraceDecodeDelegate in
29486 [\\/]* | ?:[\\/]*)
29487 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29488 ;;
29489 *)
29490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29491for as_dir in $PATH
29492do
29493 IFS=$as_save_IFS
29494 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029495 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29497 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029499 break 2
29500 fi
29501done
cristy8b350f62009-11-15 23:12:43 +000029502 done
cristy3ed852e2009-09-05 21:47:34 +000029503IFS=$as_save_IFS
29504
29505 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29506 ;;
29507esac
29508fi
29509AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29510if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029512$as_echo "$AutotraceDecodeDelegate" >&6; }
29513else
cristy8b350f62009-11-15 23:12:43 +000029514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029515$as_echo "no" >&6; }
29516fi
29517
29518
29519# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29520set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029522$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029523if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029524 $as_echo_n "(cached) " >&6
29525else
29526 case $AVIDecodeDelegate in
29527 [\\/]* | ?:[\\/]*)
29528 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29529 ;;
29530 *)
29531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29532for as_dir in $PATH
29533do
29534 IFS=$as_save_IFS
29535 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029536 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29538 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029540 break 2
29541 fi
29542done
cristy8b350f62009-11-15 23:12:43 +000029543 done
cristy3ed852e2009-09-05 21:47:34 +000029544IFS=$as_save_IFS
29545
29546 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29547 ;;
29548esac
29549fi
29550AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29551if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029553$as_echo "$AVIDecodeDelegate" >&6; }
29554else
cristy8b350f62009-11-15 23:12:43 +000029555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029556$as_echo "no" >&6; }
29557fi
29558
29559
29560# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29561set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029563$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029564if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029565 $as_echo_n "(cached) " >&6
29566else
29567 case $BlenderDecodeDelegate in
29568 [\\/]* | ?:[\\/]*)
29569 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29570 ;;
29571 *)
29572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29573for as_dir in $PATH
29574do
29575 IFS=$as_save_IFS
29576 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029577 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29579 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029581 break 2
29582 fi
29583done
cristy8b350f62009-11-15 23:12:43 +000029584 done
cristy3ed852e2009-09-05 21:47:34 +000029585IFS=$as_save_IFS
29586
29587 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29588 ;;
29589esac
29590fi
29591BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29592if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029594$as_echo "$BlenderDecodeDelegate" >&6; }
29595else
cristy8b350f62009-11-15 23:12:43 +000029596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029597$as_echo "no" >&6; }
29598fi
29599
29600
29601# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29602set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029604$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029605if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029606 $as_echo_n "(cached) " >&6
29607else
29608 case $BZIPDelegate in
29609 [\\/]* | ?:[\\/]*)
29610 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29611 ;;
29612 *)
29613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29614for as_dir in $PATH
29615do
29616 IFS=$as_save_IFS
29617 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029618 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29620 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029622 break 2
29623 fi
29624done
cristy8b350f62009-11-15 23:12:43 +000029625 done
cristy3ed852e2009-09-05 21:47:34 +000029626IFS=$as_save_IFS
29627
29628 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29629 ;;
29630esac
29631fi
29632BZIPDelegate=$ac_cv_path_BZIPDelegate
29633if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029635$as_echo "$BZIPDelegate" >&6; }
29636else
cristy8b350f62009-11-15 23:12:43 +000029637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029638$as_echo "no" >&6; }
29639fi
29640
29641
29642# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29643set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029645$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029646if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029647 $as_echo_n "(cached) " >&6
29648else
29649 case $BrowseDelegate in
29650 [\\/]* | ?:[\\/]*)
29651 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29652 ;;
29653 *)
29654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29655for as_dir in $PATH
29656do
29657 IFS=$as_save_IFS
29658 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029659 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29661 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029663 break 2
29664 fi
29665done
cristy8b350f62009-11-15 23:12:43 +000029666 done
cristy3ed852e2009-09-05 21:47:34 +000029667IFS=$as_save_IFS
29668
29669 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29670 ;;
29671esac
29672fi
29673BrowseDelegate=$ac_cv_path_BrowseDelegate
29674if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029676$as_echo "$BrowseDelegate" >&6; }
29677else
cristy8b350f62009-11-15 23:12:43 +000029678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029679$as_echo "no" >&6; }
29680fi
29681
29682
29683# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29684set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029686$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029687if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029688 $as_echo_n "(cached) " >&6
29689else
29690 case $CGMDecodeDelegate in
29691 [\\/]* | ?:[\\/]*)
29692 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29693 ;;
29694 *)
29695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29696for as_dir in $PATH
29697do
29698 IFS=$as_save_IFS
29699 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029700 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29702 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029704 break 2
29705 fi
29706done
cristy8b350f62009-11-15 23:12:43 +000029707 done
cristy3ed852e2009-09-05 21:47:34 +000029708IFS=$as_save_IFS
29709
29710 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29711 ;;
29712esac
29713fi
29714CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29715if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029717$as_echo "$CGMDecodeDelegate" >&6; }
29718else
cristy8b350f62009-11-15 23:12:43 +000029719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029720$as_echo "no" >&6; }
29721fi
29722
29723
29724# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29725set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029727$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029728if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029729 $as_echo_n "(cached) " >&6
29730else
29731 case $CatDelegate in
29732 [\\/]* | ?:[\\/]*)
29733 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29734 ;;
29735 *)
29736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29737for as_dir in $PATH
29738do
29739 IFS=$as_save_IFS
29740 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029741 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29743 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029745 break 2
29746 fi
29747done
cristy8b350f62009-11-15 23:12:43 +000029748 done
cristy3ed852e2009-09-05 21:47:34 +000029749IFS=$as_save_IFS
29750
29751 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29752 ;;
29753esac
29754fi
29755CatDelegate=$ac_cv_path_CatDelegate
29756if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029758$as_echo "$CatDelegate" >&6; }
29759else
cristy8b350f62009-11-15 23:12:43 +000029760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029761$as_echo "no" >&6; }
29762fi
29763
29764
29765# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29766set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029768$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029769if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029770 $as_echo_n "(cached) " >&6
29771else
29772 case $DNGDecodeDelegate in
29773 [\\/]* | ?:[\\/]*)
29774 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29775 ;;
29776 *)
29777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29778for as_dir in $PATH
29779do
29780 IFS=$as_save_IFS
29781 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029782 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29784 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029786 break 2
29787 fi
29788done
cristy8b350f62009-11-15 23:12:43 +000029789 done
cristy3ed852e2009-09-05 21:47:34 +000029790IFS=$as_save_IFS
29791
29792 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29793 ;;
29794esac
29795fi
29796DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29797if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029799$as_echo "$DNGDecodeDelegate" >&6; }
29800else
cristy8b350f62009-11-15 23:12:43 +000029801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029802$as_echo "no" >&6; }
29803fi
29804
29805
29806# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29807set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029809$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029810if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029811 $as_echo_n "(cached) " >&6
29812else
29813 case $GVCDecodeDelegate in
29814 [\\/]* | ?:[\\/]*)
29815 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29816 ;;
29817 *)
29818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29819for as_dir in $PATH
29820do
29821 IFS=$as_save_IFS
29822 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029823 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29825 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029827 break 2
29828 fi
29829done
cristy8b350f62009-11-15 23:12:43 +000029830 done
cristy3ed852e2009-09-05 21:47:34 +000029831IFS=$as_save_IFS
29832
29833 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29834 ;;
29835esac
29836fi
29837GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29838if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029840$as_echo "$GVCDecodeDelegate" >&6; }
29841else
cristy8b350f62009-11-15 23:12:43 +000029842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029843$as_echo "no" >&6; }
29844fi
29845
29846
29847# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29848set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029850$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029851if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029852 $as_echo_n "(cached) " >&6
29853else
29854 case $DVIDecodeDelegate in
29855 [\\/]* | ?:[\\/]*)
29856 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29857 ;;
29858 *)
29859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29860for as_dir in $PATH
29861do
29862 IFS=$as_save_IFS
29863 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029864 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29866 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029868 break 2
29869 fi
29870done
cristy8b350f62009-11-15 23:12:43 +000029871 done
cristy3ed852e2009-09-05 21:47:34 +000029872IFS=$as_save_IFS
29873
29874 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
29875 ;;
29876esac
29877fi
29878DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
29879if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029881$as_echo "$DVIDecodeDelegate" >&6; }
29882else
cristy8b350f62009-11-15 23:12:43 +000029883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029884$as_echo "no" >&6; }
29885fi
29886
29887
29888# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
29889set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029891$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029892if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029893 $as_echo_n "(cached) " >&6
29894else
29895 case $EchoDelegate in
29896 [\\/]* | ?:[\\/]*)
29897 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
29898 ;;
29899 *)
29900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29901for as_dir in $PATH
29902do
29903 IFS=$as_save_IFS
29904 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029905 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29907 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029909 break 2
29910 fi
29911done
cristy8b350f62009-11-15 23:12:43 +000029912 done
cristy3ed852e2009-09-05 21:47:34 +000029913IFS=$as_save_IFS
29914
29915 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
29916 ;;
29917esac
29918fi
29919EchoDelegate=$ac_cv_path_EchoDelegate
29920if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029922$as_echo "$EchoDelegate" >&6; }
29923else
cristy8b350f62009-11-15 23:12:43 +000029924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029925$as_echo "no" >&6; }
29926fi
29927
29928
29929# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
29930set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029932$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029933if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029934 $as_echo_n "(cached) " >&6
29935else
29936 case $EditorDelegate in
29937 [\\/]* | ?:[\\/]*)
29938 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
29939 ;;
29940 *)
29941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29942for as_dir in $PATH
29943do
29944 IFS=$as_save_IFS
29945 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029946 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29948 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029950 break 2
29951 fi
29952done
cristy8b350f62009-11-15 23:12:43 +000029953 done
cristy3ed852e2009-09-05 21:47:34 +000029954IFS=$as_save_IFS
29955
29956 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
29957 ;;
29958esac
29959fi
29960EditorDelegate=$ac_cv_path_EditorDelegate
29961if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029963$as_echo "$EditorDelegate" >&6; }
29964else
cristy8b350f62009-11-15 23:12:43 +000029965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029966$as_echo "no" >&6; }
29967fi
29968
29969
29970# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
29971set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029973$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029974if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029975 $as_echo_n "(cached) " >&6
29976else
29977 case $FIGDecodeDelegate in
29978 [\\/]* | ?:[\\/]*)
29979 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
29980 ;;
29981 *)
29982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29983for as_dir in $PATH
29984do
29985 IFS=$as_save_IFS
29986 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029987 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29989 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029991 break 2
29992 fi
29993done
cristy8b350f62009-11-15 23:12:43 +000029994 done
cristy3ed852e2009-09-05 21:47:34 +000029995IFS=$as_save_IFS
29996
29997 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
29998 ;;
29999esac
30000fi
30001FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30002if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030004$as_echo "$FIGDecodeDelegate" >&6; }
30005else
cristy8b350f62009-11-15 23:12:43 +000030006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030007$as_echo "no" >&6; }
30008fi
30009
30010
30011# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30012set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030014$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030015if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030016 $as_echo_n "(cached) " >&6
30017else
30018 case $ConvertDelegate in
30019 [\\/]* | ?:[\\/]*)
30020 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30021 ;;
30022 *)
30023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30024for as_dir in $PATH
30025do
30026 IFS=$as_save_IFS
30027 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030028 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30030 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030032 break 2
30033 fi
30034done
cristy8b350f62009-11-15 23:12:43 +000030035 done
cristy3ed852e2009-09-05 21:47:34 +000030036IFS=$as_save_IFS
30037
30038 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30039 ;;
30040esac
30041fi
30042ConvertDelegate=$ac_cv_path_ConvertDelegate
30043if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030045$as_echo "$ConvertDelegate" >&6; }
30046else
cristy8b350f62009-11-15 23:12:43 +000030047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030048$as_echo "no" >&6; }
30049fi
30050
30051
30052# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30053set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030055$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030056if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030057 $as_echo_n "(cached) " >&6
30058else
30059 case $DisplayDelegate in
30060 [\\/]* | ?:[\\/]*)
30061 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30062 ;;
30063 *)
30064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30065for as_dir in $PATH
30066do
30067 IFS=$as_save_IFS
30068 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030069 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30071 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030073 break 2
30074 fi
30075done
cristy8b350f62009-11-15 23:12:43 +000030076 done
cristy3ed852e2009-09-05 21:47:34 +000030077IFS=$as_save_IFS
30078
30079 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30080 ;;
30081esac
30082fi
30083DisplayDelegate=$ac_cv_path_DisplayDelegate
30084if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030086$as_echo "$DisplayDelegate" >&6; }
30087else
cristy8b350f62009-11-15 23:12:43 +000030088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030089$as_echo "no" >&6; }
30090fi
30091
30092
30093# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30094set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030096$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030097if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030098 $as_echo_n "(cached) " >&6
30099else
30100 case $MogrifyDelegate in
30101 [\\/]* | ?:[\\/]*)
30102 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30103 ;;
30104 *)
30105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30106for as_dir in $PATH
30107do
30108 IFS=$as_save_IFS
30109 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030110 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30112 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030114 break 2
30115 fi
30116done
cristy8b350f62009-11-15 23:12:43 +000030117 done
cristy3ed852e2009-09-05 21:47:34 +000030118IFS=$as_save_IFS
30119
30120 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30121 ;;
30122esac
30123fi
30124MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30125if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030127$as_echo "$MogrifyDelegate" >&6; }
30128else
cristy8b350f62009-11-15 23:12:43 +000030129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030130$as_echo "no" >&6; }
30131fi
30132
30133
30134# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30135set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030137$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030138if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030139 $as_echo_n "(cached) " >&6
30140else
30141 case $GnuplotDecodeDelegate in
30142 [\\/]* | ?:[\\/]*)
30143 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30144 ;;
30145 *)
30146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30147for as_dir in $PATH
30148do
30149 IFS=$as_save_IFS
30150 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030151 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30153 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030155 break 2
30156 fi
30157done
cristy8b350f62009-11-15 23:12:43 +000030158 done
cristy3ed852e2009-09-05 21:47:34 +000030159IFS=$as_save_IFS
30160
30161 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30162 ;;
30163esac
30164fi
30165GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30166if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030168$as_echo "$GnuplotDecodeDelegate" >&6; }
30169else
cristy8b350f62009-11-15 23:12:43 +000030170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030171$as_echo "no" >&6; }
30172fi
30173
30174
30175# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30176set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030178$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030179if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030180 $as_echo_n "(cached) " >&6
30181else
30182 case $HDRDecodeDelegate in
30183 [\\/]* | ?:[\\/]*)
30184 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30185 ;;
30186 *)
30187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30188for as_dir in $PATH
30189do
30190 IFS=$as_save_IFS
30191 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030192 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30194 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030196 break 2
30197 fi
30198done
cristy8b350f62009-11-15 23:12:43 +000030199 done
cristy3ed852e2009-09-05 21:47:34 +000030200IFS=$as_save_IFS
30201
30202 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30203 ;;
30204esac
30205fi
30206HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30207if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030209$as_echo "$HDRDecodeDelegate" >&6; }
30210else
cristy8b350f62009-11-15 23:12:43 +000030211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030212$as_echo "no" >&6; }
30213fi
30214
30215
30216# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30217set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030219$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030220if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030221 $as_echo_n "(cached) " >&6
30222else
30223 case $HPGLDecodeDelegate in
30224 [\\/]* | ?:[\\/]*)
30225 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30226 ;;
30227 *)
30228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30229for as_dir in $PATH
30230do
30231 IFS=$as_save_IFS
30232 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030233 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30235 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030237 break 2
30238 fi
30239done
cristy8b350f62009-11-15 23:12:43 +000030240 done
cristy3ed852e2009-09-05 21:47:34 +000030241IFS=$as_save_IFS
30242
30243 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30244 ;;
30245esac
30246fi
30247HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30248if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030250$as_echo "$HPGLDecodeDelegate" >&6; }
30251else
cristy8b350f62009-11-15 23:12:43 +000030252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030253$as_echo "no" >&6; }
30254fi
30255
30256
30257# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30258set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030260$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030261if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030262 $as_echo_n "(cached) " >&6
30263else
30264 case $HTMLDecodeDelegate in
30265 [\\/]* | ?:[\\/]*)
30266 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30267 ;;
30268 *)
30269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30270for as_dir in $PATH
30271do
30272 IFS=$as_save_IFS
30273 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030274 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30276 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030278 break 2
30279 fi
30280done
cristy8b350f62009-11-15 23:12:43 +000030281 done
cristy3ed852e2009-09-05 21:47:34 +000030282IFS=$as_save_IFS
30283
30284 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30285 ;;
30286esac
30287fi
30288HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30289if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030291$as_echo "$HTMLDecodeDelegate" >&6; }
30292else
cristy8b350f62009-11-15 23:12:43 +000030293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030294$as_echo "no" >&6; }
30295fi
30296
30297
30298# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30299set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030301$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030302if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030303 $as_echo_n "(cached) " >&6
30304else
30305 case $ILBMDecodeDelegate in
30306 [\\/]* | ?:[\\/]*)
30307 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30308 ;;
30309 *)
30310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30311for as_dir in $PATH
30312do
30313 IFS=$as_save_IFS
30314 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030315 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30317 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030319 break 2
30320 fi
30321done
cristy8b350f62009-11-15 23:12:43 +000030322 done
cristy3ed852e2009-09-05 21:47:34 +000030323IFS=$as_save_IFS
30324
30325 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30326 ;;
30327esac
30328fi
30329ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30330if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030332$as_echo "$ILBMDecodeDelegate" >&6; }
30333else
cristy8b350f62009-11-15 23:12:43 +000030334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030335$as_echo "no" >&6; }
30336fi
30337
30338
30339# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30340set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030342$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030343if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030344 $as_echo_n "(cached) " >&6
30345else
30346 case $ILBMEncodeDelegate in
30347 [\\/]* | ?:[\\/]*)
30348 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30349 ;;
30350 *)
30351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30352for as_dir in $PATH
30353do
30354 IFS=$as_save_IFS
30355 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030356 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30358 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030360 break 2
30361 fi
30362done
cristy8b350f62009-11-15 23:12:43 +000030363 done
cristy3ed852e2009-09-05 21:47:34 +000030364IFS=$as_save_IFS
30365
30366 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30367 ;;
30368esac
30369fi
30370ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30371if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030373$as_echo "$ILBMEncodeDelegate" >&6; }
30374else
cristy8b350f62009-11-15 23:12:43 +000030375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030376$as_echo "no" >&6; }
30377fi
30378
30379
30380# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30381set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030383$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030384if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030385 $as_echo_n "(cached) " >&6
30386else
30387 case $LPDelegate in
30388 [\\/]* | ?:[\\/]*)
30389 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30390 ;;
30391 *)
30392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30393for as_dir in $PATH
30394do
30395 IFS=$as_save_IFS
30396 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030397 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30399 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030401 break 2
30402 fi
30403done
cristy8b350f62009-11-15 23:12:43 +000030404 done
cristy3ed852e2009-09-05 21:47:34 +000030405IFS=$as_save_IFS
30406
30407 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30408 ;;
30409esac
30410fi
30411LPDelegate=$ac_cv_path_LPDelegate
30412if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030414$as_echo "$LPDelegate" >&6; }
30415else
cristy8b350f62009-11-15 23:12:43 +000030416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030417$as_echo "no" >&6; }
30418fi
30419
30420
30421# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30422set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030424$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030425if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030426 $as_echo_n "(cached) " >&6
30427else
30428 case $LPRDelegate in
30429 [\\/]* | ?:[\\/]*)
30430 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30431 ;;
30432 *)
30433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30434for as_dir in $PATH
30435do
30436 IFS=$as_save_IFS
30437 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030438 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30440 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030442 break 2
30443 fi
30444done
cristy8b350f62009-11-15 23:12:43 +000030445 done
cristy3ed852e2009-09-05 21:47:34 +000030446IFS=$as_save_IFS
30447
30448 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30449 ;;
30450esac
30451fi
30452LPRDelegate=$ac_cv_path_LPRDelegate
30453if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030455$as_echo "$LPRDelegate" >&6; }
30456else
cristy8b350f62009-11-15 23:12:43 +000030457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030458$as_echo "no" >&6; }
30459fi
30460
30461
30462# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30463set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030465$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030466if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030467 $as_echo_n "(cached) " >&6
30468else
30469 case $LZWDecodeDelegate in
30470 [\\/]* | ?:[\\/]*)
30471 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30472 ;;
30473 *)
30474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30475for as_dir in $PATH
30476do
30477 IFS=$as_save_IFS
30478 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030479 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30481 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030483 break 2
30484 fi
30485done
cristy8b350f62009-11-15 23:12:43 +000030486 done
cristy3ed852e2009-09-05 21:47:34 +000030487IFS=$as_save_IFS
30488
30489 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30490 ;;
30491esac
30492fi
30493LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30494if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030496$as_echo "$LZWDecodeDelegate" >&6; }
30497else
cristy8b350f62009-11-15 23:12:43 +000030498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030499$as_echo "no" >&6; }
30500fi
30501
30502
30503# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30504set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030506$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030507if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030508 $as_echo_n "(cached) " >&6
30509else
30510 case $LZWEncodeDelegate in
30511 [\\/]* | ?:[\\/]*)
30512 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30513 ;;
30514 *)
30515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30516for as_dir in $PATH
30517do
30518 IFS=$as_save_IFS
30519 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030520 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30522 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030524 break 2
30525 fi
30526done
cristy8b350f62009-11-15 23:12:43 +000030527 done
cristy3ed852e2009-09-05 21:47:34 +000030528IFS=$as_save_IFS
30529
30530 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30531 ;;
30532esac
30533fi
30534LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30535if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030537$as_echo "$LZWEncodeDelegate" >&6; }
30538else
cristy8b350f62009-11-15 23:12:43 +000030539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030540$as_echo "no" >&6; }
30541fi
30542
30543
30544# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30545set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030547$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030548if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030549 $as_echo_n "(cached) " >&6
30550else
30551 case $LaunchDelegate in
30552 [\\/]* | ?:[\\/]*)
30553 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30554 ;;
30555 *)
30556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30557for as_dir in $PATH
30558do
30559 IFS=$as_save_IFS
30560 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030561 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30563 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030565 break 2
30566 fi
30567done
cristy8b350f62009-11-15 23:12:43 +000030568 done
cristy3ed852e2009-09-05 21:47:34 +000030569IFS=$as_save_IFS
30570
30571 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30572 ;;
30573esac
30574fi
30575LaunchDelegate=$ac_cv_path_LaunchDelegate
30576if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030578$as_echo "$LaunchDelegate" >&6; }
30579else
cristy8b350f62009-11-15 23:12:43 +000030580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030581$as_echo "no" >&6; }
30582fi
30583
30584
30585# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30586set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030588$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030589if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030590 $as_echo_n "(cached) " >&6
30591else
30592 case $MANDelegate in
30593 [\\/]* | ?:[\\/]*)
30594 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30595 ;;
30596 *)
30597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30598for as_dir in $PATH
30599do
30600 IFS=$as_save_IFS
30601 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030602 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30604 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030606 break 2
30607 fi
30608done
cristy8b350f62009-11-15 23:12:43 +000030609 done
cristy3ed852e2009-09-05 21:47:34 +000030610IFS=$as_save_IFS
30611
30612 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30613 ;;
30614esac
30615fi
30616MANDelegate=$ac_cv_path_MANDelegate
30617if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030619$as_echo "$MANDelegate" >&6; }
30620else
cristy8b350f62009-11-15 23:12:43 +000030621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030622$as_echo "no" >&6; }
30623fi
30624
30625
30626# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30627set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030629$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030630if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030631 $as_echo_n "(cached) " >&6
30632else
30633 case $MPEGDecodeDelegate in
30634 [\\/]* | ?:[\\/]*)
30635 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30636 ;;
30637 *)
30638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30639for as_dir in $PATH
30640do
30641 IFS=$as_save_IFS
30642 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030643 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30645 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030647 break 2
30648 fi
30649done
cristy8b350f62009-11-15 23:12:43 +000030650 done
cristy3ed852e2009-09-05 21:47:34 +000030651IFS=$as_save_IFS
30652
30653 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30654 ;;
30655esac
30656fi
30657MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30658if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030660$as_echo "$MPEGDecodeDelegate" >&6; }
30661else
cristy8b350f62009-11-15 23:12:43 +000030662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030663$as_echo "no" >&6; }
30664fi
30665
30666
30667# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30668set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030670$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030671if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030672 $as_echo_n "(cached) " >&6
30673else
30674 case $MPEGEncodeDelegate in
30675 [\\/]* | ?:[\\/]*)
30676 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30677 ;;
30678 *)
30679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30680for as_dir in $PATH
30681do
30682 IFS=$as_save_IFS
30683 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030684 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30686 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030688 break 2
30689 fi
30690done
cristy8b350f62009-11-15 23:12:43 +000030691 done
cristy3ed852e2009-09-05 21:47:34 +000030692IFS=$as_save_IFS
30693
30694 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30695 ;;
30696esac
30697fi
30698MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30699if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030701$as_echo "$MPEGEncodeDelegate" >&6; }
30702else
cristy8b350f62009-11-15 23:12:43 +000030703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030704$as_echo "no" >&6; }
30705fi
30706
30707
cristy935c86e2010-06-05 23:50:07 +000030708# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30709set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30711$as_echo_n "checking for $ac_word... " >&6; }
30712if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30713 $as_echo_n "(cached) " >&6
30714else
30715 case $MrSIDDecodeDelegate in
30716 [\\/]* | ?:[\\/]*)
30717 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30718 ;;
30719 *)
30720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30721for as_dir in $PATH
30722do
30723 IFS=$as_save_IFS
30724 test -z "$as_dir" && as_dir=.
30725 for ac_exec_ext in '' $ac_executable_extensions; do
30726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30727 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30729 break 2
30730 fi
30731done
30732 done
30733IFS=$as_save_IFS
30734
30735 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
30736 ;;
30737esac
30738fi
30739MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
30740if test -n "$MrSIDDecodeDelegate"; then
30741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
30742$as_echo "$MrSIDDecodeDelegate" >&6; }
30743else
30744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30745$as_echo "no" >&6; }
30746fi
30747
30748
cristy3ed852e2009-09-05 21:47:34 +000030749# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30750set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030752$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030753if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030754 $as_echo_n "(cached) " >&6
30755else
30756 case $MVDelegate in
30757 [\\/]* | ?:[\\/]*)
30758 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30759 ;;
30760 *)
30761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30762for as_dir in $PATH
30763do
30764 IFS=$as_save_IFS
30765 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030766 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30768 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030770 break 2
30771 fi
30772done
cristy8b350f62009-11-15 23:12:43 +000030773 done
cristy3ed852e2009-09-05 21:47:34 +000030774IFS=$as_save_IFS
30775
30776 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30777 ;;
30778esac
30779fi
30780MVDelegate=$ac_cv_path_MVDelegate
30781if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030783$as_echo "$MVDelegate" >&6; }
30784else
cristy8b350f62009-11-15 23:12:43 +000030785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030786$as_echo "no" >&6; }
30787fi
30788
30789
30790# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30791set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030793$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030794if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030795 $as_echo_n "(cached) " >&6
30796else
30797 case $PCLDelegate in
30798 [\\/]* | ?:[\\/]*)
30799 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30800 ;;
30801 *)
30802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30803for as_dir in $PATH
30804do
30805 IFS=$as_save_IFS
30806 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030807 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30809 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030811 break 2
30812 fi
30813done
cristy8b350f62009-11-15 23:12:43 +000030814 done
cristy3ed852e2009-09-05 21:47:34 +000030815IFS=$as_save_IFS
30816
30817 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30818 ;;
30819esac
30820fi
30821PCLDelegate=$ac_cv_path_PCLDelegate
30822if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030824$as_echo "$PCLDelegate" >&6; }
30825else
cristy8b350f62009-11-15 23:12:43 +000030826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030827$as_echo "no" >&6; }
30828fi
30829
30830
30831# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30832set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030834$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030835if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030836 $as_echo_n "(cached) " >&6
30837else
30838 case $PGPDecodeDelegate in
30839 [\\/]* | ?:[\\/]*)
30840 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30841 ;;
30842 *)
30843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30844for as_dir in $PATH
30845do
30846 IFS=$as_save_IFS
30847 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030848 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30850 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030852 break 2
30853 fi
30854done
cristy8b350f62009-11-15 23:12:43 +000030855 done
cristy3ed852e2009-09-05 21:47:34 +000030856IFS=$as_save_IFS
30857
30858 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30859 ;;
30860esac
30861fi
30862PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30863if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030865$as_echo "$PGPDecodeDelegate" >&6; }
30866else
cristy8b350f62009-11-15 23:12:43 +000030867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030868$as_echo "no" >&6; }
30869fi
30870
30871
30872# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
30873set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030875$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030876if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030877 $as_echo_n "(cached) " >&6
30878else
30879 case $POVDelegate in
30880 [\\/]* | ?:[\\/]*)
30881 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
30882 ;;
30883 *)
30884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30885for as_dir in $PATH
30886do
30887 IFS=$as_save_IFS
30888 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030889 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30891 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030893 break 2
30894 fi
30895done
cristy8b350f62009-11-15 23:12:43 +000030896 done
cristy3ed852e2009-09-05 21:47:34 +000030897IFS=$as_save_IFS
30898
30899 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
30900 ;;
30901esac
30902fi
30903POVDelegate=$ac_cv_path_POVDelegate
30904if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030906$as_echo "$POVDelegate" >&6; }
30907else
cristy8b350f62009-11-15 23:12:43 +000030908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030909$as_echo "no" >&6; }
30910fi
30911
30912
30913for ac_prog in gsx gsc "$PSDelegateDefault"
30914do
30915 # Extract the first word of "$ac_prog", so it can be a program name with args.
30916set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030918$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030919if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030920 $as_echo_n "(cached) " >&6
30921else
30922 case $PSDelegate in
30923 [\\/]* | ?:[\\/]*)
30924 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
30925 ;;
30926 *)
30927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30928for as_dir in $PATH
30929do
30930 IFS=$as_save_IFS
30931 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030932 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30934 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030936 break 2
30937 fi
30938done
cristy8b350f62009-11-15 23:12:43 +000030939 done
cristy3ed852e2009-09-05 21:47:34 +000030940IFS=$as_save_IFS
30941
30942 ;;
30943esac
30944fi
30945PSDelegate=$ac_cv_path_PSDelegate
30946if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030948$as_echo "$PSDelegate" >&6; }
30949else
cristy8b350f62009-11-15 23:12:43 +000030950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030951$as_echo "no" >&6; }
30952fi
30953
30954
30955 test -n "$PSDelegate" && break
30956done
30957test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
30958
30959# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
30960set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030962$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030963if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030964 $as_echo_n "(cached) " >&6
30965else
30966 case $RLEEncodeDelegate in
30967 [\\/]* | ?:[\\/]*)
30968 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
30969 ;;
30970 *)
30971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30972for as_dir in $PATH
30973do
30974 IFS=$as_save_IFS
30975 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030976 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30978 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030980 break 2
30981 fi
30982done
cristy8b350f62009-11-15 23:12:43 +000030983 done
cristy3ed852e2009-09-05 21:47:34 +000030984IFS=$as_save_IFS
30985
30986 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
30987 ;;
30988esac
30989fi
30990RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
30991if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030993$as_echo "$RLEEncodeDelegate" >&6; }
30994else
cristy8b350f62009-11-15 23:12:43 +000030995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030996$as_echo "no" >&6; }
30997fi
30998
30999
31000# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31001set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031003$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031004if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031005 $as_echo_n "(cached) " >&6
31006else
31007 case $RMDelegate in
31008 [\\/]* | ?:[\\/]*)
31009 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31010 ;;
31011 *)
31012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31013for as_dir in $PATH
31014do
31015 IFS=$as_save_IFS
31016 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031017 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31019 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031021 break 2
31022 fi
31023done
cristy8b350f62009-11-15 23:12:43 +000031024 done
cristy3ed852e2009-09-05 21:47:34 +000031025IFS=$as_save_IFS
31026
31027 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31028 ;;
31029esac
31030fi
31031RMDelegate=$ac_cv_path_RMDelegate
31032if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031034$as_echo "$RMDelegate" >&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
cristy4689cf02010-02-17 21:15:45 +000031041# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31042set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31044$as_echo_n "checking for $ac_word... " >&6; }
31045if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31046 $as_echo_n "(cached) " >&6
31047else
31048 case $RSVGDecodeDelegate in
31049 [\\/]* | ?:[\\/]*)
31050 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31051 ;;
31052 *)
31053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31054for as_dir in $PATH
31055do
31056 IFS=$as_save_IFS
31057 test -z "$as_dir" && as_dir=.
31058 for ac_exec_ext in '' $ac_executable_extensions; do
31059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31060 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31062 break 2
31063 fi
31064done
31065 done
31066IFS=$as_save_IFS
31067
31068 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31069 ;;
31070esac
31071fi
31072RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31073if test -n "$RSVGDecodeDelegate"; then
31074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31075$as_echo "$RSVGDecodeDelegate" >&6; }
31076else
31077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31078$as_echo "no" >&6; }
31079fi
31080
31081
cristy3ed852e2009-09-05 21:47:34 +000031082# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31083set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031085$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031086if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031087 $as_echo_n "(cached) " >&6
31088else
31089 case $SCANDecodeDelegate in
31090 [\\/]* | ?:[\\/]*)
31091 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31092 ;;
31093 *)
31094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31095for as_dir in $PATH
31096do
31097 IFS=$as_save_IFS
31098 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031099 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31101 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031103 break 2
31104 fi
31105done
cristy8b350f62009-11-15 23:12:43 +000031106 done
cristy3ed852e2009-09-05 21:47:34 +000031107IFS=$as_save_IFS
31108
31109 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31110 ;;
31111esac
31112fi
31113SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31114if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031116$as_echo "$SCANDecodeDelegate" >&6; }
31117else
cristy8b350f62009-11-15 23:12:43 +000031118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031119$as_echo "no" >&6; }
31120fi
31121
31122
31123# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31124set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031126$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031127if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031128 $as_echo_n "(cached) " >&6
31129else
31130 case $TXTDelegate in
31131 [\\/]* | ?:[\\/]*)
31132 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31133 ;;
31134 *)
31135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31136for as_dir in $PATH
31137do
31138 IFS=$as_save_IFS
31139 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031140 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31142 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031144 break 2
31145 fi
31146done
cristy8b350f62009-11-15 23:12:43 +000031147 done
cristy3ed852e2009-09-05 21:47:34 +000031148IFS=$as_save_IFS
31149
31150 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31151 ;;
31152esac
31153fi
31154TXTDelegate=$ac_cv_path_TXTDelegate
31155if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031157$as_echo "$TXTDelegate" >&6; }
31158else
cristy8b350f62009-11-15 23:12:43 +000031159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031160$as_echo "no" >&6; }
31161fi
31162
31163
31164# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31165set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031167$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031168if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031169 $as_echo_n "(cached) " >&6
31170else
31171 case $WMFDecodeDelegate in
31172 [\\/]* | ?:[\\/]*)
31173 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31174 ;;
31175 *)
31176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31177for as_dir in $PATH
31178do
31179 IFS=$as_save_IFS
31180 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031181 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31183 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031185 break 2
31186 fi
31187done
cristy8b350f62009-11-15 23:12:43 +000031188 done
cristy3ed852e2009-09-05 21:47:34 +000031189IFS=$as_save_IFS
31190
31191 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31192 ;;
31193esac
31194fi
31195WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31196if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031198$as_echo "$WMFDecodeDelegate" >&6; }
31199else
cristy8b350f62009-11-15 23:12:43 +000031200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031201$as_echo "no" >&6; }
31202fi
31203
31204
31205# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31206set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031208$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031209if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031210 $as_echo_n "(cached) " >&6
31211else
31212 case $WWWDecodeDelegate in
31213 [\\/]* | ?:[\\/]*)
31214 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31215 ;;
31216 *)
31217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31218for as_dir in $PATH
31219do
31220 IFS=$as_save_IFS
31221 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031222 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31224 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031226 break 2
31227 fi
31228done
cristy8b350f62009-11-15 23:12:43 +000031229 done
cristy3ed852e2009-09-05 21:47:34 +000031230IFS=$as_save_IFS
31231
31232 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31233 ;;
31234esac
31235fi
31236WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31237if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031239$as_echo "$WWWDecodeDelegate" >&6; }
31240else
cristy8b350f62009-11-15 23:12:43 +000031241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031242$as_echo "no" >&6; }
31243fi
31244
31245
31246# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31247set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031249$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031250if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031251 $as_echo_n "(cached) " >&6
31252else
31253 case $XPSDelegate in
31254 [\\/]* | ?:[\\/]*)
31255 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31256 ;;
31257 *)
31258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31259for as_dir in $PATH
31260do
31261 IFS=$as_save_IFS
31262 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031263 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31265 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031267 break 2
31268 fi
31269done
cristy8b350f62009-11-15 23:12:43 +000031270 done
cristy3ed852e2009-09-05 21:47:34 +000031271IFS=$as_save_IFS
31272
31273 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31274 ;;
31275esac
31276fi
31277XPSDelegate=$ac_cv_path_XPSDelegate
31278if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031280$as_echo "$XPSDelegate" >&6; }
31281else
cristy8b350f62009-11-15 23:12:43 +000031282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031283$as_echo "no" >&6; }
31284fi
31285
31286
31287# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31288set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031290$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031291if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031292 $as_echo_n "(cached) " >&6
31293else
31294 case $ZipDelegate in
31295 [\\/]* | ?:[\\/]*)
31296 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31297 ;;
31298 *)
31299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31300for as_dir in $PATH
31301do
31302 IFS=$as_save_IFS
31303 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031304 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31306 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031308 break 2
31309 fi
31310done
cristy8b350f62009-11-15 23:12:43 +000031311 done
cristy3ed852e2009-09-05 21:47:34 +000031312IFS=$as_save_IFS
31313
31314 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31315 ;;
31316esac
31317fi
31318ZipDelegate=$ac_cv_path_ZipDelegate
31319if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031321$as_echo "$ZipDelegate" >&6; }
31322else
cristy8b350f62009-11-15 23:12:43 +000031323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031324$as_echo "no" >&6; }
31325fi
31326
31327
31328
31329# Prefer lpr to lp; lp needs options tacked on.
31330if test "$LPRDelegate" != no; then
31331 PrintDelegate="$LPRDelegate"
31332else
31333 PrintDelegate="$LPDelegate -c -s"
31334fi
31335
31336
31337# Installed ImageMagick utiltity paths
31338ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31339DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31340MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31341
31342# Set delegate booleans
31343have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31344have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31345have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31346have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31347have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31348have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000031349have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000031350have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31351have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31352have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31353have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31354have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31355
31356#
31357# Test for font directories
31358#
31359type_include_files=''
31360
cristy430a7312010-01-21 20:44:04 +000031361# Dejavu fonts.
31362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31363$as_echo_n "checking for Dejavu fonts directory... " >&6; }
31364dejavu_font_dir=''
31365if test "${with_dejavu_font_dir}" != 'default'; then
31366 dejavu_font_dir="${with_dejavu_font_dir}/"
31367else
31368 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31369 if test -f "${font_dir}DejaVuSerif.ttf"; then
31370 dejavu_font_dir="${font_dir}"
31371 break 1
31372 fi
31373 done
31374fi
31375if test "${dejavu_font_dir}x" != 'x'; then
31376 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31378$as_echo "$dejavu_font_dir" >&6; }
31379else
31380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31381$as_echo "not found!" >&6; };
31382fi
31383
31384
cristy3ed852e2009-09-05 21:47:34 +000031385# Windows
31386windows_font_dir=''
31387if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31388 windows_font_dir="${with_windows_font_dir}/"
31389fi
cristy430a7312010-01-21 20:44:04 +000031390if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031391 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31392 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31393 fi
31394 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31395 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31396 fi
31397 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31398 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31399 fi
31400fi
cristy430a7312010-01-21 20:44:04 +000031401if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031402 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31403fi
31404
31405
31406# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000031407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000031408$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31409ghostscript_font_dir=''
31410if test "${with_gs_font_dir}" != 'default'; then
31411 ghostscript_font_dir="${with_gs_font_dir}/"
31412else
31413 if test "${native_win32_build}" = 'yes'; then
31414 # Native Windows Build
31415 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31416 if test -f "${font_dir}a010013l.pfb"; then
31417 ghostscript_font_dir="$font_dir"
31418 break 1
31419 fi
31420 done
31421 if test "${PSDelegate}" != 'gswin32c'; then
31422 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31423 fi
31424 else
31425 # Linux / Mac OS X / Unix Build
31426 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
31427 if test -f "${font_dir}a010013l.pfb"; then
31428 ghostscript_font_dir="${font_dir}"
31429 break 1
31430 fi
31431 done
31432 if test "${ghostscript_font_dir}x" = 'x'; then
31433 if test "$PSDelegate" != 'gs'; then
31434 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31435 fi
31436 fi
31437 fi
31438fi
31439if test "${ghostscript_font_dir}x" != 'x'; then
31440 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000031441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000031442$as_echo "$ghostscript_font_dir" >&6; }
31443else
cristy8b350f62009-11-15 23:12:43 +000031444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000031445$as_echo "not found!" >&6; };
31446fi
31447
31448case "${build_os}" in
31449 mingw* )
31450 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31451 ;;
31452esac
31453
31454
31455
31456#
31457# Handle case where user doesn't want frozen paths
31458#
31459if test "$with_frozenpaths" != 'yes'; then
31460 # Re-set delegate definitions to default (no paths)
31461 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31462 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31463 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31464 BZIPDelegate="$BZIPDelegateDefault"
31465 BrowseDelegate="$BrowseDelegateDefault"
31466 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31467 CatDelegate="$CatDelegateDefault"
31468 ConvertDelegate="$ConvertDelegateDefault"
31469 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31470 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31471 EchoDelegate="$EchoDelegateDefault"
31472 EditorDelegate="$EditorDelegateDefault"
31473 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31474 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31475 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31476 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31477 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31478 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31479 LPDelegate="$LPDelegateDefault"
31480 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31481 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31482 LaunchDelegate="$LaunchDelegateDefault"
31483 MANDelegate="$MANDelegateDefault"
31484 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31485 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031486 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000031487 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31488 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031489 PCLDelegate="$PCLDelegateDefault"
31490 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31491 POVDelegate="$POVDelegateDefault"
31492 PSDelegate="$PSDelegateDefault"
31493 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31494 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31495 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000031496 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031497 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31498 ShowImageDelegate="$ShowImageDelegateDefault"
31499 TXTDelegate="$TXTDelegateDefault"
31500 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31501 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31502 XPSDelegate="$XPSDelegateDefault"
31503 ZipDelegate="$ZipDelegateDefault"
31504fi
31505
31506# Delegate substitutions
31507
31508
31509
31510
31511
31512
31513
31514
31515
31516
31517
31518
31519
31520
31521
31522
31523
31524
31525
31526
31527
31528
31529
31530
31531
31532
31533
31534
31535
31536
31537
31538
31539
31540
31541
31542
31543
31544
31545
31546
31547
31548
cristy935c86e2010-06-05 23:50:07 +000031549
cristy3ed852e2009-09-05 21:47:34 +000031550#
31551# RPM support.
31552#
31553RPM=''
31554for ac_prog in gnutar gtar tar
31555do
31556 # Extract the first word of "$ac_prog", so it can be a program name with args.
31557set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031559$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031560if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031561 $as_echo_n "(cached) " >&6
31562else
31563 if test -n "$TAR"; then
31564 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31565else
31566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31567for as_dir in $PATH
31568do
31569 IFS=$as_save_IFS
31570 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031571 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31573 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031575 break 2
31576 fi
31577done
cristy8b350f62009-11-15 23:12:43 +000031578 done
cristy3ed852e2009-09-05 21:47:34 +000031579IFS=$as_save_IFS
31580
31581fi
31582fi
31583TAR=$ac_cv_prog_TAR
31584if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000031585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000031586$as_echo "$TAR" >&6; }
31587else
cristy8b350f62009-11-15 23:12:43 +000031588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031589$as_echo "no" >&6; }
31590fi
31591
31592
31593 test -n "$TAR" && break
31594done
31595
31596for ac_prog in perl
31597do
31598 # Extract the first word of "$ac_prog", so it can be a program name with args.
31599set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031601$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031602if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031603 $as_echo_n "(cached) " >&6
31604else
31605 if test -n "$PERL"; then
31606 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31607else
31608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31609for as_dir in $PATH
31610do
31611 IFS=$as_save_IFS
31612 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031613 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31615 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031617 break 2
31618 fi
31619done
cristy8b350f62009-11-15 23:12:43 +000031620 done
cristy3ed852e2009-09-05 21:47:34 +000031621IFS=$as_save_IFS
31622
31623fi
31624fi
31625PERL=$ac_cv_prog_PERL
31626if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031628$as_echo "$PERL" >&6; }
31629else
cristy8b350f62009-11-15 23:12:43 +000031630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031631$as_echo "no" >&6; }
31632fi
31633
31634
31635 test -n "$PERL" && break
31636done
31637
31638for ac_prog in rpmbuild rpm
31639do
31640 # Extract the first word of "$ac_prog", so it can be a program name with args.
31641set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031643$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031644if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031645 $as_echo_n "(cached) " >&6
31646else
31647 if test -n "$RPM"; then
31648 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31649else
31650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31651for as_dir in $PATH
31652do
31653 IFS=$as_save_IFS
31654 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031655 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31657 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031659 break 2
31660 fi
31661done
cristy8b350f62009-11-15 23:12:43 +000031662 done
cristy3ed852e2009-09-05 21:47:34 +000031663IFS=$as_save_IFS
31664
31665fi
31666fi
31667RPM=$ac_cv_prog_RPM
31668if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000031669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000031670$as_echo "$RPM" >&6; }
31671else
cristy8b350f62009-11-15 23:12:43 +000031672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031673$as_echo "no" >&6; }
31674fi
31675
31676
31677 test -n "$RPM" && break
31678done
31679
31680
31681ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31682
31683
31684AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31685
31686
31687AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31688
31689
31690AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31691
31692
31693 if test "x$RPM" != "x" ; then
31694 RPM_DELEGATE_TRUE=
31695 RPM_DELEGATE_FALSE='#'
31696else
31697 RPM_DELEGATE_TRUE='#'
31698 RPM_DELEGATE_FALSE=
31699fi
31700
31701
31702#
31703# 7ZIP support (http://p7zip.sourceforge.net/)
31704#
31705P7ZIP=''
31706for ac_prog in 7za
31707do
31708 # Extract the first word of "$ac_prog", so it can be a program name with args.
31709set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031711$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031712if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031713 $as_echo_n "(cached) " >&6
31714else
31715 if test -n "$P7ZIP"; then
31716 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31717else
31718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31719for as_dir in $PATH
31720do
31721 IFS=$as_save_IFS
31722 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031723 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31725 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031727 break 2
31728 fi
31729done
cristy8b350f62009-11-15 23:12:43 +000031730 done
cristy3ed852e2009-09-05 21:47:34 +000031731IFS=$as_save_IFS
31732
31733fi
31734fi
31735P7ZIP=$ac_cv_prog_P7ZIP
31736if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031738$as_echo "$P7ZIP" >&6; }
31739else
cristy8b350f62009-11-15 23:12:43 +000031740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031741$as_echo "no" >&6; }
31742fi
31743
31744
31745 test -n "$P7ZIP" && break
31746done
31747
31748
31749 if test "x$P7ZIP" != "x" ; then
31750 P7ZIP_DELEGATE_TRUE=
31751 P7ZIP_DELEGATE_FALSE='#'
31752else
31753 P7ZIP_DELEGATE_TRUE='#'
31754 P7ZIP_DELEGATE_FALSE=
31755fi
31756
31757
31758#
31759# ZIP support (http://www.info-zip.org/Zip.html)
31760#
31761ZIP=''
31762for ac_prog in zip
31763do
31764 # Extract the first word of "$ac_prog", so it can be a program name with args.
31765set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031767$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031768if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031769 $as_echo_n "(cached) " >&6
31770else
31771 if test -n "$ZIP"; then
31772 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31773else
31774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31775for as_dir in $PATH
31776do
31777 IFS=$as_save_IFS
31778 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031779 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31781 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031783 break 2
31784 fi
31785done
cristy8b350f62009-11-15 23:12:43 +000031786 done
cristy3ed852e2009-09-05 21:47:34 +000031787IFS=$as_save_IFS
31788
31789fi
31790fi
31791ZIP=$ac_cv_prog_ZIP
31792if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031794$as_echo "$ZIP" >&6; }
31795else
cristy8b350f62009-11-15 23:12:43 +000031796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031797$as_echo "no" >&6; }
31798fi
31799
31800
31801 test -n "$ZIP" && break
31802done
31803
31804
31805 if test "x$ZIP" != "x" ; then
31806 ZIP_DELEGATE_TRUE=
31807 ZIP_DELEGATE_FALSE='#'
31808else
31809 ZIP_DELEGATE_TRUE='#'
31810 ZIP_DELEGATE_FALSE=
31811fi
31812
31813
31814#
31815# GhostPCL related configuration.
31816#
31817PCLColorDevice=ppmraw
31818PCLCMYKDevice=bmpsep8
31819PCLMonoDevice=pbmraw
31820if test -z "$PCLVersion"; then
31821 PCLVersion='unknown'
31822fi
31823if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031825$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031827$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031829$as_echo "" >&6; }
31830 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000031831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031832$as_echo_n "checking for pcl color device... " >&6; }
31833 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31834 :
31835 else
31836 PCLColorDevice=ppmraw
31837 fi
cristy8b350f62009-11-15 23:12:43 +000031838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031839$as_echo "$PCLColorDevice" >&6; }
31840
31841 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031843$as_echo_n "checking for pcl CMYK device... " >&6; }
31844 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31845 :
31846 else
31847 PCLCMYKDevice=$PCLColorDevice
31848 fi
cristy8b350f62009-11-15 23:12:43 +000031849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031850$as_echo "$PCLCMYKDevice" >&6; }
31851
31852 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031854$as_echo_n "checking for pcl mono device... " >&6; }
31855 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31856 :
31857 else
31858 PCLMonoDevice=$PCLColorDevice
31859 fi
cristy8b350f62009-11-15 23:12:43 +000031860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031861$as_echo "$PCLMonoDevice" >&6; }
31862fi
31863
31864
31865
31866
31867
31868
31869#
31870# GhostXPS related configuration.
31871#
31872XPSColorDevice=ppmraw
31873XPSCMYKDevice=bmpsep8
31874XPSMonoDevice=pbmraw
31875if test -z "$XPSVersion"; then
31876 XPSVersion='unknown'
31877fi
31878if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031880$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031882$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031884$as_echo "" >&6; }
31885 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031887$as_echo_n "checking for xps color device... " >&6; }
31888 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31889 :
31890 else
31891 XPSColorDevice=ppmraw
31892 fi
cristy8b350f62009-11-15 23:12:43 +000031893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031894$as_echo "$XPSColorDevice" >&6; }
31895
31896 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031898$as_echo_n "checking for xps CMYK device... " >&6; }
31899 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31900 :
31901 else
31902 XPSCMYKDevice=$XPSColorDevice
31903 fi
cristy8b350f62009-11-15 23:12:43 +000031904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031905$as_echo "$XPSCMYKDevice" >&6; }
31906
31907 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031909$as_echo_n "checking for xps mono device... " >&6; }
31910 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31911 :
31912 else
31913 XPSMonoDevice=$XPSColorDevice
31914 fi
cristy8b350f62009-11-15 23:12:43 +000031915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031916$as_echo "$XPSMonoDevice" >&6; }
31917fi
31918
31919
31920
31921
31922
31923
31924#
31925# Ghostscript related configuration.
31926#
31927if test "$have_png" = 'yes'; then
31928 GSAlphaDevice=pngalpha
31929else
31930 GSAlphaDevice=pnmraw
31931fi
31932GSColorDevice=pnmraw
31933GSCMYKDevice=pam
31934GSMonoDevice=pbmraw
31935GSPDFDevice=pdfwrite
31936GSPSDevice=pswrite
31937GSEPSDevice=epswrite
31938GSVersion='unknown'
31939if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031941$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000031943$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031945$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000031947$as_echo_n "checking for Ghostscript version... " >&6; }
31948 if GSVersion=`$PSDelegate --version`; then
31949 :
31950 else
31951 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
31952 fi
cristy8b350f62009-11-15 23:12:43 +000031953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000031954$as_echo "$GSVersion" >&6; }
31955
31956 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000031957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031958$as_echo_n "checking for gs alpha device... " >&6; }
31959 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31960 :
31961 else
31962 GSAlphaDevice=pnmraw
31963 fi
cristy8b350f62009-11-15 23:12:43 +000031964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031965$as_echo "$GSAlphaDevice" >&6; }
31966
31967 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031969$as_echo_n "checking for gs color device... " >&6; }
31970 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31971 :
31972 else
31973 GSColorDevice=pnmraw
31974 fi
cristy8b350f62009-11-15 23:12:43 +000031975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031976$as_echo "$GSColorDevice" >&6; }
31977
31978 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031980$as_echo_n "checking for gs CMYK device... " >&6; }
31981 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31982 :
31983 else
31984 GSCMYKDevice=bmpsep8
31985 fi
cristy8b350f62009-11-15 23:12:43 +000031986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031987$as_echo "$GSCMYKDevice" >&6; }
31988
31989 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031991$as_echo_n "checking for gs mono device... " >&6; }
31992 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31993 :
31994 else
31995 GSMonoDevice=$GSColorDevice
31996 fi
cristy8b350f62009-11-15 23:12:43 +000031997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031998$as_echo "$GSMonoDevice" >&6; }
31999
32000 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000032001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032002$as_echo_n "checking for gs PDF writing device... " >&6; }
32003 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32004 :
32005 else
32006 GSPDFDevice=nodevice
32007 fi
cristy8b350f62009-11-15 23:12:43 +000032008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032009$as_echo "$GSPDFDevice" >&6; }
32010
32011 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000032012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032013$as_echo_n "checking for gs PS writing device... " >&6; }
32014 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32015 :
32016 else
32017 GSPSDevice=nodevice
32018 fi
cristy8b350f62009-11-15 23:12:43 +000032019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032020$as_echo "$GSPSDevice" >&6; }
32021
32022 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000032023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032024$as_echo_n "checking for gs EPS writing device... " >&6; }
32025 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32026 :
32027 else
32028 GSEPSDevice=nodevice
32029 fi
cristy8b350f62009-11-15 23:12:43 +000032030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032031$as_echo "$GSEPSDevice" >&6; }
32032fi
32033
32034
32035
32036
32037
32038
32039
32040
32041
32042
32043#
32044# PerlMagick-related configuration
32045#
32046
32047# Look for PERL if PerlMagick requested
32048# If name/path of desired PERL interpreter is specified, look for that one first
32049have_perl='no'
32050if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000032051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032052$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032054$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032056$as_echo "" >&6; }
32057 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032059$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032060if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032061 $as_echo_n "(cached) " >&6
32062else
32063 ac_cv_path_PERL="$with_perl"
32064fi
cristy8b350f62009-11-15 23:12:43 +000032065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032066$as_echo "$ac_cv_path_PERL" >&6; };
32067 PERL=$ac_cv_path_PERL
32068 have_perl="$ac_cv_path_PERL"
32069 else
32070 for ac_prog in perl perl5
32071do
32072 # Extract the first word of "$ac_prog", so it can be a program name with args.
32073set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032075$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032076if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032077 $as_echo_n "(cached) " >&6
32078else
32079 case $PERL in
32080 [\\/]* | ?:[\\/]*)
32081 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32082 ;;
32083 *)
32084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32085for as_dir in $PATH
32086do
32087 IFS=$as_save_IFS
32088 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032089 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32091 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032093 break 2
32094 fi
32095done
cristy8b350f62009-11-15 23:12:43 +000032096 done
cristy3ed852e2009-09-05 21:47:34 +000032097IFS=$as_save_IFS
32098
32099 ;;
32100esac
32101fi
32102PERL=$ac_cv_path_PERL
32103if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032105$as_echo "$PERL" >&6; }
32106else
cristy8b350f62009-11-15 23:12:43 +000032107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032108$as_echo "no" >&6; }
32109fi
32110
32111
32112 test -n "$PERL" && break
32113done
32114 if test "$ac_cv_path_PERL"; then
32115 have_perl="$ac_cv_path_PERL"
32116 fi
32117 fi
32118fi
32119
cristy949301e2010-01-06 01:38:40 +000032120if test "$with_perl" != 'yes' ; then
32121 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32122fi
32123
32124PERL_SUPPORTS_DESTDIR='no'
32125
cristy3ed852e2009-09-05 21:47:34 +000032126with_perl_static='no'
32127with_perl_dynamic='no'
32128if test "$have_perl" != 'no'; then
32129 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32130 with_perl_static='yes'
32131 fi
32132 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32133 with_perl_dynamic='yes'
32134 fi
32135 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy964cb7f2010-04-25 23:18:00 +000032136
32137
32138
32139
32140 if test -n "$PERL"; then :
32141
32142 ax_perl_version="5.8.1"
32143
32144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32145$as_echo_n "checking for perl version... " >&6; }
32146
32147 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32148
32149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32150$as_echo "$perl_version" >&6; }
32151
32152 PERL_VERSION=$perl_version
32153
32154
32155
32156
32157
32158 # Used to indicate true or false condition
32159 ax_compare_version=false
32160
32161 # Convert the two version strings to be compared into a format that
32162 # allows a simple string comparison. The end result is that a version
32163 # string of the form 1.12.5-r617 will be converted to the form
32164 # 0001001200050617. In other words, each number is zero padded to four
32165 # digits, and non digits are removed.
32166
32167 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32168 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32169 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32170 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32171 -e 's/[^0-9]//g'`
32172
32173
32174 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32175 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32176 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32177 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32178 -e 's/[^0-9]//g'`
32179
32180
32181 ax_compare_version=`echo "x$ax_compare_version_A
32182x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32183
32184
32185
32186 if test "$ax_compare_version" = "true" ; then
32187
32188 :
32189 PERL_SUPPORTS_DESTDIR='yes'
32190
32191 else
32192 :
32193 PERL_SUPPORTS_DESTDIR='no'
32194
cristy3ed852e2009-09-05 21:47:34 +000032195 fi
cristy3ed852e2009-09-05 21:47:34 +000032196
cristy964cb7f2010-04-25 23:18:00 +000032197
cristy3ed852e2009-09-05 21:47:34 +000032198else
cristy3ed852e2009-09-05 21:47:34 +000032199
cristy964cb7f2010-04-25 23:18:00 +000032200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32201$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32202 PERL_SUPPORTS_DESTDIR='no'
cristy3ed852e2009-09-05 21:47:34 +000032203
32204fi
32205
cristy3ed852e2009-09-05 21:47:34 +000032206fi
32207 if test "$have_perl" != 'no'; then
32208 WITH_PERL_TRUE=
32209 WITH_PERL_FALSE='#'
32210else
32211 WITH_PERL_TRUE='#'
32212 WITH_PERL_FALSE=
32213fi
32214
32215 if test $with_perl_static = 'yes'; then
32216 WITH_PERL_STATIC_TRUE=
32217 WITH_PERL_STATIC_FALSE='#'
32218else
32219 WITH_PERL_STATIC_TRUE='#'
32220 WITH_PERL_STATIC_FALSE=
32221fi
32222
32223 if test $with_perl_dynamic = 'yes'; then
32224 WITH_PERL_DYNAMIC_TRUE=
32225 WITH_PERL_DYNAMIC_FALSE='#'
32226else
32227 WITH_PERL_DYNAMIC_TRUE='#'
32228 WITH_PERL_DYNAMIC_FALSE=
32229fi
32230
32231
32232
32233# Determine path to pick up MagickCore library from for use with building PerlMagick
32234MAGICKCORE_PATH="${LIB_DIR}"
32235if test $with_perl_static = 'yes'; then
32236 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32237 libtool_objdir=$objdir
32238
32239 # Linker search path to library, followed by -lMagickCore
32240 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32241fi
32242
32243
32244# Create a simple string containing format names for all delegate libraries
32245DELEGATES=''
32246if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32247if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32248if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32249if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32250if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32251if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32252if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32253if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32254if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32255if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32256if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32257if test "$have_jpeg" = 'yes'; then
32258 DELEGATES="$DELEGATES jpeg";
32259 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32260fi
32261if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000032262if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000032263if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32264if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32265if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32266if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32267if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32268if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32269if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32270if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32271if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32272if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32273if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32274
32275
32276
32277#
32278# Handle special compiler flags
32279#
32280
32281# Add '-p' if prof source profiling support enabled
32282if test "$enable_prof" = 'yes'; then
32283 CFLAGS="-p $CFLAGS"
32284 CXXFLAGS="-p $CXXFLAGS"
32285 LDFLAGS="-p $LDFLAGS"
32286fi
32287
32288# Add '-pg' if gprof source profiling support enabled
32289if test "$enable_gprof" = 'yes'; then
32290 CFLAGS="-pg $CFLAGS"
32291 CXXFLAGS="-pg $CXXFLAGS"
32292 LDFLAGS="-pg $LDFLAGS"
32293fi
32294
32295# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32296# This is a gcc-specific feature
32297if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032299$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032300if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032301 $as_echo_n "(cached) " >&6
32302else
32303 ac_check_lib_save_LIBS=$LIBS
32304LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032306/* end confdefs.h. */
32307
32308/* Override any GCC internal prototype to avoid an error.
32309 Use char because int might match the return type of a GCC
32310 builtin and then its argument prototype would still apply. */
32311#ifdef __cplusplus
32312extern "C"
32313#endif
32314char _gcov_init ();
32315int
32316main ()
32317{
32318return _gcov_init ();
32319 ;
32320 return 0;
32321}
32322_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032323if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032324 ac_cv_lib_gcov__gcov_init=yes
32325else
cristy8b350f62009-11-15 23:12:43 +000032326 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032327fi
cristy8b350f62009-11-15 23:12:43 +000032328rm -f core conftest.err conftest.$ac_objext \
32329 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032330LIBS=$ac_check_lib_save_LIBS
32331fi
cristy8b350f62009-11-15 23:12:43 +000032332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032333$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032334if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032335 cat >>confdefs.h <<_ACEOF
32336#define HAVE_LIBGCOV 1
32337_ACEOF
32338
32339 LIBS="-lgcov $LIBS"
32340
32341fi
32342
cristy8b350f62009-11-15 23:12:43 +000032343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032344$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032345if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032346 $as_echo_n "(cached) " >&6
32347else
32348 ac_check_lib_save_LIBS=$LIBS
32349LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032351/* end confdefs.h. */
32352
32353/* Override any GCC internal prototype to avoid an error.
32354 Use char because int might match the return type of a GCC
32355 builtin and then its argument prototype would still apply. */
32356#ifdef __cplusplus
32357extern "C"
32358#endif
32359char __gcov_init ();
32360int
32361main ()
32362{
32363return __gcov_init ();
32364 ;
32365 return 0;
32366}
32367_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032368if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032369 ac_cv_lib_gcov___gcov_init=yes
32370else
cristy8b350f62009-11-15 23:12:43 +000032371 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032372fi
cristy8b350f62009-11-15 23:12:43 +000032373rm -f core conftest.err conftest.$ac_objext \
32374 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032375LIBS=$ac_check_lib_save_LIBS
32376fi
cristy8b350f62009-11-15 23:12:43 +000032377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032378$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032379if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032380 cat >>confdefs.h <<_ACEOF
32381#define HAVE_LIBGCOV 1
32382_ACEOF
32383
32384 LIBS="-lgcov $LIBS"
32385
32386fi
32387
32388 case "$target_os" in
32389 darwin*)
32390 OSX_GCOV_LDFLAG="-Wl,-single_module"
32391 ;;
32392 *)
32393 OSX_GCOV_LDFLAG=""
32394 ;;
32395 esac
32396
32397 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32398 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32399 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32400fi
32401
32402#
32403# Build library dependency list for libMagickCore
32404#
32405
32406MAGICK_LIBLTDL='' # Libltdl for build
32407MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32408MAGICK_LTDLDEPS='' # extra libltdl dependencies
32409if test "$with_ltdl" != 'no'
32410then
32411 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32412 MAGICK_API_LIBLTDL='-lltdl'
32413 fi
32414 MAGICK_LIBLTDL=${LIBLTDL}
32415 MAGICK_LTDLDEPS=${LTDLDEPS}
32416fi
32417
32418
32419
32420if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000032421 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 +000032422else
cristy2e8b51d2009-10-17 18:26:15 +000032423 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 +000032424fi
32425
32426
32427#
32428# Remove extraneous spaces from output variables (asthetic)
32429#
32430X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32431X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32432X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32433X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32434
32435CC=`echo $CC | sed -e 's/ */ /g'`
32436CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32437CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32438CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32439DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32440DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32441LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32442TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32443MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32444#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32445
32446# Pass only user-provided LIBS as "global" libraries
32447LIBS=$USER_LIBS
32448
32449#AC_SUBST(CPPFLAGS)
32450
32451#AC_SUBST(LDFLAGS)
32452#AC_SUBST(X_PRE_LIBS)
32453#AC_SUBST(X_LIBS)
32454#AC_SUBST(X_EXTRA_LIBS)
32455
32456MAGICK_CFLAGS=$CFLAGS
32457MAGICK_CXXFLAGS="$CXXFLAGS"
32458MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32459MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32460MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32461MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32462
32463
32464
32465
32466
32467
32468
32469
32470# Set configured scripts to executable.
32471ac_config_commands="$ac_config_commands default"
32472
32473ac_config_commands="$ac_config_commands MagickCore-config.in"
32474
32475ac_config_commands="$ac_config_commands Magick-config.in"
32476
32477ac_config_commands="$ac_config_commands MagickWand-config.in"
32478
32479ac_config_commands="$ac_config_commands Wand-config.in"
32480
32481ac_config_commands="$ac_config_commands Magick++-config.in"
32482
32483ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32484
32485
cristy8b350f62009-11-15 23:12:43 +000032486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032487$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000032489$as_echo "Update ImageMagick configuration" >&6; }
32490cat >confcache <<\_ACEOF
32491# This file is a shell script that caches the results of configure
32492# tests run on this system so they can be shared between configure
32493# scripts and configure runs, see configure's option --config-cache.
32494# It is not useful on other systems. If it contains results you don't
32495# want to keep, you may remove or edit it.
32496#
32497# config.status only pays attention to the cache file if you give it
32498# the --recheck option to rerun configure.
32499#
32500# `ac_cv_env_foo' variables (set or unset) will be overridden when
32501# loading this file, other *unset* `ac_cv_foo' will be assigned the
32502# following values.
32503
32504_ACEOF
32505
32506# The following way of writing the cache mishandles newlines in values,
32507# but we know of no workaround that is simple, portable, and efficient.
32508# So, we kill variables containing newlines.
32509# Ultrix sh set writes to stderr and can't be redirected directly,
32510# and sets the high bit in the cache file unless we assign to the vars.
32511(
32512 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32513 eval ac_val=\$$ac_var
32514 case $ac_val in #(
32515 *${as_nl}*)
32516 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000032517 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000032518$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32519 esac
32520 case $ac_var in #(
32521 _ | IFS | as_nl) ;; #(
32522 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000032523 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000032524 esac ;;
32525 esac
32526 done
32527
32528 (set) 2>&1 |
32529 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32530 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000032531 # `set' does not quote correctly, so add quotes: double-quote
32532 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000032533 sed -n \
32534 "s/'/'\\\\''/g;
32535 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32536 ;; #(
32537 *)
32538 # `set' quotes correctly as required by POSIX, so do not add quotes.
32539 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32540 ;;
32541 esac |
32542 sort
32543) |
32544 sed '
32545 /^ac_cv_env_/b end
32546 t clear
32547 :clear
32548 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32549 t end
32550 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32551 :end' >>confcache
32552if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32553 if test -w "$cache_file"; then
32554 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000032555 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032556$as_echo "$as_me: updating cache $cache_file" >&6;}
32557 cat confcache >$cache_file
32558 else
cristy8b350f62009-11-15 23:12:43 +000032559 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032560$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32561 fi
32562fi
32563rm -f confcache
32564
32565test "x$prefix" = xNONE && prefix=$ac_default_prefix
32566# Let make expand exec_prefix.
32567test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32568
32569DEFS=-DHAVE_CONFIG_H
32570
32571ac_libobjs=
32572ac_ltlibobjs=
cristy0684af42010-07-09 00:00:05 +000032573U=
cristy3ed852e2009-09-05 21:47:34 +000032574for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32575 # 1. Remove the extension, and $U if already installed.
32576 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32577 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32578 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32579 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000032580 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32581 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000032582done
32583LIBOBJS=$ac_libobjs
32584
32585LTLIBOBJS=$ac_ltlibobjs
32586
32587
32588 if test -n "$EXEEXT"; then
32589 am__EXEEXT_TRUE=
32590 am__EXEEXT_FALSE='#'
32591else
32592 am__EXEEXT_TRUE='#'
32593 am__EXEEXT_FALSE=
32594fi
32595
32596if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032597 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032598Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032599fi
32600if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032601 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032602Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032603fi
cristya0b81c32010-01-22 02:54:33 +000032604if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032605 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristya0b81c32010-01-22 02:54:33 +000032606Usually this means the macro was only invoked conditionally." "$LINENO" 5
32607fi
cristy3ed852e2009-09-05 21:47:34 +000032608if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032609 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032610Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032611fi
32612if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032613 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032614Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032615fi
32616if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032617 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032618Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032619fi
32620if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032621 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032622Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032623fi
32624if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032625 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032626Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032627fi
cristy3ed852e2009-09-05 21:47:34 +000032628if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032629 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032630Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032631fi
32632if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032633 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032634Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032635fi
32636LT_CONFIG_H=config/config.h
32637
32638 _ltdl_libobjs=
32639 _ltdl_ltlibobjs=
32640 if test -n "$_LT_LIBOBJS"; then
32641 # Remove the extension.
32642 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32643 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32644 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32645 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32646 done
32647 fi
32648 ltdl_LIBOBJS=$_ltdl_libobjs
32649
32650 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32651
32652
cristyfa112112010-01-04 17:48:07 +000032653if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032654 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristyfa112112010-01-04 17:48:07 +000032655Usually this means the macro was only invoked conditionally." "$LINENO" 5
32656fi
cristy3ed852e2009-09-05 21:47:34 +000032657if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032658 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032659Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032660fi
32661if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032662 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032663Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032664fi
32665if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032666 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032667Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032668fi
32669
32670if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032671 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032672Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032673fi
32674if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032675 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032676Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032677fi
32678if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032679 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032680Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032681fi
32682if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032683 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032684Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032685fi
32686if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032687 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032688Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032689fi
32690if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032691 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032692Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032693fi
32694if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032695 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032696Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032697fi
32698if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032699 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032700Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032701fi
32702if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032703 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032704Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032705fi
32706if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032707 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032708Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032709fi
32710if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032711 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032712Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032713fi
32714if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032715 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032716Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032717fi
32718if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032719 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032720Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032721fi
32722if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032723 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032724Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032725fi
32726if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032727 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032728Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032729fi
32730if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032731 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032732Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032733fi
32734if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032735 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032736Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032737fi
32738if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032739 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032740Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032741fi
32742if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032743 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032744Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032745fi
32746if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032747 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032748Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032749fi
32750if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032751 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032752Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032753fi
32754if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032755 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032756Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032757fi
32758if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032759 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032760Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032761fi
32762if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032763 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032764Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032765fi
32766if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032767 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032768Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032769fi
32770if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032771 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032772Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032773fi
32774if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032775 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032776Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032777fi
32778if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032779 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032780Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032781fi
32782if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032783 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032784Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032785fi
32786if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032787 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032788Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032789fi
32790if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032791 as_fn_error $? "conditional \"WITH_PERL\" 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 "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032795 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032796Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032797fi
32798if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032799 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032800Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032801fi
32802
32803: ${CONFIG_STATUS=./config.status}
32804ac_write_fail=0
32805ac_clean_files_save=$ac_clean_files
32806ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000032807{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032808$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032809as_write_fail=0
32810cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032811#! $SHELL
32812# Generated by $as_me.
32813# Run this file to recreate the current configuration.
32814# Compiler output produced by configure, useful for debugging
32815# configure, is in config.log if it exists.
32816
32817debug=false
32818ac_cs_recheck=false
32819ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000032820
cristy8b350f62009-11-15 23:12:43 +000032821SHELL=\${CONFIG_SHELL-$SHELL}
32822export SHELL
32823_ASEOF
32824cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32825## -------------------- ##
32826## M4sh Initialization. ##
32827## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000032828
32829# Be more Bourne compatible
32830DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000032831if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000032832 emulate sh
32833 NULLCMD=:
32834 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32835 # is contrary to our usage. Disable this feature.
32836 alias -g '${1+"$@"}'='"$@"'
32837 setopt NO_GLOB_SUBST
32838else
cristy8b350f62009-11-15 23:12:43 +000032839 case `(set -o) 2>/dev/null` in #(
32840 *posix*) :
32841 set -o posix ;; #(
32842 *) :
32843 ;;
cristy3ed852e2009-09-05 21:47:34 +000032844esac
cristy3ed852e2009-09-05 21:47:34 +000032845fi
32846
32847
cristy3ed852e2009-09-05 21:47:34 +000032848as_nl='
32849'
32850export as_nl
32851# Printing a long string crashes Solaris 7 /usr/bin/printf.
32852as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32853as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32854as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000032855# Prefer a ksh shell builtin over an external printf program on Solaris,
32856# but without wasting forks for bash or zsh.
32857if test -z "$BASH_VERSION$ZSH_VERSION" \
32858 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32859 as_echo='print -r --'
32860 as_echo_n='print -rn --'
32861elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000032862 as_echo='printf %s\n'
32863 as_echo_n='printf %s'
32864else
32865 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32866 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32867 as_echo_n='/usr/ucb/echo -n'
32868 else
32869 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32870 as_echo_n_body='eval
32871 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000032872 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000032873 *"$as_nl"*)
32874 expr "X$arg" : "X\\(.*\\)$as_nl";
32875 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32876 esac;
32877 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32878 '
32879 export as_echo_n_body
32880 as_echo_n='sh -c $as_echo_n_body as_echo'
32881 fi
32882 export as_echo_body
32883 as_echo='sh -c $as_echo_body as_echo'
32884fi
32885
32886# The user is always right.
32887if test "${PATH_SEPARATOR+set}" != set; then
32888 PATH_SEPARATOR=:
32889 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32890 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32891 PATH_SEPARATOR=';'
32892 }
32893fi
32894
cristy3ed852e2009-09-05 21:47:34 +000032895
32896# IFS
32897# We need space, tab and new line, in precisely that order. Quoting is
32898# there to prevent editors from complaining about space-tab.
32899# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32900# splitting by setting IFS to empty value.)
32901IFS=" "" $as_nl"
32902
32903# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000032904case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000032905 *[\\/]* ) as_myself=$0 ;;
32906 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32907for as_dir in $PATH
32908do
32909 IFS=$as_save_IFS
32910 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032911 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32912 done
cristy3ed852e2009-09-05 21:47:34 +000032913IFS=$as_save_IFS
32914
32915 ;;
32916esac
32917# We did not find ourselves, most probably we were run as `sh COMMAND'
32918# in which case we are not to be found in the path.
32919if test "x$as_myself" = x; then
32920 as_myself=$0
32921fi
32922if test ! -f "$as_myself"; then
32923 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000032924 exit 1
cristy3ed852e2009-09-05 21:47:34 +000032925fi
32926
cristy8b350f62009-11-15 23:12:43 +000032927# Unset variables that we do not need and which cause bugs (e.g. in
32928# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32929# suppresses any "Segmentation fault" message there. '((' could
32930# trigger a bug in pdksh 5.2.14.
32931for as_var in BASH_ENV ENV MAIL MAILPATH
32932do eval test x\${$as_var+set} = xset \
32933 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000032934done
32935PS1='$ '
32936PS2='> '
32937PS4='+ '
32938
32939# NLS nuisances.
32940LC_ALL=C
32941export LC_ALL
32942LANGUAGE=C
32943export LANGUAGE
32944
cristy8b350f62009-11-15 23:12:43 +000032945# CDPATH.
32946(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32947
32948
cristy0684af42010-07-09 00:00:05 +000032949# as_fn_error STATUS ERROR [LINENO LOG_FD]
32950# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000032951# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32952# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy0684af42010-07-09 00:00:05 +000032953# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000032954as_fn_error ()
32955{
cristy0684af42010-07-09 00:00:05 +000032956 as_status=$1; test $as_status -eq 0 && as_status=1
32957 if test "$4"; then
32958 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32959 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000032960 fi
cristy0684af42010-07-09 00:00:05 +000032961 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000032962 as_fn_exit $as_status
32963} # as_fn_error
32964
32965
32966# as_fn_set_status STATUS
32967# -----------------------
32968# Set $? to STATUS, without forking.
32969as_fn_set_status ()
32970{
32971 return $1
32972} # as_fn_set_status
32973
32974# as_fn_exit STATUS
32975# -----------------
32976# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32977as_fn_exit ()
32978{
32979 set +e
32980 as_fn_set_status $1
32981 exit $1
32982} # as_fn_exit
32983
32984# as_fn_unset VAR
32985# ---------------
32986# Portably unset VAR.
32987as_fn_unset ()
32988{
32989 { eval $1=; unset $1;}
32990}
32991as_unset=as_fn_unset
32992# as_fn_append VAR VALUE
32993# ----------------------
32994# Append the text in VALUE to the end of the definition contained in VAR. Take
32995# advantage of any shell optimizations that allow amortized linear growth over
32996# repeated appends, instead of the typical quadratic growth present in naive
32997# implementations.
32998if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32999 eval 'as_fn_append ()
33000 {
33001 eval $1+=\$2
33002 }'
33003else
33004 as_fn_append ()
33005 {
33006 eval $1=\$$1\$2
33007 }
33008fi # as_fn_append
33009
33010# as_fn_arith ARG...
33011# ------------------
33012# Perform arithmetic evaluation on the ARGs, and store the result in the
33013# global $as_val. Take advantage of shells that can avoid forks. The arguments
33014# must be portable across $(()) and expr.
33015if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33016 eval 'as_fn_arith ()
33017 {
33018 as_val=$(( $* ))
33019 }'
33020else
33021 as_fn_arith ()
33022 {
33023 as_val=`expr "$@" || test $? -eq 1`
33024 }
33025fi # as_fn_arith
33026
33027
cristy3ed852e2009-09-05 21:47:34 +000033028if expr a : '\(a\)' >/dev/null 2>&1 &&
33029 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33030 as_expr=expr
33031else
33032 as_expr=false
33033fi
33034
33035if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33036 as_basename=basename
33037else
33038 as_basename=false
33039fi
33040
cristy8b350f62009-11-15 23:12:43 +000033041if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33042 as_dirname=dirname
33043else
33044 as_dirname=false
33045fi
cristy3ed852e2009-09-05 21:47:34 +000033046
cristy3ed852e2009-09-05 21:47:34 +000033047as_me=`$as_basename -- "$0" ||
33048$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33049 X"$0" : 'X\(//\)$' \| \
33050 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33051$as_echo X/"$0" |
33052 sed '/^.*\/\([^/][^/]*\)\/*$/{
33053 s//\1/
33054 q
33055 }
33056 /^X\/\(\/\/\)$/{
33057 s//\1/
33058 q
33059 }
33060 /^X\/\(\/\).*/{
33061 s//\1/
33062 q
33063 }
33064 s/.*/./; q'`
33065
cristy8b350f62009-11-15 23:12:43 +000033066# Avoid depending upon Character Ranges.
33067as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33068as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33069as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33070as_cr_digits='0123456789'
33071as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000033072
33073ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000033074case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000033075-n*)
cristy8b350f62009-11-15 23:12:43 +000033076 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000033077 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000033078 xy) ECHO_C='\c';;
33079 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33080 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000033081 esac;;
33082*)
33083 ECHO_N='-n';;
33084esac
cristy3ed852e2009-09-05 21:47:34 +000033085
33086rm -f conf$$ conf$$.exe conf$$.file
33087if test -d conf$$.dir; then
33088 rm -f conf$$.dir/conf$$.file
33089else
33090 rm -f conf$$.dir
33091 mkdir conf$$.dir 2>/dev/null
33092fi
33093if (echo >conf$$.file) 2>/dev/null; then
33094 if ln -s conf$$.file conf$$ 2>/dev/null; then
33095 as_ln_s='ln -s'
33096 # ... but there are two gotchas:
33097 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33098 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33099 # In both cases, we have to default to `cp -p'.
33100 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33101 as_ln_s='cp -p'
33102 elif ln conf$$.file conf$$ 2>/dev/null; then
33103 as_ln_s=ln
33104 else
33105 as_ln_s='cp -p'
33106 fi
33107else
33108 as_ln_s='cp -p'
33109fi
33110rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33111rmdir conf$$.dir 2>/dev/null
33112
cristy8b350f62009-11-15 23:12:43 +000033113
33114# as_fn_mkdir_p
33115# -------------
33116# Create "$as_dir" as a directory, including parents if necessary.
33117as_fn_mkdir_p ()
33118{
33119
33120 case $as_dir in #(
33121 -*) as_dir=./$as_dir;;
33122 esac
33123 test -d "$as_dir" || eval $as_mkdir_p || {
33124 as_dirs=
33125 while :; do
33126 case $as_dir in #(
33127 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33128 *) as_qdir=$as_dir;;
33129 esac
33130 as_dirs="'$as_qdir' $as_dirs"
33131 as_dir=`$as_dirname -- "$as_dir" ||
33132$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33133 X"$as_dir" : 'X\(//\)[^/]' \| \
33134 X"$as_dir" : 'X\(//\)$' \| \
33135 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33136$as_echo X"$as_dir" |
33137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33138 s//\1/
33139 q
33140 }
33141 /^X\(\/\/\)[^/].*/{
33142 s//\1/
33143 q
33144 }
33145 /^X\(\/\/\)$/{
33146 s//\1/
33147 q
33148 }
33149 /^X\(\/\).*/{
33150 s//\1/
33151 q
33152 }
33153 s/.*/./; q'`
33154 test -d "$as_dir" && break
33155 done
33156 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy0684af42010-07-09 00:00:05 +000033157 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000033158
33159
33160} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033161if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033162 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000033163else
33164 test -d ./-p && rmdir ./-p
33165 as_mkdir_p=false
33166fi
33167
33168if test -x / >/dev/null 2>&1; then
33169 as_test_x='test -x'
33170else
33171 if ls -dL / >/dev/null 2>&1; then
33172 as_ls_L_option=L
33173 else
33174 as_ls_L_option=
33175 fi
33176 as_test_x='
33177 eval sh -c '\''
33178 if test -d "$1"; then
33179 test -d "$1/.";
33180 else
cristy8b350f62009-11-15 23:12:43 +000033181 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000033182 -*)set "./$1";;
33183 esac;
cristy8b350f62009-11-15 23:12:43 +000033184 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000033185 ???[sx]*):;;*)false;;esac;fi
33186 '\'' sh
33187 '
33188fi
33189as_executable_p=$as_test_x
33190
33191# Sed expression to map a string onto a valid CPP name.
33192as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33193
33194# Sed expression to map a string onto a valid variable name.
33195as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33196
33197
33198exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000033199## ----------------------------------- ##
33200## Main body of $CONFIG_STATUS script. ##
33201## ----------------------------------- ##
33202_ASEOF
33203test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033204
cristy8b350f62009-11-15 23:12:43 +000033205cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33206# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000033207# report actual input values of CONFIG_FILES etc. instead of their
33208# values after options handling.
33209ac_log="
cristyfbb4a972010-06-30 17:42:22 +000033210This file was extended by ImageMagick $as_me 6.6.3, which was
cristy0684af42010-07-09 00:00:05 +000033211generated by GNU Autoconf 2.66. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000033212
33213 CONFIG_FILES = $CONFIG_FILES
33214 CONFIG_HEADERS = $CONFIG_HEADERS
33215 CONFIG_LINKS = $CONFIG_LINKS
33216 CONFIG_COMMANDS = $CONFIG_COMMANDS
33217 $ $0 $@
33218
33219on `(hostname || uname -n) 2>/dev/null | sed 1q`
33220"
33221
33222_ACEOF
33223
33224case $ac_config_files in *"
33225"*) set x $ac_config_files; shift; ac_config_files=$*;;
33226esac
33227
33228case $ac_config_headers in *"
33229"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33230esac
33231
33232
33233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33234# Files that config.status was made for.
33235config_files="$ac_config_files"
33236config_headers="$ac_config_headers"
33237config_commands="$ac_config_commands"
33238
33239_ACEOF
33240
33241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33242ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000033243\`$as_me' instantiates files and other configuration actions
33244from templates according to the current configuration. Unless the files
33245and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000033246
cristy8b350f62009-11-15 23:12:43 +000033247Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000033248
33249 -h, --help print this help, then exit
33250 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000033251 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000033252 -q, --quiet, --silent
33253 do not print progress messages
33254 -d, --debug don't remove temporary files
33255 --recheck update $as_me by reconfiguring in the same conditions
33256 --file=FILE[:TEMPLATE]
33257 instantiate the configuration file FILE
33258 --header=FILE[:TEMPLATE]
33259 instantiate the configuration header FILE
33260
33261Configuration files:
33262$config_files
33263
33264Configuration headers:
33265$config_headers
33266
33267Configuration commands:
33268$config_commands
33269
cristy8b350f62009-11-15 23:12:43 +000033270Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000033271
33272_ACEOF
33273cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000033274ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000033275ac_cs_version="\\
cristyfbb4a972010-06-30 17:42:22 +000033276ImageMagick config.status 6.6.3
cristy0684af42010-07-09 00:00:05 +000033277configured by $0, generated by GNU Autoconf 2.66,
cristycd4c5312009-11-22 01:19:08 +000033278 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000033279
cristy0684af42010-07-09 00:00:05 +000033280Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033281This config.status script is free software; the Free Software Foundation
33282gives unlimited permission to copy, distribute and modify it."
33283
33284ac_pwd='$ac_pwd'
33285srcdir='$srcdir'
33286INSTALL='$INSTALL'
33287MKDIR_P='$MKDIR_P'
33288AWK='$AWK'
33289test -n "\$AWK" || AWK=awk
33290_ACEOF
33291
33292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33293# The default lists apply if the user does not specify any file.
33294ac_need_defaults=:
33295while test $# != 0
33296do
33297 case $1 in
33298 --*=*)
33299 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33300 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33301 ac_shift=:
33302 ;;
33303 *)
33304 ac_option=$1
33305 ac_optarg=$2
33306 ac_shift=shift
33307 ;;
33308 esac
33309
33310 case $ac_option in
33311 # Handling of the options.
33312 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33313 ac_cs_recheck=: ;;
33314 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33315 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000033316 --config | --confi | --conf | --con | --co | --c )
33317 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000033318 --debug | --debu | --deb | --de | --d | -d )
33319 debug=: ;;
33320 --file | --fil | --fi | --f )
33321 $ac_shift
33322 case $ac_optarg in
33323 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33324 esac
cristy8b350f62009-11-15 23:12:43 +000033325 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033326 ac_need_defaults=false;;
33327 --header | --heade | --head | --hea )
33328 $ac_shift
33329 case $ac_optarg in
33330 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33331 esac
cristy8b350f62009-11-15 23:12:43 +000033332 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033333 ac_need_defaults=false;;
33334 --he | --h)
33335 # Conflict between --help and --header
cristy0684af42010-07-09 00:00:05 +000033336 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033337Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000033338 --help | --hel | -h )
33339 $as_echo "$ac_cs_usage"; exit ;;
33340 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33341 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33342 ac_cs_silent=: ;;
33343
33344 # This is an error.
cristy0684af42010-07-09 00:00:05 +000033345 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033346Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000033347
cristy8b350f62009-11-15 23:12:43 +000033348 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000033349 ac_need_defaults=false ;;
33350
33351 esac
33352 shift
33353done
33354
33355ac_configure_extra_args=
33356
33357if $ac_cs_silent; then
33358 exec 6>/dev/null
33359 ac_configure_extra_args="$ac_configure_extra_args --silent"
33360fi
33361
33362_ACEOF
33363cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33364if \$ac_cs_recheck; then
33365 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33366 shift
33367 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33368 CONFIG_SHELL='$SHELL'
33369 export CONFIG_SHELL
33370 exec "\$@"
33371fi
33372
33373_ACEOF
33374cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33375exec 5>>config.log
33376{
33377 echo
33378 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33379## Running $as_me. ##
33380_ASBOX
33381 $as_echo "$ac_log"
33382} >&5
33383
33384_ACEOF
33385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33386#
33387# INIT-COMMANDS
33388#
33389PACKAGE="$PACKAGE"
33390AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33391
33392
33393# The HP-UX ksh and POSIX shell print the target directory to stdout
33394# if CDPATH is set.
33395(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33396
33397sed_quote_subst='$sed_quote_subst'
33398double_quote_subst='$double_quote_subst'
33399delay_variable_subst='$delay_variable_subst'
cristy232a9ab2010-06-26 01:02:54 +000033400SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33401Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33402GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33403EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33404FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33405SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33406ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33407LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33408macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33409macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33410AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
33411DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33412OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33413enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33414enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33415pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33416enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33417host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33418host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33419host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33420build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33421build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33422build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33423NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33424LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33425max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33426ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33427exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33428lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33429lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33430lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33431reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33432reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33433deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33434file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33435AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33436AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33437STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33438RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33439old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33440old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33441old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
33442lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
33443CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
33444CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
33445compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
33446GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
33447lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
33448lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33449lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33450lt_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"`'
33451objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33452MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33453lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33454lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33455lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33456lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33457lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33458need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33459DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33460NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33461LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33462OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
33463OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
33464libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
33465shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
33466extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33467archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
33468enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
33469export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
33470whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
33471compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
33472old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
33473old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33474archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
33475archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33476module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
33477module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33478with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
33479allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
33480no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
33481hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
33482hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
33483hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
33484hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
33485hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
33486hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
33487hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
33488hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33489inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33490link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33491fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
33492always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33493export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33494exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33495include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33496prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33497file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33498variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33499need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33500need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
33501version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
33502runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
33503shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
33504shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
33505libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
33506library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
33507soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
33508install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
33509postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33510postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33511finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
33512finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
33513hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
33514sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
33515sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
33516hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
33517enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
33518enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
33519enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
33520old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
33521striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
33522compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
33523predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
33524postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
33525predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
33526postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
33527compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
33528LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
33529reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
33530reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33531old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33532compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
33533GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
33534lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
33535lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
33536lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
33537lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
33538lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
33539archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
33540enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
33541export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33542whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33543compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
33544old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33545old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33546archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33547archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33548module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33549module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33550with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
33551allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33552no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33553hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33554hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
33555hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
33556hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
33557hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
33558hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
33559hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
33560hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
33561inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
33562link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
33563fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
33564always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
33565export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33566exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33567include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33568prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33569file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
33570hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
33571compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
33572predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33573postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33574predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
33575postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
33576compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000033577
33578LTCC='$LTCC'
33579LTCFLAGS='$LTCFLAGS'
33580compiler='$compiler_DEFAULT'
33581
cristy232a9ab2010-06-26 01:02:54 +000033582# A function that is used when there is no print builtin or printf.
33583func_fallback_echo ()
33584{
33585 eval 'cat <<_LTECHO_EOF
33586\$1
33587_LTECHO_EOF'
33588}
33589
cristy3ed852e2009-09-05 21:47:34 +000033590# Quote evaled strings.
33591for var in SED \
33592GREP \
33593EGREP \
33594FGREP \
cristy232a9ab2010-06-26 01:02:54 +000033595SHELL \
33596ECHO \
cristy3ed852e2009-09-05 21:47:34 +000033597LD \
cristy232a9ab2010-06-26 01:02:54 +000033598AS \
33599DLLTOOL \
33600OBJDUMP \
cristy3ed852e2009-09-05 21:47:34 +000033601NM \
33602LN_S \
33603lt_SP2NL \
33604lt_NL2SP \
33605reload_flag \
33606deplibs_check_method \
33607file_magic_cmd \
33608AR \
33609AR_FLAGS \
33610STRIP \
33611RANLIB \
33612CC \
33613CFLAGS \
33614compiler \
33615lt_cv_sys_global_symbol_pipe \
33616lt_cv_sys_global_symbol_to_cdecl \
33617lt_cv_sys_global_symbol_to_c_name_address \
33618lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy3ed852e2009-09-05 21:47:34 +000033619lt_prog_compiler_no_builtin_flag \
33620lt_prog_compiler_wl \
33621lt_prog_compiler_pic \
33622lt_prog_compiler_static \
33623lt_cv_prog_compiler_c_o \
33624need_locks \
33625DSYMUTIL \
33626NMEDIT \
33627LIPO \
33628OTOOL \
33629OTOOL64 \
33630shrext_cmds \
33631export_dynamic_flag_spec \
33632whole_archive_flag_spec \
33633compiler_needs_object \
33634with_gnu_ld \
33635allow_undefined_flag \
33636no_undefined_flag \
33637hardcode_libdir_flag_spec \
33638hardcode_libdir_flag_spec_ld \
33639hardcode_libdir_separator \
33640fix_srcfile_path \
33641exclude_expsyms \
33642include_expsyms \
33643file_list_spec \
33644variables_saved_for_relink \
33645libname_spec \
33646library_names_spec \
33647soname_spec \
cristy232a9ab2010-06-26 01:02:54 +000033648install_override_mode \
cristy3ed852e2009-09-05 21:47:34 +000033649finish_eval \
33650old_striplib \
33651striplib \
33652compiler_lib_search_dirs \
33653predep_objects \
33654postdep_objects \
33655predeps \
33656postdeps \
33657compiler_lib_search_path \
33658LD_CXX \
cristy232a9ab2010-06-26 01:02:54 +000033659reload_flag_CXX \
cristy3ed852e2009-09-05 21:47:34 +000033660compiler_CXX \
33661lt_prog_compiler_no_builtin_flag_CXX \
33662lt_prog_compiler_wl_CXX \
33663lt_prog_compiler_pic_CXX \
33664lt_prog_compiler_static_CXX \
33665lt_cv_prog_compiler_c_o_CXX \
33666export_dynamic_flag_spec_CXX \
33667whole_archive_flag_spec_CXX \
33668compiler_needs_object_CXX \
33669with_gnu_ld_CXX \
33670allow_undefined_flag_CXX \
33671no_undefined_flag_CXX \
33672hardcode_libdir_flag_spec_CXX \
33673hardcode_libdir_flag_spec_ld_CXX \
33674hardcode_libdir_separator_CXX \
33675fix_srcfile_path_CXX \
33676exclude_expsyms_CXX \
33677include_expsyms_CXX \
33678file_list_spec_CXX \
33679compiler_lib_search_dirs_CXX \
33680predep_objects_CXX \
33681postdep_objects_CXX \
33682predeps_CXX \
33683postdeps_CXX \
33684compiler_lib_search_path_CXX; do
cristy232a9ab2010-06-26 01:02:54 +000033685 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy3ed852e2009-09-05 21:47:34 +000033686 *[\\\\\\\`\\"\\\$]*)
cristy232a9ab2010-06-26 01:02:54 +000033687 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033688 ;;
33689 *)
33690 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33691 ;;
33692 esac
33693done
33694
33695# Double-quote double-evaled strings.
33696for var in reload_cmds \
33697old_postinstall_cmds \
33698old_postuninstall_cmds \
33699old_archive_cmds \
33700extract_expsyms_cmds \
33701old_archive_from_new_cmds \
33702old_archive_from_expsyms_cmds \
33703archive_cmds \
33704archive_expsym_cmds \
33705module_cmds \
33706module_expsym_cmds \
33707export_symbols_cmds \
33708prelink_cmds \
33709postinstall_cmds \
33710postuninstall_cmds \
33711finish_cmds \
33712sys_lib_search_path_spec \
33713sys_lib_dlsearch_path_spec \
cristy232a9ab2010-06-26 01:02:54 +000033714reload_cmds_CXX \
cristy3ed852e2009-09-05 21:47:34 +000033715old_archive_cmds_CXX \
33716old_archive_from_new_cmds_CXX \
33717old_archive_from_expsyms_cmds_CXX \
33718archive_cmds_CXX \
33719archive_expsym_cmds_CXX \
33720module_cmds_CXX \
33721module_expsym_cmds_CXX \
33722export_symbols_cmds_CXX \
33723prelink_cmds_CXX; do
cristy232a9ab2010-06-26 01:02:54 +000033724 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy3ed852e2009-09-05 21:47:34 +000033725 *[\\\\\\\`\\"\\\$]*)
cristy232a9ab2010-06-26 01:02:54 +000033726 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033727 ;;
33728 *)
33729 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33730 ;;
33731 esac
33732done
33733
cristy3ed852e2009-09-05 21:47:34 +000033734ac_aux_dir='$ac_aux_dir'
33735xsi_shell='$xsi_shell'
33736lt_shell_append='$lt_shell_append'
33737
33738# See if we are running on zsh, and set the options which allow our
33739# commands through without removal of \ escapes INIT.
33740if test -n "\${ZSH_VERSION+set}" ; then
33741 setopt NO_GLOB_SUBST
33742fi
33743
33744
33745 PACKAGE='$PACKAGE'
33746 VERSION='$VERSION'
33747 TIMESTAMP='$TIMESTAMP'
33748 RM='$RM'
33749 ofile='$ofile'
33750
33751
33752
33753
33754
33755
33756_ACEOF
33757
33758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33759
33760# Handling of arguments.
33761for ac_config_target in $ac_config_targets
33762do
33763 case $ac_config_target in
33764 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33765 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33766 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33767 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33768 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33769 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33770 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000033771 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000033772 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33773 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33774 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33775 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33776 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33777 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33778 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33779 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33780 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33781 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33782 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33783 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33784 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33785 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33786 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33787 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33788 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33789 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33790 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33791 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33792 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33793 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33794 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33795 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33796 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33797 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33798 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33799 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33800 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33801 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33802 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33803 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33804 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
33805 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33806 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33807 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33808 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33809 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33810 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33811 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33812 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33813 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33814
cristy0684af42010-07-09 00:00:05 +000033815 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033816 esac
33817done
33818
33819
33820# If the user did not use the arguments to specify the items to instantiate,
33821# then the envvar interface is used. Set only those that are not.
33822# We use the long form for the default assignment because of an extremely
33823# bizarre bug on SunOS 4.1.3.
33824if $ac_need_defaults; then
33825 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33826 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33827 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33828fi
33829
33830# Have a temporary directory for convenience. Make it in the build tree
33831# simply because there is no reason against having it here, and in addition,
33832# creating and moving files from /tmp can sometimes cause problems.
33833# Hook for its removal unless debugging.
33834# Note that there is a small window in which the directory will not be cleaned:
33835# after its creation but before its name has been assigned to `$tmp'.
33836$debug ||
33837{
33838 tmp=
33839 trap 'exit_status=$?
33840 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33841' 0
cristy8b350f62009-11-15 23:12:43 +000033842 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000033843}
33844# Create a (secure) tmp directory for tmp files.
33845
33846{
33847 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33848 test -n "$tmp" && test -d "$tmp"
33849} ||
33850{
33851 tmp=./conf$$-$RANDOM
33852 (umask 077 && mkdir "$tmp")
cristy0684af42010-07-09 00:00:05 +000033853} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033854
33855# Set up the scripts for CONFIG_FILES section.
33856# No need to generate them if there are no CONFIG_FILES.
33857# This happens for instance with `./config.status config.h'.
33858if test -n "$CONFIG_FILES"; then
33859
33860
cristy8b350f62009-11-15 23:12:43 +000033861ac_cr=`echo X | tr X '\015'`
33862# On cygwin, bash can eat \r inside `` if the user requested igncr.
33863# But we know of no other shell where ac_cr would be empty at this
33864# point, so we can use a bashism as a fallback.
33865if test "x$ac_cr" = x; then
33866 eval ac_cr=\$\'\\r\'
33867fi
cristy3ed852e2009-09-05 21:47:34 +000033868ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33869if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy0684af42010-07-09 00:00:05 +000033870 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000033871else
33872 ac_cs_awk_cr=$ac_cr
33873fi
33874
33875echo 'BEGIN {' >"$tmp/subs1.awk" &&
33876_ACEOF
33877
33878
33879{
33880 echo "cat >conf$$subs.awk <<_ACEOF" &&
33881 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33882 echo "_ACEOF"
33883} >conf$$subs.sh ||
cristy0684af42010-07-09 00:00:05 +000033884 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33885ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000033886ac_delim='%!_!# '
33887for ac_last_try in false false false false false :; do
33888 . ./conf$$subs.sh ||
cristy0684af42010-07-09 00:00:05 +000033889 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033890
33891 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33892 if test $ac_delim_n = $ac_delim_num; then
33893 break
33894 elif $ac_last_try; then
cristy0684af42010-07-09 00:00:05 +000033895 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033896 else
33897 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33898 fi
33899done
33900rm -f conf$$subs.sh
33901
33902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33903cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
33904_ACEOF
33905sed -n '
33906h
33907s/^/S["/; s/!.*/"]=/
33908p
33909g
33910s/^[^!]*!//
33911:repl
33912t repl
33913s/'"$ac_delim"'$//
33914t delim
33915:nl
33916h
cristycd4c5312009-11-22 01:19:08 +000033917s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000033918t more1
33919s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33920p
33921n
33922b repl
33923:more1
33924s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33925p
33926g
33927s/.\{148\}//
33928t nl
33929:delim
33930h
cristycd4c5312009-11-22 01:19:08 +000033931s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000033932t more2
33933s/["\\]/\\&/g; s/^/"/; s/$/"/
33934p
33935b
33936:more2
33937s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33938p
33939g
33940s/.\{148\}//
33941t delim
33942' <conf$$subs.awk | sed '
33943/^[^""]/{
33944 N
33945 s/\n//
33946}
33947' >>$CONFIG_STATUS || ac_write_fail=1
33948rm -f conf$$subs.awk
33949cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33950_ACAWK
33951cat >>"\$tmp/subs1.awk" <<_ACAWK &&
33952 for (key in S) S_is_set[key] = 1
33953 FS = ""
33954
33955}
33956{
33957 line = $ 0
33958 nfields = split(line, field, "@")
33959 substed = 0
33960 len = length(field[1])
33961 for (i = 2; i < nfields; i++) {
33962 key = field[i]
33963 keylen = length(key)
33964 if (S_is_set[key]) {
33965 value = S[key]
33966 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33967 len += length(value) + length(field[++i])
33968 substed = 1
33969 } else
33970 len += 1 + keylen
33971 }
33972
33973 print line
33974}
33975
33976_ACAWK
33977_ACEOF
33978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33979if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33980 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33981else
33982 cat
33983fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy0684af42010-07-09 00:00:05 +000033984 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033985_ACEOF
33986
cristy0684af42010-07-09 00:00:05 +000033987# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33988# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000033989# trailing colons and then remove the whole line if VPATH becomes empty
33990# (actually we leave an empty line to preserve line numbers).
33991if test "x$srcdir" = x.; then
cristy0684af42010-07-09 00:00:05 +000033992 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33993h
33994s///
33995s/^/:/
33996s/[ ]*$/:/
33997s/:\$(srcdir):/:/g
33998s/:\${srcdir}:/:/g
33999s/:@srcdir@:/:/g
34000s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000034001s/:*$//
cristy0684af42010-07-09 00:00:05 +000034002x
34003s/\(=[ ]*\).*/\1/
34004G
34005s/\n//
cristy3ed852e2009-09-05 21:47:34 +000034006s/^[^=]*=[ ]*$//
34007}'
34008fi
34009
34010cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34011fi # test -n "$CONFIG_FILES"
34012
34013# Set up the scripts for CONFIG_HEADERS section.
34014# No need to generate them if there are no CONFIG_HEADERS.
34015# This happens for instance with `./config.status Makefile'.
34016if test -n "$CONFIG_HEADERS"; then
34017cat >"$tmp/defines.awk" <<\_ACAWK ||
34018BEGIN {
34019_ACEOF
34020
34021# Transform confdefs.h into an awk script `defines.awk', embedded as
34022# here-document in config.status, that substitutes the proper values into
34023# config.h.in to produce config.h.
34024
34025# Create a delimiter string that does not exist in confdefs.h, to ease
34026# handling of long lines.
34027ac_delim='%!_!# '
34028for ac_last_try in false false :; do
34029 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34030 if test -z "$ac_t"; then
34031 break
34032 elif $ac_last_try; then
cristy0684af42010-07-09 00:00:05 +000034033 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034034 else
34035 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34036 fi
34037done
34038
34039# For the awk script, D is an array of macro values keyed by name,
34040# likewise P contains macro parameters if any. Preserve backslash
34041# newline sequences.
34042
34043ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34044sed -n '
34045s/.\{148\}/&'"$ac_delim"'/g
34046t rset
34047:rset
34048s/^[ ]*#[ ]*define[ ][ ]*/ /
34049t def
34050d
34051:def
34052s/\\$//
34053t bsnl
34054s/["\\]/\\&/g
34055s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34056D["\1"]=" \3"/p
34057s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34058d
34059:bsnl
34060s/["\\]/\\&/g
34061s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34062D["\1"]=" \3\\\\\\n"\\/p
34063t cont
34064s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34065t cont
34066d
34067:cont
34068n
34069s/.\{148\}/&'"$ac_delim"'/g
34070t clear
34071:clear
34072s/\\$//
34073t bsnlc
34074s/["\\]/\\&/g; s/^/"/; s/$/"/p
34075d
34076:bsnlc
34077s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34078b cont
34079' <confdefs.h | sed '
34080s/'"$ac_delim"'/"\\\
34081"/g' >>$CONFIG_STATUS || ac_write_fail=1
34082
34083cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34084 for (key in D) D_is_set[key] = 1
34085 FS = ""
34086}
34087/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34088 line = \$ 0
34089 split(line, arg, " ")
34090 if (arg[1] == "#") {
34091 defundef = arg[2]
34092 mac1 = arg[3]
34093 } else {
34094 defundef = substr(arg[1], 2)
34095 mac1 = arg[2]
34096 }
34097 split(mac1, mac2, "(") #)
34098 macro = mac2[1]
34099 prefix = substr(line, 1, index(line, defundef) - 1)
34100 if (D_is_set[macro]) {
34101 # Preserve the white space surrounding the "#".
34102 print prefix "define", macro P[macro] D[macro]
34103 next
34104 } else {
34105 # Replace #undef with comments. This is necessary, for example,
34106 # in the case of _POSIX_SOURCE, which is predefined and required
34107 # on some systems where configure will not decide to define it.
34108 if (defundef == "undef") {
34109 print "/*", prefix defundef, macro, "*/"
34110 next
34111 }
34112 }
34113}
34114{ print }
34115_ACAWK
34116_ACEOF
34117cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy0684af42010-07-09 00:00:05 +000034118 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034119fi # test -n "$CONFIG_HEADERS"
34120
34121
34122eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34123shift
34124for ac_tag
34125do
34126 case $ac_tag in
34127 :[FHLC]) ac_mode=$ac_tag; continue;;
34128 esac
34129 case $ac_mode$ac_tag in
34130 :[FHL]*:*);;
cristy0684af42010-07-09 00:00:05 +000034131 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034132 :[FH]-) ac_tag=-:-;;
34133 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34134 esac
34135 ac_save_IFS=$IFS
34136 IFS=:
34137 set x $ac_tag
34138 IFS=$ac_save_IFS
34139 shift
34140 ac_file=$1
34141 shift
34142
34143 case $ac_mode in
34144 :L) ac_source=$1;;
34145 :[FH])
34146 ac_file_inputs=
34147 for ac_f
34148 do
34149 case $ac_f in
34150 -) ac_f="$tmp/stdin";;
34151 *) # Look for the file first in the build tree, then in the source tree
34152 # (if the path is not absolute). The absolute path cannot be DOS-style,
34153 # because $ac_f cannot contain `:'.
34154 test -f "$ac_f" ||
34155 case $ac_f in
34156 [\\/$]*) false;;
34157 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34158 esac ||
cristy0684af42010-07-09 00:00:05 +000034159 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034160 esac
34161 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000034162 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000034163 done
34164
34165 # Let's still pretend it is `configure' which instantiates (i.e., don't
34166 # use $as_me), people would be surprised to read:
34167 # /* config.h. Generated by config.status. */
34168 configure_input='Generated from '`
34169 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34170 `' by configure.'
34171 if test x"$ac_file" != x-; then
34172 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000034173 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034174$as_echo "$as_me: creating $ac_file" >&6;}
34175 fi
34176 # Neutralize special characters interpreted by sed in replacement strings.
34177 case $configure_input in #(
34178 *\&* | *\|* | *\\* )
34179 ac_sed_conf_input=`$as_echo "$configure_input" |
34180 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34181 *) ac_sed_conf_input=$configure_input;;
34182 esac
34183
34184 case $ac_tag in
34185 *:-:* | *:-) cat >"$tmp/stdin" \
cristy0684af42010-07-09 00:00:05 +000034186 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000034187 esac
34188 ;;
34189 esac
34190
34191 ac_dir=`$as_dirname -- "$ac_file" ||
34192$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34193 X"$ac_file" : 'X\(//\)[^/]' \| \
34194 X"$ac_file" : 'X\(//\)$' \| \
34195 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34196$as_echo X"$ac_file" |
34197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34198 s//\1/
34199 q
34200 }
34201 /^X\(\/\/\)[^/].*/{
34202 s//\1/
34203 q
34204 }
34205 /^X\(\/\/\)$/{
34206 s//\1/
34207 q
34208 }
34209 /^X\(\/\).*/{
34210 s//\1/
34211 q
34212 }
34213 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034214 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034215 ac_builddir=.
34216
34217case "$ac_dir" in
34218.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34219*)
34220 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34221 # A ".." for each directory in $ac_dir_suffix.
34222 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34223 case $ac_top_builddir_sub in
34224 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34225 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34226 esac ;;
34227esac
34228ac_abs_top_builddir=$ac_pwd
34229ac_abs_builddir=$ac_pwd$ac_dir_suffix
34230# for backward compatibility:
34231ac_top_builddir=$ac_top_build_prefix
34232
34233case $srcdir in
34234 .) # We are building in place.
34235 ac_srcdir=.
34236 ac_top_srcdir=$ac_top_builddir_sub
34237 ac_abs_top_srcdir=$ac_pwd ;;
34238 [\\/]* | ?:[\\/]* ) # Absolute name.
34239 ac_srcdir=$srcdir$ac_dir_suffix;
34240 ac_top_srcdir=$srcdir
34241 ac_abs_top_srcdir=$srcdir ;;
34242 *) # Relative name.
34243 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34244 ac_top_srcdir=$ac_top_build_prefix$srcdir
34245 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34246esac
34247ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34248
34249
34250 case $ac_mode in
34251 :F)
34252 #
34253 # CONFIG_FILE
34254 #
34255
34256 case $INSTALL in
34257 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34258 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34259 esac
34260 ac_MKDIR_P=$MKDIR_P
34261 case $MKDIR_P in
34262 [\\/$]* | ?:[\\/]* ) ;;
34263 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34264 esac
34265_ACEOF
34266
34267cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34268# If the template does not know about datarootdir, expand it.
34269# FIXME: This hack should be removed a few years after 2.60.
34270ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000034271ac_sed_dataroot='
34272/datarootdir/ {
34273 p
34274 q
34275}
34276/@datadir@/p
34277/@docdir@/p
34278/@infodir@/p
34279/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000034280/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000034281case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34282*datarootdir*) ac_datarootdir_seen=yes;;
34283*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000034284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000034285$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34286_ACEOF
34287cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34288 ac_datarootdir_hack='
34289 s&@datadir@&$datadir&g
34290 s&@docdir@&$docdir&g
34291 s&@infodir@&$infodir&g
34292 s&@localedir@&$localedir&g
34293 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000034294 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000034295esac
34296_ACEOF
34297
34298# Neutralize VPATH when `$srcdir' = `.'.
34299# Shell code in configure.ac might set extrasub.
34300# FIXME: do we really want to maintain this feature?
34301cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34302ac_sed_extra="$ac_vpsub
34303$extrasub
34304_ACEOF
34305cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34306:t
34307/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34308s|@configure_input@|$ac_sed_conf_input|;t t
34309s&@top_builddir@&$ac_top_builddir_sub&;t t
34310s&@top_build_prefix@&$ac_top_build_prefix&;t t
34311s&@srcdir@&$ac_srcdir&;t t
34312s&@abs_srcdir@&$ac_abs_srcdir&;t t
34313s&@top_srcdir@&$ac_top_srcdir&;t t
34314s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34315s&@builddir@&$ac_builddir&;t t
34316s&@abs_builddir@&$ac_abs_builddir&;t t
34317s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34318s&@INSTALL@&$ac_INSTALL&;t t
34319s&@MKDIR_P@&$ac_MKDIR_P&;t t
34320$ac_datarootdir_hack
34321"
34322eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy0684af42010-07-09 00:00:05 +000034323 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034324
34325test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34326 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34327 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000034328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy0684af42010-07-09 00:00:05 +000034329which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000034330$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy0684af42010-07-09 00:00:05 +000034331which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000034332
34333 rm -f "$tmp/stdin"
34334 case $ac_file in
34335 -) cat "$tmp/out" && rm -f "$tmp/out";;
34336 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34337 esac \
cristy0684af42010-07-09 00:00:05 +000034338 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034339 ;;
34340 :H)
34341 #
34342 # CONFIG_HEADER
34343 #
34344 if test x"$ac_file" != x-; then
34345 {
34346 $as_echo "/* $configure_input */" \
34347 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34348 } >"$tmp/config.h" \
cristy0684af42010-07-09 00:00:05 +000034349 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034350 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000034351 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034352$as_echo "$as_me: $ac_file is unchanged" >&6;}
34353 else
34354 rm -f "$ac_file"
34355 mv "$tmp/config.h" "$ac_file" \
cristy0684af42010-07-09 00:00:05 +000034356 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034357 fi
34358 else
34359 $as_echo "/* $configure_input */" \
34360 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy0684af42010-07-09 00:00:05 +000034361 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034362 fi
34363# Compute "$ac_file"'s index in $config_headers.
34364_am_arg="$ac_file"
34365_am_stamp_count=1
34366for _am_header in $config_headers :; do
34367 case $_am_header in
34368 $_am_arg | $_am_arg:* )
34369 break ;;
34370 * )
34371 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34372 esac
34373done
34374echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34375$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34376 X"$_am_arg" : 'X\(//\)[^/]' \| \
34377 X"$_am_arg" : 'X\(//\)$' \| \
34378 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34379$as_echo X"$_am_arg" |
34380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34381 s//\1/
34382 q
34383 }
34384 /^X\(\/\/\)[^/].*/{
34385 s//\1/
34386 q
34387 }
34388 /^X\(\/\/\)$/{
34389 s//\1/
34390 q
34391 }
34392 /^X\(\/\).*/{
34393 s//\1/
34394 q
34395 }
34396 s/.*/./; q'`/stamp-h$_am_stamp_count
34397 ;;
34398
cristy8b350f62009-11-15 23:12:43 +000034399 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000034400$as_echo "$as_me: executing $ac_file commands" >&6;}
34401 ;;
34402 esac
34403
34404
34405 case $ac_file$ac_mode in
34406 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34407ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34408ac_prefix_conf_PKG=`echo MagickCore`
34409ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34410ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34411ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34412if test ".$ac_prefix_conf_INP" = "."; then
34413 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34414 case "$ac_file" in
34415 *.h) ac_prefix_conf_INP=$ac_file ;;
34416 *)
34417 esac
34418 test ".$ac_prefix_conf_INP" != "." && break
34419 done
34420fi
34421if test ".$ac_prefix_conf_INP" = "."; then
34422 case "$ac_prefix_conf_OUT" in
34423 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34424 ;;
34425 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34426 ;;
34427 *) ac_prefix_conf_INP=config.h
34428 ;;
34429 esac
34430fi
34431if test -z "$ac_prefix_conf_PKG" ; then
cristy0684af42010-07-09 00:00:05 +000034432 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034433else
34434 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34435 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34436 fi fi
cristy8b350f62009-11-15 23:12:43 +000034437 { $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 +000034438$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34439 if test -f $ac_prefix_conf_INP ; then
34440 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34441 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034442 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34443 echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034444 echo "#endif/" >>conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034445 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34446 echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034447 echo "#endif/" >> conftest.prefix
34448 # now executing _script on _DEF input to create _OUT output file
34449 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34450 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34451 echo ' ' >>$tmp/pconfig.h
34452 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34453
34454 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34455 echo ' ' >>$tmp/pconfig.h
34456 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34457 echo "#endif" >>$tmp/pconfig.h
34458 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034459 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034460$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34461 else
34462 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34463$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34464 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34465 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34466 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34467$as_echo X"$ac_prefix_conf_OUT" |
34468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34469 s//\1/
34470 q
34471 }
34472 /^X\(\/\/\)[^/].*/{
34473 s//\1/
34474 q
34475 }
34476 /^X\(\/\/\)$/{
34477 s//\1/
34478 q
34479 }
34480 /^X\(\/\).*/{
34481 s//\1/
34482 q
34483 }
34484 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034485 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034486 rm -f "$ac_prefix_conf_OUT"
34487 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34488 fi
34489 cp conftest.prefix _configs.sed
34490 else
cristy0684af42010-07-09 00:00:05 +000034491 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 +000034492 fi
34493 rm -f conftest.*
34494fi
34495 ;;
34496 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34497 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34498 # are listed without --file. Let's play safe and only enable the eval
34499 # if we detect the quoting.
34500 case $CONFIG_FILES in
34501 *\'*) eval set x "$CONFIG_FILES" ;;
34502 *) set x $CONFIG_FILES ;;
34503 esac
34504 shift
34505 for mf
34506 do
34507 # Strip MF so we end up with the name of the file.
34508 mf=`echo "$mf" | sed -e 's/:.*$//'`
34509 # Check whether this is an Automake generated Makefile or not.
34510 # We used to match only the files named `Makefile.in', but
34511 # some people rename them; so instead we look at the file content.
34512 # Grep'ing the first line is not enough: some people post-process
34513 # each Makefile.in and add a new line on top of each file to say so.
34514 # Grep'ing the whole file is not good either: AIX grep has a line
34515 # limit of 2048, but all sed's we know have understand at least 4000.
34516 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34517 dirpart=`$as_dirname -- "$mf" ||
34518$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34519 X"$mf" : 'X\(//\)[^/]' \| \
34520 X"$mf" : 'X\(//\)$' \| \
34521 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34522$as_echo X"$mf" |
34523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34524 s//\1/
34525 q
34526 }
34527 /^X\(\/\/\)[^/].*/{
34528 s//\1/
34529 q
34530 }
34531 /^X\(\/\/\)$/{
34532 s//\1/
34533 q
34534 }
34535 /^X\(\/\).*/{
34536 s//\1/
34537 q
34538 }
34539 s/.*/./; q'`
34540 else
34541 continue
34542 fi
34543 # Extract the definition of DEPDIR, am__include, and am__quote
34544 # from the Makefile without running `make'.
34545 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34546 test -z "$DEPDIR" && continue
34547 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34548 test -z "am__include" && continue
34549 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34550 # When using ansi2knr, U may be empty or an underscore; expand it
34551 U=`sed -n 's/^U = //p' < "$mf"`
34552 # Find all dependency output files, they are included files with
34553 # $(DEPDIR) in their names. We invoke sed twice because it is the
34554 # simplest approach to changing $(DEPDIR) to its actual value in the
34555 # expansion.
34556 for file in `sed -n "
34557 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34558 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34559 # Make sure the directory exists.
34560 test -f "$dirpart/$file" && continue
34561 fdir=`$as_dirname -- "$file" ||
34562$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34563 X"$file" : 'X\(//\)[^/]' \| \
34564 X"$file" : 'X\(//\)$' \| \
34565 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34566$as_echo X"$file" |
34567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34568 s//\1/
34569 q
34570 }
34571 /^X\(\/\/\)[^/].*/{
34572 s//\1/
34573 q
34574 }
34575 /^X\(\/\/\)$/{
34576 s//\1/
34577 q
34578 }
34579 /^X\(\/\).*/{
34580 s//\1/
34581 q
34582 }
34583 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034584 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034585 # echo "creating $dirpart/$file"
34586 echo '# dummy' > "$dirpart/$file"
34587 done
34588 done
34589}
34590 ;;
34591 "libtool":C)
34592
34593 # See if we are running on zsh, and set the options which allow our
34594 # commands through without removal of \ escapes.
34595 if test -n "${ZSH_VERSION+set}" ; then
34596 setopt NO_GLOB_SUBST
34597 fi
34598
34599 cfgfile="${ofile}T"
34600 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34601 $RM "$cfgfile"
34602
34603 cat <<_LT_EOF >> "$cfgfile"
34604#! $SHELL
34605
34606# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34607# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34608# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34609# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34610#
34611# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy232a9ab2010-06-26 01:02:54 +000034612# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
34613# Inc.
cristy3ed852e2009-09-05 21:47:34 +000034614# Written by Gordon Matzigkeit, 1996
34615#
34616# This file is part of GNU Libtool.
34617#
34618# GNU Libtool is free software; you can redistribute it and/or
34619# modify it under the terms of the GNU General Public License as
34620# published by the Free Software Foundation; either version 2 of
34621# the License, or (at your option) any later version.
34622#
34623# As a special exception to the GNU General Public License,
34624# if you distribute this file as part of a program or library that
34625# is built using GNU Libtool, you may include this file under the
34626# same distribution terms that you use for the rest of that program.
34627#
34628# GNU Libtool is distributed in the hope that it will be useful,
34629# but WITHOUT ANY WARRANTY; without even the implied warranty of
34630# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34631# GNU General Public License for more details.
34632#
34633# You should have received a copy of the GNU General Public License
34634# along with GNU Libtool; see the file COPYING. If not, a copy
34635# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34636# obtained by writing to the Free Software Foundation, Inc.,
34637# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34638
34639
34640# The names of the tagged configurations supported by this script.
34641available_tags="CXX "
34642
34643# ### BEGIN LIBTOOL CONFIG
34644
34645# A sed program that does not truncate output.
34646SED=$lt_SED
34647
34648# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34649Xsed="\$SED -e 1s/^X//"
34650
34651# A grep program that handles long lines.
34652GREP=$lt_GREP
34653
34654# An ERE matcher.
34655EGREP=$lt_EGREP
34656
34657# A literal string matcher.
34658FGREP=$lt_FGREP
34659
cristy232a9ab2010-06-26 01:02:54 +000034660# Shell to use when invoking shell scripts.
34661SHELL=$lt_SHELL
34662
34663# An echo program that protects backslashes.
34664ECHO=$lt_ECHO
34665
cristy3ed852e2009-09-05 21:47:34 +000034666# Which release of libtool.m4 was used?
34667macro_version=$macro_version
34668macro_revision=$macro_revision
34669
34670# Assembler program.
cristy232a9ab2010-06-26 01:02:54 +000034671AS=$lt_AS
cristy3ed852e2009-09-05 21:47:34 +000034672
34673# DLL creation program.
cristy232a9ab2010-06-26 01:02:54 +000034674DLLTOOL=$lt_DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000034675
34676# Object dumper program.
cristy232a9ab2010-06-26 01:02:54 +000034677OBJDUMP=$lt_OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000034678
34679# Whether or not to build shared libraries.
34680build_libtool_libs=$enable_shared
34681
34682# Whether or not to build static libraries.
34683build_old_libs=$enable_static
34684
34685# What type of objects to build.
34686pic_mode=$pic_mode
34687
34688# Whether or not to optimize for fast installation.
34689fast_install=$enable_fast_install
34690
34691# The host system.
34692host_alias=$host_alias
34693host=$host
34694host_os=$host_os
34695
34696# The build system.
34697build_alias=$build_alias
34698build=$build
34699build_os=$build_os
34700
34701# A BSD- or MS-compatible name lister.
34702NM=$lt_NM
34703
34704# Whether we need soft or hard links.
34705LN_S=$lt_LN_S
34706
34707# What is the maximum length of a command?
34708max_cmd_len=$max_cmd_len
34709
34710# Object file suffix (normally "o").
34711objext=$ac_objext
34712
34713# Executable file suffix (normally "").
34714exeext=$exeext
34715
34716# whether the shell understands "unset".
34717lt_unset=$lt_unset
34718
34719# turn spaces into newlines.
34720SP2NL=$lt_lt_SP2NL
34721
34722# turn newlines into spaces.
34723NL2SP=$lt_lt_NL2SP
34724
cristy3ed852e2009-09-05 21:47:34 +000034725# Method to check whether dependent libraries are shared objects.
34726deplibs_check_method=$lt_deplibs_check_method
34727
34728# Command to use when deplibs_check_method == "file_magic".
34729file_magic_cmd=$lt_file_magic_cmd
34730
34731# The archiver.
34732AR=$lt_AR
34733AR_FLAGS=$lt_AR_FLAGS
34734
34735# A symbol stripping program.
34736STRIP=$lt_STRIP
34737
34738# Commands used to install an old-style archive.
34739RANLIB=$lt_RANLIB
34740old_postinstall_cmds=$lt_old_postinstall_cmds
34741old_postuninstall_cmds=$lt_old_postuninstall_cmds
34742
cristy232a9ab2010-06-26 01:02:54 +000034743# Whether to use a lock for old archive extraction.
34744lock_old_archive_extraction=$lock_old_archive_extraction
34745
cristy3ed852e2009-09-05 21:47:34 +000034746# A C compiler.
34747LTCC=$lt_CC
34748
34749# LTCC compiler flags.
34750LTCFLAGS=$lt_CFLAGS
34751
34752# Take the output of nm and produce a listing of raw symbols and C names.
34753global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34754
34755# Transform the output of nm in a proper C declaration.
34756global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34757
34758# Transform the output of nm in a C name address pair.
34759global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34760
34761# Transform the output of nm in a C name address pair when lib prefix is needed.
34762global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34763
34764# The name of the directory that contains temporary libtool files.
34765objdir=$objdir
34766
cristy3ed852e2009-09-05 21:47:34 +000034767# Used to examine libraries when file_magic_cmd begins with "file".
34768MAGIC_CMD=$MAGIC_CMD
34769
34770# Must we lock files when doing compilation?
34771need_locks=$lt_need_locks
34772
34773# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34774DSYMUTIL=$lt_DSYMUTIL
34775
34776# Tool to change global to local symbols on Mac OS X.
34777NMEDIT=$lt_NMEDIT
34778
34779# Tool to manipulate fat objects and archives on Mac OS X.
34780LIPO=$lt_LIPO
34781
34782# ldd/readelf like tool for Mach-O binaries on Mac OS X.
34783OTOOL=$lt_OTOOL
34784
34785# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34786OTOOL64=$lt_OTOOL64
34787
34788# Old archive suffix (normally "a").
34789libext=$libext
34790
34791# Shared library suffix (normally ".so").
34792shrext_cmds=$lt_shrext_cmds
34793
34794# The commands to extract the exported symbol list from a shared archive.
34795extract_expsyms_cmds=$lt_extract_expsyms_cmds
34796
34797# Variables whose values should be saved in libtool wrapper scripts and
34798# restored at link time.
34799variables_saved_for_relink=$lt_variables_saved_for_relink
34800
34801# Do we need the "lib" prefix for modules?
34802need_lib_prefix=$need_lib_prefix
34803
34804# Do we need a version for libraries?
34805need_version=$need_version
34806
34807# Library versioning type.
34808version_type=$version_type
34809
34810# Shared library runtime path variable.
34811runpath_var=$runpath_var
34812
34813# Shared library path variable.
34814shlibpath_var=$shlibpath_var
34815
34816# Is shlibpath searched before the hard-coded library search path?
34817shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34818
34819# Format of library name prefix.
34820libname_spec=$lt_libname_spec
34821
34822# List of archive names. First name is the real one, the rest are links.
34823# The last name is the one that the linker finds with -lNAME
34824library_names_spec=$lt_library_names_spec
34825
34826# The coded name of the library, if different from the real name.
34827soname_spec=$lt_soname_spec
34828
cristy232a9ab2010-06-26 01:02:54 +000034829# Permission mode override for installation of shared libraries.
34830install_override_mode=$lt_install_override_mode
34831
cristy3ed852e2009-09-05 21:47:34 +000034832# Command to use after installation of a shared archive.
34833postinstall_cmds=$lt_postinstall_cmds
34834
34835# Command to use after uninstallation of a shared archive.
34836postuninstall_cmds=$lt_postuninstall_cmds
34837
34838# Commands used to finish a libtool library installation in a directory.
34839finish_cmds=$lt_finish_cmds
34840
34841# As "finish_cmds", except a single script fragment to be evaled but
34842# not shown.
34843finish_eval=$lt_finish_eval
34844
34845# Whether we should hardcode library paths into libraries.
34846hardcode_into_libs=$hardcode_into_libs
34847
34848# Compile-time system search path for libraries.
34849sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34850
34851# Run-time system search path for libraries.
34852sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34853
34854# Whether dlopen is supported.
34855dlopen_support=$enable_dlopen
34856
34857# Whether dlopen of programs is supported.
34858dlopen_self=$enable_dlopen_self
34859
34860# Whether dlopen of statically linked programs is supported.
34861dlopen_self_static=$enable_dlopen_self_static
34862
34863# Commands to strip libraries.
34864old_striplib=$lt_old_striplib
34865striplib=$lt_striplib
34866
34867
34868# The linker used to build libraries.
34869LD=$lt_LD
34870
cristy232a9ab2010-06-26 01:02:54 +000034871# How to create reloadable object files.
34872reload_flag=$lt_reload_flag
34873reload_cmds=$lt_reload_cmds
34874
cristy3ed852e2009-09-05 21:47:34 +000034875# Commands used to build an old-style archive.
34876old_archive_cmds=$lt_old_archive_cmds
34877
34878# A language specific compiler.
34879CC=$lt_compiler
34880
34881# Is the compiler the GNU compiler?
34882with_gcc=$GCC
34883
34884# Compiler flag to turn off builtin functions.
34885no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34886
34887# How to pass a linker flag through the compiler.
34888wl=$lt_lt_prog_compiler_wl
34889
34890# Additional compiler flags for building library objects.
34891pic_flag=$lt_lt_prog_compiler_pic
34892
34893# Compiler flag to prevent dynamic linking.
34894link_static_flag=$lt_lt_prog_compiler_static
34895
34896# Does compiler simultaneously support -c and -o options?
34897compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34898
34899# Whether or not to add -lc for building shared libraries.
34900build_libtool_need_lc=$archive_cmds_need_lc
34901
34902# Whether or not to disallow shared libs when runtime libs are static.
34903allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34904
34905# Compiler flag to allow reflexive dlopens.
34906export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34907
34908# Compiler flag to generate shared objects directly from archives.
34909whole_archive_flag_spec=$lt_whole_archive_flag_spec
34910
34911# Whether the compiler copes with passing no objects directly.
34912compiler_needs_object=$lt_compiler_needs_object
34913
34914# Create an old-style archive from a shared archive.
34915old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34916
34917# Create a temporary old-style archive to link instead of a shared archive.
34918old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34919
34920# Commands used to build a shared archive.
34921archive_cmds=$lt_archive_cmds
34922archive_expsym_cmds=$lt_archive_expsym_cmds
34923
34924# Commands used to build a loadable module if different from building
34925# a shared archive.
34926module_cmds=$lt_module_cmds
34927module_expsym_cmds=$lt_module_expsym_cmds
34928
34929# Whether we are building with GNU ld or not.
34930with_gnu_ld=$lt_with_gnu_ld
34931
34932# Flag that allows shared libraries with undefined symbols to be built.
34933allow_undefined_flag=$lt_allow_undefined_flag
34934
34935# Flag that enforces no undefined symbols.
34936no_undefined_flag=$lt_no_undefined_flag
34937
34938# Flag to hardcode \$libdir into a binary during linking.
34939# This must work even if \$libdir does not exist
34940hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34941
34942# If ld is used when linking, flag to hardcode \$libdir into a binary
34943# during linking. This must work even if \$libdir does not exist.
34944hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
34945
34946# Whether we need a single "-rpath" flag with a separated argument.
34947hardcode_libdir_separator=$lt_hardcode_libdir_separator
34948
34949# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34950# DIR into the resulting binary.
34951hardcode_direct=$hardcode_direct
34952
34953# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34954# DIR into the resulting binary and the resulting library dependency is
34955# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34956# library is relocated.
34957hardcode_direct_absolute=$hardcode_direct_absolute
34958
34959# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34960# into the resulting binary.
34961hardcode_minus_L=$hardcode_minus_L
34962
34963# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34964# into the resulting binary.
34965hardcode_shlibpath_var=$hardcode_shlibpath_var
34966
34967# Set to "yes" if building a shared library automatically hardcodes DIR
34968# into the library and all subsequent libraries and executables linked
34969# against it.
34970hardcode_automatic=$hardcode_automatic
34971
34972# Set to yes if linker adds runtime paths of dependent libraries
34973# to runtime path list.
34974inherit_rpath=$inherit_rpath
34975
34976# Whether libtool must link a program against all its dependency libraries.
34977link_all_deplibs=$link_all_deplibs
34978
34979# Fix the shell variable \$srcfile for the compiler.
34980fix_srcfile_path=$lt_fix_srcfile_path
34981
34982# Set to "yes" if exported symbols are required.
34983always_export_symbols=$always_export_symbols
34984
34985# The commands to list exported symbols.
34986export_symbols_cmds=$lt_export_symbols_cmds
34987
34988# Symbols that should not be listed in the preloaded symbols.
34989exclude_expsyms=$lt_exclude_expsyms
34990
34991# Symbols that must always be exported.
34992include_expsyms=$lt_include_expsyms
34993
34994# Commands necessary for linking programs (against libraries) with templates.
34995prelink_cmds=$lt_prelink_cmds
34996
34997# Specify filename containing input files.
34998file_list_spec=$lt_file_list_spec
34999
35000# How to hardcode a shared library path into an executable.
35001hardcode_action=$hardcode_action
35002
35003# The directories searched by this compiler when creating a shared library.
35004compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35005
35006# Dependencies to place before and after the objects being linked to
35007# create a shared library.
35008predep_objects=$lt_predep_objects
35009postdep_objects=$lt_postdep_objects
35010predeps=$lt_predeps
35011postdeps=$lt_postdeps
35012
35013# The library search path used internally by the compiler when linking
35014# a shared library.
35015compiler_lib_search_path=$lt_compiler_lib_search_path
35016
35017# ### END LIBTOOL CONFIG
35018
35019_LT_EOF
35020
35021 case $host_os in
35022 aix3*)
35023 cat <<\_LT_EOF >> "$cfgfile"
35024# AIX sometimes has problems with the GCC collect2 program. For some
35025# reason, if we set the COLLECT_NAMES environment variable, the problems
35026# vanish in a puff of smoke.
35027if test "X${COLLECT_NAMES+set}" != Xset; then
35028 COLLECT_NAMES=
35029 export COLLECT_NAMES
35030fi
35031_LT_EOF
35032 ;;
35033 esac
35034
35035
35036ltmain="$ac_aux_dir/ltmain.sh"
35037
35038
35039 # We use sed instead of cat because bash on DJGPP gets confused if
35040 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35041 # text mode, it properly converts lines to CR/LF. This bash problem
35042 # is reportedly fixed, but why not run on old versions too?
35043 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35044 || (rm -f "$cfgfile"; exit 1)
35045
35046 case $xsi_shell in
35047 yes)
35048 cat << \_LT_EOF >> "$cfgfile"
35049
35050# func_dirname file append nondir_replacement
35051# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35052# otherwise set result to NONDIR_REPLACEMENT.
35053func_dirname ()
35054{
35055 case ${1} in
35056 */*) func_dirname_result="${1%/*}${2}" ;;
35057 * ) func_dirname_result="${3}" ;;
35058 esac
35059}
35060
35061# func_basename file
35062func_basename ()
35063{
35064 func_basename_result="${1##*/}"
35065}
35066
35067# func_dirname_and_basename file append nondir_replacement
35068# perform func_basename and func_dirname in a single function
35069# call:
35070# dirname: Compute the dirname of FILE. If nonempty,
35071# add APPEND to the result, otherwise set result
35072# to NONDIR_REPLACEMENT.
35073# value returned in "$func_dirname_result"
35074# basename: Compute filename of FILE.
35075# value retuned in "$func_basename_result"
35076# Implementation must be kept synchronized with func_dirname
35077# and func_basename. For efficiency, we do not delegate to
35078# those functions but instead duplicate the functionality here.
35079func_dirname_and_basename ()
35080{
35081 case ${1} in
35082 */*) func_dirname_result="${1%/*}${2}" ;;
35083 * ) func_dirname_result="${3}" ;;
35084 esac
35085 func_basename_result="${1##*/}"
35086}
35087
35088# func_stripname prefix suffix name
35089# strip PREFIX and SUFFIX off of NAME.
35090# PREFIX and SUFFIX must not contain globbing or regex special
35091# characters, hashes, percent signs, but SUFFIX may contain a leading
35092# dot (in which case that matches only a dot).
35093func_stripname ()
35094{
35095 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35096 # positional parameters, so assign one to ordinary parameter first.
35097 func_stripname_result=${3}
35098 func_stripname_result=${func_stripname_result#"${1}"}
35099 func_stripname_result=${func_stripname_result%"${2}"}
35100}
35101
35102# func_opt_split
35103func_opt_split ()
35104{
35105 func_opt_split_opt=${1%%=*}
35106 func_opt_split_arg=${1#*=}
35107}
35108
35109# func_lo2o object
35110func_lo2o ()
35111{
35112 case ${1} in
35113 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35114 *) func_lo2o_result=${1} ;;
35115 esac
35116}
35117
35118# func_xform libobj-or-source
35119func_xform ()
35120{
35121 func_xform_result=${1%.*}.lo
35122}
35123
35124# func_arith arithmetic-term...
35125func_arith ()
35126{
35127 func_arith_result=$(( $* ))
35128}
35129
35130# func_len string
35131# STRING may not start with a hyphen.
35132func_len ()
35133{
35134 func_len_result=${#1}
35135}
35136
35137_LT_EOF
35138 ;;
35139 *) # Bourne compatible functions.
35140 cat << \_LT_EOF >> "$cfgfile"
35141
35142# func_dirname file append nondir_replacement
35143# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35144# otherwise set result to NONDIR_REPLACEMENT.
35145func_dirname ()
35146{
35147 # Extract subdirectory from the argument.
cristy232a9ab2010-06-26 01:02:54 +000035148 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000035149 if test "X$func_dirname_result" = "X${1}"; then
35150 func_dirname_result="${3}"
35151 else
35152 func_dirname_result="$func_dirname_result${2}"
35153 fi
35154}
35155
35156# func_basename file
35157func_basename ()
35158{
cristy232a9ab2010-06-26 01:02:54 +000035159 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000035160}
35161
35162
35163# func_stripname prefix suffix name
35164# strip PREFIX and SUFFIX off of NAME.
35165# PREFIX and SUFFIX must not contain globbing or regex special
35166# characters, hashes, percent signs, but SUFFIX may contain a leading
35167# dot (in which case that matches only a dot).
35168# func_strip_suffix prefix name
35169func_stripname ()
35170{
35171 case ${2} in
cristy232a9ab2010-06-26 01:02:54 +000035172 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
35173 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000035174 esac
35175}
35176
35177# sed scripts:
35178my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35179my_sed_long_arg='1s/^-[^=]*=//'
35180
35181# func_opt_split
35182func_opt_split ()
35183{
cristy232a9ab2010-06-26 01:02:54 +000035184 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
35185 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000035186}
35187
35188# func_lo2o object
35189func_lo2o ()
35190{
cristy232a9ab2010-06-26 01:02:54 +000035191 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000035192}
35193
35194# func_xform libobj-or-source
35195func_xform ()
35196{
cristy232a9ab2010-06-26 01:02:54 +000035197 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000035198}
35199
35200# func_arith arithmetic-term...
35201func_arith ()
35202{
35203 func_arith_result=`expr "$@"`
35204}
35205
35206# func_len string
35207# STRING may not start with a hyphen.
35208func_len ()
35209{
35210 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35211}
35212
35213_LT_EOF
35214esac
35215
35216case $lt_shell_append in
35217 yes)
35218 cat << \_LT_EOF >> "$cfgfile"
35219
35220# func_append var value
35221# Append VALUE to the end of shell variable VAR.
35222func_append ()
35223{
35224 eval "$1+=\$2"
35225}
35226_LT_EOF
35227 ;;
35228 *)
35229 cat << \_LT_EOF >> "$cfgfile"
35230
35231# func_append var value
35232# Append VALUE to the end of shell variable VAR.
35233func_append ()
35234{
35235 eval "$1=\$$1\$2"
35236}
35237
35238_LT_EOF
35239 ;;
35240 esac
35241
35242
35243 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35244 || (rm -f "$cfgfile"; exit 1)
35245
35246 mv -f "$cfgfile" "$ofile" ||
35247 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35248 chmod +x "$ofile"
35249
35250
35251 cat <<_LT_EOF >> "$ofile"
35252
35253# ### BEGIN LIBTOOL TAG CONFIG: CXX
35254
35255# The linker used to build libraries.
35256LD=$lt_LD_CXX
35257
cristy232a9ab2010-06-26 01:02:54 +000035258# How to create reloadable object files.
35259reload_flag=$lt_reload_flag_CXX
35260reload_cmds=$lt_reload_cmds_CXX
35261
cristy3ed852e2009-09-05 21:47:34 +000035262# Commands used to build an old-style archive.
35263old_archive_cmds=$lt_old_archive_cmds_CXX
35264
35265# A language specific compiler.
35266CC=$lt_compiler_CXX
35267
35268# Is the compiler the GNU compiler?
35269with_gcc=$GCC_CXX
35270
35271# Compiler flag to turn off builtin functions.
35272no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35273
35274# How to pass a linker flag through the compiler.
35275wl=$lt_lt_prog_compiler_wl_CXX
35276
35277# Additional compiler flags for building library objects.
35278pic_flag=$lt_lt_prog_compiler_pic_CXX
35279
35280# Compiler flag to prevent dynamic linking.
35281link_static_flag=$lt_lt_prog_compiler_static_CXX
35282
35283# Does compiler simultaneously support -c and -o options?
35284compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35285
35286# Whether or not to add -lc for building shared libraries.
35287build_libtool_need_lc=$archive_cmds_need_lc_CXX
35288
35289# Whether or not to disallow shared libs when runtime libs are static.
35290allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35291
35292# Compiler flag to allow reflexive dlopens.
35293export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35294
35295# Compiler flag to generate shared objects directly from archives.
35296whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35297
35298# Whether the compiler copes with passing no objects directly.
35299compiler_needs_object=$lt_compiler_needs_object_CXX
35300
35301# Create an old-style archive from a shared archive.
35302old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35303
35304# Create a temporary old-style archive to link instead of a shared archive.
35305old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35306
35307# Commands used to build a shared archive.
35308archive_cmds=$lt_archive_cmds_CXX
35309archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35310
35311# Commands used to build a loadable module if different from building
35312# a shared archive.
35313module_cmds=$lt_module_cmds_CXX
35314module_expsym_cmds=$lt_module_expsym_cmds_CXX
35315
35316# Whether we are building with GNU ld or not.
35317with_gnu_ld=$lt_with_gnu_ld_CXX
35318
35319# Flag that allows shared libraries with undefined symbols to be built.
35320allow_undefined_flag=$lt_allow_undefined_flag_CXX
35321
35322# Flag that enforces no undefined symbols.
35323no_undefined_flag=$lt_no_undefined_flag_CXX
35324
35325# Flag to hardcode \$libdir into a binary during linking.
35326# This must work even if \$libdir does not exist
35327hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35328
35329# If ld is used when linking, flag to hardcode \$libdir into a binary
35330# during linking. This must work even if \$libdir does not exist.
35331hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35332
35333# Whether we need a single "-rpath" flag with a separated argument.
35334hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35335
35336# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35337# DIR into the resulting binary.
35338hardcode_direct=$hardcode_direct_CXX
35339
35340# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35341# DIR into the resulting binary and the resulting library dependency is
35342# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35343# library is relocated.
35344hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35345
35346# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35347# into the resulting binary.
35348hardcode_minus_L=$hardcode_minus_L_CXX
35349
35350# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35351# into the resulting binary.
35352hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35353
35354# Set to "yes" if building a shared library automatically hardcodes DIR
35355# into the library and all subsequent libraries and executables linked
35356# against it.
35357hardcode_automatic=$hardcode_automatic_CXX
35358
35359# Set to yes if linker adds runtime paths of dependent libraries
35360# to runtime path list.
35361inherit_rpath=$inherit_rpath_CXX
35362
35363# Whether libtool must link a program against all its dependency libraries.
35364link_all_deplibs=$link_all_deplibs_CXX
35365
35366# Fix the shell variable \$srcfile for the compiler.
35367fix_srcfile_path=$lt_fix_srcfile_path_CXX
35368
35369# Set to "yes" if exported symbols are required.
35370always_export_symbols=$always_export_symbols_CXX
35371
35372# The commands to list exported symbols.
35373export_symbols_cmds=$lt_export_symbols_cmds_CXX
35374
35375# Symbols that should not be listed in the preloaded symbols.
35376exclude_expsyms=$lt_exclude_expsyms_CXX
35377
35378# Symbols that must always be exported.
35379include_expsyms=$lt_include_expsyms_CXX
35380
35381# Commands necessary for linking programs (against libraries) with templates.
35382prelink_cmds=$lt_prelink_cmds_CXX
35383
35384# Specify filename containing input files.
35385file_list_spec=$lt_file_list_spec_CXX
35386
35387# How to hardcode a shared library path into an executable.
35388hardcode_action=$hardcode_action_CXX
35389
35390# The directories searched by this compiler when creating a shared library.
35391compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35392
35393# Dependencies to place before and after the objects being linked to
35394# create a shared library.
35395predep_objects=$lt_predep_objects_CXX
35396postdep_objects=$lt_postdep_objects_CXX
35397predeps=$lt_predeps_CXX
35398postdeps=$lt_postdeps_CXX
35399
35400# The library search path used internally by the compiler when linking
35401# a shared library.
35402compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35403
35404# ### END LIBTOOL TAG CONFIG: CXX
35405_LT_EOF
35406
35407 ;;
35408 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35409 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35410 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35411 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35412 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35413 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35414
35415 esac
35416done # for ac_tag
35417
35418
cristy8b350f62009-11-15 23:12:43 +000035419as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000035420_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000035421ac_clean_files=$ac_clean_files_save
35422
35423test $ac_write_fail = 0 ||
cristy0684af42010-07-09 00:00:05 +000035424 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035425
35426
35427# configure is writing to config.log, and then calls config.status.
35428# config.status does its own redirection, appending to config.log.
35429# Unfortunately, on DOS this fails, as config.log is still kept open
35430# by configure, so config.status won't be able to write to it; its
35431# output is simply discarded. So we exec the FD to /dev/null,
35432# effectively closing config.log, so it can be properly (re)opened and
35433# appended to by config.status. When coming back to configure, we
35434# need to make the FD available again.
35435if test "$no_create" != yes; then
35436 ac_cs_success=:
35437 ac_config_status_args=
35438 test "$silent" = yes &&
35439 ac_config_status_args="$ac_config_status_args --quiet"
35440 exec 5>/dev/null
35441 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35442 exec 5>>config.log
35443 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35444 # would make configure fail if this is the last instruction.
cristy0684af42010-07-09 00:00:05 +000035445 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000035446fi
35447if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000035448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000035449$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35450fi
35451
35452
35453rm -f magick-version
35454
cristy430a7312010-01-21 20:44:04 +000035455result_dejavu_font_dir='none'
35456if test "${dejavu_font_dir}x" != 'x'; then
35457 result_dejavu_font_dir=$dejavu_font_dir
35458fi
35459
cristy3ed852e2009-09-05 21:47:34 +000035460result_ghostscript_font_dir='none'
35461if test "${ghostscript_font_dir}x" != 'x'; then
35462 result_ghostscript_font_dir=$ghostscript_font_dir
35463fi
35464
35465result_windows_font_dir='none'
35466if test "${windows_font_dir}x" != 'x'; then
35467 result_windows_font_dir=${windows_font_dir}
35468fi
35469
cristy8b350f62009-11-15 23:12:43 +000035470{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000035471ImageMagick is configured as follows. Please verify that this configuration
35472matches your expectations.
35473
35474Host system type: $host
35475Build system type: $build
35476
35477 Option Value
35478-------------------------------------------------------------------------------
35479Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35480Static libraries --enable-static=$enable_static $libtool_build_static_libs
35481Module support --with-modules=$with_modules $with_modules
35482GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35483Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35484High Dynamic Range Imagery
35485 --enable-hdri=$enable_hdri $enable_hdri
35486
35487Delegate Configuration:
35488BZLIB --with-bzlib=$with_bzlib $have_bzlib
35489Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035490Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035491DJVU --with-djvu=$with_djvu $have_djvu
35492DPS --with-dps=$with_dps $have_dps
35493FFTW --with-fftw=$with_fftw $have_fftw
35494FlashPIX --with-fpx=$with_fpx $have_fpx
35495FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35496FreeType --with-freetype=$with_freetype $have_freetype
35497GhostPCL None $PCLDelegate ($PCLVersion)
35498GhostXPS None $XPSDelegate ($XPSVersion)
35499Ghostscript None $PSDelegate ($GSVersion)
35500Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35501Ghostscript lib --with-gslib=$with_gslib $have_gslib
35502Graphviz --with-gvc=$with_gvc $have_gvc
35503JBIG --with-jbig=$with_jbig $have_jbig
35504JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35505JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035506LCMS v1 --with-lcms=$with_lcms $have_lcms
35507LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035508LQR --with-lqr=$with_lqr $have_lqr
35509Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35510OpenEXR --with-openexr=$with_openexr $have_openexr
35511PERL --with-perl=$with_perl $have_perl
35512PNG --with-png=$with_png $have_png
35513RSVG --with-rsvg=$with_rsvg $have_rsvg
35514TIFF --with-tiff=$with_tiff $have_tiff
35515Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35516WMF --with-wmf=$with_wmf $have_wmf
35517X11 --with-x=$with_x $have_x
35518XML --with-xml=$with_xml $have_xml
35519ZLIB --with-zlib=$with_zlib $have_zlib
35520
35521X11 Configuration:
35522 X_CFLAGS = $X_CFLAGS
35523 X_PRE_LIBS = $X_PRE_LIBS
35524 X_LIBS = $X_LIBS
35525 X_EXTRA_LIBS = $X_EXTRA_LIBS
35526
35527Options used to compile and link:
35528 PREFIX = $PREFIX_DIR
35529 EXEC-PREFIX = $EXEC_PREFIX_DIR
35530 VERSION = $PACKAGE_VERSION
35531 CC = $CC
35532 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035533 CPPFLAGS = $MAGICK_CPPFLAGS
35534 PCFLAGS = $MAGICK_PCFLAGS
35535 DEFS = $DEFS
35536 LDFLAGS = $LDFLAGS
35537 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35538 LIBS = $MAGICK_LIBS
35539 CXX = $CXX
35540 CXXFLAGS = $CXXFLAGS
35541" >&5
35542$as_echo "
35543ImageMagick is configured as follows. Please verify that this configuration
35544matches your expectations.
35545
35546Host system type: $host
35547Build system type: $build
35548
35549 Option Value
35550-------------------------------------------------------------------------------
35551Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35552Static libraries --enable-static=$enable_static $libtool_build_static_libs
35553Module support --with-modules=$with_modules $with_modules
35554GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35555Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35556High Dynamic Range Imagery
35557 --enable-hdri=$enable_hdri $enable_hdri
35558
35559Delegate Configuration:
35560BZLIB --with-bzlib=$with_bzlib $have_bzlib
35561Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035562Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035563DJVU --with-djvu=$with_djvu $have_djvu
35564DPS --with-dps=$with_dps $have_dps
35565FFTW --with-fftw=$with_fftw $have_fftw
35566FlashPIX --with-fpx=$with_fpx $have_fpx
35567FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35568FreeType --with-freetype=$with_freetype $have_freetype
35569GhostPCL None $PCLDelegate ($PCLVersion)
35570GhostXPS None $XPSDelegate ($XPSVersion)
35571Ghostscript None $PSDelegate ($GSVersion)
35572Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35573Ghostscript lib --with-gslib=$with_gslib $have_gslib
35574Graphviz --with-gvc=$with_gvc $have_gvc
35575JBIG --with-jbig=$with_jbig $have_jbig
35576JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35577JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035578LCMS v1 --with-lcms=$with_lcms $have_lcms
35579LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035580LQR --with-lqr=$with_lqr $have_lqr
35581Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35582OpenEXR --with-openexr=$with_openexr $have_openexr
35583PERL --with-perl=$with_perl $have_perl
35584PNG --with-png=$with_png $have_png
35585RSVG --with-rsvg=$with_rsvg $have_rsvg
35586TIFF --with-tiff=$with_tiff $have_tiff
35587Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35588WMF --with-wmf=$with_wmf $have_wmf
35589X11 --with-x=$with_x $have_x
35590XML --with-xml=$with_xml $have_xml
35591ZLIB --with-zlib=$with_zlib $have_zlib
35592
35593X11 Configuration:
35594 X_CFLAGS = $X_CFLAGS
35595 X_PRE_LIBS = $X_PRE_LIBS
35596 X_LIBS = $X_LIBS
35597 X_EXTRA_LIBS = $X_EXTRA_LIBS
35598
35599Options used to compile and link:
35600 PREFIX = $PREFIX_DIR
35601 EXEC-PREFIX = $EXEC_PREFIX_DIR
35602 VERSION = $PACKAGE_VERSION
35603 CC = $CC
35604 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035605 CPPFLAGS = $MAGICK_CPPFLAGS
35606 PCFLAGS = $MAGICK_PCFLAGS
35607 DEFS = $DEFS
35608 LDFLAGS = $LDFLAGS
35609 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35610 LIBS = $MAGICK_LIBS
35611 CXX = $CXX
35612 CXXFLAGS = $CXXFLAGS
35613" >&6; }