blob: 813fabb397105f3da8a7ecd12a6b941399de2f8a [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy45dbd322011-03-27 16:40:38 +00003# Generated by GNU Autoconf 2.68 for ImageMagick 6.6.9.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy3ed852e2009-09-05 21:47:34 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristy98dddb52010-11-04 00:30:15 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +000011#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000094as_myself=
cristy8b350f62009-11-15 23:12:43 +000095case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000096 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
cristy3ed852e2009-09-05 21:47:34 +0000104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000115 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000116fi
117
cristy8b350f62009-11-15 23:12:43 +0000118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
cristy8b350f62009-11-15 23:12:43 +0000136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000177test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188else
189 as_have_required=no
190fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211fi
212fi
213 done;;
214 esac
215 as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
cristyda16f162011-02-19 23:52:17 +0000228 # Preserve -v and -x to the replacement shell.
cristy8b350f62009-11-15 23:12:43 +0000229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
cristyda16f162011-02-19 23:52:17 +0000233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
cristy8b350f62009-11-15 23:12:43 +0000240fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: http://www.imagemagick.org about your system, including
251$0: any error possibly output before this message. Then
252$0: install a modern shell, or manually run the script
253$0: under such a shell if you do have one."
254 fi
255 exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273 { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282 return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290 set +e
291 as_fn_set_status $1
292 exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375fi # as_fn_arith
376
377
cristy98dddb52010-11-04 00:30:15 +0000378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000382# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000383as_fn_error ()
384{
cristy98dddb52010-11-04 00:30:15 +0000385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000389 fi
cristy98dddb52010-11-04 00:30:15 +0000390 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000391 as_fn_exit $as_status
392} # as_fn_error
393
cristy3ed852e2009-09-05 21:47:34 +0000394if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397else
398 as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403else
404 as_basename=false
405fi
406
cristy8b350f62009-11-15 23:12:43 +0000407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409else
410 as_dirname=false
411fi
cristy3ed852e2009-09-05 21:47:34 +0000412
cristy3ed852e2009-09-05 21:47:34 +0000413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
cristy8b350f62009-11-15 23:12:43 +0000432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000438
439
cristy8b350f62009-11-15 23:12:43 +0000440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000461 { $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 +0000462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469}
470
cristy3ed852e2009-09-05 21:47:34 +0000471ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000472case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000473-n*)
cristy8b350f62009-11-15 23:12:43 +0000474 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000479 esac;;
480*)
481 ECHO_N='-n';;
482esac
cristy3ed852e2009-09-05 21:47:34 +0000483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505else
506 as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000512 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000513else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
cristy8b350f62009-11-15 23:12:43 +0000531 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000532 -*)set "./$1";;
533 esac;
cristy8b350f62009-11-15 23:12:43 +0000534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
cristy73bd4a52010-10-05 11:24:23 +0000547SHELL=${CONFIG_SHELL-/bin/sh}
548
cristy73bd4a52010-10-05 11:24:23 +0000549lt_ltdl_dir='ltdl'
550
551lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
552
cristy0c60a692010-11-04 01:09:47 +0000553
cristycd4c5312009-11-22 01:19:08 +0000554test -n "$DJDIR" || exec 7<&0 </dev/null
555exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000556
557# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000558# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562#
563# Initializations.
564#
565ac_default_prefix=/usr/local
566ac_clean_files=
567ac_config_libobj_dir=.
568LIBOBJS=
569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000573
574# Identity of this package.
575PACKAGE_NAME='ImageMagick'
cristy45dbd322011-03-27 16:40:38 +0000576PACKAGE_TARNAME='ImageMagick-6.6.9'
577PACKAGE_VERSION='6.6.9'
578PACKAGE_STRING='ImageMagick 6.6.9'
cristy3ed852e2009-09-05 21:47:34 +0000579PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000580PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000581
582ac_unique_file="magick/MagickCore.h"
583ac_config_libobj_dir=ltdl
584# Factoring default headers for most tests.
585ac_includes_default="\
586#include <stdio.h>
587#ifdef HAVE_SYS_TYPES_H
588# include <sys/types.h>
589#endif
590#ifdef HAVE_SYS_STAT_H
591# include <sys/stat.h>
592#endif
593#ifdef STDC_HEADERS
594# include <stdlib.h>
595# include <stddef.h>
596#else
597# ifdef HAVE_STDLIB_H
598# include <stdlib.h>
599# endif
600#endif
601#ifdef HAVE_STRING_H
602# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603# include <memory.h>
604# endif
605# include <string.h>
606#endif
607#ifdef HAVE_STRINGS_H
608# include <strings.h>
609#endif
610#ifdef HAVE_INTTYPES_H
611# include <inttypes.h>
612#endif
613#ifdef HAVE_STDINT_H
614# include <stdint.h>
615#endif
616#ifdef HAVE_UNISTD_H
617# include <unistd.h>
618#endif"
619
cristycd4c5312009-11-22 01:19:08 +0000620ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000621ac_subst_vars='ltdl_LTLIBOBJS
622ltdl_LIBOBJS
623am__EXEEXT_FALSE
624am__EXEEXT_TRUE
625LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000626MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000627MAGICK_LIBS
628MAGICK_LDFLAGS
629MAGICK_PCFLAGS
630MAGICK_CPPFLAGS
631MAGICK_CXXFLAGS
632MAGICK_CFLAGS
633MAGICK_DEP_LIBS
634MAGICK_LTDLDEPS
635MAGICK_LIBLTDL
636OSX_GCOV_LDFLAG
637DELEGATES
638MAGICKCORE_PATH
639PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000640WITH_PERL_DYNAMIC_FALSE
641WITH_PERL_DYNAMIC_TRUE
642WITH_PERL_STATIC_FALSE
643WITH_PERL_STATIC_TRUE
644WITH_PERL_FALSE
645WITH_PERL_TRUE
646PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000647GSVersion
648GSPSDevice
649GSPDFDevice
650GSMonoDevice
651GSEPSDevice
652GSColorDevice
653GSCMYKDevice
654GSAlphaDevice
655XPSVersion
656XPSCMYKDevice
657XPSColorDevice
658XPSMonoDevice
659PCLVersion
660PCLCMYKDevice
661PCLColorDevice
662PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000663ZIP_DELEGATE_FALSE
664ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000665ZIP
cristy73bd4a52010-10-05 11:24:23 +0000666P7ZIP_DELEGATE_FALSE
667P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000668P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000669RPM_DELEGATE_FALSE
670RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000671RPM
672PERL
673TAR
674ShowImageDelegate
675type_include_files
676ghostscript_font_dir
677windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000678dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000679PrintDelegate
680ZipDelegate
681XPSDelegate
682WWWDecodeDelegate
683WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000684UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000685TXTDelegate
686SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000687RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000688RMDelegate
689RLEEncodeDelegate
690PSDelegate
691POVDelegate
692PGPDecodeDelegate
693PCLDelegate
694MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000695MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696MPEGEncodeDelegate
697MPEGDecodeDelegate
698MANDelegate
699LaunchDelegate
700LZWEncodeDelegate
701LZWDecodeDelegate
702LPRDelegate
703LPDelegate
704ILBMEncodeDelegate
705ILBMDecodeDelegate
706HTMLDecodeDelegate
707HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708GnuplotDecodeDelegate
709MogrifyDelegate
710DisplayDelegate
711ConvertDelegate
712FIGDecodeDelegate
713EditorDelegate
714EchoDelegate
715DVIDecodeDelegate
716GVCDecodeDelegate
717DNGDecodeDelegate
718CatDelegate
719CGMDecodeDelegate
720BrowseDelegate
721BZIPDelegate
722BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000723AutotraceDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000724SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000725CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000726DOCUMENTATION_PATH
727FILTER_PATH
728CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000729LIBRARY_PATH
730EXECUTABLE_PATH
731PERLMAINCC
732XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000733XML_DELEGATE_FALSE
734XML_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000735xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000736WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000737WMF_DELEGATE_FALSE
738WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000739WEBP_LIBS
740WEBP_DELEGATE_FALSE
741WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000742TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000743TIFF_DELEGATE_FALSE
744TIFF_DELEGATE_TRUE
745CAIRO_DELEGATE_FALSE
746CAIRO_DELEGATE_TRUE
747RSVG_DELEGATE_FALSE
748RSVG_DELEGATE_TRUE
749CAIRO_SVG_LIBS
750CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000751RSVG_LIBS
752RSVG_CFLAGS
753PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000754PNG_DELEGATE_FALSE
755PNG_DELEGATE_TRUE
756OPENEXR_DELEGATE_FALSE
757OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000758OPENEXR_LIBS
759OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000760LZMA_LIBS
761LZMA_DELEGATE_FALSE
762LZMA_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000763LQR_DELEGATE_FALSE
764LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000765LQR_LIBS
766LQR_CFLAGS
767LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000768LCMS_DELEGATE_FALSE
769LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000770JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000771JP2_DELEGATE_FALSE
772JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000773JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000774JPEG_DELEGATE_FALSE
775JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000776JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000777JBIG_DELEGATE_FALSE
778JBIG_DELEGATE_TRUE
779GVC_DELEGATE_FALSE
780GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000781GVC_LIBS
782GVC_CFLAGS
783GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000784GS_DELEGATE_FALSE
785GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000786FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000787FREETYPE_DELEGATE_FALSE
788FREETYPE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000789freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000790FONTCONFIG_DELEGATE_FALSE
791FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000792FONTCONFIG_LIBS
793FONTCONFIG_CFLAGS
794FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000795FPX_DELEGATE_FALSE
796FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000797FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000798FFTW_DELEGATE_FALSE
799FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000800DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000801DJVU_DELEGATE_FALSE
802DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000803DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804DPS_DELEGATE_FALSE
805DPS_DELEGATE_TRUE
806AUTOTRACE_DELEGATE_FALSE
807AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000808AUTOTRACE_LIBS
809AUTOTRACE_CFLAGS
810LIB_DL
811ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000812ZLIB_DELEGATE_FALSE
813ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000814XEXT_LIBS
815X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000816X11_DELEGATE_FALSE
817X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000818X_EXTRA_LIBS
819X_LIBS
820X_PRE_LIBS
821X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000822XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000823BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000824BZLIB_DELEGATE_FALSE
825BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000826CCMALLOCDelegate
827UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000828HasUMEM_FALSE
829HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000830THREAD_LIBS
831GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000832WITH_MAGICK_PLUS_PLUS_FALSE
833WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000834OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000835MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000836POW_LIB
837LIBOBJS
838UINTPTR_T
839UINTMAX_T
840UINT64_T
841INT64_T
842UINT32_T
843INT32_T
844UINT16_T
845INT16_T
846UINT8_T
847INT8_T
848LIBRARY_EXTRA_CPPFLAGS
849MODULE_EXTRA_CPPFLAGS
850LIBSTDCLDFLAGS
851PERL_MAKE_OPTIONS
852QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000853MAINT
854MAINTAINER_MODE_FALSE
855MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000856MAGICK_HDRI
857DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000858WITH_LTDL_FALSE
859WITH_LTDL_TRUE
860WITH_MODULES_FALSE
861WITH_MODULES_TRUE
862WITH_SHARED_LIBS_FALSE
863WITH_SHARED_LIBS_TRUE
864LTDLOPEN
865LT_CONFIG_H
866CONVENIENCE_LTDL_FALSE
867CONVENIENCE_LTDL_TRUE
868INSTALL_LTDL_FALSE
869INSTALL_LTDL_TRUE
870ARGZ_H
871sys_symbol_underscore
872LIBADD_DL
873LT_DLPREOPEN
874LIBADD_DLD_LINK
875LIBADD_SHL_LOAD
876LIBADD_DLOPEN
877LT_DLLOADERS
878INCLTDL
879LTDLINCL
880LTDLDEPS
881LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000882LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000883CXXCPP
884OTOOL64
885OTOOL
886LIPO
887NMEDIT
888DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000889MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000890RANLIB
cristyda16f162011-02-19 23:52:17 +0000891ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000892AR
893NM
894ac_ct_DUMPBIN
895DUMPBIN
896LIBTOOL
897OBJDUMP
898DLLTOOL
899AS
cristy3ed852e2009-09-05 21:47:34 +0000900LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000901CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000902CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000903OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000904PTHREAD_CFLAGS
905PTHREAD_LIBS
906PTHREAD_CC
907ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000908WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000909USING_CL_FALSE
910USING_CL_TRUE
911CYGWIN_BUILD_FALSE
912CYGWIN_BUILD_TRUE
913WIN32_NATIVE_BUILD_FALSE
914WIN32_NATIVE_BUILD_TRUE
915WINGDI32_DELEGATE_FALSE
916WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000917GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000918PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000919LN_S
cristy3ed852e2009-09-05 21:47:34 +0000920LD
cristy73bd4a52010-10-05 11:24:23 +0000921FGREP
922SED
923am__fastdepCXX_FALSE
924am__fastdepCXX_TRUE
925CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000926ac_ct_CXX
927CXXFLAGS
928CXX
cristya0b81c32010-01-22 02:54:33 +0000929EGREP
930GREP
931CPP
cristy73bd4a52010-10-05 11:24:23 +0000932am__fastdepCC_FALSE
933am__fastdepCC_TRUE
934CCDEPMODE
935AMDEPBACKSLASH
936AMDEP_FALSE
937AMDEP_TRUE
938am__quote
939am__include
940DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000941OBJEXT
942EXEEXT
943ac_ct_CC
944CPPFLAGS
945LDFLAGS
946CFLAGS
947CC
948DIRSEP
949MAGICK_FILTER_MODULE_PATH
950MAGICK_CONFIGURE_BUILD_PATH
951MAGICK_CONFIGURE_SRC_PATH
952MAGICK_CODER_MODULE_PATH
953MAN_DIR
954INFO_DIR
955PERSISTINCLUDE_DIR
956INCLUDE_DIR
957LIB_DIR
958LOCALSTATE_DIR
959SHAREDSTATE_DIR
960SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000961DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000962DATA_DIR
963LIBEXEC_DIR
964SBIN_DIR
965BIN_DIR
966EXEC_PREFIX_DIR
967PREFIX_DIR
968CONFIG_STATUS_DEPENDENCIES
969MAGICK_LIB_VERSION_NUMBER
970MAGICK_LIB_VERSION_TEXT
971MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000972AM_BACKSLASH
973AM_DEFAULT_VERBOSITY
974am__untar
975am__tar
976AMTAR
977am__leading_dot
978SET_MAKE
979AWK
980mkdir_p
981MKDIR_P
982INSTALL_STRIP_PROGRAM
983STRIP
984install_sh
985MAKEINFO
986AUTOHEADER
987AUTOMAKE
988AUTOCONF
989ACLOCAL
990VERSION
991PACKAGE
992CYGPATH_W
993am__isrc
994INSTALL_DATA
995INSTALL_SCRIPT
996INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +0000997PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +0000998PACKAGE_RELEASE_DATE
999PACKAGE_LIB_VERSION_NUMBER
1000PACKAGE_LIB_VERSION
1001PACKAGE_CHANGE_DATE
1002PACKAGE_RELEASE
cristyd694ca32011-03-27 21:42:54 +00001003MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001004MAGICK_LIBRARY_VERSION_INFO
1005MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001006MAGICK_LIBRARY_AGE
1007MAGICK_LIBRARY_REVISION
1008MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001009MAGICK_TARGET_OS
1010MAGICK_TARGET_VENDOR
1011MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001012target_os
1013target_vendor
1014target_cpu
1015target
1016host_os
1017host_vendor
1018host_cpu
1019host
1020build_os
1021build_vendor
1022build_cpu
1023build
1024CONFIGURE_ARGS
1025DISTCHECK_CONFIG_FLAGS
1026target_alias
1027host_alias
1028build_alias
1029LIBS
1030ECHO_T
1031ECHO_N
1032ECHO_C
1033DEFS
1034mandir
1035localedir
1036libdir
1037psdir
1038pdfdir
1039dvidir
1040htmldir
1041infodir
1042docdir
1043oldincludedir
1044includedir
1045localstatedir
1046sharedstatedir
1047sysconfdir
1048datadir
1049datarootdir
1050libexecdir
1051sbindir
1052bindir
1053program_transform_name
1054prefix
1055exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001056PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001057PACKAGE_BUGREPORT
1058PACKAGE_STRING
1059PACKAGE_VERSION
1060PACKAGE_TARNAME
1061PACKAGE_NAME
1062PATH_SEPARATOR
1063SHELL'
1064ac_subst_files=''
1065ac_user_opts='
1066enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001067enable_silent_rules
1068enable_dependency_tracking
1069with_gnu_ld
1070with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001071enable_bounds_checking
1072enable_osx_universal_binary
1073with_threads
1074enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001075enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001076enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001077enable_shared
1078enable_static
1079with_pic
1080enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001081with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001082enable_libtool_lock
1083with_included_ltdl
1084with_ltdl_include
1085with_ltdl_lib
1086enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001087with_modules
1088enable_delegate_build
1089enable_deprecated
1090enable_installed
1091enable_cipher
1092enable_embeddable
1093enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001094enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001095enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001096enable_ccmalloc
1097enable_efence
1098enable_prof
1099enable_gprof
1100enable_gcov
1101with_method_prefix
1102with_quantum_depth
1103with_cache
1104with_frozenpaths
1105with_magick_plus_plus
1106with_perl
1107with_perl_options
1108with_umem
1109with_libstdc
1110with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001111with_x
cristy3ed852e2009-09-05 21:47:34 +00001112with_zlib
1113with_autotrace
1114with_dps
1115with_djvu
cristy430a7312010-01-21 20:44:04 +00001116with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001117with_fftw
1118with_fpx
1119with_fontconfig
1120with_freetype
1121with_gslib
1122with_fontpath
1123with_gs_font_dir
1124with_gvc
1125with_jbig
1126with_jpeg
1127with_jp2
1128with_lcms
cristy71203402010-06-18 13:12:03 +00001129with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001130with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001131with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001132with_openexr
1133with_png
1134with_rsvg
1135with_tiff
cristyb1860752011-03-14 00:27:46 +00001136with_webp
cristy3ed852e2009-09-05 21:47:34 +00001137with_windows_font_dir
1138with_wmf
1139with_xml
1140'
1141 ac_precious_vars='build_alias
1142host_alias
1143target_alias
1144CC
1145CFLAGS
1146LDFLAGS
1147LIBS
1148CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001149CPP
cristy3ed852e2009-09-05 21:47:34 +00001150CXX
1151CXXFLAGS
1152CCC
cristy73bd4a52010-10-05 11:24:23 +00001153PKG_CONFIG
1154CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001155XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001156AUTOTRACE_CFLAGS
1157AUTOTRACE_LIBS
1158FONTCONFIG_CFLAGS
1159FONTCONFIG_LIBS
1160GVC_CFLAGS
1161GVC_LIBS
1162LQR_CFLAGS
1163LQR_LIBS
1164OPENEXR_CFLAGS
1165OPENEXR_LIBS
1166RSVG_CFLAGS
1167RSVG_LIBS
1168CAIRO_SVG_CFLAGS
1169CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001170
1171
1172# Initialize some variables set by options.
1173ac_init_help=
1174ac_init_version=false
1175ac_unrecognized_opts=
1176ac_unrecognized_sep=
1177# The variables have the same names as the options, with
1178# dashes changed to underlines.
1179cache_file=/dev/null
1180exec_prefix=NONE
1181no_create=
1182no_recursion=
1183prefix=NONE
1184program_prefix=NONE
1185program_suffix=NONE
1186program_transform_name=s,x,x,
1187silent=
1188site=
1189srcdir=
1190verbose=
1191x_includes=NONE
1192x_libraries=NONE
1193
1194# Installation directory options.
1195# These are left unexpanded so users can "make install exec_prefix=/foo"
1196# and all the variables that are supposed to be based on exec_prefix
1197# by default will actually change.
1198# Use braces instead of parens because sh, perl, etc. also accept them.
1199# (The list follows the same order as the GNU Coding Standards.)
1200bindir='${exec_prefix}/bin'
1201sbindir='${exec_prefix}/sbin'
1202libexecdir='${exec_prefix}/libexec'
1203datarootdir='${prefix}/share'
1204datadir='${datarootdir}'
1205sysconfdir='${prefix}/etc'
1206sharedstatedir='${prefix}/com'
1207localstatedir='${prefix}/var'
1208includedir='${prefix}/include'
1209oldincludedir='/usr/include'
1210docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1211infodir='${datarootdir}/info'
1212htmldir='${docdir}'
1213dvidir='${docdir}'
1214pdfdir='${docdir}'
1215psdir='${docdir}'
1216libdir='${exec_prefix}/lib'
1217localedir='${datarootdir}/locale'
1218mandir='${datarootdir}/man'
1219
1220ac_prev=
1221ac_dashdash=
1222for ac_option
1223do
1224 # If the previous option needs an argument, assign it.
1225 if test -n "$ac_prev"; then
1226 eval $ac_prev=\$ac_option
1227 ac_prev=
1228 continue
1229 fi
1230
1231 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001232 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1233 *=) ac_optarg= ;;
1234 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001235 esac
1236
1237 # Accept the important Cygnus configure options, so we can diagnose typos.
1238
1239 case $ac_dashdash$ac_option in
1240 --)
1241 ac_dashdash=yes ;;
1242
1243 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1244 ac_prev=bindir ;;
1245 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1246 bindir=$ac_optarg ;;
1247
1248 -build | --build | --buil | --bui | --bu)
1249 ac_prev=build_alias ;;
1250 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1251 build_alias=$ac_optarg ;;
1252
1253 -cache-file | --cache-file | --cache-fil | --cache-fi \
1254 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1255 ac_prev=cache_file ;;
1256 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1257 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1258 cache_file=$ac_optarg ;;
1259
1260 --config-cache | -C)
1261 cache_file=config.cache ;;
1262
1263 -datadir | --datadir | --datadi | --datad)
1264 ac_prev=datadir ;;
1265 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1266 datadir=$ac_optarg ;;
1267
1268 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1269 | --dataroo | --dataro | --datar)
1270 ac_prev=datarootdir ;;
1271 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1272 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1273 datarootdir=$ac_optarg ;;
1274
1275 -disable-* | --disable-*)
1276 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001279 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1283 *"
1284"enable_$ac_useropt"
1285"*) ;;
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
1288 esac
1289 eval enable_$ac_useropt=no ;;
1290
1291 -docdir | --docdir | --docdi | --doc | --do)
1292 ac_prev=docdir ;;
1293 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1294 docdir=$ac_optarg ;;
1295
1296 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1297 ac_prev=dvidir ;;
1298 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1299 dvidir=$ac_optarg ;;
1300
1301 -enable-* | --enable-*)
1302 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001305 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001306 ac_useropt_orig=$ac_useropt
1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1309 *"
1310"enable_$ac_useropt"
1311"*) ;;
1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1313 ac_unrecognized_sep=', ';;
1314 esac
1315 eval enable_$ac_useropt=\$ac_optarg ;;
1316
1317 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1318 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1319 | --exec | --exe | --ex)
1320 ac_prev=exec_prefix ;;
1321 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1322 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1323 | --exec=* | --exe=* | --ex=*)
1324 exec_prefix=$ac_optarg ;;
1325
1326 -gas | --gas | --ga | --g)
1327 # Obsolete; use --with-gas.
1328 with_gas=yes ;;
1329
1330 -help | --help | --hel | --he | -h)
1331 ac_init_help=long ;;
1332 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1333 ac_init_help=recursive ;;
1334 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1335 ac_init_help=short ;;
1336
1337 -host | --host | --hos | --ho)
1338 ac_prev=host_alias ;;
1339 -host=* | --host=* | --hos=* | --ho=*)
1340 host_alias=$ac_optarg ;;
1341
1342 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1343 ac_prev=htmldir ;;
1344 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1345 | --ht=*)
1346 htmldir=$ac_optarg ;;
1347
1348 -includedir | --includedir | --includedi | --included | --include \
1349 | --includ | --inclu | --incl | --inc)
1350 ac_prev=includedir ;;
1351 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1352 | --includ=* | --inclu=* | --incl=* | --inc=*)
1353 includedir=$ac_optarg ;;
1354
1355 -infodir | --infodir | --infodi | --infod | --info | --inf)
1356 ac_prev=infodir ;;
1357 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1358 infodir=$ac_optarg ;;
1359
1360 -libdir | --libdir | --libdi | --libd)
1361 ac_prev=libdir ;;
1362 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1363 libdir=$ac_optarg ;;
1364
1365 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1366 | --libexe | --libex | --libe)
1367 ac_prev=libexecdir ;;
1368 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1369 | --libexe=* | --libex=* | --libe=*)
1370 libexecdir=$ac_optarg ;;
1371
1372 -localedir | --localedir | --localedi | --localed | --locale)
1373 ac_prev=localedir ;;
1374 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1375 localedir=$ac_optarg ;;
1376
1377 -localstatedir | --localstatedir | --localstatedi | --localstated \
1378 | --localstate | --localstat | --localsta | --localst | --locals)
1379 ac_prev=localstatedir ;;
1380 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1381 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1382 localstatedir=$ac_optarg ;;
1383
1384 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1385 ac_prev=mandir ;;
1386 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1387 mandir=$ac_optarg ;;
1388
1389 -nfp | --nfp | --nf)
1390 # Obsolete; use --without-fp.
1391 with_fp=no ;;
1392
1393 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1394 | --no-cr | --no-c | -n)
1395 no_create=yes ;;
1396
1397 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1398 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1399 no_recursion=yes ;;
1400
1401 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1402 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1403 | --oldin | --oldi | --old | --ol | --o)
1404 ac_prev=oldincludedir ;;
1405 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1406 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1407 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1408 oldincludedir=$ac_optarg ;;
1409
1410 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1411 ac_prev=prefix ;;
1412 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1413 prefix=$ac_optarg ;;
1414
1415 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1416 | --program-pre | --program-pr | --program-p)
1417 ac_prev=program_prefix ;;
1418 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1419 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1420 program_prefix=$ac_optarg ;;
1421
1422 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1423 | --program-suf | --program-su | --program-s)
1424 ac_prev=program_suffix ;;
1425 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1426 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1427 program_suffix=$ac_optarg ;;
1428
1429 -program-transform-name | --program-transform-name \
1430 | --program-transform-nam | --program-transform-na \
1431 | --program-transform-n | --program-transform- \
1432 | --program-transform | --program-transfor \
1433 | --program-transfo | --program-transf \
1434 | --program-trans | --program-tran \
1435 | --progr-tra | --program-tr | --program-t)
1436 ac_prev=program_transform_name ;;
1437 -program-transform-name=* | --program-transform-name=* \
1438 | --program-transform-nam=* | --program-transform-na=* \
1439 | --program-transform-n=* | --program-transform-=* \
1440 | --program-transform=* | --program-transfor=* \
1441 | --program-transfo=* | --program-transf=* \
1442 | --program-trans=* | --program-tran=* \
1443 | --progr-tra=* | --program-tr=* | --program-t=*)
1444 program_transform_name=$ac_optarg ;;
1445
1446 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1447 ac_prev=pdfdir ;;
1448 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1449 pdfdir=$ac_optarg ;;
1450
1451 -psdir | --psdir | --psdi | --psd | --ps)
1452 ac_prev=psdir ;;
1453 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1454 psdir=$ac_optarg ;;
1455
1456 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1457 | -silent | --silent | --silen | --sile | --sil)
1458 silent=yes ;;
1459
1460 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1461 ac_prev=sbindir ;;
1462 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1463 | --sbi=* | --sb=*)
1464 sbindir=$ac_optarg ;;
1465
1466 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1467 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1468 | --sharedst | --shareds | --shared | --share | --shar \
1469 | --sha | --sh)
1470 ac_prev=sharedstatedir ;;
1471 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1472 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1473 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1474 | --sha=* | --sh=*)
1475 sharedstatedir=$ac_optarg ;;
1476
1477 -site | --site | --sit)
1478 ac_prev=site ;;
1479 -site=* | --site=* | --sit=*)
1480 site=$ac_optarg ;;
1481
1482 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1483 ac_prev=srcdir ;;
1484 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1485 srcdir=$ac_optarg ;;
1486
1487 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1488 | --syscon | --sysco | --sysc | --sys | --sy)
1489 ac_prev=sysconfdir ;;
1490 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1491 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1492 sysconfdir=$ac_optarg ;;
1493
1494 -target | --target | --targe | --targ | --tar | --ta | --t)
1495 ac_prev=target_alias ;;
1496 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1497 target_alias=$ac_optarg ;;
1498
1499 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1500 verbose=yes ;;
1501
1502 -version | --version | --versio | --versi | --vers | -V)
1503 ac_init_version=: ;;
1504
1505 -with-* | --with-*)
1506 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1507 # Reject names that are not valid shell variable names.
1508 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001509 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001510 ac_useropt_orig=$ac_useropt
1511 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1512 case $ac_user_opts in
1513 *"
1514"with_$ac_useropt"
1515"*) ;;
1516 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1517 ac_unrecognized_sep=', ';;
1518 esac
1519 eval with_$ac_useropt=\$ac_optarg ;;
1520
1521 -without-* | --without-*)
1522 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1523 # Reject names that are not valid shell variable names.
1524 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001525 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001526 ac_useropt_orig=$ac_useropt
1527 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1528 case $ac_user_opts in
1529 *"
1530"with_$ac_useropt"
1531"*) ;;
1532 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1533 ac_unrecognized_sep=', ';;
1534 esac
1535 eval with_$ac_useropt=no ;;
1536
1537 --x)
1538 # Obsolete; use --with-x.
1539 with_x=yes ;;
1540
1541 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1542 | --x-incl | --x-inc | --x-in | --x-i)
1543 ac_prev=x_includes ;;
1544 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1545 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1546 x_includes=$ac_optarg ;;
1547
1548 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1549 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1550 ac_prev=x_libraries ;;
1551 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1552 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1553 x_libraries=$ac_optarg ;;
1554
cristy98dddb52010-11-04 00:30:15 +00001555 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1556Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001557 ;;
1558
1559 *=*)
1560 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1561 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001562 case $ac_envvar in #(
1563 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001564 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001565 esac
cristy3ed852e2009-09-05 21:47:34 +00001566 eval $ac_envvar=\$ac_optarg
1567 export $ac_envvar ;;
1568
1569 *)
1570 # FIXME: should be removed in autoconf 3.0.
1571 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1572 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1573 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001574 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001575 ;;
1576
1577 esac
1578done
1579
1580if test -n "$ac_prev"; then
1581 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001582 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001583fi
1584
1585if test -n "$ac_unrecognized_opts"; then
1586 case $enable_option_checking in
1587 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001588 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001589 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1590 esac
1591fi
1592
1593# Check all directory arguments for consistency.
1594for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1595 datadir sysconfdir sharedstatedir localstatedir includedir \
1596 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1597 libdir localedir mandir
1598do
1599 eval ac_val=\$$ac_var
1600 # Remove trailing slashes.
1601 case $ac_val in
1602 */ )
1603 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1604 eval $ac_var=\$ac_val;;
1605 esac
1606 # Be sure to have absolute directory names.
1607 case $ac_val in
1608 [\\/$]* | ?:[\\/]* ) continue;;
1609 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1610 esac
cristy98dddb52010-11-04 00:30:15 +00001611 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001612done
1613
1614# There might be people who depend on the old broken behavior: `$host'
1615# used to hold the argument of --host etc.
1616# FIXME: To remove some day.
1617build=$build_alias
1618host=$host_alias
1619target=$target_alias
1620
1621# FIXME: To remove some day.
1622if test "x$host_alias" != x; then
1623 if test "x$build_alias" = x; then
1624 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001625 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1626 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001627 elif test "x$build_alias" != "x$host_alias"; then
1628 cross_compiling=yes
1629 fi
1630fi
1631
1632ac_tool_prefix=
1633test -n "$host_alias" && ac_tool_prefix=$host_alias-
1634
1635test "$silent" = yes && exec 6>/dev/null
1636
1637
1638ac_pwd=`pwd` && test -n "$ac_pwd" &&
1639ac_ls_di=`ls -di .` &&
1640ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001641 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001642test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001643 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001644
1645
1646# Find the source files, if location was not specified.
1647if test -z "$srcdir"; then
1648 ac_srcdir_defaulted=yes
1649 # Try the directory containing this script, then the parent directory.
1650 ac_confdir=`$as_dirname -- "$as_myself" ||
1651$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1652 X"$as_myself" : 'X\(//\)[^/]' \| \
1653 X"$as_myself" : 'X\(//\)$' \| \
1654 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1655$as_echo X"$as_myself" |
1656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1657 s//\1/
1658 q
1659 }
1660 /^X\(\/\/\)[^/].*/{
1661 s//\1/
1662 q
1663 }
1664 /^X\(\/\/\)$/{
1665 s//\1/
1666 q
1667 }
1668 /^X\(\/\).*/{
1669 s//\1/
1670 q
1671 }
1672 s/.*/./; q'`
1673 srcdir=$ac_confdir
1674 if test ! -r "$srcdir/$ac_unique_file"; then
1675 srcdir=..
1676 fi
1677else
1678 ac_srcdir_defaulted=no
1679fi
1680if test ! -r "$srcdir/$ac_unique_file"; then
1681 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001682 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001683fi
1684ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1685ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001686 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001687 pwd)`
1688# When building in place, set srcdir=.
1689if test "$ac_abs_confdir" = "$ac_pwd"; then
1690 srcdir=.
1691fi
1692# Remove unnecessary trailing slashes from srcdir.
1693# Double slashes in file names in object file debugging info
1694# mess up M-x gdb in Emacs.
1695case $srcdir in
1696*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1697esac
1698for ac_var in $ac_precious_vars; do
1699 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1700 eval ac_env_${ac_var}_value=\$${ac_var}
1701 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1702 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1703done
1704
1705#
1706# Report the --help message.
1707#
1708if test "$ac_init_help" = "long"; then
1709 # Omit some internal or obsolete options to make the list less imposing.
1710 # This message is too long to be a string in the A/UX 3.1 sh.
1711 cat <<_ACEOF
cristy45dbd322011-03-27 16:40:38 +00001712\`configure' configures ImageMagick 6.6.9 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001713
1714Usage: $0 [OPTION]... [VAR=VALUE]...
1715
1716To assign environment variables (e.g., CC, CFLAGS...), specify them as
1717VAR=VALUE. See below for descriptions of some of the useful variables.
1718
1719Defaults for the options are specified in brackets.
1720
1721Configuration:
1722 -h, --help display this help and exit
1723 --help=short display options specific to this package
1724 --help=recursive display the short help of all the included packages
1725 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001726 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001727 --cache-file=FILE cache test results in FILE [disabled]
1728 -C, --config-cache alias for \`--cache-file=config.cache'
1729 -n, --no-create do not create output files
1730 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1731
1732Installation directories:
1733 --prefix=PREFIX install architecture-independent files in PREFIX
1734 [$ac_default_prefix]
1735 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1736 [PREFIX]
1737
1738By default, \`make install' will install all the files in
1739\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1740an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1741for instance \`--prefix=\$HOME'.
1742
1743For better control, use the options below.
1744
1745Fine tuning of the installation directories:
1746 --bindir=DIR user executables [EPREFIX/bin]
1747 --sbindir=DIR system admin executables [EPREFIX/sbin]
1748 --libexecdir=DIR program executables [EPREFIX/libexec]
1749 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1750 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1751 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1752 --libdir=DIR object code libraries [EPREFIX/lib]
1753 --includedir=DIR C header files [PREFIX/include]
1754 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1755 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1756 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1757 --infodir=DIR info documentation [DATAROOTDIR/info]
1758 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1759 --mandir=DIR man documentation [DATAROOTDIR/man]
cristyd55889c2011-03-27 00:50:24 +00001760 --docdir=DIR documentation root
cristy45dbd322011-03-27 16:40:38 +00001761 [DATAROOTDIR/doc/ImageMagick-6.6.9]
cristy3ed852e2009-09-05 21:47:34 +00001762 --htmldir=DIR html documentation [DOCDIR]
1763 --dvidir=DIR dvi documentation [DOCDIR]
1764 --pdfdir=DIR pdf documentation [DOCDIR]
1765 --psdir=DIR ps documentation [DOCDIR]
1766_ACEOF
1767
1768 cat <<\_ACEOF
1769
cristy73bd4a52010-10-05 11:24:23 +00001770Program names:
1771 --program-prefix=PREFIX prepend PREFIX to installed program names
1772 --program-suffix=SUFFIX append SUFFIX to installed program names
1773 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1774
cristy3ed852e2009-09-05 21:47:34 +00001775X features:
1776 --x-includes=DIR X include files are in DIR
1777 --x-libraries=DIR X library files are in DIR
1778
1779System types:
1780 --build=BUILD configure for building on BUILD [guessed]
1781 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1782 --target=TARGET configure for building compilers for TARGET [HOST]
1783_ACEOF
1784fi
1785
1786if test -n "$ac_init_help"; then
1787 case $ac_init_help in
cristy45dbd322011-03-27 16:40:38 +00001788 short | recursive ) echo "Configuration of ImageMagick 6.6.9:";;
cristy3ed852e2009-09-05 21:47:34 +00001789 esac
1790 cat <<\_ACEOF
1791
1792Optional Features:
1793 --disable-option-checking ignore unrecognized --enable/--with options
1794 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1795 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001796 --enable-silent-rules less verbose build output (undo: `make V=1')
1797 --disable-silent-rules verbose build output (undo: `make V=0')
1798 --disable-dependency-tracking speeds up one-time build
1799 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001800 --bounds-checking enable run-time bounds-checking
1801 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001802 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001803 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001804 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001805 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001806 --enable-shared[=PKGS] build shared libraries [default=yes]
1807 --enable-static[=PKGS] build static libraries [default=yes]
1808 --enable-fast-install[=PKGS]
1809 optimize for fast installation [default=yes]
1810 --disable-libtool-lock avoid locking (might break parallel builds)
1811 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001812 --enable-delegate-build look for delegate libraries in build directory
1813 --disable-deprecated exclude deprecated methods in MagickCore and
1814 MagickWand API's
1815 --disable-installed Formally install ImageMagick under PREFIX
1816 --disable-cipher disable enciphering and deciphering image pixels
1817 --enable-embeddable enable self-contained, embeddable,
1818 zero-configuration ImageMagick
1819 --enable-hdri accurately represent the wide range of intensity
1820 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001821 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001822 --enable-maintainer-mode enable make rules and dependencies not useful
1823 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001824 --enable-ccmalloc enable 'ccmalloc' memory debug support
1825 --enable-efence enable 'efence' memory debug support
1826 --enable-prof enable 'prof' profiling support
1827 --enable-gprof enable 'gprof' profiling support
1828 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001829 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001830
1831Optional Packages:
1832 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1833 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001834 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1835 --with-dmalloc use dmalloc, as in
1836 http://www.dmalloc.com/dmalloc.tar.gz
cristy3ed852e2009-09-05 21:47:34 +00001837 --without-threads disable threads support
cristy73bd4a52010-10-05 11:24:23 +00001838 --with-pic try to use only PIC/non-PIC objects [default=use
1839 both]
cristyda16f162011-02-19 23:52:17 +00001840 --with-sysroot=DIR Search for dependent libraries within DIR
1841 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001842 --with-included-ltdl use the GNU ltdl sources included here
1843 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1844 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001845 --with-modules enable building dynamically loadable modules
1846 --with-method-prefix=PREFIX
1847 prefix MagickCore API methods
1848 --with-quantum-depth=DEPTH
1849 number of bits in a pixel quantum (default 16)
1850 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1851 memory)
1852 --with-frozenpaths freeze delegate paths
1853 --without-magick-plus-plus
1854 disable build/install of Magick++
1855 --with-perl enable build/install of PerlMagick
1856 --with-perl-options=OPTIONS
1857 options to pass on command-line when generating
1858 PerlMagick's build file
1859 --with-umem enable umem memory allocation library support
1860 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1861 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001862 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001863 --without-zlib disable ZLIB support
1864 --with-autotrace enable autotrace support
1865 --without-dps disable Display Postscript support
1866 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001867 --with-dejavu-font-dir=DIR
1868 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001869 --without-fftw disable FFTW support
1870 --without-fpx disable FlashPIX support
1871 --without-fontconfig disable fontconfig support
1872 --without-freetype disable Freetype support
1873 --without-gslib enable Ghostscript library support
1874 --with-fontpath=DIR prepend to default font search path
1875 --with-gs-font-dir=DIR Ghostscript font directory
1876 --without-gvc disable GVC support
1877 --without-jbig disable JBIG support
1878 --without-jpeg disable JPEG support
1879 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001880 --without-lcms disable lcms (v1.1X) support
1881 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001882 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001883 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001884 --without-openexr disable OpenEXR support
1885 --without-png disable PNG support
1886 --without-rsvg disable RSVG support
1887 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001888 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001889 --with-windows-font-dir=DIR
1890 directory containing MS-Windows fonts
1891 --without-wmf disable WMF support
1892 --without-xml disable XML support
1893
1894Some influential environment variables:
1895 CC C compiler command
1896 CFLAGS C compiler flags
1897 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1898 nonstandard directory <lib dir>
1899 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001900 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001901 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001902 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001903 CXX C++ compiler command
1904 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001905 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001906 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001907 XMKMF Path to xmkmf, Makefile generator for X Window System
1908 AUTOTRACE_CFLAGS
1909 C compiler flags for AUTOTRACE, overriding pkg-config
1910 AUTOTRACE_LIBS
1911 linker flags for AUTOTRACE, overriding pkg-config
1912 FONTCONFIG_CFLAGS
1913 C compiler flags for FONTCONFIG, overriding pkg-config
1914 FONTCONFIG_LIBS
1915 linker flags for FONTCONFIG, overriding pkg-config
1916 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1917 GVC_LIBS linker flags for GVC, overriding pkg-config
1918 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1919 LQR_LIBS linker flags for LQR, overriding pkg-config
1920 OPENEXR_CFLAGS
1921 C compiler flags for OPENEXR, overriding pkg-config
1922 OPENEXR_LIBS
1923 linker flags for OPENEXR, overriding pkg-config
1924 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1925 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1926 CAIRO_SVG_CFLAGS
1927 C compiler flags for CAIRO_SVG, overriding pkg-config
1928 CAIRO_SVG_LIBS
1929 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001930
1931Use these variables to override the choices made by `configure' or to help
1932it to find libraries and programs with nonstandard names/locations.
1933
1934Report bugs to <http://www.imagemagick.org>.
1935_ACEOF
1936ac_status=$?
1937fi
1938
1939if test "$ac_init_help" = "recursive"; then
1940 # If there are subdirs, report their specific --help.
1941 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1942 test -d "$ac_dir" ||
1943 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1944 continue
1945 ac_builddir=.
1946
1947case "$ac_dir" in
1948.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1949*)
1950 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1951 # A ".." for each directory in $ac_dir_suffix.
1952 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1953 case $ac_top_builddir_sub in
1954 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1955 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1956 esac ;;
1957esac
1958ac_abs_top_builddir=$ac_pwd
1959ac_abs_builddir=$ac_pwd$ac_dir_suffix
1960# for backward compatibility:
1961ac_top_builddir=$ac_top_build_prefix
1962
1963case $srcdir in
1964 .) # We are building in place.
1965 ac_srcdir=.
1966 ac_top_srcdir=$ac_top_builddir_sub
1967 ac_abs_top_srcdir=$ac_pwd ;;
1968 [\\/]* | ?:[\\/]* ) # Absolute name.
1969 ac_srcdir=$srcdir$ac_dir_suffix;
1970 ac_top_srcdir=$srcdir
1971 ac_abs_top_srcdir=$srcdir ;;
1972 *) # Relative name.
1973 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1974 ac_top_srcdir=$ac_top_build_prefix$srcdir
1975 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1976esac
1977ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1978
1979 cd "$ac_dir" || { ac_status=$?; continue; }
1980 # Check for guested configure.
1981 if test -f "$ac_srcdir/configure.gnu"; then
1982 echo &&
1983 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1984 elif test -f "$ac_srcdir/configure"; then
1985 echo &&
1986 $SHELL "$ac_srcdir/configure" --help=recursive
1987 else
1988 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1989 fi || ac_status=$?
1990 cd "$ac_pwd" || { ac_status=$?; break; }
1991 done
1992fi
1993
1994test -n "$ac_init_help" && exit $ac_status
1995if $ac_init_version; then
1996 cat <<\_ACEOF
cristy45dbd322011-03-27 16:40:38 +00001997ImageMagick configure 6.6.9
cristyda16f162011-02-19 23:52:17 +00001998generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00001999
cristy98dddb52010-11-04 00:30:15 +00002000Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002001This configure script is free software; the Free Software Foundation
2002gives unlimited permission to copy, distribute and modify it.
2003_ACEOF
2004 exit
2005fi
cristy8b350f62009-11-15 23:12:43 +00002006
2007## ------------------------ ##
2008## Autoconf initialization. ##
2009## ------------------------ ##
2010
2011# ac_fn_c_try_compile LINENO
2012# --------------------------
2013# Try to compile conftest.$ac_ext, and return whether this succeeded.
2014ac_fn_c_try_compile ()
2015{
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 rm -f conftest.$ac_objext
2018 if { { ac_try="$ac_compile"
2019case "(($ac_try" in
2020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2021 *) ac_try_echo=$ac_try;;
2022esac
2023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024$as_echo "$ac_try_echo"; } >&5
2025 (eval "$ac_compile") 2>conftest.err
2026 ac_status=$?
2027 if test -s conftest.err; then
2028 grep -v '^ *+' conftest.err >conftest.er1
2029 cat conftest.er1 >&5
2030 mv -f conftest.er1 conftest.err
2031 fi
2032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2033 test $ac_status = 0; } && {
2034 test -z "$ac_c_werror_flag" ||
2035 test ! -s conftest.err
2036 } && test -s conftest.$ac_objext; then :
2037 ac_retval=0
2038else
2039 $as_echo "$as_me: failed program was:" >&5
2040sed 's/^/| /' conftest.$ac_ext >&5
2041
2042 ac_retval=1
2043fi
cristyda16f162011-02-19 23:52:17 +00002044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002045 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002046
2047} # ac_fn_c_try_compile
2048
cristy95646052009-11-28 23:05:30 +00002049# ac_fn_c_try_cpp LINENO
2050# ----------------------
2051# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2052ac_fn_c_try_cpp ()
2053{
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 if { { ac_try="$ac_cpp conftest.$ac_ext"
2056case "(($ac_try" in
2057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058 *) ac_try_echo=$ac_try;;
2059esac
2060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061$as_echo "$ac_try_echo"; } >&5
2062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2063 ac_status=$?
2064 if test -s conftest.err; then
2065 grep -v '^ *+' conftest.err >conftest.er1
2066 cat conftest.er1 >&5
2067 mv -f conftest.er1 conftest.err
2068 fi
2069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002070 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2072 test ! -s conftest.err
2073 }; then :
2074 ac_retval=0
2075else
2076 $as_echo "$as_me: failed program was:" >&5
2077sed 's/^/| /' conftest.$ac_ext >&5
2078
2079 ac_retval=1
2080fi
cristyda16f162011-02-19 23:52:17 +00002081 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002082 as_fn_set_status $ac_retval
2083
2084} # ac_fn_c_try_cpp
2085
cristy8b350f62009-11-15 23:12:43 +00002086# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2087# -------------------------------------------------------
2088# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2089# the include files in INCLUDES and setting the cache variable VAR
2090# accordingly.
2091ac_fn_c_check_header_mongrel ()
2092{
2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002094 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2096$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002097if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002098 $as_echo_n "(cached) " >&6
2099fi
2100eval ac_res=\$$3
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102$as_echo "$ac_res" >&6; }
2103else
2104 # Is the header compilable?
2105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2106$as_echo_n "checking $2 usability... " >&6; }
2107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108/* end confdefs.h. */
2109$4
2110#include <$2>
2111_ACEOF
2112if ac_fn_c_try_compile "$LINENO"; then :
2113 ac_header_compiler=yes
2114else
2115 ac_header_compiler=no
2116fi
2117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2119$as_echo "$ac_header_compiler" >&6; }
2120
2121# Is the header present?
2122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2123$as_echo_n "checking $2 presence... " >&6; }
2124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125/* end confdefs.h. */
2126#include <$2>
2127_ACEOF
2128if ac_fn_c_try_cpp "$LINENO"; then :
2129 ac_header_preproc=yes
2130else
2131 ac_header_preproc=no
2132fi
cristyda16f162011-02-19 23:52:17 +00002133rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2135$as_echo "$ac_header_preproc" >&6; }
2136
2137# So? What about this header?
2138case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2139 yes:no: )
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2141$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2143$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2144 ;;
2145 no:yes:* )
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2147$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2149$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2151$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2153$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2155$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002156( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002157## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002158## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002159 ) | sed "s/^/$as_me: WARNING: /" >&2
2160 ;;
2161esac
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2163$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002164if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002165 $as_echo_n "(cached) " >&6
2166else
2167 eval "$3=\$ac_header_compiler"
2168fi
2169eval ac_res=\$$3
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171$as_echo "$ac_res" >&6; }
2172fi
cristyda16f162011-02-19 23:52:17 +00002173 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002174
2175} # ac_fn_c_check_header_mongrel
2176
2177# ac_fn_c_try_run LINENO
2178# ----------------------
2179# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2180# that executables *can* be run.
2181ac_fn_c_try_run ()
2182{
2183 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184 if { { ac_try="$ac_link"
2185case "(($ac_try" in
2186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2187 *) ac_try_echo=$ac_try;;
2188esac
2189eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2190$as_echo "$ac_try_echo"; } >&5
2191 (eval "$ac_link") 2>&5
2192 ac_status=$?
2193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2194 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2195 { { case "(($ac_try" in
2196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2197 *) ac_try_echo=$ac_try;;
2198esac
2199eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2200$as_echo "$ac_try_echo"; } >&5
2201 (eval "$ac_try") 2>&5
2202 ac_status=$?
2203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2204 test $ac_status = 0; }; }; then :
2205 ac_retval=0
2206else
2207 $as_echo "$as_me: program exited with status $ac_status" >&5
2208 $as_echo "$as_me: failed program was:" >&5
2209sed 's/^/| /' conftest.$ac_ext >&5
2210
2211 ac_retval=$ac_status
2212fi
2213 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002214 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002215 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002216
2217} # ac_fn_c_try_run
2218
2219# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2220# -------------------------------------------------------
2221# Tests whether HEADER exists and can be compiled using the include files in
2222# INCLUDES, setting the cache variable VAR accordingly.
2223ac_fn_c_check_header_compile ()
2224{
2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002228if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002229 $as_echo_n "(cached) " >&6
2230else
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232/* end confdefs.h. */
2233$4
2234#include <$2>
2235_ACEOF
2236if ac_fn_c_try_compile "$LINENO"; then :
2237 eval "$3=yes"
2238else
2239 eval "$3=no"
2240fi
2241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2242fi
2243eval ac_res=\$$3
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2245$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002246 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002247
2248} # ac_fn_c_check_header_compile
2249
cristya0b81c32010-01-22 02:54:33 +00002250# ac_fn_cxx_try_compile LINENO
2251# ----------------------------
2252# Try to compile conftest.$ac_ext, and return whether this succeeded.
2253ac_fn_cxx_try_compile ()
2254{
2255 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2256 rm -f conftest.$ac_objext
2257 if { { ac_try="$ac_compile"
2258case "(($ac_try" in
2259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260 *) ac_try_echo=$ac_try;;
2261esac
2262eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2263$as_echo "$ac_try_echo"; } >&5
2264 (eval "$ac_compile") 2>conftest.err
2265 ac_status=$?
2266 if test -s conftest.err; then
2267 grep -v '^ *+' conftest.err >conftest.er1
2268 cat conftest.er1 >&5
2269 mv -f conftest.er1 conftest.err
2270 fi
2271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2272 test $ac_status = 0; } && {
2273 test -z "$ac_cxx_werror_flag" ||
2274 test ! -s conftest.err
2275 } && test -s conftest.$ac_objext; then :
2276 ac_retval=0
2277else
2278 $as_echo "$as_me: failed program was:" >&5
2279sed 's/^/| /' conftest.$ac_ext >&5
2280
2281 ac_retval=1
2282fi
cristyda16f162011-02-19 23:52:17 +00002283 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002284 as_fn_set_status $ac_retval
2285
2286} # ac_fn_cxx_try_compile
2287
cristy8b350f62009-11-15 23:12:43 +00002288# ac_fn_c_try_link LINENO
2289# -----------------------
2290# Try to link conftest.$ac_ext, and return whether this succeeded.
2291ac_fn_c_try_link ()
2292{
2293 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2294 rm -f conftest.$ac_objext conftest$ac_exeext
2295 if { { ac_try="$ac_link"
2296case "(($ac_try" in
2297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2298 *) ac_try_echo=$ac_try;;
2299esac
2300eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2301$as_echo "$ac_try_echo"; } >&5
2302 (eval "$ac_link") 2>conftest.err
2303 ac_status=$?
2304 if test -s conftest.err; then
2305 grep -v '^ *+' conftest.err >conftest.er1
2306 cat conftest.er1 >&5
2307 mv -f conftest.er1 conftest.err
2308 fi
2309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2310 test $ac_status = 0; } && {
2311 test -z "$ac_c_werror_flag" ||
2312 test ! -s conftest.err
2313 } && test -s conftest$ac_exeext && {
2314 test "$cross_compiling" = yes ||
2315 $as_test_x conftest$ac_exeext
2316 }; then :
2317 ac_retval=0
2318else
2319 $as_echo "$as_me: failed program was:" >&5
2320sed 's/^/| /' conftest.$ac_ext >&5
2321
2322 ac_retval=1
2323fi
2324 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2325 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2326 # interfere with the next link command; also delete a directory that is
2327 # left behind by Apple's compiler. We do this before executing the actions.
2328 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002329 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002330 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002331
2332} # ac_fn_c_try_link
2333
cristy73bd4a52010-10-05 11:24:23 +00002334# ac_fn_c_check_func LINENO FUNC VAR
2335# ----------------------------------
2336# Tests whether FUNC exists, setting the cache variable VAR accordingly
2337ac_fn_c_check_func ()
2338{
2339 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2341$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002342if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002343 $as_echo_n "(cached) " >&6
2344else
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346/* end confdefs.h. */
2347/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2349#define $2 innocuous_$2
2350
2351/* System header to define __stub macros and hopefully few prototypes,
2352 which can conflict with char $2 (); below.
2353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2354 <limits.h> exists even on freestanding compilers. */
2355
2356#ifdef __STDC__
2357# include <limits.h>
2358#else
2359# include <assert.h>
2360#endif
2361
2362#undef $2
2363
2364/* Override any GCC internal prototype to avoid an error.
2365 Use char because int might match the return type of a GCC
2366 builtin and then its argument prototype would still apply. */
2367#ifdef __cplusplus
2368extern "C"
2369#endif
2370char $2 ();
2371/* The GNU C library defines this for functions which it implements
2372 to always fail with ENOSYS. Some functions are actually named
2373 something starting with __ and the normal name is an alias. */
2374#if defined __stub_$2 || defined __stub___$2
2375choke me
2376#endif
2377
2378int
2379main ()
2380{
2381return $2 ();
2382 ;
2383 return 0;
2384}
2385_ACEOF
2386if ac_fn_c_try_link "$LINENO"; then :
2387 eval "$3=yes"
2388else
2389 eval "$3=no"
2390fi
2391rm -f core conftest.err conftest.$ac_objext \
2392 conftest$ac_exeext conftest.$ac_ext
2393fi
2394eval ac_res=\$$3
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2396$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002397 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002398
2399} # ac_fn_c_check_func
2400
2401# ac_fn_cxx_try_cpp LINENO
2402# ------------------------
2403# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2404ac_fn_cxx_try_cpp ()
2405{
2406 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2407 if { { ac_try="$ac_cpp conftest.$ac_ext"
2408case "(($ac_try" in
2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410 *) ac_try_echo=$ac_try;;
2411esac
2412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2413$as_echo "$ac_try_echo"; } >&5
2414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2415 ac_status=$?
2416 if test -s conftest.err; then
2417 grep -v '^ *+' conftest.err >conftest.er1
2418 cat conftest.er1 >&5
2419 mv -f conftest.er1 conftest.err
2420 fi
2421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002422 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002423 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2424 test ! -s conftest.err
2425 }; then :
2426 ac_retval=0
2427else
2428 $as_echo "$as_me: failed program was:" >&5
2429sed 's/^/| /' conftest.$ac_ext >&5
2430
2431 ac_retval=1
2432fi
cristyda16f162011-02-19 23:52:17 +00002433 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002434 as_fn_set_status $ac_retval
2435
2436} # ac_fn_cxx_try_cpp
2437
2438# ac_fn_cxx_try_link LINENO
2439# -------------------------
2440# Try to link conftest.$ac_ext, and return whether this succeeded.
2441ac_fn_cxx_try_link ()
2442{
2443 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2444 rm -f conftest.$ac_objext conftest$ac_exeext
2445 if { { ac_try="$ac_link"
2446case "(($ac_try" in
2447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448 *) ac_try_echo=$ac_try;;
2449esac
2450eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2451$as_echo "$ac_try_echo"; } >&5
2452 (eval "$ac_link") 2>conftest.err
2453 ac_status=$?
2454 if test -s conftest.err; then
2455 grep -v '^ *+' conftest.err >conftest.er1
2456 cat conftest.er1 >&5
2457 mv -f conftest.er1 conftest.err
2458 fi
2459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2460 test $ac_status = 0; } && {
2461 test -z "$ac_cxx_werror_flag" ||
2462 test ! -s conftest.err
2463 } && test -s conftest$ac_exeext && {
2464 test "$cross_compiling" = yes ||
2465 $as_test_x conftest$ac_exeext
2466 }; then :
2467 ac_retval=0
2468else
2469 $as_echo "$as_me: failed program was:" >&5
2470sed 's/^/| /' conftest.$ac_ext >&5
2471
2472 ac_retval=1
2473fi
2474 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2475 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2476 # interfere with the next link command; also delete a directory that is
2477 # left behind by Apple's compiler. We do this before executing the actions.
2478 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002479 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002480 as_fn_set_status $ac_retval
2481
2482} # ac_fn_cxx_try_link
2483
cristy98dddb52010-11-04 00:30:15 +00002484# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2485# ---------------------------------------------
2486# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2487# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002488ac_fn_c_check_decl ()
2489{
2490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002491 as_decl_name=`echo $2|sed 's/ *(.*//'`
2492 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2494$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002495if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002496 $as_echo_n "(cached) " >&6
2497else
2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2499/* end confdefs.h. */
2500$4
2501int
2502main ()
2503{
cristy98dddb52010-11-04 00:30:15 +00002504#ifndef $as_decl_name
2505#ifdef __cplusplus
2506 (void) $as_decl_use;
2507#else
2508 (void) $as_decl_name;
2509#endif
cristy73bd4a52010-10-05 11:24:23 +00002510#endif
2511
2512 ;
2513 return 0;
2514}
2515_ACEOF
2516if ac_fn_c_try_compile "$LINENO"; then :
2517 eval "$3=yes"
2518else
2519 eval "$3=no"
2520fi
2521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2522fi
2523eval ac_res=\$$3
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2525$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002526 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002527
2528} # ac_fn_c_check_decl
2529
cristy8b350f62009-11-15 23:12:43 +00002530# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2531# -------------------------------------------
2532# Tests whether TYPE exists after having included INCLUDES, setting cache
2533# variable VAR accordingly.
2534ac_fn_c_check_type ()
2535{
2536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2538$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002539if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002540 $as_echo_n "(cached) " >&6
2541else
2542 eval "$3=no"
2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544/* end confdefs.h. */
2545$4
2546int
2547main ()
2548{
2549if (sizeof ($2))
2550 return 0;
2551 ;
2552 return 0;
2553}
2554_ACEOF
2555if ac_fn_c_try_compile "$LINENO"; then :
2556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2557/* end confdefs.h. */
2558$4
2559int
2560main ()
2561{
2562if (sizeof (($2)))
2563 return 0;
2564 ;
2565 return 0;
2566}
2567_ACEOF
2568if ac_fn_c_try_compile "$LINENO"; then :
2569
2570else
2571 eval "$3=yes"
2572fi
2573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2574fi
2575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2576fi
2577eval ac_res=\$$3
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2579$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002581
2582} # ac_fn_c_check_type
2583
cristy92703d82010-04-26 00:18:18 +00002584# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2585# ----------------------------------------------------
2586# Tries to find if the field MEMBER exists in type AGGR, after including
2587# INCLUDES, setting cache variable VAR accordingly.
2588ac_fn_c_check_member ()
2589{
2590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2592$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002593if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002594 $as_echo_n "(cached) " >&6
2595else
2596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597/* end confdefs.h. */
2598$5
2599int
2600main ()
2601{
2602static $2 ac_aggr;
2603if (ac_aggr.$3)
2604return 0;
2605 ;
2606 return 0;
2607}
2608_ACEOF
2609if ac_fn_c_try_compile "$LINENO"; then :
2610 eval "$4=yes"
2611else
2612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613/* end confdefs.h. */
2614$5
2615int
2616main ()
2617{
2618static $2 ac_aggr;
2619if (sizeof ac_aggr.$3)
2620return 0;
2621 ;
2622 return 0;
2623}
2624_ACEOF
2625if ac_fn_c_try_compile "$LINENO"; then :
2626 eval "$4=yes"
2627else
2628 eval "$4=no"
2629fi
2630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2631fi
2632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2633fi
2634eval ac_res=\$$4
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2636$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002638
2639} # ac_fn_c_check_member
2640
cristy8b350f62009-11-15 23:12:43 +00002641# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2642# --------------------------------------------
2643# Tries to find the compile-time value of EXPR in a program that includes
2644# INCLUDES, setting VAR accordingly. Returns whether the value could be
2645# computed
2646ac_fn_c_compute_int ()
2647{
2648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2649 if test "$cross_compiling" = yes; then
2650 # Depending upon the size, compute the lo and hi bounds.
2651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652/* end confdefs.h. */
2653$4
2654int
2655main ()
2656{
2657static int test_array [1 - 2 * !(($2) >= 0)];
2658test_array [0] = 0
2659
2660 ;
2661 return 0;
2662}
2663_ACEOF
2664if ac_fn_c_try_compile "$LINENO"; then :
2665 ac_lo=0 ac_mid=0
2666 while :; do
2667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2668/* end confdefs.h. */
2669$4
2670int
2671main ()
2672{
2673static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2674test_array [0] = 0
2675
2676 ;
2677 return 0;
2678}
2679_ACEOF
2680if ac_fn_c_try_compile "$LINENO"; then :
2681 ac_hi=$ac_mid; break
2682else
2683 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2684 if test $ac_lo -le $ac_mid; then
2685 ac_lo= ac_hi=
2686 break
2687 fi
2688 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2689fi
2690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2691 done
2692else
2693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2694/* end confdefs.h. */
2695$4
2696int
2697main ()
2698{
2699static int test_array [1 - 2 * !(($2) < 0)];
2700test_array [0] = 0
2701
2702 ;
2703 return 0;
2704}
2705_ACEOF
2706if ac_fn_c_try_compile "$LINENO"; then :
2707 ac_hi=-1 ac_mid=-1
2708 while :; do
2709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2710/* end confdefs.h. */
2711$4
2712int
2713main ()
2714{
2715static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2716test_array [0] = 0
2717
2718 ;
2719 return 0;
2720}
2721_ACEOF
2722if ac_fn_c_try_compile "$LINENO"; then :
2723 ac_lo=$ac_mid; break
2724else
2725 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2726 if test $ac_mid -le $ac_hi; then
2727 ac_lo= ac_hi=
2728 break
2729 fi
2730 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2731fi
2732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2733 done
2734else
2735 ac_lo= ac_hi=
2736fi
2737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738fi
2739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740# Binary search between lo and hi bounds.
2741while test "x$ac_lo" != "x$ac_hi"; do
2742 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2744/* end confdefs.h. */
2745$4
2746int
2747main ()
2748{
2749static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2750test_array [0] = 0
2751
2752 ;
2753 return 0;
2754}
2755_ACEOF
2756if ac_fn_c_try_compile "$LINENO"; then :
2757 ac_hi=$ac_mid
2758else
2759 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2760fi
2761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2762done
2763case $ac_lo in #((
2764?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2765'') ac_retval=1 ;;
2766esac
2767 else
2768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2769/* end confdefs.h. */
2770$4
2771static long int longval () { return $2; }
2772static unsigned long int ulongval () { return $2; }
2773#include <stdio.h>
2774#include <stdlib.h>
2775int
2776main ()
2777{
2778
2779 FILE *f = fopen ("conftest.val", "w");
2780 if (! f)
2781 return 1;
2782 if (($2) < 0)
2783 {
2784 long int i = longval ();
2785 if (i != ($2))
2786 return 1;
2787 fprintf (f, "%ld", i);
2788 }
2789 else
2790 {
2791 unsigned long int i = ulongval ();
2792 if (i != ($2))
2793 return 1;
2794 fprintf (f, "%lu", i);
2795 }
2796 /* Do not output a trailing newline, as this causes \r\n confusion
2797 on some platforms. */
2798 return ferror (f) || fclose (f) != 0;
2799
2800 ;
2801 return 0;
2802}
2803_ACEOF
2804if ac_fn_c_try_run "$LINENO"; then :
2805 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2806else
2807 ac_retval=1
2808fi
2809rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2810 conftest.$ac_objext conftest.beam conftest.$ac_ext
2811rm -f conftest.val
2812
2813 fi
cristyda16f162011-02-19 23:52:17 +00002814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002815 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002816
2817} # ac_fn_c_compute_int
2818
2819# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2820# ---------------------------------------------------------
2821# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2822# the include files in INCLUDES and setting the cache variable VAR
2823# accordingly.
2824ac_fn_cxx_check_header_mongrel ()
2825{
2826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002827 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2829$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002830if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002831 $as_echo_n "(cached) " >&6
2832fi
2833eval ac_res=\$$3
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2835$as_echo "$ac_res" >&6; }
2836else
2837 # Is the header compilable?
2838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2839$as_echo_n "checking $2 usability... " >&6; }
2840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2841/* end confdefs.h. */
2842$4
2843#include <$2>
2844_ACEOF
2845if ac_fn_cxx_try_compile "$LINENO"; then :
2846 ac_header_compiler=yes
2847else
2848 ac_header_compiler=no
2849fi
2850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2852$as_echo "$ac_header_compiler" >&6; }
2853
2854# Is the header present?
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2856$as_echo_n "checking $2 presence... " >&6; }
2857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2858/* end confdefs.h. */
2859#include <$2>
2860_ACEOF
2861if ac_fn_cxx_try_cpp "$LINENO"; then :
2862 ac_header_preproc=yes
2863else
2864 ac_header_preproc=no
2865fi
cristyda16f162011-02-19 23:52:17 +00002866rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2868$as_echo "$ac_header_preproc" >&6; }
2869
2870# So? What about this header?
2871case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2872 yes:no: )
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2874$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2876$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2877 ;;
2878 no:yes:* )
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2880$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2882$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2884$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2886$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2888$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002889( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002890## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002891## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002892 ) | sed "s/^/$as_me: WARNING: /" >&2
2893 ;;
2894esac
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2896$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002897if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002898 $as_echo_n "(cached) " >&6
2899else
2900 eval "$3=\$ac_header_compiler"
2901fi
2902eval ac_res=\$$3
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2904$as_echo "$ac_res" >&6; }
2905fi
cristyda16f162011-02-19 23:52:17 +00002906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002907
2908} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002909cat >config.log <<_ACEOF
2910This file contains any messages produced by compilers while
2911running configure, to aid debugging if configure makes a mistake.
2912
cristy45dbd322011-03-27 16:40:38 +00002913It was created by ImageMagick $as_me 6.6.9, which was
cristyda16f162011-02-19 23:52:17 +00002914generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002915
2916 $ $0 $@
2917
2918_ACEOF
2919exec 5>>config.log
2920{
2921cat <<_ASUNAME
2922## --------- ##
2923## Platform. ##
2924## --------- ##
2925
2926hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2927uname -m = `(uname -m) 2>/dev/null || echo unknown`
2928uname -r = `(uname -r) 2>/dev/null || echo unknown`
2929uname -s = `(uname -s) 2>/dev/null || echo unknown`
2930uname -v = `(uname -v) 2>/dev/null || echo unknown`
2931
2932/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2933/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2934
2935/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2936/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2937/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2938/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2939/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2940/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2941/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2942
2943_ASUNAME
2944
2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946for as_dir in $PATH
2947do
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002950 $as_echo "PATH: $as_dir"
2951 done
cristy3ed852e2009-09-05 21:47:34 +00002952IFS=$as_save_IFS
2953
2954} >&5
2955
2956cat >&5 <<_ACEOF
2957
2958
2959## ----------- ##
2960## Core tests. ##
2961## ----------- ##
2962
2963_ACEOF
2964
2965
2966# Keep a trace of the command line.
2967# Strip out --no-create and --no-recursion so they do not pile up.
2968# Strip out --silent because we don't want to record it for future runs.
2969# Also quote any args containing shell meta-characters.
2970# Make two passes to allow for proper duplicate-argument suppression.
2971ac_configure_args=
2972ac_configure_args0=
2973ac_configure_args1=
2974ac_must_keep_next=false
2975for ac_pass in 1 2
2976do
2977 for ac_arg
2978 do
2979 case $ac_arg in
2980 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2981 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2982 | -silent | --silent | --silen | --sile | --sil)
2983 continue ;;
2984 *\'*)
2985 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2986 esac
2987 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00002988 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00002989 2)
cristy8b350f62009-11-15 23:12:43 +00002990 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002991 if test $ac_must_keep_next = true; then
2992 ac_must_keep_next=false # Got value, back to normal.
2993 else
2994 case $ac_arg in
2995 *=* | --config-cache | -C | -disable-* | --disable-* \
2996 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2997 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2998 | -with-* | --with-* | -without-* | --without-* | --x)
2999 case "$ac_configure_args0 " in
3000 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3001 esac
3002 ;;
3003 -* ) ac_must_keep_next=true ;;
3004 esac
3005 fi
cristy8b350f62009-11-15 23:12:43 +00003006 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003007 ;;
3008 esac
3009 done
3010done
cristy8b350f62009-11-15 23:12:43 +00003011{ ac_configure_args0=; unset ac_configure_args0;}
3012{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003013
3014# When interrupted or exit'd, cleanup temporary files, and complete
3015# config.log. We remove comments because anyway the quotes in there
3016# would cause problems or look ugly.
3017# WARNING: Use '\'' to represent an apostrophe within the trap.
3018# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3019trap 'exit_status=$?
3020 # Save into config.log some information that might help in debugging.
3021 {
3022 echo
3023
cristy98dddb52010-11-04 00:30:15 +00003024 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003025## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003026## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003027 echo
3028 # The following way of writing the cache mishandles newlines in values,
3029(
3030 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3031 eval ac_val=\$$ac_var
3032 case $ac_val in #(
3033 *${as_nl}*)
3034 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003035 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003036$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3037 esac
3038 case $ac_var in #(
3039 _ | IFS | as_nl) ;; #(
3040 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003041 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003042 esac ;;
3043 esac
3044 done
3045 (set) 2>&1 |
3046 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3047 *${as_nl}ac_space=\ *)
3048 sed -n \
3049 "s/'\''/'\''\\\\'\'''\''/g;
3050 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3051 ;; #(
3052 *)
3053 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3054 ;;
3055 esac |
3056 sort
3057)
3058 echo
3059
cristy98dddb52010-11-04 00:30:15 +00003060 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003061## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003062## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003063 echo
3064 for ac_var in $ac_subst_vars
3065 do
3066 eval ac_val=\$$ac_var
3067 case $ac_val in
3068 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3069 esac
3070 $as_echo "$ac_var='\''$ac_val'\''"
3071 done | sort
3072 echo
3073
3074 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003075 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003076## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003077## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003078 echo
3079 for ac_var in $ac_subst_files
3080 do
3081 eval ac_val=\$$ac_var
3082 case $ac_val in
3083 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3084 esac
3085 $as_echo "$ac_var='\''$ac_val'\''"
3086 done | sort
3087 echo
3088 fi
3089
3090 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003091 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003092## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003093## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003094 echo
3095 cat confdefs.h
3096 echo
3097 fi
3098 test "$ac_signal" != 0 &&
3099 $as_echo "$as_me: caught signal $ac_signal"
3100 $as_echo "$as_me: exit $exit_status"
3101 } >&5
3102 rm -f core *.core core.conftest.* &&
3103 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3104 exit $exit_status
3105' 0
3106for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003107 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003108done
3109ac_signal=0
3110
3111# confdefs.h avoids OS command line length limits that DEFS can exceed.
3112rm -f -r conftest* confdefs.h
3113
cristy8b350f62009-11-15 23:12:43 +00003114$as_echo "/* confdefs.h */" > confdefs.h
3115
cristy3ed852e2009-09-05 21:47:34 +00003116# Predefined preprocessor variables.
3117
3118cat >>confdefs.h <<_ACEOF
3119#define PACKAGE_NAME "$PACKAGE_NAME"
3120_ACEOF
3121
cristy3ed852e2009-09-05 21:47:34 +00003122cat >>confdefs.h <<_ACEOF
3123#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3124_ACEOF
3125
cristy3ed852e2009-09-05 21:47:34 +00003126cat >>confdefs.h <<_ACEOF
3127#define PACKAGE_VERSION "$PACKAGE_VERSION"
3128_ACEOF
3129
cristy3ed852e2009-09-05 21:47:34 +00003130cat >>confdefs.h <<_ACEOF
3131#define PACKAGE_STRING "$PACKAGE_STRING"
3132_ACEOF
3133
cristy3ed852e2009-09-05 21:47:34 +00003134cat >>confdefs.h <<_ACEOF
3135#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3136_ACEOF
3137
cristy8b350f62009-11-15 23:12:43 +00003138cat >>confdefs.h <<_ACEOF
3139#define PACKAGE_URL "$PACKAGE_URL"
3140_ACEOF
3141
cristy3ed852e2009-09-05 21:47:34 +00003142
3143# Let the site file select an alternate cache file if it wants to.
3144# Prefer an explicitly selected file to automatically selected ones.
3145ac_site_file1=NONE
3146ac_site_file2=NONE
3147if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003148 # We do not want a PATH search for config.site.
3149 case $CONFIG_SITE in #((
3150 -*) ac_site_file1=./$CONFIG_SITE;;
3151 */*) ac_site_file1=$CONFIG_SITE;;
3152 *) ac_site_file1=./$CONFIG_SITE;;
3153 esac
cristy3ed852e2009-09-05 21:47:34 +00003154elif test "x$prefix" != xNONE; then
3155 ac_site_file1=$prefix/share/config.site
3156 ac_site_file2=$prefix/etc/config.site
3157else
3158 ac_site_file1=$ac_default_prefix/share/config.site
3159 ac_site_file2=$ac_default_prefix/etc/config.site
3160fi
3161for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3162do
3163 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003164 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003165 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003166$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3167 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003168 . "$ac_site_file" \
3169 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3171as_fn_error $? "failed to load site script $ac_site_file
3172See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003173 fi
3174done
3175
3176if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003177 # Some versions of bash will fail to source /dev/null (special files
3178 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3179 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003180 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003181$as_echo "$as_me: loading cache $cache_file" >&6;}
3182 case $cache_file in
3183 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3184 *) . "./$cache_file";;
3185 esac
3186 fi
3187else
cristy8b350f62009-11-15 23:12:43 +00003188 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003189$as_echo "$as_me: creating cache $cache_file" >&6;}
3190 >$cache_file
3191fi
3192
cristycd4c5312009-11-22 01:19:08 +00003193as_fn_append ac_header_list " stdlib.h"
3194as_fn_append ac_header_list " unistd.h"
3195as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003196# Check that the precious variables saved in the cache have kept the same
3197# value.
3198ac_cache_corrupted=false
3199for ac_var in $ac_precious_vars; do
3200 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3201 eval ac_new_set=\$ac_env_${ac_var}_set
3202 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3203 eval ac_new_val=\$ac_env_${ac_var}_value
3204 case $ac_old_set,$ac_new_set in
3205 set,)
cristy8b350f62009-11-15 23:12:43 +00003206 { $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 +00003207$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3208 ac_cache_corrupted=: ;;
3209 ,set)
cristy8b350f62009-11-15 23:12:43 +00003210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003211$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3212 ac_cache_corrupted=: ;;
3213 ,);;
3214 *)
3215 if test "x$ac_old_val" != "x$ac_new_val"; then
3216 # differences in whitespace do not lead to failure.
3217 ac_old_val_w=`echo x $ac_old_val`
3218 ac_new_val_w=`echo x $ac_new_val`
3219 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003221$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3222 ac_cache_corrupted=:
3223 else
cristy8b350f62009-11-15 23:12:43 +00003224 { $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 +00003225$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3226 eval $ac_var=\$ac_old_val
3227 fi
cristy8b350f62009-11-15 23:12:43 +00003228 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003229$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003230 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003231$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3232 fi;;
3233 esac
3234 # Pass precious variables to config.status.
3235 if test "$ac_new_set" = set; then
3236 case $ac_new_val in
3237 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3238 *) ac_arg=$ac_var=$ac_new_val ;;
3239 esac
3240 case " $ac_configure_args " in
3241 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003242 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003243 esac
3244 fi
3245done
3246if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003250$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003251 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003252fi
cristy8b350f62009-11-15 23:12:43 +00003253## -------------------- ##
3254## Main body of script. ##
3255## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003256
3257ac_ext=c
3258ac_cpp='$CPP $CPPFLAGS'
3259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261ac_compiler_gnu=$ac_cv_c_compiler_gnu
3262
3263
3264
3265ac_aux_dir=
3266for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003267 if test -f "$ac_dir/install-sh"; then
3268 ac_aux_dir=$ac_dir
3269 ac_install_sh="$ac_aux_dir/install-sh -c"
3270 break
3271 elif test -f "$ac_dir/install.sh"; then
3272 ac_aux_dir=$ac_dir
3273 ac_install_sh="$ac_aux_dir/install.sh -c"
3274 break
3275 elif test -f "$ac_dir/shtool"; then
3276 ac_aux_dir=$ac_dir
3277 ac_install_sh="$ac_aux_dir/shtool install -c"
3278 break
3279 fi
cristy3ed852e2009-09-05 21:47:34 +00003280done
3281if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003282 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003283fi
3284
3285# These three variables are undocumented and unsupported,
3286# and are intended to be withdrawn in a future Autoconf release.
3287# They can cause serious problems if a builder's source tree is in a directory
3288# whose full name contains unusual characters.
3289ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3290ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3291ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3292
3293
3294
3295
3296ac_config_headers="$ac_config_headers config/config.h"
3297
cristy24fc1fe2010-10-23 21:13:01 +00003298
cristy73bd4a52010-10-05 11:24:23 +00003299ac_config_commands="$ac_config_commands magick/magick-config.h"
3300
cristy430a7312010-01-21 20:44:04 +00003301ac_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 +00003302
3303
3304#
3305# Save initial user-tunable values
3306#
3307USER_LIBS=$LIBS
3308for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3309 eval isset=\${$var+set}
3310 if test "$isset" = 'set'; then
3311 eval val=$`echo $var`
3312 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3313 fi
3314done
3315
3316
3317CONFIGURE_ARGS="$0 ${ac_configure_args}"
3318
3319
3320# Source file containing package/library versioning information.
3321. ${srcdir}/version.sh
3322
cristy15a88782010-01-31 23:24:49 +00003323echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003324# Make sure we can run config.sub.
3325$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003326 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003327
cristy8b350f62009-11-15 23:12:43 +00003328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003329$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003330if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003331 $as_echo_n "(cached) " >&6
3332else
3333 ac_build_alias=$build_alias
3334test "x$ac_build_alias" = x &&
3335 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3336test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003337 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003338ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003339 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003340
3341fi
cristy8b350f62009-11-15 23:12:43 +00003342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003343$as_echo "$ac_cv_build" >&6; }
3344case $ac_cv_build in
3345*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003346*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003347esac
3348build=$ac_cv_build
3349ac_save_IFS=$IFS; IFS='-'
3350set x $ac_cv_build
3351shift
3352build_cpu=$1
3353build_vendor=$2
3354shift; shift
3355# Remember, the first character of IFS is used to create $*,
3356# except with old shells:
3357build_os=$*
3358IFS=$ac_save_IFS
3359case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3360
3361
cristy8b350f62009-11-15 23:12:43 +00003362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003363$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003364if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003365 $as_echo_n "(cached) " >&6
3366else
3367 if test "x$host_alias" = x; then
3368 ac_cv_host=$ac_cv_build
3369else
3370 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003371 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003372fi
3373
3374fi
cristy8b350f62009-11-15 23:12:43 +00003375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003376$as_echo "$ac_cv_host" >&6; }
3377case $ac_cv_host in
3378*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003379*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003380esac
3381host=$ac_cv_host
3382ac_save_IFS=$IFS; IFS='-'
3383set x $ac_cv_host
3384shift
3385host_cpu=$1
3386host_vendor=$2
3387shift; shift
3388# Remember, the first character of IFS is used to create $*,
3389# except with old shells:
3390host_os=$*
3391IFS=$ac_save_IFS
3392case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3393
3394
cristy8b350f62009-11-15 23:12:43 +00003395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003396$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003397if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003398 $as_echo_n "(cached) " >&6
3399else
3400 if test "x$target_alias" = x; then
3401 ac_cv_target=$ac_cv_host
3402else
3403 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003404 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003405fi
3406
3407fi
cristy8b350f62009-11-15 23:12:43 +00003408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003409$as_echo "$ac_cv_target" >&6; }
3410case $ac_cv_target in
3411*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003412*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003413esac
3414target=$ac_cv_target
3415ac_save_IFS=$IFS; IFS='-'
3416set x $ac_cv_target
3417shift
3418target_cpu=$1
3419target_vendor=$2
3420shift; shift
3421# Remember, the first character of IFS is used to create $*,
3422# except with old shells:
3423target_os=$*
3424IFS=$ac_save_IFS
3425case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3426
3427
3428# The aliases save the names the user supplied, while $host etc.
3429# will get canonicalized.
3430test -n "$target_alias" &&
3431 test "$program_prefix$program_suffix$program_transform_name" = \
3432 NONENONEs,x,x, &&
3433 program_prefix=${target_alias}-
3434
cristy837d6dc2010-02-27 01:16:57 +00003435
3436
3437
cristy19615b82011-04-13 20:02:01 +00003438MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003439
3440
cristy19615b82011-04-13 20:02:01 +00003441MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003442
3443
cristy19615b82011-04-13 20:02:01 +00003444MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003445
3446
cristy3ed852e2009-09-05 21:47:34 +00003447# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003448MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3449
3450MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3451
cristy86f7f112011-04-14 19:17:23 +00003452MAGICK_SVN_REVISION=4226
cristyd694ca32011-03-27 21:42:54 +00003453
3454
cristy3ed852e2009-09-05 21:47:34 +00003455
3456
3457# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3459$as_echo_n "checking whether build environment is sane... " >&6; }
3460# Just in case
3461sleep 1
3462echo timestamp > conftest.file
3463# Reject unsafe characters in $srcdir or the absolute working directory
3464# name. Accept space and tab only in the latter.
3465am_lf='
3466'
3467case `pwd` in
3468 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003469 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003470esac
3471case $srcdir in
3472 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003473 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003474esac
cristy3ed852e2009-09-05 21:47:34 +00003475
cristy73bd4a52010-10-05 11:24:23 +00003476# Do `set' in a subshell so we don't clobber the current shell's
3477# arguments. Must try -L first in case configure is actually a
3478# symlink; some systems play weird games with the mod time of symlinks
3479# (eg FreeBSD returns the mod time of the symlink's containing
3480# directory).
3481if (
3482 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3483 if test "$*" = "X"; then
3484 # -L didn't work.
3485 set X `ls -t "$srcdir/configure" conftest.file`
3486 fi
3487 rm -f conftest.file
3488 if test "$*" != "X $srcdir/configure conftest.file" \
3489 && test "$*" != "X conftest.file $srcdir/configure"; then
3490
3491 # If neither matched, then we have a broken ls. This can happen
3492 # if, for instance, CONFIG_SHELL is bash and it inherits a
3493 # broken ls alias from the environment. This has actually
3494 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003495 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003496alias in your environment" "$LINENO" 5
3497 fi
3498
3499 test "$2" = conftest.file
3500 )
3501then
3502 # Ok.
3503 :
3504else
cristy98dddb52010-11-04 00:30:15 +00003505 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003506Check your system clock" "$LINENO" 5
3507fi
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3509$as_echo "yes" >&6; }
3510
3511am__api_version='1.11'
3512
3513# Find a good install program. We prefer a C program (faster),
3514# so one script is as good as another. But avoid the broken or
3515# incompatible versions:
3516# SysV /etc/install, /usr/sbin/install
3517# SunOS /usr/etc/install
3518# IRIX /sbin/install
3519# AIX /bin/install
3520# AmigaOS /C/install, which installs bootblocks on floppy discs
3521# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3522# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3523# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3524# OS/2's system install, which has a completely different semantic
3525# ./install, which can be erroneously created by make from ./install.sh.
3526# Reject install programs that cannot install multiple files.
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3528$as_echo_n "checking for a BSD-compatible install... " >&6; }
3529if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003530if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003531 $as_echo_n "(cached) " >&6
3532else
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534for as_dir in $PATH
3535do
3536 IFS=$as_save_IFS
3537 test -z "$as_dir" && as_dir=.
3538 # Account for people who put trailing slashes in PATH elements.
3539case $as_dir/ in #((
3540 ./ | .// | /[cC]/* | \
3541 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3542 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3543 /usr/ucb/* ) ;;
3544 *)
3545 # OSF1 and SCO ODT 3.0 have their own names for install.
3546 # Don't use installbsd from OSF since it installs stuff as root
3547 # by default.
3548 for ac_prog in ginstall scoinst install; do
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3551 if test $ac_prog = install &&
3552 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3553 # AIX install. It has an incompatible calling convention.
3554 :
3555 elif test $ac_prog = install &&
3556 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3557 # program-specific install script used by HP pwplus--don't use.
3558 :
3559 else
3560 rm -rf conftest.one conftest.two conftest.dir
3561 echo one > conftest.one
3562 echo two > conftest.two
3563 mkdir conftest.dir
3564 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3565 test -s conftest.one && test -s conftest.two &&
3566 test -s conftest.dir/conftest.one &&
3567 test -s conftest.dir/conftest.two
3568 then
3569 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3570 break 3
3571 fi
3572 fi
3573 fi
3574 done
3575 done
3576 ;;
3577esac
3578
3579 done
3580IFS=$as_save_IFS
3581
3582rm -rf conftest.one conftest.two conftest.dir
3583
3584fi
3585 if test "${ac_cv_path_install+set}" = set; then
3586 INSTALL=$ac_cv_path_install
3587 else
3588 # As a last resort, use the slow shell script. Don't cache a
3589 # value for INSTALL within a source directory, because that will
3590 # break other packages using the cache if that directory is
3591 # removed, or if the value is a relative name.
3592 INSTALL=$ac_install_sh
3593 fi
3594fi
3595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3596$as_echo "$INSTALL" >&6; }
3597
3598# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3599# It thinks the first close brace ends the variable substitution.
3600test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3601
3602test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3603
3604test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3605
3606test "$program_prefix" != NONE &&
3607 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3608# Use a double $ so make ignores it.
3609test "$program_suffix" != NONE &&
3610 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3611# Double any \ or $.
3612# By default was `s,x,x', remove it if useless.
3613ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3614program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3615
3616# expand $ac_aux_dir to an absolute path
3617am_aux_dir=`cd $ac_aux_dir && pwd`
3618
3619if test x"${MISSING+set}" != xset; then
3620 case $am_aux_dir in
3621 *\ * | *\ *)
3622 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3623 *)
3624 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3625 esac
3626fi
3627# Use eval to expand $SHELL
3628if eval "$MISSING --run true"; then
3629 am_missing_run="$MISSING --run "
3630else
3631 am_missing_run=
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3633$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3634fi
3635
3636if test x"${install_sh}" != xset; then
3637 case $am_aux_dir in
3638 *\ * | *\ *)
3639 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3640 *)
3641 install_sh="\${SHELL} $am_aux_dir/install-sh"
3642 esac
3643fi
3644
3645# Installed binaries are usually stripped using `strip' when the user
3646# run `make install-strip'. However `strip' might not be the right
3647# tool to use in cross-compilation environments, therefore Automake
3648# will honor the `STRIP' environment variable to overrule this program.
3649if test "$cross_compiling" != no; then
3650 if test -n "$ac_tool_prefix"; then
3651 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3652set dummy ${ac_tool_prefix}strip; ac_word=$2
3653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003655if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003656 $as_echo_n "(cached) " >&6
3657else
3658 if test -n "$STRIP"; then
3659 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3660else
3661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662for as_dir in $PATH
3663do
3664 IFS=$as_save_IFS
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3668 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 break 2
3671 fi
3672done
3673 done
3674IFS=$as_save_IFS
3675
3676fi
3677fi
3678STRIP=$ac_cv_prog_STRIP
3679if test -n "$STRIP"; then
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3681$as_echo "$STRIP" >&6; }
3682else
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684$as_echo "no" >&6; }
3685fi
3686
3687
3688fi
3689if test -z "$ac_cv_prog_STRIP"; then
3690 ac_ct_STRIP=$STRIP
3691 # Extract the first word of "strip", so it can be a program name with args.
3692set dummy strip; ac_word=$2
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003695if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003696 $as_echo_n "(cached) " >&6
3697else
3698 if test -n "$ac_ct_STRIP"; then
3699 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3700else
3701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702for as_dir in $PATH
3703do
3704 IFS=$as_save_IFS
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3708 ac_cv_prog_ac_ct_STRIP="strip"
3709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 break 2
3711 fi
3712done
3713 done
3714IFS=$as_save_IFS
3715
3716fi
3717fi
3718ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3719if test -n "$ac_ct_STRIP"; then
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3721$as_echo "$ac_ct_STRIP" >&6; }
3722else
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724$as_echo "no" >&6; }
3725fi
3726
3727 if test "x$ac_ct_STRIP" = x; then
3728 STRIP=":"
3729 else
3730 case $cross_compiling:$ac_tool_warned in
3731yes:)
3732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3734ac_tool_warned=yes ;;
3735esac
3736 STRIP=$ac_ct_STRIP
3737 fi
3738else
3739 STRIP="$ac_cv_prog_STRIP"
3740fi
3741
3742fi
3743INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3744
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3746$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3747if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003748 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003749 $as_echo_n "(cached) " >&6
3750else
3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3753do
3754 IFS=$as_save_IFS
3755 test -z "$as_dir" && as_dir=.
3756 for ac_prog in mkdir gmkdir; do
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3759 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3760 'mkdir (GNU coreutils) '* | \
3761 'mkdir (coreutils) '* | \
3762 'mkdir (fileutils) '4.1*)
3763 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3764 break 3;;
3765 esac
3766 done
3767 done
3768 done
3769IFS=$as_save_IFS
3770
3771fi
3772
3773 test -d ./--version && rmdir ./--version
3774 if test "${ac_cv_path_mkdir+set}" = set; then
3775 MKDIR_P="$ac_cv_path_mkdir -p"
3776 else
3777 # As a last resort, use the slow shell script. Don't cache a
3778 # value for MKDIR_P within a source directory, because that will
3779 # break other packages using the cache if that directory is
3780 # removed, or if the value is a relative name.
3781 MKDIR_P="$ac_install_sh -d"
3782 fi
3783fi
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3785$as_echo "$MKDIR_P" >&6; }
3786
3787mkdir_p="$MKDIR_P"
3788case $mkdir_p in
3789 [\\/$]* | ?:[\\/]*) ;;
3790 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3791esac
3792
3793for ac_prog in gawk mawk nawk awk
3794do
3795 # Extract the first word of "$ac_prog", so it can be a program name with args.
3796set dummy $ac_prog; ac_word=$2
3797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003799if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003800 $as_echo_n "(cached) " >&6
3801else
3802 if test -n "$AWK"; then
3803 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3804else
3805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806for as_dir in $PATH
3807do
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3812 ac_cv_prog_AWK="$ac_prog"
3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3815 fi
3816done
3817 done
3818IFS=$as_save_IFS
3819
3820fi
3821fi
3822AWK=$ac_cv_prog_AWK
3823if test -n "$AWK"; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3825$as_echo "$AWK" >&6; }
3826else
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828$as_echo "no" >&6; }
3829fi
3830
3831
3832 test -n "$AWK" && break
3833done
3834
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3836$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3837set x ${MAKE-make}
3838ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00003839if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003840 $as_echo_n "(cached) " >&6
3841else
3842 cat >conftest.make <<\_ACEOF
3843SHELL = /bin/sh
3844all:
3845 @echo '@@@%%%=$(MAKE)=@@@%%%'
3846_ACEOF
cristy98dddb52010-11-04 00:30:15 +00003847# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00003848case `${MAKE-make} -f conftest.make 2>/dev/null` in
3849 *@@@%%%=?*=@@@%%%*)
3850 eval ac_cv_prog_make_${ac_make}_set=yes;;
3851 *)
3852 eval ac_cv_prog_make_${ac_make}_set=no;;
3853esac
3854rm -f conftest.make
3855fi
3856if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3858$as_echo "yes" >&6; }
3859 SET_MAKE=
3860else
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862$as_echo "no" >&6; }
3863 SET_MAKE="MAKE=${MAKE-make}"
3864fi
3865
3866rm -rf .tst 2>/dev/null
3867mkdir .tst 2>/dev/null
3868if test -d .tst; then
3869 am__leading_dot=.
3870else
3871 am__leading_dot=_
3872fi
3873rmdir .tst 2>/dev/null
3874
3875if test "`cd $srcdir && pwd`" != "`pwd`"; then
3876 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3877 # is not polluted with repeated "-I."
3878 am__isrc=' -I$(srcdir)'
3879 # test to see if srcdir already configured
3880 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00003881 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00003882 fi
3883fi
3884
3885# test whether we have cygpath
3886if test -z "$CYGPATH_W"; then
3887 if (cygpath --version) >/dev/null 2>/dev/null; then
3888 CYGPATH_W='cygpath -w'
3889 else
3890 CYGPATH_W=echo
3891 fi
3892fi
3893
3894
3895# Define the identity of the package.
3896 PACKAGE=$PACKAGE_NAME
3897 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3898
3899
3900# Some tools Automake needs.
3901
3902ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3903
3904
3905AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3906
3907
3908AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3909
3910
3911AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3912
3913
3914MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3915
3916# We need awk for the "check" target. The system "awk" is bad on
3917# some platforms.
3918# Always define AMTAR for backward compatibility.
3919
3920AMTAR=${AMTAR-"${am_missing_run}tar"}
3921
3922am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3923
3924
3925
3926
3927
cristy3ed852e2009-09-05 21:47:34 +00003928
3929# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00003930# Check whether --enable-silent-rules was given.
3931if test "${enable_silent_rules+set}" = set; then :
3932 enableval=$enable_silent_rules;
3933fi
3934
3935case $enable_silent_rules in
3936yes) AM_DEFAULT_VERBOSITY=0;;
3937no) AM_DEFAULT_VERBOSITY=1;;
3938*) AM_DEFAULT_VERBOSITY=0;;
3939esac
3940AM_BACKSLASH='\'
3941
cristy3ed852e2009-09-05 21:47:34 +00003942
3943MAGICK_LIB_VERSION="0x"
3944if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3945 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3946fi
3947MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3948if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3949 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3950fi
3951MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3952if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3953 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3954fi
3955MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3956
3957
3958# Definition used to define MagickLibVersionText in version.h
3959MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3960
3961
3962# Definition used to define MagickLibVersionNumber in version.h
3963MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3964
3965
3966# Regenerate config.status if ChangeLog or version.sh is updated.
3967CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3968
3969
3970PERLMAINCC=$CC
3971
3972MAGICK_CFLAGS=''
3973MAGICK_CPPFLAGS=$CPPFLAGS_USER
3974MAGICK_PCFLAGS=$CPPFLAGS_USER
3975MAGICK_LDFLAGS=''
3976MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00003977MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00003978
3979#
3980# Evaluate shell variable equivalents to Makefile directory variables
3981#
3982if test "x$prefix" = xNONE; then
3983 prefix=$ac_default_prefix
3984fi
3985# Let make expand exec_prefix.
3986if test "x$exec_prefix" = xNONE; then
3987 exec_prefix='${prefix}'
3988fi
3989
3990#
3991eval "eval PREFIX_DIR=${prefix}"
3992
3993eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3994
3995eval "eval BIN_DIR=$bindir"
3996
3997eval "eval SBIN_DIR=$sbindir"
3998
3999eval "eval LIBEXEC_DIR=$libexecdir"
4000
4001eval "eval DATA_DIR=$datadir"
4002
cristyd55889c2011-03-27 00:50:24 +00004003eval "eval DOC_DIR=$docdir"
4004
cristy3ed852e2009-09-05 21:47:34 +00004005eval "eval SYSCONF_DIR=$sysconfdir"
4006
4007eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4008
4009eval "eval LOCALSTATE_DIR=$localstatedir"
4010
4011eval "eval LIB_DIR=$libdir"
4012
4013eval "eval INCLUDE_DIR=$includedir"
4014
4015eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4016
4017eval "eval INFO_DIR=$infodir"
4018
4019eval "eval MAN_DIR=$mandir"
4020
4021
4022# Get full paths to source and build directories
4023srcdirfull="`cd $srcdir && pwd`"
4024builddir="`pwd`"
4025
4026#
4027# Compute variables useful for running uninstalled software.
4028#
4029MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4030MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4031MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4032MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4033DIRSEP=':'
4034case "${build_os}" in
4035 mingw* )
4036 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4037 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4038 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4039 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4040 DIRSEP=';'
4041 ;;
4042esac
4043case "${host_os}" in
4044 mingw* )
4045 DIRSEP=';'
4046 ;;
4047esac
4048
4049
4050
4051
4052
4053
cristya0b81c32010-01-22 02:54:33 +00004054
4055#
4056# Enable OS features.
4057#
cristy73bd4a52010-10-05 11:24:23 +00004058DEPDIR="${am__leading_dot}deps"
4059
4060ac_config_commands="$ac_config_commands depfiles"
4061
4062
4063am_make=${MAKE-make}
4064cat > confinc << 'END'
4065am__doit:
4066 @echo this is the am__doit target
4067.PHONY: am__doit
4068END
4069# If we don't find an include directive, just comment out the code.
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4071$as_echo_n "checking for style of include used by $am_make... " >&6; }
4072am__include="#"
4073am__quote=
4074_am_result=none
4075# First try GNU make style include.
4076echo "include confinc" > confmf
4077# Ignore all kinds of additional output from `make'.
4078case `$am_make -s -f confmf 2> /dev/null` in #(
4079*the\ am__doit\ target*)
4080 am__include=include
4081 am__quote=
4082 _am_result=GNU
4083 ;;
4084esac
4085# Now try BSD make style include.
4086if test "$am__include" = "#"; then
4087 echo '.include "confinc"' > confmf
4088 case `$am_make -s -f confmf 2> /dev/null` in #(
4089 *the\ am__doit\ target*)
4090 am__include=.include
4091 am__quote="\""
4092 _am_result=BSD
4093 ;;
4094 esac
4095fi
4096
4097
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4099$as_echo "$_am_result" >&6; }
4100rm -f confinc confmf
4101
4102# Check whether --enable-dependency-tracking was given.
4103if test "${enable_dependency_tracking+set}" = set; then :
4104 enableval=$enable_dependency_tracking;
4105fi
4106
4107if test "x$enable_dependency_tracking" != xno; then
4108 am_depcomp="$ac_aux_dir/depcomp"
4109 AMDEPBACKSLASH='\'
4110fi
4111 if test "x$enable_dependency_tracking" != xno; then
4112 AMDEP_TRUE=
4113 AMDEP_FALSE='#'
4114else
4115 AMDEP_TRUE='#'
4116 AMDEP_FALSE=
4117fi
4118
4119
cristy3ed852e2009-09-05 21:47:34 +00004120ac_ext=c
4121ac_cpp='$CPP $CPPFLAGS'
4122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4124ac_compiler_gnu=$ac_cv_c_compiler_gnu
4125if test -n "$ac_tool_prefix"; then
4126 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4127set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004129$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004130if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004131 $as_echo_n "(cached) " >&6
4132else
4133 if test -n "$CC"; then
4134 ac_cv_prog_CC="$CC" # Let the user override the test.
4135else
4136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137for as_dir in $PATH
4138do
4139 IFS=$as_save_IFS
4140 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004141 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4143 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004145 break 2
4146 fi
4147done
cristy8b350f62009-11-15 23:12:43 +00004148 done
cristy3ed852e2009-09-05 21:47:34 +00004149IFS=$as_save_IFS
4150
4151fi
4152fi
4153CC=$ac_cv_prog_CC
4154if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004156$as_echo "$CC" >&6; }
4157else
cristy8b350f62009-11-15 23:12:43 +00004158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004159$as_echo "no" >&6; }
4160fi
4161
4162
4163fi
4164if test -z "$ac_cv_prog_CC"; then
4165 ac_ct_CC=$CC
4166 # Extract the first word of "gcc", so it can be a program name with args.
4167set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004169$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004170if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004171 $as_echo_n "(cached) " >&6
4172else
4173 if test -n "$ac_ct_CC"; then
4174 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4175else
4176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177for as_dir in $PATH
4178do
4179 IFS=$as_save_IFS
4180 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004181 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4183 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004185 break 2
4186 fi
4187done
cristy8b350f62009-11-15 23:12:43 +00004188 done
cristy3ed852e2009-09-05 21:47:34 +00004189IFS=$as_save_IFS
4190
4191fi
4192fi
4193ac_ct_CC=$ac_cv_prog_ac_ct_CC
4194if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004196$as_echo "$ac_ct_CC" >&6; }
4197else
cristy8b350f62009-11-15 23:12:43 +00004198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004199$as_echo "no" >&6; }
4200fi
4201
4202 if test "x$ac_ct_CC" = x; then
4203 CC=""
4204 else
4205 case $cross_compiling:$ac_tool_warned in
4206yes:)
cristy8b350f62009-11-15 23:12:43 +00004207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4209ac_tool_warned=yes ;;
4210esac
4211 CC=$ac_ct_CC
4212 fi
4213else
4214 CC="$ac_cv_prog_CC"
4215fi
4216
4217if test -z "$CC"; then
4218 if test -n "$ac_tool_prefix"; then
4219 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4220set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004222$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004223if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004224 $as_echo_n "(cached) " >&6
4225else
4226 if test -n "$CC"; then
4227 ac_cv_prog_CC="$CC" # Let the user override the test.
4228else
4229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230for as_dir in $PATH
4231do
4232 IFS=$as_save_IFS
4233 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004234 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4236 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004238 break 2
4239 fi
4240done
cristy8b350f62009-11-15 23:12:43 +00004241 done
cristy3ed852e2009-09-05 21:47:34 +00004242IFS=$as_save_IFS
4243
4244fi
4245fi
4246CC=$ac_cv_prog_CC
4247if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004249$as_echo "$CC" >&6; }
4250else
cristy8b350f62009-11-15 23:12:43 +00004251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004252$as_echo "no" >&6; }
4253fi
4254
4255
4256 fi
4257fi
4258if test -z "$CC"; then
4259 # Extract the first word of "cc", so it can be a program name with args.
4260set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004262$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004263if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004264 $as_echo_n "(cached) " >&6
4265else
4266 if test -n "$CC"; then
4267 ac_cv_prog_CC="$CC" # Let the user override the test.
4268else
4269 ac_prog_rejected=no
4270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271for as_dir in $PATH
4272do
4273 IFS=$as_save_IFS
4274 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004275 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4277 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4278 ac_prog_rejected=yes
4279 continue
4280 fi
4281 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004283 break 2
4284 fi
4285done
cristy8b350f62009-11-15 23:12:43 +00004286 done
cristy3ed852e2009-09-05 21:47:34 +00004287IFS=$as_save_IFS
4288
4289if test $ac_prog_rejected = yes; then
4290 # We found a bogon in the path, so make sure we never use it.
4291 set dummy $ac_cv_prog_CC
4292 shift
4293 if test $# != 0; then
4294 # We chose a different compiler from the bogus one.
4295 # However, it has the same basename, so the bogon will be chosen
4296 # first if we set CC to just the basename; use the full file name.
4297 shift
4298 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4299 fi
4300fi
4301fi
4302fi
4303CC=$ac_cv_prog_CC
4304if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004306$as_echo "$CC" >&6; }
4307else
cristy8b350f62009-11-15 23:12:43 +00004308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004309$as_echo "no" >&6; }
4310fi
4311
4312
4313fi
4314if test -z "$CC"; then
4315 if test -n "$ac_tool_prefix"; then
4316 for ac_prog in cl.exe
4317 do
4318 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4319set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004321$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004322if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004323 $as_echo_n "(cached) " >&6
4324else
4325 if test -n "$CC"; then
4326 ac_cv_prog_CC="$CC" # Let the user override the test.
4327else
4328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329for as_dir in $PATH
4330do
4331 IFS=$as_save_IFS
4332 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004333 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4335 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004337 break 2
4338 fi
4339done
cristy8b350f62009-11-15 23:12:43 +00004340 done
cristy3ed852e2009-09-05 21:47:34 +00004341IFS=$as_save_IFS
4342
4343fi
4344fi
4345CC=$ac_cv_prog_CC
4346if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004348$as_echo "$CC" >&6; }
4349else
cristy8b350f62009-11-15 23:12:43 +00004350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004351$as_echo "no" >&6; }
4352fi
4353
4354
4355 test -n "$CC" && break
4356 done
4357fi
4358if test -z "$CC"; then
4359 ac_ct_CC=$CC
4360 for ac_prog in cl.exe
4361do
4362 # Extract the first word of "$ac_prog", so it can be a program name with args.
4363set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004365$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004366if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004367 $as_echo_n "(cached) " >&6
4368else
4369 if test -n "$ac_ct_CC"; then
4370 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4371else
4372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373for as_dir in $PATH
4374do
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004377 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4379 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004381 break 2
4382 fi
4383done
cristy8b350f62009-11-15 23:12:43 +00004384 done
cristy3ed852e2009-09-05 21:47:34 +00004385IFS=$as_save_IFS
4386
4387fi
4388fi
4389ac_ct_CC=$ac_cv_prog_ac_ct_CC
4390if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004392$as_echo "$ac_ct_CC" >&6; }
4393else
cristy8b350f62009-11-15 23:12:43 +00004394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004395$as_echo "no" >&6; }
4396fi
4397
4398
4399 test -n "$ac_ct_CC" && break
4400done
4401
4402 if test "x$ac_ct_CC" = x; then
4403 CC=""
4404 else
4405 case $cross_compiling:$ac_tool_warned in
4406yes:)
cristy8b350f62009-11-15 23:12:43 +00004407{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4409ac_tool_warned=yes ;;
4410esac
4411 CC=$ac_ct_CC
4412 fi
4413fi
4414
4415fi
4416
4417
cristy8b350f62009-11-15 23:12:43 +00004418test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004420as_fn_error $? "no acceptable C compiler found in \$PATH
4421See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004422
4423# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004424$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004425set X $ac_compile
4426ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004427for ac_option in --version -v -V -qversion; do
4428 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004429case "(($ac_try" in
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4432esac
cristy8b350f62009-11-15 23:12:43 +00004433eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4434$as_echo "$ac_try_echo"; } >&5
4435 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004436 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004437 if test -s conftest.err; then
4438 sed '10a\
4439... rest of stderr output deleted ...
4440 10q' conftest.err >conftest.er1
4441 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004442 fi
cristycd4c5312009-11-22 01:19:08 +00004443 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4445 test $ac_status = 0; }
4446done
cristy3ed852e2009-09-05 21:47:34 +00004447
cristy8b350f62009-11-15 23:12:43 +00004448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004449/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004450
cristy3ed852e2009-09-05 21:47:34 +00004451int
4452main ()
4453{
4454
4455 ;
4456 return 0;
4457}
4458_ACEOF
4459ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004460ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004461# Try to create an executable without -o first, disregard a.out.
4462# It will help us diagnose broken compilers, and finding out an intuition
4463# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4465$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004466ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4467
4468# The possible output files:
4469ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4470
4471ac_rmfiles=
4472for ac_file in $ac_files
4473do
4474 case $ac_file in
4475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4476 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4477 esac
4478done
4479rm -f $ac_rmfiles
4480
cristy8b350f62009-11-15 23:12:43 +00004481if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004482case "(($ac_try" in
4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484 *) ac_try_echo=$ac_try;;
4485esac
cristy8b350f62009-11-15 23:12:43 +00004486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4487$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004488 (eval "$ac_link_default") 2>&5
4489 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4491 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004492 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4493# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4494# in a Makefile. We should not override ac_cv_exeext if it was cached,
4495# so that the user can short-circuit this test for compilers unknown to
4496# Autoconf.
4497for ac_file in $ac_files ''
4498do
4499 test -f "$ac_file" || continue
4500 case $ac_file in
4501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4502 ;;
4503 [ab].out )
4504 # We found the default executable, but exeext='' is most
4505 # certainly right.
4506 break;;
4507 *.* )
cristy8b350f62009-11-15 23:12:43 +00004508 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004509 then :; else
4510 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4511 fi
4512 # We set ac_cv_exeext here because the later test for it is not
4513 # safe: cross compilers may not add the suffix if given an `-o'
4514 # argument, so we may need to know it at that point already.
4515 # Even if this section looks crufty: it has the advantage of
4516 # actually working.
4517 break;;
4518 * )
4519 break;;
4520 esac
4521done
4522test "$ac_cv_exeext" = no && ac_cv_exeext=
4523
4524else
4525 ac_file=''
4526fi
cristy8b350f62009-11-15 23:12:43 +00004527if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529$as_echo "no" >&6; }
4530$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004531sed 's/^/| /' conftest.$ac_ext >&5
4532
cristy8b350f62009-11-15 23:12:43 +00004533{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004534$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004535as_fn_error 77 "C compiler cannot create executables
4536See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004537else
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4539$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004540fi
cristycd4c5312009-11-22 01:19:08 +00004541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4542$as_echo_n "checking for C compiler default output file name... " >&6; }
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4544$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004545ac_exeext=$ac_cv_exeext
4546
cristycd4c5312009-11-22 01:19:08 +00004547rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004548ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004550$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004551if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004552case "(($ac_try" in
4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4555esac
cristy8b350f62009-11-15 23:12:43 +00004556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4557$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004558 (eval "$ac_link") 2>&5
4559 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4561 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004562 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4563# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4564# work properly (i.e., refer to `conftest.exe'), while it won't with
4565# `rm'.
4566for ac_file in conftest.exe conftest conftest.*; do
4567 test -f "$ac_file" || continue
4568 case $ac_file in
4569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4570 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4571 break;;
4572 * ) break;;
4573 esac
4574done
4575else
cristy8b350f62009-11-15 23:12:43 +00004576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004578as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4579See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004580fi
cristycd4c5312009-11-22 01:19:08 +00004581rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004583$as_echo "$ac_cv_exeext" >&6; }
4584
4585rm -f conftest.$ac_ext
4586EXEEXT=$ac_cv_exeext
4587ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589/* end confdefs.h. */
4590#include <stdio.h>
4591int
4592main ()
4593{
4594FILE *f = fopen ("conftest.out", "w");
4595 return ferror (f) || fclose (f) != 0;
4596
4597 ;
4598 return 0;
4599}
4600_ACEOF
4601ac_clean_files="$ac_clean_files conftest.out"
4602# Check that the compiler produces executables we can run. If not, either
4603# the compiler is broken, or we cross compile.
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4605$as_echo_n "checking whether we are cross compiling... " >&6; }
4606if test "$cross_compiling" != yes; then
4607 { { ac_try="$ac_link"
4608case "(($ac_try" in
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4611esac
4612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4613$as_echo "$ac_try_echo"; } >&5
4614 (eval "$ac_link") 2>&5
4615 ac_status=$?
4616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4617 test $ac_status = 0; }
4618 if { ac_try='./conftest$ac_cv_exeext'
4619 { { case "(($ac_try" in
4620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621 *) ac_try_echo=$ac_try;;
4622esac
4623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4624$as_echo "$ac_try_echo"; } >&5
4625 (eval "$ac_try") 2>&5
4626 ac_status=$?
4627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4628 test $ac_status = 0; }; }; then
4629 cross_compiling=no
4630 else
4631 if test "$cross_compiling" = maybe; then
4632 cross_compiling=yes
4633 else
4634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004636as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004637If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004638See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004639 fi
4640 fi
4641fi
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4643$as_echo "$cross_compiling" >&6; }
4644
4645rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4646ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004648$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004649if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004650 $as_echo_n "(cached) " >&6
4651else
cristy8b350f62009-11-15 23:12:43 +00004652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004653/* end confdefs.h. */
4654
4655int
4656main ()
4657{
4658
4659 ;
4660 return 0;
4661}
4662_ACEOF
4663rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004664if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004665case "(($ac_try" in
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4668esac
cristy8b350f62009-11-15 23:12:43 +00004669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4670$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004671 (eval "$ac_compile") 2>&5
4672 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4674 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004675 for ac_file in conftest.o conftest.obj conftest.*; do
4676 test -f "$ac_file" || continue;
4677 case $ac_file in
4678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4679 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4680 break;;
4681 esac
4682done
4683else
4684 $as_echo "$as_me: failed program was:" >&5
4685sed 's/^/| /' conftest.$ac_ext >&5
4686
cristy8b350f62009-11-15 23:12:43 +00004687{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004689as_fn_error $? "cannot compute suffix of object files: cannot compile
4690See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004691fi
cristy3ed852e2009-09-05 21:47:34 +00004692rm -f conftest.$ac_cv_objext conftest.$ac_ext
4693fi
cristy8b350f62009-11-15 23:12:43 +00004694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004695$as_echo "$ac_cv_objext" >&6; }
4696OBJEXT=$ac_cv_objext
4697ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004699$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004700if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004701 $as_echo_n "(cached) " >&6
4702else
cristy8b350f62009-11-15 23:12:43 +00004703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004704/* end confdefs.h. */
4705
4706int
4707main ()
4708{
4709#ifndef __GNUC__
4710 choke me
4711#endif
4712
4713 ;
4714 return 0;
4715}
4716_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004717if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004718 ac_compiler_gnu=yes
4719else
cristy8b350f62009-11-15 23:12:43 +00004720 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004721fi
cristy3ed852e2009-09-05 21:47:34 +00004722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4723ac_cv_c_compiler_gnu=$ac_compiler_gnu
4724
4725fi
cristy8b350f62009-11-15 23:12:43 +00004726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004727$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4728if test $ac_compiler_gnu = yes; then
4729 GCC=yes
4730else
4731 GCC=
4732fi
4733ac_test_CFLAGS=${CFLAGS+set}
4734ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004736$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004737if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004738 $as_echo_n "(cached) " >&6
4739else
4740 ac_save_c_werror_flag=$ac_c_werror_flag
4741 ac_c_werror_flag=yes
4742 ac_cv_prog_cc_g=no
4743 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004745/* end confdefs.h. */
4746
4747int
4748main ()
4749{
4750
4751 ;
4752 return 0;
4753}
4754_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004755if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004756 ac_cv_prog_cc_g=yes
4757else
cristy8b350f62009-11-15 23:12:43 +00004758 CFLAGS=""
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004760/* end confdefs.h. */
4761
4762int
4763main ()
4764{
4765
4766 ;
4767 return 0;
4768}
4769_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004770if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004771
cristy8b350f62009-11-15 23:12:43 +00004772else
4773 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004774 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004776/* end confdefs.h. */
4777
4778int
4779main ()
4780{
4781
4782 ;
4783 return 0;
4784}
4785_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004786if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004787 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004788fi
cristy3ed852e2009-09-05 21:47:34 +00004789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790fi
cristy3ed852e2009-09-05 21:47:34 +00004791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792fi
cristy3ed852e2009-09-05 21:47:34 +00004793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 ac_c_werror_flag=$ac_save_c_werror_flag
4795fi
cristy8b350f62009-11-15 23:12:43 +00004796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004797$as_echo "$ac_cv_prog_cc_g" >&6; }
4798if test "$ac_test_CFLAGS" = set; then
4799 CFLAGS=$ac_save_CFLAGS
4800elif test $ac_cv_prog_cc_g = yes; then
4801 if test "$GCC" = yes; then
4802 CFLAGS="-g -O2"
4803 else
4804 CFLAGS="-g"
4805 fi
4806else
4807 if test "$GCC" = yes; then
4808 CFLAGS="-O2"
4809 else
4810 CFLAGS=
4811 fi
4812fi
cristy8b350f62009-11-15 23:12:43 +00004813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004814$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004815if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004816 $as_echo_n "(cached) " >&6
4817else
4818 ac_cv_prog_cc_c89=no
4819ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004821/* end confdefs.h. */
4822#include <stdarg.h>
4823#include <stdio.h>
4824#include <sys/types.h>
4825#include <sys/stat.h>
4826/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4827struct buf { int x; };
4828FILE * (*rcsopen) (struct buf *, struct stat *, int);
4829static char *e (p, i)
4830 char **p;
4831 int i;
4832{
4833 return p[i];
4834}
4835static char *f (char * (*g) (char **, int), char **p, ...)
4836{
4837 char *s;
4838 va_list v;
4839 va_start (v,p);
4840 s = g (p, va_arg (v,int));
4841 va_end (v);
4842 return s;
4843}
4844
4845/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4846 function prototypes and stuff, but not '\xHH' hex character constants.
4847 These don't provoke an error unfortunately, instead are silently treated
4848 as 'x'. The following induces an error, until -std is added to get
4849 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4850 array size at least. It's necessary to write '\x00'==0 to get something
4851 that's true only with -std. */
4852int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4853
4854/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4855 inside strings and character constants. */
4856#define FOO(x) 'x'
4857int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4858
4859int test (int i, double x);
4860struct s1 {int (*f) (int a);};
4861struct s2 {int (*f) (double a);};
4862int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4863int argc;
4864char **argv;
4865int
4866main ()
4867{
4868return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4869 ;
4870 return 0;
4871}
4872_ACEOF
4873for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4874 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4875do
4876 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004877 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004878 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004879fi
cristy3ed852e2009-09-05 21:47:34 +00004880rm -f core conftest.err conftest.$ac_objext
4881 test "x$ac_cv_prog_cc_c89" != "xno" && break
4882done
4883rm -f conftest.$ac_ext
4884CC=$ac_save_CC
4885
4886fi
4887# AC_CACHE_VAL
4888case "x$ac_cv_prog_cc_c89" in
4889 x)
cristy8b350f62009-11-15 23:12:43 +00004890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004891$as_echo "none needed" >&6; } ;;
4892 xno)
cristy8b350f62009-11-15 23:12:43 +00004893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004894$as_echo "unsupported" >&6; } ;;
4895 *)
4896 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004898$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4899esac
cristy8b350f62009-11-15 23:12:43 +00004900if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004901
cristy8b350f62009-11-15 23:12:43 +00004902fi
cristy3ed852e2009-09-05 21:47:34 +00004903
4904ac_ext=c
4905ac_cpp='$CPP $CPPFLAGS'
4906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4908ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00004909
cristy73bd4a52010-10-05 11:24:23 +00004910depcc="$CC" am_compiler_list=
4911
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4913$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004914if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004915 $as_echo_n "(cached) " >&6
4916else
4917 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4918 # We make a subdir and do the tests there. Otherwise we can end up
4919 # making bogus files that we don't know about and never remove. For
4920 # instance it was reported that on HP-UX the gcc test will end up
4921 # making a dummy file named `D' -- because `-MD' means `put the output
4922 # in D'.
4923 mkdir conftest.dir
4924 # Copy depcomp to subdir because otherwise we won't find it if we're
4925 # using a relative directory.
4926 cp "$am_depcomp" conftest.dir
4927 cd conftest.dir
4928 # We will build objects and dependencies in a subdirectory because
4929 # it helps to detect inapplicable dependency modes. For instance
4930 # both Tru64's cc and ICC support -MD to output dependencies as a
4931 # side effect of compilation, but ICC will put the dependencies in
4932 # the current directory while Tru64 will put them in the object
4933 # directory.
4934 mkdir sub
4935
4936 am_cv_CC_dependencies_compiler_type=none
4937 if test "$am_compiler_list" = ""; then
4938 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4939 fi
4940 am__universal=false
4941 case " $depcc " in #(
4942 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4943 esac
4944
4945 for depmode in $am_compiler_list; do
4946 # Setup a source with many dependencies, because some compilers
4947 # like to wrap large dependency lists on column 80 (with \), and
4948 # we should not choose a depcomp mode which is confused by this.
4949 #
4950 # We need to recreate these files for each test, as the compiler may
4951 # overwrite some of them when testing with obscure command lines.
4952 # This happens at least with the AIX C compiler.
4953 : > sub/conftest.c
4954 for i in 1 2 3 4 5 6; do
4955 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4956 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4957 # Solaris 8's {/usr,}/bin/sh.
4958 touch sub/conftst$i.h
4959 done
4960 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4961
4962 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4963 # mode. It turns out that the SunPro C++ compiler does not properly
4964 # handle `-M -o', and we need to detect this. Also, some Intel
4965 # versions had trouble with output in subdirs
4966 am__obj=sub/conftest.${OBJEXT-o}
4967 am__minus_obj="-o $am__obj"
4968 case $depmode in
4969 gcc)
4970 # This depmode causes a compiler race in universal mode.
4971 test "$am__universal" = false || continue
4972 ;;
4973 nosideeffect)
4974 # after this tag, mechanisms are not by side-effect, so they'll
4975 # only be used when explicitly requested
4976 if test "x$enable_dependency_tracking" = xyes; then
4977 continue
4978 else
4979 break
4980 fi
4981 ;;
4982 msvisualcpp | msvcmsys)
4983 # This compiler won't grok `-c -o', but also, the minuso test has
4984 # not run yet. These depmodes are late enough in the game, and
4985 # so weak that their functioning should not be impacted.
4986 am__obj=conftest.${OBJEXT-o}
4987 am__minus_obj=
4988 ;;
4989 none) break ;;
4990 esac
4991 if depmode=$depmode \
4992 source=sub/conftest.c object=$am__obj \
4993 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4994 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4995 >/dev/null 2>conftest.err &&
4996 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4997 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4998 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4999 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5000 # icc doesn't choke on unknown options, it will just issue warnings
5001 # or remarks (even with -Werror). So we grep stderr for any message
5002 # that says an option was ignored or not supported.
5003 # When given -MP, icc 7.0 and 7.1 complain thusly:
5004 # icc: Command line warning: ignoring option '-M'; no argument required
5005 # The diagnosis changed in icc 8.0:
5006 # icc: Command line remark: option '-MP' not supported
5007 if (grep 'ignoring option' conftest.err ||
5008 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5009 am_cv_CC_dependencies_compiler_type=$depmode
5010 break
5011 fi
5012 fi
5013 done
5014
5015 cd ..
5016 rm -rf conftest.dir
5017else
5018 am_cv_CC_dependencies_compiler_type=none
5019fi
5020
5021fi
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5023$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5024CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5025
5026 if
5027 test "x$enable_dependency_tracking" != xno \
5028 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5029 am__fastdepCC_TRUE=
5030 am__fastdepCC_FALSE='#'
5031else
5032 am__fastdepCC_TRUE='#'
5033 am__fastdepCC_FALSE=
5034fi
5035
5036
cristy3ed852e2009-09-05 21:47:34 +00005037
cristya0b81c32010-01-22 02:54:33 +00005038ac_ext=c
5039ac_cpp='$CPP $CPPFLAGS'
5040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5042ac_compiler_gnu=$ac_cv_c_compiler_gnu
5043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5044$as_echo_n "checking how to run the C preprocessor... " >&6; }
5045# On Suns, sometimes $CPP names a directory.
5046if test -n "$CPP" && test -d "$CPP"; then
5047 CPP=
5048fi
5049if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005050 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005051 $as_echo_n "(cached) " >&6
5052else
5053 # Double quotes because CPP needs to be expanded
5054 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5055 do
5056 ac_preproc_ok=false
5057for ac_c_preproc_warn_flag in '' yes
5058do
5059 # Use a header file that comes with gcc, so configuring glibc
5060 # with a fresh cross-compiler works.
5061 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5062 # <limits.h> exists even on freestanding compilers.
5063 # On the NeXT, cc -E runs the code through the compiler's parser,
5064 # not just through cpp. "Syntax error" is here to catch this case.
5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066/* end confdefs.h. */
5067#ifdef __STDC__
5068# include <limits.h>
5069#else
5070# include <assert.h>
5071#endif
5072 Syntax error
5073_ACEOF
5074if ac_fn_c_try_cpp "$LINENO"; then :
5075
5076else
5077 # Broken: fails on valid input.
5078continue
5079fi
cristyda16f162011-02-19 23:52:17 +00005080rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005081
5082 # OK, works on sane cases. Now check whether nonexistent headers
5083 # can be detected and how.
5084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085/* end confdefs.h. */
5086#include <ac_nonexistent.h>
5087_ACEOF
5088if ac_fn_c_try_cpp "$LINENO"; then :
5089 # Broken: success on invalid input.
5090continue
5091else
5092 # Passes both tests.
5093ac_preproc_ok=:
5094break
5095fi
cristyda16f162011-02-19 23:52:17 +00005096rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005097
5098done
5099# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005100rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005101if $ac_preproc_ok; then :
5102 break
5103fi
5104
5105 done
5106 ac_cv_prog_CPP=$CPP
5107
5108fi
5109 CPP=$ac_cv_prog_CPP
5110else
5111 ac_cv_prog_CPP=$CPP
5112fi
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5114$as_echo "$CPP" >&6; }
5115ac_preproc_ok=false
5116for ac_c_preproc_warn_flag in '' yes
5117do
5118 # Use a header file that comes with gcc, so configuring glibc
5119 # with a fresh cross-compiler works.
5120 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5121 # <limits.h> exists even on freestanding compilers.
5122 # On the NeXT, cc -E runs the code through the compiler's parser,
5123 # not just through cpp. "Syntax error" is here to catch this case.
5124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125/* end confdefs.h. */
5126#ifdef __STDC__
5127# include <limits.h>
5128#else
5129# include <assert.h>
5130#endif
5131 Syntax error
5132_ACEOF
5133if ac_fn_c_try_cpp "$LINENO"; then :
5134
5135else
5136 # Broken: fails on valid input.
5137continue
5138fi
cristyda16f162011-02-19 23:52:17 +00005139rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005140
5141 # OK, works on sane cases. Now check whether nonexistent headers
5142 # can be detected and how.
5143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144/* end confdefs.h. */
5145#include <ac_nonexistent.h>
5146_ACEOF
5147if ac_fn_c_try_cpp "$LINENO"; then :
5148 # Broken: success on invalid input.
5149continue
5150else
5151 # Passes both tests.
5152ac_preproc_ok=:
5153break
5154fi
cristyda16f162011-02-19 23:52:17 +00005155rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005156
5157done
5158# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005159rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005160if $ac_preproc_ok; then :
5161
5162else
5163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005165as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5166See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005167fi
5168
5169ac_ext=c
5170ac_cpp='$CPP $CPPFLAGS'
5171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5173ac_compiler_gnu=$ac_cv_c_compiler_gnu
5174
5175
5176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5177$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005178if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005179 $as_echo_n "(cached) " >&6
5180else
5181 if test -z "$GREP"; then
5182 ac_path_GREP_found=false
5183 # Loop through the user's path and test for each of PROGNAME-LIST
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5186do
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
5189 for ac_prog in grep ggrep; do
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5192 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5193# Check for GNU ac_path_GREP and select it if it is found.
5194 # Check for GNU $ac_path_GREP
5195case `"$ac_path_GREP" --version 2>&1` in
5196*GNU*)
5197 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5198*)
5199 ac_count=0
5200 $as_echo_n 0123456789 >"conftest.in"
5201 while :
5202 do
5203 cat "conftest.in" "conftest.in" >"conftest.tmp"
5204 mv "conftest.tmp" "conftest.in"
5205 cp "conftest.in" "conftest.nl"
5206 $as_echo 'GREP' >> "conftest.nl"
5207 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5208 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5209 as_fn_arith $ac_count + 1 && ac_count=$as_val
5210 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5211 # Best one so far, save it but keep looking for a better one
5212 ac_cv_path_GREP="$ac_path_GREP"
5213 ac_path_GREP_max=$ac_count
5214 fi
5215 # 10*(2^10) chars as input seems more than enough
5216 test $ac_count -gt 10 && break
5217 done
5218 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5219esac
5220
5221 $ac_path_GREP_found && break 3
5222 done
5223 done
5224 done
5225IFS=$as_save_IFS
5226 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005227 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005228 fi
5229else
5230 ac_cv_path_GREP=$GREP
5231fi
5232
5233fi
5234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5235$as_echo "$ac_cv_path_GREP" >&6; }
5236 GREP="$ac_cv_path_GREP"
5237
5238
5239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5240$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005241if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005242 $as_echo_n "(cached) " >&6
5243else
5244 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5245 then ac_cv_path_EGREP="$GREP -E"
5246 else
5247 if test -z "$EGREP"; then
5248 ac_path_EGREP_found=false
5249 # Loop through the user's path and test for each of PROGNAME-LIST
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5252do
5253 IFS=$as_save_IFS
5254 test -z "$as_dir" && as_dir=.
5255 for ac_prog in egrep; do
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5258 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5259# Check for GNU ac_path_EGREP and select it if it is found.
5260 # Check for GNU $ac_path_EGREP
5261case `"$ac_path_EGREP" --version 2>&1` in
5262*GNU*)
5263 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5264*)
5265 ac_count=0
5266 $as_echo_n 0123456789 >"conftest.in"
5267 while :
5268 do
5269 cat "conftest.in" "conftest.in" >"conftest.tmp"
5270 mv "conftest.tmp" "conftest.in"
5271 cp "conftest.in" "conftest.nl"
5272 $as_echo 'EGREP' >> "conftest.nl"
5273 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5274 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5275 as_fn_arith $ac_count + 1 && ac_count=$as_val
5276 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5277 # Best one so far, save it but keep looking for a better one
5278 ac_cv_path_EGREP="$ac_path_EGREP"
5279 ac_path_EGREP_max=$ac_count
5280 fi
5281 # 10*(2^10) chars as input seems more than enough
5282 test $ac_count -gt 10 && break
5283 done
5284 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5285esac
5286
5287 $ac_path_EGREP_found && break 3
5288 done
5289 done
5290 done
5291IFS=$as_save_IFS
5292 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005293 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005294 fi
5295else
5296 ac_cv_path_EGREP=$EGREP
5297fi
5298
5299 fi
5300fi
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5302$as_echo "$ac_cv_path_EGREP" >&6; }
5303 EGREP="$ac_cv_path_EGREP"
5304
5305
5306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5307$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005308if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005309 $as_echo_n "(cached) " >&6
5310else
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312/* end confdefs.h. */
5313#include <stdlib.h>
5314#include <stdarg.h>
5315#include <string.h>
5316#include <float.h>
5317
5318int
5319main ()
5320{
5321
5322 ;
5323 return 0;
5324}
5325_ACEOF
5326if ac_fn_c_try_compile "$LINENO"; then :
5327 ac_cv_header_stdc=yes
5328else
5329 ac_cv_header_stdc=no
5330fi
5331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5332
5333if test $ac_cv_header_stdc = yes; then
5334 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336/* end confdefs.h. */
5337#include <string.h>
5338
5339_ACEOF
5340if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5341 $EGREP "memchr" >/dev/null 2>&1; then :
5342
5343else
5344 ac_cv_header_stdc=no
5345fi
5346rm -f conftest*
5347
5348fi
5349
5350if test $ac_cv_header_stdc = yes; then
5351 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353/* end confdefs.h. */
5354#include <stdlib.h>
5355
5356_ACEOF
5357if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5358 $EGREP "free" >/dev/null 2>&1; then :
5359
5360else
5361 ac_cv_header_stdc=no
5362fi
5363rm -f conftest*
5364
5365fi
5366
5367if test $ac_cv_header_stdc = yes; then
5368 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5369 if test "$cross_compiling" = yes; then :
5370 :
5371else
5372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5373/* end confdefs.h. */
5374#include <ctype.h>
5375#include <stdlib.h>
5376#if ((' ' & 0x0FF) == 0x020)
5377# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5378# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5379#else
5380# define ISLOWER(c) \
5381 (('a' <= (c) && (c) <= 'i') \
5382 || ('j' <= (c) && (c) <= 'r') \
5383 || ('s' <= (c) && (c) <= 'z'))
5384# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5385#endif
5386
5387#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5388int
5389main ()
5390{
5391 int i;
5392 for (i = 0; i < 256; i++)
5393 if (XOR (islower (i), ISLOWER (i))
5394 || toupper (i) != TOUPPER (i))
5395 return 2;
5396 return 0;
5397}
5398_ACEOF
5399if ac_fn_c_try_run "$LINENO"; then :
5400
5401else
5402 ac_cv_header_stdc=no
5403fi
5404rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5405 conftest.$ac_objext conftest.beam conftest.$ac_ext
5406fi
5407
5408fi
5409fi
5410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5411$as_echo "$ac_cv_header_stdc" >&6; }
5412if test $ac_cv_header_stdc = yes; then
5413
5414$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5415
5416fi
5417
5418# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5419for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5420 inttypes.h stdint.h unistd.h
5421do :
5422 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5423ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5424"
cristy98dddb52010-11-04 00:30:15 +00005425if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005426 cat >>confdefs.h <<_ACEOF
5427#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5428_ACEOF
5429
5430fi
5431
5432done
5433
5434
5435
5436 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00005437if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005438 MINIX=yes
5439else
5440 MINIX=
5441fi
5442
5443
5444 if test "$MINIX" = yes; then
5445
5446$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5447
5448
5449$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5450
5451
5452$as_echo "#define _MINIX 1" >>confdefs.h
5453
5454 fi
5455
5456
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5458$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005459if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005460 $as_echo_n "(cached) " >&6
5461else
5462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463/* end confdefs.h. */
5464
5465# define __EXTENSIONS__ 1
5466 $ac_includes_default
5467int
5468main ()
5469{
5470
5471 ;
5472 return 0;
5473}
5474_ACEOF
5475if ac_fn_c_try_compile "$LINENO"; then :
5476 ac_cv_safe_to_define___extensions__=yes
5477else
5478 ac_cv_safe_to_define___extensions__=no
5479fi
5480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5481fi
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5483$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5484 test $ac_cv_safe_to_define___extensions__ = yes &&
5485 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5486
5487 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5488
5489 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5490
5491 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5492
5493 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5494
5495
5496
5497# Check for programs
5498ac_ext=c
5499ac_cpp='$CPP $CPPFLAGS'
5500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5502ac_compiler_gnu=$ac_cv_c_compiler_gnu
5503if test -n "$ac_tool_prefix"; then
5504 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5505set dummy ${ac_tool_prefix}gcc; ac_word=$2
5506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005508if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005509 $as_echo_n "(cached) " >&6
5510else
5511 if test -n "$CC"; then
5512 ac_cv_prog_CC="$CC" # Let the user override the test.
5513else
5514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515for as_dir in $PATH
5516do
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5521 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 break 2
5524 fi
5525done
5526 done
5527IFS=$as_save_IFS
5528
5529fi
5530fi
5531CC=$ac_cv_prog_CC
5532if test -n "$CC"; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5534$as_echo "$CC" >&6; }
5535else
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537$as_echo "no" >&6; }
5538fi
5539
5540
5541fi
5542if test -z "$ac_cv_prog_CC"; then
5543 ac_ct_CC=$CC
5544 # Extract the first word of "gcc", so it can be a program name with args.
5545set dummy gcc; ac_word=$2
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005548if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005549 $as_echo_n "(cached) " >&6
5550else
5551 if test -n "$ac_ct_CC"; then
5552 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5553else
5554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555for as_dir in $PATH
5556do
5557 IFS=$as_save_IFS
5558 test -z "$as_dir" && as_dir=.
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5561 ac_cv_prog_ac_ct_CC="gcc"
5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563 break 2
5564 fi
5565done
5566 done
5567IFS=$as_save_IFS
5568
5569fi
5570fi
5571ac_ct_CC=$ac_cv_prog_ac_ct_CC
5572if test -n "$ac_ct_CC"; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5574$as_echo "$ac_ct_CC" >&6; }
5575else
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577$as_echo "no" >&6; }
5578fi
5579
5580 if test "x$ac_ct_CC" = x; then
5581 CC=""
5582 else
5583 case $cross_compiling:$ac_tool_warned in
5584yes:)
5585{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5587ac_tool_warned=yes ;;
5588esac
5589 CC=$ac_ct_CC
5590 fi
5591else
5592 CC="$ac_cv_prog_CC"
5593fi
5594
5595if test -z "$CC"; then
5596 if test -n "$ac_tool_prefix"; then
5597 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5598set dummy ${ac_tool_prefix}cc; ac_word=$2
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5600$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005601if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005602 $as_echo_n "(cached) " >&6
5603else
5604 if test -n "$CC"; then
5605 ac_cv_prog_CC="$CC" # Let the user override the test.
5606else
5607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608for as_dir in $PATH
5609do
5610 IFS=$as_save_IFS
5611 test -z "$as_dir" && as_dir=.
5612 for ac_exec_ext in '' $ac_executable_extensions; do
5613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5614 ac_cv_prog_CC="${ac_tool_prefix}cc"
5615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5616 break 2
5617 fi
5618done
5619 done
5620IFS=$as_save_IFS
5621
5622fi
5623fi
5624CC=$ac_cv_prog_CC
5625if test -n "$CC"; then
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5627$as_echo "$CC" >&6; }
5628else
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5630$as_echo "no" >&6; }
5631fi
5632
5633
5634 fi
5635fi
5636if test -z "$CC"; then
5637 # Extract the first word of "cc", so it can be a program name with args.
5638set dummy cc; ac_word=$2
5639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5640$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005641if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005642 $as_echo_n "(cached) " >&6
5643else
5644 if test -n "$CC"; then
5645 ac_cv_prog_CC="$CC" # Let the user override the test.
5646else
5647 ac_prog_rejected=no
5648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649for as_dir in $PATH
5650do
5651 IFS=$as_save_IFS
5652 test -z "$as_dir" && as_dir=.
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5655 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5656 ac_prog_rejected=yes
5657 continue
5658 fi
5659 ac_cv_prog_CC="cc"
5660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5661 break 2
5662 fi
5663done
5664 done
5665IFS=$as_save_IFS
5666
5667if test $ac_prog_rejected = yes; then
5668 # We found a bogon in the path, so make sure we never use it.
5669 set dummy $ac_cv_prog_CC
5670 shift
5671 if test $# != 0; then
5672 # We chose a different compiler from the bogus one.
5673 # However, it has the same basename, so the bogon will be chosen
5674 # first if we set CC to just the basename; use the full file name.
5675 shift
5676 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5677 fi
5678fi
5679fi
5680fi
5681CC=$ac_cv_prog_CC
5682if test -n "$CC"; then
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5684$as_echo "$CC" >&6; }
5685else
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687$as_echo "no" >&6; }
5688fi
5689
5690
5691fi
5692if test -z "$CC"; then
5693 if test -n "$ac_tool_prefix"; then
5694 for ac_prog in cl.exe
5695 do
5696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5697set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5699$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005700if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005701 $as_echo_n "(cached) " >&6
5702else
5703 if test -n "$CC"; then
5704 ac_cv_prog_CC="$CC" # Let the user override the test.
5705else
5706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707for as_dir in $PATH
5708do
5709 IFS=$as_save_IFS
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5713 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5715 break 2
5716 fi
5717done
5718 done
5719IFS=$as_save_IFS
5720
5721fi
5722fi
5723CC=$ac_cv_prog_CC
5724if test -n "$CC"; then
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5726$as_echo "$CC" >&6; }
5727else
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729$as_echo "no" >&6; }
5730fi
5731
5732
5733 test -n "$CC" && break
5734 done
5735fi
5736if test -z "$CC"; then
5737 ac_ct_CC=$CC
5738 for ac_prog in cl.exe
5739do
5740 # Extract the first word of "$ac_prog", so it can be a program name with args.
5741set dummy $ac_prog; ac_word=$2
5742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5743$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005744if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005745 $as_echo_n "(cached) " >&6
5746else
5747 if test -n "$ac_ct_CC"; then
5748 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5749else
5750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751for as_dir in $PATH
5752do
5753 IFS=$as_save_IFS
5754 test -z "$as_dir" && as_dir=.
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5757 ac_cv_prog_ac_ct_CC="$ac_prog"
5758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759 break 2
5760 fi
5761done
5762 done
5763IFS=$as_save_IFS
5764
5765fi
5766fi
5767ac_ct_CC=$ac_cv_prog_ac_ct_CC
5768if test -n "$ac_ct_CC"; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5770$as_echo "$ac_ct_CC" >&6; }
5771else
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773$as_echo "no" >&6; }
5774fi
5775
5776
5777 test -n "$ac_ct_CC" && break
5778done
5779
5780 if test "x$ac_ct_CC" = x; then
5781 CC=""
5782 else
5783 case $cross_compiling:$ac_tool_warned in
5784yes:)
5785{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5787ac_tool_warned=yes ;;
5788esac
5789 CC=$ac_ct_CC
5790 fi
5791fi
5792
5793fi
5794
5795
5796test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005798as_fn_error $? "no acceptable C compiler found in \$PATH
5799See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005800
5801# Provide some information about the compiler.
5802$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5803set X $ac_compile
5804ac_compiler=$2
5805for ac_option in --version -v -V -qversion; do
5806 { { ac_try="$ac_compiler $ac_option >&5"
5807case "(($ac_try" in
5808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5809 *) ac_try_echo=$ac_try;;
5810esac
5811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5812$as_echo "$ac_try_echo"; } >&5
5813 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5814 ac_status=$?
5815 if test -s conftest.err; then
5816 sed '10a\
5817... rest of stderr output deleted ...
5818 10q' conftest.err >conftest.er1
5819 cat conftest.er1 >&5
5820 fi
5821 rm -f conftest.er1 conftest.err
5822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5823 test $ac_status = 0; }
5824done
5825
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5827$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005828if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005829 $as_echo_n "(cached) " >&6
5830else
5831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832/* end confdefs.h. */
5833
5834int
5835main ()
5836{
5837#ifndef __GNUC__
5838 choke me
5839#endif
5840
5841 ;
5842 return 0;
5843}
5844_ACEOF
5845if ac_fn_c_try_compile "$LINENO"; then :
5846 ac_compiler_gnu=yes
5847else
5848 ac_compiler_gnu=no
5849fi
5850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5851ac_cv_c_compiler_gnu=$ac_compiler_gnu
5852
5853fi
5854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5855$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5856if test $ac_compiler_gnu = yes; then
5857 GCC=yes
5858else
5859 GCC=
5860fi
5861ac_test_CFLAGS=${CFLAGS+set}
5862ac_save_CFLAGS=$CFLAGS
5863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5864$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005865if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005866 $as_echo_n "(cached) " >&6
5867else
5868 ac_save_c_werror_flag=$ac_c_werror_flag
5869 ac_c_werror_flag=yes
5870 ac_cv_prog_cc_g=no
5871 CFLAGS="-g"
5872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5873/* end confdefs.h. */
5874
5875int
5876main ()
5877{
5878
5879 ;
5880 return 0;
5881}
5882_ACEOF
5883if ac_fn_c_try_compile "$LINENO"; then :
5884 ac_cv_prog_cc_g=yes
5885else
5886 CFLAGS=""
5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888/* end confdefs.h. */
5889
5890int
5891main ()
5892{
5893
5894 ;
5895 return 0;
5896}
5897_ACEOF
5898if ac_fn_c_try_compile "$LINENO"; then :
5899
5900else
5901 ac_c_werror_flag=$ac_save_c_werror_flag
5902 CFLAGS="-g"
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904/* end confdefs.h. */
5905
5906int
5907main ()
5908{
5909
5910 ;
5911 return 0;
5912}
5913_ACEOF
5914if ac_fn_c_try_compile "$LINENO"; then :
5915 ac_cv_prog_cc_g=yes
5916fi
5917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5918fi
5919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5920fi
5921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5922 ac_c_werror_flag=$ac_save_c_werror_flag
5923fi
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5925$as_echo "$ac_cv_prog_cc_g" >&6; }
5926if test "$ac_test_CFLAGS" = set; then
5927 CFLAGS=$ac_save_CFLAGS
5928elif test $ac_cv_prog_cc_g = yes; then
5929 if test "$GCC" = yes; then
5930 CFLAGS="-g -O2"
5931 else
5932 CFLAGS="-g"
5933 fi
5934else
5935 if test "$GCC" = yes; then
5936 CFLAGS="-O2"
5937 else
5938 CFLAGS=
5939 fi
5940fi
5941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5942$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005943if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005944 $as_echo_n "(cached) " >&6
5945else
5946 ac_cv_prog_cc_c89=no
5947ac_save_CC=$CC
5948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949/* end confdefs.h. */
5950#include <stdarg.h>
5951#include <stdio.h>
5952#include <sys/types.h>
5953#include <sys/stat.h>
5954/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5955struct buf { int x; };
5956FILE * (*rcsopen) (struct buf *, struct stat *, int);
5957static char *e (p, i)
5958 char **p;
5959 int i;
5960{
5961 return p[i];
5962}
5963static char *f (char * (*g) (char **, int), char **p, ...)
5964{
5965 char *s;
5966 va_list v;
5967 va_start (v,p);
5968 s = g (p, va_arg (v,int));
5969 va_end (v);
5970 return s;
5971}
5972
5973/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5974 function prototypes and stuff, but not '\xHH' hex character constants.
5975 These don't provoke an error unfortunately, instead are silently treated
5976 as 'x'. The following induces an error, until -std is added to get
5977 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5978 array size at least. It's necessary to write '\x00'==0 to get something
5979 that's true only with -std. */
5980int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5981
5982/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5983 inside strings and character constants. */
5984#define FOO(x) 'x'
5985int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5986
5987int test (int i, double x);
5988struct s1 {int (*f) (int a);};
5989struct s2 {int (*f) (double a);};
5990int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5991int argc;
5992char **argv;
5993int
5994main ()
5995{
5996return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5997 ;
5998 return 0;
5999}
6000_ACEOF
6001for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6002 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6003do
6004 CC="$ac_save_CC $ac_arg"
6005 if ac_fn_c_try_compile "$LINENO"; then :
6006 ac_cv_prog_cc_c89=$ac_arg
6007fi
6008rm -f core conftest.err conftest.$ac_objext
6009 test "x$ac_cv_prog_cc_c89" != "xno" && break
6010done
6011rm -f conftest.$ac_ext
6012CC=$ac_save_CC
6013
6014fi
6015# AC_CACHE_VAL
6016case "x$ac_cv_prog_cc_c89" in
6017 x)
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6019$as_echo "none needed" >&6; } ;;
6020 xno)
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6022$as_echo "unsupported" >&6; } ;;
6023 *)
6024 CC="$CC $ac_cv_prog_cc_c89"
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6026$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6027esac
6028if test "x$ac_cv_prog_cc_c89" != xno; then :
6029
6030fi
6031
6032ac_ext=c
6033ac_cpp='$CPP $CPPFLAGS'
6034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6036ac_compiler_gnu=$ac_cv_c_compiler_gnu
6037
cristy73bd4a52010-10-05 11:24:23 +00006038depcc="$CC" am_compiler_list=
6039
6040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6041$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006042if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006043 $as_echo_n "(cached) " >&6
6044else
6045 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6046 # We make a subdir and do the tests there. Otherwise we can end up
6047 # making bogus files that we don't know about and never remove. For
6048 # instance it was reported that on HP-UX the gcc test will end up
6049 # making a dummy file named `D' -- because `-MD' means `put the output
6050 # in D'.
6051 mkdir conftest.dir
6052 # Copy depcomp to subdir because otherwise we won't find it if we're
6053 # using a relative directory.
6054 cp "$am_depcomp" conftest.dir
6055 cd conftest.dir
6056 # We will build objects and dependencies in a subdirectory because
6057 # it helps to detect inapplicable dependency modes. For instance
6058 # both Tru64's cc and ICC support -MD to output dependencies as a
6059 # side effect of compilation, but ICC will put the dependencies in
6060 # the current directory while Tru64 will put them in the object
6061 # directory.
6062 mkdir sub
6063
6064 am_cv_CC_dependencies_compiler_type=none
6065 if test "$am_compiler_list" = ""; then
6066 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6067 fi
6068 am__universal=false
6069 case " $depcc " in #(
6070 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6071 esac
6072
6073 for depmode in $am_compiler_list; do
6074 # Setup a source with many dependencies, because some compilers
6075 # like to wrap large dependency lists on column 80 (with \), and
6076 # we should not choose a depcomp mode which is confused by this.
6077 #
6078 # We need to recreate these files for each test, as the compiler may
6079 # overwrite some of them when testing with obscure command lines.
6080 # This happens at least with the AIX C compiler.
6081 : > sub/conftest.c
6082 for i in 1 2 3 4 5 6; do
6083 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6084 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6085 # Solaris 8's {/usr,}/bin/sh.
6086 touch sub/conftst$i.h
6087 done
6088 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6089
6090 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6091 # mode. It turns out that the SunPro C++ compiler does not properly
6092 # handle `-M -o', and we need to detect this. Also, some Intel
6093 # versions had trouble with output in subdirs
6094 am__obj=sub/conftest.${OBJEXT-o}
6095 am__minus_obj="-o $am__obj"
6096 case $depmode in
6097 gcc)
6098 # This depmode causes a compiler race in universal mode.
6099 test "$am__universal" = false || continue
6100 ;;
6101 nosideeffect)
6102 # after this tag, mechanisms are not by side-effect, so they'll
6103 # only be used when explicitly requested
6104 if test "x$enable_dependency_tracking" = xyes; then
6105 continue
6106 else
6107 break
6108 fi
6109 ;;
6110 msvisualcpp | msvcmsys)
6111 # This compiler won't grok `-c -o', but also, the minuso test has
6112 # not run yet. These depmodes are late enough in the game, and
6113 # so weak that their functioning should not be impacted.
6114 am__obj=conftest.${OBJEXT-o}
6115 am__minus_obj=
6116 ;;
6117 none) break ;;
6118 esac
6119 if depmode=$depmode \
6120 source=sub/conftest.c object=$am__obj \
6121 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6122 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6123 >/dev/null 2>conftest.err &&
6124 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6125 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6126 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6127 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6128 # icc doesn't choke on unknown options, it will just issue warnings
6129 # or remarks (even with -Werror). So we grep stderr for any message
6130 # that says an option was ignored or not supported.
6131 # When given -MP, icc 7.0 and 7.1 complain thusly:
6132 # icc: Command line warning: ignoring option '-M'; no argument required
6133 # The diagnosis changed in icc 8.0:
6134 # icc: Command line remark: option '-MP' not supported
6135 if (grep 'ignoring option' conftest.err ||
6136 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6137 am_cv_CC_dependencies_compiler_type=$depmode
6138 break
6139 fi
6140 fi
6141 done
6142
6143 cd ..
6144 rm -rf conftest.dir
6145else
6146 am_cv_CC_dependencies_compiler_type=none
6147fi
6148
6149fi
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6151$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6152CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6153
6154 if
6155 test "x$enable_dependency_tracking" != xno \
6156 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6157 am__fastdepCC_TRUE=
6158 am__fastdepCC_FALSE='#'
6159else
6160 am__fastdepCC_TRUE='#'
6161 am__fastdepCC_FALSE=
6162fi
6163
6164
cristy95646052009-11-28 23:05:30 +00006165ac_ext=cpp
6166ac_cpp='$CXXCPP $CPPFLAGS'
6167ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6168ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6169ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6170if test -z "$CXX"; then
6171 if test -n "$CCC"; then
6172 CXX=$CCC
6173 else
6174 if test -n "$ac_tool_prefix"; then
6175 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6176 do
6177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6178set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6180$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006181if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006182 $as_echo_n "(cached) " >&6
6183else
6184 if test -n "$CXX"; then
6185 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6186else
6187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188for as_dir in $PATH
6189do
6190 IFS=$as_save_IFS
6191 test -z "$as_dir" && as_dir=.
6192 for ac_exec_ext in '' $ac_executable_extensions; do
6193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6194 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 break 2
6197 fi
6198done
6199 done
6200IFS=$as_save_IFS
6201
6202fi
6203fi
6204CXX=$ac_cv_prog_CXX
6205if test -n "$CXX"; then
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6207$as_echo "$CXX" >&6; }
6208else
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6210$as_echo "no" >&6; }
6211fi
6212
6213
6214 test -n "$CXX" && break
6215 done
6216fi
6217if test -z "$CXX"; then
6218 ac_ct_CXX=$CXX
6219 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6220do
6221 # Extract the first word of "$ac_prog", so it can be a program name with args.
6222set dummy $ac_prog; ac_word=$2
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006225if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006226 $as_echo_n "(cached) " >&6
6227else
6228 if test -n "$ac_ct_CXX"; then
6229 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6230else
6231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232for as_dir in $PATH
6233do
6234 IFS=$as_save_IFS
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6238 ac_cv_prog_ac_ct_CXX="$ac_prog"
6239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 break 2
6241 fi
6242done
6243 done
6244IFS=$as_save_IFS
6245
6246fi
6247fi
6248ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6249if test -n "$ac_ct_CXX"; then
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6251$as_echo "$ac_ct_CXX" >&6; }
6252else
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254$as_echo "no" >&6; }
6255fi
6256
6257
6258 test -n "$ac_ct_CXX" && break
6259done
6260
6261 if test "x$ac_ct_CXX" = x; then
6262 CXX="g++"
6263 else
6264 case $cross_compiling:$ac_tool_warned in
6265yes:)
6266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6268ac_tool_warned=yes ;;
6269esac
6270 CXX=$ac_ct_CXX
6271 fi
6272fi
6273
6274 fi
6275fi
6276# Provide some information about the compiler.
6277$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6278set X $ac_compile
6279ac_compiler=$2
6280for ac_option in --version -v -V -qversion; do
6281 { { ac_try="$ac_compiler $ac_option >&5"
6282case "(($ac_try" in
6283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6284 *) ac_try_echo=$ac_try;;
6285esac
6286eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6287$as_echo "$ac_try_echo"; } >&5
6288 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6289 ac_status=$?
6290 if test -s conftest.err; then
6291 sed '10a\
6292... rest of stderr output deleted ...
6293 10q' conftest.err >conftest.er1
6294 cat conftest.er1 >&5
6295 fi
6296 rm -f conftest.er1 conftest.err
6297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6298 test $ac_status = 0; }
6299done
6300
6301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6302$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006303if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006304 $as_echo_n "(cached) " >&6
6305else
6306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6307/* end confdefs.h. */
6308
6309int
6310main ()
6311{
6312#ifndef __GNUC__
6313 choke me
6314#endif
6315
6316 ;
6317 return 0;
6318}
6319_ACEOF
6320if ac_fn_cxx_try_compile "$LINENO"; then :
6321 ac_compiler_gnu=yes
6322else
6323 ac_compiler_gnu=no
6324fi
6325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6327
6328fi
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6330$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6331if test $ac_compiler_gnu = yes; then
6332 GXX=yes
6333else
6334 GXX=
6335fi
6336ac_test_CXXFLAGS=${CXXFLAGS+set}
6337ac_save_CXXFLAGS=$CXXFLAGS
6338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6339$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006340if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006341 $as_echo_n "(cached) " >&6
6342else
6343 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6344 ac_cxx_werror_flag=yes
6345 ac_cv_prog_cxx_g=no
6346 CXXFLAGS="-g"
6347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348/* end confdefs.h. */
6349
6350int
6351main ()
6352{
6353
6354 ;
6355 return 0;
6356}
6357_ACEOF
6358if ac_fn_cxx_try_compile "$LINENO"; then :
6359 ac_cv_prog_cxx_g=yes
6360else
6361 CXXFLAGS=""
6362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363/* end confdefs.h. */
6364
6365int
6366main ()
6367{
6368
6369 ;
6370 return 0;
6371}
6372_ACEOF
6373if ac_fn_cxx_try_compile "$LINENO"; then :
6374
6375else
6376 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6377 CXXFLAGS="-g"
6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379/* end confdefs.h. */
6380
6381int
6382main ()
6383{
6384
6385 ;
6386 return 0;
6387}
6388_ACEOF
6389if ac_fn_cxx_try_compile "$LINENO"; then :
6390 ac_cv_prog_cxx_g=yes
6391fi
6392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6393fi
6394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6395fi
6396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6397 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6398fi
6399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6400$as_echo "$ac_cv_prog_cxx_g" >&6; }
6401if test "$ac_test_CXXFLAGS" = set; then
6402 CXXFLAGS=$ac_save_CXXFLAGS
6403elif test $ac_cv_prog_cxx_g = yes; then
6404 if test "$GXX" = yes; then
6405 CXXFLAGS="-g -O2"
6406 else
6407 CXXFLAGS="-g"
6408 fi
6409else
6410 if test "$GXX" = yes; then
6411 CXXFLAGS="-O2"
6412 else
6413 CXXFLAGS=
6414 fi
6415fi
6416ac_ext=c
6417ac_cpp='$CPP $CPPFLAGS'
6418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6420ac_compiler_gnu=$ac_cv_c_compiler_gnu
6421
cristy73bd4a52010-10-05 11:24:23 +00006422depcc="$CXX" am_compiler_list=
6423
6424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6425$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006426if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006427 $as_echo_n "(cached) " >&6
6428else
6429 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6430 # We make a subdir and do the tests there. Otherwise we can end up
6431 # making bogus files that we don't know about and never remove. For
6432 # instance it was reported that on HP-UX the gcc test will end up
6433 # making a dummy file named `D' -- because `-MD' means `put the output
6434 # in D'.
6435 mkdir conftest.dir
6436 # Copy depcomp to subdir because otherwise we won't find it if we're
6437 # using a relative directory.
6438 cp "$am_depcomp" conftest.dir
6439 cd conftest.dir
6440 # We will build objects and dependencies in a subdirectory because
6441 # it helps to detect inapplicable dependency modes. For instance
6442 # both Tru64's cc and ICC support -MD to output dependencies as a
6443 # side effect of compilation, but ICC will put the dependencies in
6444 # the current directory while Tru64 will put them in the object
6445 # directory.
6446 mkdir sub
6447
6448 am_cv_CXX_dependencies_compiler_type=none
6449 if test "$am_compiler_list" = ""; then
6450 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6451 fi
6452 am__universal=false
6453 case " $depcc " in #(
6454 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6455 esac
6456
6457 for depmode in $am_compiler_list; do
6458 # Setup a source with many dependencies, because some compilers
6459 # like to wrap large dependency lists on column 80 (with \), and
6460 # we should not choose a depcomp mode which is confused by this.
6461 #
6462 # We need to recreate these files for each test, as the compiler may
6463 # overwrite some of them when testing with obscure command lines.
6464 # This happens at least with the AIX C compiler.
6465 : > sub/conftest.c
6466 for i in 1 2 3 4 5 6; do
6467 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6468 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6469 # Solaris 8's {/usr,}/bin/sh.
6470 touch sub/conftst$i.h
6471 done
6472 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6473
6474 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6475 # mode. It turns out that the SunPro C++ compiler does not properly
6476 # handle `-M -o', and we need to detect this. Also, some Intel
6477 # versions had trouble with output in subdirs
6478 am__obj=sub/conftest.${OBJEXT-o}
6479 am__minus_obj="-o $am__obj"
6480 case $depmode in
6481 gcc)
6482 # This depmode causes a compiler race in universal mode.
6483 test "$am__universal" = false || continue
6484 ;;
6485 nosideeffect)
6486 # after this tag, mechanisms are not by side-effect, so they'll
6487 # only be used when explicitly requested
6488 if test "x$enable_dependency_tracking" = xyes; then
6489 continue
6490 else
6491 break
6492 fi
6493 ;;
6494 msvisualcpp | msvcmsys)
6495 # This compiler won't grok `-c -o', but also, the minuso test has
6496 # not run yet. These depmodes are late enough in the game, and
6497 # so weak that their functioning should not be impacted.
6498 am__obj=conftest.${OBJEXT-o}
6499 am__minus_obj=
6500 ;;
6501 none) break ;;
6502 esac
6503 if depmode=$depmode \
6504 source=sub/conftest.c object=$am__obj \
6505 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6506 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6507 >/dev/null 2>conftest.err &&
6508 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6509 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6510 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6511 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6512 # icc doesn't choke on unknown options, it will just issue warnings
6513 # or remarks (even with -Werror). So we grep stderr for any message
6514 # that says an option was ignored or not supported.
6515 # When given -MP, icc 7.0 and 7.1 complain thusly:
6516 # icc: Command line warning: ignoring option '-M'; no argument required
6517 # The diagnosis changed in icc 8.0:
6518 # icc: Command line remark: option '-MP' not supported
6519 if (grep 'ignoring option' conftest.err ||
6520 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6521 am_cv_CXX_dependencies_compiler_type=$depmode
6522 break
6523 fi
6524 fi
6525 done
6526
6527 cd ..
6528 rm -rf conftest.dir
6529else
6530 am_cv_CXX_dependencies_compiler_type=none
6531fi
6532
6533fi
6534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6535$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6536CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6537
6538 if
6539 test "x$enable_dependency_tracking" != xno \
6540 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6541 am__fastdepCXX_TRUE=
6542 am__fastdepCXX_FALSE='#'
6543else
6544 am__fastdepCXX_TRUE='#'
6545 am__fastdepCXX_FALSE=
6546fi
6547
6548
cristy8b350f62009-11-15 23:12:43 +00006549 case $ac_cv_prog_cc_stdc in #(
6550 no) :
6551 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6552 *) :
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006554$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006555if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006556 $as_echo_n "(cached) " >&6
6557else
6558 ac_cv_prog_cc_c99=no
6559ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006561/* end confdefs.h. */
6562#include <stdarg.h>
6563#include <stdbool.h>
6564#include <stdlib.h>
6565#include <wchar.h>
6566#include <stdio.h>
6567
6568// Check varargs macros. These examples are taken from C99 6.10.3.5.
6569#define debug(...) fprintf (stderr, __VA_ARGS__)
6570#define showlist(...) puts (#__VA_ARGS__)
6571#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6572static void
6573test_varargs_macros (void)
6574{
6575 int x = 1234;
6576 int y = 5678;
6577 debug ("Flag");
6578 debug ("X = %d\n", x);
6579 showlist (The first, second, and third items.);
6580 report (x>y, "x is %d but y is %d", x, y);
6581}
6582
6583// Check long long types.
6584#define BIG64 18446744073709551615ull
6585#define BIG32 4294967295ul
6586#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6587#if !BIG_OK
6588 your preprocessor is broken;
6589#endif
6590#if BIG_OK
6591#else
6592 your preprocessor is broken;
6593#endif
6594static long long int bignum = -9223372036854775807LL;
6595static unsigned long long int ubignum = BIG64;
6596
6597struct incomplete_array
6598{
6599 int datasize;
6600 double data[];
6601};
6602
6603struct named_init {
6604 int number;
6605 const wchar_t *name;
6606 double average;
6607};
6608
6609typedef const char *ccp;
6610
6611static inline int
6612test_restrict (ccp restrict text)
6613{
6614 // See if C++-style comments work.
6615 // Iterate through items via the restricted pointer.
6616 // Also check for declarations in for loops.
6617 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6618 continue;
6619 return 0;
6620}
6621
6622// Check varargs and va_copy.
6623static void
6624test_varargs (const char *format, ...)
6625{
6626 va_list args;
6627 va_start (args, format);
6628 va_list args_copy;
6629 va_copy (args_copy, args);
6630
6631 const char *str;
6632 int number;
6633 float fnumber;
6634
6635 while (*format)
6636 {
6637 switch (*format++)
6638 {
6639 case 's': // string
6640 str = va_arg (args_copy, const char *);
6641 break;
6642 case 'd': // int
6643 number = va_arg (args_copy, int);
6644 break;
6645 case 'f': // float
6646 fnumber = va_arg (args_copy, double);
6647 break;
6648 default:
6649 break;
6650 }
6651 }
6652 va_end (args_copy);
6653 va_end (args);
6654}
6655
6656int
6657main ()
6658{
6659
6660 // Check bool.
6661 _Bool success = false;
6662
6663 // Check restrict.
6664 if (test_restrict ("String literal") == 0)
6665 success = true;
6666 char *restrict newvar = "Another string";
6667
6668 // Check varargs.
6669 test_varargs ("s, d' f .", "string", 65, 34.234);
6670 test_varargs_macros ();
6671
6672 // Check flexible array members.
6673 struct incomplete_array *ia =
6674 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6675 ia->datasize = 10;
6676 for (int i = 0; i < ia->datasize; ++i)
6677 ia->data[i] = i * 1.234;
6678
6679 // Check named initializers.
6680 struct named_init ni = {
6681 .number = 34,
6682 .name = L"Test wide string",
6683 .average = 543.34343,
6684 };
6685
6686 ni.number = 58;
6687
6688 int dynamic_array[ni.number];
6689 dynamic_array[ni.number - 1] = 543;
6690
6691 // work around unused variable warnings
6692 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6693 || dynamic_array[ni.number - 1] != 543);
6694
6695 ;
6696 return 0;
6697}
6698_ACEOF
6699for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6700do
6701 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006702 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006703 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006704fi
cristy3ed852e2009-09-05 21:47:34 +00006705rm -f core conftest.err conftest.$ac_objext
6706 test "x$ac_cv_prog_cc_c99" != "xno" && break
6707done
6708rm -f conftest.$ac_ext
6709CC=$ac_save_CC
6710
6711fi
6712# AC_CACHE_VAL
6713case "x$ac_cv_prog_cc_c99" in
6714 x)
cristy8b350f62009-11-15 23:12:43 +00006715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006716$as_echo "none needed" >&6; } ;;
6717 xno)
cristy8b350f62009-11-15 23:12:43 +00006718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006719$as_echo "unsupported" >&6; } ;;
6720 *)
6721 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006723$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6724esac
cristy8b350f62009-11-15 23:12:43 +00006725if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006726 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6727else
cristy8b350f62009-11-15 23:12:43 +00006728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006729$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006730if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006731 $as_echo_n "(cached) " >&6
6732else
6733 ac_cv_prog_cc_c89=no
6734ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006736/* end confdefs.h. */
6737#include <stdarg.h>
6738#include <stdio.h>
6739#include <sys/types.h>
6740#include <sys/stat.h>
6741/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6742struct buf { int x; };
6743FILE * (*rcsopen) (struct buf *, struct stat *, int);
6744static char *e (p, i)
6745 char **p;
6746 int i;
6747{
6748 return p[i];
6749}
6750static char *f (char * (*g) (char **, int), char **p, ...)
6751{
6752 char *s;
6753 va_list v;
6754 va_start (v,p);
6755 s = g (p, va_arg (v,int));
6756 va_end (v);
6757 return s;
6758}
6759
6760/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6761 function prototypes and stuff, but not '\xHH' hex character constants.
6762 These don't provoke an error unfortunately, instead are silently treated
6763 as 'x'. The following induces an error, until -std is added to get
6764 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6765 array size at least. It's necessary to write '\x00'==0 to get something
6766 that's true only with -std. */
6767int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6768
6769/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6770 inside strings and character constants. */
6771#define FOO(x) 'x'
6772int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6773
6774int test (int i, double x);
6775struct s1 {int (*f) (int a);};
6776struct s2 {int (*f) (double a);};
6777int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6778int argc;
6779char **argv;
6780int
6781main ()
6782{
6783return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6784 ;
6785 return 0;
6786}
6787_ACEOF
6788for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6789 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6790do
6791 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006792 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006793 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006794fi
cristy3ed852e2009-09-05 21:47:34 +00006795rm -f core conftest.err conftest.$ac_objext
6796 test "x$ac_cv_prog_cc_c89" != "xno" && break
6797done
6798rm -f conftest.$ac_ext
6799CC=$ac_save_CC
6800
6801fi
6802# AC_CACHE_VAL
6803case "x$ac_cv_prog_cc_c89" in
6804 x)
cristy8b350f62009-11-15 23:12:43 +00006805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006806$as_echo "none needed" >&6; } ;;
6807 xno)
cristy8b350f62009-11-15 23:12:43 +00006808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006809$as_echo "unsupported" >&6; } ;;
6810 *)
6811 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006813$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6814esac
cristy8b350f62009-11-15 23:12:43 +00006815if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006816 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6817else
6818 ac_cv_prog_cc_stdc=no
6819fi
6820
cristy3ed852e2009-09-05 21:47:34 +00006821fi
cristy3ed852e2009-09-05 21:47:34 +00006822 ;;
6823esac
cristy8b350f62009-11-15 23:12:43 +00006824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006825$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006826 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006827 $as_echo_n "(cached) " >&6
6828fi
6829
cristy8b350f62009-11-15 23:12:43 +00006830 case $ac_cv_prog_cc_stdc in #(
6831 no) :
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6833$as_echo "unsupported" >&6; } ;; #(
6834 '') :
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6836$as_echo "none needed" >&6; } ;; #(
6837 *) :
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006839$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6840esac
6841
cristy3ed852e2009-09-05 21:47:34 +00006842ac_ext=c
6843ac_cpp='$CPP $CPPFLAGS'
6844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6846ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006848$as_echo_n "checking how to run the C preprocessor... " >&6; }
6849# On Suns, sometimes $CPP names a directory.
6850if test -n "$CPP" && test -d "$CPP"; then
6851 CPP=
6852fi
6853if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00006854 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006855 $as_echo_n "(cached) " >&6
6856else
6857 # Double quotes because CPP needs to be expanded
6858 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6859 do
6860 ac_preproc_ok=false
6861for ac_c_preproc_warn_flag in '' yes
6862do
6863 # Use a header file that comes with gcc, so configuring glibc
6864 # with a fresh cross-compiler works.
6865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6866 # <limits.h> exists even on freestanding compilers.
6867 # On the NeXT, cc -E runs the code through the compiler's parser,
6868 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006870/* end confdefs.h. */
6871#ifdef __STDC__
6872# include <limits.h>
6873#else
6874# include <assert.h>
6875#endif
6876 Syntax error
6877_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006878if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006879
cristy8b350f62009-11-15 23:12:43 +00006880else
cristy3ed852e2009-09-05 21:47:34 +00006881 # Broken: fails on valid input.
6882continue
6883fi
cristyda16f162011-02-19 23:52:17 +00006884rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006885
6886 # OK, works on sane cases. Now check whether nonexistent headers
6887 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006889/* end confdefs.h. */
6890#include <ac_nonexistent.h>
6891_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006892if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006893 # Broken: success on invalid input.
6894continue
6895else
cristy3ed852e2009-09-05 21:47:34 +00006896 # Passes both tests.
6897ac_preproc_ok=:
6898break
6899fi
cristyda16f162011-02-19 23:52:17 +00006900rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006901
6902done
6903# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00006904rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006905if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00006906 break
6907fi
6908
6909 done
6910 ac_cv_prog_CPP=$CPP
6911
6912fi
6913 CPP=$ac_cv_prog_CPP
6914else
6915 ac_cv_prog_CPP=$CPP
6916fi
cristy8b350f62009-11-15 23:12:43 +00006917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006918$as_echo "$CPP" >&6; }
6919ac_preproc_ok=false
6920for ac_c_preproc_warn_flag in '' yes
6921do
6922 # Use a header file that comes with gcc, so configuring glibc
6923 # with a fresh cross-compiler works.
6924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6925 # <limits.h> exists even on freestanding compilers.
6926 # On the NeXT, cc -E runs the code through the compiler's parser,
6927 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006929/* end confdefs.h. */
6930#ifdef __STDC__
6931# include <limits.h>
6932#else
6933# include <assert.h>
6934#endif
6935 Syntax error
6936_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006937if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006938
cristy8b350f62009-11-15 23:12:43 +00006939else
cristy3ed852e2009-09-05 21:47:34 +00006940 # Broken: fails on valid input.
6941continue
6942fi
cristyda16f162011-02-19 23:52:17 +00006943rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006944
6945 # OK, works on sane cases. Now check whether nonexistent headers
6946 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006948/* end confdefs.h. */
6949#include <ac_nonexistent.h>
6950_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006951if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006952 # Broken: success on invalid input.
6953continue
6954else
cristy3ed852e2009-09-05 21:47:34 +00006955 # Passes both tests.
6956ac_preproc_ok=:
6957break
6958fi
cristyda16f162011-02-19 23:52:17 +00006959rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006960
6961done
6962# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00006963rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006964if $ac_preproc_ok; then :
6965
cristy3ed852e2009-09-05 21:47:34 +00006966else
cristy8b350f62009-11-15 23:12:43 +00006967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00006968$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006969as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6970See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00006971fi
6972
6973ac_ext=c
6974ac_cpp='$CPP $CPPFLAGS'
6975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6977ac_compiler_gnu=$ac_cv_c_compiler_gnu
6978
cristy73bd4a52010-10-05 11:24:23 +00006979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6980$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006981if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006982 $as_echo_n "(cached) " >&6
6983else
6984 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6985 for ac_i in 1 2 3 4 5 6 7; do
6986 ac_script="$ac_script$as_nl$ac_script"
6987 done
6988 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6989 { ac_script=; unset ac_script;}
6990 if test -z "$SED"; then
6991 ac_path_SED_found=false
6992 # Loop through the user's path and test for each of PROGNAME-LIST
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994for as_dir in $PATH
6995do
6996 IFS=$as_save_IFS
6997 test -z "$as_dir" && as_dir=.
6998 for ac_prog in sed gsed; do
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7001 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7002# Check for GNU ac_path_SED and select it if it is found.
7003 # Check for GNU $ac_path_SED
7004case `"$ac_path_SED" --version 2>&1` in
7005*GNU*)
7006 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7007*)
7008 ac_count=0
7009 $as_echo_n 0123456789 >"conftest.in"
7010 while :
7011 do
7012 cat "conftest.in" "conftest.in" >"conftest.tmp"
7013 mv "conftest.tmp" "conftest.in"
7014 cp "conftest.in" "conftest.nl"
7015 $as_echo '' >> "conftest.nl"
7016 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7017 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7018 as_fn_arith $ac_count + 1 && ac_count=$as_val
7019 if test $ac_count -gt ${ac_path_SED_max-0}; then
7020 # Best one so far, save it but keep looking for a better one
7021 ac_cv_path_SED="$ac_path_SED"
7022 ac_path_SED_max=$ac_count
7023 fi
7024 # 10*(2^10) chars as input seems more than enough
7025 test $ac_count -gt 10 && break
7026 done
7027 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7028esac
7029
7030 $ac_path_SED_found && break 3
7031 done
7032 done
7033 done
7034IFS=$as_save_IFS
7035 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007036 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007037 fi
7038else
7039 ac_cv_path_SED=$SED
7040fi
7041
7042fi
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7044$as_echo "$ac_cv_path_SED" >&6; }
7045 SED="$ac_cv_path_SED"
7046 rm -f conftest.sed
7047
7048test -z "$SED" && SED=sed
7049Xsed="$SED -e 1s/^X//"
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7062$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007063if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007064 $as_echo_n "(cached) " >&6
7065else
7066 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7067 then ac_cv_path_FGREP="$GREP -F"
7068 else
7069 if test -z "$FGREP"; then
7070 ac_path_FGREP_found=false
7071 # Loop through the user's path and test for each of PROGNAME-LIST
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7074do
7075 IFS=$as_save_IFS
7076 test -z "$as_dir" && as_dir=.
7077 for ac_prog in fgrep; do
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7080 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7081# Check for GNU ac_path_FGREP and select it if it is found.
7082 # Check for GNU $ac_path_FGREP
7083case `"$ac_path_FGREP" --version 2>&1` in
7084*GNU*)
7085 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7086*)
7087 ac_count=0
7088 $as_echo_n 0123456789 >"conftest.in"
7089 while :
7090 do
7091 cat "conftest.in" "conftest.in" >"conftest.tmp"
7092 mv "conftest.tmp" "conftest.in"
7093 cp "conftest.in" "conftest.nl"
7094 $as_echo 'FGREP' >> "conftest.nl"
7095 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7096 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7097 as_fn_arith $ac_count + 1 && ac_count=$as_val
7098 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7099 # Best one so far, save it but keep looking for a better one
7100 ac_cv_path_FGREP="$ac_path_FGREP"
7101 ac_path_FGREP_max=$ac_count
7102 fi
7103 # 10*(2^10) chars as input seems more than enough
7104 test $ac_count -gt 10 && break
7105 done
7106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7107esac
7108
7109 $ac_path_FGREP_found && break 3
7110 done
7111 done
7112 done
7113IFS=$as_save_IFS
7114 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007115 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007116 fi
7117else
7118 ac_cv_path_FGREP=$FGREP
7119fi
7120
7121 fi
7122fi
7123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7124$as_echo "$ac_cv_path_FGREP" >&6; }
7125 FGREP="$ac_cv_path_FGREP"
7126
7127
7128test -z "$GREP" && GREP=grep
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
cristy0c60a692010-11-04 01:09:47 +00007146ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7147ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7148ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7149
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7151$as_echo_n "checking how to print strings... " >&6; }
7152# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007153if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007154 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7155 ECHO='print -r --'
7156elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7157 ECHO='printf %s\n'
7158else
7159 # Use this function as a fallback that always works.
7160 func_fallback_echo ()
7161 {
7162 eval 'cat <<_LTECHO_EOF
7163$1
7164_LTECHO_EOF'
7165 }
7166 ECHO='func_fallback_echo'
7167fi
7168
7169# func_echo_all arg...
7170# Invoke $ECHO with all args, space-separated.
7171func_echo_all ()
7172{
7173 $ECHO ""
7174}
7175
7176case "$ECHO" in
7177 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7178$as_echo "printf" >&6; } ;;
7179 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7180$as_echo "print -r" >&6; } ;;
7181 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7182$as_echo "cat" >&6; } ;;
7183esac
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
cristy73bd4a52010-10-05 11:24:23 +00007198
7199
7200# Check whether --with-gnu-ld was given.
7201if test "${with_gnu_ld+set}" = set; then :
7202 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7203else
7204 with_gnu_ld=no
7205fi
7206
7207ac_prog=ld
7208if test "$GCC" = yes; then
7209 # Check if gcc -print-prog-name=ld gives a path.
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7211$as_echo_n "checking for ld used by $CC... " >&6; }
7212 case $host in
7213 *-*-mingw*)
7214 # gcc leaves a trailing carriage return which upsets mingw
7215 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7216 *)
7217 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7218 esac
7219 case $ac_prog in
7220 # Accept absolute paths.
7221 [\\/]* | ?:[\\/]*)
7222 re_direlt='/[^/][^/]*/\.\./'
7223 # Canonicalize the pathname of ld
7224 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7225 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7226 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7227 done
7228 test -z "$LD" && LD="$ac_prog"
7229 ;;
7230 "")
7231 # If it fails, then pretend we aren't using GCC.
7232 ac_prog=ld
7233 ;;
7234 *)
7235 # If it is relative, then search for the first ld in PATH.
7236 with_gnu_ld=unknown
7237 ;;
7238 esac
7239elif test "$with_gnu_ld" = yes; then
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7241$as_echo_n "checking for GNU ld... " >&6; }
7242else
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7244$as_echo_n "checking for non-GNU ld... " >&6; }
7245fi
cristyda16f162011-02-19 23:52:17 +00007246if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007247 $as_echo_n "(cached) " >&6
7248else
7249 if test -z "$LD"; then
7250 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7251 for ac_dir in $PATH; do
7252 IFS="$lt_save_ifs"
7253 test -z "$ac_dir" && ac_dir=.
7254 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7255 lt_cv_path_LD="$ac_dir/$ac_prog"
7256 # Check to see if the program is GNU ld. I'd rather use --version,
7257 # but apparently some variants of GNU ld only accept -v.
7258 # Break only if it was the GNU/non-GNU ld that we prefer.
7259 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7260 *GNU* | *'with BFD'*)
7261 test "$with_gnu_ld" != no && break
7262 ;;
7263 *)
7264 test "$with_gnu_ld" != yes && break
7265 ;;
7266 esac
7267 fi
7268 done
7269 IFS="$lt_save_ifs"
7270else
7271 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7272fi
7273fi
7274
7275LD="$lt_cv_path_LD"
7276if test -n "$LD"; then
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7278$as_echo "$LD" >&6; }
7279else
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281$as_echo "no" >&6; }
7282fi
cristy98dddb52010-11-04 00:30:15 +00007283test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7285$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007286if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007287 $as_echo_n "(cached) " >&6
7288else
7289 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7290case `$LD -v 2>&1 </dev/null` in
7291*GNU* | *'with BFD'*)
7292 lt_cv_prog_gnu_ld=yes
7293 ;;
7294*)
7295 lt_cv_prog_gnu_ld=no
7296 ;;
7297esac
7298fi
7299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7300$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7301with_gnu_ld=$lt_cv_prog_gnu_ld
7302
7303
7304
7305
7306
7307
7308
7309
7310
cristy3ed852e2009-09-05 21:47:34 +00007311
cristy837d6dc2010-02-27 01:16:57 +00007312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7313$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007314if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007315 $as_echo_n "(cached) " >&6
7316else
7317 ac_cv_prog_cc_c99=no
7318ac_save_CC=$CC
7319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320/* end confdefs.h. */
7321#include <stdarg.h>
7322#include <stdbool.h>
7323#include <stdlib.h>
7324#include <wchar.h>
7325#include <stdio.h>
7326
7327// Check varargs macros. These examples are taken from C99 6.10.3.5.
7328#define debug(...) fprintf (stderr, __VA_ARGS__)
7329#define showlist(...) puts (#__VA_ARGS__)
7330#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7331static void
7332test_varargs_macros (void)
7333{
7334 int x = 1234;
7335 int y = 5678;
7336 debug ("Flag");
7337 debug ("X = %d\n", x);
7338 showlist (The first, second, and third items.);
7339 report (x>y, "x is %d but y is %d", x, y);
7340}
7341
7342// Check long long types.
7343#define BIG64 18446744073709551615ull
7344#define BIG32 4294967295ul
7345#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7346#if !BIG_OK
7347 your preprocessor is broken;
7348#endif
7349#if BIG_OK
7350#else
7351 your preprocessor is broken;
7352#endif
7353static long long int bignum = -9223372036854775807LL;
7354static unsigned long long int ubignum = BIG64;
7355
7356struct incomplete_array
7357{
7358 int datasize;
7359 double data[];
7360};
7361
7362struct named_init {
7363 int number;
7364 const wchar_t *name;
7365 double average;
7366};
7367
7368typedef const char *ccp;
7369
7370static inline int
7371test_restrict (ccp restrict text)
7372{
7373 // See if C++-style comments work.
7374 // Iterate through items via the restricted pointer.
7375 // Also check for declarations in for loops.
7376 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7377 continue;
7378 return 0;
7379}
7380
7381// Check varargs and va_copy.
7382static void
7383test_varargs (const char *format, ...)
7384{
7385 va_list args;
7386 va_start (args, format);
7387 va_list args_copy;
7388 va_copy (args_copy, args);
7389
7390 const char *str;
7391 int number;
7392 float fnumber;
7393
7394 while (*format)
7395 {
7396 switch (*format++)
7397 {
7398 case 's': // string
7399 str = va_arg (args_copy, const char *);
7400 break;
7401 case 'd': // int
7402 number = va_arg (args_copy, int);
7403 break;
7404 case 'f': // float
7405 fnumber = va_arg (args_copy, double);
7406 break;
7407 default:
7408 break;
7409 }
7410 }
7411 va_end (args_copy);
7412 va_end (args);
7413}
7414
7415int
7416main ()
7417{
7418
7419 // Check bool.
7420 _Bool success = false;
7421
7422 // Check restrict.
7423 if (test_restrict ("String literal") == 0)
7424 success = true;
7425 char *restrict newvar = "Another string";
7426
7427 // Check varargs.
7428 test_varargs ("s, d' f .", "string", 65, 34.234);
7429 test_varargs_macros ();
7430
7431 // Check flexible array members.
7432 struct incomplete_array *ia =
7433 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7434 ia->datasize = 10;
7435 for (int i = 0; i < ia->datasize; ++i)
7436 ia->data[i] = i * 1.234;
7437
7438 // Check named initializers.
7439 struct named_init ni = {
7440 .number = 34,
7441 .name = L"Test wide string",
7442 .average = 543.34343,
7443 };
7444
7445 ni.number = 58;
7446
7447 int dynamic_array[ni.number];
7448 dynamic_array[ni.number - 1] = 543;
7449
7450 // work around unused variable warnings
7451 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7452 || dynamic_array[ni.number - 1] != 543);
7453
7454 ;
7455 return 0;
7456}
7457_ACEOF
7458for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7459do
7460 CC="$ac_save_CC $ac_arg"
7461 if ac_fn_c_try_compile "$LINENO"; then :
7462 ac_cv_prog_cc_c99=$ac_arg
7463fi
7464rm -f core conftest.err conftest.$ac_objext
7465 test "x$ac_cv_prog_cc_c99" != "xno" && break
7466done
7467rm -f conftest.$ac_ext
7468CC=$ac_save_CC
7469
7470fi
7471# AC_CACHE_VAL
7472case "x$ac_cv_prog_cc_c99" in
7473 x)
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7475$as_echo "none needed" >&6; } ;;
7476 xno)
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7478$as_echo "unsupported" >&6; } ;;
7479 *)
7480 CC="$CC $ac_cv_prog_cc_c99"
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7482$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7483esac
7484if test "x$ac_cv_prog_cc_c99" != xno; then :
7485
7486fi
7487
7488
cristy73bd4a52010-10-05 11:24:23 +00007489if test "x$CC" != xcc; then
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7491$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7492else
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7494$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7495fi
7496set dummy $CC; ac_cc=`$as_echo "$2" |
7497 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007498if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007499 $as_echo_n "(cached) " >&6
7500else
cristy73bd4a52010-10-05 11:24:23 +00007501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502/* end confdefs.h. */
7503
7504int
7505main ()
7506{
7507
7508 ;
7509 return 0;
7510}
7511_ACEOF
7512# Make sure it works both with $CC and with simple cc.
7513# We do the test twice because some compilers refuse to overwrite an
7514# existing .o file with -o, though they will create one.
7515ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7516rm -f conftest2.*
7517if { { case "(($ac_try" in
7518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7519 *) ac_try_echo=$ac_try;;
7520esac
7521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7522$as_echo "$ac_try_echo"; } >&5
7523 (eval "$ac_try") 2>&5
7524 ac_status=$?
7525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7526 test $ac_status = 0; } &&
7527 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7529 *) ac_try_echo=$ac_try;;
7530esac
7531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7532$as_echo "$ac_try_echo"; } >&5
7533 (eval "$ac_try") 2>&5
7534 ac_status=$?
7535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7536 test $ac_status = 0; };
7537then
7538 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7539 if test "x$CC" != xcc; then
7540 # Test first that cc exists at all.
7541 if { ac_try='cc -c conftest.$ac_ext >&5'
7542 { { case "(($ac_try" in
7543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7544 *) ac_try_echo=$ac_try;;
7545esac
7546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7547$as_echo "$ac_try_echo"; } >&5
7548 (eval "$ac_try") 2>&5
7549 ac_status=$?
7550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7551 test $ac_status = 0; }; }; then
7552 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7553 rm -f conftest2.*
7554 if { { case "(($ac_try" in
7555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556 *) ac_try_echo=$ac_try;;
7557esac
7558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7559$as_echo "$ac_try_echo"; } >&5
7560 (eval "$ac_try") 2>&5
7561 ac_status=$?
7562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7563 test $ac_status = 0; } &&
7564 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7566 *) ac_try_echo=$ac_try;;
7567esac
7568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7569$as_echo "$ac_try_echo"; } >&5
7570 (eval "$ac_try") 2>&5
7571 ac_status=$?
7572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7573 test $ac_status = 0; };
7574 then
7575 # cc works too.
7576 :
7577 else
7578 # cc exists but doesn't like -o.
7579 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7580 fi
7581 fi
7582 fi
7583else
7584 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7585fi
7586rm -f core conftest*
7587
7588fi
7589if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7591$as_echo "yes" >&6; }
7592else
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594$as_echo "no" >&6; }
7595
7596$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7597
7598fi
7599
7600# FIXME: we rely on the cache variable name because
7601# there is no other way.
7602set dummy $CC
7603am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7604eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7605if test "$am_t" != yes; then
7606 # Losing compiler, so override with the script.
7607 # FIXME: It is wrong to rewrite CC.
7608 # But if we don't then we get into trouble of one sort or another.
7609 # A longer-term fix would be to have automake use am__CC in this case,
7610 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7611 CC="$am_aux_dir/compile $CC"
7612fi
7613
7614
7615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7616$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007617if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007618 $as_echo_n "(cached) " >&6
7619else
7620 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007621 ac_ext=c
7622ac_cpp='$CPP $CPPFLAGS'
7623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7625ac_compiler_gnu=$ac_cv_c_compiler_gnu
7626
7627 ac_save_CFLAGS="$CFLAGS"
7628for 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" #
7629do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631/* end confdefs.h. */
7632
7633int
7634main ()
7635{
cristy24fc1fe2010-10-23 21:13:01 +00007636
cristy73bd4a52010-10-05 11:24:23 +00007637 ;
7638 return 0;
7639}
7640_ACEOF
7641if ac_fn_c_try_compile "$LINENO"; then :
7642 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7643fi
7644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7645done
7646 CFLAGS="$ac_save_CFLAGS"
7647 ac_ext=c
7648ac_cpp='$CPP $CPPFLAGS'
7649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7651ac_compiler_gnu=$ac_cv_c_compiler_gnu
7652
7653
7654fi
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7656$as_echo "$ac_cv_cflags_warn_all" >&6; }
7657case ".$ac_cv_cflags_warn_all" in
7658 .ok|.ok,*) ;;
7659 .|.no|.no,*)
7660 ;;
7661 *)
7662 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7663 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7664 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7665 ac_status=$?
7666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7667 test $ac_status = 0; }
7668 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7669 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7670 ac_status=$?
7671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7672 test $ac_status = 0; }
7673 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7674 fi
7675 ;;
nicolas6237c462010-10-05 06:11:49 +00007676esac
cristy3ed852e2009-09-05 21:47:34 +00007677
cristya0b81c32010-01-22 02:54:33 +00007678
7679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7680$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7681set x ${MAKE-make}
7682ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007683if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007684 $as_echo_n "(cached) " >&6
7685else
7686 cat >conftest.make <<\_ACEOF
7687SHELL = /bin/sh
7688all:
7689 @echo '@@@%%%=$(MAKE)=@@@%%%'
7690_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007691# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007692case `${MAKE-make} -f conftest.make 2>/dev/null` in
7693 *@@@%%%=?*=@@@%%%*)
7694 eval ac_cv_prog_make_${ac_make}_set=yes;;
7695 *)
7696 eval ac_cv_prog_make_${ac_make}_set=no;;
7697esac
7698rm -f conftest.make
7699fi
7700if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7702$as_echo "yes" >&6; }
7703 SET_MAKE=
7704else
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706$as_echo "no" >&6; }
7707 SET_MAKE="MAKE=${MAKE-make}"
7708fi
7709
cristy8b350f62009-11-15 23:12:43 +00007710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007711$as_echo_n "checking whether ln -s works... " >&6; }
7712LN_S=$as_ln_s
7713if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007715$as_echo "yes" >&6; }
7716else
cristy8b350f62009-11-15 23:12:43 +00007717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007718$as_echo "no, using $LN_S" >&6; }
7719fi
7720
cristy73bd4a52010-10-05 11:24:23 +00007721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7722$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7723
7724# Check whether --with-dmalloc was given.
7725if test "${with_dmalloc+set}" = set; then :
7726 withval=$with_dmalloc; if test "$withval" = yes; then
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7728$as_echo "yes" >&6; }
7729
7730$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7731
7732 LIBS="$LIBS -ldmalloc"
7733 LDFLAGS="$LDFLAGS -g"
7734else
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736$as_echo "no" >&6; }
7737fi
7738else
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740$as_echo "no" >&6; }
7741fi
7742
7743
7744
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7746$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007747if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007748 $as_echo_n "(cached) " >&6
7749else
7750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751/* end confdefs.h. */
7752#include <stdlib.h>
7753 static void foo(void) __attribute__ ((unused));
7754 static void
7755 foo(void) {
7756 exit(1);
7757 }
7758
7759int
7760main ()
7761{
7762
7763 ;
7764 return 0;
7765}
7766_ACEOF
7767if ac_fn_c_try_compile "$LINENO"; then :
7768 ax_cv___attribute__=yes
7769else
7770 ax_cv___attribute__=no
7771
7772fi
7773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7774
7775fi
7776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7777$as_echo "$ax_cv___attribute__" >&6; }
7778 if test "$ax_cv___attribute__" = "yes"; then
7779
7780$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7781
7782 fi
7783
7784
7785
7786if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7787 if test -n "$ac_tool_prefix"; then
7788 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7789set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7791$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007792if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007793 $as_echo_n "(cached) " >&6
7794else
7795 case $PKG_CONFIG in
7796 [\\/]* | ?:[\\/]*)
7797 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7798 ;;
7799 *)
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801for as_dir in $PATH
7802do
7803 IFS=$as_save_IFS
7804 test -z "$as_dir" && as_dir=.
7805 for ac_exec_ext in '' $ac_executable_extensions; do
7806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7807 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 break 2
7810 fi
7811done
7812 done
7813IFS=$as_save_IFS
7814
7815 ;;
7816esac
7817fi
7818PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7819if test -n "$PKG_CONFIG"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7821$as_echo "$PKG_CONFIG" >&6; }
7822else
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824$as_echo "no" >&6; }
7825fi
7826
7827
7828fi
7829if test -z "$ac_cv_path_PKG_CONFIG"; then
7830 ac_pt_PKG_CONFIG=$PKG_CONFIG
7831 # Extract the first word of "pkg-config", so it can be a program name with args.
7832set dummy pkg-config; ac_word=$2
7833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007835if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007836 $as_echo_n "(cached) " >&6
7837else
7838 case $ac_pt_PKG_CONFIG in
7839 [\\/]* | ?:[\\/]*)
7840 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7841 ;;
7842 *)
7843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844for as_dir in $PATH
7845do
7846 IFS=$as_save_IFS
7847 test -z "$as_dir" && as_dir=.
7848 for ac_exec_ext in '' $ac_executable_extensions; do
7849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7850 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7852 break 2
7853 fi
7854done
7855 done
7856IFS=$as_save_IFS
7857
7858 ;;
7859esac
7860fi
7861ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7862if test -n "$ac_pt_PKG_CONFIG"; then
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7864$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7865else
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867$as_echo "no" >&6; }
7868fi
7869
7870 if test "x$ac_pt_PKG_CONFIG" = x; then
7871 PKG_CONFIG=""
7872 else
7873 case $cross_compiling:$ac_tool_warned in
7874yes:)
7875{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7876$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7877ac_tool_warned=yes ;;
7878esac
7879 PKG_CONFIG=$ac_pt_PKG_CONFIG
7880 fi
7881else
7882 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7883fi
7884
7885fi
7886if test -n "$PKG_CONFIG"; then
7887 _pkg_min_version=0.9.0
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7889$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7890 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7892$as_echo "yes" >&6; }
7893 else
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895$as_echo "no" >&6; }
7896 PKG_CONFIG=""
7897 fi
7898
7899fi
cristy3ed852e2009-09-05 21:47:34 +00007900
7901#
cristy3ed852e2009-09-05 21:47:34 +00007902# Enable run-time checking.
7903#
7904# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007905if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007906 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7907else
7908 enable_bounds_checking='no'
7909fi
7910
7911
7912if test "$enable_bounds_checking" = yes; then
7913
cristy8b350f62009-11-15 23:12:43 +00007914$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007915
7916fi
7917
7918#
7919# Tests for Windows
7920#
7921
7922
cristy73bd4a52010-10-05 11:24:23 +00007923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7924$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007925if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007926 $as_echo_n "(cached) " >&6
7927else
7928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929/* end confdefs.h. */
7930
7931int
7932main ()
7933{
7934#ifndef _MSC_VER
7935 choke me
7936#endif
7937
7938 ;
7939 return 0;
7940}
7941_ACEOF
7942if ac_fn_c_try_compile "$LINENO"; then :
7943 ax_compiler_ms=yes
7944else
7945 ax_compiler_ms=no
7946fi
7947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7948ax_cv_c_compiler_ms=$ax_compiler_ms
7949
7950fi
7951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7952$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00007953
7954GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007955native_win32_build='no'
7956cygwin_build='no'
7957case "${host_os}" in
7958 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007959 cygwin_build='yes'
7960 GDI32_LIBS='-lgdi32'
7961 ;;
7962 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007963 native_win32_build='yes'
7964 GDI32_LIBS='-lgdi32'
7965 ;;
7966esac
7967if test "${GDI32_LIBS}x" != 'x'; then
7968
cristy8b350f62009-11-15 23:12:43 +00007969$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007970
7971fi
7972
cristy73bd4a52010-10-05 11:24:23 +00007973 if test "${GDI32_LIBS}x" != 'x' ; then
7974 WINGDI32_DELEGATE_TRUE=
7975 WINGDI32_DELEGATE_FALSE='#'
7976else
7977 WINGDI32_DELEGATE_TRUE='#'
7978 WINGDI32_DELEGATE_FALSE=
7979fi
7980
7981 if test "${native_win32_build}" = 'yes' ; then
7982 WIN32_NATIVE_BUILD_TRUE=
7983 WIN32_NATIVE_BUILD_FALSE='#'
7984else
7985 WIN32_NATIVE_BUILD_TRUE='#'
7986 WIN32_NATIVE_BUILD_FALSE=
7987fi
7988
7989 if test "${cygwin_build}" = 'yes' ; then
7990 CYGWIN_BUILD_TRUE=
7991 CYGWIN_BUILD_FALSE='#'
7992else
7993 CYGWIN_BUILD_TRUE='#'
7994 CYGWIN_BUILD_FALSE=
7995fi
7996
7997 if test "x${CC}" = 'xcl.exe' ; then
7998 USING_CL_TRUE=
7999 USING_CL_FALSE='#'
8000else
8001 USING_CL_TRUE='#'
8002 USING_CL_FALSE=
8003fi
8004
cristy3ed852e2009-09-05 21:47:34 +00008005
8006WinPathScript="${srcdirfull}/winpath.sh"
8007
8008
8009#
8010# Compiler flags tweaks
8011#
8012if test "${GCC}" != "yes"; then
8013 case "${host}" in
8014 *-*-hpux* )
8015 # aCC: HP ANSI C++ B3910B A.03.34
8016 CFLAGS="${CFLAGS} -Wp,-H30000"
8017 if test -n "${CXXFLAGS}"; then
8018 CXXFLAGS='-AA'
8019 else
8020 CXXFLAGS="${CXXFLAGS} -AA"
8021 fi
8022 ;;
8023 *-dec-osf5.* )
8024 # Compaq alphaev68-dec-osf5.1 compiler
8025 if test -n "${CXXFLAGS}"; then
8026 CXXFLAGS='-std strict_ansi -noimplicit_include'
8027 else
8028 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8029 fi
8030 esac
8031fi
8032
8033# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008035$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008036if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008037 $as_echo_n "(cached) " >&6
8038else
8039
8040im_cv_ld_lazyload='none'
8041case "${host}" in
8042 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8043 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8044 im_cv_ld_lazyload='-Wl,-zlazyload'
8045 fi
8046 ;;
8047esac
8048
8049fi
cristy8b350f62009-11-15 23:12:43 +00008050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008051$as_echo "$im_cv_ld_lazyload" >&6; }
8052if test "${im_cv_ld_lazyload}" != 'none' ; then
8053 if test -z "${LDFLAGS}" ; then
8054 LDFLAGS="${im_cv_ld_lazyload}"
8055 else
8056 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8057 fi
8058fi
8059
8060case "$host" in
8061*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008062 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008063if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008064 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8065else
8066 build_osxuniversal=no
8067fi
8068
8069
8070 if test "${build_osxuniversal}" != no ; then
8071 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008072 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008073Please re-run configure with these options:
8074 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008075 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008076 fi
8077 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8078 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8079 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8080 fi
8081 ;;
8082esac
8083
8084# Enable support for threads
8085
8086# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008087if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008088 withval=$with_threads; with_threads=$withval
8089else
8090 with_threads='yes'
8091fi
8092
8093
8094have_threads=no
8095if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008096
8097
8098
8099ac_ext=c
8100ac_cpp='$CPP $CPPFLAGS'
8101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8103ac_compiler_gnu=$ac_cv_c_compiler_gnu
8104
8105ax_pthread_ok=no
8106
8107# We used to check for pthread.h first, but this fails if pthread.h
8108# requires special compiler flags (e.g. on True64 or Sequent).
8109# It gets checked for in the link test anyway.
8110
8111# First of all, check if the user has set any of the PTHREAD_LIBS,
8112# etcetera environment variables, and if threads linking works using
8113# them:
8114if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8115 save_CFLAGS="$CFLAGS"
8116 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8117 save_LIBS="$LIBS"
8118 LIBS="$PTHREAD_LIBS $LIBS"
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8120$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8122/* end confdefs.h. */
8123
8124/* Override any GCC internal prototype to avoid an error.
8125 Use char because int might match the return type of a GCC
8126 builtin and then its argument prototype would still apply. */
8127#ifdef __cplusplus
8128extern "C"
8129#endif
8130char pthread_join ();
8131int
8132main ()
8133{
8134return pthread_join ();
8135 ;
8136 return 0;
8137}
8138_ACEOF
8139if ac_fn_c_try_link "$LINENO"; then :
8140 ax_pthread_ok=yes
8141fi
8142rm -f core conftest.err conftest.$ac_objext \
8143 conftest$ac_exeext conftest.$ac_ext
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8145$as_echo "$ax_pthread_ok" >&6; }
8146 if test x"$ax_pthread_ok" = xno; then
8147 PTHREAD_LIBS=""
8148 PTHREAD_CFLAGS=""
8149 fi
8150 LIBS="$save_LIBS"
8151 CFLAGS="$save_CFLAGS"
8152fi
8153
8154# We must check for the threads library under a number of different
8155# names; the ordering is very important because some systems
8156# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8157# libraries is broken (non-POSIX).
8158
8159# Create a list of thread flags to try. Items starting with a "-" are
8160# C compiler flags, and other items are library names, except for "none"
8161# which indicates that we try without any flags at all, and "pthread-config"
8162# which is a program returning the flags for the Pth emulation library.
8163
8164ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8165
8166# The ordering *is* (sometimes) important. Some notes on the
8167# individual items follow:
8168
8169# pthreads: AIX (must check this before -lpthread)
8170# none: in case threads are in libc; should be tried before -Kthread and
8171# other compiler flags to prevent continual compiler warnings
8172# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8173# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8174# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8175# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8176# -pthreads: Solaris/gcc
8177# -mthreads: Mingw32/gcc, Lynx/gcc
8178# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8179# doesn't hurt to check since this sometimes defines pthreads too;
8180# also defines -D_REENTRANT)
8181# ... -mt is also the pthreads flag for HP/aCC
8182# pthread: Linux, etcetera
8183# --thread-safe: KAI C++
8184# pthread-config: use pthread-config program (for GNU Pth library)
8185
8186case "${host_cpu}-${host_os}" in
8187 *solaris*)
8188
8189 # On Solaris (at least, for some versions), libc contains stubbed
8190 # (non-functional) versions of the pthreads routines, so link-based
8191 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8192 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8193 # a function called by this macro, so we could check for that, but
8194 # who knows whether they'll stub that too in a future libc.) So,
8195 # we'll just look for -pthreads and -lpthread first:
8196
8197 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8198 ;;
8199
8200 *-darwin*)
8201 ax_pthread_flags="-pthread $ax_pthread_flags"
8202 ;;
8203esac
8204
8205if test x"$ax_pthread_ok" = xno; then
8206for flag in $ax_pthread_flags; do
8207
8208 case $flag in
8209 none)
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8211$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8212 ;;
8213
8214 -*)
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8216$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8217 PTHREAD_CFLAGS="$flag"
8218 ;;
8219
8220 pthread-config)
8221 # Extract the first word of "pthread-config", so it can be a program name with args.
8222set dummy pthread-config; ac_word=$2
8223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8224$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008225if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008226 $as_echo_n "(cached) " >&6
8227else
8228 if test -n "$ax_pthread_config"; then
8229 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8230else
8231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232for as_dir in $PATH
8233do
8234 IFS=$as_save_IFS
8235 test -z "$as_dir" && as_dir=.
8236 for ac_exec_ext in '' $ac_executable_extensions; do
8237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8238 ac_cv_prog_ax_pthread_config="yes"
8239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8240 break 2
8241 fi
8242done
8243 done
8244IFS=$as_save_IFS
8245
8246 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8247fi
8248fi
8249ax_pthread_config=$ac_cv_prog_ax_pthread_config
8250if test -n "$ax_pthread_config"; then
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8252$as_echo "$ax_pthread_config" >&6; }
8253else
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255$as_echo "no" >&6; }
8256fi
8257
8258
8259 if test x"$ax_pthread_config" = xno; then continue; fi
8260 PTHREAD_CFLAGS="`pthread-config --cflags`"
8261 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8262 ;;
8263
8264 *)
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8266$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8267 PTHREAD_LIBS="-l$flag"
8268 ;;
8269 esac
8270
8271 save_LIBS="$LIBS"
8272 save_CFLAGS="$CFLAGS"
8273 LIBS="$PTHREAD_LIBS $LIBS"
8274 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8275
8276 # Check for various functions. We must include pthread.h,
8277 # since some functions may be macros. (On the Sequent, we
8278 # need a special flag -Kthread to make this header compile.)
8279 # We check for pthread_join because it is in -lpthread on IRIX
8280 # while pthread_create is in libc. We check for pthread_attr_init
8281 # due to DEC craziness with -lpthreads. We check for
8282 # pthread_cleanup_push because it is one of the few pthread
8283 # functions on Solaris that doesn't have a non-functional libc stub.
8284 # We try pthread_create on general principles.
8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286/* end confdefs.h. */
8287#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008288 static void routine(void* a) {a=0;}
8289 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008290int
8291main ()
8292{
8293pthread_t th; pthread_attr_t attr;
8294 pthread_create(&th,0,start_routine,0);
8295 pthread_join(th, 0);
8296 pthread_attr_init(&attr);
8297 pthread_cleanup_push(routine, 0);
8298 pthread_cleanup_pop(0);
8299 ;
8300 return 0;
8301}
8302_ACEOF
8303if ac_fn_c_try_link "$LINENO"; then :
8304 ax_pthread_ok=yes
8305fi
8306rm -f core conftest.err conftest.$ac_objext \
8307 conftest$ac_exeext conftest.$ac_ext
8308
8309 LIBS="$save_LIBS"
8310 CFLAGS="$save_CFLAGS"
8311
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8313$as_echo "$ax_pthread_ok" >&6; }
8314 if test "x$ax_pthread_ok" = xyes; then
8315 break;
8316 fi
8317
8318 PTHREAD_LIBS=""
8319 PTHREAD_CFLAGS=""
8320done
8321fi
8322
8323# Various other checks:
8324if test "x$ax_pthread_ok" = xyes; then
8325 save_LIBS="$LIBS"
8326 LIBS="$PTHREAD_LIBS $LIBS"
8327 save_CFLAGS="$CFLAGS"
8328 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8329
8330 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8332$as_echo_n "checking for joinable pthread attribute... " >&6; }
8333 attr_name=unknown
8334 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336/* end confdefs.h. */
8337#include <pthread.h>
8338int
8339main ()
8340{
8341int attr=$attr; return attr;
8342 ;
8343 return 0;
8344}
8345_ACEOF
8346if ac_fn_c_try_link "$LINENO"; then :
8347 attr_name=$attr; break
8348fi
8349rm -f core conftest.err conftest.$ac_objext \
8350 conftest$ac_exeext conftest.$ac_ext
8351 done
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8353$as_echo "$attr_name" >&6; }
8354 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8355
8356cat >>confdefs.h <<_ACEOF
8357#define PTHREAD_CREATE_JOINABLE $attr_name
8358_ACEOF
8359
8360 fi
8361
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8363$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8364 flag=no
8365 case "${host_cpu}-${host_os}" in
8366 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8367 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8368 esac
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8370$as_echo "${flag}" >&6; }
8371 if test "x$flag" != xno; then
8372 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8373 fi
8374
8375 LIBS="$save_LIBS"
8376 CFLAGS="$save_CFLAGS"
8377
8378 # More AIX lossage: must compile with xlc_r or cc_r
8379 if test x"$GCC" != xyes; then
8380 for ac_prog in xlc_r cc_r
8381do
8382 # Extract the first word of "$ac_prog", so it can be a program name with args.
8383set dummy $ac_prog; ac_word=$2
8384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8385$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008386if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008387 $as_echo_n "(cached) " >&6
8388else
8389 if test -n "$PTHREAD_CC"; then
8390 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8391else
8392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393for as_dir in $PATH
8394do
8395 IFS=$as_save_IFS
8396 test -z "$as_dir" && as_dir=.
8397 for ac_exec_ext in '' $ac_executable_extensions; do
8398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8399 ac_cv_prog_PTHREAD_CC="$ac_prog"
8400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8401 break 2
8402 fi
8403done
8404 done
8405IFS=$as_save_IFS
8406
8407fi
8408fi
8409PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8410if test -n "$PTHREAD_CC"; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8412$as_echo "$PTHREAD_CC" >&6; }
8413else
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415$as_echo "no" >&6; }
8416fi
8417
8418
8419 test -n "$PTHREAD_CC" && break
8420done
8421test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8422
8423 else
8424 PTHREAD_CC=$CC
8425 fi
8426else
8427 PTHREAD_CC="$CC"
8428fi
8429
8430
8431
8432
8433
8434# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8435if test x"$ax_pthread_ok" = xyes; then
8436
8437$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8438
8439 :
8440else
8441 ax_pthread_ok=no
8442
8443fi
8444ac_ext=c
8445ac_cpp='$CPP $CPPFLAGS'
8446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8448ac_compiler_gnu=$ac_cv_c_compiler_gnu
8449
8450
cristy7acf8fb2010-09-23 19:58:53 +00008451 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008452 have_threads=yes
8453 DEF_THREAD="$PTHREAD_CFLAGS"
8454 CFLAGS="$CFLAGS $DEF_THREAD"
8455 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8456 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008457 { $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 +00008458$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8459 CC="$PTHREAD_CC"
8460 fi
cristy55bf91c2010-09-24 00:29:41 +00008461
8462$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8463
cristy3ed852e2009-09-05 21:47:34 +00008464 fi
8465fi
8466
8467# Enable support for OpenMP
8468if test "$have_threads" != 'yes'; then
8469 ac_cv_prog_c_openmp=unsupported
8470fi
8471
8472 OPENMP_CFLAGS=
8473 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008474if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008475 enableval=$enable_openmp;
8476fi
8477
8478 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008480$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008481if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008482 $as_echo_n "(cached) " >&6
8483else
cristy8b350f62009-11-15 23:12:43 +00008484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008486
8487#ifndef _OPENMP
8488 choke me
8489#endif
8490#include <omp.h>
8491int main () { return omp_get_num_threads (); }
8492
8493_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008494if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008495 ac_cv_prog_c_openmp='none needed'
8496else
cristy8b350f62009-11-15 23:12:43 +00008497 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008498 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8499 ac_save_CFLAGS=$CFLAGS
8500 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8502/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008503
8504#ifndef _OPENMP
8505 choke me
8506#endif
8507#include <omp.h>
8508int main () { return omp_get_num_threads (); }
8509
8510_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008511if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008512 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008513fi
cristy8b350f62009-11-15 23:12:43 +00008514rm -f core conftest.err conftest.$ac_objext \
8515 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008516 CFLAGS=$ac_save_CFLAGS
8517 if test "$ac_cv_prog_c_openmp" != unsupported; then
8518 break
8519 fi
8520 done
8521fi
cristy8b350f62009-11-15 23:12:43 +00008522rm -f core conftest.err conftest.$ac_objext \
8523 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008524fi
cristy8b350f62009-11-15 23:12:43 +00008525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008526$as_echo "$ac_cv_prog_c_openmp" >&6; }
8527 case $ac_cv_prog_c_openmp in #(
8528 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008529 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008530 *)
cristy8b350f62009-11-15 23:12:43 +00008531 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008532 esac
8533 fi
8534
8535
8536CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8537MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8538
cristy391f1ce2010-09-09 17:23:28 +00008539if test "$enable_openmp" != no; then
8540 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8541 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8542 fi
8543fi
cristy3ed852e2009-09-05 21:47:34 +00008544
cristy736173a2009-09-20 21:18:22 +00008545# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008546
8547
8548
8549ac_ext=c
8550ac_cpp='$CPP $CPPFLAGS'
8551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8553ac_compiler_gnu=$ac_cv_c_compiler_gnu
8554
8555ax_pthread_ok=no
8556
8557# We used to check for pthread.h first, but this fails if pthread.h
8558# requires special compiler flags (e.g. on True64 or Sequent).
8559# It gets checked for in the link test anyway.
8560
8561# First of all, check if the user has set any of the PTHREAD_LIBS,
8562# etcetera environment variables, and if threads linking works using
8563# them:
8564if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8565 save_CFLAGS="$CFLAGS"
8566 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8567 save_LIBS="$LIBS"
8568 LIBS="$PTHREAD_LIBS $LIBS"
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8570$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572/* end confdefs.h. */
8573
8574/* Override any GCC internal prototype to avoid an error.
8575 Use char because int might match the return type of a GCC
8576 builtin and then its argument prototype would still apply. */
8577#ifdef __cplusplus
8578extern "C"
8579#endif
8580char pthread_join ();
8581int
8582main ()
8583{
8584return pthread_join ();
8585 ;
8586 return 0;
8587}
8588_ACEOF
8589if ac_fn_c_try_link "$LINENO"; then :
8590 ax_pthread_ok=yes
8591fi
8592rm -f core conftest.err conftest.$ac_objext \
8593 conftest$ac_exeext conftest.$ac_ext
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8595$as_echo "$ax_pthread_ok" >&6; }
8596 if test x"$ax_pthread_ok" = xno; then
8597 PTHREAD_LIBS=""
8598 PTHREAD_CFLAGS=""
8599 fi
8600 LIBS="$save_LIBS"
8601 CFLAGS="$save_CFLAGS"
8602fi
8603
8604# We must check for the threads library under a number of different
8605# names; the ordering is very important because some systems
8606# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8607# libraries is broken (non-POSIX).
8608
8609# Create a list of thread flags to try. Items starting with a "-" are
8610# C compiler flags, and other items are library names, except for "none"
8611# which indicates that we try without any flags at all, and "pthread-config"
8612# which is a program returning the flags for the Pth emulation library.
8613
8614ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8615
8616# The ordering *is* (sometimes) important. Some notes on the
8617# individual items follow:
8618
8619# pthreads: AIX (must check this before -lpthread)
8620# none: in case threads are in libc; should be tried before -Kthread and
8621# other compiler flags to prevent continual compiler warnings
8622# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8623# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8624# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8625# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8626# -pthreads: Solaris/gcc
8627# -mthreads: Mingw32/gcc, Lynx/gcc
8628# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8629# doesn't hurt to check since this sometimes defines pthreads too;
8630# also defines -D_REENTRANT)
8631# ... -mt is also the pthreads flag for HP/aCC
8632# pthread: Linux, etcetera
8633# --thread-safe: KAI C++
8634# pthread-config: use pthread-config program (for GNU Pth library)
8635
8636case "${host_cpu}-${host_os}" in
8637 *solaris*)
8638
8639 # On Solaris (at least, for some versions), libc contains stubbed
8640 # (non-functional) versions of the pthreads routines, so link-based
8641 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8642 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8643 # a function called by this macro, so we could check for that, but
8644 # who knows whether they'll stub that too in a future libc.) So,
8645 # we'll just look for -pthreads and -lpthread first:
8646
8647 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8648 ;;
8649
8650 *-darwin*)
8651 ax_pthread_flags="-pthread $ax_pthread_flags"
8652 ;;
8653esac
8654
8655if test x"$ax_pthread_ok" = xno; then
8656for flag in $ax_pthread_flags; do
8657
8658 case $flag in
8659 none)
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8661$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8662 ;;
8663
8664 -*)
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8666$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8667 PTHREAD_CFLAGS="$flag"
8668 ;;
8669
8670 pthread-config)
8671 # Extract the first word of "pthread-config", so it can be a program name with args.
8672set dummy pthread-config; ac_word=$2
8673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8674$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008675if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008676 $as_echo_n "(cached) " >&6
8677else
8678 if test -n "$ax_pthread_config"; then
8679 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8680else
8681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8682for as_dir in $PATH
8683do
8684 IFS=$as_save_IFS
8685 test -z "$as_dir" && as_dir=.
8686 for ac_exec_ext in '' $ac_executable_extensions; do
8687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8688 ac_cv_prog_ax_pthread_config="yes"
8689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8690 break 2
8691 fi
8692done
8693 done
8694IFS=$as_save_IFS
8695
8696 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8697fi
8698fi
8699ax_pthread_config=$ac_cv_prog_ax_pthread_config
8700if test -n "$ax_pthread_config"; then
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8702$as_echo "$ax_pthread_config" >&6; }
8703else
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8705$as_echo "no" >&6; }
8706fi
8707
8708
8709 if test x"$ax_pthread_config" = xno; then continue; fi
8710 PTHREAD_CFLAGS="`pthread-config --cflags`"
8711 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8712 ;;
8713
8714 *)
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8716$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8717 PTHREAD_LIBS="-l$flag"
8718 ;;
8719 esac
8720
8721 save_LIBS="$LIBS"
8722 save_CFLAGS="$CFLAGS"
8723 LIBS="$PTHREAD_LIBS $LIBS"
8724 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8725
8726 # Check for various functions. We must include pthread.h,
8727 # since some functions may be macros. (On the Sequent, we
8728 # need a special flag -Kthread to make this header compile.)
8729 # We check for pthread_join because it is in -lpthread on IRIX
8730 # while pthread_create is in libc. We check for pthread_attr_init
8731 # due to DEC craziness with -lpthreads. We check for
8732 # pthread_cleanup_push because it is one of the few pthread
8733 # functions on Solaris that doesn't have a non-functional libc stub.
8734 # We try pthread_create on general principles.
8735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8736/* end confdefs.h. */
8737#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008738 static void routine(void* a) {a=0;}
8739 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008740int
8741main ()
8742{
8743pthread_t th; pthread_attr_t attr;
8744 pthread_create(&th,0,start_routine,0);
8745 pthread_join(th, 0);
8746 pthread_attr_init(&attr);
8747 pthread_cleanup_push(routine, 0);
8748 pthread_cleanup_pop(0);
8749 ;
8750 return 0;
8751}
8752_ACEOF
8753if ac_fn_c_try_link "$LINENO"; then :
8754 ax_pthread_ok=yes
8755fi
8756rm -f core conftest.err conftest.$ac_objext \
8757 conftest$ac_exeext conftest.$ac_ext
8758
8759 LIBS="$save_LIBS"
8760 CFLAGS="$save_CFLAGS"
8761
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8763$as_echo "$ax_pthread_ok" >&6; }
8764 if test "x$ax_pthread_ok" = xyes; then
8765 break;
8766 fi
8767
8768 PTHREAD_LIBS=""
8769 PTHREAD_CFLAGS=""
8770done
8771fi
8772
8773# Various other checks:
8774if test "x$ax_pthread_ok" = xyes; then
8775 save_LIBS="$LIBS"
8776 LIBS="$PTHREAD_LIBS $LIBS"
8777 save_CFLAGS="$CFLAGS"
8778 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8779
8780 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8782$as_echo_n "checking for joinable pthread attribute... " >&6; }
8783 attr_name=unknown
8784 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8786/* end confdefs.h. */
8787#include <pthread.h>
8788int
8789main ()
8790{
8791int attr=$attr; return attr;
8792 ;
8793 return 0;
8794}
8795_ACEOF
8796if ac_fn_c_try_link "$LINENO"; then :
8797 attr_name=$attr; break
8798fi
8799rm -f core conftest.err conftest.$ac_objext \
8800 conftest$ac_exeext conftest.$ac_ext
8801 done
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8803$as_echo "$attr_name" >&6; }
8804 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8805
8806cat >>confdefs.h <<_ACEOF
8807#define PTHREAD_CREATE_JOINABLE $attr_name
8808_ACEOF
8809
8810 fi
8811
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8813$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8814 flag=no
8815 case "${host_cpu}-${host_os}" in
8816 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8817 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8818 esac
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8820$as_echo "${flag}" >&6; }
8821 if test "x$flag" != xno; then
8822 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8823 fi
8824
8825 LIBS="$save_LIBS"
8826 CFLAGS="$save_CFLAGS"
8827
8828 # More AIX lossage: must compile with xlc_r or cc_r
8829 if test x"$GCC" != xyes; then
8830 for ac_prog in xlc_r cc_r
8831do
8832 # Extract the first word of "$ac_prog", so it can be a program name with args.
8833set dummy $ac_prog; ac_word=$2
8834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8835$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008836if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008837 $as_echo_n "(cached) " >&6
8838else
8839 if test -n "$PTHREAD_CC"; then
8840 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8841else
8842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843for as_dir in $PATH
8844do
8845 IFS=$as_save_IFS
8846 test -z "$as_dir" && as_dir=.
8847 for ac_exec_ext in '' $ac_executable_extensions; do
8848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8849 ac_cv_prog_PTHREAD_CC="$ac_prog"
8850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8851 break 2
8852 fi
8853done
8854 done
8855IFS=$as_save_IFS
8856
8857fi
8858fi
8859PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8860if test -n "$PTHREAD_CC"; then
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8862$as_echo "$PTHREAD_CC" >&6; }
8863else
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865$as_echo "no" >&6; }
8866fi
8867
8868
8869 test -n "$PTHREAD_CC" && break
8870done
8871test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8872
8873 else
8874 PTHREAD_CC=$CC
8875 fi
8876else
8877 PTHREAD_CC="$CC"
8878fi
8879
8880
8881
8882
8883
8884# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8885if test x"$ax_pthread_ok" = xyes; then
8886
8887$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8888
8889 :
8890else
8891 ax_pthread_ok=no
8892
8893fi
8894ac_ext=c
8895ac_cpp='$CPP $CPPFLAGS'
8896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8898ac_compiler_gnu=$ac_cv_c_compiler_gnu
8899
8900
8901
8902# Check whether --enable-opencl was given.
8903if test "${enable_opencl+set}" = set; then :
8904 enableval=$enable_opencl; disable_opencl=$enableval
8905else
8906 disable_opencl='yes'
8907fi
8908
8909
8910if test "$disable_opencl" = 'yes'; then
8911 ac_ext=c
8912ac_cpp='$CPP $CPPFLAGS'
8913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8915ac_compiler_gnu=$ac_cv_c_compiler_gnu
8916
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8918$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008919if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008920 $as_echo_n "(cached) " >&6
8921else
8922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8923/* end confdefs.h. */
8924
8925int
8926main ()
8927{
8928#ifndef _MSC_VER
8929 choke me
8930#endif
8931
8932 ;
8933 return 0;
8934}
8935_ACEOF
8936if ac_fn_c_try_compile "$LINENO"; then :
8937 ax_compiler_ms=yes
8938else
8939 ax_compiler_ms=no
8940fi
8941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8942ax_cv_c_compiler_ms=$ax_compiler_ms
8943
8944fi
8945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8946$as_echo "$ax_cv_c_compiler_ms" >&6; }
8947 if test X$ax_compiler_ms = Xno; then :
8948 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8949fi
8950
8951 ax_save_CPPFLAGS=$CPPFLAGS
8952 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8953 for ac_header in CL/cl.h OpenCL/cl.h
8954do :
8955 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8956ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00008957if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00008958 cat >>confdefs.h <<_ACEOF
8959#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8960_ACEOF
8961
8962fi
8963
8964done
8965
8966 CPPFLAGS=$ax_save_CPPFLAGS
8967
8968 for ac_header in windows.h
8969do :
8970 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00008971if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00008972 cat >>confdefs.h <<_ACEOF
8973#define HAVE_WINDOWS_H 1
8974_ACEOF
8975
8976fi
8977
8978done
8979
8980
8981
8982
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
8984$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008985if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008986 $as_echo_n "(cached) " >&6
8987else
8988 ax_cv_check_cl_libcl=no
8989 case $host_cpu in
8990 x86_64) ax_check_cl_libdir=lib64 ;;
8991 *) ax_check_cl_libdir=lib ;;
8992 esac
8993 ax_save_CPPFLAGS=$CPPFLAGS
8994 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8995 ax_save_LIBS=$LIBS
8996 LIBS=""
8997 ax_check_libs="-lOpenCL -lCL -lclparser"
8998 for ax_lib in $ax_check_libs; do
8999 if test X$ax_compiler_ms = Xyes; then :
9000 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9001else
9002 ax_try_lib=$ax_lib
9003fi
9004 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006/* end confdefs.h. */
9007
9008 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9009 # include <windows.h>
9010 # endif
9011 # ifdef HAVE_CL_CL_H
9012 # include <CL/cl.h>
9013 # elif defined(HAVE_OPENCL_CL_H)
9014 # include <OpenCL/cl.h>
9015 # else
9016 # error no CL.h
9017 # endif
9018int
9019main ()
9020{
9021clCreateContextFromType(0,0,0,0,0)
9022 ;
9023 return 0;
9024}
9025_ACEOF
9026if ac_fn_c_try_link "$LINENO"; then :
9027 ax_cv_check_cl_libcl=$ax_try_lib; break
9028else
9029 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"
9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031/* end confdefs.h. */
9032
9033 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9034 # include <windows.h>
9035 # endif
9036 # ifdef HAVE_CL_CL_H
9037 # include <CL/cl.h>
9038 # elif defined(HAVE_OPENCL_CL_H)
9039 # include <OpenCL/cl.h>
9040 # else
9041 # error no CL.h
9042 # endif
9043int
9044main ()
9045{
9046clCreateContextFromType(0,0,0,0,0)
9047 ;
9048 return 0;
9049}
9050_ACEOF
9051if ac_fn_c_try_link "$LINENO"; then :
9052 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9053else
cristy78c5a0c2010-12-04 20:00:59 +00009054 ax_check_cl_dylib_flag='-Wl,-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"
cristy73bd4a52010-10-05 11:24:23 +00009055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056/* end confdefs.h. */
9057
9058 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9059 # include <windows.h>
9060 # endif
9061 # ifdef HAVE_CL_CL_H
9062 # include <CL/cl.h>
9063 # elif defined(HAVE_OPENCL_CL_H)
9064 # include <OpenCL/cl.h>
9065 # else
9066 # error no CL.h
9067 # endif
9068int
9069main ()
9070{
9071clCreateContextFromType(0,0,0,0,0)
9072 ;
9073 return 0;
9074}
9075_ACEOF
9076if ac_fn_c_try_link "$LINENO"; then :
9077 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9078fi
9079rm -f core conftest.err conftest.$ac_objext \
9080 conftest$ac_exeext conftest.$ac_ext
9081fi
9082rm -f core conftest.err conftest.$ac_objext \
9083 conftest$ac_exeext conftest.$ac_ext
9084fi
9085rm -f core conftest.err conftest.$ac_objext \
9086 conftest$ac_exeext conftest.$ac_ext
9087 done
9088
9089 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy78c5a0c2010-12-04 20:00:59 +00009090 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9092/* end confdefs.h. */
9093
9094 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9095 # include <windows.h>
9096 # endif
9097 # ifdef HAVE_CL_CL_H
9098 # include <CL/cl.h>
9099 # elif defined(HAVE_OPENCL_CL_H)
9100 # include <OpenCL/cl.h>
9101 # else
9102 # error no CL.h
9103 # endif
9104int
9105main ()
9106{
9107clCreateContextFromType(0,0,0,0,0)
9108 ;
9109 return 0;
9110}
9111_ACEOF
9112if ac_fn_c_try_link "$LINENO"; then :
9113 ax_cv_check_cl_libcl=$LIBS
9114fi
9115rm -f core conftest.err conftest.$ac_objext \
9116 conftest$ac_exeext conftest.$ac_ext
9117fi
9118
9119 LIBS=$ax_save_LIBS
9120 CPPFLAGS=$ax_save_CPPFLAGS
9121fi
9122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9123$as_echo "$ax_cv_check_cl_libcl" >&6; }
9124
9125 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9126 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9127else
9128 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9129$as_echo "#define _OPENCL 1" >>confdefs.h
9130
9131fi
9132 ac_ext=c
9133ac_cpp='$CPP $CPPFLAGS'
9134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9136ac_compiler_gnu=$ac_cv_c_compiler_gnu
9137
9138fi
9139
9140
9141
9142
cristyc7083c12009-10-14 03:16:55 +00009143CFLAGS="$CL_CFLAGS $CFLAGS"
9144LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009145
cristy391f1ce2010-09-09 17:23:28 +00009146if test "$enable_opencl" != no; then
9147 if test "_OPENCL" = '1'; then
9148 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9149 fi
cristyfd9dcd42010-08-08 18:07:02 +00009150fi
cristy2e8b51d2009-10-17 18:26:15 +00009151
cristy3ed852e2009-09-05 21:47:34 +00009152########
9153#
9154# Check for large file support
9155#
9156########
9157# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009158if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009159 enableval=$enable_largefile;
9160fi
9161
9162if test "$enable_largefile" != no; then
9163
cristy8b350f62009-11-15 23:12:43 +00009164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009165$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009166if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009167 $as_echo_n "(cached) " >&6
9168else
9169 ac_cv_sys_largefile_CC=no
9170 if test "$GCC" != yes; then
9171 ac_save_CC=$CC
9172 while :; do
9173 # IRIX 6.2 and later do not support large files by default,
9174 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009176/* end confdefs.h. */
9177#include <sys/types.h>
9178 /* Check that off_t can represent 2**63 - 1 correctly.
9179 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9180 since some C++ compilers masquerading as C compilers
9181 incorrectly reject 9223372036854775807. */
9182#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9183 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9184 && LARGE_OFF_T % 2147483647 == 1)
9185 ? 1 : -1];
9186int
9187main ()
9188{
9189
9190 ;
9191 return 0;
9192}
9193_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009194 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009195 break
cristy3ed852e2009-09-05 21:47:34 +00009196fi
cristy3ed852e2009-09-05 21:47:34 +00009197rm -f core conftest.err conftest.$ac_objext
9198 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009199 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009200 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009201fi
cristy3ed852e2009-09-05 21:47:34 +00009202rm -f core conftest.err conftest.$ac_objext
9203 break
9204 done
9205 CC=$ac_save_CC
9206 rm -f conftest.$ac_ext
9207 fi
9208fi
cristy8b350f62009-11-15 23:12:43 +00009209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009210$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9211 if test "$ac_cv_sys_largefile_CC" != no; then
9212 CC=$CC$ac_cv_sys_largefile_CC
9213 fi
9214
cristy8b350f62009-11-15 23:12:43 +00009215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009216$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009217if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009218 $as_echo_n "(cached) " >&6
9219else
9220 while :; do
cristy8b350f62009-11-15 23:12:43 +00009221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009222/* end confdefs.h. */
9223#include <sys/types.h>
9224 /* Check that off_t can represent 2**63 - 1 correctly.
9225 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9226 since some C++ compilers masquerading as C compilers
9227 incorrectly reject 9223372036854775807. */
9228#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9229 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9230 && LARGE_OFF_T % 2147483647 == 1)
9231 ? 1 : -1];
9232int
9233main ()
9234{
9235
9236 ;
9237 return 0;
9238}
9239_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009240if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009241 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009242fi
cristy3ed852e2009-09-05 21:47:34 +00009243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009245/* end confdefs.h. */
9246#define _FILE_OFFSET_BITS 64
9247#include <sys/types.h>
9248 /* Check that off_t can represent 2**63 - 1 correctly.
9249 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9250 since some C++ compilers masquerading as C compilers
9251 incorrectly reject 9223372036854775807. */
9252#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9253 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9254 && LARGE_OFF_T % 2147483647 == 1)
9255 ? 1 : -1];
9256int
9257main ()
9258{
9259
9260 ;
9261 return 0;
9262}
9263_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009264if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009265 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009266fi
cristy3ed852e2009-09-05 21:47:34 +00009267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9268 ac_cv_sys_file_offset_bits=unknown
9269 break
9270done
9271fi
cristy8b350f62009-11-15 23:12:43 +00009272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009273$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9274case $ac_cv_sys_file_offset_bits in #(
9275 no | unknown) ;;
9276 *)
9277cat >>confdefs.h <<_ACEOF
9278#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9279_ACEOF
9280;;
9281esac
9282rm -rf conftest*
9283 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009285$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009286if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009287 $as_echo_n "(cached) " >&6
9288else
9289 while :; do
cristy8b350f62009-11-15 23:12:43 +00009290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009291/* end confdefs.h. */
9292#include <sys/types.h>
9293 /* Check that off_t can represent 2**63 - 1 correctly.
9294 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9295 since some C++ compilers masquerading as C compilers
9296 incorrectly reject 9223372036854775807. */
9297#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9298 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9299 && LARGE_OFF_T % 2147483647 == 1)
9300 ? 1 : -1];
9301int
9302main ()
9303{
9304
9305 ;
9306 return 0;
9307}
9308_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009309if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009310 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009311fi
cristy3ed852e2009-09-05 21:47:34 +00009312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009314/* end confdefs.h. */
9315#define _LARGE_FILES 1
9316#include <sys/types.h>
9317 /* Check that off_t can represent 2**63 - 1 correctly.
9318 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9319 since some C++ compilers masquerading as C compilers
9320 incorrectly reject 9223372036854775807. */
9321#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9322 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9323 && LARGE_OFF_T % 2147483647 == 1)
9324 ? 1 : -1];
9325int
9326main ()
9327{
9328
9329 ;
9330 return 0;
9331}
9332_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009333if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009334 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009335fi
cristy3ed852e2009-09-05 21:47:34 +00009336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9337 ac_cv_sys_large_files=unknown
9338 break
9339done
9340fi
cristy8b350f62009-11-15 23:12:43 +00009341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009342$as_echo "$ac_cv_sys_large_files" >&6; }
9343case $ac_cv_sys_large_files in #(
9344 no | unknown) ;;
9345 *)
9346cat >>confdefs.h <<_ACEOF
9347#define _LARGE_FILES $ac_cv_sys_large_files
9348_ACEOF
9349;;
9350esac
9351rm -rf conftest*
9352 fi
9353fi
9354
cristy8b350f62009-11-15 23:12:43 +00009355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009356$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009357if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009358 $as_echo_n "(cached) " >&6
9359else
9360 while :; do
cristy8b350f62009-11-15 23:12:43 +00009361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009362/* end confdefs.h. */
9363#include <sys/types.h> /* for off_t */
9364 #include <stdio.h>
9365int
9366main ()
9367{
9368int (*fp) (FILE *, off_t, int) = fseeko;
9369 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9370 ;
9371 return 0;
9372}
9373_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009374if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009375 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009376fi
cristy8b350f62009-11-15 23:12:43 +00009377rm -f core conftest.err conftest.$ac_objext \
9378 conftest$ac_exeext conftest.$ac_ext
9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009380/* end confdefs.h. */
9381#define _LARGEFILE_SOURCE 1
9382#include <sys/types.h> /* for off_t */
9383 #include <stdio.h>
9384int
9385main ()
9386{
9387int (*fp) (FILE *, off_t, int) = fseeko;
9388 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9389 ;
9390 return 0;
9391}
9392_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009393if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009394 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009395fi
cristy8b350f62009-11-15 23:12:43 +00009396rm -f core conftest.err conftest.$ac_objext \
9397 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009398 ac_cv_sys_largefile_source=unknown
9399 break
9400done
9401fi
cristy8b350f62009-11-15 23:12:43 +00009402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009403$as_echo "$ac_cv_sys_largefile_source" >&6; }
9404case $ac_cv_sys_largefile_source in #(
9405 no | unknown) ;;
9406 *)
9407cat >>confdefs.h <<_ACEOF
9408#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9409_ACEOF
9410;;
9411esac
9412rm -rf conftest*
9413
9414# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9415# in glibc 2.1.3, but that breaks too many other things.
9416# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9417if test $ac_cv_sys_largefile_source != unknown; then
9418
cristy8b350f62009-11-15 23:12:43 +00009419$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009420
9421fi
9422
9423LFS_CPPFLAGS=''
9424if test "$enable_largefile" != no; then
9425 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9426 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9427 else
cristy8b350f62009-11-15 23:12:43 +00009428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009429$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009430 if test "$cross_compiling" = yes; then :
9431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009433as_fn_error $? "cannot run test program while cross compiling
9434See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009435else
cristy8b350f62009-11-15 23:12:43 +00009436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9437/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009438#include <unistd.h>
9439 main () {
9440 exit(!(sizeof(off_t) == 8));
9441 }
cristyda16f162011-02-19 23:52:17 +00009442int
9443main ()
9444{
9445
9446 ;
9447 return 0;
9448}
cristy3ed852e2009-09-05 21:47:34 +00009449_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009450if ac_fn_c_try_run "$LINENO"; then :
9451 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009452
cristy8b350f62009-11-15 23:12:43 +00009453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009454$as_echo "yes" >&6; }
9455else
cristy8b350f62009-11-15 23:12:43 +00009456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009457$as_echo "no" >&6; }
9458fi
cristy8b350f62009-11-15 23:12:43 +00009459rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9460 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009461fi
9462
cristy3ed852e2009-09-05 21:47:34 +00009463 fi
9464 if test "$ac_cv_sys_large_files" != 'no'; then
9465 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9466 fi
9467 if test "$ac_cv_sys_largefile_source" != 'no'; then
9468 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9469 fi
9470fi
9471
9472
9473#
9474# Configure libtool & libltdl
9475#
9476# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009477enable_dlopen=yes
9478
9479
9480
9481case `pwd` in
9482 *\ * | *\ *)
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9484$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9485esac
9486
9487
9488
cristyda16f162011-02-19 23:52:17 +00009489macro_version='2.4'
9490macro_revision='1.3293'
cristy73bd4a52010-10-05 11:24:23 +00009491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504ltmain="$ac_aux_dir/ltmain.sh"
9505
cristy0c60a692010-11-04 01:09:47 +00009506# Backslashify metacharacters that are still active within
9507# double-quoted strings.
9508sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9509
9510# Same as above, but do not quote variable references.
9511double_quote_subst='s/\(["`\\]\)/\\\1/g'
9512
9513# Sed substitution to delay expansion of an escaped shell variable in a
9514# double_quote_subst'ed string.
9515delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9516
9517# Sed substitution to delay expansion of an escaped single quote.
9518delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9519
9520# Sed substitution to avoid accidental globbing in evaled expressions
9521no_glob_subst='s/\*/\\\*/g'
9522
cristy73bd4a52010-10-05 11:24:23 +00009523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9524$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009525if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009526 $as_echo_n "(cached) " >&6
9527else
9528 if test -n "$NM"; then
9529 # Let the user override the test.
9530 lt_cv_path_NM="$NM"
9531else
9532 lt_nm_to_check="${ac_tool_prefix}nm"
9533 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9534 lt_nm_to_check="$lt_nm_to_check nm"
9535 fi
9536 for lt_tmp_nm in $lt_nm_to_check; do
9537 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9538 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9539 IFS="$lt_save_ifs"
9540 test -z "$ac_dir" && ac_dir=.
9541 tmp_nm="$ac_dir/$lt_tmp_nm"
9542 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9543 # Check to see if the nm accepts a BSD-compat flag.
9544 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9545 # nm: unknown option "B" ignored
9546 # Tru64's nm complains that /dev/null is an invalid object file
9547 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9548 */dev/null* | *'Invalid file or object type'*)
9549 lt_cv_path_NM="$tmp_nm -B"
9550 break
9551 ;;
9552 *)
9553 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9554 */dev/null*)
9555 lt_cv_path_NM="$tmp_nm -p"
9556 break
9557 ;;
9558 *)
9559 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9560 continue # so that we can try to find one that supports BSD flags
9561 ;;
9562 esac
9563 ;;
9564 esac
9565 fi
9566 done
9567 IFS="$lt_save_ifs"
9568 done
9569 : ${lt_cv_path_NM=no}
9570fi
9571fi
9572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9573$as_echo "$lt_cv_path_NM" >&6; }
9574if test "$lt_cv_path_NM" != "no"; then
9575 NM="$lt_cv_path_NM"
9576else
9577 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009578 if test -n "$DUMPBIN"; then :
9579 # Let the user override the test.
9580 else
9581 if test -n "$ac_tool_prefix"; then
9582 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009583 do
9584 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9585set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9587$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009588if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009589 $as_echo_n "(cached) " >&6
9590else
9591 if test -n "$DUMPBIN"; then
9592 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9593else
9594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9595for as_dir in $PATH
9596do
9597 IFS=$as_save_IFS
9598 test -z "$as_dir" && as_dir=.
9599 for ac_exec_ext in '' $ac_executable_extensions; do
9600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9601 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9603 break 2
9604 fi
9605done
9606 done
9607IFS=$as_save_IFS
9608
9609fi
9610fi
9611DUMPBIN=$ac_cv_prog_DUMPBIN
9612if test -n "$DUMPBIN"; then
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9614$as_echo "$DUMPBIN" >&6; }
9615else
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9617$as_echo "no" >&6; }
9618fi
9619
9620
9621 test -n "$DUMPBIN" && break
9622 done
9623fi
9624if test -z "$DUMPBIN"; then
9625 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009626 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009627do
9628 # Extract the first word of "$ac_prog", so it can be a program name with args.
9629set dummy $ac_prog; ac_word=$2
9630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9631$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009632if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009633 $as_echo_n "(cached) " >&6
9634else
9635 if test -n "$ac_ct_DUMPBIN"; then
9636 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9637else
9638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9639for as_dir in $PATH
9640do
9641 IFS=$as_save_IFS
9642 test -z "$as_dir" && as_dir=.
9643 for ac_exec_ext in '' $ac_executable_extensions; do
9644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9645 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9647 break 2
9648 fi
9649done
9650 done
9651IFS=$as_save_IFS
9652
9653fi
9654fi
9655ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9656if test -n "$ac_ct_DUMPBIN"; then
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9658$as_echo "$ac_ct_DUMPBIN" >&6; }
9659else
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9661$as_echo "no" >&6; }
9662fi
9663
9664
9665 test -n "$ac_ct_DUMPBIN" && break
9666done
9667
9668 if test "x$ac_ct_DUMPBIN" = x; then
9669 DUMPBIN=":"
9670 else
9671 case $cross_compiling:$ac_tool_warned in
9672yes:)
9673{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9674$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9675ac_tool_warned=yes ;;
9676esac
9677 DUMPBIN=$ac_ct_DUMPBIN
9678 fi
9679fi
9680
cristy0c60a692010-11-04 01:09:47 +00009681 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9682 *COFF*)
9683 DUMPBIN="$DUMPBIN -symbols"
9684 ;;
9685 *)
9686 DUMPBIN=:
9687 ;;
9688 esac
9689 fi
cristy73bd4a52010-10-05 11:24:23 +00009690
9691 if test "$DUMPBIN" != ":"; then
9692 NM="$DUMPBIN"
9693 fi
9694fi
9695test -z "$NM" && NM=nm
9696
9697
9698
9699
9700
9701
9702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9703$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009704if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009705 $as_echo_n "(cached) " >&6
9706else
9707 lt_cv_nm_interface="BSD nm"
9708 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009709 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009710 (eval "$ac_compile" 2>conftest.err)
9711 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009712 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009713 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9714 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009715 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009716 cat conftest.out >&5
9717 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9718 lt_cv_nm_interface="MS dumpbin"
9719 fi
9720 rm -f conftest*
9721fi
9722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9723$as_echo "$lt_cv_nm_interface" >&6; }
9724
9725# find the maximum length of command line arguments
9726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9727$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009728if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009729 $as_echo_n "(cached) " >&6
9730else
9731 i=0
9732 teststring="ABCD"
9733
9734 case $build_os in
9735 msdosdjgpp*)
9736 # On DJGPP, this test can blow up pretty badly due to problems in libc
9737 # (any single argument exceeding 2000 bytes causes a buffer overrun
9738 # during glob expansion). Even if it were fixed, the result of this
9739 # check would be larger than it should be.
9740 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9741 ;;
9742
9743 gnu*)
9744 # Under GNU Hurd, this test is not required because there is
9745 # no limit to the length of command line arguments.
9746 # Libtool will interpret -1 as no limit whatsoever
9747 lt_cv_sys_max_cmd_len=-1;
9748 ;;
9749
9750 cygwin* | mingw* | cegcc*)
9751 # On Win9x/ME, this test blows up -- it succeeds, but takes
9752 # about 5 minutes as the teststring grows exponentially.
9753 # Worse, since 9x/ME are not pre-emptively multitasking,
9754 # you end up with a "frozen" computer, even though with patience
9755 # the test eventually succeeds (with a max line length of 256k).
9756 # Instead, let's just punt: use the minimum linelength reported by
9757 # all of the supported platforms: 8192 (on NT/2K/XP).
9758 lt_cv_sys_max_cmd_len=8192;
9759 ;;
9760
cristy0c60a692010-11-04 01:09:47 +00009761 mint*)
9762 # On MiNT this can take a long time and run out of memory.
9763 lt_cv_sys_max_cmd_len=8192;
9764 ;;
9765
cristy73bd4a52010-10-05 11:24:23 +00009766 amigaos*)
9767 # On AmigaOS with pdksh, this test takes hours, literally.
9768 # So we just punt and use a minimum line length of 8192.
9769 lt_cv_sys_max_cmd_len=8192;
9770 ;;
9771
9772 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9773 # This has been around since 386BSD, at least. Likely further.
9774 if test -x /sbin/sysctl; then
9775 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9776 elif test -x /usr/sbin/sysctl; then
9777 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9778 else
9779 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9780 fi
9781 # And add a safety zone
9782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9783 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9784 ;;
9785
9786 interix*)
9787 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9788 lt_cv_sys_max_cmd_len=196608
9789 ;;
9790
9791 osf*)
9792 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9793 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9794 # nice to cause kernel panics so lets avoid the loop below.
9795 # First set a reasonable default.
9796 lt_cv_sys_max_cmd_len=16384
9797 #
9798 if test -x /sbin/sysconfig; then
9799 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9800 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9801 esac
9802 fi
9803 ;;
9804 sco3.2v5*)
9805 lt_cv_sys_max_cmd_len=102400
9806 ;;
9807 sysv5* | sco5v6* | sysv4.2uw2*)
9808 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9809 if test -n "$kargmax"; then
9810 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9811 else
9812 lt_cv_sys_max_cmd_len=32768
9813 fi
9814 ;;
9815 *)
9816 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9817 if test -n "$lt_cv_sys_max_cmd_len"; then
9818 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9819 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9820 else
9821 # Make teststring a little bigger before we do anything with it.
9822 # a 1K string should be a reasonable start.
9823 for i in 1 2 3 4 5 6 7 8 ; do
9824 teststring=$teststring$teststring
9825 done
9826 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9827 # If test is not a shell built-in, we'll probably end up computing a
9828 # maximum length that is only half of the actual maximum length, but
9829 # we can't tell.
cristy0c60a692010-11-04 01:09:47 +00009830 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9831 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +00009832 test $i != 17 # 1/2 MB should be enough
9833 do
9834 i=`expr $i + 1`
9835 teststring=$teststring$teststring
9836 done
9837 # Only check the string length outside the loop.
9838 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9839 teststring=
9840 # Add a significant safety factor because C++ compilers can tack on
9841 # massive amounts of additional arguments before passing them to the
9842 # linker. It appears as though 1/2 is a usable value.
9843 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9844 fi
9845 ;;
9846 esac
9847
9848fi
9849
9850if test -n $lt_cv_sys_max_cmd_len ; then
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9852$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9853else
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9855$as_echo "none" >&6; }
9856fi
9857max_cmd_len=$lt_cv_sys_max_cmd_len
9858
9859
9860
9861
9862
9863
9864: ${CP="cp -f"}
9865: ${MV="mv -f"}
9866: ${RM="rm -f"}
9867
9868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9869$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9870# Try some XSI features
9871xsi_shell=no
9872( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +00009873 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9874 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +00009875 && eval 'test $(( 1 + 1 )) -eq 2 \
9876 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9877 && xsi_shell=yes
9878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9879$as_echo "$xsi_shell" >&6; }
9880
9881
9882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9883$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9884lt_shell_append=no
9885( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9886 >/dev/null 2>&1 \
9887 && lt_shell_append=yes
9888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9889$as_echo "$lt_shell_append" >&6; }
9890
9891
9892if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9893 lt_unset=unset
9894else
9895 lt_unset=false
9896fi
9897
9898
9899
9900
9901
9902# test EBCDIC or ASCII
9903case `echo X|tr X '\101'` in
9904 A) # ASCII based system
9905 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9906 lt_SP2NL='tr \040 \012'
9907 lt_NL2SP='tr \015\012 \040\040'
9908 ;;
9909 *) # EBCDIC based system
9910 lt_SP2NL='tr \100 \n'
9911 lt_NL2SP='tr \r\n \100\100'
9912 ;;
9913esac
9914
9915
9916
9917
9918
9919
9920
9921
9922
cristyda16f162011-02-19 23:52:17 +00009923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9924$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9925if ${lt_cv_to_host_file_cmd+:} false; then :
9926 $as_echo_n "(cached) " >&6
9927else
9928 case $host in
9929 *-*-mingw* )
9930 case $build in
9931 *-*-mingw* ) # actually msys
9932 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9933 ;;
9934 *-*-cygwin* )
9935 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9936 ;;
9937 * ) # otherwise, assume *nix
9938 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9939 ;;
9940 esac
9941 ;;
9942 *-*-cygwin* )
9943 case $build in
9944 *-*-mingw* ) # actually msys
9945 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9946 ;;
9947 *-*-cygwin* )
9948 lt_cv_to_host_file_cmd=func_convert_file_noop
9949 ;;
9950 * ) # otherwise, assume *nix
9951 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9952 ;;
9953 esac
9954 ;;
9955 * ) # unhandled hosts (and "normal" native builds)
9956 lt_cv_to_host_file_cmd=func_convert_file_noop
9957 ;;
9958esac
9959
9960fi
9961
9962to_host_file_cmd=$lt_cv_to_host_file_cmd
9963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9964$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9965
9966
9967
9968
9969
9970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9971$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9972if ${lt_cv_to_tool_file_cmd+:} false; then :
9973 $as_echo_n "(cached) " >&6
9974else
9975 #assume ordinary cross tools, or native build.
9976lt_cv_to_tool_file_cmd=func_convert_file_noop
9977case $host in
9978 *-*-mingw* )
9979 case $build in
9980 *-*-mingw* ) # actually msys
9981 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9982 ;;
9983 esac
9984 ;;
9985esac
9986
9987fi
9988
9989to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9991$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9992
9993
9994
9995
9996
cristy73bd4a52010-10-05 11:24:23 +00009997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9998$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009999if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010000 $as_echo_n "(cached) " >&6
10001else
10002 lt_cv_ld_reload_flag='-r'
10003fi
10004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10005$as_echo "$lt_cv_ld_reload_flag" >&6; }
10006reload_flag=$lt_cv_ld_reload_flag
10007case $reload_flag in
10008"" | " "*) ;;
10009*) reload_flag=" $reload_flag" ;;
10010esac
10011reload_cmds='$LD$reload_flag -o $output$reload_objs'
10012case $host_os in
cristyda16f162011-02-19 23:52:17 +000010013 cygwin* | mingw* | pw32* | cegcc*)
10014 if test "$GCC" != yes; then
10015 reload_cmds=false
10016 fi
10017 ;;
cristy73bd4a52010-10-05 11:24:23 +000010018 darwin*)
10019 if test "$GCC" = yes; then
10020 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10021 else
10022 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10023 fi
10024 ;;
10025esac
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035if test -n "$ac_tool_prefix"; then
10036 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10037set dummy ${ac_tool_prefix}objdump; ac_word=$2
10038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10039$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010040if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010041 $as_echo_n "(cached) " >&6
10042else
10043 if test -n "$OBJDUMP"; then
10044 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10045else
10046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10047for as_dir in $PATH
10048do
10049 IFS=$as_save_IFS
10050 test -z "$as_dir" && as_dir=.
10051 for ac_exec_ext in '' $ac_executable_extensions; do
10052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10053 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10055 break 2
10056 fi
10057done
10058 done
10059IFS=$as_save_IFS
10060
10061fi
10062fi
10063OBJDUMP=$ac_cv_prog_OBJDUMP
10064if test -n "$OBJDUMP"; then
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10066$as_echo "$OBJDUMP" >&6; }
10067else
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10069$as_echo "no" >&6; }
10070fi
10071
10072
10073fi
10074if test -z "$ac_cv_prog_OBJDUMP"; then
10075 ac_ct_OBJDUMP=$OBJDUMP
10076 # Extract the first word of "objdump", so it can be a program name with args.
10077set dummy objdump; ac_word=$2
10078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10079$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010080if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010081 $as_echo_n "(cached) " >&6
10082else
10083 if test -n "$ac_ct_OBJDUMP"; then
10084 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10085else
10086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10087for as_dir in $PATH
10088do
10089 IFS=$as_save_IFS
10090 test -z "$as_dir" && as_dir=.
10091 for ac_exec_ext in '' $ac_executable_extensions; do
10092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10093 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10095 break 2
10096 fi
10097done
10098 done
10099IFS=$as_save_IFS
10100
10101fi
10102fi
10103ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10104if test -n "$ac_ct_OBJDUMP"; then
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10106$as_echo "$ac_ct_OBJDUMP" >&6; }
10107else
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10109$as_echo "no" >&6; }
10110fi
10111
10112 if test "x$ac_ct_OBJDUMP" = x; then
10113 OBJDUMP="false"
10114 else
10115 case $cross_compiling:$ac_tool_warned in
10116yes:)
10117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10119ac_tool_warned=yes ;;
10120esac
10121 OBJDUMP=$ac_ct_OBJDUMP
10122 fi
10123else
10124 OBJDUMP="$ac_cv_prog_OBJDUMP"
10125fi
10126
10127test -z "$OBJDUMP" && OBJDUMP=objdump
10128
10129
10130
10131
10132
10133
10134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10135$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010136if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010137 $as_echo_n "(cached) " >&6
10138else
10139 lt_cv_file_magic_cmd='$MAGIC_CMD'
10140lt_cv_file_magic_test_file=
10141lt_cv_deplibs_check_method='unknown'
10142# Need to set the preceding variable on all platforms that support
10143# interlibrary dependencies.
10144# 'none' -- dependencies not supported.
10145# `unknown' -- same as none, but documents that we really don't know.
10146# 'pass_all' -- all dependencies passed with no checks.
10147# 'test_compile' -- check by making test program.
10148# 'file_magic [[regex]]' -- check by looking for files in library path
10149# which responds to the $file_magic_cmd with a given extended regex.
10150# If you have `file' or equivalent on your system and you're not sure
10151# whether `pass_all' will *always* work, you probably want this one.
10152
10153case $host_os in
10154aix[4-9]*)
10155 lt_cv_deplibs_check_method=pass_all
10156 ;;
10157
10158beos*)
10159 lt_cv_deplibs_check_method=pass_all
10160 ;;
10161
10162bsdi[45]*)
10163 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10164 lt_cv_file_magic_cmd='/usr/bin/file -L'
10165 lt_cv_file_magic_test_file=/shlib/libc.so
10166 ;;
10167
10168cygwin*)
10169 # func_win32_libid is a shell function defined in ltmain.sh
10170 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10171 lt_cv_file_magic_cmd='func_win32_libid'
10172 ;;
10173
10174mingw* | pw32*)
10175 # Base MSYS/MinGW do not provide the 'file' command needed by
10176 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10177 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010178 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10179 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010180 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10181 lt_cv_file_magic_cmd='func_win32_libid'
10182 else
cristy0c60a692010-11-04 01:09:47 +000010183 # Keep this pattern in sync with the one in func_win32_libid.
10184 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
cristy73bd4a52010-10-05 11:24:23 +000010185 lt_cv_file_magic_cmd='$OBJDUMP -f'
10186 fi
10187 ;;
10188
cristy0c60a692010-11-04 01:09:47 +000010189cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010190 # use the weaker test based on 'objdump'. See mingw*.
10191 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10192 lt_cv_file_magic_cmd='$OBJDUMP -f'
10193 ;;
10194
10195darwin* | rhapsody*)
10196 lt_cv_deplibs_check_method=pass_all
10197 ;;
10198
10199freebsd* | dragonfly*)
10200 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10201 case $host_cpu in
10202 i*86 )
10203 # Not sure whether the presence of OpenBSD here was a mistake.
10204 # Let's accept both of them until this is cleared up.
10205 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10206 lt_cv_file_magic_cmd=/usr/bin/file
10207 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10208 ;;
10209 esac
10210 else
10211 lt_cv_deplibs_check_method=pass_all
10212 fi
10213 ;;
10214
10215gnu*)
10216 lt_cv_deplibs_check_method=pass_all
10217 ;;
10218
cristy0c60a692010-11-04 01:09:47 +000010219haiku*)
10220 lt_cv_deplibs_check_method=pass_all
10221 ;;
10222
cristy73bd4a52010-10-05 11:24:23 +000010223hpux10.20* | hpux11*)
10224 lt_cv_file_magic_cmd=/usr/bin/file
10225 case $host_cpu in
10226 ia64*)
10227 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10228 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10229 ;;
10230 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010231 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
cristy73bd4a52010-10-05 11:24:23 +000010232 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10233 ;;
10234 *)
cristy0c60a692010-11-04 01:09:47 +000010235 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
cristy73bd4a52010-10-05 11:24:23 +000010236 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10237 ;;
10238 esac
10239 ;;
10240
10241interix[3-9]*)
10242 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10243 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10244 ;;
10245
10246irix5* | irix6* | nonstopux*)
10247 case $LD in
10248 *-32|*"-32 ") libmagic=32-bit;;
10249 *-n32|*"-n32 ") libmagic=N32;;
10250 *-64|*"-64 ") libmagic=64-bit;;
10251 *) libmagic=never-match;;
10252 esac
10253 lt_cv_deplibs_check_method=pass_all
10254 ;;
10255
10256# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000010257linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010258 lt_cv_deplibs_check_method=pass_all
10259 ;;
10260
10261netbsd*)
10262 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10263 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10264 else
10265 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10266 fi
10267 ;;
10268
10269newos6*)
10270 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10271 lt_cv_file_magic_cmd=/usr/bin/file
10272 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10273 ;;
10274
10275*nto* | *qnx*)
10276 lt_cv_deplibs_check_method=pass_all
10277 ;;
10278
10279openbsd*)
10280 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10282 else
10283 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10284 fi
10285 ;;
10286
10287osf3* | osf4* | osf5*)
10288 lt_cv_deplibs_check_method=pass_all
10289 ;;
10290
10291rdos*)
10292 lt_cv_deplibs_check_method=pass_all
10293 ;;
10294
10295solaris*)
10296 lt_cv_deplibs_check_method=pass_all
10297 ;;
10298
10299sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10300 lt_cv_deplibs_check_method=pass_all
10301 ;;
10302
10303sysv4 | sysv4.3*)
10304 case $host_vendor in
10305 motorola)
10306 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]'
10307 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10308 ;;
10309 ncr)
10310 lt_cv_deplibs_check_method=pass_all
10311 ;;
10312 sequent)
10313 lt_cv_file_magic_cmd='/bin/file'
10314 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10315 ;;
10316 sni)
10317 lt_cv_file_magic_cmd='/bin/file'
10318 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10319 lt_cv_file_magic_test_file=/lib/libc.so
10320 ;;
10321 siemens)
10322 lt_cv_deplibs_check_method=pass_all
10323 ;;
10324 pc)
10325 lt_cv_deplibs_check_method=pass_all
10326 ;;
10327 esac
10328 ;;
10329
10330tpf*)
10331 lt_cv_deplibs_check_method=pass_all
10332 ;;
10333esac
10334
10335fi
10336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10337$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010338
10339file_magic_glob=
10340want_nocaseglob=no
10341if test "$build" = "$host"; then
10342 case $host_os in
10343 mingw* | pw32*)
10344 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10345 want_nocaseglob=yes
10346 else
10347 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10348 fi
10349 ;;
10350 esac
10351fi
10352
cristy73bd4a52010-10-05 11:24:23 +000010353file_magic_cmd=$lt_cv_file_magic_cmd
10354deplibs_check_method=$lt_cv_deplibs_check_method
10355test -z "$deplibs_check_method" && deplibs_check_method=unknown
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
cristyda16f162011-02-19 23:52:17 +000010368
10369
10370
10371
10372
10373
10374
10375
10376
10377
cristy73bd4a52010-10-05 11:24:23 +000010378if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010379 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10380set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10382$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010383if ${ac_cv_prog_DLLTOOL+:} false; then :
10384 $as_echo_n "(cached) " >&6
10385else
10386 if test -n "$DLLTOOL"; then
10387 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10388else
10389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10390for as_dir in $PATH
10391do
10392 IFS=$as_save_IFS
10393 test -z "$as_dir" && as_dir=.
10394 for ac_exec_ext in '' $ac_executable_extensions; do
10395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10396 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10398 break 2
10399 fi
10400done
10401 done
10402IFS=$as_save_IFS
10403
10404fi
10405fi
10406DLLTOOL=$ac_cv_prog_DLLTOOL
10407if test -n "$DLLTOOL"; then
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10409$as_echo "$DLLTOOL" >&6; }
10410else
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10412$as_echo "no" >&6; }
10413fi
10414
10415
10416fi
10417if test -z "$ac_cv_prog_DLLTOOL"; then
10418 ac_ct_DLLTOOL=$DLLTOOL
10419 # Extract the first word of "dlltool", so it can be a program name with args.
10420set dummy dlltool; ac_word=$2
10421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10422$as_echo_n "checking for $ac_word... " >&6; }
10423if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10424 $as_echo_n "(cached) " >&6
10425else
10426 if test -n "$ac_ct_DLLTOOL"; then
10427 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10428else
10429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10430for as_dir in $PATH
10431do
10432 IFS=$as_save_IFS
10433 test -z "$as_dir" && as_dir=.
10434 for ac_exec_ext in '' $ac_executable_extensions; do
10435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10436 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10438 break 2
10439 fi
10440done
10441 done
10442IFS=$as_save_IFS
10443
10444fi
10445fi
10446ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10447if test -n "$ac_ct_DLLTOOL"; then
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10449$as_echo "$ac_ct_DLLTOOL" >&6; }
10450else
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10452$as_echo "no" >&6; }
10453fi
10454
10455 if test "x$ac_ct_DLLTOOL" = x; then
10456 DLLTOOL="false"
10457 else
10458 case $cross_compiling:$ac_tool_warned in
10459yes:)
10460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10462ac_tool_warned=yes ;;
10463esac
10464 DLLTOOL=$ac_ct_DLLTOOL
10465 fi
10466else
10467 DLLTOOL="$ac_cv_prog_DLLTOOL"
10468fi
10469
10470test -z "$DLLTOOL" && DLLTOOL=dlltool
10471
10472
10473
10474
10475
10476
10477
10478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10479$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10480if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10481 $as_echo_n "(cached) " >&6
10482else
10483 lt_cv_sharedlib_from_linklib_cmd='unknown'
10484
10485case $host_os in
10486cygwin* | mingw* | pw32* | cegcc*)
10487 # two different shell functions defined in ltmain.sh
10488 # decide which to use based on capabilities of $DLLTOOL
10489 case `$DLLTOOL --help 2>&1` in
10490 *--identify-strict*)
10491 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10492 ;;
10493 *)
10494 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10495 ;;
10496 esac
10497 ;;
10498*)
10499 # fallback: assume linklib IS sharedlib
10500 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10501 ;;
10502esac
10503
10504fi
10505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10506$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10507sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10508test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10509
10510
10511
10512
10513
10514
10515
10516if test -n "$ac_tool_prefix"; then
10517 for ac_prog in ar
10518 do
10519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10520set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10522$as_echo_n "checking for $ac_word... " >&6; }
10523if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010524 $as_echo_n "(cached) " >&6
10525else
10526 if test -n "$AR"; then
10527 ac_cv_prog_AR="$AR" # Let the user override the test.
10528else
10529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10530for as_dir in $PATH
10531do
10532 IFS=$as_save_IFS
10533 test -z "$as_dir" && as_dir=.
10534 for ac_exec_ext in '' $ac_executable_extensions; do
10535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristyda16f162011-02-19 23:52:17 +000010536 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10538 break 2
10539 fi
10540done
10541 done
10542IFS=$as_save_IFS
10543
10544fi
10545fi
10546AR=$ac_cv_prog_AR
10547if test -n "$AR"; then
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10549$as_echo "$AR" >&6; }
10550else
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10552$as_echo "no" >&6; }
10553fi
10554
10555
cristyda16f162011-02-19 23:52:17 +000010556 test -n "$AR" && break
10557 done
cristy73bd4a52010-10-05 11:24:23 +000010558fi
cristyda16f162011-02-19 23:52:17 +000010559if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010560 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010561 for ac_prog in ar
10562do
10563 # Extract the first word of "$ac_prog", so it can be a program name with args.
10564set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10566$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010567if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010568 $as_echo_n "(cached) " >&6
10569else
10570 if test -n "$ac_ct_AR"; then
10571 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10572else
10573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10574for as_dir in $PATH
10575do
10576 IFS=$as_save_IFS
10577 test -z "$as_dir" && as_dir=.
10578 for ac_exec_ext in '' $ac_executable_extensions; do
10579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristyda16f162011-02-19 23:52:17 +000010580 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10582 break 2
10583 fi
10584done
10585 done
10586IFS=$as_save_IFS
10587
10588fi
10589fi
10590ac_ct_AR=$ac_cv_prog_ac_ct_AR
10591if test -n "$ac_ct_AR"; then
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10593$as_echo "$ac_ct_AR" >&6; }
10594else
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10596$as_echo "no" >&6; }
10597fi
10598
cristyda16f162011-02-19 23:52:17 +000010599
10600 test -n "$ac_ct_AR" && break
10601done
10602
cristy73bd4a52010-10-05 11:24:23 +000010603 if test "x$ac_ct_AR" = x; then
10604 AR="false"
10605 else
10606 case $cross_compiling:$ac_tool_warned in
10607yes:)
10608{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10609$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10610ac_tool_warned=yes ;;
10611esac
10612 AR=$ac_ct_AR
10613 fi
cristy73bd4a52010-10-05 11:24:23 +000010614fi
10615
cristyda16f162011-02-19 23:52:17 +000010616: ${AR=ar}
10617: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
cristyda16f162011-02-19 23:52:17 +000010629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10630$as_echo_n "checking for archiver @FILE support... " >&6; }
10631if ${lt_cv_ar_at_file+:} false; then :
10632 $as_echo_n "(cached) " >&6
10633else
10634 lt_cv_ar_at_file=no
10635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10636/* end confdefs.h. */
10637
10638int
10639main ()
10640{
10641
10642 ;
10643 return 0;
10644}
10645_ACEOF
10646if ac_fn_c_try_compile "$LINENO"; then :
10647 echo conftest.$ac_objext > conftest.lst
10648 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10650 (eval $lt_ar_try) 2>&5
10651 ac_status=$?
10652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10653 test $ac_status = 0; }
10654 if test "$ac_status" -eq 0; then
10655 # Ensure the archiver fails upon bogus file names.
10656 rm -f conftest.$ac_objext libconftest.a
10657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10658 (eval $lt_ar_try) 2>&5
10659 ac_status=$?
10660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10661 test $ac_status = 0; }
10662 if test "$ac_status" -ne 0; then
10663 lt_cv_ar_at_file=@
10664 fi
10665 fi
10666 rm -f conftest.* libconftest.a
10667
10668fi
10669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10670
10671fi
10672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10673$as_echo "$lt_cv_ar_at_file" >&6; }
10674
10675if test "x$lt_cv_ar_at_file" = xno; then
10676 archiver_list_spec=
10677else
10678 archiver_list_spec=$lt_cv_ar_at_file
10679fi
10680
10681
10682
10683
10684
10685
10686
cristy73bd4a52010-10-05 11:24:23 +000010687if test -n "$ac_tool_prefix"; then
10688 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10689set dummy ${ac_tool_prefix}strip; ac_word=$2
10690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10691$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010692if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010693 $as_echo_n "(cached) " >&6
10694else
10695 if test -n "$STRIP"; then
10696 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10697else
10698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10699for as_dir in $PATH
10700do
10701 IFS=$as_save_IFS
10702 test -z "$as_dir" && as_dir=.
10703 for ac_exec_ext in '' $ac_executable_extensions; do
10704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10705 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10707 break 2
10708 fi
10709done
10710 done
10711IFS=$as_save_IFS
10712
10713fi
10714fi
10715STRIP=$ac_cv_prog_STRIP
10716if test -n "$STRIP"; then
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10718$as_echo "$STRIP" >&6; }
10719else
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10721$as_echo "no" >&6; }
10722fi
10723
10724
10725fi
10726if test -z "$ac_cv_prog_STRIP"; then
10727 ac_ct_STRIP=$STRIP
10728 # Extract the first word of "strip", so it can be a program name with args.
10729set dummy strip; ac_word=$2
10730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10731$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010732if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010733 $as_echo_n "(cached) " >&6
10734else
10735 if test -n "$ac_ct_STRIP"; then
10736 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10737else
10738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10739for as_dir in $PATH
10740do
10741 IFS=$as_save_IFS
10742 test -z "$as_dir" && as_dir=.
10743 for ac_exec_ext in '' $ac_executable_extensions; do
10744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10745 ac_cv_prog_ac_ct_STRIP="strip"
10746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10747 break 2
10748 fi
10749done
10750 done
10751IFS=$as_save_IFS
10752
10753fi
10754fi
10755ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10756if test -n "$ac_ct_STRIP"; then
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10758$as_echo "$ac_ct_STRIP" >&6; }
10759else
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10761$as_echo "no" >&6; }
10762fi
10763
10764 if test "x$ac_ct_STRIP" = x; then
10765 STRIP=":"
10766 else
10767 case $cross_compiling:$ac_tool_warned in
10768yes:)
10769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10771ac_tool_warned=yes ;;
10772esac
10773 STRIP=$ac_ct_STRIP
10774 fi
10775else
10776 STRIP="$ac_cv_prog_STRIP"
10777fi
10778
10779test -z "$STRIP" && STRIP=:
10780
10781
10782
10783
10784
10785
10786if test -n "$ac_tool_prefix"; then
10787 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10788set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10790$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010791if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010792 $as_echo_n "(cached) " >&6
10793else
10794 if test -n "$RANLIB"; then
10795 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10796else
10797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10798for as_dir in $PATH
10799do
10800 IFS=$as_save_IFS
10801 test -z "$as_dir" && as_dir=.
10802 for ac_exec_ext in '' $ac_executable_extensions; do
10803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10804 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10806 break 2
10807 fi
10808done
10809 done
10810IFS=$as_save_IFS
10811
10812fi
10813fi
10814RANLIB=$ac_cv_prog_RANLIB
10815if test -n "$RANLIB"; then
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10817$as_echo "$RANLIB" >&6; }
10818else
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10820$as_echo "no" >&6; }
10821fi
10822
10823
10824fi
10825if test -z "$ac_cv_prog_RANLIB"; then
10826 ac_ct_RANLIB=$RANLIB
10827 # Extract the first word of "ranlib", so it can be a program name with args.
10828set dummy ranlib; ac_word=$2
10829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10830$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010831if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010832 $as_echo_n "(cached) " >&6
10833else
10834 if test -n "$ac_ct_RANLIB"; then
10835 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10836else
10837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10838for as_dir in $PATH
10839do
10840 IFS=$as_save_IFS
10841 test -z "$as_dir" && as_dir=.
10842 for ac_exec_ext in '' $ac_executable_extensions; do
10843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10844 ac_cv_prog_ac_ct_RANLIB="ranlib"
10845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10846 break 2
10847 fi
10848done
10849 done
10850IFS=$as_save_IFS
10851
10852fi
10853fi
10854ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10855if test -n "$ac_ct_RANLIB"; then
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10857$as_echo "$ac_ct_RANLIB" >&6; }
10858else
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860$as_echo "no" >&6; }
10861fi
10862
10863 if test "x$ac_ct_RANLIB" = x; then
10864 RANLIB=":"
10865 else
10866 case $cross_compiling:$ac_tool_warned in
10867yes:)
10868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10870ac_tool_warned=yes ;;
10871esac
10872 RANLIB=$ac_ct_RANLIB
10873 fi
10874else
10875 RANLIB="$ac_cv_prog_RANLIB"
10876fi
10877
10878test -z "$RANLIB" && RANLIB=:
10879
10880
10881
10882
10883
10884
10885# Determine commands to create old-style static archives.
10886old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10887old_postinstall_cmds='chmod 644 $oldlib'
10888old_postuninstall_cmds=
10889
10890if test -n "$RANLIB"; then
10891 case $host_os in
10892 openbsd*)
10893 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10894 ;;
10895 *)
10896 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10897 ;;
10898 esac
10899 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10900fi
10901
cristy0c60a692010-11-04 01:09:47 +000010902case $host_os in
10903 darwin*)
10904 lock_old_archive_extraction=yes ;;
10905 *)
10906 lock_old_archive_extraction=no ;;
10907esac
10908
10909
10910
10911
10912
10913
cristy73bd4a52010-10-05 11:24:23 +000010914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947# If no C compiler was specified, use CC.
10948LTCC=${LTCC-"$CC"}
10949
10950# If no C compiler flags were specified, use CFLAGS.
10951LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10952
10953# Allow CC to be a program name with arguments.
10954compiler=$CC
10955
10956
10957# Check for command to grab the raw symbol name followed by C symbol from nm.
10958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10959$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010960if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010961 $as_echo_n "(cached) " >&6
10962else
10963
10964# These are sane defaults that work on at least a few old systems.
10965# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10966
10967# Character class describing NM global symbol codes.
10968symcode='[BCDEGRST]'
10969
10970# Regexp to match symbols that can be accessed directly from C.
10971sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10972
10973# Define system-specific variables.
10974case $host_os in
10975aix*)
10976 symcode='[BCDT]'
10977 ;;
10978cygwin* | mingw* | pw32* | cegcc*)
10979 symcode='[ABCDGISTW]'
10980 ;;
10981hpux*)
10982 if test "$host_cpu" = ia64; then
10983 symcode='[ABCDEGRST]'
10984 fi
10985 ;;
10986irix* | nonstopux*)
10987 symcode='[BCDEGRST]'
10988 ;;
10989osf*)
10990 symcode='[BCDEGQRST]'
10991 ;;
10992solaris*)
10993 symcode='[BDRT]'
10994 ;;
10995sco3.2v5*)
10996 symcode='[DT]'
10997 ;;
10998sysv4.2uw2*)
10999 symcode='[DT]'
11000 ;;
11001sysv5* | sco5v6* | unixware* | OpenUNIX*)
11002 symcode='[ABDT]'
11003 ;;
11004sysv4)
11005 symcode='[DFNSTU]'
11006 ;;
11007esac
11008
11009# If we're using GNU nm, then use its standard symbol codes.
11010case `$NM -V 2>&1` in
11011*GNU* | *'with BFD'*)
11012 symcode='[ABCDGIRSTW]' ;;
11013esac
11014
11015# Transform an extracted symbol line into a proper C declaration.
11016# Some systems (esp. on ia64) link data and code symbols differently,
11017# so use this general approach.
11018lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11019
11020# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011021lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11022lt_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'"
cristy73bd4a52010-10-05 11:24:23 +000011023
11024# Handle CRLF in mingw tool chain
11025opt_cr=
11026case $build_os in
11027mingw*)
11028 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11029 ;;
11030esac
11031
11032# Try without a prefix underscore, then with it.
11033for ac_symprfx in "" "_"; do
11034
11035 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11036 symxfrm="\\1 $ac_symprfx\\2 \\2"
11037
11038 # Write the raw and C identifiers.
11039 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11040 # Fake it for dumpbin and say T for any non-static function
11041 # and D for any global variable.
11042 # Also find C++ and __fastcall symbols from MSVC++,
11043 # which start with @ or ?.
11044 lt_cv_sys_global_symbol_pipe="$AWK '"\
11045" {last_section=section; section=\$ 3};"\
11046" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11047" \$ 0!~/External *\|/{next};"\
11048" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11049" {if(hide[section]) next};"\
11050" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11051" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11052" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11053" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11054" ' prfx=^$ac_symprfx"
11055 else
11056 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11057 fi
cristyda16f162011-02-19 23:52:17 +000011058 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011059
11060 # Check to see that the pipe works correctly.
11061 pipe_works=no
11062
11063 rm -f conftest*
11064 cat > conftest.$ac_ext <<_LT_EOF
11065#ifdef __cplusplus
11066extern "C" {
11067#endif
11068char nm_test_var;
11069void nm_test_func(void);
11070void nm_test_func(void){}
11071#ifdef __cplusplus
11072}
11073#endif
11074int main(){nm_test_var='a';nm_test_func();return(0);}
11075_LT_EOF
11076
11077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11078 (eval $ac_compile) 2>&5
11079 ac_status=$?
11080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11081 test $ac_status = 0; }; then
11082 # Now try to grab the symbols.
11083 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11085 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011086 ac_status=$?
11087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11088 test $ac_status = 0; } && test -s "$nlist"; then
11089 # Try sorting and uniquifying the output.
11090 if sort "$nlist" | uniq > "$nlist"T; then
11091 mv -f "$nlist"T "$nlist"
11092 else
11093 rm -f "$nlist"T
11094 fi
11095
11096 # Make sure that we snagged all the symbols we need.
11097 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11098 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11099 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011100/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11101#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11102/* DATA imports from DLLs on WIN32 con't be const, because runtime
11103 relocations are performed -- see ld's documentation on pseudo-relocs. */
11104# define LT_DLSYM_CONST
11105#elif defined(__osf__)
11106/* This system does not cope well with relocations in const data. */
11107# define LT_DLSYM_CONST
11108#else
11109# define LT_DLSYM_CONST const
11110#endif
11111
cristy73bd4a52010-10-05 11:24:23 +000011112#ifdef __cplusplus
11113extern "C" {
11114#endif
11115
11116_LT_EOF
11117 # Now generate the symbol file.
11118 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11119
11120 cat <<_LT_EOF >> conftest.$ac_ext
11121
11122/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011123LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011124 const char *name;
11125 void *address;
11126}
11127lt__PROGRAM__LTX_preloaded_symbols[] =
11128{
11129 { "@PROGRAM@", (void *) 0 },
11130_LT_EOF
11131 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11132 cat <<\_LT_EOF >> conftest.$ac_ext
11133 {0, (void *) 0}
11134};
11135
11136/* This works around a problem in FreeBSD linker */
11137#ifdef FREEBSD_WORKAROUND
11138static const void *lt_preloaded_setup() {
11139 return lt__PROGRAM__LTX_preloaded_symbols;
11140}
11141#endif
11142
11143#ifdef __cplusplus
11144}
11145#endif
11146_LT_EOF
11147 # Now try linking the two files.
11148 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011149 lt_globsym_save_LIBS=$LIBS
11150 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011151 LIBS="conftstm.$ac_objext"
11152 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11154 (eval $ac_link) 2>&5
11155 ac_status=$?
11156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11157 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11158 pipe_works=yes
11159 fi
cristyda16f162011-02-19 23:52:17 +000011160 LIBS=$lt_globsym_save_LIBS
11161 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011162 else
11163 echo "cannot find nm_test_func in $nlist" >&5
11164 fi
11165 else
11166 echo "cannot find nm_test_var in $nlist" >&5
11167 fi
11168 else
11169 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11170 fi
11171 else
11172 echo "$progname: failed program was:" >&5
11173 cat conftest.$ac_ext >&5
11174 fi
11175 rm -rf conftest* conftst*
11176
11177 # Do not use the global_symbol_pipe unless it works.
11178 if test "$pipe_works" = yes; then
11179 break
11180 else
11181 lt_cv_sys_global_symbol_pipe=
11182 fi
11183done
11184
11185fi
11186
11187if test -z "$lt_cv_sys_global_symbol_pipe"; then
11188 lt_cv_sys_global_symbol_to_cdecl=
11189fi
11190if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11192$as_echo "failed" >&6; }
11193else
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11195$as_echo "ok" >&6; }
11196fi
11197
cristyda16f162011-02-19 23:52:17 +000011198# Response file support.
11199if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11200 nm_file_list_spec='@'
11201elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11202 nm_file_list_spec='@'
11203fi
cristy73bd4a52010-10-05 11:24:23 +000011204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
cristyda16f162011-02-19 23:52:17 +000011225
11226
11227
11228
11229
11230
11231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11232$as_echo_n "checking for sysroot... " >&6; }
11233
11234# Check whether --with-sysroot was given.
11235if test "${with_sysroot+set}" = set; then :
11236 withval=$with_sysroot;
11237else
11238 with_sysroot=no
11239fi
11240
11241
11242lt_sysroot=
11243case ${with_sysroot} in #(
11244 yes)
11245 if test "$GCC" = yes; then
11246 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11247 fi
11248 ;; #(
11249 /*)
11250 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11251 ;; #(
11252 no|'')
11253 ;; #(
11254 *)
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11256$as_echo "${with_sysroot}" >&6; }
11257 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11258 ;;
11259esac
11260
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11262$as_echo "${lt_sysroot:-no}" >&6; }
11263
11264
11265
11266
11267
cristy73bd4a52010-10-05 11:24:23 +000011268# Check whether --enable-libtool-lock was given.
11269if test "${enable_libtool_lock+set}" = set; then :
11270 enableval=$enable_libtool_lock;
11271fi
11272
11273test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11274
11275# Some flags need to be propagated to the compiler or linker for good
11276# libtool support.
11277case $host in
11278ia64-*-hpux*)
11279 # Find out which ABI we are using.
11280 echo 'int i;' > conftest.$ac_ext
11281 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11282 (eval $ac_compile) 2>&5
11283 ac_status=$?
11284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11285 test $ac_status = 0; }; then
11286 case `/usr/bin/file conftest.$ac_objext` in
11287 *ELF-32*)
11288 HPUX_IA64_MODE="32"
11289 ;;
11290 *ELF-64*)
11291 HPUX_IA64_MODE="64"
11292 ;;
11293 esac
11294 fi
11295 rm -rf conftest*
11296 ;;
11297*-*-irix6*)
11298 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011299 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11301 (eval $ac_compile) 2>&5
11302 ac_status=$?
11303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11304 test $ac_status = 0; }; then
11305 if test "$lt_cv_prog_gnu_ld" = yes; then
11306 case `/usr/bin/file conftest.$ac_objext` in
11307 *32-bit*)
11308 LD="${LD-ld} -melf32bsmip"
11309 ;;
11310 *N32*)
11311 LD="${LD-ld} -melf32bmipn32"
11312 ;;
11313 *64-bit*)
11314 LD="${LD-ld} -melf64bmip"
11315 ;;
11316 esac
11317 else
11318 case `/usr/bin/file conftest.$ac_objext` in
11319 *32-bit*)
11320 LD="${LD-ld} -32"
11321 ;;
11322 *N32*)
11323 LD="${LD-ld} -n32"
11324 ;;
11325 *64-bit*)
11326 LD="${LD-ld} -64"
11327 ;;
11328 esac
11329 fi
11330 fi
11331 rm -rf conftest*
11332 ;;
11333
11334x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11335s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11336 # Find out which ABI we are using.
11337 echo 'int i;' > conftest.$ac_ext
11338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11339 (eval $ac_compile) 2>&5
11340 ac_status=$?
11341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11342 test $ac_status = 0; }; then
11343 case `/usr/bin/file conftest.o` in
11344 *32-bit*)
11345 case $host in
11346 x86_64-*kfreebsd*-gnu)
11347 LD="${LD-ld} -m elf_i386_fbsd"
11348 ;;
11349 x86_64-*linux*)
11350 LD="${LD-ld} -m elf_i386"
11351 ;;
11352 ppc64-*linux*|powerpc64-*linux*)
11353 LD="${LD-ld} -m elf32ppclinux"
11354 ;;
11355 s390x-*linux*)
11356 LD="${LD-ld} -m elf_s390"
11357 ;;
11358 sparc64-*linux*)
11359 LD="${LD-ld} -m elf32_sparc"
11360 ;;
11361 esac
11362 ;;
11363 *64-bit*)
11364 case $host in
11365 x86_64-*kfreebsd*-gnu)
11366 LD="${LD-ld} -m elf_x86_64_fbsd"
11367 ;;
11368 x86_64-*linux*)
11369 LD="${LD-ld} -m elf_x86_64"
11370 ;;
11371 ppc*-*linux*|powerpc*-*linux*)
11372 LD="${LD-ld} -m elf64ppc"
11373 ;;
11374 s390*-*linux*|s390*-*tpf*)
11375 LD="${LD-ld} -m elf64_s390"
11376 ;;
11377 sparc*-*linux*)
11378 LD="${LD-ld} -m elf64_sparc"
11379 ;;
11380 esac
11381 ;;
11382 esac
11383 fi
11384 rm -rf conftest*
11385 ;;
11386
11387*-*-sco3.2v5*)
11388 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11389 SAVE_CFLAGS="$CFLAGS"
11390 CFLAGS="$CFLAGS -belf"
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11392$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011393if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011394 $as_echo_n "(cached) " >&6
11395else
11396 ac_ext=c
11397ac_cpp='$CPP $CPPFLAGS'
11398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11400ac_compiler_gnu=$ac_cv_c_compiler_gnu
11401
11402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11403/* end confdefs.h. */
11404
11405int
11406main ()
11407{
11408
11409 ;
11410 return 0;
11411}
11412_ACEOF
11413if ac_fn_c_try_link "$LINENO"; then :
11414 lt_cv_cc_needs_belf=yes
11415else
11416 lt_cv_cc_needs_belf=no
11417fi
11418rm -f core conftest.err conftest.$ac_objext \
11419 conftest$ac_exeext conftest.$ac_ext
11420 ac_ext=c
11421ac_cpp='$CPP $CPPFLAGS'
11422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11424ac_compiler_gnu=$ac_cv_c_compiler_gnu
11425
11426fi
11427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11428$as_echo "$lt_cv_cc_needs_belf" >&6; }
11429 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11430 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11431 CFLAGS="$SAVE_CFLAGS"
11432 fi
11433 ;;
11434sparc*-*solaris*)
11435 # Find out which ABI we are using.
11436 echo 'int i;' > conftest.$ac_ext
11437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11438 (eval $ac_compile) 2>&5
11439 ac_status=$?
11440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11441 test $ac_status = 0; }; then
11442 case `/usr/bin/file conftest.o` in
11443 *64-bit*)
11444 case $lt_cv_prog_gnu_ld in
11445 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11446 *)
11447 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11448 LD="${LD-ld} -64"
11449 fi
11450 ;;
11451 esac
11452 ;;
11453 esac
11454 fi
11455 rm -rf conftest*
11456 ;;
11457esac
11458
11459need_locks="$enable_libtool_lock"
11460
cristyda16f162011-02-19 23:52:17 +000011461if test -n "$ac_tool_prefix"; then
11462 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11463set dummy ${ac_tool_prefix}mt; ac_word=$2
11464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11465$as_echo_n "checking for $ac_word... " >&6; }
11466if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11467 $as_echo_n "(cached) " >&6
11468else
11469 if test -n "$MANIFEST_TOOL"; then
11470 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11471else
11472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11473for as_dir in $PATH
11474do
11475 IFS=$as_save_IFS
11476 test -z "$as_dir" && as_dir=.
11477 for ac_exec_ext in '' $ac_executable_extensions; do
11478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11479 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11481 break 2
11482 fi
11483done
11484 done
11485IFS=$as_save_IFS
11486
11487fi
11488fi
11489MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11490if test -n "$MANIFEST_TOOL"; then
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11492$as_echo "$MANIFEST_TOOL" >&6; }
11493else
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11495$as_echo "no" >&6; }
11496fi
11497
11498
11499fi
11500if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11501 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11502 # Extract the first word of "mt", so it can be a program name with args.
11503set dummy mt; ac_word=$2
11504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11505$as_echo_n "checking for $ac_word... " >&6; }
11506if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11507 $as_echo_n "(cached) " >&6
11508else
11509 if test -n "$ac_ct_MANIFEST_TOOL"; then
11510 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11511else
11512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513for as_dir in $PATH
11514do
11515 IFS=$as_save_IFS
11516 test -z "$as_dir" && as_dir=.
11517 for ac_exec_ext in '' $ac_executable_extensions; do
11518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11519 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11521 break 2
11522 fi
11523done
11524 done
11525IFS=$as_save_IFS
11526
11527fi
11528fi
11529ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11530if test -n "$ac_ct_MANIFEST_TOOL"; then
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11532$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11533else
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11535$as_echo "no" >&6; }
11536fi
11537
11538 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11539 MANIFEST_TOOL=":"
11540 else
11541 case $cross_compiling:$ac_tool_warned in
11542yes:)
11543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11545ac_tool_warned=yes ;;
11546esac
11547 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11548 fi
11549else
11550 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11551fi
11552
11553test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11555$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11556if ${lt_cv_path_mainfest_tool+:} false; then :
11557 $as_echo_n "(cached) " >&6
11558else
11559 lt_cv_path_mainfest_tool=no
11560 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11561 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11562 cat conftest.err >&5
11563 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11564 lt_cv_path_mainfest_tool=yes
11565 fi
11566 rm -f conftest*
11567fi
11568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11569$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11570if test "x$lt_cv_path_mainfest_tool" != xyes; then
11571 MANIFEST_TOOL=:
11572fi
11573
11574
11575
11576
11577
cristy73bd4a52010-10-05 11:24:23 +000011578
11579 case $host_os in
11580 rhapsody* | darwin*)
11581 if test -n "$ac_tool_prefix"; then
11582 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11583set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11585$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011586if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011587 $as_echo_n "(cached) " >&6
11588else
11589 if test -n "$DSYMUTIL"; then
11590 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11591else
11592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11593for as_dir in $PATH
11594do
11595 IFS=$as_save_IFS
11596 test -z "$as_dir" && as_dir=.
11597 for ac_exec_ext in '' $ac_executable_extensions; do
11598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11599 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11601 break 2
11602 fi
11603done
11604 done
11605IFS=$as_save_IFS
11606
11607fi
11608fi
11609DSYMUTIL=$ac_cv_prog_DSYMUTIL
11610if test -n "$DSYMUTIL"; then
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11612$as_echo "$DSYMUTIL" >&6; }
11613else
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615$as_echo "no" >&6; }
11616fi
11617
11618
11619fi
11620if test -z "$ac_cv_prog_DSYMUTIL"; then
11621 ac_ct_DSYMUTIL=$DSYMUTIL
11622 # Extract the first word of "dsymutil", so it can be a program name with args.
11623set dummy dsymutil; ac_word=$2
11624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11625$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011626if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011627 $as_echo_n "(cached) " >&6
11628else
11629 if test -n "$ac_ct_DSYMUTIL"; then
11630 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11631else
11632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11633for as_dir in $PATH
11634do
11635 IFS=$as_save_IFS
11636 test -z "$as_dir" && as_dir=.
11637 for ac_exec_ext in '' $ac_executable_extensions; do
11638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11639 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11641 break 2
11642 fi
11643done
11644 done
11645IFS=$as_save_IFS
11646
11647fi
11648fi
11649ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11650if test -n "$ac_ct_DSYMUTIL"; then
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11652$as_echo "$ac_ct_DSYMUTIL" >&6; }
11653else
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655$as_echo "no" >&6; }
11656fi
11657
11658 if test "x$ac_ct_DSYMUTIL" = x; then
11659 DSYMUTIL=":"
11660 else
11661 case $cross_compiling:$ac_tool_warned in
11662yes:)
11663{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11664$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11665ac_tool_warned=yes ;;
11666esac
11667 DSYMUTIL=$ac_ct_DSYMUTIL
11668 fi
11669else
11670 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11671fi
11672
11673 if test -n "$ac_tool_prefix"; then
11674 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11675set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11677$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011678if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011679 $as_echo_n "(cached) " >&6
11680else
11681 if test -n "$NMEDIT"; then
11682 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11683else
11684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11685for as_dir in $PATH
11686do
11687 IFS=$as_save_IFS
11688 test -z "$as_dir" && as_dir=.
11689 for ac_exec_ext in '' $ac_executable_extensions; do
11690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11691 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11693 break 2
11694 fi
11695done
11696 done
11697IFS=$as_save_IFS
11698
11699fi
11700fi
11701NMEDIT=$ac_cv_prog_NMEDIT
11702if test -n "$NMEDIT"; then
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11704$as_echo "$NMEDIT" >&6; }
11705else
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11707$as_echo "no" >&6; }
11708fi
11709
11710
11711fi
11712if test -z "$ac_cv_prog_NMEDIT"; then
11713 ac_ct_NMEDIT=$NMEDIT
11714 # Extract the first word of "nmedit", so it can be a program name with args.
11715set dummy nmedit; ac_word=$2
11716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11717$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011718if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011719 $as_echo_n "(cached) " >&6
11720else
11721 if test -n "$ac_ct_NMEDIT"; then
11722 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11723else
11724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11725for as_dir in $PATH
11726do
11727 IFS=$as_save_IFS
11728 test -z "$as_dir" && as_dir=.
11729 for ac_exec_ext in '' $ac_executable_extensions; do
11730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11731 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11733 break 2
11734 fi
11735done
11736 done
11737IFS=$as_save_IFS
11738
11739fi
11740fi
11741ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11742if test -n "$ac_ct_NMEDIT"; then
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11744$as_echo "$ac_ct_NMEDIT" >&6; }
11745else
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11747$as_echo "no" >&6; }
11748fi
11749
11750 if test "x$ac_ct_NMEDIT" = x; then
11751 NMEDIT=":"
11752 else
11753 case $cross_compiling:$ac_tool_warned in
11754yes:)
11755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11757ac_tool_warned=yes ;;
11758esac
11759 NMEDIT=$ac_ct_NMEDIT
11760 fi
11761else
11762 NMEDIT="$ac_cv_prog_NMEDIT"
11763fi
11764
11765 if test -n "$ac_tool_prefix"; then
11766 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11767set dummy ${ac_tool_prefix}lipo; ac_word=$2
11768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11769$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011770if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011771 $as_echo_n "(cached) " >&6
11772else
11773 if test -n "$LIPO"; then
11774 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11775else
11776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11777for as_dir in $PATH
11778do
11779 IFS=$as_save_IFS
11780 test -z "$as_dir" && as_dir=.
11781 for ac_exec_ext in '' $ac_executable_extensions; do
11782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11783 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11785 break 2
11786 fi
11787done
11788 done
11789IFS=$as_save_IFS
11790
11791fi
11792fi
11793LIPO=$ac_cv_prog_LIPO
11794if test -n "$LIPO"; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11796$as_echo "$LIPO" >&6; }
11797else
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799$as_echo "no" >&6; }
11800fi
11801
11802
11803fi
11804if test -z "$ac_cv_prog_LIPO"; then
11805 ac_ct_LIPO=$LIPO
11806 # Extract the first word of "lipo", so it can be a program name with args.
11807set dummy lipo; ac_word=$2
11808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11809$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011810if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011811 $as_echo_n "(cached) " >&6
11812else
11813 if test -n "$ac_ct_LIPO"; then
11814 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11815else
11816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11817for as_dir in $PATH
11818do
11819 IFS=$as_save_IFS
11820 test -z "$as_dir" && as_dir=.
11821 for ac_exec_ext in '' $ac_executable_extensions; do
11822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11823 ac_cv_prog_ac_ct_LIPO="lipo"
11824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11825 break 2
11826 fi
11827done
11828 done
11829IFS=$as_save_IFS
11830
11831fi
11832fi
11833ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11834if test -n "$ac_ct_LIPO"; then
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11836$as_echo "$ac_ct_LIPO" >&6; }
11837else
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11839$as_echo "no" >&6; }
11840fi
11841
11842 if test "x$ac_ct_LIPO" = x; then
11843 LIPO=":"
11844 else
11845 case $cross_compiling:$ac_tool_warned in
11846yes:)
11847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11849ac_tool_warned=yes ;;
11850esac
11851 LIPO=$ac_ct_LIPO
11852 fi
11853else
11854 LIPO="$ac_cv_prog_LIPO"
11855fi
11856
11857 if test -n "$ac_tool_prefix"; then
11858 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11859set dummy ${ac_tool_prefix}otool; ac_word=$2
11860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11861$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011862if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011863 $as_echo_n "(cached) " >&6
11864else
11865 if test -n "$OTOOL"; then
11866 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11867else
11868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11869for as_dir in $PATH
11870do
11871 IFS=$as_save_IFS
11872 test -z "$as_dir" && as_dir=.
11873 for ac_exec_ext in '' $ac_executable_extensions; do
11874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11875 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11877 break 2
11878 fi
11879done
11880 done
11881IFS=$as_save_IFS
11882
11883fi
11884fi
11885OTOOL=$ac_cv_prog_OTOOL
11886if test -n "$OTOOL"; then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11888$as_echo "$OTOOL" >&6; }
11889else
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891$as_echo "no" >&6; }
11892fi
11893
11894
11895fi
11896if test -z "$ac_cv_prog_OTOOL"; then
11897 ac_ct_OTOOL=$OTOOL
11898 # Extract the first word of "otool", so it can be a program name with args.
11899set dummy otool; ac_word=$2
11900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11901$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011902if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011903 $as_echo_n "(cached) " >&6
11904else
11905 if test -n "$ac_ct_OTOOL"; then
11906 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11907else
11908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11909for as_dir in $PATH
11910do
11911 IFS=$as_save_IFS
11912 test -z "$as_dir" && as_dir=.
11913 for ac_exec_ext in '' $ac_executable_extensions; do
11914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11915 ac_cv_prog_ac_ct_OTOOL="otool"
11916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11917 break 2
11918 fi
11919done
11920 done
11921IFS=$as_save_IFS
11922
11923fi
11924fi
11925ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11926if test -n "$ac_ct_OTOOL"; then
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11928$as_echo "$ac_ct_OTOOL" >&6; }
11929else
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11931$as_echo "no" >&6; }
11932fi
11933
11934 if test "x$ac_ct_OTOOL" = x; then
11935 OTOOL=":"
11936 else
11937 case $cross_compiling:$ac_tool_warned in
11938yes:)
11939{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11940$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11941ac_tool_warned=yes ;;
11942esac
11943 OTOOL=$ac_ct_OTOOL
11944 fi
11945else
11946 OTOOL="$ac_cv_prog_OTOOL"
11947fi
11948
11949 if test -n "$ac_tool_prefix"; then
11950 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11951set dummy ${ac_tool_prefix}otool64; ac_word=$2
11952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11953$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011954if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011955 $as_echo_n "(cached) " >&6
11956else
11957 if test -n "$OTOOL64"; then
11958 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11959else
11960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961for as_dir in $PATH
11962do
11963 IFS=$as_save_IFS
11964 test -z "$as_dir" && as_dir=.
11965 for ac_exec_ext in '' $ac_executable_extensions; do
11966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11967 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11969 break 2
11970 fi
11971done
11972 done
11973IFS=$as_save_IFS
11974
11975fi
11976fi
11977OTOOL64=$ac_cv_prog_OTOOL64
11978if test -n "$OTOOL64"; then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11980$as_echo "$OTOOL64" >&6; }
11981else
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983$as_echo "no" >&6; }
11984fi
11985
11986
11987fi
11988if test -z "$ac_cv_prog_OTOOL64"; then
11989 ac_ct_OTOOL64=$OTOOL64
11990 # Extract the first word of "otool64", so it can be a program name with args.
11991set dummy otool64; ac_word=$2
11992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11993$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011994if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011995 $as_echo_n "(cached) " >&6
11996else
11997 if test -n "$ac_ct_OTOOL64"; then
11998 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11999else
12000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12001for as_dir in $PATH
12002do
12003 IFS=$as_save_IFS
12004 test -z "$as_dir" && as_dir=.
12005 for ac_exec_ext in '' $ac_executable_extensions; do
12006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12007 ac_cv_prog_ac_ct_OTOOL64="otool64"
12008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12009 break 2
12010 fi
12011done
12012 done
12013IFS=$as_save_IFS
12014
12015fi
12016fi
12017ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12018if test -n "$ac_ct_OTOOL64"; then
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12020$as_echo "$ac_ct_OTOOL64" >&6; }
12021else
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12023$as_echo "no" >&6; }
12024fi
12025
12026 if test "x$ac_ct_OTOOL64" = x; then
12027 OTOOL64=":"
12028 else
12029 case $cross_compiling:$ac_tool_warned in
12030yes:)
12031{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12032$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12033ac_tool_warned=yes ;;
12034esac
12035 OTOOL64=$ac_ct_OTOOL64
12036 fi
12037else
12038 OTOOL64="$ac_cv_prog_OTOOL64"
12039fi
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12068$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012069if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012070 $as_echo_n "(cached) " >&6
12071else
12072 lt_cv_apple_cc_single_mod=no
12073 if test -z "${LT_MULTI_MODULE}"; then
12074 # By default we will add the -single_module flag. You can override
12075 # by either setting the environment variable LT_MULTI_MODULE
12076 # non-empty at configure time, or by adding -multi_module to the
12077 # link flags.
12078 rm -rf libconftest.dylib*
12079 echo "int foo(void){return 1;}" > conftest.c
12080 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12081-dynamiclib -Wl,-single_module conftest.c" >&5
12082 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12083 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12084 _lt_result=$?
12085 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12086 lt_cv_apple_cc_single_mod=yes
12087 else
12088 cat conftest.err >&5
12089 fi
12090 rm -rf libconftest.dylib*
12091 rm -f conftest.*
12092 fi
12093fi
12094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12095$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12097$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012098if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012099 $as_echo_n "(cached) " >&6
12100else
12101 lt_cv_ld_exported_symbols_list=no
12102 save_LDFLAGS=$LDFLAGS
12103 echo "_main" > conftest.sym
12104 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12106/* end confdefs.h. */
12107
12108int
12109main ()
12110{
12111
12112 ;
12113 return 0;
12114}
12115_ACEOF
12116if ac_fn_c_try_link "$LINENO"; then :
12117 lt_cv_ld_exported_symbols_list=yes
12118else
12119 lt_cv_ld_exported_symbols_list=no
12120fi
12121rm -f core conftest.err conftest.$ac_objext \
12122 conftest$ac_exeext conftest.$ac_ext
12123 LDFLAGS="$save_LDFLAGS"
12124
12125fi
12126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12127$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy0c60a692010-11-04 01:09:47 +000012128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12129$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012130if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012131 $as_echo_n "(cached) " >&6
12132else
12133 lt_cv_ld_force_load=no
12134 cat > conftest.c << _LT_EOF
12135int forced_loaded() { return 2;}
12136_LT_EOF
12137 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12138 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12139 echo "$AR cru libconftest.a conftest.o" >&5
12140 $AR cru libconftest.a conftest.o 2>&5
12141 echo "$RANLIB libconftest.a" >&5
12142 $RANLIB libconftest.a 2>&5
12143 cat > conftest.c << _LT_EOF
12144int main() { return 0;}
12145_LT_EOF
12146 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12147 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12148 _lt_result=$?
12149 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12150 lt_cv_ld_force_load=yes
12151 else
12152 cat conftest.err >&5
12153 fi
12154 rm -f conftest.err libconftest.a conftest conftest.c
12155 rm -rf conftest.dSYM
12156
12157fi
12158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12159$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012160 case $host_os in
12161 rhapsody* | darwin1.[012])
12162 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12163 darwin1.*)
12164 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12165 darwin*) # darwin 5.x on
12166 # if running on 10.5 or later, the deployment target defaults
12167 # to the OS version, if on x86, and 10.4, the deployment
12168 # target defaults to 10.4. Don't you love it?
12169 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12170 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12171 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12172 10.[012]*)
12173 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12174 10.*)
12175 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12176 esac
12177 ;;
12178 esac
12179 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12180 _lt_dar_single_mod='$single_module'
12181 fi
12182 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12183 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12184 else
12185 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12186 fi
cristy0c60a692010-11-04 01:09:47 +000012187 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012188 _lt_dsymutil='~$DSYMUTIL $lib || :'
12189 else
12190 _lt_dsymutil=
12191 fi
12192 ;;
12193 esac
12194
12195for ac_header in dlfcn.h
12196do :
12197 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12198"
cristyda16f162011-02-19 23:52:17 +000012199if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012200 cat >>confdefs.h <<_ACEOF
12201#define HAVE_DLFCN_H 1
12202_ACEOF
12203
12204fi
12205
12206done
12207
12208
12209
cristy73bd4a52010-10-05 11:24:23 +000012210
cristyda16f162011-02-19 23:52:17 +000012211func_stripname_cnf ()
12212{
12213 case ${2} in
12214 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12215 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12216 esac
12217} # func_stripname_cnf
12218
12219
12220
cristy73bd4a52010-10-05 11:24:23 +000012221
12222
12223# Set options
12224enable_win32_dll=yes
12225
12226case $host in
cristy0c60a692010-11-04 01:09:47 +000012227*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012228 if test -n "$ac_tool_prefix"; then
12229 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12230set dummy ${ac_tool_prefix}as; ac_word=$2
12231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12232$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012233if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012234 $as_echo_n "(cached) " >&6
12235else
12236 if test -n "$AS"; then
12237 ac_cv_prog_AS="$AS" # Let the user override the test.
12238else
12239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240for as_dir in $PATH
12241do
12242 IFS=$as_save_IFS
12243 test -z "$as_dir" && as_dir=.
12244 for ac_exec_ext in '' $ac_executable_extensions; do
12245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12246 ac_cv_prog_AS="${ac_tool_prefix}as"
12247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12248 break 2
12249 fi
12250done
12251 done
12252IFS=$as_save_IFS
12253
12254fi
12255fi
12256AS=$ac_cv_prog_AS
12257if test -n "$AS"; then
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12259$as_echo "$AS" >&6; }
12260else
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262$as_echo "no" >&6; }
12263fi
12264
12265
12266fi
12267if test -z "$ac_cv_prog_AS"; then
12268 ac_ct_AS=$AS
12269 # Extract the first word of "as", so it can be a program name with args.
12270set dummy as; ac_word=$2
12271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12272$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012273if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012274 $as_echo_n "(cached) " >&6
12275else
12276 if test -n "$ac_ct_AS"; then
12277 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12278else
12279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280for as_dir in $PATH
12281do
12282 IFS=$as_save_IFS
12283 test -z "$as_dir" && as_dir=.
12284 for ac_exec_ext in '' $ac_executable_extensions; do
12285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12286 ac_cv_prog_ac_ct_AS="as"
12287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12288 break 2
12289 fi
12290done
12291 done
12292IFS=$as_save_IFS
12293
12294fi
12295fi
12296ac_ct_AS=$ac_cv_prog_ac_ct_AS
12297if test -n "$ac_ct_AS"; then
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12299$as_echo "$ac_ct_AS" >&6; }
12300else
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12302$as_echo "no" >&6; }
12303fi
12304
12305 if test "x$ac_ct_AS" = x; then
12306 AS="false"
12307 else
12308 case $cross_compiling:$ac_tool_warned in
12309yes:)
12310{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12311$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12312ac_tool_warned=yes ;;
12313esac
12314 AS=$ac_ct_AS
12315 fi
12316else
12317 AS="$ac_cv_prog_AS"
12318fi
12319
12320 if test -n "$ac_tool_prefix"; then
12321 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12322set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12324$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012325if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012326 $as_echo_n "(cached) " >&6
12327else
12328 if test -n "$DLLTOOL"; then
12329 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12330else
12331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12332for as_dir in $PATH
12333do
12334 IFS=$as_save_IFS
12335 test -z "$as_dir" && as_dir=.
12336 for ac_exec_ext in '' $ac_executable_extensions; do
12337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12338 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12340 break 2
12341 fi
12342done
12343 done
12344IFS=$as_save_IFS
12345
12346fi
12347fi
12348DLLTOOL=$ac_cv_prog_DLLTOOL
12349if test -n "$DLLTOOL"; then
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12351$as_echo "$DLLTOOL" >&6; }
12352else
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12354$as_echo "no" >&6; }
12355fi
12356
12357
12358fi
12359if test -z "$ac_cv_prog_DLLTOOL"; then
12360 ac_ct_DLLTOOL=$DLLTOOL
12361 # Extract the first word of "dlltool", so it can be a program name with args.
12362set dummy dlltool; ac_word=$2
12363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12364$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012365if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012366 $as_echo_n "(cached) " >&6
12367else
12368 if test -n "$ac_ct_DLLTOOL"; then
12369 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12370else
12371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12372for as_dir in $PATH
12373do
12374 IFS=$as_save_IFS
12375 test -z "$as_dir" && as_dir=.
12376 for ac_exec_ext in '' $ac_executable_extensions; do
12377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12378 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12380 break 2
12381 fi
12382done
12383 done
12384IFS=$as_save_IFS
12385
12386fi
12387fi
12388ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12389if test -n "$ac_ct_DLLTOOL"; then
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12391$as_echo "$ac_ct_DLLTOOL" >&6; }
12392else
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394$as_echo "no" >&6; }
12395fi
12396
12397 if test "x$ac_ct_DLLTOOL" = x; then
12398 DLLTOOL="false"
12399 else
12400 case $cross_compiling:$ac_tool_warned in
12401yes:)
12402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12404ac_tool_warned=yes ;;
12405esac
12406 DLLTOOL=$ac_ct_DLLTOOL
12407 fi
12408else
12409 DLLTOOL="$ac_cv_prog_DLLTOOL"
12410fi
12411
12412 if test -n "$ac_tool_prefix"; then
12413 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12414set dummy ${ac_tool_prefix}objdump; ac_word=$2
12415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12416$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012417if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012418 $as_echo_n "(cached) " >&6
12419else
12420 if test -n "$OBJDUMP"; then
12421 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12422else
12423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12424for as_dir in $PATH
12425do
12426 IFS=$as_save_IFS
12427 test -z "$as_dir" && as_dir=.
12428 for ac_exec_ext in '' $ac_executable_extensions; do
12429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12430 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12432 break 2
12433 fi
12434done
12435 done
12436IFS=$as_save_IFS
12437
12438fi
12439fi
12440OBJDUMP=$ac_cv_prog_OBJDUMP
12441if test -n "$OBJDUMP"; then
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12443$as_echo "$OBJDUMP" >&6; }
12444else
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12446$as_echo "no" >&6; }
12447fi
12448
12449
12450fi
12451if test -z "$ac_cv_prog_OBJDUMP"; then
12452 ac_ct_OBJDUMP=$OBJDUMP
12453 # Extract the first word of "objdump", so it can be a program name with args.
12454set dummy objdump; ac_word=$2
12455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12456$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012457if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012458 $as_echo_n "(cached) " >&6
12459else
12460 if test -n "$ac_ct_OBJDUMP"; then
12461 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12462else
12463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12464for as_dir in $PATH
12465do
12466 IFS=$as_save_IFS
12467 test -z "$as_dir" && as_dir=.
12468 for ac_exec_ext in '' $ac_executable_extensions; do
12469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12470 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12472 break 2
12473 fi
12474done
12475 done
12476IFS=$as_save_IFS
12477
12478fi
12479fi
12480ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12481if test -n "$ac_ct_OBJDUMP"; then
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12483$as_echo "$ac_ct_OBJDUMP" >&6; }
12484else
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12486$as_echo "no" >&6; }
12487fi
12488
12489 if test "x$ac_ct_OBJDUMP" = x; then
12490 OBJDUMP="false"
12491 else
12492 case $cross_compiling:$ac_tool_warned in
12493yes:)
12494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12496ac_tool_warned=yes ;;
12497esac
12498 OBJDUMP=$ac_ct_OBJDUMP
12499 fi
12500else
12501 OBJDUMP="$ac_cv_prog_OBJDUMP"
12502fi
12503
12504 ;;
12505esac
12506
12507test -z "$AS" && AS=as
12508
12509
12510
12511
12512
12513test -z "$DLLTOOL" && DLLTOOL=dlltool
12514
12515
12516
12517
12518
12519test -z "$OBJDUMP" && OBJDUMP=objdump
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529 # Check whether --enable-shared was given.
12530if test "${enable_shared+set}" = set; then :
12531 enableval=$enable_shared; p=${PACKAGE-default}
12532 case $enableval in
12533 yes) enable_shared=yes ;;
12534 no) enable_shared=no ;;
12535 *)
12536 enable_shared=no
12537 # Look at the argument we got. We use all the common list separators.
12538 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12539 for pkg in $enableval; do
12540 IFS="$lt_save_ifs"
12541 if test "X$pkg" = "X$p"; then
12542 enable_shared=yes
12543 fi
12544 done
12545 IFS="$lt_save_ifs"
12546 ;;
12547 esac
12548else
12549 enable_shared=yes
12550fi
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560 # Check whether --enable-static was given.
12561if test "${enable_static+set}" = set; then :
12562 enableval=$enable_static; p=${PACKAGE-default}
12563 case $enableval in
12564 yes) enable_static=yes ;;
12565 no) enable_static=no ;;
12566 *)
12567 enable_static=no
12568 # Look at the argument we got. We use all the common list separators.
12569 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12570 for pkg in $enableval; do
12571 IFS="$lt_save_ifs"
12572 if test "X$pkg" = "X$p"; then
12573 enable_static=yes
12574 fi
12575 done
12576 IFS="$lt_save_ifs"
12577 ;;
12578 esac
12579else
12580 enable_static=yes
12581fi
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592# Check whether --with-pic was given.
12593if test "${with_pic+set}" = set; then :
12594 withval=$with_pic; pic_mode="$withval"
12595else
12596 pic_mode=default
12597fi
12598
12599
12600test -z "$pic_mode" && pic_mode=default
12601
12602
12603
12604
12605
12606
12607
12608 # Check whether --enable-fast-install was given.
12609if test "${enable_fast_install+set}" = set; then :
12610 enableval=$enable_fast_install; p=${PACKAGE-default}
12611 case $enableval in
12612 yes) enable_fast_install=yes ;;
12613 no) enable_fast_install=no ;;
12614 *)
12615 enable_fast_install=no
12616 # Look at the argument we got. We use all the common list separators.
12617 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12618 for pkg in $enableval; do
12619 IFS="$lt_save_ifs"
12620 if test "X$pkg" = "X$p"; then
12621 enable_fast_install=yes
12622 fi
12623 done
12624 IFS="$lt_save_ifs"
12625 ;;
12626 esac
12627else
12628 enable_fast_install=yes
12629fi
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641# This can be used to rebuild libtool when needed
12642LIBTOOL_DEPS="$ltmain"
12643
12644# Always use our own libtool.
12645LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
cristy0c60a692010-11-04 01:09:47 +000012671
cristy73bd4a52010-10-05 11:24:23 +000012672test -z "$LN_S" && LN_S="ln -s"
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687if test -n "${ZSH_VERSION+set}" ; then
12688 setopt NO_GLOB_SUBST
12689fi
12690
12691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12692$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012693if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012694 $as_echo_n "(cached) " >&6
12695else
12696 rm -f .libs 2>/dev/null
12697mkdir .libs 2>/dev/null
12698if test -d .libs; then
12699 lt_cv_objdir=.libs
12700else
12701 # MS-DOS does not allow filenames that begin with a dot.
12702 lt_cv_objdir=_libs
12703fi
12704rmdir .libs 2>/dev/null
12705fi
12706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12707$as_echo "$lt_cv_objdir" >&6; }
12708objdir=$lt_cv_objdir
12709
12710
12711
12712
12713
12714cat >>confdefs.h <<_ACEOF
12715#define LT_OBJDIR "$lt_cv_objdir/"
12716_ACEOF
12717
12718
12719
12720
cristy73bd4a52010-10-05 11:24:23 +000012721case $host_os in
12722aix3*)
12723 # AIX sometimes has problems with the GCC collect2 program. For some
12724 # reason, if we set the COLLECT_NAMES environment variable, the problems
12725 # vanish in a puff of smoke.
12726 if test "X${COLLECT_NAMES+set}" != Xset; then
12727 COLLECT_NAMES=
12728 export COLLECT_NAMES
12729 fi
12730 ;;
12731esac
12732
cristy73bd4a52010-10-05 11:24:23 +000012733# Global variables:
12734ofile=libtool
12735can_build_shared=yes
12736
12737# All known linkers require a `.a' archive for static linking (except MSVC,
12738# which needs '.lib').
12739libext=a
12740
12741with_gnu_ld="$lt_cv_prog_gnu_ld"
12742
12743old_CC="$CC"
12744old_CFLAGS="$CFLAGS"
12745
12746# Set sane defaults for various variables
12747test -z "$CC" && CC=cc
12748test -z "$LTCC" && LTCC=$CC
12749test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12750test -z "$LD" && LD=ld
12751test -z "$ac_objext" && ac_objext=o
12752
12753for cc_temp in $compiler""; do
12754 case $cc_temp in
12755 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12756 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12757 \-*) ;;
12758 *) break;;
12759 esac
12760done
cristy0c60a692010-11-04 01:09:47 +000012761cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000012762
12763
12764# Only perform the check for file, if the check method requires it
12765test -z "$MAGIC_CMD" && MAGIC_CMD=file
12766case $deplibs_check_method in
12767file_magic*)
12768 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12770$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012771if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012772 $as_echo_n "(cached) " >&6
12773else
12774 case $MAGIC_CMD in
12775[\\/*] | ?:[\\/]*)
12776 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12777 ;;
12778*)
12779 lt_save_MAGIC_CMD="$MAGIC_CMD"
12780 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12781 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12782 for ac_dir in $ac_dummy; do
12783 IFS="$lt_save_ifs"
12784 test -z "$ac_dir" && ac_dir=.
12785 if test -f $ac_dir/${ac_tool_prefix}file; then
12786 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12787 if test -n "$file_magic_test_file"; then
12788 case $deplibs_check_method in
12789 "file_magic "*)
12790 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12791 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12792 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12793 $EGREP "$file_magic_regex" > /dev/null; then
12794 :
12795 else
12796 cat <<_LT_EOF 1>&2
12797
12798*** Warning: the command libtool uses to detect shared libraries,
12799*** $file_magic_cmd, produces output that libtool cannot recognize.
12800*** The result is that libtool may fail to recognize shared libraries
12801*** as such. This will affect the creation of libtool libraries that
12802*** depend on shared libraries, but programs linked with such libtool
12803*** libraries will work regardless of this problem. Nevertheless, you
12804*** may want to report the problem to your system manager and/or to
12805*** bug-libtool@gnu.org
12806
12807_LT_EOF
12808 fi ;;
12809 esac
12810 fi
12811 break
12812 fi
12813 done
12814 IFS="$lt_save_ifs"
12815 MAGIC_CMD="$lt_save_MAGIC_CMD"
12816 ;;
12817esac
12818fi
12819
12820MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12821if test -n "$MAGIC_CMD"; then
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12823$as_echo "$MAGIC_CMD" >&6; }
12824else
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12826$as_echo "no" >&6; }
12827fi
12828
12829
12830
12831
12832
12833if test -z "$lt_cv_path_MAGIC_CMD"; then
12834 if test -n "$ac_tool_prefix"; then
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12836$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012837if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012838 $as_echo_n "(cached) " >&6
12839else
12840 case $MAGIC_CMD in
12841[\\/*] | ?:[\\/]*)
12842 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12843 ;;
12844*)
12845 lt_save_MAGIC_CMD="$MAGIC_CMD"
12846 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12847 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12848 for ac_dir in $ac_dummy; do
12849 IFS="$lt_save_ifs"
12850 test -z "$ac_dir" && ac_dir=.
12851 if test -f $ac_dir/file; then
12852 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12853 if test -n "$file_magic_test_file"; then
12854 case $deplibs_check_method in
12855 "file_magic "*)
12856 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12857 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12858 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12859 $EGREP "$file_magic_regex" > /dev/null; then
12860 :
12861 else
12862 cat <<_LT_EOF 1>&2
12863
12864*** Warning: the command libtool uses to detect shared libraries,
12865*** $file_magic_cmd, produces output that libtool cannot recognize.
12866*** The result is that libtool may fail to recognize shared libraries
12867*** as such. This will affect the creation of libtool libraries that
12868*** depend on shared libraries, but programs linked with such libtool
12869*** libraries will work regardless of this problem. Nevertheless, you
12870*** may want to report the problem to your system manager and/or to
12871*** bug-libtool@gnu.org
12872
12873_LT_EOF
12874 fi ;;
12875 esac
12876 fi
12877 break
12878 fi
12879 done
12880 IFS="$lt_save_ifs"
12881 MAGIC_CMD="$lt_save_MAGIC_CMD"
12882 ;;
12883esac
12884fi
12885
12886MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12887if test -n "$MAGIC_CMD"; then
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12889$as_echo "$MAGIC_CMD" >&6; }
12890else
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892$as_echo "no" >&6; }
12893fi
12894
12895
12896 else
12897 MAGIC_CMD=:
12898 fi
12899fi
12900
12901 fi
12902 ;;
12903esac
12904
12905# Use C for the default configuration in the libtool script
12906
12907lt_save_CC="$CC"
12908ac_ext=c
12909ac_cpp='$CPP $CPPFLAGS'
12910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12912ac_compiler_gnu=$ac_cv_c_compiler_gnu
12913
12914
12915# Source file extension for C test sources.
12916ac_ext=c
12917
12918# Object file extension for compiled C test sources.
12919objext=o
12920objext=$objext
12921
12922# Code to be used in simple compile tests
12923lt_simple_compile_test_code="int some_variable = 0;"
12924
12925# Code to be used in simple link tests
12926lt_simple_link_test_code='int main(){return(0);}'
12927
12928
12929
12930
12931
12932
12933
12934# If no C compiler was specified, use CC.
12935LTCC=${LTCC-"$CC"}
12936
12937# If no C compiler flags were specified, use CFLAGS.
12938LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12939
12940# Allow CC to be a program name with arguments.
12941compiler=$CC
12942
12943# Save the default compiler, since it gets overwritten when the other
12944# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12945compiler_DEFAULT=$CC
12946
12947# save warnings/boilerplate of simple test code
12948ac_outfile=conftest.$ac_objext
12949echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12950eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12951_lt_compiler_boilerplate=`cat conftest.err`
12952$RM conftest*
12953
12954ac_outfile=conftest.$ac_objext
12955echo "$lt_simple_link_test_code" >conftest.$ac_ext
12956eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12957_lt_linker_boilerplate=`cat conftest.err`
12958$RM -r conftest*
12959
12960
12961## CAVEAT EMPTOR:
12962## There is no encapsulation within the following macros, do not change
12963## the running order or otherwise move them around unless you know exactly
12964## what you are doing...
12965if test -n "$compiler"; then
12966
12967lt_prog_compiler_no_builtin_flag=
12968
12969if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000012970 case $cc_basename in
12971 nvcc*)
12972 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12973 *)
12974 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12975 esac
cristy73bd4a52010-10-05 11:24:23 +000012976
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12978$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012979if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012980 $as_echo_n "(cached) " >&6
12981else
12982 lt_cv_prog_compiler_rtti_exceptions=no
12983 ac_outfile=conftest.$ac_objext
12984 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12985 lt_compiler_flag="-fno-rtti -fno-exceptions"
12986 # Insert the option either (1) after the last *FLAGS variable, or
12987 # (2) before a word containing "conftest.", or (3) at the end.
12988 # Note that $ac_compile itself does not contain backslashes and begins
12989 # with a dollar sign (not a hyphen), so the echo should work correctly.
12990 # The option is referenced via a variable to avoid confusing sed.
12991 lt_compile=`echo "$ac_compile" | $SED \
12992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12994 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000012995 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000012996 (eval "$lt_compile" 2>conftest.err)
12997 ac_status=$?
12998 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000012999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013000 if (exit $ac_status) && test -s "$ac_outfile"; then
13001 # The compiler can only warn and ignore the option if not recognized
13002 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013003 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013004 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13005 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13006 lt_cv_prog_compiler_rtti_exceptions=yes
13007 fi
13008 fi
13009 $RM conftest*
13010
13011fi
13012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13013$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13014
13015if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13016 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13017else
13018 :
13019fi
13020
13021fi
13022
13023
13024
13025
13026
13027
13028 lt_prog_compiler_wl=
13029lt_prog_compiler_pic=
13030lt_prog_compiler_static=
13031
cristy73bd4a52010-10-05 11:24:23 +000013032
13033 if test "$GCC" = yes; then
13034 lt_prog_compiler_wl='-Wl,'
13035 lt_prog_compiler_static='-static'
13036
13037 case $host_os in
13038 aix*)
13039 # All AIX code is PIC.
13040 if test "$host_cpu" = ia64; then
13041 # AIX 5 now supports IA64 processor
13042 lt_prog_compiler_static='-Bstatic'
13043 fi
13044 ;;
13045
13046 amigaos*)
13047 case $host_cpu in
13048 powerpc)
13049 # see comment about AmigaOS4 .so support
13050 lt_prog_compiler_pic='-fPIC'
13051 ;;
13052 m68k)
13053 # FIXME: we need at least 68020 code to build shared libraries, but
13054 # adding the `-m68020' flag to GCC prevents building anything better,
13055 # like `-m68040'.
13056 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13057 ;;
13058 esac
13059 ;;
13060
13061 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13062 # PIC is the default for these OSes.
13063 ;;
13064
13065 mingw* | cygwin* | pw32* | os2* | cegcc*)
13066 # This hack is so that the source file can tell whether it is being
13067 # built for inclusion in a dll (and should export symbols for example).
13068 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13069 # (--disable-auto-import) libraries
13070 lt_prog_compiler_pic='-DDLL_EXPORT'
13071 ;;
13072
13073 darwin* | rhapsody*)
13074 # PIC is the default on this platform
13075 # Common symbols not allowed in MH_DYLIB files
13076 lt_prog_compiler_pic='-fno-common'
13077 ;;
13078
cristy0c60a692010-11-04 01:09:47 +000013079 haiku*)
13080 # PIC is the default for Haiku.
13081 # The "-static" flag exists, but is broken.
13082 lt_prog_compiler_static=
13083 ;;
13084
cristy73bd4a52010-10-05 11:24:23 +000013085 hpux*)
13086 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13087 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13088 # sets the default TLS model and affects inlining.
13089 case $host_cpu in
13090 hppa*64*)
13091 # +Z the default
13092 ;;
13093 *)
13094 lt_prog_compiler_pic='-fPIC'
13095 ;;
13096 esac
13097 ;;
13098
13099 interix[3-9]*)
13100 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13101 # Instead, we relocate shared libraries at runtime.
13102 ;;
13103
13104 msdosdjgpp*)
13105 # Just because we use GCC doesn't mean we suddenly get shared libraries
13106 # on systems that don't support them.
13107 lt_prog_compiler_can_build_shared=no
13108 enable_shared=no
13109 ;;
13110
13111 *nto* | *qnx*)
13112 # QNX uses GNU C++, but need to define -shared option too, otherwise
13113 # it will coredump.
13114 lt_prog_compiler_pic='-fPIC -shared'
13115 ;;
13116
13117 sysv4*MP*)
13118 if test -d /usr/nec; then
13119 lt_prog_compiler_pic=-Kconform_pic
13120 fi
13121 ;;
13122
13123 *)
13124 lt_prog_compiler_pic='-fPIC'
13125 ;;
13126 esac
cristy0c60a692010-11-04 01:09:47 +000013127
13128 case $cc_basename in
13129 nvcc*) # Cuda Compiler Driver 2.2
13130 lt_prog_compiler_wl='-Xlinker '
13131 lt_prog_compiler_pic='-Xcompiler -fPIC'
13132 ;;
13133 esac
cristy73bd4a52010-10-05 11:24:23 +000013134 else
13135 # PORTME Check for flag to pass linker flags through the system compiler.
13136 case $host_os in
13137 aix*)
13138 lt_prog_compiler_wl='-Wl,'
13139 if test "$host_cpu" = ia64; then
13140 # AIX 5 now supports IA64 processor
13141 lt_prog_compiler_static='-Bstatic'
13142 else
13143 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13144 fi
13145 ;;
13146
13147 mingw* | cygwin* | pw32* | os2* | cegcc*)
13148 # This hack is so that the source file can tell whether it is being
13149 # built for inclusion in a dll (and should export symbols for example).
13150 lt_prog_compiler_pic='-DDLL_EXPORT'
13151 ;;
13152
13153 hpux9* | hpux10* | hpux11*)
13154 lt_prog_compiler_wl='-Wl,'
13155 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13156 # not for PA HP-UX.
13157 case $host_cpu in
13158 hppa*64*|ia64*)
13159 # +Z the default
13160 ;;
13161 *)
13162 lt_prog_compiler_pic='+Z'
13163 ;;
13164 esac
13165 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13166 lt_prog_compiler_static='${wl}-a ${wl}archive'
13167 ;;
13168
13169 irix5* | irix6* | nonstopux*)
13170 lt_prog_compiler_wl='-Wl,'
13171 # PIC (with -KPIC) is the default.
13172 lt_prog_compiler_static='-non_shared'
13173 ;;
13174
cristy0c60a692010-11-04 01:09:47 +000013175 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013176 case $cc_basename in
13177 # old Intel for x86_64 which still supported -KPIC.
13178 ecc*)
13179 lt_prog_compiler_wl='-Wl,'
13180 lt_prog_compiler_pic='-KPIC'
13181 lt_prog_compiler_static='-static'
13182 ;;
13183 # icc used to be incompatible with GCC.
13184 # ICC 10 doesn't accept -KPIC any more.
13185 icc* | ifort*)
13186 lt_prog_compiler_wl='-Wl,'
13187 lt_prog_compiler_pic='-fPIC'
13188 lt_prog_compiler_static='-static'
13189 ;;
13190 # Lahey Fortran 8.1.
13191 lf95*)
13192 lt_prog_compiler_wl='-Wl,'
13193 lt_prog_compiler_pic='--shared'
13194 lt_prog_compiler_static='--static'
13195 ;;
cristyda16f162011-02-19 23:52:17 +000013196 nagfor*)
13197 # NAG Fortran compiler
13198 lt_prog_compiler_wl='-Wl,-Wl,,'
13199 lt_prog_compiler_pic='-PIC'
13200 lt_prog_compiler_static='-Bstatic'
13201 ;;
cristy0c60a692010-11-04 01:09:47 +000013202 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013203 # Portland Group compilers (*not* the Pentium gcc compiler,
13204 # which looks to be a dead project)
13205 lt_prog_compiler_wl='-Wl,'
13206 lt_prog_compiler_pic='-fpic'
13207 lt_prog_compiler_static='-Bstatic'
13208 ;;
13209 ccc*)
13210 lt_prog_compiler_wl='-Wl,'
13211 # All Alpha code is PIC.
13212 lt_prog_compiler_static='-non_shared'
13213 ;;
cristy0c60a692010-11-04 01:09:47 +000013214 xl* | bgxl* | bgf* | mpixl*)
13215 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013216 lt_prog_compiler_wl='-Wl,'
13217 lt_prog_compiler_pic='-qpic'
13218 lt_prog_compiler_static='-qstaticlink'
13219 ;;
13220 *)
13221 case `$CC -V 2>&1 | sed 5q` in
cristy0c60a692010-11-04 01:09:47 +000013222 *Sun\ F* | *Sun*Fortran*)
13223 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13224 lt_prog_compiler_pic='-KPIC'
13225 lt_prog_compiler_static='-Bstatic'
13226 lt_prog_compiler_wl=''
13227 ;;
cristy73bd4a52010-10-05 11:24:23 +000013228 *Sun\ C*)
13229 # Sun C 5.9
13230 lt_prog_compiler_pic='-KPIC'
13231 lt_prog_compiler_static='-Bstatic'
13232 lt_prog_compiler_wl='-Wl,'
13233 ;;
cristy73bd4a52010-10-05 11:24:23 +000013234 esac
13235 ;;
13236 esac
13237 ;;
13238
13239 newsos6)
13240 lt_prog_compiler_pic='-KPIC'
13241 lt_prog_compiler_static='-Bstatic'
13242 ;;
13243
13244 *nto* | *qnx*)
13245 # QNX uses GNU C++, but need to define -shared option too, otherwise
13246 # it will coredump.
13247 lt_prog_compiler_pic='-fPIC -shared'
13248 ;;
13249
13250 osf3* | osf4* | osf5*)
13251 lt_prog_compiler_wl='-Wl,'
13252 # All OSF/1 code is PIC.
13253 lt_prog_compiler_static='-non_shared'
13254 ;;
13255
13256 rdos*)
13257 lt_prog_compiler_static='-non_shared'
13258 ;;
13259
13260 solaris*)
13261 lt_prog_compiler_pic='-KPIC'
13262 lt_prog_compiler_static='-Bstatic'
13263 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013264 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013265 lt_prog_compiler_wl='-Qoption ld ';;
13266 *)
13267 lt_prog_compiler_wl='-Wl,';;
13268 esac
13269 ;;
13270
13271 sunos4*)
13272 lt_prog_compiler_wl='-Qoption ld '
13273 lt_prog_compiler_pic='-PIC'
13274 lt_prog_compiler_static='-Bstatic'
13275 ;;
13276
13277 sysv4 | sysv4.2uw2* | sysv4.3*)
13278 lt_prog_compiler_wl='-Wl,'
13279 lt_prog_compiler_pic='-KPIC'
13280 lt_prog_compiler_static='-Bstatic'
13281 ;;
13282
13283 sysv4*MP*)
13284 if test -d /usr/nec ;then
13285 lt_prog_compiler_pic='-Kconform_pic'
13286 lt_prog_compiler_static='-Bstatic'
13287 fi
13288 ;;
13289
13290 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13291 lt_prog_compiler_wl='-Wl,'
13292 lt_prog_compiler_pic='-KPIC'
13293 lt_prog_compiler_static='-Bstatic'
13294 ;;
13295
13296 unicos*)
13297 lt_prog_compiler_wl='-Wl,'
13298 lt_prog_compiler_can_build_shared=no
13299 ;;
13300
13301 uts4*)
13302 lt_prog_compiler_pic='-pic'
13303 lt_prog_compiler_static='-Bstatic'
13304 ;;
13305
13306 *)
13307 lt_prog_compiler_can_build_shared=no
13308 ;;
13309 esac
13310 fi
13311
13312case $host_os in
13313 # For platforms which do not support PIC, -DPIC is meaningless:
13314 *djgpp*)
13315 lt_prog_compiler_pic=
13316 ;;
13317 *)
13318 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13319 ;;
13320esac
cristy73bd4a52010-10-05 11:24:23 +000013321
cristyda16f162011-02-19 23:52:17 +000013322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13323$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13324if ${lt_cv_prog_compiler_pic+:} false; then :
13325 $as_echo_n "(cached) " >&6
13326else
13327 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13328fi
13329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13330$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13331lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013332
13333#
13334# Check to make sure the PIC flag actually works.
13335#
13336if test -n "$lt_prog_compiler_pic"; then
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13338$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013339if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013340 $as_echo_n "(cached) " >&6
13341else
13342 lt_cv_prog_compiler_pic_works=no
13343 ac_outfile=conftest.$ac_objext
13344 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13345 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13346 # Insert the option either (1) after the last *FLAGS variable, or
13347 # (2) before a word containing "conftest.", or (3) at the end.
13348 # Note that $ac_compile itself does not contain backslashes and begins
13349 # with a dollar sign (not a hyphen), so the echo should work correctly.
13350 # The option is referenced via a variable to avoid confusing sed.
13351 lt_compile=`echo "$ac_compile" | $SED \
13352 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13353 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13354 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013355 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013356 (eval "$lt_compile" 2>conftest.err)
13357 ac_status=$?
13358 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013360 if (exit $ac_status) && test -s "$ac_outfile"; then
13361 # The compiler can only warn and ignore the option if not recognized
13362 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013363 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013364 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13365 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13366 lt_cv_prog_compiler_pic_works=yes
13367 fi
13368 fi
13369 $RM conftest*
13370
13371fi
13372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13373$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13374
13375if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13376 case $lt_prog_compiler_pic in
13377 "" | " "*) ;;
13378 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13379 esac
13380else
13381 lt_prog_compiler_pic=
13382 lt_prog_compiler_can_build_shared=no
13383fi
13384
13385fi
13386
13387
13388
13389
13390
13391
cristyda16f162011-02-19 23:52:17 +000013392
13393
13394
13395
13396
cristy73bd4a52010-10-05 11:24:23 +000013397#
13398# Check to make sure the static flag actually works.
13399#
13400wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13402$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013403if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013404 $as_echo_n "(cached) " >&6
13405else
13406 lt_cv_prog_compiler_static_works=no
13407 save_LDFLAGS="$LDFLAGS"
13408 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13409 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13410 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13411 # The linker can only warn and ignore the option if not recognized
13412 # So say no if there are warnings
13413 if test -s conftest.err; then
13414 # Append any errors to the config.log.
13415 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013416 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013417 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13418 if diff conftest.exp conftest.er2 >/dev/null; then
13419 lt_cv_prog_compiler_static_works=yes
13420 fi
13421 else
13422 lt_cv_prog_compiler_static_works=yes
13423 fi
13424 fi
13425 $RM -r conftest*
13426 LDFLAGS="$save_LDFLAGS"
13427
13428fi
13429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13430$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13431
13432if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13433 :
13434else
13435 lt_prog_compiler_static=
13436fi
13437
13438
13439
13440
13441
13442
13443
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13445$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013446if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013447 $as_echo_n "(cached) " >&6
13448else
13449 lt_cv_prog_compiler_c_o=no
13450 $RM -r conftest 2>/dev/null
13451 mkdir conftest
13452 cd conftest
13453 mkdir out
13454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13455
13456 lt_compiler_flag="-o out/conftest2.$ac_objext"
13457 # Insert the option either (1) after the last *FLAGS variable, or
13458 # (2) before a word containing "conftest.", or (3) at the end.
13459 # Note that $ac_compile itself does not contain backslashes and begins
13460 # with a dollar sign (not a hyphen), so the echo should work correctly.
13461 lt_compile=`echo "$ac_compile" | $SED \
13462 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13464 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013465 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013466 (eval "$lt_compile" 2>out/conftest.err)
13467 ac_status=$?
13468 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013470 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13471 then
13472 # The compiler can only warn and ignore the option if not recognized
13473 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013474 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013475 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13476 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13477 lt_cv_prog_compiler_c_o=yes
13478 fi
13479 fi
13480 chmod u+w . 2>&5
13481 $RM conftest*
13482 # SGI C++ compiler will create directory out/ii_files/ for
13483 # template instantiation
13484 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13485 $RM out/* && rmdir out
13486 cd ..
13487 $RM -r conftest
13488 $RM conftest*
13489
13490fi
13491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13492$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13493
13494
13495
13496
13497
13498
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13500$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013501if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013502 $as_echo_n "(cached) " >&6
13503else
13504 lt_cv_prog_compiler_c_o=no
13505 $RM -r conftest 2>/dev/null
13506 mkdir conftest
13507 cd conftest
13508 mkdir out
13509 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13510
13511 lt_compiler_flag="-o out/conftest2.$ac_objext"
13512 # Insert the option either (1) after the last *FLAGS variable, or
13513 # (2) before a word containing "conftest.", or (3) at the end.
13514 # Note that $ac_compile itself does not contain backslashes and begins
13515 # with a dollar sign (not a hyphen), so the echo should work correctly.
13516 lt_compile=`echo "$ac_compile" | $SED \
13517 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13519 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013520 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013521 (eval "$lt_compile" 2>out/conftest.err)
13522 ac_status=$?
13523 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013525 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13526 then
13527 # The compiler can only warn and ignore the option if not recognized
13528 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013529 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013530 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13531 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13532 lt_cv_prog_compiler_c_o=yes
13533 fi
13534 fi
13535 chmod u+w . 2>&5
13536 $RM conftest*
13537 # SGI C++ compiler will create directory out/ii_files/ for
13538 # template instantiation
13539 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13540 $RM out/* && rmdir out
13541 cd ..
13542 $RM -r conftest
13543 $RM conftest*
13544
13545fi
13546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13547$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13548
13549
13550
13551
13552hard_links="nottested"
13553if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13554 # do not overwrite the value of need_locks provided by the user
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13556$as_echo_n "checking if we can lock with hard links... " >&6; }
13557 hard_links=yes
13558 $RM conftest*
13559 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13560 touch conftest.a
13561 ln conftest.a conftest.b 2>&5 || hard_links=no
13562 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13564$as_echo "$hard_links" >&6; }
13565 if test "$hard_links" = no; then
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13567$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13568 need_locks=warn
13569 fi
13570else
13571 need_locks=no
13572fi
13573
13574
13575
13576
13577
13578
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13580$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13581
13582 runpath_var=
13583 allow_undefined_flag=
13584 always_export_symbols=no
13585 archive_cmds=
13586 archive_expsym_cmds=
13587 compiler_needs_object=no
13588 enable_shared_with_static_runtimes=no
13589 export_dynamic_flag_spec=
13590 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13591 hardcode_automatic=no
13592 hardcode_direct=no
13593 hardcode_direct_absolute=no
13594 hardcode_libdir_flag_spec=
13595 hardcode_libdir_flag_spec_ld=
13596 hardcode_libdir_separator=
13597 hardcode_minus_L=no
13598 hardcode_shlibpath_var=unsupported
13599 inherit_rpath=no
13600 link_all_deplibs=unknown
13601 module_cmds=
13602 module_expsym_cmds=
13603 old_archive_from_new_cmds=
13604 old_archive_from_expsyms_cmds=
13605 thread_safe_flag_spec=
13606 whole_archive_flag_spec=
13607 # include_expsyms should be a list of space-separated symbols to be *always*
13608 # included in the symbol list
13609 include_expsyms=
13610 # exclude_expsyms can be an extended regexp of symbols to exclude
13611 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13612 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13613 # as well as any symbol that contains `d'.
13614 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13615 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13616 # platforms (ab)use it in PIC code, but their linkers get confused if
13617 # the symbol is explicitly referenced. Since portable code cannot
13618 # rely on this symbol name, it's probably fine to never include it in
13619 # preloaded symbol tables.
13620 # Exclude shared library initialization/finalization symbols.
13621 extract_expsyms_cmds=
13622
13623 case $host_os in
13624 cygwin* | mingw* | pw32* | cegcc*)
13625 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13626 # When not using gcc, we currently assume that we are using
13627 # Microsoft Visual C++.
13628 if test "$GCC" != yes; then
13629 with_gnu_ld=no
13630 fi
13631 ;;
13632 interix*)
13633 # we just hope/assume this is gcc and not c89 (= MSVC++)
13634 with_gnu_ld=yes
13635 ;;
13636 openbsd*)
13637 with_gnu_ld=no
13638 ;;
13639 esac
13640
13641 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013642
13643 # On some targets, GNU ld is compatible enough with the native linker
13644 # that we're better off using the native interface for both.
13645 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013646 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013647 case $host_os in
13648 aix*)
13649 # The AIX port of GNU ld has always aspired to compatibility
13650 # with the native linker. However, as the warning in the GNU ld
13651 # block says, versions before 2.19.5* couldn't really create working
13652 # shared libraries, regardless of the interface used.
13653 case `$LD -v 2>&1` in
13654 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13655 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13656 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13657 *)
13658 lt_use_gnu_ld_interface=yes
13659 ;;
13660 esac
13661 ;;
13662 *)
13663 lt_use_gnu_ld_interface=yes
13664 ;;
13665 esac
13666 fi
13667
13668 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000013669 # If archive_cmds runs LD, not CC, wlarc should be empty
13670 wlarc='${wl}'
13671
13672 # Set some defaults for GNU ld with shared library support. These
13673 # are reset later if shared libraries are not supported. Putting them
13674 # here allows them to be overridden if necessary.
13675 runpath_var=LD_RUN_PATH
13676 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13677 export_dynamic_flag_spec='${wl}--export-dynamic'
13678 # ancient GNU ld didn't support --whole-archive et. al.
13679 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13680 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13681 else
13682 whole_archive_flag_spec=
13683 fi
13684 supports_anon_versioning=no
13685 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000013686 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000013687 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13688 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13689 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13690 *\ 2.11.*) ;; # other 2.11 versions
13691 *) supports_anon_versioning=yes ;;
13692 esac
13693
13694 # See if GNU ld supports shared libraries.
13695 case $host_os in
13696 aix[3-9]*)
13697 # On AIX/PPC, the GNU linker is very broken
13698 if test "$host_cpu" != ia64; then
13699 ld_shlibs=no
13700 cat <<_LT_EOF 1>&2
13701
cristy0c60a692010-11-04 01:09:47 +000013702*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000013703*** to be unable to reliably create shared libraries on AIX.
13704*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000013705*** really care for shared libraries, you may want to install binutils
13706*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13707*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000013708
13709_LT_EOF
13710 fi
13711 ;;
13712
13713 amigaos*)
13714 case $host_cpu in
13715 powerpc)
13716 # see comment about AmigaOS4 .so support
13717 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13718 archive_expsym_cmds=''
13719 ;;
13720 m68k)
13721 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)'
13722 hardcode_libdir_flag_spec='-L$libdir'
13723 hardcode_minus_L=yes
13724 ;;
13725 esac
13726 ;;
13727
13728 beos*)
13729 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13730 allow_undefined_flag=unsupported
13731 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13732 # support --undefined. This deserves some investigation. FIXME
13733 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13734 else
13735 ld_shlibs=no
13736 fi
13737 ;;
13738
13739 cygwin* | mingw* | pw32* | cegcc*)
13740 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13741 # as there is no search path for DLLs.
13742 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000013743 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000013744 allow_undefined_flag=unsupported
13745 always_export_symbols=no
13746 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000013747 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13748 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
cristy73bd4a52010-10-05 11:24:23 +000013749
13750 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13751 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13752 # If the export-symbols file already is a .def file (1st line
13753 # is EXPORTS), use it as is; otherwise, prepend...
13754 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13755 cp $export_symbols $output_objdir/$soname.def;
13756 else
13757 echo EXPORTS > $output_objdir/$soname.def;
13758 cat $export_symbols >> $output_objdir/$soname.def;
13759 fi~
13760 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13761 else
13762 ld_shlibs=no
13763 fi
13764 ;;
13765
cristy0c60a692010-11-04 01:09:47 +000013766 haiku*)
13767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13768 link_all_deplibs=yes
13769 ;;
13770
cristy73bd4a52010-10-05 11:24:23 +000013771 interix[3-9]*)
13772 hardcode_direct=no
13773 hardcode_shlibpath_var=no
13774 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13775 export_dynamic_flag_spec='${wl}-E'
13776 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13777 # Instead, shared libraries are loaded at an image base (0x10000000 by
13778 # default) and relocated if they conflict, which is a slow very memory
13779 # consuming and fragmenting process. To avoid this, we pick a random,
13780 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13781 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13782 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13783 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'
13784 ;;
13785
cristy0c60a692010-11-04 01:09:47 +000013786 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013787 tmp_diet=no
13788 if test "$host_os" = linux-dietlibc; then
13789 case $cc_basename in
13790 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13791 esac
13792 fi
13793 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13794 && test "$tmp_diet" = no
13795 then
cristyda16f162011-02-19 23:52:17 +000013796 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000013797 tmp_sharedflag='-shared'
13798 case $cc_basename,$host_cpu in
13799 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000013800 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000013801 tmp_addflag=' $pic_flag'
13802 ;;
cristy0c60a692010-11-04 01:09:47 +000013803 pgf77* | pgf90* | pgf95* | pgfortran*)
13804 # Portland Group f77 and f90 compilers
13805 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000013806 tmp_addflag=' $pic_flag -Mnomain' ;;
13807 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13808 tmp_addflag=' -i_dynamic' ;;
13809 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13810 tmp_addflag=' -i_dynamic -nofor_main' ;;
13811 ifc* | ifort*) # Intel Fortran compiler
13812 tmp_addflag=' -nofor_main' ;;
13813 lf95*) # Lahey Fortran 8.1
13814 whole_archive_flag_spec=
13815 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000013816 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000013817 tmp_sharedflag='-qmkshrobj'
13818 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000013819 nvcc*) # Cuda Compiler Driver 2.2
13820 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'
13821 compiler_needs_object=yes
13822 ;;
cristy73bd4a52010-10-05 11:24:23 +000013823 esac
13824 case `$CC -V 2>&1 | sed 5q` in
13825 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000013826 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000013827 compiler_needs_object=yes
13828 tmp_sharedflag='-G' ;;
13829 *Sun\ F*) # Sun Fortran 8.3
13830 tmp_sharedflag='-G' ;;
13831 esac
13832 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13833
13834 if test "x$supports_anon_versioning" = xyes; then
13835 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13836 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13837 echo "local: *; };" >> $output_objdir/$libname.ver~
13838 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13839 fi
13840
13841 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013842 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000013843 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13844 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13845 hardcode_libdir_flag_spec=
13846 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy0c60a692010-11-04 01:09:47 +000013847 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013848 if test "x$supports_anon_versioning" = xyes; then
13849 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13850 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13851 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000013852 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013853 fi
13854 ;;
13855 esac
13856 else
13857 ld_shlibs=no
13858 fi
13859 ;;
13860
13861 netbsd*)
13862 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13863 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13864 wlarc=
13865 else
cristyda16f162011-02-19 23:52:17 +000013866 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13867 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013868 fi
13869 ;;
13870
13871 solaris*)
13872 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13873 ld_shlibs=no
13874 cat <<_LT_EOF 1>&2
13875
13876*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13877*** create shared libraries on Solaris systems. Therefore, libtool
13878*** is disabling shared libraries support. We urge you to upgrade GNU
13879*** binutils to release 2.9.1 or newer. Another option is to modify
13880*** your PATH or compiler configuration so that the native linker is
13881*** used, and then restart.
13882
13883_LT_EOF
13884 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000013885 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13886 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013887 else
13888 ld_shlibs=no
13889 fi
13890 ;;
13891
13892 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13893 case `$LD -v 2>&1` in
13894 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13895 ld_shlibs=no
13896 cat <<_LT_EOF 1>&2
13897
13898*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13899*** reliably create shared libraries on SCO systems. Therefore, libtool
13900*** is disabling shared libraries support. We urge you to upgrade GNU
13901*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13902*** your PATH or compiler configuration so that the native linker is
13903*** used, and then restart.
13904
13905_LT_EOF
13906 ;;
13907 *)
13908 # For security reasons, it is highly recommended that you always
13909 # use absolute paths for naming shared libraries, and exclude the
13910 # DT_RUNPATH tag from executables and libraries. But doing so
13911 # requires that you compile everything twice, which is a pain.
13912 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13913 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13915 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13916 else
13917 ld_shlibs=no
13918 fi
13919 ;;
13920 esac
13921 ;;
13922
13923 sunos4*)
13924 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13925 wlarc=
13926 hardcode_direct=yes
13927 hardcode_shlibpath_var=no
13928 ;;
13929
13930 *)
13931 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000013932 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13933 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013934 else
13935 ld_shlibs=no
13936 fi
13937 ;;
13938 esac
13939
13940 if test "$ld_shlibs" = no; then
13941 runpath_var=
13942 hardcode_libdir_flag_spec=
13943 export_dynamic_flag_spec=
13944 whole_archive_flag_spec=
13945 fi
13946 else
13947 # PORTME fill in a description of your system's linker (not GNU ld)
13948 case $host_os in
13949 aix3*)
13950 allow_undefined_flag=unsupported
13951 always_export_symbols=yes
13952 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'
13953 # Note: this linker hardcodes the directories in LIBPATH if there
13954 # are no directories specified by -L.
13955 hardcode_minus_L=yes
13956 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13957 # Neither direct hardcoding nor static linking is supported with a
13958 # broken collect2.
13959 hardcode_direct=unsupported
13960 fi
13961 ;;
13962
13963 aix[4-9]*)
13964 if test "$host_cpu" = ia64; then
13965 # On IA64, the linker does run time linking by default, so we don't
13966 # have to do anything special.
13967 aix_use_runtimelinking=no
13968 exp_sym_flag='-Bexport'
13969 no_entry_flag=""
13970 else
13971 # If we're using GNU nm, then we don't want the "-C" option.
13972 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000013973 # Also, AIX nm treats weak defined symbols like other global
13974 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000013975 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000013976 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cristy73bd4a52010-10-05 11:24:23 +000013977 else
13978 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'
13979 fi
13980 aix_use_runtimelinking=no
13981
13982 # Test if we are trying to use run time linking or normal
13983 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13984 # need to do runtime linking.
13985 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13986 for ld_flag in $LDFLAGS; do
13987 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13988 aix_use_runtimelinking=yes
13989 break
13990 fi
13991 done
13992 ;;
13993 esac
13994
13995 exp_sym_flag='-bexport'
13996 no_entry_flag='-bnoentry'
13997 fi
13998
13999 # When large executables or shared objects are built, AIX ld can
14000 # have problems creating the table of contents. If linking a library
14001 # or program results in "error TOC overflow" add -mminimal-toc to
14002 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14003 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14004
14005 archive_cmds=''
14006 hardcode_direct=yes
14007 hardcode_direct_absolute=yes
14008 hardcode_libdir_separator=':'
14009 link_all_deplibs=yes
14010 file_list_spec='${wl}-f,'
14011
14012 if test "$GCC" = yes; then
14013 case $host_os in aix4.[012]|aix4.[012].*)
14014 # We only want to do this on AIX 4.2 and lower, the check
14015 # below for broken collect2 doesn't work under 4.3+
14016 collect2name=`${CC} -print-prog-name=collect2`
14017 if test -f "$collect2name" &&
14018 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14019 then
14020 # We have reworked collect2
14021 :
14022 else
14023 # We have old collect2
14024 hardcode_direct=unsupported
14025 # It fails to find uninstalled libraries when the uninstalled
14026 # path is not listed in the libpath. Setting hardcode_minus_L
14027 # to unsupported forces relinking
14028 hardcode_minus_L=yes
14029 hardcode_libdir_flag_spec='-L$libdir'
14030 hardcode_libdir_separator=
14031 fi
14032 ;;
14033 esac
14034 shared_flag='-shared'
14035 if test "$aix_use_runtimelinking" = yes; then
14036 shared_flag="$shared_flag "'${wl}-G'
14037 fi
14038 else
14039 # not using gcc
14040 if test "$host_cpu" = ia64; then
14041 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14042 # chokes on -Wl,-G. The following line is correct:
14043 shared_flag='-G'
14044 else
14045 if test "$aix_use_runtimelinking" = yes; then
14046 shared_flag='${wl}-G'
14047 else
14048 shared_flag='${wl}-bM:SRE'
14049 fi
14050 fi
14051 fi
14052
14053 export_dynamic_flag_spec='${wl}-bexpall'
14054 # It seems that -bexpall does not export symbols beginning with
14055 # underscore (_), so it is better to generate a list of symbols to export.
14056 always_export_symbols=yes
14057 if test "$aix_use_runtimelinking" = yes; then
14058 # Warning - without using the other runtime loading flags (-brtl),
14059 # -berok will link without error, but may produce a broken library.
14060 allow_undefined_flag='-berok'
14061 # Determine the default libpath from the value encoded in an
14062 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014063 if test "${lt_cv_aix_libpath+set}" = set; then
14064 aix_libpath=$lt_cv_aix_libpath
14065else
14066 if ${lt_cv_aix_libpath_+:} false; then :
14067 $as_echo_n "(cached) " >&6
14068else
14069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014070/* end confdefs.h. */
14071
14072int
14073main ()
14074{
14075
14076 ;
14077 return 0;
14078}
14079_ACEOF
14080if ac_fn_c_try_link "$LINENO"; then :
14081
cristyda16f162011-02-19 23:52:17 +000014082 lt_aix_libpath_sed='
14083 /Import File Strings/,/^$/ {
14084 /^0/ {
14085 s/^0 *\([^ ]*\) *$/\1/
14086 p
14087 }
14088 }'
14089 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14090 # Check for a 64-bit object if we didn't find anything.
14091 if test -z "$lt_cv_aix_libpath_"; then
14092 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14093 fi
cristy73bd4a52010-10-05 11:24:23 +000014094fi
14095rm -f core conftest.err conftest.$ac_objext \
14096 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014097 if test -z "$lt_cv_aix_libpath_"; then
14098 lt_cv_aix_libpath_="/usr/lib:/lib"
14099 fi
14100
14101fi
14102
14103 aix_libpath=$lt_cv_aix_libpath_
14104fi
cristy73bd4a52010-10-05 11:24:23 +000014105
14106 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014107 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cristy73bd4a52010-10-05 11:24:23 +000014108 else
14109 if test "$host_cpu" = ia64; then
14110 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14111 allow_undefined_flag="-z nodefs"
14112 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"
14113 else
14114 # Determine the default libpath from the value encoded in an
14115 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014116 if test "${lt_cv_aix_libpath+set}" = set; then
14117 aix_libpath=$lt_cv_aix_libpath
14118else
14119 if ${lt_cv_aix_libpath_+:} false; then :
14120 $as_echo_n "(cached) " >&6
14121else
14122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014123/* end confdefs.h. */
14124
14125int
14126main ()
14127{
14128
14129 ;
14130 return 0;
14131}
14132_ACEOF
14133if ac_fn_c_try_link "$LINENO"; then :
14134
cristyda16f162011-02-19 23:52:17 +000014135 lt_aix_libpath_sed='
14136 /Import File Strings/,/^$/ {
14137 /^0/ {
14138 s/^0 *\([^ ]*\) *$/\1/
14139 p
14140 }
14141 }'
14142 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14143 # Check for a 64-bit object if we didn't find anything.
14144 if test -z "$lt_cv_aix_libpath_"; then
14145 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14146 fi
cristy73bd4a52010-10-05 11:24:23 +000014147fi
14148rm -f core conftest.err conftest.$ac_objext \
14149 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014150 if test -z "$lt_cv_aix_libpath_"; then
14151 lt_cv_aix_libpath_="/usr/lib:/lib"
14152 fi
14153
14154fi
14155
14156 aix_libpath=$lt_cv_aix_libpath_
14157fi
cristy73bd4a52010-10-05 11:24:23 +000014158
14159 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14160 # Warning - without using the other run time loading flags,
14161 # -berok will link without error, but may produce a broken library.
14162 no_undefined_flag=' ${wl}-bernotok'
14163 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014164 if test "$with_gnu_ld" = yes; then
14165 # We only use this code for GNU lds that support --whole-archive.
14166 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14167 else
14168 # Exported symbols can be pulled into shared objects from archives
14169 whole_archive_flag_spec='$convenience'
14170 fi
cristy73bd4a52010-10-05 11:24:23 +000014171 archive_cmds_need_lc=yes
14172 # This is similar to how AIX traditionally builds its shared libraries.
14173 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'
14174 fi
14175 fi
14176 ;;
14177
14178 amigaos*)
14179 case $host_cpu in
14180 powerpc)
14181 # see comment about AmigaOS4 .so support
14182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14183 archive_expsym_cmds=''
14184 ;;
14185 m68k)
14186 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)'
14187 hardcode_libdir_flag_spec='-L$libdir'
14188 hardcode_minus_L=yes
14189 ;;
14190 esac
14191 ;;
14192
14193 bsdi[45]*)
14194 export_dynamic_flag_spec=-rdynamic
14195 ;;
14196
14197 cygwin* | mingw* | pw32* | cegcc*)
14198 # When not using gcc, we currently assume that we are using
14199 # Microsoft Visual C++.
14200 # hardcode_libdir_flag_spec is actually meaningless, as there is
14201 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014202 case $cc_basename in
14203 cl*)
14204 # Native MSVC
14205 hardcode_libdir_flag_spec=' '
14206 allow_undefined_flag=unsupported
14207 always_export_symbols=yes
14208 file_list_spec='@'
14209 # Tell ltmain to make .lib files, not .a files.
14210 libext=lib
14211 # Tell ltmain to make .dll files, not .so files.
14212 shrext_cmds=".dll"
14213 # FIXME: Setting linknames here is a bad hack.
14214 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14215 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14216 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14217 else
14218 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14219 fi~
14220 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14221 linknames='
14222 # The linker will not automatically build a static lib if we build a DLL.
14223 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14224 enable_shared_with_static_runtimes=yes
14225 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14226 # Don't use ranlib
14227 old_postinstall_cmds='chmod 644 $oldlib'
14228 postlink_cmds='lt_outputfile="@OUTPUT@"~
14229 lt_tool_outputfile="@TOOL_OUTPUT@"~
14230 case $lt_outputfile in
14231 *.exe|*.EXE) ;;
14232 *)
14233 lt_outputfile="$lt_outputfile.exe"
14234 lt_tool_outputfile="$lt_tool_outputfile.exe"
14235 ;;
14236 esac~
14237 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14238 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14239 $RM "$lt_outputfile.manifest";
14240 fi'
14241 ;;
14242 *)
14243 # Assume MSVC wrapper
14244 hardcode_libdir_flag_spec=' '
14245 allow_undefined_flag=unsupported
14246 # Tell ltmain to make .lib files, not .a files.
14247 libext=lib
14248 # Tell ltmain to make .dll files, not .so files.
14249 shrext_cmds=".dll"
14250 # FIXME: Setting linknames here is a bad hack.
14251 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14252 # The linker will automatically build a .lib file if we build a DLL.
14253 old_archive_from_new_cmds='true'
14254 # FIXME: Should let the user specify the lib program.
14255 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14256 enable_shared_with_static_runtimes=yes
14257 ;;
14258 esac
cristy73bd4a52010-10-05 11:24:23 +000014259 ;;
14260
14261 darwin* | rhapsody*)
14262
14263
14264 archive_cmds_need_lc=no
14265 hardcode_direct=no
14266 hardcode_automatic=yes
14267 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014268 if test "$lt_cv_ld_force_load" = "yes"; then
14269 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\"`'
14270 else
14271 whole_archive_flag_spec=''
14272 fi
cristy73bd4a52010-10-05 11:24:23 +000014273 link_all_deplibs=yes
14274 allow_undefined_flag="$_lt_dar_allow_undefined"
14275 case $cc_basename in
14276 ifort*) _lt_dar_can_shared=yes ;;
14277 *) _lt_dar_can_shared=$GCC ;;
14278 esac
14279 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014280 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014281 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14282 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14283 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}"
14284 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}"
14285
14286 else
14287 ld_shlibs=no
14288 fi
14289
14290 ;;
14291
14292 dgux*)
14293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14294 hardcode_libdir_flag_spec='-L$libdir'
14295 hardcode_shlibpath_var=no
14296 ;;
14297
14298 freebsd1*)
14299 ld_shlibs=no
14300 ;;
14301
14302 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14303 # support. Future versions do this automatically, but an explicit c++rt0.o
14304 # does not break anything, and helps significantly (at the cost of a little
14305 # extra space).
14306 freebsd2.2*)
14307 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14308 hardcode_libdir_flag_spec='-R$libdir'
14309 hardcode_direct=yes
14310 hardcode_shlibpath_var=no
14311 ;;
14312
14313 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14314 freebsd2*)
14315 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14316 hardcode_direct=yes
14317 hardcode_minus_L=yes
14318 hardcode_shlibpath_var=no
14319 ;;
14320
14321 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14322 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014323 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014324 hardcode_libdir_flag_spec='-R$libdir'
14325 hardcode_direct=yes
14326 hardcode_shlibpath_var=no
14327 ;;
14328
14329 hpux9*)
14330 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014331 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cristy73bd4a52010-10-05 11:24:23 +000014332 else
14333 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'
14334 fi
14335 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14336 hardcode_libdir_separator=:
14337 hardcode_direct=yes
14338
14339 # hardcode_minus_L: Not really in the search PATH,
14340 # but as the default location of the library.
14341 hardcode_minus_L=yes
14342 export_dynamic_flag_spec='${wl}-E'
14343 ;;
14344
14345 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014346 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014347 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014348 else
14349 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14350 fi
14351 if test "$with_gnu_ld" = no; then
14352 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14353 hardcode_libdir_flag_spec_ld='+b $libdir'
14354 hardcode_libdir_separator=:
14355 hardcode_direct=yes
14356 hardcode_direct_absolute=yes
14357 export_dynamic_flag_spec='${wl}-E'
14358 # hardcode_minus_L: Not really in the search PATH,
14359 # but as the default location of the library.
14360 hardcode_minus_L=yes
14361 fi
14362 ;;
14363
14364 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014365 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014366 case $host_cpu in
14367 hppa*64*)
14368 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14369 ;;
14370 ia64*)
cristyda16f162011-02-19 23:52:17 +000014371 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014372 ;;
14373 *)
cristyda16f162011-02-19 23:52:17 +000014374 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014375 ;;
14376 esac
14377 else
14378 case $host_cpu in
14379 hppa*64*)
14380 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14381 ;;
14382 ia64*)
14383 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14384 ;;
14385 *)
cristy0c60a692010-11-04 01:09:47 +000014386
14387 # Older versions of the 11.00 compiler do not understand -b yet
14388 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14390$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014391if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014392 $as_echo_n "(cached) " >&6
14393else
14394 lt_cv_prog_compiler__b=no
14395 save_LDFLAGS="$LDFLAGS"
14396 LDFLAGS="$LDFLAGS -b"
14397 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14398 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14399 # The linker can only warn and ignore the option if not recognized
14400 # So say no if there are warnings
14401 if test -s conftest.err; then
14402 # Append any errors to the config.log.
14403 cat conftest.err 1>&5
14404 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14405 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14406 if diff conftest.exp conftest.er2 >/dev/null; then
14407 lt_cv_prog_compiler__b=yes
14408 fi
14409 else
14410 lt_cv_prog_compiler__b=yes
14411 fi
14412 fi
14413 $RM -r conftest*
14414 LDFLAGS="$save_LDFLAGS"
14415
14416fi
14417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14418$as_echo "$lt_cv_prog_compiler__b" >&6; }
14419
14420if test x"$lt_cv_prog_compiler__b" = xyes; then
14421 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14422else
14423 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14424fi
14425
cristy73bd4a52010-10-05 11:24:23 +000014426 ;;
14427 esac
14428 fi
14429 if test "$with_gnu_ld" = no; then
14430 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14431 hardcode_libdir_separator=:
14432
14433 case $host_cpu in
14434 hppa*64*|ia64*)
14435 hardcode_direct=no
14436 hardcode_shlibpath_var=no
14437 ;;
14438 *)
14439 hardcode_direct=yes
14440 hardcode_direct_absolute=yes
14441 export_dynamic_flag_spec='${wl}-E'
14442
14443 # hardcode_minus_L: Not really in the search PATH,
14444 # but as the default location of the library.
14445 hardcode_minus_L=yes
14446 ;;
14447 esac
14448 fi
14449 ;;
14450
14451 irix5* | irix6* | nonstopux*)
14452 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014453 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014454 # Try to use the -exported_symbol ld option, if it does not
14455 # work, assume that -exports_file does not work either and
14456 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014457 # This should be the same for all languages, so no per-tag cache variable.
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14459$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14460if ${lt_cv_irix_exported_symbol+:} false; then :
14461 $as_echo_n "(cached) " >&6
14462else
14463 save_LDFLAGS="$LDFLAGS"
14464 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014466/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014467int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014468_ACEOF
14469if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014470 lt_cv_irix_exported_symbol=yes
14471else
14472 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014473fi
14474rm -f core conftest.err conftest.$ac_objext \
14475 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014476 LDFLAGS="$save_LDFLAGS"
14477fi
14478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14479$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14480 if test "$lt_cv_irix_exported_symbol" = yes; then
14481 archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
14482 fi
cristy73bd4a52010-10-05 11:24:23 +000014483 else
cristy0c60a692010-11-04 01:09:47 +000014484 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'
14485 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014486 fi
14487 archive_cmds_need_lc='no'
14488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14489 hardcode_libdir_separator=:
14490 inherit_rpath=yes
14491 link_all_deplibs=yes
14492 ;;
14493
14494 netbsd*)
14495 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14496 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14497 else
14498 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14499 fi
14500 hardcode_libdir_flag_spec='-R$libdir'
14501 hardcode_direct=yes
14502 hardcode_shlibpath_var=no
14503 ;;
14504
14505 newsos6)
14506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14507 hardcode_direct=yes
14508 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14509 hardcode_libdir_separator=:
14510 hardcode_shlibpath_var=no
14511 ;;
14512
14513 *nto* | *qnx*)
14514 ;;
14515
14516 openbsd*)
14517 if test -f /usr/libexec/ld.so; then
14518 hardcode_direct=yes
14519 hardcode_shlibpath_var=no
14520 hardcode_direct_absolute=yes
14521 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14522 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14523 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14524 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14525 export_dynamic_flag_spec='${wl}-E'
14526 else
14527 case $host_os in
14528 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14529 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14530 hardcode_libdir_flag_spec='-R$libdir'
14531 ;;
14532 *)
14533 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14534 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14535 ;;
14536 esac
14537 fi
14538 else
14539 ld_shlibs=no
14540 fi
14541 ;;
14542
14543 os2*)
14544 hardcode_libdir_flag_spec='-L$libdir'
14545 hardcode_minus_L=yes
14546 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014547 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
cristy73bd4a52010-10-05 11:24:23 +000014548 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14549 ;;
14550
14551 osf3*)
14552 if test "$GCC" = yes; then
14553 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014554 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014555 else
14556 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014557 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014558 fi
14559 archive_cmds_need_lc='no'
14560 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14561 hardcode_libdir_separator=:
14562 ;;
14563
14564 osf4* | osf5*) # as osf3* with the addition of -msym flag
14565 if test "$GCC" = yes; then
14566 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014567 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014568 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14569 else
14570 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014571 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014572 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000014573 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000014574
14575 # Both c and cxx compiler support -rpath directly
14576 hardcode_libdir_flag_spec='-rpath $libdir'
14577 fi
14578 archive_cmds_need_lc='no'
14579 hardcode_libdir_separator=:
14580 ;;
14581
14582 solaris*)
14583 no_undefined_flag=' -z defs'
14584 if test "$GCC" = yes; then
14585 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014586 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014587 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cristyda16f162011-02-19 23:52:17 +000014588 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000014589 else
14590 case `$CC -V 2>&1` in
14591 *"Compilers 5.0"*)
14592 wlarc=''
14593 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14594 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14595 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14596 ;;
14597 *)
14598 wlarc='${wl}'
14599 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14600 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14601 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14602 ;;
14603 esac
14604 fi
14605 hardcode_libdir_flag_spec='-R$libdir'
14606 hardcode_shlibpath_var=no
14607 case $host_os in
14608 solaris2.[0-5] | solaris2.[0-5].*) ;;
14609 *)
14610 # The compiler driver will combine and reorder linker options,
14611 # but understands `-z linker_flag'. GCC discards it without `$wl',
14612 # but is careful enough not to reorder.
14613 # Supported since Solaris 2.6 (maybe 2.5.1?)
14614 if test "$GCC" = yes; then
14615 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14616 else
14617 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14618 fi
14619 ;;
14620 esac
14621 link_all_deplibs=yes
14622 ;;
14623
14624 sunos4*)
14625 if test "x$host_vendor" = xsequent; then
14626 # Use $CC to link under sequent, because it throws in some extra .o
14627 # files that make .init and .fini sections work.
14628 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14629 else
14630 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14631 fi
14632 hardcode_libdir_flag_spec='-L$libdir'
14633 hardcode_direct=yes
14634 hardcode_minus_L=yes
14635 hardcode_shlibpath_var=no
14636 ;;
14637
14638 sysv4)
14639 case $host_vendor in
14640 sni)
14641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14642 hardcode_direct=yes # is this really true???
14643 ;;
14644 siemens)
14645 ## LD is ld it makes a PLAMLIB
14646 ## CC just makes a GrossModule.
14647 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14648 reload_cmds='$CC -r -o $output$reload_objs'
14649 hardcode_direct=no
14650 ;;
14651 motorola)
14652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14653 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14654 ;;
14655 esac
14656 runpath_var='LD_RUN_PATH'
14657 hardcode_shlibpath_var=no
14658 ;;
14659
14660 sysv4.3*)
14661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14662 hardcode_shlibpath_var=no
14663 export_dynamic_flag_spec='-Bexport'
14664 ;;
14665
14666 sysv4*MP*)
14667 if test -d /usr/nec; then
14668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14669 hardcode_shlibpath_var=no
14670 runpath_var=LD_RUN_PATH
14671 hardcode_runpath_var=yes
14672 ld_shlibs=yes
14673 fi
14674 ;;
14675
14676 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14677 no_undefined_flag='${wl}-z,text'
14678 archive_cmds_need_lc=no
14679 hardcode_shlibpath_var=no
14680 runpath_var='LD_RUN_PATH'
14681
14682 if test "$GCC" = yes; then
14683 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14684 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14685 else
14686 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14687 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14688 fi
14689 ;;
14690
14691 sysv5* | sco3.2v5* | sco5v6*)
14692 # Note: We can NOT use -z defs as we might desire, because we do not
14693 # link with -lc, and that would cause any symbols used from libc to
14694 # always be unresolved, which means just about no library would
14695 # ever link correctly. If we're not using GNU ld we use -z text
14696 # though, which does catch some bad symbols but isn't as heavy-handed
14697 # as -z defs.
14698 no_undefined_flag='${wl}-z,text'
14699 allow_undefined_flag='${wl}-z,nodefs'
14700 archive_cmds_need_lc=no
14701 hardcode_shlibpath_var=no
14702 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14703 hardcode_libdir_separator=':'
14704 link_all_deplibs=yes
14705 export_dynamic_flag_spec='${wl}-Bexport'
14706 runpath_var='LD_RUN_PATH'
14707
14708 if test "$GCC" = yes; then
14709 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14710 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14711 else
14712 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14713 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14714 fi
14715 ;;
14716
14717 uts4*)
14718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14719 hardcode_libdir_flag_spec='-L$libdir'
14720 hardcode_shlibpath_var=no
14721 ;;
14722
14723 *)
14724 ld_shlibs=no
14725 ;;
14726 esac
14727
14728 if test x$host_vendor = xsni; then
14729 case $host in
14730 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14731 export_dynamic_flag_spec='${wl}-Blargedynsym'
14732 ;;
14733 esac
14734 fi
14735 fi
14736
14737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14738$as_echo "$ld_shlibs" >&6; }
14739test "$ld_shlibs" = no && can_build_shared=no
14740
14741with_gnu_ld=$with_gnu_ld
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757#
14758# Do we need to explicitly link libc?
14759#
14760case "x$archive_cmds_need_lc" in
14761x|xyes)
14762 # Assume -lc should be added
14763 archive_cmds_need_lc=yes
14764
14765 if test "$enable_shared" = yes && test "$GCC" = yes; then
14766 case $archive_cmds in
14767 *'~'*)
14768 # FIXME: we may have to deal with multi-command sequences.
14769 ;;
14770 '$CC '*)
14771 # Test whether the compiler implicitly links with -lc since on some
14772 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14773 # to ld, don't add -lc before -lgcc.
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14775$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014776if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014777 $as_echo_n "(cached) " >&6
14778else
14779 $RM conftest*
14780 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014781
cristy0c60a692010-11-04 01:09:47 +000014782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000014783 (eval $ac_compile) 2>&5
14784 ac_status=$?
14785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14786 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000014787 soname=conftest
14788 lib=conftest
14789 libobjs=conftest.$ac_objext
14790 deplibs=
14791 wl=$lt_prog_compiler_wl
14792 pic_flag=$lt_prog_compiler_pic
14793 compiler_flags=-v
14794 linker_flags=-v
14795 verstring=
14796 output_objdir=.
14797 libname=conftest
14798 lt_save_allow_undefined_flag=$allow_undefined_flag
14799 allow_undefined_flag=
14800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000014801 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14802 ac_status=$?
14803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14804 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000014805 then
14806 lt_cv_archive_cmds_need_lc=no
14807 else
14808 lt_cv_archive_cmds_need_lc=yes
14809 fi
14810 allow_undefined_flag=$lt_save_allow_undefined_flag
14811 else
14812 cat conftest.err 1>&5
14813 fi
14814 $RM conftest*
14815
14816fi
14817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14818$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14819 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000014820 ;;
14821 esac
14822 fi
14823 ;;
14824esac
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14983$as_echo_n "checking dynamic linker characteristics... " >&6; }
14984
14985if test "$GCC" = yes; then
14986 case $host_os in
14987 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14988 *) lt_awk_arg="/^libraries:/" ;;
14989 esac
cristy0c60a692010-11-04 01:09:47 +000014990 case $host_os in
14991 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14992 *) lt_sed_strip_eq="s,=/,/,g" ;;
14993 esac
14994 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14995 case $lt_search_path_spec in
14996 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000014997 # if the path contains ";" then we assume it to be the separator
14998 # otherwise default to the standard path separator (i.e. ":") - it is
14999 # assumed that no part of a normal pathname contains ";" but that should
15000 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015001 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15002 ;;
15003 *)
15004 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15005 ;;
15006 esac
cristy73bd4a52010-10-05 11:24:23 +000015007 # Ok, now we have the path, separated by spaces, we can step through it
15008 # and add multilib dir if necessary.
15009 lt_tmp_lt_search_path_spec=
15010 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15011 for lt_sys_path in $lt_search_path_spec; do
15012 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15013 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15014 else
15015 test -d "$lt_sys_path" && \
15016 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15017 fi
15018 done
cristy0c60a692010-11-04 01:09:47 +000015019 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015020BEGIN {RS=" "; FS="/|\n";} {
15021 lt_foo="";
15022 lt_count=0;
15023 for (lt_i = NF; lt_i > 0; lt_i--) {
15024 if ($lt_i != "" && $lt_i != ".") {
15025 if ($lt_i == "..") {
15026 lt_count++;
15027 } else {
15028 if (lt_count == 0) {
15029 lt_foo="/" $lt_i lt_foo;
15030 } else {
15031 lt_count--;
15032 }
15033 }
15034 }
15035 }
15036 if (lt_foo != "") { lt_freq[lt_foo]++; }
15037 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15038}'`
cristy0c60a692010-11-04 01:09:47 +000015039 # AWK program above erroneously prepends '/' to C:/dos/paths
15040 # for these hosts.
15041 case $host_os in
15042 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15043 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15044 esac
15045 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015046else
15047 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15048fi
15049library_names_spec=
15050libname_spec='lib$name'
15051soname_spec=
15052shrext_cmds=".so"
15053postinstall_cmds=
15054postuninstall_cmds=
15055finish_cmds=
15056finish_eval=
15057shlibpath_var=
15058shlibpath_overrides_runpath=unknown
15059version_type=none
15060dynamic_linker="$host_os ld.so"
15061sys_lib_dlsearch_path_spec="/lib /usr/lib"
15062need_lib_prefix=unknown
15063hardcode_into_libs=no
15064
15065# when you set need_version to no, make sure it does not cause -set_version
15066# flags to be left without arguments
15067need_version=unknown
15068
15069case $host_os in
15070aix3*)
15071 version_type=linux
15072 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15073 shlibpath_var=LIBPATH
15074
15075 # AIX 3 has no versioning support, so we append a major version to the name.
15076 soname_spec='${libname}${release}${shared_ext}$major'
15077 ;;
15078
15079aix[4-9]*)
15080 version_type=linux
15081 need_lib_prefix=no
15082 need_version=no
15083 hardcode_into_libs=yes
15084 if test "$host_cpu" = ia64; then
15085 # AIX 5 supports IA64
15086 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15087 shlibpath_var=LD_LIBRARY_PATH
15088 else
15089 # With GCC up to 2.95.x, collect2 would create an import file
15090 # for dependence libraries. The import file would start with
15091 # the line `#! .'. This would cause the generated library to
15092 # depend on `.', always an invalid library. This was fixed in
15093 # development snapshots of GCC prior to 3.0.
15094 case $host_os in
15095 aix4 | aix4.[01] | aix4.[01].*)
15096 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15097 echo ' yes '
15098 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15099 :
15100 else
15101 can_build_shared=no
15102 fi
15103 ;;
15104 esac
15105 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15106 # soname into executable. Probably we can add versioning support to
15107 # collect2, so additional links can be useful in future.
15108 if test "$aix_use_runtimelinking" = yes; then
15109 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15110 # instead of lib<name>.a to let people know that these are not
15111 # typical AIX shared libraries.
15112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15113 else
15114 # We preserve .a as extension for shared libraries through AIX4.2
15115 # and later when we are not doing run time linking.
15116 library_names_spec='${libname}${release}.a $libname.a'
15117 soname_spec='${libname}${release}${shared_ext}$major'
15118 fi
15119 shlibpath_var=LIBPATH
15120 fi
15121 ;;
15122
15123amigaos*)
15124 case $host_cpu in
15125 powerpc)
15126 # Since July 2007 AmigaOS4 officially supports .so libraries.
15127 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15129 ;;
15130 m68k)
15131 library_names_spec='$libname.ixlibrary $libname.a'
15132 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015133 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
cristy73bd4a52010-10-05 11:24:23 +000015134 ;;
15135 esac
15136 ;;
15137
15138beos*)
15139 library_names_spec='${libname}${shared_ext}'
15140 dynamic_linker="$host_os ld.so"
15141 shlibpath_var=LIBRARY_PATH
15142 ;;
15143
15144bsdi[45]*)
15145 version_type=linux
15146 need_version=no
15147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15148 soname_spec='${libname}${release}${shared_ext}$major'
15149 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15150 shlibpath_var=LD_LIBRARY_PATH
15151 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15152 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15153 # the default ld.so.conf also contains /usr/contrib/lib and
15154 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15155 # libtool to hard-code these into programs
15156 ;;
15157
15158cygwin* | mingw* | pw32* | cegcc*)
15159 version_type=windows
15160 shrext_cmds=".dll"
15161 need_version=no
15162 need_lib_prefix=no
15163
cristyda16f162011-02-19 23:52:17 +000015164 case $GCC,$cc_basename in
15165 yes,*)
15166 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015167 library_names_spec='$libname.dll.a'
15168 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15169 postinstall_cmds='base_file=`basename \${file}`~
15170 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15171 dldir=$destdir/`dirname \$dlpath`~
15172 test -d \$dldir || mkdir -p \$dldir~
15173 $install_prog $dir/$dlname \$dldir/$dlname~
15174 chmod a+x \$dldir/$dlname~
15175 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15176 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15177 fi'
15178 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15179 dlpath=$dir/\$dldll~
15180 $RM \$dlpath'
15181 shlibpath_overrides_runpath=yes
15182
15183 case $host_os in
15184 cygwin*)
15185 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15186 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015187
15188 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015189 ;;
15190 mingw* | cegcc*)
15191 # MinGW DLLs use traditional 'lib' prefix
15192 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015193 ;;
15194 pw32*)
15195 # pw32 DLLs use 'pw' prefix rather than 'lib'
15196 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15197 ;;
15198 esac
cristyda16f162011-02-19 23:52:17 +000015199 dynamic_linker='Win32 ld.exe'
15200 ;;
15201
15202 *,cl*)
15203 # Native MSVC
15204 libname_spec='$name'
15205 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15206 library_names_spec='${libname}.dll.lib'
15207
15208 case $build_os in
15209 mingw*)
15210 sys_lib_search_path_spec=
15211 lt_save_ifs=$IFS
15212 IFS=';'
15213 for lt_path in $LIB
15214 do
15215 IFS=$lt_save_ifs
15216 # Let DOS variable expansion print the short 8.3 style file name.
15217 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15218 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15219 done
15220 IFS=$lt_save_ifs
15221 # Convert to MSYS style.
15222 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15223 ;;
15224 cygwin*)
15225 # Convert to unix form, then to dos form, then back to unix form
15226 # but this time dos style (no spaces!) so that the unix form looks
15227 # like /cygdrive/c/PROGRA~1:/cygdr...
15228 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15229 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15230 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15231 ;;
15232 *)
15233 sys_lib_search_path_spec="$LIB"
15234 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15235 # It is most probably a Windows format PATH.
15236 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15237 else
15238 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15239 fi
15240 # FIXME: find the short name or the path components, as spaces are
15241 # common. (e.g. "Program Files" -> "PROGRA~1")
15242 ;;
15243 esac
15244
15245 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15246 postinstall_cmds='base_file=`basename \${file}`~
15247 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15248 dldir=$destdir/`dirname \$dlpath`~
15249 test -d \$dldir || mkdir -p \$dldir~
15250 $install_prog $dir/$dlname \$dldir/$dlname'
15251 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15252 dlpath=$dir/\$dldll~
15253 $RM \$dlpath'
15254 shlibpath_overrides_runpath=yes
15255 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015256 ;;
15257
15258 *)
cristyda16f162011-02-19 23:52:17 +000015259 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015260 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015261 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015262 ;;
15263 esac
cristy73bd4a52010-10-05 11:24:23 +000015264 # FIXME: first we should search . and the directory the executable is in
15265 shlibpath_var=PATH
15266 ;;
15267
15268darwin* | rhapsody*)
15269 dynamic_linker="$host_os dyld"
15270 version_type=darwin
15271 need_lib_prefix=no
15272 need_version=no
15273 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15274 soname_spec='${libname}${release}${major}$shared_ext'
15275 shlibpath_overrides_runpath=yes
15276 shlibpath_var=DYLD_LIBRARY_PATH
15277 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15278
15279 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15280 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15281 ;;
15282
15283dgux*)
15284 version_type=linux
15285 need_lib_prefix=no
15286 need_version=no
15287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15288 soname_spec='${libname}${release}${shared_ext}$major'
15289 shlibpath_var=LD_LIBRARY_PATH
15290 ;;
15291
15292freebsd1*)
15293 dynamic_linker=no
15294 ;;
15295
15296freebsd* | dragonfly*)
15297 # DragonFly does not have aout. When/if they implement a new
15298 # versioning mechanism, adjust this.
15299 if test -x /usr/bin/objformat; then
15300 objformat=`/usr/bin/objformat`
15301 else
15302 case $host_os in
15303 freebsd[123]*) objformat=aout ;;
15304 *) objformat=elf ;;
15305 esac
15306 fi
15307 version_type=freebsd-$objformat
15308 case $version_type in
15309 freebsd-elf*)
15310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15311 need_version=no
15312 need_lib_prefix=no
15313 ;;
15314 freebsd-*)
15315 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15316 need_version=yes
15317 ;;
15318 esac
15319 shlibpath_var=LD_LIBRARY_PATH
15320 case $host_os in
15321 freebsd2*)
15322 shlibpath_overrides_runpath=yes
15323 ;;
15324 freebsd3.[01]* | freebsdelf3.[01]*)
15325 shlibpath_overrides_runpath=yes
15326 hardcode_into_libs=yes
15327 ;;
15328 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15329 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15330 shlibpath_overrides_runpath=no
15331 hardcode_into_libs=yes
15332 ;;
15333 *) # from 4.6 on, and DragonFly
15334 shlibpath_overrides_runpath=yes
15335 hardcode_into_libs=yes
15336 ;;
15337 esac
15338 ;;
15339
15340gnu*)
15341 version_type=linux
15342 need_lib_prefix=no
15343 need_version=no
15344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15345 soname_spec='${libname}${release}${shared_ext}$major'
15346 shlibpath_var=LD_LIBRARY_PATH
15347 hardcode_into_libs=yes
15348 ;;
15349
cristy0c60a692010-11-04 01:09:47 +000015350haiku*)
15351 version_type=linux
15352 need_lib_prefix=no
15353 need_version=no
15354 dynamic_linker="$host_os runtime_loader"
15355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15356 soname_spec='${libname}${release}${shared_ext}$major'
15357 shlibpath_var=LIBRARY_PATH
15358 shlibpath_overrides_runpath=yes
15359 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15360 hardcode_into_libs=yes
15361 ;;
15362
cristy73bd4a52010-10-05 11:24:23 +000015363hpux9* | hpux10* | hpux11*)
15364 # Give a soname corresponding to the major version so that dld.sl refuses to
15365 # link against other versions.
15366 version_type=sunos
15367 need_lib_prefix=no
15368 need_version=no
15369 case $host_cpu in
15370 ia64*)
15371 shrext_cmds='.so'
15372 hardcode_into_libs=yes
15373 dynamic_linker="$host_os dld.so"
15374 shlibpath_var=LD_LIBRARY_PATH
15375 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15377 soname_spec='${libname}${release}${shared_ext}$major'
15378 if test "X$HPUX_IA64_MODE" = X32; then
15379 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15380 else
15381 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15382 fi
15383 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15384 ;;
15385 hppa*64*)
15386 shrext_cmds='.sl'
15387 hardcode_into_libs=yes
15388 dynamic_linker="$host_os dld.sl"
15389 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15390 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15392 soname_spec='${libname}${release}${shared_ext}$major'
15393 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15394 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15395 ;;
15396 *)
15397 shrext_cmds='.sl'
15398 dynamic_linker="$host_os dld.sl"
15399 shlibpath_var=SHLIB_PATH
15400 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15402 soname_spec='${libname}${release}${shared_ext}$major'
15403 ;;
15404 esac
cristy0c60a692010-11-04 01:09:47 +000015405 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015406 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015407 # or fails outright, so override atomically:
15408 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015409 ;;
15410
15411interix[3-9]*)
15412 version_type=linux
15413 need_lib_prefix=no
15414 need_version=no
15415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15416 soname_spec='${libname}${release}${shared_ext}$major'
15417 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15418 shlibpath_var=LD_LIBRARY_PATH
15419 shlibpath_overrides_runpath=no
15420 hardcode_into_libs=yes
15421 ;;
15422
15423irix5* | irix6* | nonstopux*)
15424 case $host_os in
15425 nonstopux*) version_type=nonstopux ;;
15426 *)
15427 if test "$lt_cv_prog_gnu_ld" = yes; then
15428 version_type=linux
15429 else
15430 version_type=irix
15431 fi ;;
15432 esac
15433 need_lib_prefix=no
15434 need_version=no
15435 soname_spec='${libname}${release}${shared_ext}$major'
15436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15437 case $host_os in
15438 irix5* | nonstopux*)
15439 libsuff= shlibsuff=
15440 ;;
15441 *)
15442 case $LD in # libtool.m4 will add one of these switches to LD
15443 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15444 libsuff= shlibsuff= libmagic=32-bit;;
15445 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15446 libsuff=32 shlibsuff=N32 libmagic=N32;;
15447 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15448 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15449 *) libsuff= shlibsuff= libmagic=never-match;;
15450 esac
15451 ;;
15452 esac
15453 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15454 shlibpath_overrides_runpath=no
15455 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15456 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15457 hardcode_into_libs=yes
15458 ;;
15459
15460# No shared lib support for Linux oldld, aout, or coff.
15461linux*oldld* | linux*aout* | linux*coff*)
15462 dynamic_linker=no
15463 ;;
15464
15465# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000015466linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015467 version_type=linux
15468 need_lib_prefix=no
15469 need_version=no
15470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15471 soname_spec='${libname}${release}${shared_ext}$major'
15472 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15473 shlibpath_var=LD_LIBRARY_PATH
15474 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015475
cristy73bd4a52010-10-05 11:24:23 +000015476 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015477 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015478 $as_echo_n "(cached) " >&6
15479else
15480 lt_cv_shlibpath_overrides_runpath=no
15481 save_LDFLAGS=$LDFLAGS
15482 save_libdir=$libdir
15483 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15484 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015486/* end confdefs.h. */
15487
15488int
15489main ()
15490{
15491
15492 ;
15493 return 0;
15494}
15495_ACEOF
15496if ac_fn_c_try_link "$LINENO"; then :
15497 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015498 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015499fi
15500fi
15501rm -f core conftest.err conftest.$ac_objext \
15502 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015503 LDFLAGS=$save_LDFLAGS
15504 libdir=$save_libdir
15505
15506fi
15507
15508 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015509
15510 # This implies no fast_install, which is unacceptable.
15511 # Some rework will be needed to allow for fast_install
15512 # before this can be enabled.
15513 hardcode_into_libs=yes
15514
15515 # Add ABI-specific directories to the system library path.
15516 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15517
15518 # Append ld.so.conf contents to the search path
15519 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015520 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
cristy73bd4a52010-10-05 11:24:23 +000015521 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015522
cristy73bd4a52010-10-05 11:24:23 +000015523 fi
15524
15525 # We used to test for /lib/ld.so.1 and disable shared libraries on
15526 # powerpc, because MkLinux only supported shared libraries with the
15527 # GNU dynamic linker. Since this was broken with cross compilers,
15528 # most powerpc-linux boxes support dynamic linking these days and
15529 # people can always --disable-shared, the test was removed, and we
15530 # assume the GNU/Linux dynamic linker is in use.
15531 dynamic_linker='GNU/Linux ld.so'
15532 ;;
15533
15534netbsd*)
15535 version_type=sunos
15536 need_lib_prefix=no
15537 need_version=no
15538 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15540 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15541 dynamic_linker='NetBSD (a.out) ld.so'
15542 else
15543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15544 soname_spec='${libname}${release}${shared_ext}$major'
15545 dynamic_linker='NetBSD ld.elf_so'
15546 fi
15547 shlibpath_var=LD_LIBRARY_PATH
15548 shlibpath_overrides_runpath=yes
15549 hardcode_into_libs=yes
15550 ;;
15551
15552newsos6)
15553 version_type=linux
15554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15555 shlibpath_var=LD_LIBRARY_PATH
15556 shlibpath_overrides_runpath=yes
15557 ;;
15558
15559*nto* | *qnx*)
15560 version_type=qnx
15561 need_lib_prefix=no
15562 need_version=no
15563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15564 soname_spec='${libname}${release}${shared_ext}$major'
15565 shlibpath_var=LD_LIBRARY_PATH
15566 shlibpath_overrides_runpath=no
15567 hardcode_into_libs=yes
15568 dynamic_linker='ldqnx.so'
15569 ;;
15570
15571openbsd*)
15572 version_type=sunos
15573 sys_lib_dlsearch_path_spec="/usr/lib"
15574 need_lib_prefix=no
15575 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15576 case $host_os in
15577 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15578 *) need_version=no ;;
15579 esac
15580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15582 shlibpath_var=LD_LIBRARY_PATH
15583 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15584 case $host_os in
15585 openbsd2.[89] | openbsd2.[89].*)
15586 shlibpath_overrides_runpath=no
15587 ;;
15588 *)
15589 shlibpath_overrides_runpath=yes
15590 ;;
15591 esac
15592 else
15593 shlibpath_overrides_runpath=yes
15594 fi
15595 ;;
15596
15597os2*)
15598 libname_spec='$name'
15599 shrext_cmds=".dll"
15600 need_lib_prefix=no
15601 library_names_spec='$libname${shared_ext} $libname.a'
15602 dynamic_linker='OS/2 ld.exe'
15603 shlibpath_var=LIBPATH
15604 ;;
15605
15606osf3* | osf4* | osf5*)
15607 version_type=osf
15608 need_lib_prefix=no
15609 need_version=no
15610 soname_spec='${libname}${release}${shared_ext}$major'
15611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15612 shlibpath_var=LD_LIBRARY_PATH
15613 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15614 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15615 ;;
15616
15617rdos*)
15618 dynamic_linker=no
15619 ;;
15620
15621solaris*)
15622 version_type=linux
15623 need_lib_prefix=no
15624 need_version=no
15625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15626 soname_spec='${libname}${release}${shared_ext}$major'
15627 shlibpath_var=LD_LIBRARY_PATH
15628 shlibpath_overrides_runpath=yes
15629 hardcode_into_libs=yes
15630 # ldd complains unless libraries are executable
15631 postinstall_cmds='chmod +x $lib'
15632 ;;
15633
15634sunos4*)
15635 version_type=sunos
15636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15637 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15638 shlibpath_var=LD_LIBRARY_PATH
15639 shlibpath_overrides_runpath=yes
15640 if test "$with_gnu_ld" = yes; then
15641 need_lib_prefix=no
15642 fi
15643 need_version=yes
15644 ;;
15645
15646sysv4 | sysv4.3*)
15647 version_type=linux
15648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15649 soname_spec='${libname}${release}${shared_ext}$major'
15650 shlibpath_var=LD_LIBRARY_PATH
15651 case $host_vendor in
15652 sni)
15653 shlibpath_overrides_runpath=no
15654 need_lib_prefix=no
15655 runpath_var=LD_RUN_PATH
15656 ;;
15657 siemens)
15658 need_lib_prefix=no
15659 ;;
15660 motorola)
15661 need_lib_prefix=no
15662 need_version=no
15663 shlibpath_overrides_runpath=no
15664 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15665 ;;
15666 esac
15667 ;;
15668
15669sysv4*MP*)
15670 if test -d /usr/nec ;then
15671 version_type=linux
15672 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15673 soname_spec='$libname${shared_ext}.$major'
15674 shlibpath_var=LD_LIBRARY_PATH
15675 fi
15676 ;;
15677
15678sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15679 version_type=freebsd-elf
15680 need_lib_prefix=no
15681 need_version=no
15682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15683 soname_spec='${libname}${release}${shared_ext}$major'
15684 shlibpath_var=LD_LIBRARY_PATH
15685 shlibpath_overrides_runpath=yes
15686 hardcode_into_libs=yes
15687 if test "$with_gnu_ld" = yes; then
15688 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15689 else
15690 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15691 case $host_os in
15692 sco3.2v5*)
15693 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15694 ;;
15695 esac
15696 fi
15697 sys_lib_dlsearch_path_spec='/usr/lib'
15698 ;;
15699
15700tpf*)
15701 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15702 version_type=linux
15703 need_lib_prefix=no
15704 need_version=no
15705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15706 shlibpath_var=LD_LIBRARY_PATH
15707 shlibpath_overrides_runpath=no
15708 hardcode_into_libs=yes
15709 ;;
15710
15711uts4*)
15712 version_type=linux
15713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15714 soname_spec='${libname}${release}${shared_ext}$major'
15715 shlibpath_var=LD_LIBRARY_PATH
15716 ;;
15717
15718*)
15719 dynamic_linker=no
15720 ;;
15721esac
15722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15723$as_echo "$dynamic_linker" >&6; }
15724test "$dynamic_linker" = no && can_build_shared=no
15725
15726variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15727if test "$GCC" = yes; then
15728 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15729fi
15730
15731if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15732 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15733fi
15734if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15735 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15736fi
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
cristy0c60a692010-11-04 01:09:47 +000015824
15825
15826
15827
15828
cristy73bd4a52010-10-05 11:24:23 +000015829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15830$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15831hardcode_action=
15832if test -n "$hardcode_libdir_flag_spec" ||
15833 test -n "$runpath_var" ||
15834 test "X$hardcode_automatic" = "Xyes" ; then
15835
15836 # We can hardcode non-existent directories.
15837 if test "$hardcode_direct" != no &&
15838 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15839 # have to relink, otherwise we might link with an installed library
15840 # when we should be linking with a yet-to-be-installed one
15841 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15842 test "$hardcode_minus_L" != no; then
15843 # Linking always hardcodes the temporary library directory.
15844 hardcode_action=relink
15845 else
15846 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15847 hardcode_action=immediate
15848 fi
15849else
15850 # We cannot hardcode anything, or else we can only hardcode existing
15851 # directories.
15852 hardcode_action=unsupported
15853fi
15854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15855$as_echo "$hardcode_action" >&6; }
15856
15857if test "$hardcode_action" = relink ||
15858 test "$inherit_rpath" = yes; then
15859 # Fast installation is not supported
15860 enable_fast_install=no
15861elif test "$shlibpath_overrides_runpath" = yes ||
15862 test "$enable_shared" = no; then
15863 # Fast installation is not necessary
15864 enable_fast_install=needless
15865fi
15866
15867
15868
15869
15870
15871
15872 if test "x$enable_dlopen" != xyes; then
15873 enable_dlopen=unknown
15874 enable_dlopen_self=unknown
15875 enable_dlopen_self_static=unknown
15876else
15877 lt_cv_dlopen=no
15878 lt_cv_dlopen_libs=
15879
15880 case $host_os in
15881 beos*)
15882 lt_cv_dlopen="load_add_on"
15883 lt_cv_dlopen_libs=
15884 lt_cv_dlopen_self=yes
15885 ;;
15886
15887 mingw* | pw32* | cegcc*)
15888 lt_cv_dlopen="LoadLibrary"
15889 lt_cv_dlopen_libs=
15890 ;;
15891
15892 cygwin*)
15893 lt_cv_dlopen="dlopen"
15894 lt_cv_dlopen_libs=
15895 ;;
15896
15897 darwin*)
15898 # if libdl is installed we need to link against it
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15900$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015901if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015902 $as_echo_n "(cached) " >&6
15903else
15904 ac_check_lib_save_LIBS=$LIBS
15905LIBS="-ldl $LIBS"
15906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15907/* end confdefs.h. */
15908
15909/* Override any GCC internal prototype to avoid an error.
15910 Use char because int might match the return type of a GCC
15911 builtin and then its argument prototype would still apply. */
15912#ifdef __cplusplus
15913extern "C"
15914#endif
15915char dlopen ();
15916int
15917main ()
15918{
15919return dlopen ();
15920 ;
15921 return 0;
15922}
15923_ACEOF
15924if ac_fn_c_try_link "$LINENO"; then :
15925 ac_cv_lib_dl_dlopen=yes
15926else
15927 ac_cv_lib_dl_dlopen=no
15928fi
15929rm -f core conftest.err conftest.$ac_objext \
15930 conftest$ac_exeext conftest.$ac_ext
15931LIBS=$ac_check_lib_save_LIBS
15932fi
15933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15934$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000015935if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015936 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15937else
15938
15939 lt_cv_dlopen="dyld"
15940 lt_cv_dlopen_libs=
15941 lt_cv_dlopen_self=yes
15942
15943fi
15944
15945 ;;
15946
15947 *)
15948 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000015949if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015950 lt_cv_dlopen="shl_load"
15951else
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15953$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015954if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015955 $as_echo_n "(cached) " >&6
15956else
15957 ac_check_lib_save_LIBS=$LIBS
15958LIBS="-ldld $LIBS"
15959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15960/* end confdefs.h. */
15961
15962/* Override any GCC internal prototype to avoid an error.
15963 Use char because int might match the return type of a GCC
15964 builtin and then its argument prototype would still apply. */
15965#ifdef __cplusplus
15966extern "C"
15967#endif
15968char shl_load ();
15969int
15970main ()
15971{
15972return shl_load ();
15973 ;
15974 return 0;
15975}
15976_ACEOF
15977if ac_fn_c_try_link "$LINENO"; then :
15978 ac_cv_lib_dld_shl_load=yes
15979else
15980 ac_cv_lib_dld_shl_load=no
15981fi
15982rm -f core conftest.err conftest.$ac_objext \
15983 conftest$ac_exeext conftest.$ac_ext
15984LIBS=$ac_check_lib_save_LIBS
15985fi
15986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15987$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000015988if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015989 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15990else
15991 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000015992if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015993 lt_cv_dlopen="dlopen"
15994else
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15996$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015997if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015998 $as_echo_n "(cached) " >&6
15999else
16000 ac_check_lib_save_LIBS=$LIBS
16001LIBS="-ldl $LIBS"
16002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16003/* end confdefs.h. */
16004
16005/* Override any GCC internal prototype to avoid an error.
16006 Use char because int might match the return type of a GCC
16007 builtin and then its argument prototype would still apply. */
16008#ifdef __cplusplus
16009extern "C"
16010#endif
16011char dlopen ();
16012int
16013main ()
16014{
16015return dlopen ();
16016 ;
16017 return 0;
16018}
16019_ACEOF
16020if ac_fn_c_try_link "$LINENO"; then :
16021 ac_cv_lib_dl_dlopen=yes
16022else
16023 ac_cv_lib_dl_dlopen=no
16024fi
16025rm -f core conftest.err conftest.$ac_objext \
16026 conftest$ac_exeext conftest.$ac_ext
16027LIBS=$ac_check_lib_save_LIBS
16028fi
16029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16030$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016031if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016032 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16033else
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16035$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016036if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016037 $as_echo_n "(cached) " >&6
16038else
16039 ac_check_lib_save_LIBS=$LIBS
16040LIBS="-lsvld $LIBS"
16041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042/* end confdefs.h. */
16043
16044/* Override any GCC internal prototype to avoid an error.
16045 Use char because int might match the return type of a GCC
16046 builtin and then its argument prototype would still apply. */
16047#ifdef __cplusplus
16048extern "C"
16049#endif
16050char dlopen ();
16051int
16052main ()
16053{
16054return dlopen ();
16055 ;
16056 return 0;
16057}
16058_ACEOF
16059if ac_fn_c_try_link "$LINENO"; then :
16060 ac_cv_lib_svld_dlopen=yes
16061else
16062 ac_cv_lib_svld_dlopen=no
16063fi
16064rm -f core conftest.err conftest.$ac_objext \
16065 conftest$ac_exeext conftest.$ac_ext
16066LIBS=$ac_check_lib_save_LIBS
16067fi
16068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16069$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016070if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016071 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16072else
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16074$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016075if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016076 $as_echo_n "(cached) " >&6
16077else
16078 ac_check_lib_save_LIBS=$LIBS
16079LIBS="-ldld $LIBS"
16080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16081/* end confdefs.h. */
16082
16083/* Override any GCC internal prototype to avoid an error.
16084 Use char because int might match the return type of a GCC
16085 builtin and then its argument prototype would still apply. */
16086#ifdef __cplusplus
16087extern "C"
16088#endif
16089char dld_link ();
16090int
16091main ()
16092{
16093return dld_link ();
16094 ;
16095 return 0;
16096}
16097_ACEOF
16098if ac_fn_c_try_link "$LINENO"; then :
16099 ac_cv_lib_dld_dld_link=yes
16100else
16101 ac_cv_lib_dld_dld_link=no
16102fi
16103rm -f core conftest.err conftest.$ac_objext \
16104 conftest$ac_exeext conftest.$ac_ext
16105LIBS=$ac_check_lib_save_LIBS
16106fi
16107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16108$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016109if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016110 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16111fi
16112
16113
16114fi
16115
16116
16117fi
16118
16119
16120fi
16121
16122
16123fi
16124
16125
16126fi
16127
16128 ;;
16129 esac
16130
16131 if test "x$lt_cv_dlopen" != xno; then
16132 enable_dlopen=yes
16133 else
16134 enable_dlopen=no
16135 fi
16136
16137 case $lt_cv_dlopen in
16138 dlopen)
16139 save_CPPFLAGS="$CPPFLAGS"
16140 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16141
16142 save_LDFLAGS="$LDFLAGS"
16143 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16144
16145 save_LIBS="$LIBS"
16146 LIBS="$lt_cv_dlopen_libs $LIBS"
16147
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16149$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016150if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016151 $as_echo_n "(cached) " >&6
16152else
16153 if test "$cross_compiling" = yes; then :
16154 lt_cv_dlopen_self=cross
16155else
16156 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16157 lt_status=$lt_dlunknown
16158 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016159#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016160#include "confdefs.h"
16161
16162#if HAVE_DLFCN_H
16163#include <dlfcn.h>
16164#endif
16165
16166#include <stdio.h>
16167
16168#ifdef RTLD_GLOBAL
16169# define LT_DLGLOBAL RTLD_GLOBAL
16170#else
16171# ifdef DL_GLOBAL
16172# define LT_DLGLOBAL DL_GLOBAL
16173# else
16174# define LT_DLGLOBAL 0
16175# endif
16176#endif
16177
16178/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16179 find out it does not work in some platform. */
16180#ifndef LT_DLLAZY_OR_NOW
16181# ifdef RTLD_LAZY
16182# define LT_DLLAZY_OR_NOW RTLD_LAZY
16183# else
16184# ifdef DL_LAZY
16185# define LT_DLLAZY_OR_NOW DL_LAZY
16186# else
16187# ifdef RTLD_NOW
16188# define LT_DLLAZY_OR_NOW RTLD_NOW
16189# else
16190# ifdef DL_NOW
16191# define LT_DLLAZY_OR_NOW DL_NOW
16192# else
16193# define LT_DLLAZY_OR_NOW 0
16194# endif
16195# endif
16196# endif
16197# endif
16198#endif
16199
cristy0c60a692010-11-04 01:09:47 +000016200/* When -fvisbility=hidden is used, assume the code has been annotated
16201 correspondingly for the symbols needed. */
16202#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016203int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016204#endif
16205
cristyda16f162011-02-19 23:52:17 +000016206int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016207int main ()
16208{
16209 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16210 int status = $lt_dlunknown;
16211
16212 if (self)
16213 {
16214 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016215 else
16216 {
16217 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16218 else puts (dlerror ());
16219 }
cristy73bd4a52010-10-05 11:24:23 +000016220 /* dlclose (self); */
16221 }
16222 else
16223 puts (dlerror ());
16224
16225 return status;
16226}
16227_LT_EOF
16228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16229 (eval $ac_link) 2>&5
16230 ac_status=$?
16231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16232 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16233 (./conftest; exit; ) >&5 2>/dev/null
16234 lt_status=$?
16235 case x$lt_status in
16236 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16237 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16238 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16239 esac
16240 else :
16241 # compilation failed
16242 lt_cv_dlopen_self=no
16243 fi
16244fi
16245rm -fr conftest*
16246
16247
16248fi
16249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16250$as_echo "$lt_cv_dlopen_self" >&6; }
16251
16252 if test "x$lt_cv_dlopen_self" = xyes; then
16253 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16255$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016256if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016257 $as_echo_n "(cached) " >&6
16258else
16259 if test "$cross_compiling" = yes; then :
16260 lt_cv_dlopen_self_static=cross
16261else
16262 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16263 lt_status=$lt_dlunknown
16264 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016265#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016266#include "confdefs.h"
16267
16268#if HAVE_DLFCN_H
16269#include <dlfcn.h>
16270#endif
16271
16272#include <stdio.h>
16273
16274#ifdef RTLD_GLOBAL
16275# define LT_DLGLOBAL RTLD_GLOBAL
16276#else
16277# ifdef DL_GLOBAL
16278# define LT_DLGLOBAL DL_GLOBAL
16279# else
16280# define LT_DLGLOBAL 0
16281# endif
16282#endif
16283
16284/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16285 find out it does not work in some platform. */
16286#ifndef LT_DLLAZY_OR_NOW
16287# ifdef RTLD_LAZY
16288# define LT_DLLAZY_OR_NOW RTLD_LAZY
16289# else
16290# ifdef DL_LAZY
16291# define LT_DLLAZY_OR_NOW DL_LAZY
16292# else
16293# ifdef RTLD_NOW
16294# define LT_DLLAZY_OR_NOW RTLD_NOW
16295# else
16296# ifdef DL_NOW
16297# define LT_DLLAZY_OR_NOW DL_NOW
16298# else
16299# define LT_DLLAZY_OR_NOW 0
16300# endif
16301# endif
16302# endif
16303# endif
16304#endif
16305
cristy0c60a692010-11-04 01:09:47 +000016306/* When -fvisbility=hidden is used, assume the code has been annotated
16307 correspondingly for the symbols needed. */
16308#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016309int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016310#endif
16311
cristyda16f162011-02-19 23:52:17 +000016312int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016313int main ()
16314{
16315 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16316 int status = $lt_dlunknown;
16317
16318 if (self)
16319 {
16320 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016321 else
16322 {
16323 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16324 else puts (dlerror ());
16325 }
cristy73bd4a52010-10-05 11:24:23 +000016326 /* dlclose (self); */
16327 }
16328 else
16329 puts (dlerror ());
16330
16331 return status;
16332}
16333_LT_EOF
16334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16335 (eval $ac_link) 2>&5
16336 ac_status=$?
16337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16338 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16339 (./conftest; exit; ) >&5 2>/dev/null
16340 lt_status=$?
16341 case x$lt_status in
16342 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16343 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16344 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16345 esac
16346 else :
16347 # compilation failed
16348 lt_cv_dlopen_self_static=no
16349 fi
16350fi
16351rm -fr conftest*
16352
16353
16354fi
16355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16356$as_echo "$lt_cv_dlopen_self_static" >&6; }
16357 fi
16358
16359 CPPFLAGS="$save_CPPFLAGS"
16360 LDFLAGS="$save_LDFLAGS"
16361 LIBS="$save_LIBS"
16362 ;;
16363 esac
16364
16365 case $lt_cv_dlopen_self in
16366 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16367 *) enable_dlopen_self=unknown ;;
16368 esac
16369
16370 case $lt_cv_dlopen_self_static in
16371 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16372 *) enable_dlopen_self_static=unknown ;;
16373 esac
16374fi
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392striplib=
16393old_striplib=
16394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16395$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16396if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16397 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16398 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16400$as_echo "yes" >&6; }
16401else
16402# FIXME - insert some real tests, host_os isn't really good enough
16403 case $host_os in
16404 darwin*)
16405 if test -n "$STRIP" ; then
16406 striplib="$STRIP -x"
16407 old_striplib="$STRIP -S"
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16409$as_echo "yes" >&6; }
16410 else
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16412$as_echo "no" >&6; }
16413 fi
16414 ;;
16415 *)
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16417$as_echo "no" >&6; }
16418 ;;
16419 esac
16420fi
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433 # Report which library types will actually be built
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16435$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16437$as_echo "$can_build_shared" >&6; }
16438
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16440$as_echo_n "checking whether to build shared libraries... " >&6; }
16441 test "$can_build_shared" = "no" && enable_shared=no
16442
16443 # On AIX, shared libraries and static libraries use the same namespace, and
16444 # are all built from PIC.
16445 case $host_os in
16446 aix3*)
16447 test "$enable_shared" = yes && enable_static=no
16448 if test -n "$RANLIB"; then
16449 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16450 postinstall_cmds='$RANLIB $lib'
16451 fi
16452 ;;
16453
16454 aix[4-9]*)
16455 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16456 test "$enable_shared" = yes && enable_static=no
16457 fi
16458 ;;
16459 esac
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16461$as_echo "$enable_shared" >&6; }
16462
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16464$as_echo_n "checking whether to build static libraries... " >&6; }
16465 # Make sure either enable_shared or enable_static is yes.
16466 test "$enable_shared" = yes || enable_static=yes
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16468$as_echo "$enable_static" >&6; }
16469
16470
16471
16472
16473fi
16474ac_ext=c
16475ac_cpp='$CPP $CPPFLAGS'
16476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16478ac_compiler_gnu=$ac_cv_c_compiler_gnu
16479
16480CC="$lt_save_CC"
16481
cristy0c60a692010-11-04 01:09:47 +000016482 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16483 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16484 (test "X$CXX" != "Xg++"))) ; then
16485 ac_ext=cpp
16486ac_cpp='$CXXCPP $CPPFLAGS'
16487ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16488ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16489ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16491$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16492if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016493 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016494 $as_echo_n "(cached) " >&6
16495else
16496 # Double quotes because CXXCPP needs to be expanded
16497 for CXXCPP in "$CXX -E" "/lib/cpp"
16498 do
16499 ac_preproc_ok=false
16500for ac_cxx_preproc_warn_flag in '' yes
16501do
16502 # Use a header file that comes with gcc, so configuring glibc
16503 # with a fresh cross-compiler works.
16504 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16505 # <limits.h> exists even on freestanding compilers.
16506 # On the NeXT, cc -E runs the code through the compiler's parser,
16507 # not just through cpp. "Syntax error" is here to catch this case.
16508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16509/* end confdefs.h. */
16510#ifdef __STDC__
16511# include <limits.h>
16512#else
16513# include <assert.h>
16514#endif
16515 Syntax error
16516_ACEOF
16517if ac_fn_cxx_try_cpp "$LINENO"; then :
16518
16519else
16520 # Broken: fails on valid input.
16521continue
16522fi
cristyda16f162011-02-19 23:52:17 +000016523rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016524
16525 # OK, works on sane cases. Now check whether nonexistent headers
16526 # can be detected and how.
16527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16528/* end confdefs.h. */
16529#include <ac_nonexistent.h>
16530_ACEOF
16531if ac_fn_cxx_try_cpp "$LINENO"; then :
16532 # Broken: success on invalid input.
16533continue
16534else
16535 # Passes both tests.
16536ac_preproc_ok=:
16537break
16538fi
cristyda16f162011-02-19 23:52:17 +000016539rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016540
16541done
16542# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016543rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016544if $ac_preproc_ok; then :
16545 break
16546fi
16547
16548 done
16549 ac_cv_prog_CXXCPP=$CXXCPP
16550
16551fi
16552 CXXCPP=$ac_cv_prog_CXXCPP
16553else
16554 ac_cv_prog_CXXCPP=$CXXCPP
16555fi
16556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16557$as_echo "$CXXCPP" >&6; }
16558ac_preproc_ok=false
16559for ac_cxx_preproc_warn_flag in '' yes
16560do
16561 # Use a header file that comes with gcc, so configuring glibc
16562 # with a fresh cross-compiler works.
16563 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16564 # <limits.h> exists even on freestanding compilers.
16565 # On the NeXT, cc -E runs the code through the compiler's parser,
16566 # not just through cpp. "Syntax error" is here to catch this case.
16567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16568/* end confdefs.h. */
16569#ifdef __STDC__
16570# include <limits.h>
16571#else
16572# include <assert.h>
16573#endif
16574 Syntax error
16575_ACEOF
16576if ac_fn_cxx_try_cpp "$LINENO"; then :
16577
16578else
16579 # Broken: fails on valid input.
16580continue
16581fi
cristyda16f162011-02-19 23:52:17 +000016582rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016583
16584 # OK, works on sane cases. Now check whether nonexistent headers
16585 # can be detected and how.
16586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16587/* end confdefs.h. */
16588#include <ac_nonexistent.h>
16589_ACEOF
16590if ac_fn_cxx_try_cpp "$LINENO"; then :
16591 # Broken: success on invalid input.
16592continue
16593else
16594 # Passes both tests.
16595ac_preproc_ok=:
16596break
16597fi
cristyda16f162011-02-19 23:52:17 +000016598rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016599
16600done
16601# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016602rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016603if $ac_preproc_ok; then :
16604
16605else
16606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16608as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16609See \`config.log' for more details" "$LINENO" 5; }
16610fi
16611
16612ac_ext=c
16613ac_cpp='$CPP $CPPFLAGS'
16614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16616ac_compiler_gnu=$ac_cv_c_compiler_gnu
16617
16618else
16619 _lt_caught_CXX_error=yes
16620fi
cristy73bd4a52010-10-05 11:24:23 +000016621
16622ac_ext=cpp
16623ac_cpp='$CXXCPP $CPPFLAGS'
16624ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16625ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16626ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16627
16628archive_cmds_need_lc_CXX=no
16629allow_undefined_flag_CXX=
16630always_export_symbols_CXX=no
16631archive_expsym_cmds_CXX=
16632compiler_needs_object_CXX=no
16633export_dynamic_flag_spec_CXX=
16634hardcode_direct_CXX=no
16635hardcode_direct_absolute_CXX=no
16636hardcode_libdir_flag_spec_CXX=
16637hardcode_libdir_flag_spec_ld_CXX=
16638hardcode_libdir_separator_CXX=
16639hardcode_minus_L_CXX=no
16640hardcode_shlibpath_var_CXX=unsupported
16641hardcode_automatic_CXX=no
16642inherit_rpath_CXX=no
16643module_cmds_CXX=
16644module_expsym_cmds_CXX=
16645link_all_deplibs_CXX=unknown
16646old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000016647reload_flag_CXX=$reload_flag
16648reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000016649no_undefined_flag_CXX=
16650whole_archive_flag_spec_CXX=
16651enable_shared_with_static_runtimes_CXX=no
16652
16653# Source file extension for C++ test sources.
16654ac_ext=cpp
16655
16656# Object file extension for compiled C++ test sources.
16657objext=o
16658objext_CXX=$objext
16659
16660# No sense in running all these tests if we already determined that
16661# the CXX compiler isn't working. Some variables (like enable_shared)
16662# are currently assumed to apply to all compilers on this platform,
16663# and will be corrupted by setting them based on a non-working compiler.
16664if test "$_lt_caught_CXX_error" != yes; then
16665 # Code to be used in simple compile tests
16666 lt_simple_compile_test_code="int some_variable = 0;"
16667
16668 # Code to be used in simple link tests
16669 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16670
16671 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16672
16673
16674
16675
16676
16677
16678# If no C compiler was specified, use CC.
16679LTCC=${LTCC-"$CC"}
16680
16681# If no C compiler flags were specified, use CFLAGS.
16682LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16683
16684# Allow CC to be a program name with arguments.
16685compiler=$CC
16686
16687
16688 # save warnings/boilerplate of simple test code
16689 ac_outfile=conftest.$ac_objext
16690echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16691eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16692_lt_compiler_boilerplate=`cat conftest.err`
16693$RM conftest*
16694
16695 ac_outfile=conftest.$ac_objext
16696echo "$lt_simple_link_test_code" >conftest.$ac_ext
16697eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16698_lt_linker_boilerplate=`cat conftest.err`
16699$RM -r conftest*
16700
16701
16702 # Allow CC to be a program name with arguments.
16703 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000016704 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016705 lt_save_LD=$LD
16706 lt_save_GCC=$GCC
16707 GCC=$GXX
16708 lt_save_with_gnu_ld=$with_gnu_ld
16709 lt_save_path_LD=$lt_cv_path_LD
16710 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16711 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16712 else
16713 $as_unset lt_cv_prog_gnu_ld
16714 fi
16715 if test -n "${lt_cv_path_LDCXX+set}"; then
16716 lt_cv_path_LD=$lt_cv_path_LDCXX
16717 else
16718 $as_unset lt_cv_path_LD
16719 fi
16720 test -z "${LDCXX+set}" || LD=$LDCXX
16721 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000016722 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016723 compiler=$CC
16724 compiler_CXX=$CC
16725 for cc_temp in $compiler""; do
16726 case $cc_temp in
16727 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16728 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16729 \-*) ;;
16730 *) break;;
16731 esac
16732done
cristy0c60a692010-11-04 01:09:47 +000016733cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000016734
16735
16736 if test -n "$compiler"; then
16737 # We don't want -fno-exception when compiling C++ code, so set the
16738 # no_builtin_flag separately
16739 if test "$GXX" = yes; then
16740 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16741 else
16742 lt_prog_compiler_no_builtin_flag_CXX=
16743 fi
16744
16745 if test "$GXX" = yes; then
16746 # Set up default GNU C++ configuration
16747
16748
16749
16750# Check whether --with-gnu-ld was given.
16751if test "${with_gnu_ld+set}" = set; then :
16752 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16753else
16754 with_gnu_ld=no
16755fi
16756
16757ac_prog=ld
16758if test "$GCC" = yes; then
16759 # Check if gcc -print-prog-name=ld gives a path.
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16761$as_echo_n "checking for ld used by $CC... " >&6; }
16762 case $host in
16763 *-*-mingw*)
16764 # gcc leaves a trailing carriage return which upsets mingw
16765 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16766 *)
16767 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16768 esac
16769 case $ac_prog in
16770 # Accept absolute paths.
16771 [\\/]* | ?:[\\/]*)
16772 re_direlt='/[^/][^/]*/\.\./'
16773 # Canonicalize the pathname of ld
16774 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16775 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16776 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16777 done
16778 test -z "$LD" && LD="$ac_prog"
16779 ;;
16780 "")
16781 # If it fails, then pretend we aren't using GCC.
16782 ac_prog=ld
16783 ;;
16784 *)
16785 # If it is relative, then search for the first ld in PATH.
16786 with_gnu_ld=unknown
16787 ;;
16788 esac
16789elif test "$with_gnu_ld" = yes; then
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16791$as_echo_n "checking for GNU ld... " >&6; }
16792else
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16794$as_echo_n "checking for non-GNU ld... " >&6; }
16795fi
cristyda16f162011-02-19 23:52:17 +000016796if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016797 $as_echo_n "(cached) " >&6
16798else
16799 if test -z "$LD"; then
16800 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16801 for ac_dir in $PATH; do
16802 IFS="$lt_save_ifs"
16803 test -z "$ac_dir" && ac_dir=.
16804 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16805 lt_cv_path_LD="$ac_dir/$ac_prog"
16806 # Check to see if the program is GNU ld. I'd rather use --version,
16807 # but apparently some variants of GNU ld only accept -v.
16808 # Break only if it was the GNU/non-GNU ld that we prefer.
16809 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16810 *GNU* | *'with BFD'*)
16811 test "$with_gnu_ld" != no && break
16812 ;;
16813 *)
16814 test "$with_gnu_ld" != yes && break
16815 ;;
16816 esac
16817 fi
16818 done
16819 IFS="$lt_save_ifs"
16820else
16821 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16822fi
16823fi
16824
16825LD="$lt_cv_path_LD"
16826if test -n "$LD"; then
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16828$as_echo "$LD" >&6; }
16829else
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16831$as_echo "no" >&6; }
16832fi
cristy98dddb52010-11-04 00:30:15 +000016833test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000016834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16835$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016836if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016837 $as_echo_n "(cached) " >&6
16838else
16839 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16840case `$LD -v 2>&1 </dev/null` in
16841*GNU* | *'with BFD'*)
16842 lt_cv_prog_gnu_ld=yes
16843 ;;
16844*)
16845 lt_cv_prog_gnu_ld=no
16846 ;;
16847esac
16848fi
16849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16850$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16851with_gnu_ld=$lt_cv_prog_gnu_ld
16852
16853
16854
16855
16856
16857
16858
16859 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16860 # archiving commands below assume that GNU ld is being used.
16861 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000016862 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16863 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016864
16865 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16866 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16867
16868 # If archive_cmds runs LD, not CC, wlarc should be empty
16869 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16870 # investigate it a little bit more. (MM)
16871 wlarc='${wl}'
16872
16873 # ancient GNU ld didn't support --whole-archive et. al.
16874 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16875 $GREP 'no-whole-archive' > /dev/null; then
16876 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16877 else
16878 whole_archive_flag_spec_CXX=
16879 fi
16880 else
16881 with_gnu_ld=no
16882 wlarc=
16883
16884 # A generic and very simple default shared library creation
16885 # command for GNU C++ for the case where it uses the native
16886 # linker, instead of GNU ld. If possible, this setting should
16887 # overridden to take advantage of the native linker features on
16888 # the platform it is being used on.
16889 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16890 fi
16891
16892 # Commands to make compiler produce verbose output that lists
16893 # what "hidden" libraries, object files and flags are used when
16894 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000016895 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000016896
16897 else
16898 GXX=no
16899 with_gnu_ld=no
16900 wlarc=
16901 fi
16902
16903 # PORTME: fill in a description of your system's C++ link characteristics
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16905$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16906 ld_shlibs_CXX=yes
16907 case $host_os in
16908 aix3*)
16909 # FIXME: insert proper C++ library support
16910 ld_shlibs_CXX=no
16911 ;;
16912 aix[4-9]*)
16913 if test "$host_cpu" = ia64; then
16914 # On IA64, the linker does run time linking by default, so we don't
16915 # have to do anything special.
16916 aix_use_runtimelinking=no
16917 exp_sym_flag='-Bexport'
16918 no_entry_flag=""
16919 else
16920 aix_use_runtimelinking=no
16921
16922 # Test if we are trying to use run time linking or normal
16923 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16924 # need to do runtime linking.
16925 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16926 for ld_flag in $LDFLAGS; do
16927 case $ld_flag in
16928 *-brtl*)
16929 aix_use_runtimelinking=yes
16930 break
16931 ;;
16932 esac
16933 done
16934 ;;
16935 esac
16936
16937 exp_sym_flag='-bexport'
16938 no_entry_flag='-bnoentry'
16939 fi
16940
16941 # When large executables or shared objects are built, AIX ld can
16942 # have problems creating the table of contents. If linking a library
16943 # or program results in "error TOC overflow" add -mminimal-toc to
16944 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16945 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16946
16947 archive_cmds_CXX=''
16948 hardcode_direct_CXX=yes
16949 hardcode_direct_absolute_CXX=yes
16950 hardcode_libdir_separator_CXX=':'
16951 link_all_deplibs_CXX=yes
16952 file_list_spec_CXX='${wl}-f,'
16953
16954 if test "$GXX" = yes; then
16955 case $host_os in aix4.[012]|aix4.[012].*)
16956 # We only want to do this on AIX 4.2 and lower, the check
16957 # below for broken collect2 doesn't work under 4.3+
16958 collect2name=`${CC} -print-prog-name=collect2`
16959 if test -f "$collect2name" &&
16960 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16961 then
16962 # We have reworked collect2
16963 :
16964 else
16965 # We have old collect2
16966 hardcode_direct_CXX=unsupported
16967 # It fails to find uninstalled libraries when the uninstalled
16968 # path is not listed in the libpath. Setting hardcode_minus_L
16969 # to unsupported forces relinking
16970 hardcode_minus_L_CXX=yes
16971 hardcode_libdir_flag_spec_CXX='-L$libdir'
16972 hardcode_libdir_separator_CXX=
16973 fi
16974 esac
16975 shared_flag='-shared'
16976 if test "$aix_use_runtimelinking" = yes; then
16977 shared_flag="$shared_flag "'${wl}-G'
16978 fi
16979 else
16980 # not using gcc
16981 if test "$host_cpu" = ia64; then
16982 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16983 # chokes on -Wl,-G. The following line is correct:
16984 shared_flag='-G'
16985 else
16986 if test "$aix_use_runtimelinking" = yes; then
16987 shared_flag='${wl}-G'
16988 else
16989 shared_flag='${wl}-bM:SRE'
16990 fi
16991 fi
16992 fi
16993
16994 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16995 # It seems that -bexpall does not export symbols beginning with
16996 # underscore (_), so it is better to generate a list of symbols to
16997 # export.
16998 always_export_symbols_CXX=yes
16999 if test "$aix_use_runtimelinking" = yes; then
17000 # Warning - without using the other runtime loading flags (-brtl),
17001 # -berok will link without error, but may produce a broken library.
17002 allow_undefined_flag_CXX='-berok'
17003 # Determine the default libpath from the value encoded in an empty
17004 # executable.
cristyda16f162011-02-19 23:52:17 +000017005 if test "${lt_cv_aix_libpath+set}" = set; then
17006 aix_libpath=$lt_cv_aix_libpath
17007else
17008 if ${lt_cv_aix_libpath__CXX+:} false; then :
17009 $as_echo_n "(cached) " >&6
17010else
17011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017012/* end confdefs.h. */
17013
17014int
17015main ()
17016{
17017
17018 ;
17019 return 0;
17020}
17021_ACEOF
17022if ac_fn_cxx_try_link "$LINENO"; then :
17023
cristyda16f162011-02-19 23:52:17 +000017024 lt_aix_libpath_sed='
17025 /Import File Strings/,/^$/ {
17026 /^0/ {
17027 s/^0 *\([^ ]*\) *$/\1/
17028 p
17029 }
17030 }'
17031 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17032 # Check for a 64-bit object if we didn't find anything.
17033 if test -z "$lt_cv_aix_libpath__CXX"; then
17034 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17035 fi
cristy73bd4a52010-10-05 11:24:23 +000017036fi
17037rm -f core conftest.err conftest.$ac_objext \
17038 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017039 if test -z "$lt_cv_aix_libpath__CXX"; then
17040 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17041 fi
17042
17043fi
17044
17045 aix_libpath=$lt_cv_aix_libpath__CXX
17046fi
cristy73bd4a52010-10-05 11:24:23 +000017047
17048 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17049
cristy0c60a692010-11-04 01:09:47 +000017050 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cristy73bd4a52010-10-05 11:24:23 +000017051 else
17052 if test "$host_cpu" = ia64; then
17053 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17054 allow_undefined_flag_CXX="-z nodefs"
17055 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"
17056 else
17057 # Determine the default libpath from the value encoded in an
17058 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017059 if test "${lt_cv_aix_libpath+set}" = set; then
17060 aix_libpath=$lt_cv_aix_libpath
17061else
17062 if ${lt_cv_aix_libpath__CXX+:} false; then :
17063 $as_echo_n "(cached) " >&6
17064else
17065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017066/* end confdefs.h. */
17067
17068int
17069main ()
17070{
17071
17072 ;
17073 return 0;
17074}
17075_ACEOF
17076if ac_fn_cxx_try_link "$LINENO"; then :
17077
cristyda16f162011-02-19 23:52:17 +000017078 lt_aix_libpath_sed='
17079 /Import File Strings/,/^$/ {
17080 /^0/ {
17081 s/^0 *\([^ ]*\) *$/\1/
17082 p
17083 }
17084 }'
17085 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17086 # Check for a 64-bit object if we didn't find anything.
17087 if test -z "$lt_cv_aix_libpath__CXX"; then
17088 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17089 fi
cristy73bd4a52010-10-05 11:24:23 +000017090fi
17091rm -f core conftest.err conftest.$ac_objext \
17092 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017093 if test -z "$lt_cv_aix_libpath__CXX"; then
17094 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17095 fi
17096
17097fi
17098
17099 aix_libpath=$lt_cv_aix_libpath__CXX
17100fi
cristy73bd4a52010-10-05 11:24:23 +000017101
17102 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17103 # Warning - without using the other run time loading flags,
17104 # -berok will link without error, but may produce a broken library.
17105 no_undefined_flag_CXX=' ${wl}-bernotok'
17106 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017107 if test "$with_gnu_ld" = yes; then
17108 # We only use this code for GNU lds that support --whole-archive.
17109 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17110 else
17111 # Exported symbols can be pulled into shared objects from archives
17112 whole_archive_flag_spec_CXX='$convenience'
17113 fi
cristy73bd4a52010-10-05 11:24:23 +000017114 archive_cmds_need_lc_CXX=yes
17115 # This is similar to how AIX traditionally builds its shared
17116 # libraries.
17117 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'
17118 fi
17119 fi
17120 ;;
17121
17122 beos*)
17123 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17124 allow_undefined_flag_CXX=unsupported
17125 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17126 # support --undefined. This deserves some investigation. FIXME
17127 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17128 else
17129 ld_shlibs_CXX=no
17130 fi
17131 ;;
17132
17133 chorus*)
17134 case $cc_basename in
17135 *)
17136 # FIXME: insert proper C++ library support
17137 ld_shlibs_CXX=no
17138 ;;
17139 esac
17140 ;;
17141
17142 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017143 case $GXX,$cc_basename in
17144 ,cl* | no,cl*)
17145 # Native MSVC
17146 # hardcode_libdir_flag_spec is actually meaningless, as there is
17147 # no search path for DLLs.
17148 hardcode_libdir_flag_spec_CXX=' '
17149 allow_undefined_flag_CXX=unsupported
17150 always_export_symbols_CXX=yes
17151 file_list_spec_CXX='@'
17152 # Tell ltmain to make .lib files, not .a files.
17153 libext=lib
17154 # Tell ltmain to make .dll files, not .so files.
17155 shrext_cmds=".dll"
17156 # FIXME: Setting linknames here is a bad hack.
17157 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17158 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17159 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17160 else
17161 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17162 fi~
17163 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17164 linknames='
17165 # The linker will not automatically build a static lib if we build a DLL.
17166 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17167 enable_shared_with_static_runtimes_CXX=yes
17168 # Don't use ranlib
17169 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17170 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17171 lt_tool_outputfile="@TOOL_OUTPUT@"~
17172 case $lt_outputfile in
17173 *.exe|*.EXE) ;;
17174 *)
17175 lt_outputfile="$lt_outputfile.exe"
17176 lt_tool_outputfile="$lt_tool_outputfile.exe"
17177 ;;
17178 esac~
17179 func_to_tool_file "$lt_outputfile"~
17180 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17181 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17182 $RM "$lt_outputfile.manifest";
17183 fi'
17184 ;;
17185 *)
17186 # g++
17187 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17188 # as there is no search path for DLLs.
17189 hardcode_libdir_flag_spec_CXX='-L$libdir'
17190 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17191 allow_undefined_flag_CXX=unsupported
17192 always_export_symbols_CXX=no
17193 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017194
cristyda16f162011-02-19 23:52:17 +000017195 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17196 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'
17197 # If the export-symbols file already is a .def file (1st line
17198 # is EXPORTS), use it as is; otherwise, prepend...
17199 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17200 cp $export_symbols $output_objdir/$soname.def;
17201 else
17202 echo EXPORTS > $output_objdir/$soname.def;
17203 cat $export_symbols >> $output_objdir/$soname.def;
17204 fi~
17205 $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'
17206 else
17207 ld_shlibs_CXX=no
17208 fi
17209 ;;
17210 esac
17211 ;;
cristy73bd4a52010-10-05 11:24:23 +000017212 darwin* | rhapsody*)
17213
17214
17215 archive_cmds_need_lc_CXX=no
17216 hardcode_direct_CXX=no
17217 hardcode_automatic_CXX=yes
17218 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017219 if test "$lt_cv_ld_force_load" = "yes"; then
17220 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\"`'
17221 else
17222 whole_archive_flag_spec_CXX=''
17223 fi
cristy73bd4a52010-10-05 11:24:23 +000017224 link_all_deplibs_CXX=yes
17225 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17226 case $cc_basename in
17227 ifort*) _lt_dar_can_shared=yes ;;
17228 *) _lt_dar_can_shared=$GCC ;;
17229 esac
17230 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017231 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017232 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}"
17233 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17234 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}"
17235 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}"
17236 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17237 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}"
17238 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}"
17239 fi
17240
17241 else
17242 ld_shlibs_CXX=no
17243 fi
17244
17245 ;;
17246
17247 dgux*)
17248 case $cc_basename in
17249 ec++*)
17250 # FIXME: insert proper C++ library support
17251 ld_shlibs_CXX=no
17252 ;;
17253 ghcx*)
17254 # Green Hills C++ Compiler
17255 # FIXME: insert proper C++ library support
17256 ld_shlibs_CXX=no
17257 ;;
17258 *)
17259 # FIXME: insert proper C++ library support
17260 ld_shlibs_CXX=no
17261 ;;
17262 esac
17263 ;;
17264
17265 freebsd[12]*)
17266 # C++ shared libraries reported to be fairly broken before
17267 # switch to ELF
17268 ld_shlibs_CXX=no
17269 ;;
17270
17271 freebsd-elf*)
17272 archive_cmds_need_lc_CXX=no
17273 ;;
17274
17275 freebsd* | dragonfly*)
17276 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17277 # conventions
17278 ld_shlibs_CXX=yes
17279 ;;
17280
17281 gnu*)
17282 ;;
17283
cristy0c60a692010-11-04 01:09:47 +000017284 haiku*)
17285 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17286 link_all_deplibs_CXX=yes
17287 ;;
17288
cristy73bd4a52010-10-05 11:24:23 +000017289 hpux9*)
17290 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17291 hardcode_libdir_separator_CXX=:
17292 export_dynamic_flag_spec_CXX='${wl}-E'
17293 hardcode_direct_CXX=yes
17294 hardcode_minus_L_CXX=yes # Not in the search PATH,
17295 # but as the default
17296 # location of the library.
17297
17298 case $cc_basename in
17299 CC*)
17300 # FIXME: insert proper C++ library support
17301 ld_shlibs_CXX=no
17302 ;;
17303 aCC*)
17304 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'
17305 # Commands to make compiler produce verbose output that lists
17306 # what "hidden" libraries, object files and flags are used when
17307 # linking a shared library.
17308 #
17309 # There doesn't appear to be a way to prevent this compiler from
17310 # explicitly linking system object files so we need to strip them
17311 # from the output so that they don't get included in the library
17312 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017313 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000017314 ;;
17315 *)
17316 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017317 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
cristy73bd4a52010-10-05 11:24:23 +000017318 else
17319 # FIXME: insert proper C++ library support
17320 ld_shlibs_CXX=no
17321 fi
17322 ;;
17323 esac
17324 ;;
17325
17326 hpux10*|hpux11*)
17327 if test $with_gnu_ld = no; then
17328 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17329 hardcode_libdir_separator_CXX=:
17330
17331 case $host_cpu in
17332 hppa*64*|ia64*)
17333 ;;
17334 *)
17335 export_dynamic_flag_spec_CXX='${wl}-E'
17336 ;;
17337 esac
17338 fi
17339 case $host_cpu in
17340 hppa*64*|ia64*)
17341 hardcode_direct_CXX=no
17342 hardcode_shlibpath_var_CXX=no
17343 ;;
17344 *)
17345 hardcode_direct_CXX=yes
17346 hardcode_direct_absolute_CXX=yes
17347 hardcode_minus_L_CXX=yes # Not in the search PATH,
17348 # but as the default
17349 # location of the library.
17350 ;;
17351 esac
17352
17353 case $cc_basename in
17354 CC*)
17355 # FIXME: insert proper C++ library support
17356 ld_shlibs_CXX=no
17357 ;;
17358 aCC*)
17359 case $host_cpu in
17360 hppa*64*)
17361 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17362 ;;
17363 ia64*)
17364 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17365 ;;
17366 *)
17367 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17368 ;;
17369 esac
17370 # Commands to make compiler produce verbose output that lists
17371 # what "hidden" libraries, object files and flags are used when
17372 # linking a shared library.
17373 #
17374 # There doesn't appear to be a way to prevent this compiler from
17375 # explicitly linking system object files so we need to strip them
17376 # from the output so that they don't get included in the library
17377 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017378 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000017379 ;;
17380 *)
17381 if test "$GXX" = yes; then
17382 if test $with_gnu_ld = no; then
17383 case $host_cpu in
17384 hppa*64*)
17385 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17386 ;;
17387 ia64*)
cristyda16f162011-02-19 23:52:17 +000017388 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000017389 ;;
17390 *)
cristyda16f162011-02-19 23:52:17 +000017391 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000017392 ;;
17393 esac
17394 fi
17395 else
17396 # FIXME: insert proper C++ library support
17397 ld_shlibs_CXX=no
17398 fi
17399 ;;
17400 esac
17401 ;;
17402
17403 interix[3-9]*)
17404 hardcode_direct_CXX=no
17405 hardcode_shlibpath_var_CXX=no
17406 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17407 export_dynamic_flag_spec_CXX='${wl}-E'
17408 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17409 # Instead, shared libraries are loaded at an image base (0x10000000 by
17410 # default) and relocated if they conflict, which is a slow very memory
17411 # consuming and fragmenting process. To avoid this, we pick a random,
17412 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17413 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17414 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'
17415 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'
17416 ;;
17417 irix5* | irix6*)
17418 case $cc_basename in
17419 CC*)
17420 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017421 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017422
17423 # Archives containing C++ object files must be created using
17424 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17425 # necessary to make sure instantiated templates are included
17426 # in the archive.
17427 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17428 ;;
17429 *)
17430 if test "$GXX" = yes; then
17431 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017432 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017433 else
cristyda16f162011-02-19 23:52:17 +000017434 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017435 fi
17436 fi
17437 link_all_deplibs_CXX=yes
17438 ;;
17439 esac
17440 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17441 hardcode_libdir_separator_CXX=:
17442 inherit_rpath_CXX=yes
17443 ;;
17444
cristy0c60a692010-11-04 01:09:47 +000017445 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017446 case $cc_basename in
17447 KCC*)
17448 # Kuck and Associates, Inc. (KAI) C++ Compiler
17449
17450 # KCC will only create a shared library if the output file
17451 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17452 # to its proper name (with version) after linking.
17453 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'
17454 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'
17455 # Commands to make compiler produce verbose output that lists
17456 # what "hidden" libraries, object files and flags are used when
17457 # linking a shared library.
17458 #
17459 # There doesn't appear to be a way to prevent this compiler from
17460 # explicitly linking system object files so we need to strip them
17461 # from the output so that they don't get included in the library
17462 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017463 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000017464
17465 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17466 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17467
17468 # Archives containing C++ object files must be created using
17469 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17470 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17471 ;;
17472 icpc* | ecpc* )
17473 # Intel C++
17474 with_gnu_ld=yes
17475 # version 8.0 and above of icpc choke on multiply defined symbols
17476 # if we add $predep_objects and $postdep_objects, however 7.1 and
17477 # earlier do not add the objects themselves.
17478 case `$CC -V 2>&1` in
17479 *"Version 7."*)
17480 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17481 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'
17482 ;;
17483 *) # Version 8.0 or newer
17484 tmp_idyn=
17485 case $host_cpu in
17486 ia64*) tmp_idyn=' -i_dynamic';;
17487 esac
17488 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17489 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'
17490 ;;
17491 esac
17492 archive_cmds_need_lc_CXX=no
17493 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17494 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17495 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17496 ;;
17497 pgCC* | pgcpp*)
17498 # Portland Group C++ compiler
17499 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017500 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017501 prelink_cmds_CXX='tpldir=Template.dir~
17502 rm -rf $tpldir~
17503 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017504 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017505 old_archive_cmds_CXX='tpldir=Template.dir~
17506 rm -rf $tpldir~
17507 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017508 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017509 $RANLIB $oldlib'
17510 archive_cmds_CXX='tpldir=Template.dir~
17511 rm -rf $tpldir~
17512 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017513 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017514 archive_expsym_cmds_CXX='tpldir=Template.dir~
17515 rm -rf $tpldir~
17516 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017517 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017518 ;;
cristy0c60a692010-11-04 01:09:47 +000017519 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017520 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17521 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'
17522 ;;
17523 esac
17524
17525 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17526 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017527 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000017528 ;;
17529 cxx*)
17530 # Compaq C++
17531 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17532 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'
17533
17534 runpath_var=LD_RUN_PATH
17535 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17536 hardcode_libdir_separator_CXX=:
17537
17538 # Commands to make compiler produce verbose output that lists
17539 # what "hidden" libraries, object files and flags are used when
17540 # linking a shared library.
17541 #
17542 # There doesn't appear to be a way to prevent this compiler from
17543 # explicitly linking system object files so we need to strip them
17544 # from the output so that they don't get included in the library
17545 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017546 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
cristy73bd4a52010-10-05 11:24:23 +000017547 ;;
cristy0c60a692010-11-04 01:09:47 +000017548 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017549 # IBM XL 8.0 on PPC, with GNU ld
17550 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17551 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17552 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17553 if test "x$supports_anon_versioning" = xyes; then
17554 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17555 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17556 echo "local: *; };" >> $output_objdir/$libname.ver~
17557 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17558 fi
17559 ;;
17560 *)
17561 case `$CC -V 2>&1 | sed 5q` in
17562 *Sun\ C*)
17563 # Sun C++ 5.9
17564 no_undefined_flag_CXX=' -zdefs'
17565 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17566 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'
17567 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017568 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000017569 compiler_needs_object_CXX=yes
17570
17571 # Not sure whether something based on
17572 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17573 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017574 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017575
17576 # Archives containing C++ object files must be created using
17577 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17578 # necessary to make sure instantiated templates are included
17579 # in the archive.
17580 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17581 ;;
17582 esac
17583 ;;
17584 esac
17585 ;;
17586
17587 lynxos*)
17588 # FIXME: insert proper C++ library support
17589 ld_shlibs_CXX=no
17590 ;;
17591
17592 m88k*)
17593 # FIXME: insert proper C++ library support
17594 ld_shlibs_CXX=no
17595 ;;
17596
17597 mvs*)
17598 case $cc_basename in
17599 cxx*)
17600 # FIXME: insert proper C++ library support
17601 ld_shlibs_CXX=no
17602 ;;
17603 *)
17604 # FIXME: insert proper C++ library support
17605 ld_shlibs_CXX=no
17606 ;;
17607 esac
17608 ;;
17609
17610 netbsd*)
17611 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17612 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17613 wlarc=
17614 hardcode_libdir_flag_spec_CXX='-R$libdir'
17615 hardcode_direct_CXX=yes
17616 hardcode_shlibpath_var_CXX=no
17617 fi
17618 # Workaround some broken pre-1.5 toolchains
17619 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17620 ;;
17621
17622 *nto* | *qnx*)
17623 ld_shlibs_CXX=yes
17624 ;;
17625
17626 openbsd2*)
17627 # C++ shared libraries are fairly broken
17628 ld_shlibs_CXX=no
17629 ;;
17630
17631 openbsd*)
17632 if test -f /usr/libexec/ld.so; then
17633 hardcode_direct_CXX=yes
17634 hardcode_shlibpath_var_CXX=no
17635 hardcode_direct_absolute_CXX=yes
17636 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17637 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17638 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17639 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17640 export_dynamic_flag_spec_CXX='${wl}-E'
17641 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17642 fi
cristy0c60a692010-11-04 01:09:47 +000017643 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017644 else
17645 ld_shlibs_CXX=no
17646 fi
17647 ;;
17648
17649 osf3* | osf4* | osf5*)
17650 case $cc_basename in
17651 KCC*)
17652 # Kuck and Associates, Inc. (KAI) C++ Compiler
17653
17654 # KCC will only create a shared library if the output file
17655 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17656 # to its proper name (with version) after linking.
17657 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'
17658
17659 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17660 hardcode_libdir_separator_CXX=:
17661
17662 # Archives containing C++ object files must be created using
17663 # the KAI C++ compiler.
17664 case $host in
17665 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17666 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17667 esac
17668 ;;
17669 RCC*)
17670 # Rational C++ 2.4.1
17671 # FIXME: insert proper C++ library support
17672 ld_shlibs_CXX=no
17673 ;;
17674 cxx*)
17675 case $host in
17676 osf3*)
17677 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000017678 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017679 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17680 ;;
17681 *)
17682 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000017683 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017684 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17685 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000017686 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
cristy73bd4a52010-10-05 11:24:23 +000017687 $RM $lib.exp'
17688 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17689 ;;
17690 esac
17691
17692 hardcode_libdir_separator_CXX=:
17693
17694 # Commands to make compiler produce verbose output that lists
17695 # what "hidden" libraries, object files and flags are used when
17696 # linking a shared library.
17697 #
17698 # There doesn't appear to be a way to prevent this compiler from
17699 # explicitly linking system object files so we need to strip them
17700 # from the output so that they don't get included in the library
17701 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017702 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000017703 ;;
17704 *)
17705 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17706 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17707 case $host in
17708 osf3*)
cristy0c60a692010-11-04 01:09:47 +000017709 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017710 ;;
17711 *)
cristyda16f162011-02-19 23:52:17 +000017712 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017713 ;;
17714 esac
17715
17716 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17717 hardcode_libdir_separator_CXX=:
17718
17719 # Commands to make compiler produce verbose output that lists
17720 # what "hidden" libraries, object files and flags are used when
17721 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017722 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017723
17724 else
17725 # FIXME: insert proper C++ library support
17726 ld_shlibs_CXX=no
17727 fi
17728 ;;
17729 esac
17730 ;;
17731
17732 psos*)
17733 # FIXME: insert proper C++ library support
17734 ld_shlibs_CXX=no
17735 ;;
17736
17737 sunos4*)
17738 case $cc_basename in
17739 CC*)
17740 # Sun C++ 4.x
17741 # FIXME: insert proper C++ library support
17742 ld_shlibs_CXX=no
17743 ;;
17744 lcc*)
17745 # Lucid
17746 # FIXME: insert proper C++ library support
17747 ld_shlibs_CXX=no
17748 ;;
17749 *)
17750 # FIXME: insert proper C++ library support
17751 ld_shlibs_CXX=no
17752 ;;
17753 esac
17754 ;;
17755
17756 solaris*)
17757 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000017758 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000017759 # Sun C++ 4.2, 5.x and Centerline C++
17760 archive_cmds_need_lc_CXX=yes
17761 no_undefined_flag_CXX=' -zdefs'
17762 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17763 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17764 $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'
17765
17766 hardcode_libdir_flag_spec_CXX='-R$libdir'
17767 hardcode_shlibpath_var_CXX=no
17768 case $host_os in
17769 solaris2.[0-5] | solaris2.[0-5].*) ;;
17770 *)
17771 # The compiler driver will combine and reorder linker options,
17772 # but understands `-z linker_flag'.
17773 # Supported since Solaris 2.6 (maybe 2.5.1?)
17774 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17775 ;;
17776 esac
17777 link_all_deplibs_CXX=yes
17778
cristy0c60a692010-11-04 01:09:47 +000017779 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017780
17781 # Archives containing C++ object files must be created using
17782 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17783 # necessary to make sure instantiated templates are included
17784 # in the archive.
17785 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17786 ;;
17787 gcx*)
17788 # Green Hills C++ Compiler
17789 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17790
17791 # The C++ compiler must be used to create the archive.
17792 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17793 ;;
17794 *)
17795 # GNU C++ compiler with Solaris linker
17796 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17797 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17798 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000017799 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017800 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cristyda16f162011-02-19 23:52:17 +000017801 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000017802
17803 # Commands to make compiler produce verbose output that lists
17804 # what "hidden" libraries, object files and flags are used when
17805 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017806 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017807 else
17808 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17809 # platform.
17810 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17811 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17812 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17813
17814 # Commands to make compiler produce verbose output that lists
17815 # what "hidden" libraries, object files and flags are used when
17816 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017817 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017818 fi
17819
17820 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17821 case $host_os in
17822 solaris2.[0-5] | solaris2.[0-5].*) ;;
17823 *)
17824 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17825 ;;
17826 esac
17827 fi
17828 ;;
17829 esac
17830 ;;
17831
17832 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17833 no_undefined_flag_CXX='${wl}-z,text'
17834 archive_cmds_need_lc_CXX=no
17835 hardcode_shlibpath_var_CXX=no
17836 runpath_var='LD_RUN_PATH'
17837
17838 case $cc_basename in
17839 CC*)
17840 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17841 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17842 ;;
17843 *)
17844 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17845 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17846 ;;
17847 esac
17848 ;;
17849
17850 sysv5* | sco3.2v5* | sco5v6*)
17851 # Note: We can NOT use -z defs as we might desire, because we do not
17852 # link with -lc, and that would cause any symbols used from libc to
17853 # always be unresolved, which means just about no library would
17854 # ever link correctly. If we're not using GNU ld we use -z text
17855 # though, which does catch some bad symbols but isn't as heavy-handed
17856 # as -z defs.
17857 no_undefined_flag_CXX='${wl}-z,text'
17858 allow_undefined_flag_CXX='${wl}-z,nodefs'
17859 archive_cmds_need_lc_CXX=no
17860 hardcode_shlibpath_var_CXX=no
17861 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17862 hardcode_libdir_separator_CXX=':'
17863 link_all_deplibs_CXX=yes
17864 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17865 runpath_var='LD_RUN_PATH'
17866
17867 case $cc_basename in
17868 CC*)
17869 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17870 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy0c60a692010-11-04 01:09:47 +000017871 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17872 '"$old_archive_cmds_CXX"
17873 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17874 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000017875 ;;
17876 *)
17877 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17878 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17879 ;;
17880 esac
17881 ;;
17882
17883 tandem*)
17884 case $cc_basename in
17885 NCC*)
17886 # NonStop-UX NCC 3.20
17887 # FIXME: insert proper C++ library support
17888 ld_shlibs_CXX=no
17889 ;;
17890 *)
17891 # FIXME: insert proper C++ library support
17892 ld_shlibs_CXX=no
17893 ;;
17894 esac
17895 ;;
17896
17897 vxworks*)
17898 # FIXME: insert proper C++ library support
17899 ld_shlibs_CXX=no
17900 ;;
17901
17902 *)
17903 # FIXME: insert proper C++ library support
17904 ld_shlibs_CXX=no
17905 ;;
17906 esac
17907
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17909$as_echo "$ld_shlibs_CXX" >&6; }
17910 test "$ld_shlibs_CXX" = no && can_build_shared=no
17911
17912 GCC_CXX="$GXX"
17913 LD_CXX="$LD"
17914
17915 ## CAVEAT EMPTOR:
17916 ## There is no encapsulation within the following macros, do not change
17917 ## the running order or otherwise move them around unless you know exactly
17918 ## what you are doing...
17919 # Dependencies to place before and after the object being linked:
17920predep_objects_CXX=
17921postdep_objects_CXX=
17922predeps_CXX=
17923postdeps_CXX=
17924compiler_lib_search_path_CXX=
17925
17926cat > conftest.$ac_ext <<_LT_EOF
17927class Foo
17928{
17929public:
17930 Foo (void) { a = 0; }
17931private:
17932 int a;
17933};
17934_LT_EOF
17935
cristyda16f162011-02-19 23:52:17 +000017936
17937_lt_libdeps_save_CFLAGS=$CFLAGS
17938case "$CC $CFLAGS " in #(
17939*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17940*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17941esac
17942
cristy73bd4a52010-10-05 11:24:23 +000017943if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17944 (eval $ac_compile) 2>&5
17945 ac_status=$?
17946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17947 test $ac_status = 0; }; then
17948 # Parse the compiler output and extract the necessary
17949 # objects, libraries and library flags.
17950
17951 # Sentinel used to keep track of whether or not we are before
17952 # the conftest object file.
17953 pre_test_object_deps_done=no
17954
17955 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000017956 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000017957
17958 -L* | -R* | -l*)
17959 # Some compilers place space between "-{L,R}" and the path.
17960 # Remove the space.
17961 if test $p = "-L" ||
17962 test $p = "-R"; then
17963 prev=$p
17964 continue
cristy73bd4a52010-10-05 11:24:23 +000017965 fi
17966
cristyda16f162011-02-19 23:52:17 +000017967 # Expand the sysroot to ease extracting the directories later.
17968 if test -z "$prev"; then
17969 case $p in
17970 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17971 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17972 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17973 esac
17974 fi
17975 case $p in
17976 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17977 esac
cristy73bd4a52010-10-05 11:24:23 +000017978 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000017979 case ${prev} in
17980 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000017981 # Internal compiler library paths should come after those
17982 # provided the user. The postdeps already come after the
17983 # user supplied libs so there is no need to process them.
17984 if test -z "$compiler_lib_search_path_CXX"; then
17985 compiler_lib_search_path_CXX="${prev}${p}"
17986 else
17987 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17988 fi
17989 ;;
17990 # The "-l" case would never come before the object being
17991 # linked, so don't bother handling this case.
17992 esac
17993 else
17994 if test -z "$postdeps_CXX"; then
17995 postdeps_CXX="${prev}${p}"
17996 else
17997 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17998 fi
17999 fi
cristyda16f162011-02-19 23:52:17 +000018000 prev=
cristy73bd4a52010-10-05 11:24:23 +000018001 ;;
18002
cristyda16f162011-02-19 23:52:17 +000018003 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018004 *.$objext)
18005 # This assumes that the test object file only shows up
18006 # once in the compiler output.
18007 if test "$p" = "conftest.$objext"; then
18008 pre_test_object_deps_done=yes
18009 continue
18010 fi
18011
18012 if test "$pre_test_object_deps_done" = no; then
18013 if test -z "$predep_objects_CXX"; then
18014 predep_objects_CXX="$p"
18015 else
18016 predep_objects_CXX="$predep_objects_CXX $p"
18017 fi
18018 else
18019 if test -z "$postdep_objects_CXX"; then
18020 postdep_objects_CXX="$p"
18021 else
18022 postdep_objects_CXX="$postdep_objects_CXX $p"
18023 fi
18024 fi
18025 ;;
18026
18027 *) ;; # Ignore the rest.
18028
18029 esac
18030 done
18031
18032 # Clean up.
18033 rm -f a.out a.exe
18034else
18035 echo "libtool.m4: error: problem compiling CXX test program"
18036fi
18037
18038$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018039CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018040
18041# PORTME: override above test on systems where it is broken
18042case $host_os in
18043interix[3-9]*)
18044 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18045 # hack all around it, let's just trust "g++" to DTRT.
18046 predep_objects_CXX=
18047 postdep_objects_CXX=
18048 postdeps_CXX=
18049 ;;
18050
18051linux*)
18052 case `$CC -V 2>&1 | sed 5q` in
18053 *Sun\ C*)
18054 # Sun C++ 5.9
18055
18056 # The more standards-conforming stlport4 library is
18057 # incompatible with the Cstd library. Avoid specifying
18058 # it if it's in CXXFLAGS. Ignore libCrun as
18059 # -library=stlport4 depends on it.
18060 case " $CXX $CXXFLAGS " in
18061 *" -library=stlport4 "*)
18062 solaris_use_stlport4=yes
18063 ;;
18064 esac
18065
18066 if test "$solaris_use_stlport4" != yes; then
18067 postdeps_CXX='-library=Cstd -library=Crun'
18068 fi
18069 ;;
18070 esac
18071 ;;
18072
18073solaris*)
18074 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018075 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018076 # The more standards-conforming stlport4 library is
18077 # incompatible with the Cstd library. Avoid specifying
18078 # it if it's in CXXFLAGS. Ignore libCrun as
18079 # -library=stlport4 depends on it.
18080 case " $CXX $CXXFLAGS " in
18081 *" -library=stlport4 "*)
18082 solaris_use_stlport4=yes
18083 ;;
18084 esac
18085
18086 # Adding this requires a known-good setup of shared libraries for
18087 # Sun compiler versions before 5.6, else PIC objects from an old
18088 # archive will be linked into the output, leading to subtle bugs.
18089 if test "$solaris_use_stlport4" != yes; then
18090 postdeps_CXX='-library=Cstd -library=Crun'
18091 fi
18092 ;;
18093 esac
18094 ;;
18095esac
18096
18097
18098case " $postdeps_CXX " in
18099*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18100esac
18101 compiler_lib_search_dirs_CXX=
18102if test -n "${compiler_lib_search_path_CXX}"; then
18103 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18104fi
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136 lt_prog_compiler_wl_CXX=
18137lt_prog_compiler_pic_CXX=
18138lt_prog_compiler_static_CXX=
18139
cristy73bd4a52010-10-05 11:24:23 +000018140
18141 # C++ specific cases for pic, static, wl, etc.
18142 if test "$GXX" = yes; then
18143 lt_prog_compiler_wl_CXX='-Wl,'
18144 lt_prog_compiler_static_CXX='-static'
18145
18146 case $host_os in
18147 aix*)
18148 # All AIX code is PIC.
18149 if test "$host_cpu" = ia64; then
18150 # AIX 5 now supports IA64 processor
18151 lt_prog_compiler_static_CXX='-Bstatic'
18152 fi
18153 ;;
18154
18155 amigaos*)
18156 case $host_cpu in
18157 powerpc)
18158 # see comment about AmigaOS4 .so support
18159 lt_prog_compiler_pic_CXX='-fPIC'
18160 ;;
18161 m68k)
18162 # FIXME: we need at least 68020 code to build shared libraries, but
18163 # adding the `-m68020' flag to GCC prevents building anything better,
18164 # like `-m68040'.
18165 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18166 ;;
18167 esac
18168 ;;
18169
18170 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18171 # PIC is the default for these OSes.
18172 ;;
18173 mingw* | cygwin* | os2* | pw32* | cegcc*)
18174 # This hack is so that the source file can tell whether it is being
18175 # built for inclusion in a dll (and should export symbols for example).
18176 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18177 # (--disable-auto-import) libraries
18178 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18179 ;;
18180 darwin* | rhapsody*)
18181 # PIC is the default on this platform
18182 # Common symbols not allowed in MH_DYLIB files
18183 lt_prog_compiler_pic_CXX='-fno-common'
18184 ;;
18185 *djgpp*)
18186 # DJGPP does not support shared libraries at all
18187 lt_prog_compiler_pic_CXX=
18188 ;;
cristy0c60a692010-11-04 01:09:47 +000018189 haiku*)
18190 # PIC is the default for Haiku.
18191 # The "-static" flag exists, but is broken.
18192 lt_prog_compiler_static_CXX=
18193 ;;
cristy73bd4a52010-10-05 11:24:23 +000018194 interix[3-9]*)
18195 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18196 # Instead, we relocate shared libraries at runtime.
18197 ;;
18198 sysv4*MP*)
18199 if test -d /usr/nec; then
18200 lt_prog_compiler_pic_CXX=-Kconform_pic
18201 fi
18202 ;;
18203 hpux*)
18204 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18205 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18206 # sets the default TLS model and affects inlining.
18207 case $host_cpu in
18208 hppa*64*)
18209 ;;
18210 *)
18211 lt_prog_compiler_pic_CXX='-fPIC'
18212 ;;
18213 esac
18214 ;;
18215 *qnx* | *nto*)
18216 # QNX uses GNU C++, but need to define -shared option too, otherwise
18217 # it will coredump.
18218 lt_prog_compiler_pic_CXX='-fPIC -shared'
18219 ;;
18220 *)
18221 lt_prog_compiler_pic_CXX='-fPIC'
18222 ;;
18223 esac
18224 else
18225 case $host_os in
18226 aix[4-9]*)
18227 # All AIX code is PIC.
18228 if test "$host_cpu" = ia64; then
18229 # AIX 5 now supports IA64 processor
18230 lt_prog_compiler_static_CXX='-Bstatic'
18231 else
18232 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18233 fi
18234 ;;
18235 chorus*)
18236 case $cc_basename in
18237 cxch68*)
18238 # Green Hills C++ Compiler
18239 # _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"
18240 ;;
18241 esac
18242 ;;
cristyda16f162011-02-19 23:52:17 +000018243 mingw* | cygwin* | os2* | pw32* | cegcc*)
18244 # This hack is so that the source file can tell whether it is being
18245 # built for inclusion in a dll (and should export symbols for example).
18246 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18247 ;;
cristy73bd4a52010-10-05 11:24:23 +000018248 dgux*)
18249 case $cc_basename in
18250 ec++*)
18251 lt_prog_compiler_pic_CXX='-KPIC'
18252 ;;
18253 ghcx*)
18254 # Green Hills C++ Compiler
18255 lt_prog_compiler_pic_CXX='-pic'
18256 ;;
18257 *)
18258 ;;
18259 esac
18260 ;;
18261 freebsd* | dragonfly*)
18262 # FreeBSD uses GNU C++
18263 ;;
18264 hpux9* | hpux10* | hpux11*)
18265 case $cc_basename in
18266 CC*)
18267 lt_prog_compiler_wl_CXX='-Wl,'
18268 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18269 if test "$host_cpu" != ia64; then
18270 lt_prog_compiler_pic_CXX='+Z'
18271 fi
18272 ;;
18273 aCC*)
18274 lt_prog_compiler_wl_CXX='-Wl,'
18275 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18276 case $host_cpu in
18277 hppa*64*|ia64*)
18278 # +Z the default
18279 ;;
18280 *)
18281 lt_prog_compiler_pic_CXX='+Z'
18282 ;;
18283 esac
18284 ;;
18285 *)
18286 ;;
18287 esac
18288 ;;
18289 interix*)
18290 # This is c89, which is MS Visual C++ (no shared libs)
18291 # Anyone wants to do a port?
18292 ;;
18293 irix5* | irix6* | nonstopux*)
18294 case $cc_basename in
18295 CC*)
18296 lt_prog_compiler_wl_CXX='-Wl,'
18297 lt_prog_compiler_static_CXX='-non_shared'
18298 # CC pic flag -KPIC is the default.
18299 ;;
18300 *)
18301 ;;
18302 esac
18303 ;;
cristy0c60a692010-11-04 01:09:47 +000018304 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018305 case $cc_basename in
18306 KCC*)
18307 # KAI C++ Compiler
18308 lt_prog_compiler_wl_CXX='--backend -Wl,'
18309 lt_prog_compiler_pic_CXX='-fPIC'
18310 ;;
18311 ecpc* )
18312 # old Intel C++ for x86_64 which still supported -KPIC.
18313 lt_prog_compiler_wl_CXX='-Wl,'
18314 lt_prog_compiler_pic_CXX='-KPIC'
18315 lt_prog_compiler_static_CXX='-static'
18316 ;;
18317 icpc* )
18318 # Intel C++, used to be incompatible with GCC.
18319 # ICC 10 doesn't accept -KPIC any more.
18320 lt_prog_compiler_wl_CXX='-Wl,'
18321 lt_prog_compiler_pic_CXX='-fPIC'
18322 lt_prog_compiler_static_CXX='-static'
18323 ;;
18324 pgCC* | pgcpp*)
18325 # Portland Group C++ compiler
18326 lt_prog_compiler_wl_CXX='-Wl,'
18327 lt_prog_compiler_pic_CXX='-fpic'
18328 lt_prog_compiler_static_CXX='-Bstatic'
18329 ;;
18330 cxx*)
18331 # Compaq C++
18332 # Make sure the PIC flag is empty. It appears that all Alpha
18333 # Linux and Compaq Tru64 Unix objects are PIC.
18334 lt_prog_compiler_pic_CXX=
18335 lt_prog_compiler_static_CXX='-non_shared'
18336 ;;
cristy0c60a692010-11-04 01:09:47 +000018337 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18338 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018339 lt_prog_compiler_wl_CXX='-Wl,'
18340 lt_prog_compiler_pic_CXX='-qpic'
18341 lt_prog_compiler_static_CXX='-qstaticlink'
18342 ;;
18343 *)
18344 case `$CC -V 2>&1 | sed 5q` in
18345 *Sun\ C*)
18346 # Sun C++ 5.9
18347 lt_prog_compiler_pic_CXX='-KPIC'
18348 lt_prog_compiler_static_CXX='-Bstatic'
18349 lt_prog_compiler_wl_CXX='-Qoption ld '
18350 ;;
18351 esac
18352 ;;
18353 esac
18354 ;;
18355 lynxos*)
18356 ;;
18357 m88k*)
18358 ;;
18359 mvs*)
18360 case $cc_basename in
18361 cxx*)
18362 lt_prog_compiler_pic_CXX='-W c,exportall'
18363 ;;
18364 *)
18365 ;;
18366 esac
18367 ;;
18368 netbsd*)
18369 ;;
18370 *qnx* | *nto*)
18371 # QNX uses GNU C++, but need to define -shared option too, otherwise
18372 # it will coredump.
18373 lt_prog_compiler_pic_CXX='-fPIC -shared'
18374 ;;
18375 osf3* | osf4* | osf5*)
18376 case $cc_basename in
18377 KCC*)
18378 lt_prog_compiler_wl_CXX='--backend -Wl,'
18379 ;;
18380 RCC*)
18381 # Rational C++ 2.4.1
18382 lt_prog_compiler_pic_CXX='-pic'
18383 ;;
18384 cxx*)
18385 # Digital/Compaq C++
18386 lt_prog_compiler_wl_CXX='-Wl,'
18387 # Make sure the PIC flag is empty. It appears that all Alpha
18388 # Linux and Compaq Tru64 Unix objects are PIC.
18389 lt_prog_compiler_pic_CXX=
18390 lt_prog_compiler_static_CXX='-non_shared'
18391 ;;
18392 *)
18393 ;;
18394 esac
18395 ;;
18396 psos*)
18397 ;;
18398 solaris*)
18399 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018400 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018401 # Sun C++ 4.2, 5.x and Centerline C++
18402 lt_prog_compiler_pic_CXX='-KPIC'
18403 lt_prog_compiler_static_CXX='-Bstatic'
18404 lt_prog_compiler_wl_CXX='-Qoption ld '
18405 ;;
18406 gcx*)
18407 # Green Hills C++ Compiler
18408 lt_prog_compiler_pic_CXX='-PIC'
18409 ;;
18410 *)
18411 ;;
18412 esac
18413 ;;
18414 sunos4*)
18415 case $cc_basename in
18416 CC*)
18417 # Sun C++ 4.x
18418 lt_prog_compiler_pic_CXX='-pic'
18419 lt_prog_compiler_static_CXX='-Bstatic'
18420 ;;
18421 lcc*)
18422 # Lucid
18423 lt_prog_compiler_pic_CXX='-pic'
18424 ;;
18425 *)
18426 ;;
18427 esac
18428 ;;
18429 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18430 case $cc_basename in
18431 CC*)
18432 lt_prog_compiler_wl_CXX='-Wl,'
18433 lt_prog_compiler_pic_CXX='-KPIC'
18434 lt_prog_compiler_static_CXX='-Bstatic'
18435 ;;
18436 esac
18437 ;;
18438 tandem*)
18439 case $cc_basename in
18440 NCC*)
18441 # NonStop-UX NCC 3.20
18442 lt_prog_compiler_pic_CXX='-KPIC'
18443 ;;
18444 *)
18445 ;;
18446 esac
18447 ;;
18448 vxworks*)
18449 ;;
18450 *)
18451 lt_prog_compiler_can_build_shared_CXX=no
18452 ;;
18453 esac
18454 fi
18455
18456case $host_os in
18457 # For platforms which do not support PIC, -DPIC is meaningless:
18458 *djgpp*)
18459 lt_prog_compiler_pic_CXX=
18460 ;;
18461 *)
18462 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18463 ;;
18464esac
cristy73bd4a52010-10-05 11:24:23 +000018465
cristyda16f162011-02-19 23:52:17 +000018466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18467$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18468if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18469 $as_echo_n "(cached) " >&6
18470else
18471 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18472fi
18473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18474$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18475lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018476
18477#
18478# Check to make sure the PIC flag actually works.
18479#
18480if test -n "$lt_prog_compiler_pic_CXX"; then
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18482$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018483if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018484 $as_echo_n "(cached) " >&6
18485else
18486 lt_cv_prog_compiler_pic_works_CXX=no
18487 ac_outfile=conftest.$ac_objext
18488 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18489 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18490 # Insert the option either (1) after the last *FLAGS variable, or
18491 # (2) before a word containing "conftest.", or (3) at the end.
18492 # Note that $ac_compile itself does not contain backslashes and begins
18493 # with a dollar sign (not a hyphen), so the echo should work correctly.
18494 # The option is referenced via a variable to avoid confusing sed.
18495 lt_compile=`echo "$ac_compile" | $SED \
18496 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18498 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018499 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018500 (eval "$lt_compile" 2>conftest.err)
18501 ac_status=$?
18502 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018504 if (exit $ac_status) && test -s "$ac_outfile"; then
18505 # The compiler can only warn and ignore the option if not recognized
18506 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018507 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018508 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18509 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18510 lt_cv_prog_compiler_pic_works_CXX=yes
18511 fi
18512 fi
18513 $RM conftest*
18514
18515fi
18516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18517$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18518
18519if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18520 case $lt_prog_compiler_pic_CXX in
18521 "" | " "*) ;;
18522 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18523 esac
18524else
18525 lt_prog_compiler_pic_CXX=
18526 lt_prog_compiler_can_build_shared_CXX=no
18527fi
18528
18529fi
18530
18531
18532
cristyda16f162011-02-19 23:52:17 +000018533
18534
cristy73bd4a52010-10-05 11:24:23 +000018535#
18536# Check to make sure the static flag actually works.
18537#
18538wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18540$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018541if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018542 $as_echo_n "(cached) " >&6
18543else
18544 lt_cv_prog_compiler_static_works_CXX=no
18545 save_LDFLAGS="$LDFLAGS"
18546 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18547 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18548 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18549 # The linker can only warn and ignore the option if not recognized
18550 # So say no if there are warnings
18551 if test -s conftest.err; then
18552 # Append any errors to the config.log.
18553 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018554 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18556 if diff conftest.exp conftest.er2 >/dev/null; then
18557 lt_cv_prog_compiler_static_works_CXX=yes
18558 fi
18559 else
18560 lt_cv_prog_compiler_static_works_CXX=yes
18561 fi
18562 fi
18563 $RM -r conftest*
18564 LDFLAGS="$save_LDFLAGS"
18565
18566fi
18567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18568$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18569
18570if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18571 :
18572else
18573 lt_prog_compiler_static_CXX=
18574fi
18575
18576
18577
18578
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18580$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018581if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018582 $as_echo_n "(cached) " >&6
18583else
18584 lt_cv_prog_compiler_c_o_CXX=no
18585 $RM -r conftest 2>/dev/null
18586 mkdir conftest
18587 cd conftest
18588 mkdir out
18589 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18590
18591 lt_compiler_flag="-o out/conftest2.$ac_objext"
18592 # Insert the option either (1) after the last *FLAGS variable, or
18593 # (2) before a word containing "conftest.", or (3) at the end.
18594 # Note that $ac_compile itself does not contain backslashes and begins
18595 # with a dollar sign (not a hyphen), so the echo should work correctly.
18596 lt_compile=`echo "$ac_compile" | $SED \
18597 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18598 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18599 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018600 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018601 (eval "$lt_compile" 2>out/conftest.err)
18602 ac_status=$?
18603 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018605 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18606 then
18607 # The compiler can only warn and ignore the option if not recognized
18608 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018609 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018610 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18611 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18612 lt_cv_prog_compiler_c_o_CXX=yes
18613 fi
18614 fi
18615 chmod u+w . 2>&5
18616 $RM conftest*
18617 # SGI C++ compiler will create directory out/ii_files/ for
18618 # template instantiation
18619 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18620 $RM out/* && rmdir out
18621 cd ..
18622 $RM -r conftest
18623 $RM conftest*
18624
18625fi
18626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18627$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18628
18629
18630
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18632$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018633if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018634 $as_echo_n "(cached) " >&6
18635else
18636 lt_cv_prog_compiler_c_o_CXX=no
18637 $RM -r conftest 2>/dev/null
18638 mkdir conftest
18639 cd conftest
18640 mkdir out
18641 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18642
18643 lt_compiler_flag="-o out/conftest2.$ac_objext"
18644 # Insert the option either (1) after the last *FLAGS variable, or
18645 # (2) before a word containing "conftest.", or (3) at the end.
18646 # Note that $ac_compile itself does not contain backslashes and begins
18647 # with a dollar sign (not a hyphen), so the echo should work correctly.
18648 lt_compile=`echo "$ac_compile" | $SED \
18649 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18650 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18651 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018652 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018653 (eval "$lt_compile" 2>out/conftest.err)
18654 ac_status=$?
18655 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018657 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18658 then
18659 # The compiler can only warn and ignore the option if not recognized
18660 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018661 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018662 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18663 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18664 lt_cv_prog_compiler_c_o_CXX=yes
18665 fi
18666 fi
18667 chmod u+w . 2>&5
18668 $RM conftest*
18669 # SGI C++ compiler will create directory out/ii_files/ for
18670 # template instantiation
18671 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18672 $RM out/* && rmdir out
18673 cd ..
18674 $RM -r conftest
18675 $RM conftest*
18676
18677fi
18678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18679$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18680
18681
18682
18683
18684hard_links="nottested"
18685if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18686 # do not overwrite the value of need_locks provided by the user
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18688$as_echo_n "checking if we can lock with hard links... " >&6; }
18689 hard_links=yes
18690 $RM conftest*
18691 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18692 touch conftest.a
18693 ln conftest.a conftest.b 2>&5 || hard_links=no
18694 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18696$as_echo "$hard_links" >&6; }
18697 if test "$hard_links" = no; then
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18699$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18700 need_locks=warn
18701 fi
18702else
18703 need_locks=no
18704fi
18705
18706
18707
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18709$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18710
18711 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018712 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000018713 case $host_os in
18714 aix[4-9]*)
18715 # If we're using GNU nm, then we don't want the "-C" option.
18716 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000018717 # Also, AIX nm treats weak defined symbols like other global defined
18718 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000018719 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000018720 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cristy73bd4a52010-10-05 11:24:23 +000018721 else
18722 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'
18723 fi
18724 ;;
18725 pw32*)
18726 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000018727 ;;
cristy73bd4a52010-10-05 11:24:23 +000018728 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018729 case $cc_basename in
18730 cl*) ;;
18731 *)
18732 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
18733 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18734 ;;
18735 esac
18736 ;;
cristy73bd4a52010-10-05 11:24:23 +000018737 *)
18738 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018739 ;;
cristy73bd4a52010-10-05 11:24:23 +000018740 esac
cristy73bd4a52010-10-05 11:24:23 +000018741
18742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18743$as_echo "$ld_shlibs_CXX" >&6; }
18744test "$ld_shlibs_CXX" = no && can_build_shared=no
18745
18746with_gnu_ld_CXX=$with_gnu_ld
18747
18748
18749
18750
18751
18752
18753#
18754# Do we need to explicitly link libc?
18755#
18756case "x$archive_cmds_need_lc_CXX" in
18757x|xyes)
18758 # Assume -lc should be added
18759 archive_cmds_need_lc_CXX=yes
18760
18761 if test "$enable_shared" = yes && test "$GCC" = yes; then
18762 case $archive_cmds_CXX in
18763 *'~'*)
18764 # FIXME: we may have to deal with multi-command sequences.
18765 ;;
18766 '$CC '*)
18767 # Test whether the compiler implicitly links with -lc since on some
18768 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18769 # to ld, don't add -lc before -lgcc.
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18771$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018772if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018773 $as_echo_n "(cached) " >&6
18774else
18775 $RM conftest*
18776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018777
cristy0c60a692010-11-04 01:09:47 +000018778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000018779 (eval $ac_compile) 2>&5
18780 ac_status=$?
18781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18782 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000018783 soname=conftest
18784 lib=conftest
18785 libobjs=conftest.$ac_objext
18786 deplibs=
18787 wl=$lt_prog_compiler_wl_CXX
18788 pic_flag=$lt_prog_compiler_pic_CXX
18789 compiler_flags=-v
18790 linker_flags=-v
18791 verstring=
18792 output_objdir=.
18793 libname=conftest
18794 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18795 allow_undefined_flag_CXX=
18796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000018797 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18798 ac_status=$?
18799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18800 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000018801 then
18802 lt_cv_archive_cmds_need_lc_CXX=no
18803 else
18804 lt_cv_archive_cmds_need_lc_CXX=yes
18805 fi
18806 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18807 else
18808 cat conftest.err 1>&5
18809 fi
18810 $RM conftest*
18811
18812fi
18813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18814$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18815 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000018816 ;;
18817 esac
18818 fi
18819 ;;
18820esac
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18886$as_echo_n "checking dynamic linker characteristics... " >&6; }
18887
18888library_names_spec=
18889libname_spec='lib$name'
18890soname_spec=
18891shrext_cmds=".so"
18892postinstall_cmds=
18893postuninstall_cmds=
18894finish_cmds=
18895finish_eval=
18896shlibpath_var=
18897shlibpath_overrides_runpath=unknown
18898version_type=none
18899dynamic_linker="$host_os ld.so"
18900sys_lib_dlsearch_path_spec="/lib /usr/lib"
18901need_lib_prefix=unknown
18902hardcode_into_libs=no
18903
18904# when you set need_version to no, make sure it does not cause -set_version
18905# flags to be left without arguments
18906need_version=unknown
18907
18908case $host_os in
18909aix3*)
18910 version_type=linux
18911 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18912 shlibpath_var=LIBPATH
18913
18914 # AIX 3 has no versioning support, so we append a major version to the name.
18915 soname_spec='${libname}${release}${shared_ext}$major'
18916 ;;
18917
18918aix[4-9]*)
18919 version_type=linux
18920 need_lib_prefix=no
18921 need_version=no
18922 hardcode_into_libs=yes
18923 if test "$host_cpu" = ia64; then
18924 # AIX 5 supports IA64
18925 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18926 shlibpath_var=LD_LIBRARY_PATH
18927 else
18928 # With GCC up to 2.95.x, collect2 would create an import file
18929 # for dependence libraries. The import file would start with
18930 # the line `#! .'. This would cause the generated library to
18931 # depend on `.', always an invalid library. This was fixed in
18932 # development snapshots of GCC prior to 3.0.
18933 case $host_os in
18934 aix4 | aix4.[01] | aix4.[01].*)
18935 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18936 echo ' yes '
18937 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18938 :
18939 else
18940 can_build_shared=no
18941 fi
18942 ;;
18943 esac
18944 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18945 # soname into executable. Probably we can add versioning support to
18946 # collect2, so additional links can be useful in future.
18947 if test "$aix_use_runtimelinking" = yes; then
18948 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18949 # instead of lib<name>.a to let people know that these are not
18950 # typical AIX shared libraries.
18951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18952 else
18953 # We preserve .a as extension for shared libraries through AIX4.2
18954 # and later when we are not doing run time linking.
18955 library_names_spec='${libname}${release}.a $libname.a'
18956 soname_spec='${libname}${release}${shared_ext}$major'
18957 fi
18958 shlibpath_var=LIBPATH
18959 fi
18960 ;;
18961
18962amigaos*)
18963 case $host_cpu in
18964 powerpc)
18965 # Since July 2007 AmigaOS4 officially supports .so libraries.
18966 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18968 ;;
18969 m68k)
18970 library_names_spec='$libname.ixlibrary $libname.a'
18971 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000018972 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
cristy73bd4a52010-10-05 11:24:23 +000018973 ;;
18974 esac
18975 ;;
18976
18977beos*)
18978 library_names_spec='${libname}${shared_ext}'
18979 dynamic_linker="$host_os ld.so"
18980 shlibpath_var=LIBRARY_PATH
18981 ;;
18982
18983bsdi[45]*)
18984 version_type=linux
18985 need_version=no
18986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18987 soname_spec='${libname}${release}${shared_ext}$major'
18988 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18989 shlibpath_var=LD_LIBRARY_PATH
18990 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18991 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18992 # the default ld.so.conf also contains /usr/contrib/lib and
18993 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18994 # libtool to hard-code these into programs
18995 ;;
18996
18997cygwin* | mingw* | pw32* | cegcc*)
18998 version_type=windows
18999 shrext_cmds=".dll"
19000 need_version=no
19001 need_lib_prefix=no
19002
cristyda16f162011-02-19 23:52:17 +000019003 case $GCC,$cc_basename in
19004 yes,*)
19005 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019006 library_names_spec='$libname.dll.a'
19007 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19008 postinstall_cmds='base_file=`basename \${file}`~
19009 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19010 dldir=$destdir/`dirname \$dlpath`~
19011 test -d \$dldir || mkdir -p \$dldir~
19012 $install_prog $dir/$dlname \$dldir/$dlname~
19013 chmod a+x \$dldir/$dlname~
19014 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19015 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19016 fi'
19017 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19018 dlpath=$dir/\$dldll~
19019 $RM \$dlpath'
19020 shlibpath_overrides_runpath=yes
19021
19022 case $host_os in
19023 cygwin*)
19024 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19025 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019026
cristy73bd4a52010-10-05 11:24:23 +000019027 ;;
19028 mingw* | cegcc*)
19029 # MinGW DLLs use traditional 'lib' prefix
19030 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019031 ;;
19032 pw32*)
19033 # pw32 DLLs use 'pw' prefix rather than 'lib'
19034 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19035 ;;
19036 esac
cristyda16f162011-02-19 23:52:17 +000019037 dynamic_linker='Win32 ld.exe'
19038 ;;
19039
19040 *,cl*)
19041 # Native MSVC
19042 libname_spec='$name'
19043 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19044 library_names_spec='${libname}.dll.lib'
19045
19046 case $build_os in
19047 mingw*)
19048 sys_lib_search_path_spec=
19049 lt_save_ifs=$IFS
19050 IFS=';'
19051 for lt_path in $LIB
19052 do
19053 IFS=$lt_save_ifs
19054 # Let DOS variable expansion print the short 8.3 style file name.
19055 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19056 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19057 done
19058 IFS=$lt_save_ifs
19059 # Convert to MSYS style.
19060 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19061 ;;
19062 cygwin*)
19063 # Convert to unix form, then to dos form, then back to unix form
19064 # but this time dos style (no spaces!) so that the unix form looks
19065 # like /cygdrive/c/PROGRA~1:/cygdr...
19066 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19067 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19068 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19069 ;;
19070 *)
19071 sys_lib_search_path_spec="$LIB"
19072 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19073 # It is most probably a Windows format PATH.
19074 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19075 else
19076 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19077 fi
19078 # FIXME: find the short name or the path components, as spaces are
19079 # common. (e.g. "Program Files" -> "PROGRA~1")
19080 ;;
19081 esac
19082
19083 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19084 postinstall_cmds='base_file=`basename \${file}`~
19085 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19086 dldir=$destdir/`dirname \$dlpath`~
19087 test -d \$dldir || mkdir -p \$dldir~
19088 $install_prog $dir/$dlname \$dldir/$dlname'
19089 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19090 dlpath=$dir/\$dldll~
19091 $RM \$dlpath'
19092 shlibpath_overrides_runpath=yes
19093 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019094 ;;
19095
19096 *)
cristyda16f162011-02-19 23:52:17 +000019097 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019098 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019099 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019100 ;;
19101 esac
cristy73bd4a52010-10-05 11:24:23 +000019102 # FIXME: first we should search . and the directory the executable is in
19103 shlibpath_var=PATH
19104 ;;
19105
19106darwin* | rhapsody*)
19107 dynamic_linker="$host_os dyld"
19108 version_type=darwin
19109 need_lib_prefix=no
19110 need_version=no
19111 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19112 soname_spec='${libname}${release}${major}$shared_ext'
19113 shlibpath_overrides_runpath=yes
19114 shlibpath_var=DYLD_LIBRARY_PATH
19115 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19116
19117 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19118 ;;
19119
19120dgux*)
19121 version_type=linux
19122 need_lib_prefix=no
19123 need_version=no
19124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19125 soname_spec='${libname}${release}${shared_ext}$major'
19126 shlibpath_var=LD_LIBRARY_PATH
19127 ;;
19128
19129freebsd1*)
19130 dynamic_linker=no
19131 ;;
19132
19133freebsd* | dragonfly*)
19134 # DragonFly does not have aout. When/if they implement a new
19135 # versioning mechanism, adjust this.
19136 if test -x /usr/bin/objformat; then
19137 objformat=`/usr/bin/objformat`
19138 else
19139 case $host_os in
19140 freebsd[123]*) objformat=aout ;;
19141 *) objformat=elf ;;
19142 esac
19143 fi
19144 version_type=freebsd-$objformat
19145 case $version_type in
19146 freebsd-elf*)
19147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19148 need_version=no
19149 need_lib_prefix=no
19150 ;;
19151 freebsd-*)
19152 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19153 need_version=yes
19154 ;;
19155 esac
19156 shlibpath_var=LD_LIBRARY_PATH
19157 case $host_os in
19158 freebsd2*)
19159 shlibpath_overrides_runpath=yes
19160 ;;
19161 freebsd3.[01]* | freebsdelf3.[01]*)
19162 shlibpath_overrides_runpath=yes
19163 hardcode_into_libs=yes
19164 ;;
19165 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19166 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19167 shlibpath_overrides_runpath=no
19168 hardcode_into_libs=yes
19169 ;;
19170 *) # from 4.6 on, and DragonFly
19171 shlibpath_overrides_runpath=yes
19172 hardcode_into_libs=yes
19173 ;;
19174 esac
19175 ;;
19176
19177gnu*)
19178 version_type=linux
19179 need_lib_prefix=no
19180 need_version=no
19181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19182 soname_spec='${libname}${release}${shared_ext}$major'
19183 shlibpath_var=LD_LIBRARY_PATH
19184 hardcode_into_libs=yes
19185 ;;
19186
cristy0c60a692010-11-04 01:09:47 +000019187haiku*)
19188 version_type=linux
19189 need_lib_prefix=no
19190 need_version=no
19191 dynamic_linker="$host_os runtime_loader"
19192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19193 soname_spec='${libname}${release}${shared_ext}$major'
19194 shlibpath_var=LIBRARY_PATH
19195 shlibpath_overrides_runpath=yes
19196 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19197 hardcode_into_libs=yes
19198 ;;
19199
cristy73bd4a52010-10-05 11:24:23 +000019200hpux9* | hpux10* | hpux11*)
19201 # Give a soname corresponding to the major version so that dld.sl refuses to
19202 # link against other versions.
19203 version_type=sunos
19204 need_lib_prefix=no
19205 need_version=no
19206 case $host_cpu in
19207 ia64*)
19208 shrext_cmds='.so'
19209 hardcode_into_libs=yes
19210 dynamic_linker="$host_os dld.so"
19211 shlibpath_var=LD_LIBRARY_PATH
19212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19214 soname_spec='${libname}${release}${shared_ext}$major'
19215 if test "X$HPUX_IA64_MODE" = X32; then
19216 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19217 else
19218 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19219 fi
19220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19221 ;;
19222 hppa*64*)
19223 shrext_cmds='.sl'
19224 hardcode_into_libs=yes
19225 dynamic_linker="$host_os dld.sl"
19226 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19227 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19229 soname_spec='${libname}${release}${shared_ext}$major'
19230 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19231 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19232 ;;
19233 *)
19234 shrext_cmds='.sl'
19235 dynamic_linker="$host_os dld.sl"
19236 shlibpath_var=SHLIB_PATH
19237 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19239 soname_spec='${libname}${release}${shared_ext}$major'
19240 ;;
19241 esac
cristy0c60a692010-11-04 01:09:47 +000019242 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019243 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019244 # or fails outright, so override atomically:
19245 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019246 ;;
19247
19248interix[3-9]*)
19249 version_type=linux
19250 need_lib_prefix=no
19251 need_version=no
19252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19253 soname_spec='${libname}${release}${shared_ext}$major'
19254 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19255 shlibpath_var=LD_LIBRARY_PATH
19256 shlibpath_overrides_runpath=no
19257 hardcode_into_libs=yes
19258 ;;
19259
19260irix5* | irix6* | nonstopux*)
19261 case $host_os in
19262 nonstopux*) version_type=nonstopux ;;
19263 *)
19264 if test "$lt_cv_prog_gnu_ld" = yes; then
19265 version_type=linux
19266 else
19267 version_type=irix
19268 fi ;;
19269 esac
19270 need_lib_prefix=no
19271 need_version=no
19272 soname_spec='${libname}${release}${shared_ext}$major'
19273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19274 case $host_os in
19275 irix5* | nonstopux*)
19276 libsuff= shlibsuff=
19277 ;;
19278 *)
19279 case $LD in # libtool.m4 will add one of these switches to LD
19280 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19281 libsuff= shlibsuff= libmagic=32-bit;;
19282 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19283 libsuff=32 shlibsuff=N32 libmagic=N32;;
19284 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19285 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19286 *) libsuff= shlibsuff= libmagic=never-match;;
19287 esac
19288 ;;
19289 esac
19290 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19291 shlibpath_overrides_runpath=no
19292 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19293 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19294 hardcode_into_libs=yes
19295 ;;
19296
19297# No shared lib support for Linux oldld, aout, or coff.
19298linux*oldld* | linux*aout* | linux*coff*)
19299 dynamic_linker=no
19300 ;;
19301
19302# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000019303linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019304 version_type=linux
19305 need_lib_prefix=no
19306 need_version=no
19307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19308 soname_spec='${libname}${release}${shared_ext}$major'
19309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19310 shlibpath_var=LD_LIBRARY_PATH
19311 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019312
cristy73bd4a52010-10-05 11:24:23 +000019313 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019314 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019315 $as_echo_n "(cached) " >&6
19316else
19317 lt_cv_shlibpath_overrides_runpath=no
19318 save_LDFLAGS=$LDFLAGS
19319 save_libdir=$libdir
19320 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19321 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019323/* end confdefs.h. */
19324
19325int
19326main ()
19327{
19328
19329 ;
19330 return 0;
19331}
19332_ACEOF
19333if ac_fn_cxx_try_link "$LINENO"; then :
19334 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019335 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019336fi
19337fi
19338rm -f core conftest.err conftest.$ac_objext \
19339 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019340 LDFLAGS=$save_LDFLAGS
19341 libdir=$save_libdir
19342
19343fi
19344
19345 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019346
19347 # This implies no fast_install, which is unacceptable.
19348 # Some rework will be needed to allow for fast_install
19349 # before this can be enabled.
19350 hardcode_into_libs=yes
19351
19352 # Add ABI-specific directories to the system library path.
19353 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19354
19355 # Append ld.so.conf contents to the search path
19356 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019357 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
cristy73bd4a52010-10-05 11:24:23 +000019358 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019359
cristy73bd4a52010-10-05 11:24:23 +000019360 fi
19361
19362 # We used to test for /lib/ld.so.1 and disable shared libraries on
19363 # powerpc, because MkLinux only supported shared libraries with the
19364 # GNU dynamic linker. Since this was broken with cross compilers,
19365 # most powerpc-linux boxes support dynamic linking these days and
19366 # people can always --disable-shared, the test was removed, and we
19367 # assume the GNU/Linux dynamic linker is in use.
19368 dynamic_linker='GNU/Linux ld.so'
19369 ;;
19370
19371netbsd*)
19372 version_type=sunos
19373 need_lib_prefix=no
19374 need_version=no
19375 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19378 dynamic_linker='NetBSD (a.out) ld.so'
19379 else
19380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19381 soname_spec='${libname}${release}${shared_ext}$major'
19382 dynamic_linker='NetBSD ld.elf_so'
19383 fi
19384 shlibpath_var=LD_LIBRARY_PATH
19385 shlibpath_overrides_runpath=yes
19386 hardcode_into_libs=yes
19387 ;;
19388
19389newsos6)
19390 version_type=linux
19391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19392 shlibpath_var=LD_LIBRARY_PATH
19393 shlibpath_overrides_runpath=yes
19394 ;;
19395
19396*nto* | *qnx*)
19397 version_type=qnx
19398 need_lib_prefix=no
19399 need_version=no
19400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19401 soname_spec='${libname}${release}${shared_ext}$major'
19402 shlibpath_var=LD_LIBRARY_PATH
19403 shlibpath_overrides_runpath=no
19404 hardcode_into_libs=yes
19405 dynamic_linker='ldqnx.so'
19406 ;;
19407
19408openbsd*)
19409 version_type=sunos
19410 sys_lib_dlsearch_path_spec="/usr/lib"
19411 need_lib_prefix=no
19412 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19413 case $host_os in
19414 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19415 *) need_version=no ;;
19416 esac
19417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19419 shlibpath_var=LD_LIBRARY_PATH
19420 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19421 case $host_os in
19422 openbsd2.[89] | openbsd2.[89].*)
19423 shlibpath_overrides_runpath=no
19424 ;;
19425 *)
19426 shlibpath_overrides_runpath=yes
19427 ;;
19428 esac
19429 else
19430 shlibpath_overrides_runpath=yes
19431 fi
19432 ;;
19433
19434os2*)
19435 libname_spec='$name'
19436 shrext_cmds=".dll"
19437 need_lib_prefix=no
19438 library_names_spec='$libname${shared_ext} $libname.a'
19439 dynamic_linker='OS/2 ld.exe'
19440 shlibpath_var=LIBPATH
19441 ;;
19442
19443osf3* | osf4* | osf5*)
19444 version_type=osf
19445 need_lib_prefix=no
19446 need_version=no
19447 soname_spec='${libname}${release}${shared_ext}$major'
19448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19449 shlibpath_var=LD_LIBRARY_PATH
19450 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19451 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19452 ;;
19453
19454rdos*)
19455 dynamic_linker=no
19456 ;;
19457
19458solaris*)
19459 version_type=linux
19460 need_lib_prefix=no
19461 need_version=no
19462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19463 soname_spec='${libname}${release}${shared_ext}$major'
19464 shlibpath_var=LD_LIBRARY_PATH
19465 shlibpath_overrides_runpath=yes
19466 hardcode_into_libs=yes
19467 # ldd complains unless libraries are executable
19468 postinstall_cmds='chmod +x $lib'
19469 ;;
19470
19471sunos4*)
19472 version_type=sunos
19473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19474 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19475 shlibpath_var=LD_LIBRARY_PATH
19476 shlibpath_overrides_runpath=yes
19477 if test "$with_gnu_ld" = yes; then
19478 need_lib_prefix=no
19479 fi
19480 need_version=yes
19481 ;;
19482
19483sysv4 | sysv4.3*)
19484 version_type=linux
19485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19486 soname_spec='${libname}${release}${shared_ext}$major'
19487 shlibpath_var=LD_LIBRARY_PATH
19488 case $host_vendor in
19489 sni)
19490 shlibpath_overrides_runpath=no
19491 need_lib_prefix=no
19492 runpath_var=LD_RUN_PATH
19493 ;;
19494 siemens)
19495 need_lib_prefix=no
19496 ;;
19497 motorola)
19498 need_lib_prefix=no
19499 need_version=no
19500 shlibpath_overrides_runpath=no
19501 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19502 ;;
19503 esac
19504 ;;
19505
19506sysv4*MP*)
19507 if test -d /usr/nec ;then
19508 version_type=linux
19509 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19510 soname_spec='$libname${shared_ext}.$major'
19511 shlibpath_var=LD_LIBRARY_PATH
19512 fi
19513 ;;
19514
19515sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19516 version_type=freebsd-elf
19517 need_lib_prefix=no
19518 need_version=no
19519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19520 soname_spec='${libname}${release}${shared_ext}$major'
19521 shlibpath_var=LD_LIBRARY_PATH
19522 shlibpath_overrides_runpath=yes
19523 hardcode_into_libs=yes
19524 if test "$with_gnu_ld" = yes; then
19525 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19526 else
19527 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19528 case $host_os in
19529 sco3.2v5*)
19530 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19531 ;;
19532 esac
19533 fi
19534 sys_lib_dlsearch_path_spec='/usr/lib'
19535 ;;
19536
19537tpf*)
19538 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19539 version_type=linux
19540 need_lib_prefix=no
19541 need_version=no
19542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19543 shlibpath_var=LD_LIBRARY_PATH
19544 shlibpath_overrides_runpath=no
19545 hardcode_into_libs=yes
19546 ;;
19547
19548uts4*)
19549 version_type=linux
19550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19551 soname_spec='${libname}${release}${shared_ext}$major'
19552 shlibpath_var=LD_LIBRARY_PATH
19553 ;;
19554
19555*)
19556 dynamic_linker=no
19557 ;;
19558esac
19559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19560$as_echo "$dynamic_linker" >&6; }
19561test "$dynamic_linker" = no && can_build_shared=no
19562
19563variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19564if test "$GCC" = yes; then
19565 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19566fi
19567
19568if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19569 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19570fi
19571if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19572 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19573fi
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
cristy0c60a692010-11-04 01:09:47 +000019610
19611
cristy73bd4a52010-10-05 11:24:23 +000019612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19613$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19614hardcode_action_CXX=
19615if test -n "$hardcode_libdir_flag_spec_CXX" ||
19616 test -n "$runpath_var_CXX" ||
19617 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19618
19619 # We can hardcode non-existent directories.
19620 if test "$hardcode_direct_CXX" != no &&
19621 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19622 # have to relink, otherwise we might link with an installed library
19623 # when we should be linking with a yet-to-be-installed one
19624 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19625 test "$hardcode_minus_L_CXX" != no; then
19626 # Linking always hardcodes the temporary library directory.
19627 hardcode_action_CXX=relink
19628 else
19629 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19630 hardcode_action_CXX=immediate
19631 fi
19632else
19633 # We cannot hardcode anything, or else we can only hardcode existing
19634 # directories.
19635 hardcode_action_CXX=unsupported
19636fi
19637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19638$as_echo "$hardcode_action_CXX" >&6; }
19639
19640if test "$hardcode_action_CXX" = relink ||
19641 test "$inherit_rpath_CXX" = yes; then
19642 # Fast installation is not supported
19643 enable_fast_install=no
19644elif test "$shlibpath_overrides_runpath" = yes ||
19645 test "$enable_shared" = no; then
19646 # Fast installation is not necessary
19647 enable_fast_install=needless
19648fi
19649
19650
19651
19652
19653
19654
19655
19656 fi # test -n "$compiler"
19657
19658 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000019659 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019660 LDCXX=$LD
19661 LD=$lt_save_LD
19662 GCC=$lt_save_GCC
19663 with_gnu_ld=$lt_save_with_gnu_ld
19664 lt_cv_path_LDCXX=$lt_cv_path_LD
19665 lt_cv_path_LD=$lt_save_path_LD
19666 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19667 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19668fi # test "$_lt_caught_CXX_error" != yes
19669
19670ac_ext=c
19671ac_cpp='$CPP $CPPFLAGS'
19672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19674ac_compiler_gnu=$ac_cv_c_compiler_gnu
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688 ac_config_commands="$ac_config_commands libtool"
19689
19690
19691
19692
19693# Only expand once:
19694
19695
19696
cristy3ed852e2009-09-05 21:47:34 +000019697
19698
19699# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000019700
19701
19702
19703
19704
19705
19706
cristy73bd4a52010-10-05 11:24:23 +000019707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19708$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019709if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019710 $as_echo_n "(cached) " >&6
19711else
19712
19713module=yes
19714eval libltdl_cv_shlibext=$shrext_cmds
19715
19716fi
19717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19718$as_echo "$libltdl_cv_shlibext" >&6; }
19719if test -n "$libltdl_cv_shlibext"; then
19720
19721cat >>confdefs.h <<_ACEOF
19722#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19723_ACEOF
19724
19725fi
19726
19727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19728$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019729if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019730 $as_echo_n "(cached) " >&6
19731else
19732 lt_cv_module_path_var="$shlibpath_var"
19733fi
19734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19735$as_echo "$lt_cv_module_path_var" >&6; }
19736if test -n "$lt_cv_module_path_var"; then
19737
19738cat >>confdefs.h <<_ACEOF
19739#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19740_ACEOF
19741
19742fi
19743
19744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19745$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019746if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019747 $as_echo_n "(cached) " >&6
19748else
19749 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19750fi
19751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19752$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19753if test -n "$lt_cv_sys_dlsearch_path"; then
19754 sys_dlsearch_path=
19755 for dir in $lt_cv_sys_dlsearch_path; do
19756 if test -z "$sys_dlsearch_path"; then
19757 sys_dlsearch_path="$dir"
19758 else
19759 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19760 fi
19761 done
19762
19763cat >>confdefs.h <<_ACEOF
19764#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19765_ACEOF
19766
19767fi
19768
19769
19770LT_DLLOADERS=
19771
19772
19773ac_ext=c
19774ac_cpp='$CPP $CPPFLAGS'
19775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19777ac_compiler_gnu=$ac_cv_c_compiler_gnu
19778
19779
19780LIBADD_DLOPEN=
19781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19782$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019783if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019784 $as_echo_n "(cached) " >&6
19785else
19786 ac_func_search_save_LIBS=$LIBS
19787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19788/* end confdefs.h. */
19789
19790/* Override any GCC internal prototype to avoid an error.
19791 Use char because int might match the return type of a GCC
19792 builtin and then its argument prototype would still apply. */
19793#ifdef __cplusplus
19794extern "C"
19795#endif
19796char dlopen ();
19797int
19798main ()
19799{
19800return dlopen ();
19801 ;
19802 return 0;
19803}
19804_ACEOF
19805for ac_lib in '' dl; do
19806 if test -z "$ac_lib"; then
19807 ac_res="none required"
19808 else
19809 ac_res=-l$ac_lib
19810 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19811 fi
19812 if ac_fn_c_try_link "$LINENO"; then :
19813 ac_cv_search_dlopen=$ac_res
19814fi
19815rm -f core conftest.err conftest.$ac_objext \
19816 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000019817 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019818 break
19819fi
19820done
cristyda16f162011-02-19 23:52:17 +000019821if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019822
19823else
19824 ac_cv_search_dlopen=no
19825fi
19826rm conftest.$ac_ext
19827LIBS=$ac_func_search_save_LIBS
19828fi
19829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19830$as_echo "$ac_cv_search_dlopen" >&6; }
19831ac_res=$ac_cv_search_dlopen
19832if test "$ac_res" != no; then :
19833 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19834
19835$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19836
19837 if test "$ac_cv_search_dlopen" != "none required" ; then
19838 LIBADD_DLOPEN="-ldl"
19839 fi
19840 libltdl_cv_lib_dl_dlopen="yes"
19841 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19842else
19843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19844/* end confdefs.h. */
19845#if HAVE_DLFCN_H
19846# include <dlfcn.h>
19847#endif
19848
19849int
19850main ()
19851{
19852dlopen(0, 0);
19853 ;
19854 return 0;
19855}
19856_ACEOF
19857if ac_fn_c_try_link "$LINENO"; then :
19858
19859$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19860
19861 libltdl_cv_func_dlopen="yes"
19862 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19863else
19864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19865$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019866if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019867 $as_echo_n "(cached) " >&6
19868else
19869 ac_check_lib_save_LIBS=$LIBS
19870LIBS="-lsvld $LIBS"
19871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19872/* end confdefs.h. */
19873
19874/* Override any GCC internal prototype to avoid an error.
19875 Use char because int might match the return type of a GCC
19876 builtin and then its argument prototype would still apply. */
19877#ifdef __cplusplus
19878extern "C"
19879#endif
19880char dlopen ();
19881int
19882main ()
19883{
19884return dlopen ();
19885 ;
19886 return 0;
19887}
19888_ACEOF
19889if ac_fn_c_try_link "$LINENO"; then :
19890 ac_cv_lib_svld_dlopen=yes
19891else
19892 ac_cv_lib_svld_dlopen=no
19893fi
19894rm -f core conftest.err conftest.$ac_objext \
19895 conftest$ac_exeext conftest.$ac_ext
19896LIBS=$ac_check_lib_save_LIBS
19897fi
19898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19899$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000019900if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019901
19902$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19903
19904 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19905 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19906fi
19907
19908fi
19909rm -f core conftest.err conftest.$ac_objext \
19910 conftest$ac_exeext conftest.$ac_ext
19911fi
19912
19913if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19914then
19915 lt_save_LIBS="$LIBS"
19916 LIBS="$LIBS $LIBADD_DLOPEN"
19917 for ac_func in dlerror
19918do :
19919 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000019920if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019921 cat >>confdefs.h <<_ACEOF
19922#define HAVE_DLERROR 1
19923_ACEOF
19924
19925fi
19926done
19927
19928 LIBS="$lt_save_LIBS"
19929fi
19930
19931
19932LIBADD_SHL_LOAD=
19933ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000019934if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019935
19936$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19937
19938 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19939else
19940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19941$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019942if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019943 $as_echo_n "(cached) " >&6
19944else
19945 ac_check_lib_save_LIBS=$LIBS
19946LIBS="-ldld $LIBS"
19947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19948/* end confdefs.h. */
19949
19950/* Override any GCC internal prototype to avoid an error.
19951 Use char because int might match the return type of a GCC
19952 builtin and then its argument prototype would still apply. */
19953#ifdef __cplusplus
19954extern "C"
19955#endif
19956char shl_load ();
19957int
19958main ()
19959{
19960return shl_load ();
19961 ;
19962 return 0;
19963}
19964_ACEOF
19965if ac_fn_c_try_link "$LINENO"; then :
19966 ac_cv_lib_dld_shl_load=yes
19967else
19968 ac_cv_lib_dld_shl_load=no
19969fi
19970rm -f core conftest.err conftest.$ac_objext \
19971 conftest$ac_exeext conftest.$ac_ext
19972LIBS=$ac_check_lib_save_LIBS
19973fi
19974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19975$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000019976if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019977
19978$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19979
19980 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19981 LIBADD_SHL_LOAD="-ldld"
19982fi
19983
19984fi
19985
19986
19987
19988case $host_os in
19989darwin[1567].*)
19990# We only want this for pre-Mac OS X 10.4.
19991 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000019992if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019993
19994$as_echo "#define HAVE_DYLD 1" >>confdefs.h
19995
19996 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19997fi
19998
19999 ;;
20000beos*)
20001 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20002 ;;
20003cygwin* | mingw* | os2* | pw32*)
20004 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20005"
cristyda16f162011-02-19 23:52:17 +000020006if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020007 ac_have_decl=1
20008else
20009 ac_have_decl=0
20010fi
20011
20012cat >>confdefs.h <<_ACEOF
20013#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20014_ACEOF
20015
20016 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20017 ;;
20018esac
20019
20020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20021$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020022if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020023 $as_echo_n "(cached) " >&6
20024else
20025 ac_check_lib_save_LIBS=$LIBS
20026LIBS="-ldld $LIBS"
20027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20028/* end confdefs.h. */
20029
20030/* Override any GCC internal prototype to avoid an error.
20031 Use char because int might match the return type of a GCC
20032 builtin and then its argument prototype would still apply. */
20033#ifdef __cplusplus
20034extern "C"
20035#endif
20036char dld_link ();
20037int
20038main ()
20039{
20040return dld_link ();
20041 ;
20042 return 0;
20043}
20044_ACEOF
20045if ac_fn_c_try_link "$LINENO"; then :
20046 ac_cv_lib_dld_dld_link=yes
20047else
20048 ac_cv_lib_dld_dld_link=no
20049fi
20050rm -f core conftest.err conftest.$ac_objext \
20051 conftest$ac_exeext conftest.$ac_ext
20052LIBS=$ac_check_lib_save_LIBS
20053fi
20054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20055$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020056if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020057
20058$as_echo "#define HAVE_DLD 1" >>confdefs.h
20059
20060 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20061fi
20062
20063
20064
20065
20066LT_DLPREOPEN=
20067if test -n "$LT_DLLOADERS"
20068then
20069 for lt_loader in $LT_DLLOADERS; do
20070 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20071 done
20072
20073$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20074
20075fi
20076
20077
20078LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20079
20080
20081ac_ext=c
20082ac_cpp='$CPP $CPPFLAGS'
20083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20085ac_compiler_gnu=$ac_cv_c_compiler_gnu
20086
20087
20088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20089$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020090if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020091 $as_echo_n "(cached) " >&6
20092else
20093 lt_cv_sys_symbol_underscore=no
20094 cat > conftest.$ac_ext <<_LT_EOF
20095void nm_test_func(){}
20096int main(){nm_test_func;return 0;}
20097_LT_EOF
20098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20099 (eval $ac_compile) 2>&5
20100 ac_status=$?
20101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20102 test $ac_status = 0; }; then
20103 # Now try to grab the symbols.
20104 ac_nlist=conftest.nm
20105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20106 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20107 ac_status=$?
20108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20109 test $ac_status = 0; } && test -s "$ac_nlist"; then
20110 # See whether the symbols have a leading underscore.
20111 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20112 lt_cv_sys_symbol_underscore=yes
20113 else
20114 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20115 :
20116 else
20117 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20118 fi
20119 fi
20120 else
20121 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20122 fi
20123 else
20124 echo "configure: failed program was:" >&5
20125 cat conftest.c >&5
20126 fi
20127 rm -rf conftest*
20128
20129fi
20130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20131$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20132 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20133
20134
20135if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20136 if test x"$libltdl_cv_func_dlopen" = xyes ||
20137 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20139$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020140if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020141 $as_echo_n "(cached) " >&6
20142else
20143 libltdl_cv_need_uscore=unknown
20144 save_LIBS="$LIBS"
20145 LIBS="$LIBS $LIBADD_DLOPEN"
20146 if test "$cross_compiling" = yes; then :
20147 libltdl_cv_need_uscore=cross
20148else
20149 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20150 lt_status=$lt_dlunknown
20151 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020152#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020153#include "confdefs.h"
20154
20155#if HAVE_DLFCN_H
20156#include <dlfcn.h>
20157#endif
20158
20159#include <stdio.h>
20160
20161#ifdef RTLD_GLOBAL
20162# define LT_DLGLOBAL RTLD_GLOBAL
20163#else
20164# ifdef DL_GLOBAL
20165# define LT_DLGLOBAL DL_GLOBAL
20166# else
20167# define LT_DLGLOBAL 0
20168# endif
20169#endif
20170
20171/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20172 find out it does not work in some platform. */
20173#ifndef LT_DLLAZY_OR_NOW
20174# ifdef RTLD_LAZY
20175# define LT_DLLAZY_OR_NOW RTLD_LAZY
20176# else
20177# ifdef DL_LAZY
20178# define LT_DLLAZY_OR_NOW DL_LAZY
20179# else
20180# ifdef RTLD_NOW
20181# define LT_DLLAZY_OR_NOW RTLD_NOW
20182# else
20183# ifdef DL_NOW
20184# define LT_DLLAZY_OR_NOW DL_NOW
20185# else
20186# define LT_DLLAZY_OR_NOW 0
20187# endif
20188# endif
20189# endif
20190# endif
20191#endif
20192
cristy0c60a692010-11-04 01:09:47 +000020193/* When -fvisbility=hidden is used, assume the code has been annotated
20194 correspondingly for the symbols needed. */
20195#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020196int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020197#endif
20198
cristyda16f162011-02-19 23:52:17 +000020199int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020200int main ()
20201{
20202 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20203 int status = $lt_dlunknown;
20204
20205 if (self)
20206 {
20207 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020208 else
20209 {
20210 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20211 else puts (dlerror ());
20212 }
cristy73bd4a52010-10-05 11:24:23 +000020213 /* dlclose (self); */
20214 }
20215 else
20216 puts (dlerror ());
20217
20218 return status;
20219}
20220_LT_EOF
20221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20222 (eval $ac_link) 2>&5
20223 ac_status=$?
20224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20225 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20226 (./conftest; exit; ) >&5 2>/dev/null
20227 lt_status=$?
20228 case x$lt_status in
20229 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20230 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20231 x$lt_dlunknown|x*) ;;
20232 esac
20233 else :
20234 # compilation failed
20235
20236 fi
20237fi
20238rm -fr conftest*
20239
20240 LIBS="$save_LIBS"
20241
20242fi
20243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20244$as_echo "$libltdl_cv_need_uscore" >&6; }
20245 fi
20246fi
20247
20248if test x"$libltdl_cv_need_uscore" = xyes; then
20249
20250$as_echo "#define NEED_USCORE 1" >>confdefs.h
20251
20252fi
20253
20254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20255$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020256if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020257 $as_echo_n "(cached) " >&6
20258else
20259 # PORTME does your system automatically load deplibs for dlopen?
20260 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20261 # For now, we just catch OSes we know something about -- in the
20262 # future, we'll try test this programmatically.
20263 lt_cv_sys_dlopen_deplibs=unknown
20264 case $host_os in
20265 aix3*|aix4.1.*|aix4.2.*)
20266 # Unknown whether this is true for these versions of AIX, but
20267 # we want this `case' here to explicitly catch those versions.
20268 lt_cv_sys_dlopen_deplibs=unknown
20269 ;;
20270 aix[4-9]*)
20271 lt_cv_sys_dlopen_deplibs=yes
20272 ;;
20273 amigaos*)
20274 case $host_cpu in
20275 powerpc)
20276 lt_cv_sys_dlopen_deplibs=no
20277 ;;
20278 esac
20279 ;;
20280 darwin*)
20281 # Assuming the user has installed a libdl from somewhere, this is true
20282 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20283 lt_cv_sys_dlopen_deplibs=yes
20284 ;;
20285 freebsd* | dragonfly*)
20286 lt_cv_sys_dlopen_deplibs=yes
20287 ;;
cristy0c60a692010-11-04 01:09:47 +000020288 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020289 # GNU and its variants, using gnu ld.so (Glibc)
20290 lt_cv_sys_dlopen_deplibs=yes
20291 ;;
20292 hpux10*|hpux11*)
20293 lt_cv_sys_dlopen_deplibs=yes
20294 ;;
20295 interix*)
20296 lt_cv_sys_dlopen_deplibs=yes
20297 ;;
20298 irix[12345]*|irix6.[01]*)
20299 # Catch all versions of IRIX before 6.2, and indicate that we don't
20300 # know how it worked for any of those versions.
20301 lt_cv_sys_dlopen_deplibs=unknown
20302 ;;
20303 irix*)
20304 # The case above catches anything before 6.2, and it's known that
20305 # at 6.2 and later dlopen does load deplibs.
20306 lt_cv_sys_dlopen_deplibs=yes
20307 ;;
20308 netbsd*)
20309 lt_cv_sys_dlopen_deplibs=yes
20310 ;;
20311 openbsd*)
20312 lt_cv_sys_dlopen_deplibs=yes
20313 ;;
20314 osf[1234]*)
20315 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20316 # it did *not* use an RPATH in a shared library to find objects the
20317 # library depends on, so we explicitly say `no'.
20318 lt_cv_sys_dlopen_deplibs=no
20319 ;;
20320 osf5.0|osf5.0a|osf5.1)
20321 # dlopen *does* load deplibs and with the right loader patch applied
20322 # it even uses RPATH in a shared library to search for shared objects
20323 # that the library depends on, but there's no easy way to know if that
20324 # patch is installed. Since this is the case, all we can really
20325 # say is unknown -- it depends on the patch being installed. If
20326 # it is, this changes to `yes'. Without it, it would be `no'.
20327 lt_cv_sys_dlopen_deplibs=unknown
20328 ;;
20329 osf*)
20330 # the two cases above should catch all versions of osf <= 5.1. Read
20331 # the comments above for what we know about them.
20332 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20333 # is used to find them so we can finally say `yes'.
20334 lt_cv_sys_dlopen_deplibs=yes
20335 ;;
20336 qnx*)
20337 lt_cv_sys_dlopen_deplibs=yes
20338 ;;
20339 solaris*)
20340 lt_cv_sys_dlopen_deplibs=yes
20341 ;;
20342 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20343 libltdl_cv_sys_dlopen_deplibs=yes
20344 ;;
20345 esac
20346
20347fi
20348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20349$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20350if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20351
20352$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20353
20354fi
20355
20356:
20357
20358for ac_header in argz.h
20359do :
20360 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20361"
cristyda16f162011-02-19 23:52:17 +000020362if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020363 cat >>confdefs.h <<_ACEOF
20364#define HAVE_ARGZ_H 1
20365_ACEOF
20366
20367fi
20368
20369done
20370
20371
20372ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20373# include <argz.h>
20374#endif
20375"
cristyda16f162011-02-19 23:52:17 +000020376if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020377
20378cat >>confdefs.h <<_ACEOF
20379#define HAVE_ERROR_T 1
20380_ACEOF
20381
20382
20383else
20384
20385$as_echo "#define error_t int" >>confdefs.h
20386
20387
20388$as_echo "#define __error_t_defined 1" >>confdefs.h
20389
20390fi
20391
20392
20393ARGZ_H=
20394for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20395 argz_next argz_stringify
20396do :
20397 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20398ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020399if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020400 cat >>confdefs.h <<_ACEOF
20401#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20402_ACEOF
20403
20404else
20405 ARGZ_H=argz.h;
20406
20407 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20408
20409fi
20410done
20411
20412
20413if test -z "$ARGZ_H"; then :
20414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20415$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020416if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020417 $as_echo_n "(cached) " >&6
20418else
20419 case $host_os in #(
20420 *cygwin*)
20421 lt_cv_sys_argz_works=no
20422 if test "$cross_compiling" != no; then
20423 lt_cv_sys_argz_works="guessing no"
20424 else
20425 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20426 save_IFS=$IFS
20427 IFS=-.
20428 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20429 IFS=$save_IFS
20430 lt_os_major=${2-0}
20431 lt_os_minor=${3-0}
20432 lt_os_micro=${4-0}
20433 if test "$lt_os_major" -gt 1 \
20434 || { test "$lt_os_major" -eq 1 \
20435 && { test "$lt_os_minor" -gt 5 \
20436 || { test "$lt_os_minor" -eq 5 \
20437 && test "$lt_os_micro" -gt 24; }; }; }; then
20438 lt_cv_sys_argz_works=yes
20439 fi
20440 fi
20441 ;; #(
20442 *) lt_cv_sys_argz_works=yes ;;
20443 esac
20444fi
20445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20446$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020447 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020448
20449$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20450
20451else
20452 ARGZ_H=argz.h
20453
20454
20455 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20456
20457fi
20458fi
20459
20460
20461
20462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20463$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020464if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020465 $as_echo_n "(cached) " >&6
20466else
20467 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20468 libltdl_cv_preloaded_symbols=yes
20469 else
20470 libltdl_cv_preloaded_symbols=no
20471 fi
20472
20473fi
20474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20475$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20476if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20477
20478$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20479
20480fi
20481
20482# Set options
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494# Check whether --with-included_ltdl was given.
20495if test "${with_included_ltdl+set}" = set; then :
20496 withval=$with_included_ltdl;
20497fi
20498
20499
20500if test "x$with_included_ltdl" != xyes; then
20501 # We are not being forced to use the included libltdl sources, so
20502 # decide whether there is a useful installed version we can use.
20503 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20504
20505"
cristyda16f162011-02-19 23:52:17 +000020506if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020507 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20508 #include <ltdl.h>
20509"
cristyda16f162011-02-19 23:52:17 +000020510if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20512$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020513if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020514 $as_echo_n "(cached) " >&6
20515else
20516 ac_check_lib_save_LIBS=$LIBS
20517LIBS="-lltdl $LIBS"
20518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20519/* end confdefs.h. */
20520
20521/* Override any GCC internal prototype to avoid an error.
20522 Use char because int might match the return type of a GCC
20523 builtin and then its argument prototype would still apply. */
20524#ifdef __cplusplus
20525extern "C"
20526#endif
20527char lt_dladvise_preload ();
20528int
20529main ()
20530{
20531return lt_dladvise_preload ();
20532 ;
20533 return 0;
20534}
20535_ACEOF
20536if ac_fn_c_try_link "$LINENO"; then :
20537 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20538else
20539 ac_cv_lib_ltdl_lt_dladvise_preload=no
20540fi
20541rm -f core conftest.err conftest.$ac_objext \
20542 conftest$ac_exeext conftest.$ac_ext
20543LIBS=$ac_check_lib_save_LIBS
20544fi
20545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20546$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020547if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020548 with_included_ltdl=no
20549else
20550 with_included_ltdl=yes
20551fi
20552
20553else
20554 with_included_ltdl=yes
20555fi
20556
20557else
20558 with_included_ltdl=yes
20559fi
20560
20561
20562fi
20563
20564
20565
20566
20567# Check whether --with-ltdl_include was given.
20568if test "${with_ltdl_include+set}" = set; then :
20569 withval=$with_ltdl_include;
20570fi
20571
20572
20573if test -n "$with_ltdl_include"; then
20574 if test -f "$with_ltdl_include/ltdl.h"; then :
20575 else
cristy98dddb52010-11-04 00:30:15 +000020576 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020577 fi
20578else
20579 with_ltdl_include=no
20580fi
20581
20582
20583# Check whether --with-ltdl_lib was given.
20584if test "${with_ltdl_lib+set}" = set; then :
20585 withval=$with_ltdl_lib;
20586fi
20587
20588
20589if test -n "$with_ltdl_lib"; then
20590 if test -f "$with_ltdl_lib/libltdl.la"; then :
20591 else
cristy98dddb52010-11-04 00:30:15 +000020592 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020593 fi
20594else
20595 with_ltdl_lib=no
20596fi
20597
20598case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20599 ,yes,no,no,)
20600 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000020601 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000020602 "") enable_ltdl_convenience=yes
20603 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20604esac
20605LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20606LTDLDEPS=$LIBLTDL
20607LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20608
20609
20610
20611
20612
20613# For backwards non-gettext consistent compatibility...
20614INCLTDL="$LTDLINCL"
20615
20616
20617 ;;
20618 ,no,no,no,)
20619 # If the included ltdl is not to be used, then use the
20620 # preinstalled libltdl we found.
20621
20622$as_echo "#define HAVE_LTDL 1" >>confdefs.h
20623
20624 LIBLTDL=-lltdl
20625 LTDLDEPS=
20626 LTDLINCL=
20627 ;;
20628 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000020629 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020630 ;;
20631 *) with_included_ltdl=no
20632 LIBLTDL="-L$with_ltdl_lib -lltdl"
20633 LTDLDEPS=
20634 LTDLINCL="-I$with_ltdl_include"
20635 ;;
20636esac
20637INCLTDL="$LTDLINCL"
20638
20639# Report our decision...
20640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20641$as_echo_n "checking where to find libltdl headers... " >&6; }
20642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20643$as_echo "$LTDLINCL" >&6; }
20644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20645$as_echo_n "checking where to find libltdl library... " >&6; }
20646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20647$as_echo "$LIBLTDL" >&6; }
20648
20649
20650
20651# Check whether --enable-ltdl-install was given.
20652if test "${enable_ltdl_install+set}" = set; then :
20653 enableval=$enable_ltdl_install;
20654fi
20655
20656
20657case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20658 *yes*) ;;
20659 *) enable_ltdl_convenience=yes ;;
20660esac
20661
20662 if test x"${enable_ltdl_install-no}" != xno; then
20663 INSTALL_LTDL_TRUE=
20664 INSTALL_LTDL_FALSE='#'
20665else
20666 INSTALL_LTDL_TRUE='#'
20667 INSTALL_LTDL_FALSE=
20668fi
20669
20670 if test x"${enable_ltdl_convenience-no}" != xno; then
20671 CONVENIENCE_LTDL_TRUE=
20672 CONVENIENCE_LTDL_FALSE='#'
20673else
20674 CONVENIENCE_LTDL_TRUE='#'
20675 CONVENIENCE_LTDL_FALSE=
20676fi
20677
20678
20679
20680
20681
20682
cristy73bd4a52010-10-05 11:24:23 +000020683# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20684# the user used. This is so that ltdl.h can pick up the parent projects
20685# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20686# definitions required by ltdl.c.
20687# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20688
20689
20690
20691for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20692do :
20693 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20694ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20695"
cristy98dddb52010-11-04 00:30:15 +000020696if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020697 cat >>confdefs.h <<_ACEOF
20698#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20699_ACEOF
20700
20701fi
20702
20703done
20704
20705
20706for ac_func in closedir opendir readdir
20707do :
20708 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20709ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020710if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020711 cat >>confdefs.h <<_ACEOF
20712#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20713_ACEOF
20714
20715else
20716
20717
20718 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20719
20720fi
20721done
20722
20723for ac_func in strlcat strlcpy
20724do :
20725 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20726ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020727if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020728 cat >>confdefs.h <<_ACEOF
20729#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20730_ACEOF
20731
20732else
20733
20734
20735 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20736
20737fi
20738done
20739
20740
20741
20742cat >>confdefs.h <<_ACEOF
20743#define LT_LIBEXT "$libext"
20744_ACEOF
20745
20746
cristyda16f162011-02-19 23:52:17 +000020747name=
20748eval "lt_libprefix=\"$libname_spec\""
20749
20750cat >>confdefs.h <<_ACEOF
20751#define LT_LIBPREFIX "$lt_libprefix"
20752_ACEOF
20753
20754
cristy73bd4a52010-10-05 11:24:23 +000020755name=ltdl
cristyda16f162011-02-19 23:52:17 +000020756eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000020757
20758
20759
20760
20761
20762
20763
20764
20765# Only expand once:
20766
20767
cristy3ed852e2009-09-05 21:47:34 +000020768
20769# Check to see if building shared libraries
20770libtool_build_shared_libs='no'
20771if test "$enable_shared" = 'yes'; then
20772 libtool_build_shared_libs='yes'
20773fi
20774
20775# Check to see if building static libraries
20776libtool_build_static_libs='no'
20777if test "$enable_static" = 'yes'; then
20778 libtool_build_static_libs='yes'
20779fi
20780
cristy73bd4a52010-10-05 11:24:23 +000020781 if test "${libtool_build_shared_libs}" = 'yes'; then
20782 WITH_SHARED_LIBS_TRUE=
20783 WITH_SHARED_LIBS_FALSE='#'
20784else
20785 WITH_SHARED_LIBS_TRUE='#'
20786 WITH_SHARED_LIBS_FALSE=
20787fi
20788
cristy3ed852e2009-09-05 21:47:34 +000020789#
20790# Enable support for building loadable modules
20791#
20792
20793# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020794if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020795 withval=$with_modules; with_modules=$withval
20796else
cristy5a1cefd2010-01-06 20:42:35 +000020797 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020798fi
20799
20800
20801# Only allow building loadable modules if we are building shared libraries
20802if test "$with_modules" != 'no' ; then
20803 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020804 { $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 +000020805$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20806 with_modules='no'
20807 fi
20808fi
20809if test "$with_modules" != 'no'; then
20810
cristy8b350f62009-11-15 23:12:43 +000020811$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020812
20813fi
cristy73bd4a52010-10-05 11:24:23 +000020814 if test "$with_modules" != 'no'; then
20815 WITH_MODULES_TRUE=
20816 WITH_MODULES_FALSE='#'
20817else
20818 WITH_MODULES_TRUE='#'
20819 WITH_MODULES_FALSE=
20820fi
20821
cristy3ed852e2009-09-05 21:47:34 +000020822
20823# Enable building/use of libltdl if we are building shared libraries regardless
20824# of whether modules are built or not.
20825with_ltdl='no'
20826if test "$libtool_build_shared_libs" != 'no'; then
20827 with_ltdl='yes'
20828fi
20829
cristy73bd4a52010-10-05 11:24:23 +000020830 if test "$with_ltdl" != 'no'; then
20831 WITH_LTDL_TRUE=
20832 WITH_LTDL_FALSE='#'
20833else
20834 WITH_LTDL_TRUE='#'
20835 WITH_LTDL_FALSE=
20836fi
20837
cristy3ed852e2009-09-05 21:47:34 +000020838if test "$with_ltdl" != 'no'; then
20839
cristy8b350f62009-11-15 23:12:43 +000020840$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020841
20842
20843 # Set DLLDFLAGS
20844 if test X"$enable_shared" = Xyes; then
20845 DLLDFLAGS=-export-dynamic
20846
20847 fi
20848fi
20849
20850# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020851# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020852# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020853if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020854 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20855else
20856 enable_delegate_build='no'
20857fi
20858
20859
20860# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020861if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020862 enableval=$enable_deprecated; enable_deprecated=$enableval
20863else
20864 enable_deprecated='no'
20865fi
20866
20867
20868if test "$enable_deprecated" = 'yes'; then
20869
cristy8b350f62009-11-15 23:12:43 +000020870$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020871
20872else
20873 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20874fi
20875
20876# Build a version of ImageMagick which operates uninstalled.
20877# Used to build distributions located via MAGICK_HOME / executable path
20878# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020879if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020880 enableval=$enable_installed; enable_installed=$enableval
20881else
20882 enable_installed='yes'
20883fi
20884
20885
20886if test "$enable_installed" = 'yes'; then
20887
cristy8b350f62009-11-15 23:12:43 +000020888$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020889
20890else
20891 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20892fi
20893
20894# Permit enciphering and deciphering image pixels.
20895# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020896if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020897 enableval=$enable_cipher; enable_cipher=$enableval
20898else
20899 enable_cipher='yes'
20900fi
20901
20902
20903if test "$enable_cipher" = 'yes'; then
20904
cristy8b350f62009-11-15 23:12:43 +000020905$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020906
20907fi
20908
20909# Build an embeddable version of ImageMagick.
20910# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020911if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020912 enableval=$enable_embeddable; enable_embeddable=$enableval
20913else
20914 enable_embeddable='no'
20915fi
20916
20917
20918if test "$enable_embeddable" = 'yes'; then
20919
cristy8b350f62009-11-15 23:12:43 +000020920$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020921
20922fi
20923
20924# Build a high dynamic range version of ImageMagick.
20925# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020926if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020927 enableval=$enable_hdri; enable_hdri=$enableval
20928else
20929 enable_hdri='no'
20930fi
20931
20932
20933MAGICK_HDRI=""
20934if test "$enable_hdri" = 'yes'; then
20935 MAGICK_HDRI="HDRI"
20936
cristy8b350f62009-11-15 23:12:43 +000020937$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020938
cristyfd9dcd42010-08-08 18:07:02 +000020939 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020940fi
20941
cristy3ed852e2009-09-05 21:47:34 +000020942# Build a version of ImageMagick with assert statements.
20943# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020944if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020945 enableval=$enable_assert; enable_assert=$enableval
20946else
20947 enable_assert='yes'
20948fi
20949
20950
20951if test "$enable_assert" = 'no'; then
20952
cristy8b350f62009-11-15 23:12:43 +000020953$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020954
20955fi
20956
20957# Add configure option --enable-maintainer-mode which enables dependency
20958# checking and generation useful to package maintainers. This is made an
20959# option to avoid confusing end users.
cristy73bd4a52010-10-05 11:24:23 +000020960
20961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20962$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20963 # Check whether --enable-maintainer-mode was given.
20964if test "${enable_maintainer_mode+set}" = set; then :
20965 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20966else
20967 USE_MAINTAINER_MODE=no
20968fi
20969
20970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20971$as_echo "$USE_MAINTAINER_MODE" >&6; }
20972 if test $USE_MAINTAINER_MODE = yes; then
20973 MAINTAINER_MODE_TRUE=
20974 MAINTAINER_MODE_FALSE='#'
20975else
20976 MAINTAINER_MODE_TRUE='#'
20977 MAINTAINER_MODE_FALSE=
20978fi
20979
20980 MAINT=$MAINTAINER_MODE_TRUE
20981
20982
cristy3ed852e2009-09-05 21:47:34 +000020983
20984
20985# Enable ccmalloc memory debugging support
20986# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020987if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020988 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20989else
20990 enable_ccmalloc='no'
20991fi
20992
20993
20994# Enable Electric Fence memory debugging support
20995# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020996if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020997 enableval=$enable_efence; enable_efence=$enableval
20998else
20999 enable_efence='no'
21000fi
21001
21002
21003# Enable prof-based profiling support
21004# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021005if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021006 enableval=$enable_prof; enable_prof=$enableval
21007else
21008 enable_prof='no'
21009fi
21010
21011
21012# Enable gprof-based profiling support
21013# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021014if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021015 enableval=$enable_gprof; enable_gprof=$enableval
21016else
21017 enable_gprof='no'
21018fi
21019
21020
21021# Enable gcov-based profiling support
21022# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021023if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021024 enableval=$enable_gcov; enable_gcov=$enableval
21025else
21026 enable_gcov='no'
21027fi
21028
21029
21030enable_profiling='no'
21031if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21032 enable_profiling='yes'
21033 if test "$libtool_build_shared_libs" = 'yes'; then
21034 echo "Warning: Can not profile code using shared libraries"
21035 fi
21036fi
21037
21038# Magick API method prefix
21039
21040# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021041if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021042 withval=$with_method_prefix; with_method_prefix=$enableval
21043else
21044 with_method_prefix=''
21045fi
21046
21047
21048if test "$with_method_prefix" != ''; then
21049
21050cat >>confdefs.h <<_ACEOF
21051#define NAMESPACE_PREFIX $with_method_prefix
21052_ACEOF
21053
21054fi
21055
21056# Number of bits in a Quantum
21057
21058# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021059if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021060 withval=$with_quantum_depth; with_quantum_depth=$withval
21061else
21062 with_quantum_depth=16
21063fi
21064
21065
21066if test "$with_quantum_depth" != '8'; then
21067 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21068fi
21069
21070case "${with_quantum_depth}" in
21071 8 ) ;;
21072 16 ) ;;
21073 32 ) ;;
21074 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021075 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021076esac
cristycdae12a2010-09-19 02:24:31 +000021077if test "$enable_hdri" = 'yes'; then
21078 with_quantum_depth=16
21079fi
cristy3ed852e2009-09-05 21:47:34 +000021080QUANTUM_DEPTH="$with_quantum_depth"
21081
21082cat >>confdefs.h <<_ACEOF
21083#define QUANTUM_DEPTH $QUANTUM_DEPTH
21084_ACEOF
21085
21086
21087# Set pixel cache threshold
21088
21089# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021090if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021091 withval=$with_cache; with_cache=$withval
21092else
21093 with_cache=''
21094fi
21095
21096
21097if test "$with_cache" != ''; then
21098
21099cat >>confdefs.h <<_ACEOF
21100#define PixelCacheThreshold $with_cache
21101_ACEOF
21102
21103 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21104fi
21105
21106# Disable/Enable support for full delegate paths
21107
21108# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021109if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021110 withval=$with_frozenpaths; with_frozenpaths=$withval
21111else
21112 with_frozenpaths='no'
21113fi
21114
21115
21116# Enable build/install of Magick++
21117
21118# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021119if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021120 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21121else
21122 with_magick_plus_plus='yes'
21123fi
21124
21125
21126# Disable build/install of PerlMagick.
21127
21128# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021129if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021130 withval=$with_perl; with_perl=$withval
21131else
cristyb5f4e2f2010-04-25 00:49:11 +000021132 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021133fi
21134
21135
21136# Options to pass when configuring PerlMagick
21137
21138# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021139if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021140 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021141fi
21142
21143
cristy3ed852e2009-09-05 21:47:34 +000021144
21145# Enable umem, object-caching memory allocation library.
21146
21147# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021148if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021149 withval=$with_umem; with_umem=$withval
21150else
21151 with_umem='no'
21152fi
21153
21154if test "$with_umem" != 'yes' ; then
21155 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21156fi
21157
21158#
21159# Specify path to shared libstdc++ if not in normal location
21160#
21161
21162# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021163if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021164 withval=$with_libstdc; with_libstdc=$withval
21165else
21166 with_libstdc=''
21167fi
21168
21169
21170if test "$with_libstdc" != ''; then
21171 if test -d "$with_libstdc"; then
21172 LIBSTDCLDFLAGS="-L$with_libstdc"
21173 fi
21174fi
21175
21176
21177# Does gcc required -traditional?
21178if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021180$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021181if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021182 $as_echo_n "(cached) " >&6
21183else
21184 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021186/* end confdefs.h. */
21187#include <sgtty.h>
21188Autoconf TIOCGETP
21189_ACEOF
21190if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021191 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021192 ac_cv_prog_gcc_traditional=yes
21193else
21194 ac_cv_prog_gcc_traditional=no
21195fi
21196rm -f conftest*
21197
21198
21199 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021201/* end confdefs.h. */
21202#include <termio.h>
21203Autoconf TCGETA
21204_ACEOF
21205if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021206 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021207 ac_cv_prog_gcc_traditional=yes
21208fi
21209rm -f conftest*
21210
21211 fi
21212fi
cristy8b350f62009-11-15 23:12:43 +000021213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021214$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21215 if test $ac_cv_prog_gcc_traditional = yes; then
21216 CC="$CC -traditional"
21217 fi
21218fi
21219
21220
21221########
21222#
21223# Set defines required to build DLLs and modules using MinGW
21224#
21225########
21226# These options are set for multi-thread DLL module build
21227# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21228# module: _DLL
21229# executable/Magick++: _DLL _MAGICKMOD_
21230MODULE_EXTRA_CPPFLAGS=''
21231LIBRARY_EXTRA_CPPFLAGS=''
21232if test "${native_win32_build}" = 'yes'; then
21233 if test "${libtool_build_shared_libs}" = 'yes'; then
21234 CPPFLAGS="$CPPFLAGS -D_DLL"
21235 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21236 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21237 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21238 if test "$with_modules" = 'yes'; then
21239 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21240 else
21241 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21242 fi
21243 else
21244 CPPFLAGS="$CPPFLAGS -D_LIB"
21245 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21246 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21247 fi
21248 if test "$with_threads" = 'yes'; then
21249 CPPFLAGS="$CPPFLAGS -D_MT"
21250 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21251 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21252 fi
21253fi
21254
21255
21256
21257# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021259$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021260if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021261 $as_echo_n "(cached) " >&6
21262else
cristy8b350f62009-11-15 23:12:43 +000021263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021264/* end confdefs.h. */
21265#include <stdlib.h>
21266#include <stdarg.h>
21267#include <string.h>
21268#include <float.h>
21269
21270int
21271main ()
21272{
21273
21274 ;
21275 return 0;
21276}
21277_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021278if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021279 ac_cv_header_stdc=yes
21280else
cristy8b350f62009-11-15 23:12:43 +000021281 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021282fi
cristy3ed852e2009-09-05 21:47:34 +000021283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21284
21285if test $ac_cv_header_stdc = yes; then
21286 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021288/* end confdefs.h. */
21289#include <string.h>
21290
21291_ACEOF
21292if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021293 $EGREP "memchr" >/dev/null 2>&1; then :
21294
cristy3ed852e2009-09-05 21:47:34 +000021295else
21296 ac_cv_header_stdc=no
21297fi
21298rm -f conftest*
21299
21300fi
21301
21302if test $ac_cv_header_stdc = yes; then
21303 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021305/* end confdefs.h. */
21306#include <stdlib.h>
21307
21308_ACEOF
21309if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021310 $EGREP "free" >/dev/null 2>&1; then :
21311
cristy3ed852e2009-09-05 21:47:34 +000021312else
21313 ac_cv_header_stdc=no
21314fi
21315rm -f conftest*
21316
21317fi
21318
21319if test $ac_cv_header_stdc = yes; then
21320 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021321 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021322 :
21323else
cristy8b350f62009-11-15 23:12:43 +000021324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021325/* end confdefs.h. */
21326#include <ctype.h>
21327#include <stdlib.h>
21328#if ((' ' & 0x0FF) == 0x020)
21329# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21330# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21331#else
21332# define ISLOWER(c) \
21333 (('a' <= (c) && (c) <= 'i') \
21334 || ('j' <= (c) && (c) <= 'r') \
21335 || ('s' <= (c) && (c) <= 'z'))
21336# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21337#endif
21338
21339#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21340int
21341main ()
21342{
21343 int i;
21344 for (i = 0; i < 256; i++)
21345 if (XOR (islower (i), ISLOWER (i))
21346 || toupper (i) != TOUPPER (i))
21347 return 2;
21348 return 0;
21349}
21350_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021351if ac_fn_c_try_run "$LINENO"; then :
21352
cristy3ed852e2009-09-05 21:47:34 +000021353else
cristy8b350f62009-11-15 23:12:43 +000021354 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021355fi
cristy8b350f62009-11-15 23:12:43 +000021356rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21357 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021358fi
21359
cristy3ed852e2009-09-05 21:47:34 +000021360fi
21361fi
cristy8b350f62009-11-15 23:12:43 +000021362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021363$as_echo "$ac_cv_header_stdc" >&6; }
21364if test $ac_cv_header_stdc = yes; then
21365
cristy8b350f62009-11-15 23:12:43 +000021366$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021367
21368fi
21369
21370if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021371 { $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 +000021372 header files. Compilation cannot proceed. Please install the ANSI C
21373 headers and rerun this script." >&5
21374$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21375 header files. Compilation cannot proceed. Please install the ANSI C
21376 headers and rerun this script." >&2;};
21377fi
cristya0b81c32010-01-22 02:54:33 +000021378
21379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21380$as_echo_n "checking whether to enable assertions... " >&6; }
21381 # Check whether --enable-assert was given.
21382if test "${enable_assert+set}" = set; then :
21383 enableval=$enable_assert; ac_enable_assert=$enableval
21384 if test "x$enableval" = xno; then :
21385
21386$as_echo "#define NDEBUG 1" >>confdefs.h
21387
21388elif test "x$enableval" != xyes; then :
21389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21390$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21391 ac_enable_assert=yes
21392fi
21393else
21394 ac_enable_assert=yes
21395fi
21396
21397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21398$as_echo "$ac_enable_assert" >&6; }
21399
cristy3ed852e2009-09-05 21:47:34 +000021400ac_header_dirent=no
21401for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21402 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021404$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021405if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021406 $as_echo_n "(cached) " >&6
21407else
cristy8b350f62009-11-15 23:12:43 +000021408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021409/* end confdefs.h. */
21410#include <sys/types.h>
21411#include <$ac_hdr>
21412
21413int
21414main ()
21415{
21416if ((DIR *) 0)
21417return 0;
21418 ;
21419 return 0;
21420}
21421_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021422if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021423 eval "$as_ac_Header=yes"
21424else
cristy8b350f62009-11-15 23:12:43 +000021425 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021426fi
cristy3ed852e2009-09-05 21:47:34 +000021427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21428fi
cristy8b350f62009-11-15 23:12:43 +000021429eval ac_res=\$$as_ac_Header
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021431$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021432if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021433 cat >>confdefs.h <<_ACEOF
21434#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21435_ACEOF
21436
21437ac_header_dirent=$ac_hdr; break
21438fi
21439
21440done
21441# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21442if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021444$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021445if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021446 $as_echo_n "(cached) " >&6
21447else
21448 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021450/* end confdefs.h. */
21451
21452/* Override any GCC internal prototype to avoid an error.
21453 Use char because int might match the return type of a GCC
21454 builtin and then its argument prototype would still apply. */
21455#ifdef __cplusplus
21456extern "C"
21457#endif
21458char opendir ();
21459int
21460main ()
21461{
21462return opendir ();
21463 ;
21464 return 0;
21465}
21466_ACEOF
21467for ac_lib in '' dir; do
21468 if test -z "$ac_lib"; then
21469 ac_res="none required"
21470 else
21471 ac_res=-l$ac_lib
21472 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21473 fi
cristy8b350f62009-11-15 23:12:43 +000021474 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021475 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021476fi
cristy8b350f62009-11-15 23:12:43 +000021477rm -f core conftest.err conftest.$ac_objext \
21478 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021479 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021480 break
21481fi
21482done
cristyda16f162011-02-19 23:52:17 +000021483if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021484
cristy3ed852e2009-09-05 21:47:34 +000021485else
21486 ac_cv_search_opendir=no
21487fi
21488rm conftest.$ac_ext
21489LIBS=$ac_func_search_save_LIBS
21490fi
cristy8b350f62009-11-15 23:12:43 +000021491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021492$as_echo "$ac_cv_search_opendir" >&6; }
21493ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021494if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021495 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21496
21497fi
21498
21499else
cristy8b350f62009-11-15 23:12:43 +000021500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021501$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021502if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021503 $as_echo_n "(cached) " >&6
21504else
21505 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021507/* end confdefs.h. */
21508
21509/* Override any GCC internal prototype to avoid an error.
21510 Use char because int might match the return type of a GCC
21511 builtin and then its argument prototype would still apply. */
21512#ifdef __cplusplus
21513extern "C"
21514#endif
21515char opendir ();
21516int
21517main ()
21518{
21519return opendir ();
21520 ;
21521 return 0;
21522}
21523_ACEOF
21524for ac_lib in '' x; do
21525 if test -z "$ac_lib"; then
21526 ac_res="none required"
21527 else
21528 ac_res=-l$ac_lib
21529 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21530 fi
cristy8b350f62009-11-15 23:12:43 +000021531 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021532 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021533fi
cristy8b350f62009-11-15 23:12:43 +000021534rm -f core conftest.err conftest.$ac_objext \
21535 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021536 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021537 break
21538fi
21539done
cristyda16f162011-02-19 23:52:17 +000021540if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021541
cristy3ed852e2009-09-05 21:47:34 +000021542else
21543 ac_cv_search_opendir=no
21544fi
21545rm conftest.$ac_ext
21546LIBS=$ac_func_search_save_LIBS
21547fi
cristy8b350f62009-11-15 23:12:43 +000021548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021549$as_echo "$ac_cv_search_opendir" >&6; }
21550ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021551if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021552 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21553
21554fi
21555
21556fi
21557
21558
21559# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000021560for 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 +000021561do :
21562 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21563ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021564if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021565 cat >>confdefs.h <<_ACEOF
21566#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21567_ACEOF
21568
21569fi
21570
21571done
21572
21573
21574########
21575#
21576# Checks for typedefs, structures, and compiler characteristics.
21577#
21578########
21579
cristy8b350f62009-11-15 23:12:43 +000021580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021581$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021582if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021583 $as_echo_n "(cached) " >&6
21584else
cristy8b350f62009-11-15 23:12:43 +000021585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021586/* end confdefs.h. */
21587
21588#include <stdbool.h>
21589#ifndef bool
21590 "error: bool is not defined"
21591#endif
21592#ifndef false
21593 "error: false is not defined"
21594#endif
21595#if false
21596 "error: false is not 0"
21597#endif
21598#ifndef true
21599 "error: true is not defined"
21600#endif
21601#if true != 1
21602 "error: true is not 1"
21603#endif
21604#ifndef __bool_true_false_are_defined
21605 "error: __bool_true_false_are_defined is not defined"
21606#endif
21607
21608 struct s { _Bool s: 1; _Bool t; } s;
21609
21610 char a[true == 1 ? 1 : -1];
21611 char b[false == 0 ? 1 : -1];
21612 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21613 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021614 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021615 char f[(_Bool) 0.0 == false ? 1 : -1];
21616 char g[true];
21617 char h[sizeof (_Bool)];
21618 char i[sizeof s.t];
21619 enum { j = false, k = true, l = false * true, m = true * 256 };
21620 /* The following fails for
21621 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21622 _Bool n[m];
21623 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21624 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021625 /* Catch a bug in an HP-UX C compiler. See
21626 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21627 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21628 */
21629 _Bool q = true;
21630 _Bool *pq = &q;
21631
21632int
21633main ()
21634{
21635
cristyda16f162011-02-19 23:52:17 +000021636 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021637 *pq |= q;
21638 *pq |= ! q;
21639 /* Refer to every declared value, to avoid compiler optimizations. */
21640 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21641 + !m + !n + !o + !p + !q + !pq);
21642
21643 ;
21644 return 0;
21645}
21646_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021647if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021648 ac_cv_header_stdbool_h=yes
21649else
cristy8b350f62009-11-15 23:12:43 +000021650 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021651fi
cristy3ed852e2009-09-05 21:47:34 +000021652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21653fi
cristy8b350f62009-11-15 23:12:43 +000021654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021655$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021656ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021657if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021658
21659cat >>confdefs.h <<_ACEOF
21660#define HAVE__BOOL 1
21661_ACEOF
21662
21663
21664fi
21665
21666if test $ac_cv_header_stdbool_h = yes; then
21667
cristy8b350f62009-11-15 23:12:43 +000021668$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021669
21670fi
21671
cristy8b350f62009-11-15 23:12:43 +000021672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021673$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021674if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021675 $as_echo_n "(cached) " >&6
21676else
cristy8b350f62009-11-15 23:12:43 +000021677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021678/* end confdefs.h. */
21679
21680int
21681main ()
21682{
21683
21684volatile int x;
21685int * volatile y = (int *) 0;
21686return !x && !y;
21687 ;
21688 return 0;
21689}
21690_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021691if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021692 ac_cv_c_volatile=yes
21693else
cristy8b350f62009-11-15 23:12:43 +000021694 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021695fi
cristy3ed852e2009-09-05 21:47:34 +000021696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21697fi
cristy8b350f62009-11-15 23:12:43 +000021698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021699$as_echo "$ac_cv_c_volatile" >&6; }
21700if test $ac_cv_c_volatile = no; then
21701
cristy8b350f62009-11-15 23:12:43 +000021702$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021703
21704fi
21705
cristy8b350f62009-11-15 23:12:43 +000021706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021707$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021708if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021709 $as_echo_n "(cached) " >&6
21710else
cristy8b350f62009-11-15 23:12:43 +000021711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021712/* end confdefs.h. */
21713#define x(y) #y
21714
21715char *s = x(teststring);
21716_ACEOF
21717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021718 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021719 ac_cv_c_stringize=no
21720else
21721 ac_cv_c_stringize=yes
21722fi
21723rm -f conftest*
21724
21725fi
cristy8b350f62009-11-15 23:12:43 +000021726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021727$as_echo "$ac_cv_c_stringize" >&6; }
21728if test $ac_cv_c_stringize = yes; then
21729
cristy8b350f62009-11-15 23:12:43 +000021730$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021731
21732fi
21733
cristy8b350f62009-11-15 23:12:43 +000021734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021735$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021736if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021737 $as_echo_n "(cached) " >&6
21738else
cristy8b350f62009-11-15 23:12:43 +000021739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021740/* end confdefs.h. */
21741#include <sys/types.h>
21742#include <sys/stat.h>
21743
21744#if defined S_ISBLK && defined S_IFDIR
21745extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21746#endif
21747
21748#if defined S_ISBLK && defined S_IFCHR
21749extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21750#endif
21751
21752#if defined S_ISLNK && defined S_IFREG
21753extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21754#endif
21755
21756#if defined S_ISSOCK && defined S_IFREG
21757extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21758#endif
21759
21760_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021761if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021762 ac_cv_header_stat_broken=no
21763else
cristy8b350f62009-11-15 23:12:43 +000021764 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021765fi
cristy3ed852e2009-09-05 21:47:34 +000021766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21767fi
cristy8b350f62009-11-15 23:12:43 +000021768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021769$as_echo "$ac_cv_header_stat_broken" >&6; }
21770if test $ac_cv_header_stat_broken = yes; then
21771
cristy8b350f62009-11-15 23:12:43 +000021772$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021773
21774fi
21775
cristy8b350f62009-11-15 23:12:43 +000021776{ $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 +000021777$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021778if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021779 $as_echo_n "(cached) " >&6
21780else
cristy8b350f62009-11-15 23:12:43 +000021781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021782/* end confdefs.h. */
21783#include <sys/types.h>
21784#include <sys/time.h>
21785#include <time.h>
21786
21787int
21788main ()
21789{
21790if ((struct tm *) 0)
21791return 0;
21792 ;
21793 return 0;
21794}
21795_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021796if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021797 ac_cv_header_time=yes
21798else
cristy8b350f62009-11-15 23:12:43 +000021799 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021800fi
cristy3ed852e2009-09-05 21:47:34 +000021801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21802fi
cristy8b350f62009-11-15 23:12:43 +000021803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021804$as_echo "$ac_cv_header_time" >&6; }
21805if test $ac_cv_header_time = yes; then
21806
cristy8b350f62009-11-15 23:12:43 +000021807$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021808
21809fi
21810
cristy8b350f62009-11-15 23:12:43 +000021811{ $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 +000021812$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021813if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021814 $as_echo_n "(cached) " >&6
21815else
cristy8b350f62009-11-15 23:12:43 +000021816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021817/* end confdefs.h. */
21818#include <sys/types.h>
21819#include <time.h>
21820
21821int
21822main ()
21823{
21824struct tm tm;
21825 int *p = &tm.tm_sec;
21826 return !p;
21827 ;
21828 return 0;
21829}
21830_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021831if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021832 ac_cv_struct_tm=time.h
21833else
cristy8b350f62009-11-15 23:12:43 +000021834 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021835fi
cristy3ed852e2009-09-05 21:47:34 +000021836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21837fi
cristy8b350f62009-11-15 23:12:43 +000021838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021839$as_echo "$ac_cv_struct_tm" >&6; }
21840if test $ac_cv_struct_tm = sys/time.h; then
21841
cristy8b350f62009-11-15 23:12:43 +000021842$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021843
21844fi
21845
cristy92703d82010-04-26 00:18:18 +000021846ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21847#include <$ac_cv_struct_tm>
21848
21849"
cristyda16f162011-02-19 23:52:17 +000021850if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021851
21852cat >>confdefs.h <<_ACEOF
21853#define HAVE_STRUCT_TM_TM_ZONE 1
21854_ACEOF
21855
21856
21857fi
21858
21859if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21860
21861$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21862
21863else
21864 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21865"
cristyda16f162011-02-19 23:52:17 +000021866if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021867 ac_have_decl=1
21868else
21869 ac_have_decl=0
21870fi
21871
21872cat >>confdefs.h <<_ACEOF
21873#define HAVE_DECL_TZNAME $ac_have_decl
21874_ACEOF
21875
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21877$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021878if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000021879 $as_echo_n "(cached) " >&6
21880else
21881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21882/* end confdefs.h. */
21883#include <time.h>
21884#if !HAVE_DECL_TZNAME
21885extern char *tzname[];
21886#endif
21887
21888int
21889main ()
21890{
21891return tzname[0][0];
21892 ;
21893 return 0;
21894}
21895_ACEOF
21896if ac_fn_c_try_link "$LINENO"; then :
21897 ac_cv_var_tzname=yes
21898else
21899 ac_cv_var_tzname=no
21900fi
21901rm -f core conftest.err conftest.$ac_objext \
21902 conftest$ac_exeext conftest.$ac_ext
21903fi
21904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21905$as_echo "$ac_cv_var_tzname" >&6; }
21906 if test $ac_cv_var_tzname = yes; then
21907
21908$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21909
21910 fi
21911fi
21912
cristy8b350f62009-11-15 23:12:43 +000021913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021914$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021915if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021916 $as_echo_n "(cached) " >&6
21917else
21918 echo '#! /bin/cat
21919exit 69
21920' >conftest
21921chmod u+x conftest
21922(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21923if test $? -ne 69; then
21924 ac_cv_sys_interpreter=yes
21925else
21926 ac_cv_sys_interpreter=no
21927fi
21928rm -f conftest
21929fi
cristy8b350f62009-11-15 23:12:43 +000021930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021931$as_echo "$ac_cv_sys_interpreter" >&6; }
21932interpval=$ac_cv_sys_interpreter
21933
21934
cristy3ed852e2009-09-05 21:47:34 +000021935# If the C compiler supports the keyword inline, do nothing. Otherwise
21936# define inline to __inline__ or __inline if it accepts one of those,
21937# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021939$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021940if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021941 $as_echo_n "(cached) " >&6
21942else
21943 ac_cv_c_inline=no
21944for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021946/* end confdefs.h. */
21947#ifndef __cplusplus
21948typedef int foo_t;
21949static $ac_kw foo_t static_foo () {return 0; }
21950$ac_kw foo_t foo () {return 0; }
21951#endif
21952
21953_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021954if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021955 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021956fi
cristy3ed852e2009-09-05 21:47:34 +000021957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21958 test "$ac_cv_c_inline" != no && break
21959done
21960
21961fi
cristy8b350f62009-11-15 23:12:43 +000021962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021963$as_echo "$ac_cv_c_inline" >&6; }
21964
cristy3ed852e2009-09-05 21:47:34 +000021965case $ac_cv_c_inline in
21966 inline | yes) ;;
21967 *)
21968 case $ac_cv_c_inline in
21969 no) ac_val=;;
21970 *) ac_val=$ac_cv_c_inline;;
21971 esac
21972 cat >>confdefs.h <<_ACEOF
21973#ifndef __cplusplus
21974#define inline $ac_val
21975#endif
21976_ACEOF
21977 ;;
21978esac
21979
21980
21981# If the C compiler supports the keyword restrict, do nothing. Otherwise
21982# define restrict to __restrict__ or __restrict if it accepts one of those,
21983# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021985$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021986if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021987 $as_echo_n "(cached) " >&6
21988else
21989 ac_cv_c_restrict=no
21990 # The order here caters to the fact that C++ does not require restrict.
21991 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021993/* end confdefs.h. */
21994typedef int * int_ptr;
21995 int foo (int_ptr $ac_kw ip) {
21996 return ip[0];
21997 }
21998int
21999main ()
22000{
22001int s[1];
22002 int * $ac_kw t = s;
22003 t[0] = 0;
22004 return foo(t)
22005 ;
22006 return 0;
22007}
22008_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022009if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022010 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022011fi
cristy3ed852e2009-09-05 21:47:34 +000022012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22013 test "$ac_cv_c_restrict" != no && break
22014 done
22015
22016fi
cristy8b350f62009-11-15 23:12:43 +000022017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022018$as_echo "$ac_cv_c_restrict" >&6; }
22019
cristy3ed852e2009-09-05 21:47:34 +000022020 case $ac_cv_c_restrict in
22021 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022022 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022023 ;;
22024 *) cat >>confdefs.h <<_ACEOF
22025#define restrict $ac_cv_c_restrict
22026_ACEOF
22027 ;;
22028 esac
22029
22030
22031# If words are stored with the most significant byte first (like
22032# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022034$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022035if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022036 $as_echo_n "(cached) " >&6
22037else
22038 ac_cv_c_bigendian=unknown
22039 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022041/* end confdefs.h. */
22042#ifndef __APPLE_CC__
22043 not a universal capable compiler
22044 #endif
22045 typedef int dummy;
22046
22047_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022048if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022049
22050 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022051 # there are at least two -arch flags with different values.
22052 ac_arch=
22053 ac_prev=
22054 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22055 if test -n "$ac_prev"; then
22056 case $ac_word in
22057 i?86 | x86_64 | ppc | ppc64)
22058 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22059 ac_arch=$ac_word
22060 else
22061 ac_cv_c_bigendian=universal
22062 break
22063 fi
22064 ;;
22065 esac
22066 ac_prev=
22067 elif test "x$ac_word" = "x-arch"; then
22068 ac_prev=arch
22069 fi
22070 done
cristy3ed852e2009-09-05 21:47:34 +000022071fi
cristy3ed852e2009-09-05 21:47:34 +000022072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22073 if test $ac_cv_c_bigendian = unknown; then
22074 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022076/* end confdefs.h. */
22077#include <sys/types.h>
22078 #include <sys/param.h>
22079
22080int
22081main ()
22082{
22083#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22084 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22085 && LITTLE_ENDIAN)
22086 bogus endian macros
22087 #endif
22088
22089 ;
22090 return 0;
22091}
22092_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022093if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022094 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022096/* end confdefs.h. */
22097#include <sys/types.h>
22098 #include <sys/param.h>
22099
22100int
22101main ()
22102{
22103#if BYTE_ORDER != BIG_ENDIAN
22104 not big endian
22105 #endif
22106
22107 ;
22108 return 0;
22109}
22110_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022111if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022112 ac_cv_c_bigendian=yes
22113else
cristy8b350f62009-11-15 23:12:43 +000022114 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022115fi
cristy3ed852e2009-09-05 21:47:34 +000022116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022117fi
cristy3ed852e2009-09-05 21:47:34 +000022118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22119 fi
22120 if test $ac_cv_c_bigendian = unknown; then
22121 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022123/* end confdefs.h. */
22124#include <limits.h>
22125
22126int
22127main ()
22128{
22129#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22130 bogus endian macros
22131 #endif
22132
22133 ;
22134 return 0;
22135}
22136_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022137if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022138 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022140/* end confdefs.h. */
22141#include <limits.h>
22142
22143int
22144main ()
22145{
22146#ifndef _BIG_ENDIAN
22147 not big endian
22148 #endif
22149
22150 ;
22151 return 0;
22152}
22153_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022154if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022155 ac_cv_c_bigendian=yes
22156else
cristy8b350f62009-11-15 23:12:43 +000022157 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022158fi
cristy3ed852e2009-09-05 21:47:34 +000022159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022160fi
cristy3ed852e2009-09-05 21:47:34 +000022161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22162 fi
22163 if test $ac_cv_c_bigendian = unknown; then
22164 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022165 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022166 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022168/* end confdefs.h. */
22169short int ascii_mm[] =
22170 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22171 short int ascii_ii[] =
22172 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22173 int use_ascii (int i) {
22174 return ascii_mm[i] + ascii_ii[i];
22175 }
22176 short int ebcdic_ii[] =
22177 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22178 short int ebcdic_mm[] =
22179 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22180 int use_ebcdic (int i) {
22181 return ebcdic_mm[i] + ebcdic_ii[i];
22182 }
22183 extern int foo;
22184
22185int
22186main ()
22187{
22188return use_ascii (foo) == use_ebcdic (foo);
22189 ;
22190 return 0;
22191}
22192_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022193if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022194 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22195 ac_cv_c_bigendian=yes
22196 fi
22197 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22198 if test "$ac_cv_c_bigendian" = unknown; then
22199 ac_cv_c_bigendian=no
22200 else
22201 # finding both strings is unlikely to happen, but who knows?
22202 ac_cv_c_bigendian=unknown
22203 fi
22204 fi
cristy3ed852e2009-09-05 21:47:34 +000022205fi
cristy3ed852e2009-09-05 21:47:34 +000022206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22207else
cristy8b350f62009-11-15 23:12:43 +000022208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022209/* end confdefs.h. */
22210$ac_includes_default
22211int
22212main ()
22213{
22214
22215 /* Are we little or big endian? From Harbison&Steele. */
22216 union
22217 {
22218 long int l;
22219 char c[sizeof (long int)];
22220 } u;
22221 u.l = 1;
22222 return u.c[sizeof (long int) - 1] == 1;
22223
22224 ;
22225 return 0;
22226}
22227_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022228if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022229 ac_cv_c_bigendian=no
22230else
cristy8b350f62009-11-15 23:12:43 +000022231 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022232fi
cristy8b350f62009-11-15 23:12:43 +000022233rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22234 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022235fi
22236
cristy3ed852e2009-09-05 21:47:34 +000022237 fi
22238fi
cristy8b350f62009-11-15 23:12:43 +000022239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022240$as_echo "$ac_cv_c_bigendian" >&6; }
22241 case $ac_cv_c_bigendian in #(
22242 yes)
cristy8b350f62009-11-15 23:12:43 +000022243 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022244;; #(
22245 no)
22246 ;; #(
22247 universal)
22248
cristy8b350f62009-11-15 23:12:43 +000022249$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022250
22251 ;; #(
22252 *)
cristy98dddb52010-11-04 00:30:15 +000022253 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022254 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022255 esac
22256
22257
22258# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022259ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022260if test "x$ac_cv_type_mode_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022261
cristy3ed852e2009-09-05 21:47:34 +000022262else
22263
22264cat >>confdefs.h <<_ACEOF
22265#define mode_t int
22266_ACEOF
22267
22268fi
22269
22270
22271# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022272ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022273if test "x$ac_cv_type_off_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022274
cristy3ed852e2009-09-05 21:47:34 +000022275else
22276
22277cat >>confdefs.h <<_ACEOF
22278#define off_t long int
22279_ACEOF
22280
22281fi
22282
22283
22284# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022285ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022286if test "x$ac_cv_type_pid_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022287
cristy3ed852e2009-09-05 21:47:34 +000022288else
22289
22290cat >>confdefs.h <<_ACEOF
22291#define pid_t int
22292_ACEOF
22293
22294fi
22295
22296
22297# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022298ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022299if test "x$ac_cv_type_size_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022300
cristy3ed852e2009-09-05 21:47:34 +000022301else
22302
22303cat >>confdefs.h <<_ACEOF
22304#define size_t unsigned int
22305_ACEOF
22306
22307fi
22308
22309
22310# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022311ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022312if test "x$ac_cv_type_ssize_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022313
cristy3ed852e2009-09-05 21:47:34 +000022314else
22315
22316cat >>confdefs.h <<_ACEOF
22317#define ssize_t int
22318_ACEOF
22319
22320fi
22321
22322
22323# If the C compiler supports a working long double type with more range
22324# or precision than the double type, define HAVE_LONG_DOUBLE.
22325
cristy8b350f62009-11-15 23:12:43 +000022326 { $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 +000022327$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022328if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022329 $as_echo_n "(cached) " >&6
22330else
cristy8b350f62009-11-15 23:12:43 +000022331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022332/* end confdefs.h. */
22333#include <float.h>
22334 long double const a[] =
22335 {
22336 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22337 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22338 };
22339 long double
22340 f (long double x)
22341 {
22342 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22343 + (x ? f (x) : 'c'));
22344 }
22345
22346int
22347main ()
22348{
22349static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22350 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22351 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22352 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22353 && (int) LDBL_EPSILON == 0
22354 )];
22355test_array [0] = 0
22356
22357 ;
22358 return 0;
22359}
22360_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022361if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022362 ac_cv_type_long_double_wider=yes
22363else
cristy8b350f62009-11-15 23:12:43 +000022364 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022365fi
cristy3ed852e2009-09-05 21:47:34 +000022366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22367fi
cristy8b350f62009-11-15 23:12:43 +000022368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022369$as_echo "$ac_cv_type_long_double_wider" >&6; }
22370 if test $ac_cv_type_long_double_wider = yes; then
22371
cristy8b350f62009-11-15 23:12:43 +000022372$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022373
22374 fi
22375
22376
22377# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
22378# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000022379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022380$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022381if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022382 $as_echo_n "(cached) " >&6
22383else
cristy8b350f62009-11-15 23:12:43 +000022384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022385/* end confdefs.h. */
22386$ac_includes_default
22387int
22388main ()
22389{
22390static int test_array [1 - 2 * !(((char) -1) < 0)];
22391test_array [0] = 0
22392
22393 ;
22394 return 0;
22395}
22396_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022397if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022398 ac_cv_c_char_unsigned=no
22399else
cristy8b350f62009-11-15 23:12:43 +000022400 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000022401fi
cristy3ed852e2009-09-05 21:47:34 +000022402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22403fi
cristy8b350f62009-11-15 23:12:43 +000022404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022405$as_echo "$ac_cv_c_char_unsigned" >&6; }
22406if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000022407 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022408
22409fi
22410
22411
22412# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
22413# The cast to long int works around a bug in the HP C Compiler
22414# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22415# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22416# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022418$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022419if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022420 $as_echo_n "(cached) " >&6
22421else
cristy8b350f62009-11-15 23:12:43 +000022422 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 +000022423
cristy3ed852e2009-09-05 21:47:34 +000022424else
cristy8b350f62009-11-15 23:12:43 +000022425 if test "$ac_cv_type_signed_short" = yes; then
22426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022427$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022428as_fn_error 77 "cannot compute sizeof (signed short)
22429See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022430 else
22431 ac_cv_sizeof_signed_short=0
22432 fi
22433fi
cristy8b350f62009-11-15 23:12:43 +000022434
cristy3ed852e2009-09-05 21:47:34 +000022435fi
cristy8b350f62009-11-15 23:12:43 +000022436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022437$as_echo "$ac_cv_sizeof_signed_short" >&6; }
22438
22439
22440
22441cat >>confdefs.h <<_ACEOF
22442#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
22443_ACEOF
22444
22445
22446
22447# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
22448# The cast to long int works around a bug in the HP C Compiler
22449# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22450# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22451# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022453$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022454if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022455 $as_echo_n "(cached) " >&6
22456else
cristy8b350f62009-11-15 23:12:43 +000022457 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 +000022458
cristy3ed852e2009-09-05 21:47:34 +000022459else
cristy8b350f62009-11-15 23:12:43 +000022460 if test "$ac_cv_type_unsigned_short" = yes; then
22461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022463as_fn_error 77 "cannot compute sizeof (unsigned short)
22464See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022465 else
22466 ac_cv_sizeof_unsigned_short=0
22467 fi
22468fi
cristy8b350f62009-11-15 23:12:43 +000022469
cristy3ed852e2009-09-05 21:47:34 +000022470fi
cristy8b350f62009-11-15 23:12:43 +000022471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022472$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
22473
22474
22475
22476cat >>confdefs.h <<_ACEOF
22477#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
22478_ACEOF
22479
22480
22481
22482# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
22483# The cast to long int works around a bug in the HP C Compiler
22484# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22485# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22486# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022488$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022489if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022490 $as_echo_n "(cached) " >&6
22491else
cristy8b350f62009-11-15 23:12:43 +000022492 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 +000022493
cristy3ed852e2009-09-05 21:47:34 +000022494else
cristy8b350f62009-11-15 23:12:43 +000022495 if test "$ac_cv_type_signed_int" = yes; then
22496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022498as_fn_error 77 "cannot compute sizeof (signed int)
22499See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022500 else
22501 ac_cv_sizeof_signed_int=0
22502 fi
22503fi
cristy8b350f62009-11-15 23:12:43 +000022504
cristy3ed852e2009-09-05 21:47:34 +000022505fi
cristy8b350f62009-11-15 23:12:43 +000022506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022507$as_echo "$ac_cv_sizeof_signed_int" >&6; }
22508
22509
22510
22511cat >>confdefs.h <<_ACEOF
22512#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
22513_ACEOF
22514
22515
22516
22517# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
22518# The cast to long int works around a bug in the HP C Compiler
22519# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22520# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22521# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022523$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022524if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022525 $as_echo_n "(cached) " >&6
22526else
cristy8b350f62009-11-15 23:12:43 +000022527 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 +000022528
cristy3ed852e2009-09-05 21:47:34 +000022529else
cristy8b350f62009-11-15 23:12:43 +000022530 if test "$ac_cv_type_unsigned_int" = yes; then
22531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022533as_fn_error 77 "cannot compute sizeof (unsigned int)
22534See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022535 else
22536 ac_cv_sizeof_unsigned_int=0
22537 fi
22538fi
cristy8b350f62009-11-15 23:12:43 +000022539
cristy3ed852e2009-09-05 21:47:34 +000022540fi
cristy8b350f62009-11-15 23:12:43 +000022541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022542$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
22543
22544
22545
22546cat >>confdefs.h <<_ACEOF
22547#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
22548_ACEOF
22549
22550
22551
22552# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
22553# The cast to long int works around a bug in the HP C Compiler
22554# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22555# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22556# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022558$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022559if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022560 $as_echo_n "(cached) " >&6
22561else
cristy8b350f62009-11-15 23:12:43 +000022562 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 +000022563
cristy3ed852e2009-09-05 21:47:34 +000022564else
cristy8b350f62009-11-15 23:12:43 +000022565 if test "$ac_cv_type_signed_long" = yes; then
22566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022567$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022568as_fn_error 77 "cannot compute sizeof (signed long)
22569See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022570 else
22571 ac_cv_sizeof_signed_long=0
22572 fi
22573fi
cristy8b350f62009-11-15 23:12:43 +000022574
cristy3ed852e2009-09-05 21:47:34 +000022575fi
cristy8b350f62009-11-15 23:12:43 +000022576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022577$as_echo "$ac_cv_sizeof_signed_long" >&6; }
22578
22579
22580
22581cat >>confdefs.h <<_ACEOF
22582#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
22583_ACEOF
22584
22585
22586
22587# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
22588# The cast to long int works around a bug in the HP C Compiler
22589# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22590# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22591# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022593$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022594if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022595 $as_echo_n "(cached) " >&6
22596else
cristy8b350f62009-11-15 23:12:43 +000022597 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 +000022598
cristy3ed852e2009-09-05 21:47:34 +000022599else
cristy8b350f62009-11-15 23:12:43 +000022600 if test "$ac_cv_type_unsigned_long" = yes; then
22601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022603as_fn_error 77 "cannot compute sizeof (unsigned long)
22604See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022605 else
22606 ac_cv_sizeof_unsigned_long=0
22607 fi
22608fi
cristy8b350f62009-11-15 23:12:43 +000022609
cristy3ed852e2009-09-05 21:47:34 +000022610fi
cristy8b350f62009-11-15 23:12:43 +000022611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022612$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
22613
22614
22615
22616cat >>confdefs.h <<_ACEOF
22617#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
22618_ACEOF
22619
22620
22621
22622# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
22623# 'signed long long' is not supported then the value defined is zero.
22624# The cast to long int works around a bug in the HP C Compiler
22625# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22626# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22627# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022629$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022630if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022631 $as_echo_n "(cached) " >&6
22632else
cristy8b350f62009-11-15 23:12:43 +000022633 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 +000022634
cristy3ed852e2009-09-05 21:47:34 +000022635else
cristy8b350f62009-11-15 23:12:43 +000022636 if test "$ac_cv_type_signed_long_long" = yes; then
22637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022639as_fn_error 77 "cannot compute sizeof (signed long long)
22640See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022641 else
22642 ac_cv_sizeof_signed_long_long=0
22643 fi
22644fi
cristy8b350f62009-11-15 23:12:43 +000022645
cristy3ed852e2009-09-05 21:47:34 +000022646fi
cristy8b350f62009-11-15 23:12:43 +000022647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022648$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
22649
22650
22651
22652cat >>confdefs.h <<_ACEOF
22653#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
22654_ACEOF
22655
22656
22657
22658# Obtain size of a 'unsigned long long' and define as
22659# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
22660# supported then the value defined is zero.
22661# The cast to long int works around a bug in the HP C Compiler
22662# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22663# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22664# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022666$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022667if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022668 $as_echo_n "(cached) " >&6
22669else
cristy8b350f62009-11-15 23:12:43 +000022670 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 +000022671
cristy3ed852e2009-09-05 21:47:34 +000022672else
cristy8b350f62009-11-15 23:12:43 +000022673 if test "$ac_cv_type_unsigned_long_long" = yes; then
22674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022675$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022676as_fn_error 77 "cannot compute sizeof (unsigned long long)
22677See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022678 else
22679 ac_cv_sizeof_unsigned_long_long=0
22680 fi
22681fi
cristy8b350f62009-11-15 23:12:43 +000022682
cristy3ed852e2009-09-05 21:47:34 +000022683fi
cristy8b350f62009-11-15 23:12:43 +000022684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022685$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
22686
22687
22688
22689cat >>confdefs.h <<_ACEOF
22690#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
22691_ACEOF
22692
22693
22694
22695# Obtain size of off_t and define as SIZEOF_OFF_T
22696# The cast to long int works around a bug in the HP C Compiler
22697# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22698# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22699# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022701$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022702if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022703 $as_echo_n "(cached) " >&6
22704else
cristy8b350f62009-11-15 23:12:43 +000022705 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 +000022706
cristy3ed852e2009-09-05 21:47:34 +000022707else
cristy8b350f62009-11-15 23:12:43 +000022708 if test "$ac_cv_type_off_t" = yes; then
22709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022711as_fn_error 77 "cannot compute sizeof (off_t)
22712See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022713 else
22714 ac_cv_sizeof_off_t=0
22715 fi
22716fi
cristy8b350f62009-11-15 23:12:43 +000022717
cristy3ed852e2009-09-05 21:47:34 +000022718fi
cristy8b350f62009-11-15 23:12:43 +000022719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022720$as_echo "$ac_cv_sizeof_off_t" >&6; }
22721
22722
22723
22724cat >>confdefs.h <<_ACEOF
22725#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
22726_ACEOF
22727
22728
22729
22730# Obtain size of size_t and define as SIZEOF_SIZE_T
22731# The cast to long int works around a bug in the HP C Compiler
22732# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22733# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22734# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022736$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022737if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022738 $as_echo_n "(cached) " >&6
22739else
cristy8b350f62009-11-15 23:12:43 +000022740 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 +000022741
cristy3ed852e2009-09-05 21:47:34 +000022742else
cristy8b350f62009-11-15 23:12:43 +000022743 if test "$ac_cv_type_size_t" = yes; then
22744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022745$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022746as_fn_error 77 "cannot compute sizeof (size_t)
22747See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022748 else
22749 ac_cv_sizeof_size_t=0
22750 fi
22751fi
cristy8b350f62009-11-15 23:12:43 +000022752
cristy3ed852e2009-09-05 21:47:34 +000022753fi
cristy8b350f62009-11-15 23:12:43 +000022754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022755$as_echo "$ac_cv_sizeof_size_t" >&6; }
22756
22757
22758
22759cat >>confdefs.h <<_ACEOF
22760#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22761_ACEOF
22762
22763
22764
cristy330e9352010-06-01 18:42:49 +000022765# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
22766# The cast to long int works around a bug in the HP C Compiler
22767# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22768# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22769# This bug is HP SR number 8606223364.
22770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
22771$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022772if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000022773 $as_echo_n "(cached) " >&6
22774else
22775 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
22776
22777else
22778 if test "$ac_cv_type_ssize_t" = yes; then
22779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22780$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022781as_fn_error 77 "cannot compute sizeof (ssize_t)
22782See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000022783 else
22784 ac_cv_sizeof_ssize_t=0
22785 fi
22786fi
22787
22788fi
22789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
22790$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
22791
22792
22793
22794cat >>confdefs.h <<_ACEOF
22795#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
22796_ACEOF
22797
22798
22799
cristy3ed852e2009-09-05 21:47:34 +000022800# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
22801# The cast to long int works around a bug in the HP C Compiler
22802# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22803# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22804# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000022806$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022807if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022808 $as_echo_n "(cached) " >&6
22809else
cristy8b350f62009-11-15 23:12:43 +000022810 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 +000022811
cristy3ed852e2009-09-05 21:47:34 +000022812else
cristy8b350f62009-11-15 23:12:43 +000022813 if test "$ac_cv_type_unsigned_intp" = yes; then
22814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022815$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022816as_fn_error 77 "cannot compute sizeof (unsigned int*)
22817See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022818 else
22819 ac_cv_sizeof_unsigned_intp=0
22820 fi
22821fi
cristy8b350f62009-11-15 23:12:43 +000022822
cristy3ed852e2009-09-05 21:47:34 +000022823fi
cristy8b350f62009-11-15 23:12:43 +000022824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022825$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
22826
22827
22828
22829cat >>confdefs.h <<_ACEOF
22830#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
22831_ACEOF
22832
22833
22834
22835#
22836# Compute sized types for current CPU and compiler options.
22837#
22838
cristy8b350f62009-11-15 23:12:43 +000022839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022840$as_echo_n "checking for signed 8-bit type... " >&6; }
22841INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000022842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022843$as_echo "$INT8_T" >&6; }
22844
22845
cristy8b350f62009-11-15 23:12:43 +000022846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022847$as_echo_n "checking for unsigned 8-bit type... " >&6; }
22848UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000022849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022850$as_echo "$UINT8_T" >&6; }
22851
22852
cristy8b350f62009-11-15 23:12:43 +000022853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022854$as_echo_n "checking for signed 16-bit type... " >&6; }
22855INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022857$as_echo "$INT16_T" >&6; }
22858
22859
cristy8b350f62009-11-15 23:12:43 +000022860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022861$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22862UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022864$as_echo "$UINT16_T" >&6; }
22865
22866
cristy8b350f62009-11-15 23:12:43 +000022867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022868$as_echo_n "checking for signed 32-bit type... " >&6; }
22869INT32_T='none'
22870if test $ac_cv_sizeof_signed_int -eq 4; then
22871 INT32_T='signed int'
22872elif test $ac_cv_sizeof_signed_long -eq 4; then
22873 INT32_T='signed long'
22874fi
cristy8b350f62009-11-15 23:12:43 +000022875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022876$as_echo "$INT32_T" >&6; }
22877
22878
cristy8b350f62009-11-15 23:12:43 +000022879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022880$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22881UINT32_T='none'
22882if test $ac_cv_sizeof_unsigned_int -eq 4; then
22883 UINT32_T='unsigned int'
22884elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22885 UINT32_T='unsigned long'
22886fi
cristy8b350f62009-11-15 23:12:43 +000022887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022888$as_echo "$UINT32_T" >&6; }
22889
22890
cristy8b350f62009-11-15 23:12:43 +000022891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022892$as_echo_n "checking for signed 64-bit type... " >&6; }
22893INT64_T='none'
22894if test $ac_cv_sizeof_signed_long -eq 8; then
22895 INT64_T='signed long'
22896elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22897 INT64_T='signed long long'
22898fi
cristy8b350f62009-11-15 23:12:43 +000022899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022900$as_echo "$INT64_T" >&6; }
22901
22902
cristy8b350f62009-11-15 23:12:43 +000022903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022904$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22905UINT64_T='none'
22906if test $ac_cv_sizeof_unsigned_long -eq 8; then
22907 UINT64_T='unsigned long'
22908elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22909 UINT64_T='unsigned long long'
22910fi
cristy8b350f62009-11-15 23:12:43 +000022911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022912$as_echo "$UINT64_T" >&6; }
22913
22914
cristy8b350f62009-11-15 23:12:43 +000022915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022916$as_echo_n "checking for unsigned maximum type... " >&6; }
22917UINTMAX_T='none'
22918if test "$UINT64_T" != 'none'; then
22919 UINTMAX_T=$UINT64_T
22920elif test "$UINT32_T" != 'none'; then
22921 UINTMAX_T=$UINT32_T
22922fi
cristy8b350f62009-11-15 23:12:43 +000022923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022924$as_echo "$UINTMAX_T" >&6; }
22925
22926
cristy8b350f62009-11-15 23:12:43 +000022927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022928$as_echo_n "checking for pointer difference type... " >&6; }
22929UINTPTR_T='none'
22930if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22931 UINTPTR_T='unsigned long'
22932elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22933 UINTPTR_T='unsigned long long'
22934fi
cristy8b350f62009-11-15 23:12:43 +000022935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022936$as_echo "$UINTPTR_T" >&6; }
22937
22938
cristy8b350f62009-11-15 23:12:43 +000022939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022940$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022942/* end confdefs.h. */
22943
22944int
22945main ()
22946{
22947{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22948 ;
22949 return 0;
22950}
22951_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022952if ac_fn_c_try_compile "$LINENO"; then :
22953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022954$as_echo "yes" >&6; }
22955else
cristy8b350f62009-11-15 23:12:43 +000022956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022957$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022959$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022961/* end confdefs.h. */
22962
22963int
22964main ()
22965{
22966{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22967 ;
22968 return 0;
22969}
22970_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022971if ac_fn_c_try_compile "$LINENO"; then :
22972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022973$as_echo "yes" >&6; }
22974
cristy8b350f62009-11-15 23:12:43 +000022975$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022976
22977else
cristy8b350f62009-11-15 23:12:43 +000022978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022979$as_echo "no" >&6; }
22980
cristy8b350f62009-11-15 23:12:43 +000022981$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022982
22983fi
cristy3ed852e2009-09-05 21:47:34 +000022984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22985fi
cristy3ed852e2009-09-05 21:47:34 +000022986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22987
22988########
22989#
22990# Check for functions
22991#
22992########
cristy73bd4a52010-10-05 11:24:23 +000022993for ac_header in stdlib.h unistd.h
22994do :
22995 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22996ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022997if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000022998 cat >>confdefs.h <<_ACEOF
22999#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23000_ACEOF
23001
23002fi
23003
23004done
23005
23006for ac_func in getpagesize
23007do :
23008 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023009if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023010 cat >>confdefs.h <<_ACEOF
23011#define HAVE_GETPAGESIZE 1
23012_ACEOF
23013
23014fi
23015done
23016
23017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23018$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023019if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023020 $as_echo_n "(cached) " >&6
23021else
23022 if test "$cross_compiling" = yes; then :
23023 magick_cv_func_mmap_fileio=no
23024else
23025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23026/* end confdefs.h. */
23027$ac_includes_default
23028/* malloc might have been renamed as rpl_malloc. */
23029#undef malloc
23030
23031/*
23032 This test is derived from GNU Autoconf's similar macro.
23033 The purpose of this test is to verify that files may be memory
23034 mapped, and that memory mapping and file I/O are coherent.
23035
23036 The test creates a test file, memory maps the file, updates
23037 the file using the memory map, and then reads the file using
23038 file I/O to verify that the file contains the updates.
23039*/
23040
23041#include <fcntl.h>
23042#include <sys/mman.h>
23043
23044#if !STDC_HEADERS && !HAVE_STDLIB_H
23045char *malloc ();
23046#endif
23047
23048/* This mess was copied from the GNU getpagesize.h. */
23049#if !HAVE_GETPAGESIZE
23050/* Assume that all systems that can run configure have sys/param.h. */
23051# if !HAVE_SYS_PARAM_H
23052# define HAVE_SYS_PARAM_H 1
23053# endif
23054
23055# ifdef _SC_PAGESIZE
23056# define getpagesize() sysconf(_SC_PAGESIZE)
23057# else /* no _SC_PAGESIZE */
23058# if HAVE_SYS_PARAM_H
23059# include <sys/param.h>
23060# ifdef EXEC_PAGESIZE
23061# define getpagesize() EXEC_PAGESIZE
23062# else /* no EXEC_PAGESIZE */
23063# ifdef NBPG
23064# define getpagesize() NBPG * CLSIZE
23065# ifndef CLSIZE
23066# define CLSIZE 1
23067# endif /* no CLSIZE */
23068# else /* no NBPG */
23069# ifdef NBPC
23070# define getpagesize() NBPC
23071# else /* no NBPC */
23072# ifdef PAGESIZE
23073# define getpagesize() PAGESIZE
23074# endif /* PAGESIZE */
23075# endif /* no NBPC */
23076# endif /* no NBPG */
23077# endif /* no EXEC_PAGESIZE */
23078# else /* no HAVE_SYS_PARAM_H */
23079# define getpagesize() 8192 /* punt totally */
23080# endif /* no HAVE_SYS_PARAM_H */
23081# endif /* no _SC_PAGESIZE */
23082
23083#endif /* no HAVE_GETPAGESIZE */
23084
23085int
23086main ()
23087{
23088 char *data, *data2, *data3;
23089 int i, pagesize;
23090 int fd;
23091
23092 pagesize = getpagesize ();
23093
23094 /* First, make a file with some known garbage in it. */
23095 data = (char *) malloc (pagesize);
23096 if (!data)
23097 exit (1);
23098 for (i = 0; i < pagesize; ++i)
23099 *(data + i) = rand ();
23100 umask (0);
23101 fd = creat ("conftest.mmap", 0600);
23102 if (fd < 0)
23103 exit (1);
23104 if (write (fd, data, pagesize) != pagesize)
23105 exit (1);
23106 close (fd);
23107
23108 /* Mmap the file as read/write/shared and verify that we see the
23109 same garbage. */
23110 fd = open ("conftest.mmap", O_RDWR);
23111 if (fd < 0)
23112 exit (1);
23113 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23114 if (data2 == 0)
23115 exit (1);
23116 for (i = 0; i < pagesize; ++i)
23117 if (*(data + i) != *(data2 + i))
23118 exit (1);
23119
23120 /* Finally, make sure that changes to the mapped area
23121 percolate back to the file as seen by read(). */
23122 for (i = 0; i < pagesize; ++i)
23123 *(data2 + i) = *(data2 + i) + 1;
23124 data3 = (char *) malloc (pagesize);
23125 if (!data3)
23126 exit (1);
23127 if (read (fd, data3, pagesize) != pagesize)
23128 exit (1);
23129 for (i = 0; i < pagesize; ++i)
23130 if (*(data2 + i) != *(data3 + i))
23131 exit (1);
23132 close (fd);
23133 exit (0);
23134}
23135_ACEOF
23136if ac_fn_c_try_run "$LINENO"; then :
23137 magick_cv_func_mmap_fileio=yes
23138else
23139 magick_cv_func_mmap_fileio=no
23140fi
23141rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23142 conftest.$ac_objext conftest.beam conftest.$ac_ext
23143fi
23144
23145fi
23146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23147$as_echo "$magick_cv_func_mmap_fileio" >&6; }
23148if test $magick_cv_func_mmap_fileio = yes; then
23149
23150$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23151
23152fi
23153rm -f conftest.mmap
23154
cristy8b350f62009-11-15 23:12:43 +000023155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023156$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023157if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023158 $as_echo_n "(cached) " >&6
23159else
cristy8b350f62009-11-15 23:12:43 +000023160 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023161 ac_cv_func_closedir_void=yes
23162else
cristy8b350f62009-11-15 23:12:43 +000023163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023164/* end confdefs.h. */
23165$ac_includes_default
23166#include <$ac_header_dirent>
23167#ifndef __cplusplus
23168int closedir ();
23169#endif
23170
23171int
23172main ()
23173{
23174return closedir (opendir (".")) != 0;
23175 ;
23176 return 0;
23177}
23178_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023179if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023180 ac_cv_func_closedir_void=no
23181else
cristy8b350f62009-11-15 23:12:43 +000023182 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000023183fi
cristy8b350f62009-11-15 23:12:43 +000023184rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23185 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023186fi
23187
cristy3ed852e2009-09-05 21:47:34 +000023188fi
cristy8b350f62009-11-15 23:12:43 +000023189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023190$as_echo "$ac_cv_func_closedir_void" >&6; }
23191if test $ac_cv_func_closedir_void = yes; then
23192
cristy8b350f62009-11-15 23:12:43 +000023193$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023194
23195fi
23196
cristycd4c5312009-11-22 01:19:08 +000023197
23198
23199
23200 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000023201do :
23202 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000023203ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23204"
cristy98dddb52010-11-04 00:30:15 +000023205if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023206 cat >>confdefs.h <<_ACEOF
23207#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23208_ACEOF
23209
23210fi
23211
23212done
23213
cristycd4c5312009-11-22 01:19:08 +000023214
23215
23216
23217
23218
23219
23220
cristy3ed852e2009-09-05 21:47:34 +000023221for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000023222do :
23223 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023224if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023225 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023226#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000023227_ACEOF
23228
23229fi
23230done
23231
cristy8b350f62009-11-15 23:12:43 +000023232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000023233$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023234if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023235 $as_echo_n "(cached) " >&6
23236else
cristy8b350f62009-11-15 23:12:43 +000023237 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023238 ac_cv_func_mmap_fixed_mapped=no
23239else
cristy8b350f62009-11-15 23:12:43 +000023240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023241/* end confdefs.h. */
23242$ac_includes_default
23243/* malloc might have been renamed as rpl_malloc. */
23244#undef malloc
23245
23246/* Thanks to Mike Haertel and Jim Avera for this test.
23247 Here is a matrix of mmap possibilities:
23248 mmap private not fixed
23249 mmap private fixed at somewhere currently unmapped
23250 mmap private fixed at somewhere already mapped
23251 mmap shared not fixed
23252 mmap shared fixed at somewhere currently unmapped
23253 mmap shared fixed at somewhere already mapped
23254 For private mappings, we should verify that changes cannot be read()
23255 back from the file, nor mmap's back from the file at a different
23256 address. (There have been systems where private was not correctly
23257 implemented like the infamous i386 svr4.0, and systems where the
23258 VM page cache was not coherent with the file system buffer cache
23259 like early versions of FreeBSD and possibly contemporary NetBSD.)
23260 For shared mappings, we should conversely verify that changes get
23261 propagated back to all the places they're supposed to be.
23262
23263 Grep wants private fixed already mapped.
23264 The main things grep needs to know about mmap are:
23265 * does it exist and is it safe to write into the mmap'd area
23266 * how to use it (BSD variants) */
23267
23268#include <fcntl.h>
23269#include <sys/mman.h>
23270
23271#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
23272char *malloc ();
23273#endif
23274
23275/* This mess was copied from the GNU getpagesize.h. */
23276#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000023277# ifdef _SC_PAGESIZE
23278# define getpagesize() sysconf(_SC_PAGESIZE)
23279# else /* no _SC_PAGESIZE */
23280# ifdef HAVE_SYS_PARAM_H
23281# include <sys/param.h>
23282# ifdef EXEC_PAGESIZE
23283# define getpagesize() EXEC_PAGESIZE
23284# else /* no EXEC_PAGESIZE */
23285# ifdef NBPG
23286# define getpagesize() NBPG * CLSIZE
23287# ifndef CLSIZE
23288# define CLSIZE 1
23289# endif /* no CLSIZE */
23290# else /* no NBPG */
23291# ifdef NBPC
23292# define getpagesize() NBPC
23293# else /* no NBPC */
23294# ifdef PAGESIZE
23295# define getpagesize() PAGESIZE
23296# endif /* PAGESIZE */
23297# endif /* no NBPC */
23298# endif /* no NBPG */
23299# endif /* no EXEC_PAGESIZE */
23300# else /* no HAVE_SYS_PARAM_H */
23301# define getpagesize() 8192 /* punt totally */
23302# endif /* no HAVE_SYS_PARAM_H */
23303# endif /* no _SC_PAGESIZE */
23304
23305#endif /* no HAVE_GETPAGESIZE */
23306
23307int
23308main ()
23309{
23310 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000023311 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000023312 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000023313 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000023314
23315 pagesize = getpagesize ();
23316
23317 /* First, make a file with some known garbage in it. */
23318 data = (char *) malloc (pagesize);
23319 if (!data)
23320 return 1;
23321 for (i = 0; i < pagesize; ++i)
23322 *(data + i) = rand ();
23323 umask (0);
23324 fd = creat ("conftest.mmap", 0600);
23325 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000023326 return 2;
cristy3ed852e2009-09-05 21:47:34 +000023327 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000023328 return 3;
cristy3ed852e2009-09-05 21:47:34 +000023329 close (fd);
23330
cristycd4c5312009-11-22 01:19:08 +000023331 /* Next, check that the tail of a page is zero-filled. File must have
23332 non-zero length, otherwise we risk SIGBUS for entire page. */
23333 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
23334 if (fd2 < 0)
23335 return 4;
cristyc54f5d42009-11-27 21:36:31 +000023336 cdata2 = "";
23337 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000023338 return 5;
cristyc54f5d42009-11-27 21:36:31 +000023339 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000023340 if (data2 == MAP_FAILED)
23341 return 6;
23342 for (i = 0; i < pagesize; ++i)
23343 if (*(data2 + i))
23344 return 7;
23345 close (fd2);
23346 if (munmap (data2, pagesize))
23347 return 8;
23348
cristy3ed852e2009-09-05 21:47:34 +000023349 /* Next, try to mmap the file at a fixed address which already has
23350 something else allocated at it. If we can, also make sure that
23351 we see the same garbage. */
23352 fd = open ("conftest.mmap", O_RDWR);
23353 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000023354 return 9;
cristy3ed852e2009-09-05 21:47:34 +000023355 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23356 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000023357 return 10;
cristy3ed852e2009-09-05 21:47:34 +000023358 for (i = 0; i < pagesize; ++i)
23359 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000023360 return 11;
cristy3ed852e2009-09-05 21:47:34 +000023361
23362 /* Finally, make sure that changes to the mapped area do not
23363 percolate back to the file as seen by read(). (This is a bug on
23364 some variants of i386 svr4.0.) */
23365 for (i = 0; i < pagesize; ++i)
23366 *(data2 + i) = *(data2 + i) + 1;
23367 data3 = (char *) malloc (pagesize);
23368 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000023369 return 12;
cristy3ed852e2009-09-05 21:47:34 +000023370 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000023371 return 13;
cristy3ed852e2009-09-05 21:47:34 +000023372 for (i = 0; i < pagesize; ++i)
23373 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000023374 return 14;
cristy3ed852e2009-09-05 21:47:34 +000023375 close (fd);
23376 return 0;
23377}
23378_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023379if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023380 ac_cv_func_mmap_fixed_mapped=yes
23381else
cristy8b350f62009-11-15 23:12:43 +000023382 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000023383fi
cristy8b350f62009-11-15 23:12:43 +000023384rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23385 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023386fi
23387
cristy3ed852e2009-09-05 21:47:34 +000023388fi
cristy8b350f62009-11-15 23:12:43 +000023389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000023390$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
23391if test $ac_cv_func_mmap_fixed_mapped = yes; then
23392
cristy8b350f62009-11-15 23:12:43 +000023393$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023394
23395fi
cristycd4c5312009-11-22 01:19:08 +000023396rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000023397
cristy3ed852e2009-09-05 21:47:34 +000023398for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000023399do :
23400 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000023401if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023402 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023403#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000023404_ACEOF
23405
23406fi
23407
23408done
23409
cristy3ed852e2009-09-05 21:47:34 +000023410for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000023411do :
23412 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23413ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000023414if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023415 cat >>confdefs.h <<_ACEOF
23416#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23417_ACEOF
23418
23419fi
23420done
23421
23422if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000023423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000023424$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023425if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023426 $as_echo_n "(cached) " >&6
23427else
cristy8b350f62009-11-15 23:12:43 +000023428 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023429 ac_cv_func_fork_works=cross
23430else
cristy8b350f62009-11-15 23:12:43 +000023431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023432/* end confdefs.h. */
23433$ac_includes_default
23434int
23435main ()
23436{
23437
23438 /* By Ruediger Kuhlmann. */
23439 return fork () < 0;
23440
23441 ;
23442 return 0;
23443}
23444_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023445if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023446 ac_cv_func_fork_works=yes
23447else
cristy8b350f62009-11-15 23:12:43 +000023448 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000023449fi
cristy8b350f62009-11-15 23:12:43 +000023450rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23451 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023452fi
23453
cristy3ed852e2009-09-05 21:47:34 +000023454fi
cristy8b350f62009-11-15 23:12:43 +000023455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023456$as_echo "$ac_cv_func_fork_works" >&6; }
23457
23458else
23459 ac_cv_func_fork_works=$ac_cv_func_fork
23460fi
23461if test "x$ac_cv_func_fork_works" = xcross; then
23462 case $host in
23463 *-*-amigaos* | *-*-msdosdjgpp*)
23464 # Override, as these systems have only a dummy fork() stub
23465 ac_cv_func_fork_works=no
23466 ;;
23467 *)
23468 ac_cv_func_fork_works=yes
23469 ;;
23470 esac
cristy8b350f62009-11-15 23:12:43 +000023471 { $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 +000023472$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23473fi
23474ac_cv_func_vfork_works=$ac_cv_func_vfork
23475if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000023476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000023477$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023478if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023479 $as_echo_n "(cached) " >&6
23480else
cristy8b350f62009-11-15 23:12:43 +000023481 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023482 ac_cv_func_vfork_works=cross
23483else
cristy8b350f62009-11-15 23:12:43 +000023484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023485/* end confdefs.h. */
23486/* Thanks to Paul Eggert for this test. */
23487$ac_includes_default
23488#include <sys/wait.h>
23489#ifdef HAVE_VFORK_H
23490# include <vfork.h>
23491#endif
23492/* On some sparc systems, changes by the child to local and incoming
23493 argument registers are propagated back to the parent. The compiler
23494 is told about this with #include <vfork.h>, but some compilers
23495 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23496 static variable whose address is put into a register that is
23497 clobbered by the vfork. */
23498static void
23499#ifdef __cplusplus
23500sparc_address_test (int arg)
23501# else
23502sparc_address_test (arg) int arg;
23503#endif
23504{
23505 static pid_t child;
23506 if (!child) {
23507 child = vfork ();
23508 if (child < 0) {
23509 perror ("vfork");
23510 _exit(2);
23511 }
23512 if (!child) {
23513 arg = getpid();
23514 write(-1, "", 0);
23515 _exit (arg);
23516 }
23517 }
23518}
23519
23520int
23521main ()
23522{
23523 pid_t parent = getpid ();
23524 pid_t child;
23525
23526 sparc_address_test (0);
23527
23528 child = vfork ();
23529
23530 if (child == 0) {
23531 /* Here is another test for sparc vfork register problems. This
23532 test uses lots of local variables, at least as many local
23533 variables as main has allocated so far including compiler
23534 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23535 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23536 reuse the register of parent for one of the local variables,
23537 since it will think that parent can't possibly be used any more
23538 in this routine. Assigning to the local variable will thus
23539 munge parent in the parent process. */
23540 pid_t
23541 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23542 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23543 /* Convince the compiler that p..p7 are live; otherwise, it might
23544 use the same hardware register for all 8 local variables. */
23545 if (p != p1 || p != p2 || p != p3 || p != p4
23546 || p != p5 || p != p6 || p != p7)
23547 _exit(1);
23548
23549 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23550 from child file descriptors. If the child closes a descriptor
23551 before it execs or exits, this munges the parent's descriptor
23552 as well. Test for this by closing stdout in the child. */
23553 _exit(close(fileno(stdout)) != 0);
23554 } else {
23555 int status;
23556 struct stat st;
23557
23558 while (wait(&status) != child)
23559 ;
23560 return (
23561 /* Was there some problem with vforking? */
23562 child < 0
23563
23564 /* Did the child fail? (This shouldn't happen.) */
23565 || status
23566
23567 /* Did the vfork/compiler bug occur? */
23568 || parent != getpid()
23569
23570 /* Did the file descriptor bug occur? */
23571 || fstat(fileno(stdout), &st) != 0
23572 );
23573 }
23574}
23575_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023576if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023577 ac_cv_func_vfork_works=yes
23578else
cristy8b350f62009-11-15 23:12:43 +000023579 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000023580fi
cristy8b350f62009-11-15 23:12:43 +000023581rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23582 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023583fi
23584
cristy3ed852e2009-09-05 21:47:34 +000023585fi
cristy8b350f62009-11-15 23:12:43 +000023586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023587$as_echo "$ac_cv_func_vfork_works" >&6; }
23588
23589fi;
23590if test "x$ac_cv_func_fork_works" = xcross; then
23591 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000023592 { $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 +000023593$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23594fi
23595
23596if test "x$ac_cv_func_vfork_works" = xyes; then
23597
cristy8b350f62009-11-15 23:12:43 +000023598$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023599
23600else
23601
cristy8b350f62009-11-15 23:12:43 +000023602$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023603
23604fi
23605if test "x$ac_cv_func_fork_works" = xyes; then
23606
cristy8b350f62009-11-15 23:12:43 +000023607$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023608
23609fi
23610
cristy8b350f62009-11-15 23:12:43 +000023611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023612$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023613if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023614 $as_echo_n "(cached) " >&6
23615else
cristy8b350f62009-11-15 23:12:43 +000023616 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023617 ac_cv_func_memcmp_working=no
23618else
cristy8b350f62009-11-15 23:12:43 +000023619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023620/* end confdefs.h. */
23621$ac_includes_default
23622int
23623main ()
23624{
23625
23626 /* Some versions of memcmp are not 8-bit clean. */
23627 char c0 = '\100', c1 = '\200', c2 = '\201';
23628 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23629 return 1;
23630
23631 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23632 or more and with at least one buffer not starting on a 4-byte boundary.
23633 William Lewis provided this test program. */
23634 {
23635 char foo[21];
23636 char bar[21];
23637 int i;
23638 for (i = 0; i < 4; i++)
23639 {
23640 char *a = foo + i;
23641 char *b = bar + i;
23642 strcpy (a, "--------01111111");
23643 strcpy (b, "--------10000000");
23644 if (memcmp (a, b, 16) >= 0)
23645 return 1;
23646 }
23647 return 0;
23648 }
23649
23650 ;
23651 return 0;
23652}
23653_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023654if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023655 ac_cv_func_memcmp_working=yes
23656else
cristy8b350f62009-11-15 23:12:43 +000023657 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000023658fi
cristy8b350f62009-11-15 23:12:43 +000023659rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23660 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023661fi
23662
cristy3ed852e2009-09-05 21:47:34 +000023663fi
cristy8b350f62009-11-15 23:12:43 +000023664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000023665$as_echo "$ac_cv_func_memcmp_working" >&6; }
23666test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23667 *" memcmp.$ac_objext "* ) ;;
23668 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23669 ;;
23670esac
23671
23672
cristy3ed852e2009-09-05 21:47:34 +000023673for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000023674do :
23675 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23676ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023677if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023678 cat >>confdefs.h <<_ACEOF
23679#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23680_ACEOF
23681
23682fi
23683
23684done
23685
cristy8b350f62009-11-15 23:12:43 +000023686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000023687$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023688if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023689 $as_echo_n "(cached) " >&6
23690else
23691 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23692 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23693 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000023694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023695/* end confdefs.h. */
23696$ac_includes_default
23697#ifdef HAVE_SYS_SELECT_H
23698# include <sys/select.h>
23699#endif
23700#ifdef HAVE_SYS_SOCKET_H
23701# include <sys/socket.h>
23702#endif
23703
23704int
23705main ()
23706{
23707extern int select ($ac_arg1,
23708 $ac_arg234, $ac_arg234, $ac_arg234,
23709 $ac_arg5);
23710 ;
23711 return 0;
23712}
23713_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023714if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023715 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000023716fi
cristy3ed852e2009-09-05 21:47:34 +000023717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23718 done
23719 done
23720done
23721# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000023722: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000023723
23724fi
cristy8b350f62009-11-15 23:12:43 +000023725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000023726$as_echo "$ac_cv_func_select_args" >&6; }
23727ac_save_IFS=$IFS; IFS=','
23728set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23729IFS=$ac_save_IFS
23730shift
23731
23732cat >>confdefs.h <<_ACEOF
23733#define SELECT_TYPE_ARG1 $1
23734_ACEOF
23735
23736
23737cat >>confdefs.h <<_ACEOF
23738#define SELECT_TYPE_ARG234 ($2)
23739_ACEOF
23740
23741
23742cat >>confdefs.h <<_ACEOF
23743#define SELECT_TYPE_ARG5 ($3)
23744_ACEOF
23745
23746rm -f conftest*
23747
cristyda16f162011-02-19 23:52:17 +000023748if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023749 $as_echo_n "(cached) " >&6
23750else
23751 ac_cv_func_setvbuf_reversed=no
23752fi
23753
23754
cristy8b350f62009-11-15 23:12:43 +000023755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000023756$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023757if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023758 $as_echo_n "(cached) " >&6
23759else
cristy8b350f62009-11-15 23:12:43 +000023760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023761/* end confdefs.h. */
23762#include <sys/types.h>
23763#include <signal.h>
23764
23765int
23766main ()
23767{
23768return *(signal (0, 0)) (0) == 1;
23769 ;
23770 return 0;
23771}
23772_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023773if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023774 ac_cv_type_signal=int
23775else
cristy8b350f62009-11-15 23:12:43 +000023776 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000023777fi
cristy3ed852e2009-09-05 21:47:34 +000023778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23779fi
cristy8b350f62009-11-15 23:12:43 +000023780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000023781$as_echo "$ac_cv_type_signal" >&6; }
23782
23783cat >>confdefs.h <<_ACEOF
23784#define RETSIGTYPE $ac_cv_type_signal
23785_ACEOF
23786
23787
cristy8b350f62009-11-15 23:12:43 +000023788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023789$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023790if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023791 $as_echo_n "(cached) " >&6
23792else
cristy8b350f62009-11-15 23:12:43 +000023793 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023794 ac_cv_func_strtod=no
23795else
cristy8b350f62009-11-15 23:12:43 +000023796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023797/* end confdefs.h. */
23798
23799$ac_includes_default
23800#ifndef strtod
23801double strtod ();
23802#endif
23803int
23804main()
23805{
23806 {
23807 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
23808 char *string = " +69";
23809 char *term;
23810 double value;
23811 value = strtod (string, &term);
23812 if (value != 69 || term != (string + 4))
23813 return 1;
23814 }
23815
23816 {
23817 /* Under Solaris 2.4, strtod returns the wrong value for the
23818 terminating character under some conditions. */
23819 char *string = "NaN";
23820 char *term;
23821 strtod (string, &term);
23822 if (term != string && *(term - 1) == 0)
23823 return 1;
23824 }
23825 return 0;
23826}
23827
23828_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023829if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023830 ac_cv_func_strtod=yes
23831else
cristy8b350f62009-11-15 23:12:43 +000023832 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000023833fi
cristy8b350f62009-11-15 23:12:43 +000023834rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23835 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023836fi
23837
cristy3ed852e2009-09-05 21:47:34 +000023838fi
cristy8b350f62009-11-15 23:12:43 +000023839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023840$as_echo "$ac_cv_func_strtod" >&6; }
23841if test $ac_cv_func_strtod = no; then
23842 case " $LIBOBJS " in
23843 *" strtod.$ac_objext "* ) ;;
23844 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23845 ;;
23846esac
23847
cristy8b350f62009-11-15 23:12:43 +000023848ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000023849if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023850
cristy3ed852e2009-09-05 21:47:34 +000023851fi
23852
cristy3ed852e2009-09-05 21:47:34 +000023853if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023855$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023856if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023857 $as_echo_n "(cached) " >&6
23858else
23859 ac_check_lib_save_LIBS=$LIBS
23860LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023862/* end confdefs.h. */
23863
23864/* Override any GCC internal prototype to avoid an error.
23865 Use char because int might match the return type of a GCC
23866 builtin and then its argument prototype would still apply. */
23867#ifdef __cplusplus
23868extern "C"
23869#endif
23870char pow ();
23871int
23872main ()
23873{
23874return pow ();
23875 ;
23876 return 0;
23877}
23878_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023879if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023880 ac_cv_lib_m_pow=yes
23881else
cristy8b350f62009-11-15 23:12:43 +000023882 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023883fi
cristy8b350f62009-11-15 23:12:43 +000023884rm -f core conftest.err conftest.$ac_objext \
23885 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023886LIBS=$ac_check_lib_save_LIBS
23887fi
cristy8b350f62009-11-15 23:12:43 +000023888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023889$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000023890if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023891 POW_LIB=-lm
23892else
cristy8b350f62009-11-15 23:12:43 +000023893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023894$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23895fi
23896
23897fi
23898
23899fi
23900
cristy3ed852e2009-09-05 21:47:34 +000023901for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023902do :
23903 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000023904if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023905 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023906#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023907_ACEOF
23908
cristy8b350f62009-11-15 23:12:43 +000023909ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000023910if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023911
cristy8b350f62009-11-15 23:12:43 +000023912$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023913
23914fi
23915
23916fi
23917done
23918
23919
23920
cristy161b9262010-03-20 19:34:32 +000023921#
23922# Find math library
23923#
23924MATH_LIBS=''
23925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23926$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023927if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000023928 $as_echo_n "(cached) " >&6
23929else
23930 ac_check_lib_save_LIBS=$LIBS
23931LIBS="-lm $LIBS"
23932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23933/* end confdefs.h. */
23934
23935/* Override any GCC internal prototype to avoid an error.
23936 Use char because int might match the return type of a GCC
23937 builtin and then its argument prototype would still apply. */
23938#ifdef __cplusplus
23939extern "C"
23940#endif
23941char sqrt ();
23942int
23943main ()
23944{
23945return sqrt ();
23946 ;
23947 return 0;
23948}
23949_ACEOF
23950if ac_fn_c_try_link "$LINENO"; then :
23951 ac_cv_lib_m_sqrt=yes
23952else
23953 ac_cv_lib_m_sqrt=no
23954fi
23955rm -f core conftest.err conftest.$ac_objext \
23956 conftest$ac_exeext conftest.$ac_ext
23957LIBS=$ac_check_lib_save_LIBS
23958fi
23959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23960$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000023961if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000023962 MATH_LIBS="-lm"
23963fi
23964
23965LIBS="$MATH_LIBS $LIBS"
23966
23967
cristy47b022b2011-01-18 22:29:21 +000023968for ac_func in atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000023969do :
23970 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23971ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000023972if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023973 cat >>confdefs.h <<_ACEOF
23974#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23975_ACEOF
23976
23977fi
23978done
23979
23980
cristye43a45e2009-09-28 14:49:00 +000023981#
23982# Check for clock_gettime().
23983#
cristy8b350f62009-11-15 23:12:43 +000023984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023985$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023986if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000023987 $as_echo_n "(cached) " >&6
23988else
23989 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023991/* end confdefs.h. */
23992
23993/* Override any GCC internal prototype to avoid an error.
23994 Use char because int might match the return type of a GCC
23995 builtin and then its argument prototype would still apply. */
23996#ifdef __cplusplus
23997extern "C"
23998#endif
23999char clock_gettime ();
24000int
24001main ()
24002{
24003return clock_gettime ();
24004 ;
24005 return 0;
24006}
24007_ACEOF
24008for ac_lib in '' rt; do
24009 if test -z "$ac_lib"; then
24010 ac_res="none required"
24011 else
24012 ac_res=-l$ac_lib
24013 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24014 fi
cristy8b350f62009-11-15 23:12:43 +000024015 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024016 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024017fi
cristy8b350f62009-11-15 23:12:43 +000024018rm -f core conftest.err conftest.$ac_objext \
24019 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024020 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024021 break
24022fi
24023done
cristyda16f162011-02-19 23:52:17 +000024024if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024025
cristye43a45e2009-09-28 14:49:00 +000024026else
24027 ac_cv_search_clock_gettime=no
24028fi
24029rm conftest.$ac_ext
24030LIBS=$ac_func_search_save_LIBS
24031fi
cristy8b350f62009-11-15 23:12:43 +000024032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024033$as_echo "$ac_cv_search_clock_gettime" >&6; }
24034ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024035if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024036 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24037
24038
cristy8b350f62009-11-15 23:12:43 +000024039$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024040
cristy8b350f62009-11-15 23:12:43 +000024041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024042$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024044/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000024045
24046 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000024047int
24048main ()
24049{
24050clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000024051 ;
24052 return 0;
24053}
24054_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024055if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024056
cristy8b350f62009-11-15 23:12:43 +000024057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000024058$as_echo "yes" >&6; }
24059
cristy8b350f62009-11-15 23:12:43 +000024060$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024061
24062
24063else
cristy8b350f62009-11-15 23:12:43 +000024064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000024065$as_echo "no" >&6; }
24066
24067fi
cristye43a45e2009-09-28 14:49:00 +000024068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24069
24070else
24071
cristy8b350f62009-11-15 23:12:43 +000024072 for ac_func in gettimeofday ftime
24073do :
24074 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24075ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024076if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000024077 cat >>confdefs.h <<_ACEOF
24078#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24079_ACEOF
24080 break
24081fi
24082done
24083
24084
24085
24086fi
24087
24088
cristy3ed852e2009-09-05 21:47:34 +000024089########
24090#
24091# Check for function prototypes
24092#
24093########
24094
cristy8b350f62009-11-15 23:12:43 +000024095ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000024096#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024097"
cristyda16f162011-02-19 23:52:17 +000024098if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024099 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024100else
cristy8b350f62009-11-15 23:12:43 +000024101 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024102fi
24103
cristy3ed852e2009-09-05 21:47:34 +000024104cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024105#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024106_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024107ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000024108#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024109"
cristyda16f162011-02-19 23:52:17 +000024110if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024111 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024112else
cristy8b350f62009-11-15 23:12:43 +000024113 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024114fi
24115
cristy3ed852e2009-09-05 21:47:34 +000024116cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024117#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024118_ACEOF
24119
24120
cristy8b350f62009-11-15 23:12:43 +000024121ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000024122#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000024123"
cristyda16f162011-02-19 23:52:17 +000024124if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024125 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024126else
cristy8b350f62009-11-15 23:12:43 +000024127 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024128fi
24129
cristy3ed852e2009-09-05 21:47:34 +000024130cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024131#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024132_ACEOF
24133
24134
cristy8b350f62009-11-15 23:12:43 +000024135ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000024136#include <stdio.h>
24137#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000024138"
cristyda16f162011-02-19 23:52:17 +000024139if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024140 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024141else
cristy8b350f62009-11-15 23:12:43 +000024142 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024143fi
24144
cristy3ed852e2009-09-05 21:47:34 +000024145cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024146#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024147_ACEOF
24148
24149
cristy3ed852e2009-09-05 21:47:34 +000024150########
24151#
24152# C++ Support Tests (For Magick++)
24153#
24154########
24155have_magick_plus_plus='no'
24156if test "$with_magick_plus_plus" = 'yes'; then
24157 OLIBS="$LIBS"
24158 LIBS=''
24159 ac_ext=cpp
24160ac_cpp='$CXXCPP $CPPFLAGS'
24161ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24162ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24163ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24164
24165
24166 # Full set of headers used...
24167 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
24168 # functional iomanip iosfwd iostream iterator list string strstream utility
24169 ac_ext=cpp
24170ac_cpp='$CXXCPP $CPPFLAGS'
24171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24174
24175 ac_ext=cpp
24176ac_cpp='$CXXCPP $CPPFLAGS'
24177ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24178ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24179ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24180if test -z "$CXX"; then
24181 if test -n "$CCC"; then
24182 CXX=$CCC
24183 else
24184 if test -n "$ac_tool_prefix"; then
24185 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24186 do
24187 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24188set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024190$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024191if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024192 $as_echo_n "(cached) " >&6
24193else
24194 if test -n "$CXX"; then
24195 ac_cv_prog_CXX="$CXX" # Let the user override the test.
24196else
24197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24198for as_dir in $PATH
24199do
24200 IFS=$as_save_IFS
24201 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024202 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24204 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024206 break 2
24207 fi
24208done
cristy8b350f62009-11-15 23:12:43 +000024209 done
cristy3ed852e2009-09-05 21:47:34 +000024210IFS=$as_save_IFS
24211
24212fi
24213fi
24214CXX=$ac_cv_prog_CXX
24215if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000024216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000024217$as_echo "$CXX" >&6; }
24218else
cristy8b350f62009-11-15 23:12:43 +000024219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024220$as_echo "no" >&6; }
24221fi
24222
24223
24224 test -n "$CXX" && break
24225 done
24226fi
24227if test -z "$CXX"; then
24228 ac_ct_CXX=$CXX
24229 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24230do
24231 # Extract the first word of "$ac_prog", so it can be a program name with args.
24232set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024234$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024235if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024236 $as_echo_n "(cached) " >&6
24237else
24238 if test -n "$ac_ct_CXX"; then
24239 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
24240else
24241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24242for as_dir in $PATH
24243do
24244 IFS=$as_save_IFS
24245 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024246 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24248 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024250 break 2
24251 fi
24252done
cristy8b350f62009-11-15 23:12:43 +000024253 done
cristy3ed852e2009-09-05 21:47:34 +000024254IFS=$as_save_IFS
24255
24256fi
24257fi
24258ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
24259if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000024260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000024261$as_echo "$ac_ct_CXX" >&6; }
24262else
cristy8b350f62009-11-15 23:12:43 +000024263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024264$as_echo "no" >&6; }
24265fi
24266
24267
24268 test -n "$ac_ct_CXX" && break
24269done
24270
24271 if test "x$ac_ct_CXX" = x; then
24272 CXX="g++"
24273 else
24274 case $cross_compiling:$ac_tool_warned in
24275yes:)
cristy8b350f62009-11-15 23:12:43 +000024276{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000024277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24278ac_tool_warned=yes ;;
24279esac
24280 CXX=$ac_ct_CXX
24281 fi
24282fi
24283
24284 fi
24285fi
24286# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000024287$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000024288set X $ac_compile
24289ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000024290for ac_option in --version -v -V -qversion; do
24291 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000024292case "(($ac_try" in
24293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24294 *) ac_try_echo=$ac_try;;
24295esac
cristy8b350f62009-11-15 23:12:43 +000024296eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
24297$as_echo "$ac_try_echo"; } >&5
24298 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000024299 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024300 if test -s conftest.err; then
24301 sed '10a\
24302... rest of stderr output deleted ...
24303 10q' conftest.err >conftest.er1
24304 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000024305 fi
cristycd4c5312009-11-22 01:19:08 +000024306 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000024307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24308 test $ac_status = 0; }
24309done
cristy3ed852e2009-09-05 21:47:34 +000024310
cristy8b350f62009-11-15 23:12:43 +000024311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000024312$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024313if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024314 $as_echo_n "(cached) " >&6
24315else
cristy8b350f62009-11-15 23:12:43 +000024316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024317/* end confdefs.h. */
24318
24319int
24320main ()
24321{
24322#ifndef __GNUC__
24323 choke me
24324#endif
24325
24326 ;
24327 return 0;
24328}
24329_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024330if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024331 ac_compiler_gnu=yes
24332else
cristy8b350f62009-11-15 23:12:43 +000024333 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000024334fi
cristy3ed852e2009-09-05 21:47:34 +000024335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24336ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
24337
24338fi
cristy8b350f62009-11-15 23:12:43 +000024339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000024340$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
24341if test $ac_compiler_gnu = yes; then
24342 GXX=yes
24343else
24344 GXX=
24345fi
24346ac_test_CXXFLAGS=${CXXFLAGS+set}
24347ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000024348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000024349$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024350if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024351 $as_echo_n "(cached) " >&6
24352else
24353 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
24354 ac_cxx_werror_flag=yes
24355 ac_cv_prog_cxx_g=no
24356 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000024357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024358/* end confdefs.h. */
24359
24360int
24361main ()
24362{
24363
24364 ;
24365 return 0;
24366}
24367_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024368if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024369 ac_cv_prog_cxx_g=yes
24370else
cristy8b350f62009-11-15 23:12:43 +000024371 CXXFLAGS=""
24372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024373/* end confdefs.h. */
24374
24375int
24376main ()
24377{
24378
24379 ;
24380 return 0;
24381}
24382_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024383if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024384
cristy8b350f62009-11-15 23:12:43 +000024385else
24386 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000024387 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000024388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024389/* end confdefs.h. */
24390
24391int
24392main ()
24393{
24394
24395 ;
24396 return 0;
24397}
24398_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024399if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024400 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000024401fi
cristy3ed852e2009-09-05 21:47:34 +000024402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24403fi
cristy3ed852e2009-09-05 21:47:34 +000024404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24405fi
cristy3ed852e2009-09-05 21:47:34 +000024406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24407 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
24408fi
cristy8b350f62009-11-15 23:12:43 +000024409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000024410$as_echo "$ac_cv_prog_cxx_g" >&6; }
24411if test "$ac_test_CXXFLAGS" = set; then
24412 CXXFLAGS=$ac_save_CXXFLAGS
24413elif test $ac_cv_prog_cxx_g = yes; then
24414 if test "$GXX" = yes; then
24415 CXXFLAGS="-g -O2"
24416 else
24417 CXXFLAGS="-g"
24418 fi
24419else
24420 if test "$GXX" = yes; then
24421 CXXFLAGS="-O2"
24422 else
24423 CXXFLAGS=
24424 fi
24425fi
24426ac_ext=cpp
24427ac_cpp='$CXXCPP $CPPFLAGS'
24428ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24429ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24430ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24431
cristy73bd4a52010-10-05 11:24:23 +000024432depcc="$CXX" am_compiler_list=
24433
24434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
24435$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024436if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024437 $as_echo_n "(cached) " >&6
24438else
24439 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
24440 # We make a subdir and do the tests there. Otherwise we can end up
24441 # making bogus files that we don't know about and never remove. For
24442 # instance it was reported that on HP-UX the gcc test will end up
24443 # making a dummy file named `D' -- because `-MD' means `put the output
24444 # in D'.
24445 mkdir conftest.dir
24446 # Copy depcomp to subdir because otherwise we won't find it if we're
24447 # using a relative directory.
24448 cp "$am_depcomp" conftest.dir
24449 cd conftest.dir
24450 # We will build objects and dependencies in a subdirectory because
24451 # it helps to detect inapplicable dependency modes. For instance
24452 # both Tru64's cc and ICC support -MD to output dependencies as a
24453 # side effect of compilation, but ICC will put the dependencies in
24454 # the current directory while Tru64 will put them in the object
24455 # directory.
24456 mkdir sub
24457
24458 am_cv_CXX_dependencies_compiler_type=none
24459 if test "$am_compiler_list" = ""; then
24460 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
24461 fi
24462 am__universal=false
24463 case " $depcc " in #(
24464 *\ -arch\ *\ -arch\ *) am__universal=true ;;
24465 esac
24466
24467 for depmode in $am_compiler_list; do
24468 # Setup a source with many dependencies, because some compilers
24469 # like to wrap large dependency lists on column 80 (with \), and
24470 # we should not choose a depcomp mode which is confused by this.
24471 #
24472 # We need to recreate these files for each test, as the compiler may
24473 # overwrite some of them when testing with obscure command lines.
24474 # This happens at least with the AIX C compiler.
24475 : > sub/conftest.c
24476 for i in 1 2 3 4 5 6; do
24477 echo '#include "conftst'$i'.h"' >> sub/conftest.c
24478 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
24479 # Solaris 8's {/usr,}/bin/sh.
24480 touch sub/conftst$i.h
24481 done
24482 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
24483
24484 # We check with `-c' and `-o' for the sake of the "dashmstdout"
24485 # mode. It turns out that the SunPro C++ compiler does not properly
24486 # handle `-M -o', and we need to detect this. Also, some Intel
24487 # versions had trouble with output in subdirs
24488 am__obj=sub/conftest.${OBJEXT-o}
24489 am__minus_obj="-o $am__obj"
24490 case $depmode in
24491 gcc)
24492 # This depmode causes a compiler race in universal mode.
24493 test "$am__universal" = false || continue
24494 ;;
24495 nosideeffect)
24496 # after this tag, mechanisms are not by side-effect, so they'll
24497 # only be used when explicitly requested
24498 if test "x$enable_dependency_tracking" = xyes; then
24499 continue
24500 else
24501 break
24502 fi
24503 ;;
24504 msvisualcpp | msvcmsys)
24505 # This compiler won't grok `-c -o', but also, the minuso test has
24506 # not run yet. These depmodes are late enough in the game, and
24507 # so weak that their functioning should not be impacted.
24508 am__obj=conftest.${OBJEXT-o}
24509 am__minus_obj=
24510 ;;
24511 none) break ;;
24512 esac
24513 if depmode=$depmode \
24514 source=sub/conftest.c object=$am__obj \
24515 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
24516 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
24517 >/dev/null 2>conftest.err &&
24518 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
24519 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
24520 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
24521 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
24522 # icc doesn't choke on unknown options, it will just issue warnings
24523 # or remarks (even with -Werror). So we grep stderr for any message
24524 # that says an option was ignored or not supported.
24525 # When given -MP, icc 7.0 and 7.1 complain thusly:
24526 # icc: Command line warning: ignoring option '-M'; no argument required
24527 # The diagnosis changed in icc 8.0:
24528 # icc: Command line remark: option '-MP' not supported
24529 if (grep 'ignoring option' conftest.err ||
24530 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
24531 am_cv_CXX_dependencies_compiler_type=$depmode
24532 break
24533 fi
24534 fi
24535 done
24536
24537 cd ..
24538 rm -rf conftest.dir
24539else
24540 am_cv_CXX_dependencies_compiler_type=none
24541fi
24542
24543fi
24544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
24545$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
24546CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
24547
24548 if
24549 test "x$enable_dependency_tracking" != xno \
24550 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
24551 am__fastdepCXX_TRUE=
24552 am__fastdepCXX_FALSE='#'
24553else
24554 am__fastdepCXX_TRUE='#'
24555 am__fastdepCXX_FALSE=
24556fi
24557
24558
24559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
24560$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024561if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024562 $as_echo_n "(cached) " >&6
24563else
24564
24565 ac_ext=cpp
24566ac_cpp='$CXXCPP $CPPFLAGS'
24567ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24568ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24569ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24570
24571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24572/* end confdefs.h. */
24573
24574int f(int x){return 1;}
24575int f(char x){return 1;}
24576int f(bool x){return 1;}
24577
24578int
24579main ()
24580{
24581bool b = true; return f(b);
24582 ;
24583 return 0;
24584}
24585_ACEOF
24586if ac_fn_cxx_try_compile "$LINENO"; then :
24587 ax_cv_cxx_bool=yes
24588else
24589 ax_cv_cxx_bool=no
24590fi
24591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24592 ac_ext=cpp
24593ac_cpp='$CXXCPP $CPPFLAGS'
24594ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24595ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24596ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24597
24598
24599fi
24600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
24601$as_echo "$ax_cv_cxx_bool" >&6; }
24602if test "$ax_cv_cxx_bool" = yes; then
24603
24604$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
24605
24606fi
24607
24608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
24609$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024610if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024611 $as_echo_n "(cached) " >&6
24612else
24613
24614 ac_ext=cpp
24615ac_cpp='$CXXCPP $CPPFLAGS'
24616ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24617ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24618ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24619
24620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24621/* end confdefs.h. */
24622namespace Outer { namespace Inner { int i = 0; }}
24623int
24624main ()
24625{
24626using namespace Outer::Inner; return i;
24627 ;
24628 return 0;
24629}
24630_ACEOF
24631if ac_fn_cxx_try_compile "$LINENO"; then :
24632 ax_cv_cxx_namespaces=yes
24633else
24634 ax_cv_cxx_namespaces=no
24635fi
24636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24637 ac_ext=cpp
24638ac_cpp='$CXXCPP $CPPFLAGS'
24639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24642
24643
24644fi
24645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
24646$as_echo "$ax_cv_cxx_namespaces" >&6; }
24647if test "$ax_cv_cxx_namespaces" = yes; then
24648
24649$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
24650
24651fi
24652
24653
24654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
24655$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024656if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024657 $as_echo_n "(cached) " >&6
24658else
24659
24660 ac_ext=cpp
24661ac_cpp='$CXXCPP $CPPFLAGS'
24662ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24663ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24664ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24665
24666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24667/* end confdefs.h. */
24668#include <iostream>
24669 std::istream& is = std::cin;
24670int
24671main ()
24672{
24673
24674 ;
24675 return 0;
24676}
24677_ACEOF
24678if ac_fn_cxx_try_compile "$LINENO"; then :
24679 ax_cv_cxx_have_std_namespace=yes
24680else
24681 ax_cv_cxx_have_std_namespace=no
24682fi
24683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24684 ac_ext=cpp
24685ac_cpp='$CXXCPP $CPPFLAGS'
24686ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24687ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24688ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24689
24690
24691fi
24692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
24693$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
24694 if test "$ax_cv_cxx_have_std_namespace" = yes; then
24695
24696$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
24697
24698 fi
24699
24700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
24701$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024702if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024703 $as_echo_n "(cached) " >&6
24704else
24705
24706
24707 ac_ext=cpp
24708ac_cpp='$CXXCPP $CPPFLAGS'
24709ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24710ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24711ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24712
24713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24714/* end confdefs.h. */
24715#include <iostream>
24716#include <map>
24717#include <iomanip>
24718#include <cmath>
24719#ifdef HAVE_NAMESPACES
24720using namespace std;
24721#endif
24722int
24723main ()
24724{
24725return 0;
24726 ;
24727 return 0;
24728}
24729_ACEOF
24730if ac_fn_cxx_try_compile "$LINENO"; then :
24731 ac_cv_cxx_have_std_libs=yes
24732else
24733 ac_cv_cxx_have_std_libs=no
24734fi
24735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24736 ac_ext=cpp
24737ac_cpp='$CXXCPP $CPPFLAGS'
24738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24741
24742
24743fi
24744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
24745$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
24746if test "$ac_cv_cxx_have_std_libs" = yes; then
24747
24748$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
24749
24750fi
24751
cristy3ed852e2009-09-05 21:47:34 +000024752
24753 OPENMP_CXXFLAGS=
24754 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000024755if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024756 enableval=$enable_openmp;
24757fi
24758
24759 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000024760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
24761$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024762if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024763 $as_echo_n "(cached) " >&6
24764else
cristy8b350f62009-11-15 23:12:43 +000024765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24766/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024767
24768#ifndef _OPENMP
24769 choke me
24770#endif
24771#include <omp.h>
24772int main () { return omp_get_num_threads (); }
24773
24774_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024775if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024776 ac_cv_prog_cxx_openmp='none needed'
24777else
cristy8b350f62009-11-15 23:12:43 +000024778 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000024779 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
24780 ac_save_CXXFLAGS=$CXXFLAGS
24781 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000024782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24783/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024784
24785#ifndef _OPENMP
24786 choke me
24787#endif
24788#include <omp.h>
24789int main () { return omp_get_num_threads (); }
24790
24791_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024792if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024793 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000024794fi
cristy8b350f62009-11-15 23:12:43 +000024795rm -f core conftest.err conftest.$ac_objext \
24796 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024797 CXXFLAGS=$ac_save_CXXFLAGS
24798 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
24799 break
24800 fi
24801 done
24802fi
cristy8b350f62009-11-15 23:12:43 +000024803rm -f core conftest.err conftest.$ac_objext \
24804 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024805fi
cristy8b350f62009-11-15 23:12:43 +000024806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024807$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24808 case $ac_cv_prog_cxx_openmp in #(
24809 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000024810 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000024811 *)
cristy8b350f62009-11-15 23:12:43 +000024812 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000024813 esac
24814 fi
24815
24816
24817 ac_ext=c
24818ac_cpp='$CPP $CPPFLAGS'
24819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24821ac_compiler_gnu=$ac_cv_c_compiler_gnu
24822
24823
cristy8b350f62009-11-15 23:12:43 +000024824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024825$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24826 if \
cristy964cb7f2010-04-25 23:18:00 +000024827 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024828 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024829 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024830 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024831 have_magick_plus_plus='yes'
24832 else
24833 have_magick_plus_plus='no (failed tests)'
24834 fi
cristy8b350f62009-11-15 23:12:43 +000024835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024836$as_echo "$have_magick_plus_plus" >&6; }
24837 LIBS="$OLIBS"
24838fi
cristy73bd4a52010-10-05 11:24:23 +000024839 if test "$have_magick_plus_plus" = 'yes'; then
24840 WITH_MAGICK_PLUS_PLUS_TRUE=
24841 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24842else
24843 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24844 WITH_MAGICK_PLUS_PLUS_FALSE=
24845fi
24846
cristy3ed852e2009-09-05 21:47:34 +000024847
24848# Only check for delegate libraries in subdirectories if requested.
24849if test "$enable_delegate_build" != 'no'; then
24850 # Check for delegate sub-directories and add -I & -L options as required.
24851 # This presumes that delegates are installed as detailed in the ImageMagick
24852 # README. If delegates are installed in a standard location where the
24853 # compiler will automatically find them then these options should not be
24854 # required.
24855
24856 #
24857 # Most delegates have includes in the same directory as the library, but not all...
24858 #
24859 # Includes
cristyfbb0ef02010-12-19 02:32:11 +000024860 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000024861 if test -d "$builddir/$dir"; then
24862 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24863 else
24864 if test -d "$srcdirfull/$dir"; then
24865 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24866 fi
24867 fi
24868 done
24869
24870 # Libraries
cristyfbb0ef02010-12-19 02:32:11 +000024871 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000024872 if test -d "$builddir/$dir/.libs"; then
24873 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24874 else
24875 if test -d "$srcdirfull/$dir/.libs"; then
24876 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24877 fi
24878 fi
24879 if test -d "$builddir/$dir"; then
24880 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24881 else
24882 if test -d "$srcdirfull/$dir"; then
24883 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24884 fi
24885 fi
24886 done
24887fi
24888
24889# Assume that delegate headers reside under same directory as ImageMagick
24890# installation prefix.
24891MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24892
24893#
24894# Find the X11 RGB database
24895#
cristy8b350f62009-11-15 23:12:43 +000024896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024897$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024898if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024899 $as_echo_n "(cached) " >&6
24900else
24901 # Look for the header file in a standard set of common directories.
24902# Check X11 before X11Rn because it is often a symlink to the current release.
24903 for ac_dir in \
24904 /lib/usr/lib/X11 \
24905 /usr/X11/lib \
24906 /usr/X11R4/lib \
24907 /usr/X11R5/lib \
24908 /usr/X11R6/lib \
24909 /usr/X11R7/lib \
24910 /usr/X386/lib \
24911 /usr/XFree86/lib/X11 \
24912 /usr/athena/lib \
24913 /usr/lib \
24914 /usr/lib/X11 \
24915 /usr/lib/X11R4 \
24916 /usr/lib/X11R5 \
24917 /usr/lib/X11R6 \
24918 /usr/lib/X11R7 \
24919 /usr/local/X11/lib \
24920 /usr/local/X11R4/lib \
24921 /usr/local/X11R5/lib \
24922 /usr/local/X11R6/lib \
24923 /usr/local/lib \
24924 /usr/local/lib/X11 \
24925 /usr/local/lib/X11R4 \
24926 /usr/local/lib/X11R5 \
24927 /usr/local/lib/X11R6 \
24928 /usr/local/lib/X11R7 \
24929 /usr/local/x11r5/lib \
24930 /usr/lpp/Xamples/lib \
24931 /usr/openwin/lib \
24932 /usr/openwin/share/lib \
24933 /usr/unsupported/lib \
24934 /usr/x386/lib \
24935 ; do
24936 if test -f "$ac_dir/X11/rgb.txt"; then
24937 im_cv_x_configure="$ac_dir/X11/"
24938 break
24939 elif test -f "$ac_dir/rgb.txt"; then
24940 im_cv_x_configure="$ac_dir/"
24941 break
24942 fi
24943
24944 done
24945fi
cristy8b350f62009-11-15 23:12:43 +000024946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024947$as_echo "$im_cv_x_configure" >&6; }
24948X11_CONFIGURE_PATH="$im_cv_x_configure"
24949case "${build_os}" in
24950 mingw* )
24951 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24952 ;;
24953esac
24954
24955cat >>confdefs.h <<_ACEOF
24956#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24957_ACEOF
24958
24959
24960#
24961# Find OpenMP library
24962#
24963GOMP_LIBS=''
24964if test "$enable_openmp" != 'no'; then
24965 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024967$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024968if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024969 $as_echo_n "(cached) " >&6
24970else
24971 ac_check_lib_save_LIBS=$LIBS
24972LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024974/* end confdefs.h. */
24975
24976/* Override any GCC internal prototype to avoid an error.
24977 Use char because int might match the return type of a GCC
24978 builtin and then its argument prototype would still apply. */
24979#ifdef __cplusplus
24980extern "C"
24981#endif
24982char GOMP_parallel_start ();
24983int
24984main ()
24985{
24986return GOMP_parallel_start ();
24987 ;
24988 return 0;
24989}
24990_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024991if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024992 ac_cv_lib_gomp_GOMP_parallel_start=yes
24993else
cristy8b350f62009-11-15 23:12:43 +000024994 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024995fi
cristy8b350f62009-11-15 23:12:43 +000024996rm -f core conftest.err conftest.$ac_objext \
24997 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024998LIBS=$ac_check_lib_save_LIBS
24999fi
cristy8b350f62009-11-15 23:12:43 +000025000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025001$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025002if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025003 GOMP_LIBS="-lgomp"
25004fi
25005 # gcc
25006 else
cristy8b350f62009-11-15 23:12:43 +000025007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025008$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025009if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025010 $as_echo_n "(cached) " >&6
25011else
25012 ac_check_lib_save_LIBS=$LIBS
25013LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025015/* end confdefs.h. */
25016
25017/* Override any GCC internal prototype to avoid an error.
25018 Use char because int might match the return type of a GCC
25019 builtin and then its argument prototype would still apply. */
25020#ifdef __cplusplus
25021extern "C"
25022#endif
25023char sunw_mp_register_warn ();
25024int
25025main ()
25026{
25027return sunw_mp_register_warn ();
25028 ;
25029 return 0;
25030}
25031_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025032if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025033 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25034else
cristy8b350f62009-11-15 23:12:43 +000025035 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025036fi
cristy8b350f62009-11-15 23:12:43 +000025037rm -f core conftest.err conftest.$ac_objext \
25038 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025039LIBS=$ac_check_lib_save_LIBS
25040fi
cristy8b350f62009-11-15 23:12:43 +000025041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000025042$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000025043if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025044 GOMP_LIBS="-lmtsk"
25045fi
25046 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000025047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025048$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025049if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025050 $as_echo_n "(cached) " >&6
25051else
25052 ac_check_lib_save_LIBS=$LIBS
25053LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025055/* end confdefs.h. */
25056
25057/* Override any GCC internal prototype to avoid an error.
25058 Use char because int might match the return type of a GCC
25059 builtin and then its argument prototype would still apply. */
25060#ifdef __cplusplus
25061extern "C"
25062#endif
25063char _xlsmpFlush ();
25064int
25065main ()
25066{
25067return _xlsmpFlush ();
25068 ;
25069 return 0;
25070}
25071_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025072if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025073 ac_cv_lib_xlsmp__xlsmpFlush=yes
25074else
cristy8b350f62009-11-15 23:12:43 +000025075 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000025076fi
cristy8b350f62009-11-15 23:12:43 +000025077rm -f core conftest.err conftest.$ac_objext \
25078 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025079LIBS=$ac_check_lib_save_LIBS
25080fi
cristy8b350f62009-11-15 23:12:43 +000025081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000025082$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000025083if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025084 GOMP_LIBS="-lxlsmp"
25085fi
25086 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000025087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025088$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025089if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025090 $as_echo_n "(cached) " >&6
25091else
25092 ac_check_lib_save_LIBS=$LIBS
25093LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025095/* end confdefs.h. */
25096
25097/* Override any GCC internal prototype to avoid an error.
25098 Use char because int might match the return type of a GCC
25099 builtin and then its argument prototype would still apply. */
25100#ifdef __cplusplus
25101extern "C"
25102#endif
25103char mp_destroy ();
25104int
25105main ()
25106{
25107return mp_destroy ();
25108 ;
25109 return 0;
25110}
25111_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025112if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025113 ac_cv_lib_mp_mp_destroy=yes
25114else
cristy8b350f62009-11-15 23:12:43 +000025115 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000025116fi
cristy8b350f62009-11-15 23:12:43 +000025117rm -f core conftest.err conftest.$ac_objext \
25118 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025119LIBS=$ac_check_lib_save_LIBS
25120fi
cristy8b350f62009-11-15 23:12:43 +000025121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000025122$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000025123if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025124 GOMP_LIBS="-lmp"
25125fi
25126 # SGI IRIX 6.5 MIPSpro C/C++
25127 fi
25128 LIBS="$GOMP_LIBS $LIBS"
25129fi
25130
25131
25132#
25133# Find Posix threads library
25134#
25135THREAD_LIBS=''
25136if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
25137
25138 if test "x$PTHREAD_LIBS" = "x"; then
25139 case "${host_cpu}-${host_os}" in
25140 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000025141
25142
25143
25144ac_ext=c
25145ac_cpp='$CPP $CPPFLAGS'
25146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25148ac_compiler_gnu=$ac_cv_c_compiler_gnu
25149
25150magick_pthread_lib_ok=no
25151
25152LIB=-lc_r
25153save_LIBS="$LIBS"
25154LIBS="$LIBS $LIB"
25155
25156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25157$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25159/* end confdefs.h. */
25160#include <pthread.h>
25161int
25162main ()
25163{
25164 pthread_t th;
25165 pthread_join(th, 0);
25166 pthread_attr_init(0);
25167 pthread_cleanup_push(0, 0);
25168 pthread_create(0,0,0,0);
25169 pthread_cleanup_pop(0);
25170 ;
25171 return 0;
25172}
25173_ACEOF
25174if ac_fn_c_try_link "$LINENO"; then :
25175 magick_pthread_lib_ok=yes
25176fi
25177rm -f core conftest.err conftest.$ac_objext \
25178 conftest$ac_exeext conftest.$ac_ext
25179
25180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25181$as_echo "${magick_pthread_lib_ok}" >&6; }
25182if test "$magick_pthread_lib_ok" = yes
25183then
25184 PTHREAD_LIBS=-lc_r
25185 :
25186else
25187
25188 :
25189fi
25190
25191LIBS="$save_LIBS"
25192
25193ac_ext=c
25194ac_cpp='$CPP $CPPFLAGS'
25195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25197ac_compiler_gnu=$ac_cv_c_compiler_gnu
25198
25199 ;;
cristy3ed852e2009-09-05 21:47:34 +000025200 esac
25201 fi
25202
25203 for lib in pthread pthreads; do
25204 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000025205
25206
25207
25208ac_ext=c
25209ac_cpp='$CPP $CPPFLAGS'
25210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25212ac_compiler_gnu=$ac_cv_c_compiler_gnu
25213
25214magick_pthread_lib_ok=no
25215
25216LIB=-l$lib
25217save_LIBS="$LIBS"
25218LIBS="$LIBS $LIB"
25219
25220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25221$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25223/* end confdefs.h. */
25224#include <pthread.h>
25225int
25226main ()
25227{
25228 pthread_t th;
25229 pthread_join(th, 0);
25230 pthread_attr_init(0);
25231 pthread_cleanup_push(0, 0);
25232 pthread_create(0,0,0,0);
25233 pthread_cleanup_pop(0);
25234 ;
25235 return 0;
25236}
25237_ACEOF
25238if ac_fn_c_try_link "$LINENO"; then :
25239 magick_pthread_lib_ok=yes
25240fi
25241rm -f core conftest.err conftest.$ac_objext \
25242 conftest$ac_exeext conftest.$ac_ext
25243
25244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25245$as_echo "${magick_pthread_lib_ok}" >&6; }
25246if test "$magick_pthread_lib_ok" = yes
25247then
25248 PTHREAD_LIBS=-l$lib
25249 :
25250else
25251
25252 :
25253fi
25254
25255LIBS="$save_LIBS"
25256
25257ac_ext=c
25258ac_cpp='$CPP $CPPFLAGS'
25259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25261ac_compiler_gnu=$ac_cv_c_compiler_gnu
25262
25263
cristy3ed852e2009-09-05 21:47:34 +000025264 fi
25265 done
25266
25267 THREAD_LIBS="$PTHREAD_LIBS"
25268 LIBS="$LIBS $THREAD_LIBS"
25269fi
25270
25271
25272#
25273# Check for umem.
25274#
25275have_umem='no'
25276UMEM_LIBS=''
25277if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000025279$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025281$as_echo "" >&6; }
25282 failed=0
25283 passed=0
cristy8b350f62009-11-15 23:12:43 +000025284 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000025285if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025286 passed=`expr $passed + 1`
25287else
25288 failed=`expr $failed + 1`
25289fi
25290
25291
cristy8b350f62009-11-15 23:12:43 +000025292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000025293$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025294if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025295 $as_echo_n "(cached) " >&6
25296else
25297 ac_check_lib_save_LIBS=$LIBS
25298LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025300/* end confdefs.h. */
25301
25302/* Override any GCC internal prototype to avoid an error.
25303 Use char because int might match the return type of a GCC
25304 builtin and then its argument prototype would still apply. */
25305#ifdef __cplusplus
25306extern "C"
25307#endif
25308char umem_alloc ();
25309int
25310main ()
25311{
25312return umem_alloc ();
25313 ;
25314 return 0;
25315}
25316_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025317if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025318 ac_cv_lib_umem_umem_alloc=yes
25319else
cristy8b350f62009-11-15 23:12:43 +000025320 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000025321fi
cristy8b350f62009-11-15 23:12:43 +000025322rm -f core conftest.err conftest.$ac_objext \
25323 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025324LIBS=$ac_check_lib_save_LIBS
25325fi
cristy8b350f62009-11-15 23:12:43 +000025326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025327$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000025328if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025329 passed=`expr $passed + 1`
25330else
25331 failed=`expr $failed + 1`
25332fi
25333
cristy8b350f62009-11-15 23:12:43 +000025334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000025335$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025336if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025337 $as_echo_n "(cached) " >&6
25338else
25339 ac_check_lib_save_LIBS=$LIBS
25340LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025342/* end confdefs.h. */
25343
25344/* Override any GCC internal prototype to avoid an error.
25345 Use char because int might match the return type of a GCC
25346 builtin and then its argument prototype would still apply. */
25347#ifdef __cplusplus
25348extern "C"
25349#endif
25350char umem_free ();
25351int
25352main ()
25353{
25354return umem_free ();
25355 ;
25356 return 0;
25357}
25358_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025359if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025360 ac_cv_lib_umem_umem_free=yes
25361else
cristy8b350f62009-11-15 23:12:43 +000025362 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000025363fi
cristy8b350f62009-11-15 23:12:43 +000025364rm -f core conftest.err conftest.$ac_objext \
25365 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025366LIBS=$ac_check_lib_save_LIBS
25367fi
cristy8b350f62009-11-15 23:12:43 +000025368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000025369$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000025370if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025371 passed=`expr $passed + 1`
25372else
25373 failed=`expr $failed + 1`
25374fi
25375
cristy8b350f62009-11-15 23:12:43 +000025376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025377$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
25378 if test $passed -gt 0; then
25379 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025381$as_echo "no -- some components failed test" >&6; }
25382 have_umem='no (failed tests)'
25383 else
25384 UMEM_LIBS='-lumem'
25385 LIBS="$UMEM_LIBS $LIBS"
25386
cristy8b350f62009-11-15 23:12:43 +000025387$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025388
cristy8b350f62009-11-15 23:12:43 +000025389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025390$as_echo "yes" >&6; }
25391 have_umem='yes'
25392 fi
25393 else
cristy8b350f62009-11-15 23:12:43 +000025394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025395$as_echo "no" >&6; }
25396 fi
25397fi
cristy73bd4a52010-10-05 11:24:23 +000025398 if test "$have_umem" = 'yes'; then
25399 HasUMEM_TRUE=
25400 HasUMEM_FALSE='#'
25401else
25402 HasUMEM_TRUE='#'
25403 HasUMEM_FALSE=
25404fi
25405
cristy3ed852e2009-09-05 21:47:34 +000025406
25407
25408#
25409# Add support for ccmalloc memory debugging library if requested
25410#
25411have_ccmalloc='no'
25412CCMALLOC_LIBS=''
25413if test "$enable_ccmalloc" = 'yes'; then
25414 # Extract the first word of "ccmalloc", so it can be a program name with args.
25415set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025417$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025418if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025419 $as_echo_n "(cached) " >&6
25420else
25421 case $CCMALLOCDelegate in
25422 [\\/]* | ?:[\\/]*)
25423 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
25424 ;;
25425 *)
25426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25427for as_dir in $PATH
25428do
25429 IFS=$as_save_IFS
25430 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025431 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25433 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000025434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025435 break 2
25436 fi
25437done
cristy8b350f62009-11-15 23:12:43 +000025438 done
cristy3ed852e2009-09-05 21:47:34 +000025439IFS=$as_save_IFS
25440
25441 ;;
25442esac
25443fi
25444CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
25445if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000025446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025447$as_echo "$CCMALLOCDelegate" >&6; }
25448else
cristy8b350f62009-11-15 23:12:43 +000025449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025450$as_echo "no" >&6; }
25451fi
25452
25453
25454 if test -n "$CCMALLOCDelegate"; then
25455 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
25456 OLIBS="$LIBS"
25457 # Assume that gcc is used with ccmalloc.
25458 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000025459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025460$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025461if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025462 $as_echo_n "(cached) " >&6
25463else
25464 ac_check_lib_save_LIBS=$LIBS
25465LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025467/* end confdefs.h. */
25468
25469/* Override any GCC internal prototype to avoid an error.
25470 Use char because int might match the return type of a GCC
25471 builtin and then its argument prototype would still apply. */
25472#ifdef __cplusplus
25473extern "C"
25474#endif
25475char ccmalloc_malloc ();
25476int
25477main ()
25478{
25479return ccmalloc_malloc ();
25480 ;
25481 return 0;
25482}
25483_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025484if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025485 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
25486else
cristy8b350f62009-11-15 23:12:43 +000025487 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000025488fi
cristy8b350f62009-11-15 23:12:43 +000025489rm -f core conftest.err conftest.$ac_objext \
25490 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025491LIBS=$ac_check_lib_save_LIBS
25492fi
cristy8b350f62009-11-15 23:12:43 +000025493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025494$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000025495if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025496 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
25497fi
25498
25499 if test -n "$CCMALLOC_LIBS"; then
25500 LIBS="$OLIBS"
25501 LIBS="$LIBS $CCMALLOC_LIBS"
25502 have_ccmalloc='yes'
25503 else
25504 LIBS="$OLIBS"
25505 fi
25506 fi
25507fi
25508
25509#
25510# Add support for efence memory debugging library if requested
25511#
25512if test "$enable_efence" = 'yes'; then
25513 EFENCE_LIBS='-lefence'
25514 LIBS="$EFENCE_LIBS $LIBS"
25515fi
25516
cristy3ed852e2009-09-05 21:47:34 +000025517
25518#
25519# Check for BZLIB
25520#
25521
25522
25523# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000025524if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025525 withval=$with_bzlib; with_bzlib=$withval
25526else
25527 with_bzlib='yes'
25528fi
25529
25530
25531if test "$with_bzlib" != 'yes'; then
25532 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
25533fi
25534
25535have_bzlib='no'
25536if test "$with_bzlib" != 'no'; then
25537 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025539$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025541$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025543$as_echo "" >&6; }
25544 failed=0
25545 passed=0
25546 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000025547 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000025548if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025549 passed=`expr $passed + 1`
25550else
25551 failed=`expr $failed + 1`
25552fi
25553
25554
cristy8b350f62009-11-15 23:12:43 +000025555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000025556$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025557if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025558 $as_echo_n "(cached) " >&6
25559else
25560 ac_check_lib_save_LIBS=$LIBS
25561LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025562cat 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 BZ2_bzDecompress ();
25572int
25573main ()
25574{
25575return BZ2_bzDecompress ();
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 ac_cv_lib_bz2_BZ2_bzDecompress=yes
25582else
cristy8b350f62009-11-15 23:12:43 +000025583 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000025584fi
cristy8b350f62009-11-15 23:12:43 +000025585rm -f core conftest.err conftest.$ac_objext \
25586 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025587LIBS=$ac_check_lib_save_LIBS
25588fi
cristy8b350f62009-11-15 23:12:43 +000025589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025590$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000025591if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025592 found_libbz=`expr $found_libbz + 1`
25593fi
25594
25595 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000025597$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025598if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025599 $as_echo_n "(cached) " >&6
25600else
25601 ac_check_lib_save_LIBS=$LIBS
25602LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025604/* end confdefs.h. */
25605
25606/* Override any GCC internal prototype to avoid an error.
25607 Use char because int might match the return type of a GCC
25608 builtin and then its argument prototype would still apply. */
25609#ifdef __cplusplus
25610extern "C"
25611#endif
25612char _imp__BZ2_decompress ();
25613int
25614main ()
25615{
25616return _imp__BZ2_decompress ();
25617 ;
25618 return 0;
25619}
25620_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025621if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025622 ac_cv_lib_bz2__imp__BZ2_decompress=yes
25623else
cristy8b350f62009-11-15 23:12:43 +000025624 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000025625fi
cristy8b350f62009-11-15 23:12:43 +000025626rm -f core conftest.err conftest.$ac_objext \
25627 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025628LIBS=$ac_check_lib_save_LIBS
25629fi
cristy8b350f62009-11-15 23:12:43 +000025630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025631$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000025632if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025633 found_libbz=`expr $found_libbz + 1`
25634fi
25635
25636 fi
25637 if test $found_libbz -gt 0; then
25638 passed=`expr $passed + 1`
25639 else
25640 failed=`expr $failed + 1`
25641 fi
cristy8b350f62009-11-15 23:12:43 +000025642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025643$as_echo_n "checking if BZLIB package is complete... " >&6; }
25644 if test $passed -gt 0; then
25645 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025647$as_echo "no -- some components failed test" >&6; }
25648 have_bzlib='no (failed tests)'
25649 else
25650 BZLIB_LIBS='-lbz2'
25651 LIBS="$BZLIB_LIBS $LIBS"
25652
cristy8b350f62009-11-15 23:12:43 +000025653$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025654
cristy8b350f62009-11-15 23:12:43 +000025655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025656$as_echo "yes" >&6; }
25657 have_bzlib='yes'
25658 fi
25659 else
cristy8b350f62009-11-15 23:12:43 +000025660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025661$as_echo "no" >&6; }
25662 fi
25663fi
cristy73bd4a52010-10-05 11:24:23 +000025664 if test "$have_bzlib" = 'yes'; then
25665 BZLIB_DELEGATE_TRUE=
25666 BZLIB_DELEGATE_FALSE='#'
25667else
25668 BZLIB_DELEGATE_TRUE='#'
25669 BZLIB_DELEGATE_FALSE=
25670fi
25671
cristy3ed852e2009-09-05 21:47:34 +000025672
25673
25674#
25675# Find the X11 include and library directories.
25676#
25677IPC_LIBS=''
25678X11_LIBS=''
25679XEXT_LIBS=''
25680XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000025682$as_echo_n "checking for X... " >&6; }
25683
25684
25685# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000025686if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025687 withval=$with_x;
25688fi
25689
25690# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25691if test "x$with_x" = xno; then
25692 # The user explicitly disabled X.
25693 have_x=disabled
25694else
25695 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000025696 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000025697 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000025698 $as_echo_n "(cached) " >&6
25699else
25700 # One or both of the vars are not set, and there is no cached value.
25701ac_x_includes=no ac_x_libraries=no
25702rm -f -r conftest.dir
25703if mkdir conftest.dir; then
25704 cd conftest.dir
25705 cat >Imakefile <<'_ACEOF'
25706incroot:
25707 @echo incroot='${INCROOT}'
25708usrlibdir:
25709 @echo usrlibdir='${USRLIBDIR}'
25710libdir:
25711 @echo libdir='${LIBDIR}'
25712_ACEOF
25713 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000025714 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000025715 for ac_var in incroot usrlibdir libdir; do
25716 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25717 done
25718 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25719 for ac_extension in a so sl dylib la dll; do
25720 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25721 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25722 ac_im_usrlibdir=$ac_im_libdir; break
25723 fi
25724 done
25725 # Screen out bogus values from the imake configuration. They are
25726 # bogus both because they are the default anyway, and because
25727 # using them would break gcc on systems where it needs fixed includes.
25728 case $ac_im_incroot in
25729 /usr/include) ac_x_includes= ;;
25730 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25731 esac
25732 case $ac_im_usrlibdir in
25733 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25734 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25735 esac
25736 fi
25737 cd ..
25738 rm -f -r conftest.dir
25739fi
25740
25741# Standard set of common directories for X headers.
25742# Check X11 before X11Rn because it is often a symlink to the current release.
25743ac_x_header_dirs='
25744/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000025745/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025746/usr/X11R6/include
25747/usr/X11R5/include
25748/usr/X11R4/include
25749
25750/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000025751/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025752/usr/include/X11R6
25753/usr/include/X11R5
25754/usr/include/X11R4
25755
25756/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000025757/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025758/usr/local/X11R6/include
25759/usr/local/X11R5/include
25760/usr/local/X11R4/include
25761
25762/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000025763/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025764/usr/local/include/X11R6
25765/usr/local/include/X11R5
25766/usr/local/include/X11R4
25767
25768/usr/X386/include
25769/usr/x386/include
25770/usr/XFree86/include/X11
25771
25772/usr/include
25773/usr/local/include
25774/usr/unsupported/include
25775/usr/athena/include
25776/usr/local/x11r5/include
25777/usr/lpp/Xamples/include
25778
25779/usr/openwin/include
25780/usr/openwin/share/include'
25781
25782if test "$ac_x_includes" = no; then
25783 # Guess where to find include files, by looking for Xlib.h.
25784 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000025785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025786/* end confdefs.h. */
25787#include <X11/Xlib.h>
25788_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025789if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025790 # We can compile using X headers with no special include directory.
25791ac_x_includes=
25792else
cristyc7083c12009-10-14 03:16:55 +000025793 for ac_dir in $ac_x_header_dirs; do
25794 if test -r "$ac_dir/X11/Xlib.h"; then
25795 ac_x_includes=$ac_dir
25796 break
25797 fi
25798done
25799fi
cristyda16f162011-02-19 23:52:17 +000025800rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025801fi # $ac_x_includes = no
25802
25803if test "$ac_x_libraries" = no; then
25804 # Check for the libraries.
25805 # See if we find them without any special options.
25806 # Don't add to $LIBS permanently.
25807 ac_save_LIBS=$LIBS
25808 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025810/* end confdefs.h. */
25811#include <X11/Xlib.h>
25812int
25813main ()
25814{
25815XrmInitialize ()
25816 ;
25817 return 0;
25818}
25819_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025820if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025821 LIBS=$ac_save_LIBS
25822# We can link X programs with no special library path.
25823ac_x_libraries=
25824else
cristy8b350f62009-11-15 23:12:43 +000025825 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025826for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25827do
25828 # Don't even attempt the hair of trying to link an X program!
25829 for ac_extension in a so sl dylib la dll; do
25830 if test -r "$ac_dir/libX11.$ac_extension"; then
25831 ac_x_libraries=$ac_dir
25832 break 2
25833 fi
25834 done
25835done
25836fi
cristy8b350f62009-11-15 23:12:43 +000025837rm -f core conftest.err conftest.$ac_objext \
25838 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025839fi # $ac_x_libraries = no
25840
25841case $ac_x_includes,$ac_x_libraries in #(
25842 no,* | *,no | *\'*)
25843 # Didn't find X, or a directory has "'" in its name.
25844 ac_cv_have_x="have_x=no";; #(
25845 *)
25846 # Record where we found X for the cache.
25847 ac_cv_have_x="have_x=yes\
25848 ac_x_includes='$ac_x_includes'\
25849 ac_x_libraries='$ac_x_libraries'"
25850esac
25851fi
25852;; #(
25853 *) have_x=yes;;
25854 esac
25855 eval "$ac_cv_have_x"
25856fi # $with_x != no
25857
25858if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025860$as_echo "$have_x" >&6; }
25861 no_x=yes
25862else
25863 # If each of the values was on the command line, it overrides each guess.
25864 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25865 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25866 # Update the cache value to reflect the command line values.
25867 ac_cv_have_x="have_x=yes\
25868 ac_x_includes='$x_includes'\
25869 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025871$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25872fi
25873
cristy3ed852e2009-09-05 21:47:34 +000025874if test "$no_x" = yes; then
25875 # Not all programs may use this symbol, but it does not hurt to define it.
25876
cristy8b350f62009-11-15 23:12:43 +000025877$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025878
25879 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25880else
25881 if test -n "$x_includes"; then
25882 X_CFLAGS="$X_CFLAGS -I$x_includes"
25883 fi
25884
25885 # It would also be nice to do this for all -L options, not just this one.
25886 if test -n "$x_libraries"; then
25887 X_LIBS="$X_LIBS -L$x_libraries"
25888 # For Solaris; some versions of Sun CC require a space after -R and
25889 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025891$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25892 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25893 ac_xsave_c_werror_flag=$ac_c_werror_flag
25894 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025896/* end confdefs.h. */
25897
25898int
25899main ()
25900{
25901
25902 ;
25903 return 0;
25904}
25905_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025906if ac_fn_c_try_link "$LINENO"; then :
25907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025908$as_echo "no" >&6; }
25909 X_LIBS="$X_LIBS -R$x_libraries"
25910else
cristy8b350f62009-11-15 23:12:43 +000025911 LIBS="$ac_xsave_LIBS -R $x_libraries"
25912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025913/* end confdefs.h. */
25914
25915int
25916main ()
25917{
25918
25919 ;
25920 return 0;
25921}
25922_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025923if ac_fn_c_try_link "$LINENO"; then :
25924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025925$as_echo "yes" >&6; }
25926 X_LIBS="$X_LIBS -R $x_libraries"
25927else
cristy8b350f62009-11-15 23:12:43 +000025928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025929$as_echo "neither works" >&6; }
25930fi
cristy8b350f62009-11-15 23:12:43 +000025931rm -f core conftest.err conftest.$ac_objext \
25932 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025933fi
cristy8b350f62009-11-15 23:12:43 +000025934rm -f core conftest.err conftest.$ac_objext \
25935 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025936 ac_c_werror_flag=$ac_xsave_c_werror_flag
25937 LIBS=$ac_xsave_LIBS
25938 fi
25939
25940 # Check for system-dependent libraries X programs must link with.
25941 # Do this before checking for the system-independent R6 libraries
25942 # (-lICE), since we may need -lsocket or whatever for X linking.
25943
25944 if test "$ISC" = yes; then
25945 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25946 else
25947 # Martyn Johnson says this is needed for Ultrix, if the X
25948 # libraries were built with DECnet support. And Karl Berry says
25949 # the Alpha needs dnet_stub (dnet does not exist).
25950 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025952/* end confdefs.h. */
25953
25954/* Override any GCC internal prototype to avoid an error.
25955 Use char because int might match the return type of a GCC
25956 builtin and then its argument prototype would still apply. */
25957#ifdef __cplusplus
25958extern "C"
25959#endif
25960char XOpenDisplay ();
25961int
25962main ()
25963{
25964return XOpenDisplay ();
25965 ;
25966 return 0;
25967}
25968_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025969if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025970
cristy8b350f62009-11-15 23:12:43 +000025971else
25972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025973$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025974if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025975 $as_echo_n "(cached) " >&6
25976else
25977 ac_check_lib_save_LIBS=$LIBS
25978LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025980/* end confdefs.h. */
25981
25982/* Override any GCC internal prototype to avoid an error.
25983 Use char because int might match the return type of a GCC
25984 builtin and then its argument prototype would still apply. */
25985#ifdef __cplusplus
25986extern "C"
25987#endif
25988char dnet_ntoa ();
25989int
25990main ()
25991{
25992return dnet_ntoa ();
25993 ;
25994 return 0;
25995}
25996_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025997if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025998 ac_cv_lib_dnet_dnet_ntoa=yes
25999else
cristy8b350f62009-11-15 23:12:43 +000026000 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026001fi
cristy8b350f62009-11-15 23:12:43 +000026002rm -f core conftest.err conftest.$ac_objext \
26003 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026004LIBS=$ac_check_lib_save_LIBS
26005fi
cristy8b350f62009-11-15 23:12:43 +000026006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026007$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026008if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026009 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26010fi
26011
26012 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026014$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026015if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026016 $as_echo_n "(cached) " >&6
26017else
26018 ac_check_lib_save_LIBS=$LIBS
26019LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026021/* end confdefs.h. */
26022
26023/* Override any GCC internal prototype to avoid an error.
26024 Use char because int might match the return type of a GCC
26025 builtin and then its argument prototype would still apply. */
26026#ifdef __cplusplus
26027extern "C"
26028#endif
26029char dnet_ntoa ();
26030int
26031main ()
26032{
26033return dnet_ntoa ();
26034 ;
26035 return 0;
26036}
26037_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026038if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026039 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26040else
cristy8b350f62009-11-15 23:12:43 +000026041 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026042fi
cristy8b350f62009-11-15 23:12:43 +000026043rm -f core conftest.err conftest.$ac_objext \
26044 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026045LIBS=$ac_check_lib_save_LIBS
26046fi
cristy8b350f62009-11-15 23:12:43 +000026047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026048$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026049if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026050 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26051fi
26052
26053 fi
26054fi
cristy8b350f62009-11-15 23:12:43 +000026055rm -f core conftest.err conftest.$ac_objext \
26056 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026057 LIBS="$ac_xsave_LIBS"
26058
26059 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26060 # to get the SysV transport functions.
26061 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26062 # needs -lnsl.
26063 # The nsl library prevents programs from opening the X display
26064 # on Irix 5.2, according to T.E. Dickey.
26065 # The functions gethostbyname, getservbyname, and inet_addr are
26066 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000026067 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000026068if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026069
cristy3ed852e2009-09-05 21:47:34 +000026070fi
26071
cristy3ed852e2009-09-05 21:47:34 +000026072 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026074$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026075if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026076 $as_echo_n "(cached) " >&6
26077else
26078 ac_check_lib_save_LIBS=$LIBS
26079LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026081/* end confdefs.h. */
26082
26083/* Override any GCC internal prototype to avoid an error.
26084 Use char because int might match the return type of a GCC
26085 builtin and then its argument prototype would still apply. */
26086#ifdef __cplusplus
26087extern "C"
26088#endif
26089char gethostbyname ();
26090int
26091main ()
26092{
26093return gethostbyname ();
26094 ;
26095 return 0;
26096}
26097_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026098if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026099 ac_cv_lib_nsl_gethostbyname=yes
26100else
cristy8b350f62009-11-15 23:12:43 +000026101 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026102fi
cristy8b350f62009-11-15 23:12:43 +000026103rm -f core conftest.err conftest.$ac_objext \
26104 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026105LIBS=$ac_check_lib_save_LIBS
26106fi
cristy8b350f62009-11-15 23:12:43 +000026107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026108$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026109if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026110 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26111fi
26112
26113 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000026115$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026116if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026117 $as_echo_n "(cached) " >&6
26118else
26119 ac_check_lib_save_LIBS=$LIBS
26120LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026122/* end confdefs.h. */
26123
26124/* Override any GCC internal prototype to avoid an error.
26125 Use char because int might match the return type of a GCC
26126 builtin and then its argument prototype would still apply. */
26127#ifdef __cplusplus
26128extern "C"
26129#endif
26130char gethostbyname ();
26131int
26132main ()
26133{
26134return gethostbyname ();
26135 ;
26136 return 0;
26137}
26138_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026139if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026140 ac_cv_lib_bsd_gethostbyname=yes
26141else
cristy8b350f62009-11-15 23:12:43 +000026142 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026143fi
cristy8b350f62009-11-15 23:12:43 +000026144rm -f core conftest.err conftest.$ac_objext \
26145 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026146LIBS=$ac_check_lib_save_LIBS
26147fi
cristy8b350f62009-11-15 23:12:43 +000026148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026149$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026150if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026151 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26152fi
26153
26154 fi
26155 fi
26156
26157 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26158 # socket/setsockopt and other routines are undefined under SCO ODT
26159 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26160 # on later versions), says Simon Leinen: it contains gethostby*
26161 # variants that don't use the name server (or something). -lsocket
26162 # must be given before -lnsl if both are needed. We assume that
26163 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000026164 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000026165if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026166
cristy3ed852e2009-09-05 21:47:34 +000026167fi
26168
cristy3ed852e2009-09-05 21:47:34 +000026169 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000026170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000026171$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026172if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026173 $as_echo_n "(cached) " >&6
26174else
26175 ac_check_lib_save_LIBS=$LIBS
26176LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026178/* end confdefs.h. */
26179
26180/* Override any GCC internal prototype to avoid an error.
26181 Use char because int might match the return type of a GCC
26182 builtin and then its argument prototype would still apply. */
26183#ifdef __cplusplus
26184extern "C"
26185#endif
26186char connect ();
26187int
26188main ()
26189{
26190return connect ();
26191 ;
26192 return 0;
26193}
26194_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026195if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026196 ac_cv_lib_socket_connect=yes
26197else
cristy8b350f62009-11-15 23:12:43 +000026198 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000026199fi
cristy8b350f62009-11-15 23:12:43 +000026200rm -f core conftest.err conftest.$ac_objext \
26201 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026202LIBS=$ac_check_lib_save_LIBS
26203fi
cristy8b350f62009-11-15 23:12:43 +000026204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000026205$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000026206if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026207 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26208fi
26209
26210 fi
26211
26212 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000026213 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000026214if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026215
cristy3ed852e2009-09-05 21:47:34 +000026216fi
26217
cristy3ed852e2009-09-05 21:47:34 +000026218 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000026219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000026220$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026221if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026222 $as_echo_n "(cached) " >&6
26223else
26224 ac_check_lib_save_LIBS=$LIBS
26225LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026227/* end confdefs.h. */
26228
26229/* Override any GCC internal prototype to avoid an error.
26230 Use char because int might match the return type of a GCC
26231 builtin and then its argument prototype would still apply. */
26232#ifdef __cplusplus
26233extern "C"
26234#endif
26235char remove ();
26236int
26237main ()
26238{
26239return remove ();
26240 ;
26241 return 0;
26242}
26243_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026244if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026245 ac_cv_lib_posix_remove=yes
26246else
cristy8b350f62009-11-15 23:12:43 +000026247 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000026248fi
cristy8b350f62009-11-15 23:12:43 +000026249rm -f core conftest.err conftest.$ac_objext \
26250 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026251LIBS=$ac_check_lib_save_LIBS
26252fi
cristy8b350f62009-11-15 23:12:43 +000026253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000026254$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000026255if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026256 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26257fi
26258
26259 fi
26260
26261 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000026262 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000026263if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026264
cristy3ed852e2009-09-05 21:47:34 +000026265fi
26266
cristy3ed852e2009-09-05 21:47:34 +000026267 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000026268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026269$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026270if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026271 $as_echo_n "(cached) " >&6
26272else
26273 ac_check_lib_save_LIBS=$LIBS
26274LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026276/* end confdefs.h. */
26277
26278/* Override any GCC internal prototype to avoid an error.
26279 Use char because int might match the return type of a GCC
26280 builtin and then its argument prototype would still apply. */
26281#ifdef __cplusplus
26282extern "C"
26283#endif
26284char shmat ();
26285int
26286main ()
26287{
26288return shmat ();
26289 ;
26290 return 0;
26291}
26292_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026293if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026294 ac_cv_lib_ipc_shmat=yes
26295else
cristy8b350f62009-11-15 23:12:43 +000026296 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000026297fi
cristy8b350f62009-11-15 23:12:43 +000026298rm -f core conftest.err conftest.$ac_objext \
26299 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026300LIBS=$ac_check_lib_save_LIBS
26301fi
cristy8b350f62009-11-15 23:12:43 +000026302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000026303$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000026304if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026305 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26306fi
26307
26308 fi
26309 fi
26310
26311 # Check for libraries that X11R6 Xt/Xaw programs need.
26312 ac_save_LDFLAGS=$LDFLAGS
26313 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26314 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26315 # check for ICE first), but we must link in the order -lSM -lICE or
26316 # we get undefined symbols. So assume we have SM if we have ICE.
26317 # These have to be linked with before -lX11, unlike the other
26318 # libraries we check for below, so use a different variable.
26319 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000026320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000026321$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026322if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026323 $as_echo_n "(cached) " >&6
26324else
26325 ac_check_lib_save_LIBS=$LIBS
26326LIBS="-lICE $X_EXTRA_LIBS $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 IceConnectionNumber ();
26337int
26338main ()
26339{
26340return IceConnectionNumber ();
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_ICE_IceConnectionNumber=yes
26347else
cristy8b350f62009-11-15 23:12:43 +000026348 ac_cv_lib_ICE_IceConnectionNumber=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_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000026355$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000026356if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026357 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26358fi
26359
26360 LDFLAGS=$ac_save_LDFLAGS
26361
26362fi
26363
26364if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026366$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000026368$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026370$as_echo "" >&6; }
26371 LDFLAGS="$LDFLAGS $X_LIBS"
26372 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
26373 LIBS="$X11_LIBS $LIBS"
26374 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
26375
26376
cristy8b350f62009-11-15 23:12:43 +000026377$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026378
26379 #
26380 # Check for X11 shared memory extension
26381 #
26382 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000026383 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000026384if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026385 have_shmctl='yes'
26386fi
26387
26388 if test "$have_shmctl" != 'yes'; then
26389 PERSIST_LIBS=$LIBS
26390 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000026391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026392/* end confdefs.h. */
26393
26394/* Override any GCC internal prototype to avoid an error.
26395 Use char because int might match the return type of a GCC
26396 builtin and then its argument prototype would still apply. */
26397#ifdef __cplusplus
26398extern "C"
26399#endif
26400char shmctl ();
26401int
26402main ()
26403{
26404return shmctl ();
26405 ;
26406 return 0;
26407}
26408_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026409if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026410 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000026411fi
cristy8b350f62009-11-15 23:12:43 +000026412rm -f core conftest.err conftest.$ac_objext \
26413 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026414 LIBS=$PERSIST_LIBS
26415 fi
26416
26417 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026419$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026420if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026421 $as_echo_n "(cached) " >&6
26422else
26423 ac_check_lib_save_LIBS=$LIBS
26424LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026426/* end confdefs.h. */
26427
26428/* Override any GCC internal prototype to avoid an error.
26429 Use char because int might match the return type of a GCC
26430 builtin and then its argument prototype would still apply. */
26431#ifdef __cplusplus
26432extern "C"
26433#endif
26434char XShmAttach ();
26435int
26436main ()
26437{
26438return XShmAttach ();
26439 ;
26440 return 0;
26441}
26442_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026443if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026444 ac_cv_lib_Xext_XShmAttach=yes
26445else
cristy8b350f62009-11-15 23:12:43 +000026446 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000026447fi
cristy8b350f62009-11-15 23:12:43 +000026448rm -f core conftest.err conftest.$ac_objext \
26449 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026450LIBS=$ac_check_lib_save_LIBS
26451fi
cristy8b350f62009-11-15 23:12:43 +000026452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000026453$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000026454if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026455 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000026456$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026457
26458fi
26459
26460 fi
26461
26462 #
26463 # Check for X11 shape extension
26464 #
cristy8b350f62009-11-15 23:12:43 +000026465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026466$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026467if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026468 $as_echo_n "(cached) " >&6
26469else
26470 ac_check_lib_save_LIBS=$LIBS
26471LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026473/* end confdefs.h. */
26474
26475/* Override any GCC internal prototype to avoid an error.
26476 Use char because int might match the return type of a GCC
26477 builtin and then its argument prototype would still apply. */
26478#ifdef __cplusplus
26479extern "C"
26480#endif
26481char XShapeCombineMask ();
26482int
26483main ()
26484{
26485return XShapeCombineMask ();
26486 ;
26487 return 0;
26488}
26489_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026490if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026491 ac_cv_lib_Xext_XShapeCombineMask=yes
26492else
cristy8b350f62009-11-15 23:12:43 +000026493 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000026494fi
cristy8b350f62009-11-15 23:12:43 +000026495rm -f core conftest.err conftest.$ac_objext \
26496 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026497LIBS=$ac_check_lib_save_LIBS
26498fi
cristy8b350f62009-11-15 23:12:43 +000026499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000026500$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000026501if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026502 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000026503$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026504
26505fi
26506
cristy8b350f62009-11-15 23:12:43 +000026507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000026508$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026509if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026510 $as_echo_n "(cached) " >&6
26511else
26512 ac_check_lib_save_LIBS=$LIBS
26513LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026515/* end confdefs.h. */
26516
26517/* Override any GCC internal prototype to avoid an error.
26518 Use char because int might match the return type of a GCC
26519 builtin and then its argument prototype would still apply. */
26520#ifdef __cplusplus
26521extern "C"
26522#endif
26523char XtSetEventDispatcher ();
26524int
26525main ()
26526{
26527return XtSetEventDispatcher ();
26528 ;
26529 return 0;
26530}
26531_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026532if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026533 ac_cv_lib_Xt_XtSetEventDispatcher=yes
26534else
cristy8b350f62009-11-15 23:12:43 +000026535 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000026536fi
cristy8b350f62009-11-15 23:12:43 +000026537rm -f core conftest.err conftest.$ac_objext \
26538 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026539LIBS=$ac_check_lib_save_LIBS
26540fi
cristy8b350f62009-11-15 23:12:43 +000026541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000026542$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000026543if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026544 XT_LIBS='-lXt'
26545fi
26546
26547 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
26548fi
26549if test "$no_x" != 'yes'; then
26550 have_x='yes'
26551else
26552 have_x='no'
26553fi
cristy73bd4a52010-10-05 11:24:23 +000026554 if test "$have_x" = 'yes'; then
26555 X11_DELEGATE_TRUE=
26556 X11_DELEGATE_FALSE='#'
26557else
26558 X11_DELEGATE_TRUE='#'
26559 X11_DELEGATE_FALSE=
26560fi
26561
cristy3ed852e2009-09-05 21:47:34 +000026562
26563
26564
26565
26566#
26567# Check for ZLIB
26568#
26569
26570# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000026571if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026572 withval=$with_zlib; with_zlib=$withval
26573else
26574 with_zlib='yes'
26575fi
26576
26577
26578if test "$with_zlib" != 'yes'; then
26579 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
26580fi
26581
26582have_zlib='no'
26583ZLIB_LIBS=''
26584if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026586$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026588$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026590$as_echo "" >&6; }
26591 ZLIB_LIBS=''
26592 failed=0
26593 passed=0
cristy8b350f62009-11-15 23:12:43 +000026594 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026595if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026596 passed=`expr $passed + 1`
26597else
26598 failed=`expr $failed + 1`
26599fi
26600
26601
cristy8b350f62009-11-15 23:12:43 +000026602 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026603if test "x$ac_cv_header_zlib_h" = xyes; 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 compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026611$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026612if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026613 $as_echo_n "(cached) " >&6
26614else
26615 ac_check_lib_save_LIBS=$LIBS
26616LIBS="-lz $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 compress ();
26627int
26628main ()
26629{
26630return compress ();
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_z_compress=yes
26637else
cristy8b350f62009-11-15 23:12:43 +000026638 ac_cv_lib_z_compress=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_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026645$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026646if test "x$ac_cv_lib_z_compress" = xyes; 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 for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026653$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026654if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026655 $as_echo_n "(cached) " >&6
26656else
26657 ac_check_lib_save_LIBS=$LIBS
26658LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026660/* end confdefs.h. */
26661
26662/* Override any GCC internal prototype to avoid an error.
26663 Use char because int might match the return type of a GCC
26664 builtin and then its argument prototype would still apply. */
26665#ifdef __cplusplus
26666extern "C"
26667#endif
26668char uncompress ();
26669int
26670main ()
26671{
26672return uncompress ();
26673 ;
26674 return 0;
26675}
26676_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026677if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026678 ac_cv_lib_z_uncompress=yes
26679else
cristy8b350f62009-11-15 23:12:43 +000026680 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000026681fi
cristy8b350f62009-11-15 23:12:43 +000026682rm -f core conftest.err conftest.$ac_objext \
26683 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026684LIBS=$ac_check_lib_save_LIBS
26685fi
cristy8b350f62009-11-15 23:12:43 +000026686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026687$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026688if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026689 passed=`expr $passed + 1`
26690else
26691 failed=`expr $failed + 1`
26692fi
26693
cristy8b350f62009-11-15 23:12:43 +000026694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026695$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026696if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026697 $as_echo_n "(cached) " >&6
26698else
26699 ac_check_lib_save_LIBS=$LIBS
26700LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026702/* end confdefs.h. */
26703
26704/* Override any GCC internal prototype to avoid an error.
26705 Use char because int might match the return type of a GCC
26706 builtin and then its argument prototype would still apply. */
26707#ifdef __cplusplus
26708extern "C"
26709#endif
26710char deflate ();
26711int
26712main ()
26713{
26714return deflate ();
26715 ;
26716 return 0;
26717}
26718_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026719if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026720 ac_cv_lib_z_deflate=yes
26721else
cristy8b350f62009-11-15 23:12:43 +000026722 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000026723fi
cristy8b350f62009-11-15 23:12:43 +000026724rm -f core conftest.err conftest.$ac_objext \
26725 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026726LIBS=$ac_check_lib_save_LIBS
26727fi
cristy8b350f62009-11-15 23:12:43 +000026728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026729$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000026730if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026731 passed=`expr $passed + 1`
26732else
26733 failed=`expr $failed + 1`
26734fi
26735
cristy8b350f62009-11-15 23:12:43 +000026736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026737$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026738if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026739 $as_echo_n "(cached) " >&6
26740else
26741 ac_check_lib_save_LIBS=$LIBS
26742LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026744/* end confdefs.h. */
26745
26746/* Override any GCC internal prototype to avoid an error.
26747 Use char because int might match the return type of a GCC
26748 builtin and then its argument prototype would still apply. */
26749#ifdef __cplusplus
26750extern "C"
26751#endif
26752char inflate ();
26753int
26754main ()
26755{
26756return inflate ();
26757 ;
26758 return 0;
26759}
26760_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026761if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026762 ac_cv_lib_z_inflate=yes
26763else
cristy8b350f62009-11-15 23:12:43 +000026764 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000026765fi
cristy8b350f62009-11-15 23:12:43 +000026766rm -f core conftest.err conftest.$ac_objext \
26767 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026768LIBS=$ac_check_lib_save_LIBS
26769fi
cristy8b350f62009-11-15 23:12:43 +000026770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026771$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000026772if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026773 passed=`expr $passed + 1`
26774else
26775 failed=`expr $failed + 1`
26776fi
26777
cristy8b350f62009-11-15 23:12:43 +000026778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026779$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026780if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026781 $as_echo_n "(cached) " >&6
26782else
26783 ac_check_lib_save_LIBS=$LIBS
26784LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026786/* end confdefs.h. */
26787
26788/* Override any GCC internal prototype to avoid an error.
26789 Use char because int might match the return type of a GCC
26790 builtin and then its argument prototype would still apply. */
26791#ifdef __cplusplus
26792extern "C"
26793#endif
26794char gzseek ();
26795int
26796main ()
26797{
26798return gzseek ();
26799 ;
26800 return 0;
26801}
26802_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026803if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026804 ac_cv_lib_z_gzseek=yes
26805else
cristy8b350f62009-11-15 23:12:43 +000026806 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000026807fi
cristy8b350f62009-11-15 23:12:43 +000026808rm -f core conftest.err conftest.$ac_objext \
26809 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026810LIBS=$ac_check_lib_save_LIBS
26811fi
cristy8b350f62009-11-15 23:12:43 +000026812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000026813$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000026814if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026815 passed=`expr $passed + 1`
26816else
26817 failed=`expr $failed + 1`
26818fi
26819
cristy8b350f62009-11-15 23:12:43 +000026820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026821$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026822if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026823 $as_echo_n "(cached) " >&6
26824else
26825 ac_check_lib_save_LIBS=$LIBS
26826LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026828/* end confdefs.h. */
26829
26830/* Override any GCC internal prototype to avoid an error.
26831 Use char because int might match the return type of a GCC
26832 builtin and then its argument prototype would still apply. */
26833#ifdef __cplusplus
26834extern "C"
26835#endif
26836char gztell ();
26837int
26838main ()
26839{
26840return gztell ();
26841 ;
26842 return 0;
26843}
26844_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026845if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026846 ac_cv_lib_z_gztell=yes
26847else
cristy8b350f62009-11-15 23:12:43 +000026848 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026849fi
cristy8b350f62009-11-15 23:12:43 +000026850rm -f core conftest.err conftest.$ac_objext \
26851 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026852LIBS=$ac_check_lib_save_LIBS
26853fi
cristy8b350f62009-11-15 23:12:43 +000026854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026855$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000026856if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026857 passed=`expr $passed + 1`
26858else
26859 failed=`expr $failed + 1`
26860fi
26861
cristy8b350f62009-11-15 23:12:43 +000026862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026863$as_echo_n "checking if ZLIB package is complete... " >&6; }
26864 if test $passed -gt 0; then
26865 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026867$as_echo "no -- some components failed test" >&6; }
26868 have_zlib='no (failed tests)'
26869 else
26870 ZLIB_LIBS='-lz'
26871 LIBS="$ZLIB_LIBS $LIBS"
26872
cristy8b350f62009-11-15 23:12:43 +000026873$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026874
cristy8b350f62009-11-15 23:12:43 +000026875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026876$as_echo "yes" >&6; }
26877 have_zlib='yes'
26878 fi
26879 else
cristy8b350f62009-11-15 23:12:43 +000026880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026881$as_echo "no" >&6; }
26882 fi
26883fi
cristy73bd4a52010-10-05 11:24:23 +000026884 if test "$have_zlib" = 'yes'; then
26885 ZLIB_DELEGATE_TRUE=
26886 ZLIB_DELEGATE_FALSE='#'
26887else
26888 ZLIB_DELEGATE_TRUE='#'
26889 ZLIB_DELEGATE_FALSE=
26890fi
26891
cristy3ed852e2009-09-05 21:47:34 +000026892
26893
26894#
26895# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26896#
26897LIB_DL=''
26898if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026900$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026901if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026902 $as_echo_n "(cached) " >&6
26903else
26904 ac_check_lib_save_LIBS=$LIBS
26905LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026907/* end confdefs.h. */
26908
26909/* Override any GCC internal prototype to avoid an error.
26910 Use char because int might match the return type of a GCC
26911 builtin and then its argument prototype would still apply. */
26912#ifdef __cplusplus
26913extern "C"
26914#endif
26915char dlopen ();
26916int
26917main ()
26918{
26919return dlopen ();
26920 ;
26921 return 0;
26922}
26923_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026924if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026925 ac_cv_lib_dl_dlopen=yes
26926else
cristy8b350f62009-11-15 23:12:43 +000026927 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026928fi
cristy8b350f62009-11-15 23:12:43 +000026929rm -f core conftest.err conftest.$ac_objext \
26930 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026931LIBS=$ac_check_lib_save_LIBS
26932fi
cristy8b350f62009-11-15 23:12:43 +000026933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026934$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000026935if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026936 LIB_DL='-ldl'
26937fi
26938
26939 LIBS="$LIB_DL $LIBS"
26940fi
26941
26942
26943
26944#
26945# Check for Autotrace delegate library.
26946#
26947
26948# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026949if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026950 withval=$with_autotrace; with_autotrace=$withval
26951else
26952 with_autotrace='no'
26953fi
26954
26955
26956if test "$with_autotrace" != 'yes'; then
26957 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26958fi
26959
26960have_autotrace='no'
26961AUTOTRACE_CFLAGS=""
26962AUTOTRACE_LIBS=""
26963AUTOTRACE_PKG=""
26964if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026966$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000026967
26968pkg_failed=no
26969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
26970$as_echo_n "checking for AUTOTRACE... " >&6; }
26971
26972if test -n "$AUTOTRACE_CFLAGS"; then
26973 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26974 elif test -n "$PKG_CONFIG"; then
26975 if test -n "$PKG_CONFIG" && \
26976 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26977 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26978 ac_status=$?
26979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26980 test $ac_status = 0; }; then
26981 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26982else
26983 pkg_failed=yes
26984fi
26985 else
26986 pkg_failed=untried
26987fi
26988if test -n "$AUTOTRACE_LIBS"; then
26989 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26990 elif test -n "$PKG_CONFIG"; then
26991 if test -n "$PKG_CONFIG" && \
26992 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26993 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26994 ac_status=$?
26995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26996 test $ac_status = 0; }; then
26997 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26998else
26999 pkg_failed=yes
27000fi
27001 else
27002 pkg_failed=untried
27003fi
27004
27005
27006
27007if test $pkg_failed = yes; then
27008
27009if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27010 _pkg_short_errors_supported=yes
27011else
27012 _pkg_short_errors_supported=no
27013fi
27014 if test $_pkg_short_errors_supported = yes; then
27015 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27016 else
27017 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27018 fi
27019 # Put the nasty error message in config.log where it belongs
27020 echo "$AUTOTRACE_PKG_ERRORS" >&5
27021
27022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27023$as_echo "no" >&6; }
27024 have_autotrace=no
27025elif test $pkg_failed = untried; then
27026 have_autotrace=no
27027else
27028 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27029 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27031$as_echo "yes" >&6; }
27032 have_autotrace=yes
27033fi
cristy8b350f62009-11-15 23:12:43 +000027034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027035$as_echo "" >&6; }
27036fi
27037
27038if test "$have_autotrace" = 'yes'; then
27039 failed=0
27040
cristy8b350f62009-11-15 23:12:43 +000027041$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027042
27043 if test "$with_modules" = 'no'; then
27044 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27045 fi
27046fi
27047
cristy73bd4a52010-10-05 11:24:23 +000027048 if test "$have_autotrace" = 'yes'; then
27049 AUTOTRACE_DELEGATE_TRUE=
27050 AUTOTRACE_DELEGATE_FALSE='#'
27051else
27052 AUTOTRACE_DELEGATE_TRUE='#'
27053 AUTOTRACE_DELEGATE_FALSE=
27054fi
27055
cristy3ed852e2009-09-05 21:47:34 +000027056
27057
27058
27059
27060#
27061# Check for Display Postscript delegate library.
27062#
27063
27064# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000027065if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027066 withval=$with_dps; with_dps=$withval
27067else
27068 with_dps='yes'
27069fi
27070
27071
27072if test "$with_dps" != 'yes'; then
27073 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27074fi
27075
27076have_dps='no'
27077DPS_LIBS=''
27078if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027080$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027082$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027084$as_echo "" >&6; }
27085 failed=0
27086 passed=0
27087 PERSIST_CPPFLAGS="$CPPFLAGS"
27088 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000027089 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027090if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027091 passed=`expr $passed + 1`
27092else
27093 failed=`expr $failed + 1`
27094fi
27095
27096
27097 # DPS issues:
27098 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
27099 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
27100 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
27101 # ImageMagick itself doesn't use -lXt.
27102 have_libdps='no'
27103 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000027104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027105$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027106if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027107 $as_echo_n "(cached) " >&6
27108else
27109 ac_check_lib_save_LIBS=$LIBS
27110LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027112/* end confdefs.h. */
27113
27114/* Override any GCC internal prototype to avoid an error.
27115 Use char because int might match the return type of a GCC
27116 builtin and then its argument prototype would still apply. */
27117#ifdef __cplusplus
27118extern "C"
27119#endif
27120char DPSInitialize ();
27121int
27122main ()
27123{
27124return DPSInitialize ();
27125 ;
27126 return 0;
27127}
27128_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027129if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027130 ac_cv_lib_dps_DPSInitialize=yes
27131else
cristy8b350f62009-11-15 23:12:43 +000027132 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027133fi
cristy8b350f62009-11-15 23:12:43 +000027134rm -f core conftest.err conftest.$ac_objext \
27135 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027136LIBS=$ac_check_lib_save_LIBS
27137fi
cristy8b350f62009-11-15 23:12:43 +000027138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027139$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027140if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027141 have_libdps='yes'
27142else
27143 have_libdps='no'
27144fi
27145
27146 if test "$have_libdps" != 'yes'; then
27147 # Unset cache variable so we can try again.
27148 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000027149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027150$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027151if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027152 $as_echo_n "(cached) " >&6
27153else
27154 ac_check_lib_save_LIBS=$LIBS
27155LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027157/* end confdefs.h. */
27158
27159/* Override any GCC internal prototype to avoid an error.
27160 Use char because int might match the return type of a GCC
27161 builtin and then its argument prototype would still apply. */
27162#ifdef __cplusplus
27163extern "C"
27164#endif
27165char DPSInitialize ();
27166int
27167main ()
27168{
27169return DPSInitialize ();
27170 ;
27171 return 0;
27172}
27173_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027174if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027175 ac_cv_lib_dps_DPSInitialize=yes
27176else
cristy8b350f62009-11-15 23:12:43 +000027177 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027178fi
cristy8b350f62009-11-15 23:12:43 +000027179rm -f core conftest.err conftest.$ac_objext \
27180 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027181LIBS=$ac_check_lib_save_LIBS
27182fi
cristy8b350f62009-11-15 23:12:43 +000027183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027184$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027185if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027186 have_libdps='yes'
27187else
27188 have_libdps='no'
27189fi
27190
27191 if test "$have_libdps" = 'yes'; then
27192 LIBDPS_XT='-lXt'
27193 fi
27194 fi
27195 if test "$have_libdps" = 'yes'; then
27196 passed=`expr $passed + 1`
27197 else
27198 failed=`expr $failed + 1`
27199 fi
cristy8b350f62009-11-15 23:12:43 +000027200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000027201$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027202if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027203 $as_echo_n "(cached) " >&6
27204else
27205 ac_check_lib_save_LIBS=$LIBS
27206LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027208/* end confdefs.h. */
27209
27210/* Override any GCC internal prototype to avoid an error.
27211 Use char because int might match the return type of a GCC
27212 builtin and then its argument prototype would still apply. */
27213#ifdef __cplusplus
27214extern "C"
27215#endif
27216char XDPSPixelsPerPoint ();
27217int
27218main ()
27219{
27220return XDPSPixelsPerPoint ();
27221 ;
27222 return 0;
27223}
27224_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027225if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027226 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
27227else
cristy8b350f62009-11-15 23:12:43 +000027228 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000027229fi
cristy8b350f62009-11-15 23:12:43 +000027230rm -f core conftest.err conftest.$ac_objext \
27231 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027232LIBS=$ac_check_lib_save_LIBS
27233fi
cristy8b350f62009-11-15 23:12:43 +000027234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000027235$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000027236if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027237 passed=`expr $passed + 1`
27238else
27239 failed=`expr $failed + 1`
27240fi
27241
cristy8b350f62009-11-15 23:12:43 +000027242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027243$as_echo_n "checking if DPS package is complete... " >&6; }
27244 if test $passed -gt 0; then
27245 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027247$as_echo "no -- some components failed test" >&6; }
27248 have_dps='no (failed tests)'
27249 CPPFLAGS="$PERSIST_CPPFLAGS"
27250 else
27251 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
27252 LIBS="$DPS_LIBS $LIBS"
27253
cristy8b350f62009-11-15 23:12:43 +000027254$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027255
cristy8b350f62009-11-15 23:12:43 +000027256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027257$as_echo "yes" >&6; }
27258 have_dps='yes'
27259 fi
27260 else
cristy8b350f62009-11-15 23:12:43 +000027261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027262$as_echo "no" >&6; }
27263 CPPFLAGS=$PERSIST_CPPFLAGS
27264 fi
27265fi
cristy73bd4a52010-10-05 11:24:23 +000027266 if test "$have_dps" = 'yes'; then
27267 DPS_DELEGATE_TRUE=
27268 DPS_DELEGATE_FALSE='#'
27269else
27270 DPS_DELEGATE_TRUE='#'
27271 DPS_DELEGATE_FALSE=
27272fi
27273
cristy3ed852e2009-09-05 21:47:34 +000027274
27275
27276
27277#
27278# Check for DJVU delegate library.
27279#
27280
27281# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000027282if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027283 withval=$with_djvu; with_djvu=$withval
27284else
27285 with_djvu='yes'
27286fi
27287
27288
27289if test "$with_djvu" != 'yes'; then
27290 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
27291fi
27292
27293have_djvu='no'
27294DJVU_LIBS=''
27295if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027297$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000027299$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027301$as_echo "" >&6; }
27302 failed=0
27303 passed=0
cristy8b350f62009-11-15 23:12:43 +000027304 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027305if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027306 passed=`expr $passed + 1`
27307else
27308 failed=`expr $failed + 1`
27309fi
27310
27311
cristy8b350f62009-11-15 23:12:43 +000027312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000027313$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027314if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027315 $as_echo_n "(cached) " >&6
27316else
27317 ac_check_lib_save_LIBS=$LIBS
27318LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027320/* end confdefs.h. */
27321
27322/* Override any GCC internal prototype to avoid an error.
27323 Use char because int might match the return type of a GCC
27324 builtin and then its argument prototype would still apply. */
27325#ifdef __cplusplus
27326extern "C"
27327#endif
27328char ddjvu_context_create ();
27329int
27330main ()
27331{
27332return ddjvu_context_create ();
27333 ;
27334 return 0;
27335}
27336_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027337if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027338 ac_cv_lib_djvulibre_ddjvu_context_create=yes
27339else
cristy8b350f62009-11-15 23:12:43 +000027340 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000027341fi
cristy8b350f62009-11-15 23:12:43 +000027342rm -f core conftest.err conftest.$ac_objext \
27343 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027344LIBS=$ac_check_lib_save_LIBS
27345fi
cristy8b350f62009-11-15 23:12:43 +000027346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027347$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000027348if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027349 passed=`expr $passed + 1`
27350else
27351 failed=`expr $failed + 1`
27352fi
27353
cristy8b350f62009-11-15 23:12:43 +000027354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027355$as_echo_n "checking if DJVU package is complete... " >&6; }
27356 if test $passed -gt 0; then
27357 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027359$as_echo "no -- some components failed test" >&6; }
27360 have_djvu='no (failed tests)'
27361 else
27362 DJVU_LIBS='-ldjvulibre'
27363 LIBS="$DJVU_LIBS $LIBS"
27364
cristy8b350f62009-11-15 23:12:43 +000027365$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027366
cristy8b350f62009-11-15 23:12:43 +000027367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027368$as_echo "yes" >&6; }
27369 have_djvu='yes'
27370 fi
27371 else
cristy8b350f62009-11-15 23:12:43 +000027372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027373$as_echo "no" >&6; }
27374 fi
27375fi
cristy73bd4a52010-10-05 11:24:23 +000027376 if test "$have_djvu" = 'yes'; then
27377 DJVU_DELEGATE_TRUE=
27378 DJVU_DELEGATE_FALSE='#'
27379else
27380 DJVU_DELEGATE_TRUE='#'
27381 DJVU_DELEGATE_FALSE=
27382fi
27383
cristy3ed852e2009-09-05 21:47:34 +000027384
27385
27386
27387#
cristy430a7312010-01-21 20:44:04 +000027388# Set DejaVu font directory.
27389#
27390
27391# Check whether --with-dejavu-font-dir was given.
27392if test "${with_dejavu_font_dir+set}" = set; then :
27393 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
27394else
27395 with_dejavu_font_dir='default'
27396fi
27397
27398
27399if test "$with_dejavu_font_dir" != 'default'; then
27400 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
27401fi
27402
27403
27404#
cristy3ed852e2009-09-05 21:47:34 +000027405# Check for FFTW delegate library.
27406#
27407
27408# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000027409if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027410 withval=$with_fftw; with_fftw=$withval
27411else
27412 with_fftw='yes'
27413fi
27414
27415
27416if test "$with_fftw" != 'yes'; then
27417 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
27418fi
27419
27420have_fftw='no'
27421FFTW_LIBS=''
27422if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027424$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000027426$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027428$as_echo "" >&6; }
27429 failed=0
27430 passed=0
cristy8b350f62009-11-15 23:12:43 +000027431 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027432if test "x$ac_cv_header_fftw3_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027433 passed=`expr $passed + 1`
27434else
27435 failed=`expr $failed + 1`
27436fi
27437
27438
cristy8b350f62009-11-15 23:12:43 +000027439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000027440$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027441if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027442 $as_echo_n "(cached) " >&6
27443else
27444 ac_check_lib_save_LIBS=$LIBS
27445LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027447/* end confdefs.h. */
27448
27449/* Override any GCC internal prototype to avoid an error.
27450 Use char because int might match the return type of a GCC
27451 builtin and then its argument prototype would still apply. */
27452#ifdef __cplusplus
27453extern "C"
27454#endif
27455char fftw_execute ();
27456int
27457main ()
27458{
27459return fftw_execute ();
27460 ;
27461 return 0;
27462}
27463_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027464if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027465 ac_cv_lib_fftw3_fftw_execute=yes
27466else
cristy8b350f62009-11-15 23:12:43 +000027467 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000027468fi
cristy8b350f62009-11-15 23:12:43 +000027469rm -f core conftest.err conftest.$ac_objext \
27470 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027471LIBS=$ac_check_lib_save_LIBS
27472fi
cristy8b350f62009-11-15 23:12:43 +000027473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000027474$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristyda16f162011-02-19 23:52:17 +000027475if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027476 passed=`expr $passed + 1`
27477else
27478 failed=`expr $failed + 1`
27479fi
27480
cristy8b350f62009-11-15 23:12:43 +000027481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027482$as_echo_n "checking if FFTW package is complete... " >&6; }
27483 if test $passed -gt 0; then
27484 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027486$as_echo "no -- some components failed test" >&6; }
27487 have_fftw='no (failed tests)'
27488 else
27489 FFTW_LIBS='-lfftw3'
27490 LIBS="$FFTW_LIBS $LIBS"
27491
cristy8b350f62009-11-15 23:12:43 +000027492$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027493
cristy8b350f62009-11-15 23:12:43 +000027494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027495$as_echo "yes" >&6; }
27496 have_fftw='yes'
27497 fi
27498 else
cristy8b350f62009-11-15 23:12:43 +000027499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027500$as_echo "no" >&6; }
27501 fi
27502fi
cristy73bd4a52010-10-05 11:24:23 +000027503 if test "$have_fftw" = 'yes'; then
27504 FFTW_DELEGATE_TRUE=
27505 FFTW_DELEGATE_FALSE='#'
27506else
27507 FFTW_DELEGATE_TRUE='#'
27508 FFTW_DELEGATE_FALSE=
27509fi
27510
cristy3ed852e2009-09-05 21:47:34 +000027511
27512
27513
27514#
27515# Check for FlashPIX delegate library.
27516#
27517
27518# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000027519if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027520 withval=$with_fpx; with_fpx=$withval
27521else
27522 with_fpx='yes'
27523fi
27524
27525
27526if test "$with_fpx" != 'yes'; then
27527 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
27528fi
27529
27530have_fpx='no'
27531FPX_LIBS=''
27532if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027534$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000027536$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027538$as_echo "" >&6; }
27539 failed=0
27540 passed=0
27541 ac_ext=cpp
27542ac_cpp='$CXXCPP $CPPFLAGS'
27543ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27544ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27545ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27546
27547
cristy8b350f62009-11-15 23:12:43 +000027548ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027549if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027550 passed=`expr $passed + 1`
27551else
27552 failed=`expr $failed + 1`
27553fi
27554
27555
cristy8b350f62009-11-15 23:12:43 +000027556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000027557$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027558if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027559 $as_echo_n "(cached) " >&6
27560else
27561 ac_check_lib_save_LIBS=$LIBS
27562LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027564/* end confdefs.h. */
27565
27566/* Override any GCC internal prototype to avoid an error.
27567 Use char because int might match the return type of a GCC
27568 builtin and then its argument prototype would still apply. */
27569#ifdef __cplusplus
27570extern "C"
27571#endif
27572char FPX_OpenImageByFilename ();
27573int
27574main ()
27575{
27576return FPX_OpenImageByFilename ();
27577 ;
27578 return 0;
27579}
27580_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027581if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027582 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
27583else
cristy8b350f62009-11-15 23:12:43 +000027584 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000027585fi
cristy8b350f62009-11-15 23:12:43 +000027586rm -f core conftest.err conftest.$ac_objext \
27587 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027588LIBS=$ac_check_lib_save_LIBS
27589fi
cristy8b350f62009-11-15 23:12:43 +000027590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000027591$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000027592if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027593 passed=`expr $passed + 1`
27594else
27595 failed=`expr $failed + 1`
27596fi
27597
27598 ac_ext=c
27599ac_cpp='$CPP $CPPFLAGS'
27600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27602ac_compiler_gnu=$ac_cv_c_compiler_gnu
27603
cristy8b350f62009-11-15 23:12:43 +000027604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027605$as_echo_n "checking if FlashPIX package is complete... " >&6; }
27606 if test $passed -gt 0; then
27607 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027609$as_echo "no -- some components failed test" >&6; }
27610 have_fpx='no (failed tests)'
27611 else
27612 FPX_LIBS='-lfpx'
27613
cristy8b350f62009-11-15 23:12:43 +000027614$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027615
cristy8b350f62009-11-15 23:12:43 +000027616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027617$as_echo "yes" >&6; }
27618 have_fpx='yes'
27619 PERLMAINCC="$CXX"
27620 fi
27621 else
cristy8b350f62009-11-15 23:12:43 +000027622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027623$as_echo "no" >&6; }
27624 fi
27625fi
cristy73bd4a52010-10-05 11:24:23 +000027626 if test "$have_fpx" = 'yes'; then
27627 FPX_DELEGATE_TRUE=
27628 FPX_DELEGATE_FALSE='#'
27629else
27630 FPX_DELEGATE_TRUE='#'
27631 FPX_DELEGATE_FALSE=
27632fi
27633
cristy3ed852e2009-09-05 21:47:34 +000027634
27635
27636
27637#
27638# Check for fontconfig delegate library.
27639#
27640
27641# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000027642if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027643 withval=$with_fontconfig; with_fontconfig=$withval
27644else
27645 with_fontconfig=$have_x
27646fi
27647
27648
27649if test "$with_fontconfig" != 'yes'; then
27650 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
27651fi
27652
27653have_fontconfig='no'
27654FONTCONFIG_CFLAGS=""
27655FONTCONFIG_LIBS=""
27656FONTCONFIG_PKG=""
27657if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027659$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027660
27661pkg_failed=no
27662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
27663$as_echo_n "checking for FONTCONFIG... " >&6; }
27664
27665if test -n "$FONTCONFIG_CFLAGS"; then
27666 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
27667 elif test -n "$PKG_CONFIG"; then
27668 if test -n "$PKG_CONFIG" && \
27669 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27670 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27671 ac_status=$?
27672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27673 test $ac_status = 0; }; then
27674 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
27675else
27676 pkg_failed=yes
27677fi
27678 else
27679 pkg_failed=untried
27680fi
27681if test -n "$FONTCONFIG_LIBS"; then
27682 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
27683 elif test -n "$PKG_CONFIG"; then
27684 if test -n "$PKG_CONFIG" && \
27685 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27686 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27687 ac_status=$?
27688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27689 test $ac_status = 0; }; then
27690 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
27691else
27692 pkg_failed=yes
27693fi
27694 else
27695 pkg_failed=untried
27696fi
27697
27698
27699
27700if test $pkg_failed = yes; then
27701
27702if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27703 _pkg_short_errors_supported=yes
27704else
27705 _pkg_short_errors_supported=no
27706fi
27707 if test $_pkg_short_errors_supported = yes; then
27708 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
27709 else
27710 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
27711 fi
27712 # Put the nasty error message in config.log where it belongs
27713 echo "$FONTCONFIG_PKG_ERRORS" >&5
27714
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27716$as_echo "no" >&6; }
27717 have_fontconfig=no
27718elif test $pkg_failed = untried; then
27719 have_fontconfig=no
27720else
27721 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
27722 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
27723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27724$as_echo "yes" >&6; }
27725 have_fontconfig=yes
27726fi
cristy8b350f62009-11-15 23:12:43 +000027727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027728$as_echo "" >&6; }
27729fi
27730
27731if test "$have_fontconfig" = 'yes'; then
27732
cristy8b350f62009-11-15 23:12:43 +000027733$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027734
cristyd09bcf92010-03-25 03:04:45 +000027735 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000027736 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000027737 fi
cristy3ed852e2009-09-05 21:47:34 +000027738fi
27739
cristy73bd4a52010-10-05 11:24:23 +000027740 if test "$have_fontconfig" = 'yes'; then
27741 FONTCONFIG_DELEGATE_TRUE=
27742 FONTCONFIG_DELEGATE_FALSE='#'
27743else
27744 FONTCONFIG_DELEGATE_TRUE='#'
27745 FONTCONFIG_DELEGATE_FALSE=
27746fi
27747
cristy3ed852e2009-09-05 21:47:34 +000027748
27749
27750
27751
27752#
27753# Check for freetype delegate library.
27754#
27755
27756# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000027757if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027758 withval=$with_freetype; with_freetype=$withval
27759else
27760 with_freetype='yes'
27761fi
27762
27763
27764
27765if test "$with_freetype" != 'yes'; then
27766 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
27767fi
27768
27769have_freetype='no'
27770FREETYPE_LIBS=''
27771if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027773$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000027775$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027777$as_echo "" >&6; }
27778 failed=0
27779 passed=0
cristy66291112009-10-03 22:44:36 +000027780 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027781 PERSIST_CPPFLAGS="$CPPFLAGS"
27782 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
27783 :
27784 else
27785 freetype_config=''
27786 for ac_prog in freetype-config
27787do
27788 # Extract the first word of "$ac_prog", so it can be a program name with args.
27789set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027791$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027792if ${ac_cv_prog_freetype_config+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027793 $as_echo_n "(cached) " >&6
27794else
27795 if test -n "$freetype_config"; then
27796 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
27797else
27798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27799for as_dir in $PATH
27800do
27801 IFS=$as_save_IFS
27802 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027803 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27805 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027807 break 2
27808 fi
27809done
cristy8b350f62009-11-15 23:12:43 +000027810 done
cristy3ed852e2009-09-05 21:47:34 +000027811IFS=$as_save_IFS
27812
27813fi
27814fi
27815freetype_config=$ac_cv_prog_freetype_config
27816if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027818$as_echo "$freetype_config" >&6; }
27819else
cristy8b350f62009-11-15 23:12:43 +000027820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027821$as_echo "no" >&6; }
27822fi
27823
27824
27825 test -n "$freetype_config" && break
27826done
27827 if test -n "$freetype_config"; then
27828 freetype_cflags=`$freetype_config --cflags`
27829 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027830 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027831 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27832 fi
27833 fi
27834
27835 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027837$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027838if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027839 $as_echo_n "(cached) " >&6
27840else
27841 ac_check_lib_save_LIBS=$LIBS
27842LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027844/* end confdefs.h. */
27845
27846/* Override any GCC internal prototype to avoid an error.
27847 Use char because int might match the return type of a GCC
27848 builtin and then its argument prototype would still apply. */
27849#ifdef __cplusplus
27850extern "C"
27851#endif
27852char FT_Init_FreeType ();
27853int
27854main ()
27855{
27856return FT_Init_FreeType ();
27857 ;
27858 return 0;
27859}
27860_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027861if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027862 ac_cv_lib_freetype_FT_Init_FreeType=yes
27863else
cristy8b350f62009-11-15 23:12:43 +000027864 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027865fi
cristy8b350f62009-11-15 23:12:43 +000027866rm -f core conftest.err conftest.$ac_objext \
27867 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027868LIBS=$ac_check_lib_save_LIBS
27869fi
cristy8b350f62009-11-15 23:12:43 +000027870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027871$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristyda16f162011-02-19 23:52:17 +000027872if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027873 FREETYPE_LIBS='-lfreetype'
27874fi
27875
27876 if test "$FREETYPE_LIBS" != ''; then
27877 passed=`expr $passed + 1`
27878 else
27879 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027880 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027881 fi
27882 fi
27883
cristy8b350f62009-11-15 23:12:43 +000027884 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027885if test "x$ac_cv_header_ft2build_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027886 FT2BUILD_H='#include <ft2build.h>'
27887else
27888 ft2build=''
27889fi
27890
27891
cristy8b350f62009-11-15 23:12:43 +000027892 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27893"
cristyda16f162011-02-19 23:52:17 +000027894if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027895 have_freetype_h='yes'
27896else
27897 have_freetype_h='no'
27898fi
27899
27900
27901 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27902 passed=`expr $passed + 1`
27903 else
27904 failed=`expr $failed + 1`
27905 CPPFLAGS="$PERSIST_CPPFLAGS"
27906 fi
27907
cristy8b350f62009-11-15 23:12:43 +000027908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027909$as_echo_n "checking if FreeType package is complete... " >&6; }
27910 if test $passed -gt 0; then
27911 if test $failed -gt 0; then
27912 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027914$as_echo "no -- some components failed test" >&6; }
27915 have_freetype='no (failed tests)'
27916 else
27917 LIBS="$FREETYPE_LIBS $LIBS"
27918
cristy8b350f62009-11-15 23:12:43 +000027919$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027920
27921 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27922
cristy8b350f62009-11-15 23:12:43 +000027923$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027924
27925 fi
cristy8b350f62009-11-15 23:12:43 +000027926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027927$as_echo "yes" >&6; }
27928 have_freetype='yes'
27929 fi
27930 else
cristy8b350f62009-11-15 23:12:43 +000027931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027932$as_echo "no" >&6; }
27933 fi
27934fi
cristy73bd4a52010-10-05 11:24:23 +000027935 if test "$have_freetype" = 'yes'; then
27936 FREETYPE_DELEGATE_TRUE=
27937 FREETYPE_DELEGATE_FALSE='#'
27938else
27939 FREETYPE_DELEGATE_TRUE='#'
27940 FREETYPE_DELEGATE_FALSE=
27941fi
27942
cristy3ed852e2009-09-05 21:47:34 +000027943
27944
27945
27946
27947#
27948# Check for Ghostscript library or framework.
27949#
27950# Test for iapi.h & test for gsapi_new_instance in -lgs
27951# or -framework Ghostscript
27952
27953
27954# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027955if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027956 withval=$with_gslib; with_gslib=$withval
27957else
27958 with_gslib='no'
27959fi
27960
27961
cristyb7931f12009-09-25 10:22:21 +000027962gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027963if test "$with_gslib" != 'yes'; then
27964 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27965fi
27966
27967have_gslib='no'
27968GS_LIBS=''
27969if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027971$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027973$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027975$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027976 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027977 failed=0
27978 passed=0
cristy8b350f62009-11-15 23:12:43 +000027979 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027980if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027981 passed=`expr $passed + 1`
27982else
27983 failed=`expr $failed + 1`
27984fi
27985
27986
cristy8b350f62009-11-15 23:12:43 +000027987 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027988if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027989 passed=`expr $passed + 1`
27990else
27991 failed=`expr $failed + 1`
27992fi
27993
27994
cristy73bd4a52010-10-05 11:24:23 +000027995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
27996$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027997if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000027998 $as_echo_n "(cached) " >&6
27999else
28000 ac_check_framework_save_LIBS=$LIBS
28001LIBS="-framework Ghostscript $LIBS"
28002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28003/* end confdefs.h. */
28004
28005/* Override any GCC internal prototype to avoid an error.
28006 Use char because int might match the return type of a GCC
28007 builtin and then its argument prototype would still apply. */
28008#ifdef __cplusplus
28009extern "C"
28010#endif
28011char gsapi_new_instance ();
28012int
28013main ()
28014{
28015return gsapi_new_instance ();
28016 ;
28017 return 0;
28018}
28019_ACEOF
28020if ac_fn_c_try_link "$LINENO"; then :
28021 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28022else
28023 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28024fi
28025rm -f core conftest.err conftest.$ac_objext \
28026 conftest$ac_exeext conftest.$ac_ext
28027LIBS=$ac_check_framework_save_LIBS
28028fi
28029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28030$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28031if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28032 framework=`expr $framework + 1`
28033else
28034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028035$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028036if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028037 $as_echo_n "(cached) " >&6
28038else
28039 ac_check_lib_save_LIBS=$LIBS
28040LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028042/* end confdefs.h. */
28043
28044/* Override any GCC internal prototype to avoid an error.
28045 Use char because int might match the return type of a GCC
28046 builtin and then its argument prototype would still apply. */
28047#ifdef __cplusplus
28048extern "C"
28049#endif
28050char gsapi_new_instance ();
28051int
28052main ()
28053{
28054return gsapi_new_instance ();
28055 ;
28056 return 0;
28057}
28058_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028059if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028060 ac_cv_lib_gs_gsapi_new_instance=yes
28061else
cristy8b350f62009-11-15 23:12:43 +000028062 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000028063fi
cristy8b350f62009-11-15 23:12:43 +000028064rm -f core conftest.err conftest.$ac_objext \
28065 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028066LIBS=$ac_check_lib_save_LIBS
28067fi
cristy8b350f62009-11-15 23:12:43 +000028068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000028069$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000028070if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028071 passed=`expr $passed + 1`
28072else
28073 failed=`expr $failed + 1`
28074fi
cristy73bd4a52010-10-05 11:24:23 +000028075
28076fi
cristy8b350f62009-11-15 23:12:43 +000028077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028078$as_echo_n "checking if Ghostscript package is complete... " >&6; }
28079 if test $passed -gt 0; then
28080 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028082$as_echo "no -- some components failed test" >&6; }
28083 have_gslib='no (failed tests)'
28084 else
28085 if test $framework -gt 0; then
28086 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000028087 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000028088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000028089$as_echo "yes, using framework." >&6; }
28090 else
cristy8b350f62009-11-15 23:12:43 +000028091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000028092$as_echo "yes, using library." >&6; }
28093 GS_LIBS='-lgs'
28094 fi
28095 LIBS="$GS_LIBS $LIBS"
28096
cristy8b350f62009-11-15 23:12:43 +000028097$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028098
28099 have_gslib='yes'
28100 fi
28101 else
cristy8b350f62009-11-15 23:12:43 +000028102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028103$as_echo "no" >&6; }
28104 fi
28105fi
cristy73bd4a52010-10-05 11:24:23 +000028106 if test "$have_gslib" = 'yes'; then
28107 GS_DELEGATE_TRUE=
28108 GS_DELEGATE_FALSE='#'
28109else
28110 GS_DELEGATE_TRUE='#'
28111 GS_DELEGATE_FALSE=
28112fi
28113
cristy3ed852e2009-09-05 21:47:34 +000028114
28115
28116# Set default font search path
28117
28118# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000028119if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028120 withval=$with_fontpath; with_fontpath=$withval
28121else
28122 with_fontpath=''
28123fi
28124
28125
28126if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
28127 with_fontpath=''
28128else
28129
28130cat >>confdefs.h <<_ACEOF
28131#define MAGICK_FONT_PATH "$with_fontpath"
28132_ACEOF
28133
28134fi
28135if test "$with_fontpath=" != ''; then
28136 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
28137fi
28138
28139# Set Ghostscript font directory
28140
28141# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028142if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028143 withval=$with_gs_font_dir; with_gs_font_dir=$withval
28144else
28145 with_gs_font_dir='default'
28146fi
28147
28148
28149if test "$with_gs_font_dir" != 'default'; then
28150 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
28151fi
28152
28153
28154#
28155# Check for GVC delegate library.
28156#
28157
28158# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000028159if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028160 withval=$with_gvc; with_gvc=$withval
28161else
28162 with_gvc='yes'
28163fi
28164
28165
28166if test "$with_gvc" != 'yes'; then
28167 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
28168fi
28169
28170GVC_PKG=""
28171if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028173$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028174
28175pkg_failed=no
28176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
28177$as_echo_n "checking for GVC... " >&6; }
28178
28179if test -n "$GVC_CFLAGS"; then
28180 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
28181 elif test -n "$PKG_CONFIG"; then
28182 if test -n "$PKG_CONFIG" && \
28183 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28184 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28185 ac_status=$?
28186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28187 test $ac_status = 0; }; then
28188 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
28189else
28190 pkg_failed=yes
28191fi
28192 else
28193 pkg_failed=untried
28194fi
28195if test -n "$GVC_LIBS"; then
28196 pkg_cv_GVC_LIBS="$GVC_LIBS"
28197 elif test -n "$PKG_CONFIG"; then
28198 if test -n "$PKG_CONFIG" && \
28199 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28200 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28201 ac_status=$?
28202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28203 test $ac_status = 0; }; then
28204 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
28205else
28206 pkg_failed=yes
28207fi
28208 else
28209 pkg_failed=untried
28210fi
28211
28212
28213
28214if test $pkg_failed = yes; then
28215
28216if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28217 _pkg_short_errors_supported=yes
28218else
28219 _pkg_short_errors_supported=no
28220fi
28221 if test $_pkg_short_errors_supported = yes; then
28222 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
28223 else
28224 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
28225 fi
28226 # Put the nasty error message in config.log where it belongs
28227 echo "$GVC_PKG_ERRORS" >&5
28228
28229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28230$as_echo "no" >&6; }
28231 have_gvc=no
28232elif test $pkg_failed = untried; then
28233 have_gvc=no
28234else
28235 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
28236 GVC_LIBS=$pkg_cv_GVC_LIBS
28237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28238$as_echo "yes" >&6; }
28239 have_gvc=yes
28240fi
cristy8b350f62009-11-15 23:12:43 +000028241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028242$as_echo "" >&6; }
28243fi
28244
28245if test "$have_gvc" = 'yes'; then
28246
cristy8b350f62009-11-15 23:12:43 +000028247$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028248
28249 if test "$with_modules" = 'no'; then
28250 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
28251 fi
28252fi
28253
cristy73bd4a52010-10-05 11:24:23 +000028254 if test "$have_gvc" = 'yes'; then
28255 GVC_DELEGATE_TRUE=
28256 GVC_DELEGATE_FALSE='#'
28257else
28258 GVC_DELEGATE_TRUE='#'
28259 GVC_DELEGATE_FALSE=
28260fi
28261
cristy3ed852e2009-09-05 21:47:34 +000028262
28263
28264
28265
28266#
28267# Check for JBIG delegate library.
28268#
28269
28270
28271# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000028272if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028273 withval=$with_jbig; with_jbig=$withval
28274else
28275 with_jbig='yes'
28276fi
28277
28278
28279have_jbig='no'
28280JBIG_LIBS=''
28281if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028283$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028285$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028287$as_echo "" >&6; }
28288 failed=0
28289 passed=0
cristy8b350f62009-11-15 23:12:43 +000028290 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028291if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028292 passed=`expr $passed + 1`
28293else
28294 failed=`expr $failed + 1`
28295fi
28296
28297
cristy8b350f62009-11-15 23:12:43 +000028298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000028299$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028300if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028301 $as_echo_n "(cached) " >&6
28302else
28303 ac_check_lib_save_LIBS=$LIBS
28304LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028306/* end confdefs.h. */
28307
28308/* Override any GCC internal prototype to avoid an error.
28309 Use char because int might match the return type of a GCC
28310 builtin and then its argument prototype would still apply. */
28311#ifdef __cplusplus
28312extern "C"
28313#endif
28314char jbg_dec_init ();
28315int
28316main ()
28317{
28318return jbg_dec_init ();
28319 ;
28320 return 0;
28321}
28322_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028323if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028324 ac_cv_lib_jbig_jbg_dec_init=yes
28325else
cristy8b350f62009-11-15 23:12:43 +000028326 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000028327fi
cristy8b350f62009-11-15 23:12:43 +000028328rm -f core conftest.err conftest.$ac_objext \
28329 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028330LIBS=$ac_check_lib_save_LIBS
28331fi
cristy8b350f62009-11-15 23:12:43 +000028332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000028333$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000028334if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028335 passed=`expr $passed + 1`
28336else
28337 failed=`expr $failed + 1`
28338fi
28339
cristy8b350f62009-11-15 23:12:43 +000028340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028341$as_echo_n "checking if JBIG package is complete... " >&6; }
28342 if test $passed -gt 0; then
28343 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028345$as_echo "no -- some components failed test" >&6; }
28346 have_jbig='no (failed tests)'
28347 else
28348 JBIG_LIBS='-ljbig'
28349 LIBS="$JBIG_LIBS $LIBS"
28350
cristy8b350f62009-11-15 23:12:43 +000028351$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028352
cristy8b350f62009-11-15 23:12:43 +000028353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028354$as_echo "yes" >&6; }
28355 have_jbig='yes'
28356 fi
28357 else
cristy8b350f62009-11-15 23:12:43 +000028358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028359$as_echo "no" >&6; }
28360 fi
28361fi
cristy73bd4a52010-10-05 11:24:23 +000028362 if test "$have_jbig" = 'yes'; then
28363 JBIG_DELEGATE_TRUE=
28364 JBIG_DELEGATE_FALSE='#'
28365else
28366 JBIG_DELEGATE_TRUE='#'
28367 JBIG_DELEGATE_FALSE=
28368fi
28369
cristy3ed852e2009-09-05 21:47:34 +000028370
28371
28372
28373#
28374# Check for JPEG delegate library.
28375#
28376
28377# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000028378if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028379 withval=$with_jpeg; with_jpeg=$withval
28380else
28381 with_jpeg='yes'
28382fi
28383
28384
28385if test "$with_jpeg" != 'yes'; then
28386 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
28387fi
28388
28389have_jpeg='no'
28390JPEG_LIBS=''
28391if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028393$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028395$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028397$as_echo "" >&6; }
28398 failed=0
28399 passed=0
cristy8b350f62009-11-15 23:12:43 +000028400 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028401if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028402 passed=`expr $passed + 1`
28403else
28404 failed=`expr $failed + 1`
28405fi
28406
28407
cristy8b350f62009-11-15 23:12:43 +000028408 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028409if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028410 passed=`expr $passed + 1`
28411else
28412 failed=`expr $failed + 1`
28413fi
28414
28415
cristy8b350f62009-11-15 23:12:43 +000028416 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028417if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028418 passed=`expr $passed + 1`
28419else
28420 failed=`expr $failed + 1`
28421fi
28422
28423
cristy8b350f62009-11-15 23:12:43 +000028424 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028425if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028426 passed=`expr $passed + 1`
28427else
28428 failed=`expr $failed + 1`
28429fi
28430
28431
cristy8b350f62009-11-15 23:12:43 +000028432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000028433$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028434if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028435 $as_echo_n "(cached) " >&6
28436else
28437 ac_check_lib_save_LIBS=$LIBS
28438LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028440/* end confdefs.h. */
28441
28442/* Override any GCC internal prototype to avoid an error.
28443 Use char because int might match the return type of a GCC
28444 builtin and then its argument prototype would still apply. */
28445#ifdef __cplusplus
28446extern "C"
28447#endif
28448char jpeg_read_header ();
28449int
28450main ()
28451{
28452return jpeg_read_header ();
28453 ;
28454 return 0;
28455}
28456_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028457if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028458 ac_cv_lib_jpeg_jpeg_read_header=yes
28459else
cristy8b350f62009-11-15 23:12:43 +000028460 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000028461fi
cristy8b350f62009-11-15 23:12:43 +000028462rm -f core conftest.err conftest.$ac_objext \
28463 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028464LIBS=$ac_check_lib_save_LIBS
28465fi
cristy8b350f62009-11-15 23:12:43 +000028466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000028467$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000028468if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028469 passed=`expr $passed + 1`
28470else
28471 failed=`expr $failed + 1`
28472fi
28473
28474
28475# Test for compatible JPEG library
28476if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000028478$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028479if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028480 $as_echo_n "(cached) " >&6
28481else
cristy8b350f62009-11-15 23:12:43 +000028482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028483/* end confdefs.h. */
28484#include <stdio.h>
28485#include <stdlib.h>
28486#include <jpeglib.h>
28487
28488int
28489main ()
28490{
28491
28492#if JPEG_LIB_VERSION < 62
28493#error IJG JPEG library must be version 6b or newer!
28494#endif
28495return 0;
28496
28497 ;
28498 return 0;
28499}
28500_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028501if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028502 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
28503else
cristy8b350f62009-11-15 23:12:43 +000028504 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028505fi
cristy3ed852e2009-09-05 21:47:34 +000028506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28507fi
cristy8b350f62009-11-15 23:12:43 +000028508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000028509$as_echo "$ac_cv_jpeg_version_ok" >&6; }
28510fi
cristy8b350f62009-11-15 23:12:43 +000028511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028512$as_echo_n "checking if JPEG package is complete... " >&6; }
28513 if test $passed -gt 0; then
28514 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028516$as_echo "no -- some components failed test" >&6; }
28517 have_jpeg='no (failed tests)'
28518 else
28519 JPEG_LIBS='-ljpeg'
28520 LIBS="$JPEG_LIBS $LIBS"
28521
cristy8b350f62009-11-15 23:12:43 +000028522$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028523
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_jpeg='yes'
28527 fi
28528 else
cristy8b350f62009-11-15 23:12:43 +000028529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028530$as_echo "no" >&6; }
28531 fi
28532fi
cristy73bd4a52010-10-05 11:24:23 +000028533 if test "$have_jpeg" = 'yes'; then
28534 JPEG_DELEGATE_TRUE=
28535 JPEG_DELEGATE_FALSE='#'
28536else
28537 JPEG_DELEGATE_TRUE='#'
28538 JPEG_DELEGATE_FALSE=
28539fi
28540
cristy3ed852e2009-09-05 21:47:34 +000028541
28542
28543
28544#
28545# Check for JPEG Version 2 delegate library.
28546#
28547
28548# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000028549if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028550 withval=$with_jp2; with_jp2=$withval
28551else
28552 with_jp2='yes'
28553fi
28554
28555
28556if test "$with_jp2" != 'yes'; then
28557 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
28558fi
28559
28560have_jp2='no'
28561JP2_LIBS=''
28562if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028564$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000028566$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028568$as_echo "" >&6; }
28569 failed=0
28570 passed=0
cristy8b350f62009-11-15 23:12:43 +000028571 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028572if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028573 passed=`expr $passed + 1`
28574else
28575 failed=`expr $failed + 1`
28576fi
28577
28578
cristy8b350f62009-11-15 23:12:43 +000028579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000028580$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028581if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028582 $as_echo_n "(cached) " >&6
28583else
28584 ac_check_lib_save_LIBS=$LIBS
28585LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028587/* end confdefs.h. */
28588
28589/* Override any GCC internal prototype to avoid an error.
28590 Use char because int might match the return type of a GCC
28591 builtin and then its argument prototype would still apply. */
28592#ifdef __cplusplus
28593extern "C"
28594#endif
28595char jas_stream_fopen ();
28596int
28597main ()
28598{
28599return jas_stream_fopen ();
28600 ;
28601 return 0;
28602}
28603_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028604if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028605 ac_cv_lib_jasper_jas_stream_fopen=yes
28606else
cristy8b350f62009-11-15 23:12:43 +000028607 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000028608fi
cristy8b350f62009-11-15 23:12:43 +000028609rm -f core conftest.err conftest.$ac_objext \
28610 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028611LIBS=$ac_check_lib_save_LIBS
28612fi
cristy8b350f62009-11-15 23:12:43 +000028613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028614$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028615if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028616 passed=`expr $passed + 1`
28617else
28618 failed=`expr $failed + 1`
28619fi
28620
cristy8b350f62009-11-15 23:12:43 +000028621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028622$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
28623 if test $passed -gt 0; then
28624 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028626$as_echo "no -- some components failed test" >&6; }
28627 have_jp2='no (failed tests)'
28628 else
28629 JP2_LIBS='-ljasper'
28630 LIBS="$JP2_LIBS $LIBS"
28631
cristy8b350f62009-11-15 23:12:43 +000028632$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028633
cristy8b350f62009-11-15 23:12:43 +000028634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028635$as_echo "yes" >&6; }
28636 have_jp2='yes'
28637 fi
28638 else
cristy8b350f62009-11-15 23:12:43 +000028639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028640$as_echo "no" >&6; }
28641 fi
28642fi
cristy73bd4a52010-10-05 11:24:23 +000028643 if test "$have_jp2" = 'yes'; then
28644 JP2_DELEGATE_TRUE=
28645 JP2_DELEGATE_FALSE='#'
28646else
28647 JP2_DELEGATE_TRUE='#'
28648 JP2_DELEGATE_FALSE=
28649fi
28650
cristy3ed852e2009-09-05 21:47:34 +000028651
28652
28653
28654#
28655# Check for LCMS delegate library.
28656#
cristy71203402010-06-18 13:12:03 +000028657# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000028658
28659# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000028660if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028661 withval=$with_lcms; with_lcms=$withval
28662else
28663 with_lcms='yes'
28664fi
28665
cristy71203402010-06-18 13:12:03 +000028666if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000028667 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
28668fi
28669
cristy71203402010-06-18 13:12:03 +000028670# Disable LCMS2.
28671
28672# Check whether --with-lcms2 was given.
28673if test "${with_lcms2+set}" = set; then :
28674 withval=$with_lcms2; with_lcms2=$withval
28675else
28676 with_lcms2='yes'
28677fi
28678
28679if test "$with_lcms2" != 'yes' ; then
28680 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
28681fi
28682
28683have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000028684LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000028685if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028687$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
28689$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028691$as_echo "" >&6; }
28692 failed=0
28693 passed=0
28694 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028695
28696 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000028697 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028698if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000028699 have_lcms_header='yes'
28700fi
28701
28702
28703 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000028704
28705$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
28706
cristy71203402010-06-18 13:12:03 +000028707 passed=`expr $passed + 1`
28708 fi
28709
28710 # Check for <lcms2/lcms2.h)
28711 if test "$have_lcms_header" != 'yes'; then
28712 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028713if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000028714 have_lcms_header='yes'
28715fi
28716
28717
cristy71203402010-06-18 13:12:03 +000028718 if test "$have_lcms_header" = 'yes'; then
28719 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000028720
cristy71203402010-06-18 13:12:03 +000028721$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000028722
cristy71203402010-06-18 13:12:03 +000028723 fi
cristyd09bcf92010-03-25 03:04:45 +000028724 fi
cristy71203402010-06-18 13:12:03 +000028725
28726 # Failed to find lcms header?
28727 if test "$have_lcms_header" != 'yes'; then
28728 failed=`expr $failed + 1`
28729 fi
28730
28731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
28732$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028733if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000028734 $as_echo_n "(cached) " >&6
28735else
28736 ac_check_lib_save_LIBS=$LIBS
28737LIBS="-llcms2 $LIBS"
28738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28739/* end confdefs.h. */
28740
28741/* Override any GCC internal prototype to avoid an error.
28742 Use char because int might match the return type of a GCC
28743 builtin and then its argument prototype would still apply. */
28744#ifdef __cplusplus
28745extern "C"
28746#endif
cristy71203402010-06-18 13:12:03 +000028747char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028748int
28749main ()
28750{
cristy71203402010-06-18 13:12:03 +000028751return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028752 ;
28753 return 0;
28754}
28755_ACEOF
28756if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028757 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000028758else
cristy71203402010-06-18 13:12:03 +000028759 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000028760fi
28761rm -f core conftest.err conftest.$ac_objext \
28762 conftest$ac_exeext conftest.$ac_ext
28763LIBS=$ac_check_lib_save_LIBS
28764fi
cristy71203402010-06-18 13:12:03 +000028765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
28766$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000028767if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000028768 passed=`expr $passed + 1`
28769else
28770 failed=`expr $failed + 1`
28771fi
28772
cristy71203402010-06-18 13:12:03 +000028773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
28774$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028775 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028776 if test $failed -gt 0; then
28777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000028778$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028779 have_lcms2='no (failed tests)'
28780 else
28781 LCMS_LIBS='-llcms2'
28782 LIBS="$LCMS_LIBS $LIBS"
28783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000028784$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028785 have_lcms2='yes'
28786 fi
cristyd09bcf92010-03-25 03:04:45 +000028787 else
cristy71203402010-06-18 13:12:03 +000028788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000028789$as_echo "no" >&6; }
28790 fi
28791fi
28792
cristy71203402010-06-18 13:12:03 +000028793#
28794# Check for LCMS v1 (1.11 or later)
28795#
28796if test $have_lcms2 = 'yes'; then
28797 with_lcms='no'
28798fi
28799
28800have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000028801if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000028802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28803$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
28805$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28807$as_echo "" >&6; }
28808 failed=0
28809 passed=0
28810 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028811
28812 # Check for <lcms.h>
28813 if test "$have_lcms_header" != 'yes'; then
28814 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028815if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028816 have_lcms_header='yes'
28817fi
28818
28819
cristy71203402010-06-18 13:12:03 +000028820 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028821 passed=`expr $passed + 1`
28822
cristy8b350f62009-11-15 23:12:43 +000028823$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028824
cristy71203402010-06-18 13:12:03 +000028825 fi
28826 fi
28827
28828 # Check for <lcms/lcms.h>
28829 if test "$have_lcms_header" != 'yes'; then
28830 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028831if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028832 have_lcms_header='yes'
28833fi
28834
28835
cristy71203402010-06-18 13:12:03 +000028836 if test "$have_lcms_header" = 'yes'; then
28837 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028838
cristy8b350f62009-11-15 23:12:43 +000028839$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028840
cristy71203402010-06-18 13:12:03 +000028841 fi
cristy3ed852e2009-09-05 21:47:34 +000028842 fi
cristy71203402010-06-18 13:12:03 +000028843
28844 # Failed to find lcms header?
28845 if test "$have_lcms_header" != 'yes'; then
28846 failed=`expr $failed + 1`
28847 fi
28848
28849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28850$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028851if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028852 $as_echo_n "(cached) " >&6
28853else
28854 ac_check_lib_save_LIBS=$LIBS
28855LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028857/* end confdefs.h. */
28858
28859/* Override any GCC internal prototype to avoid an error.
28860 Use char because int might match the return type of a GCC
28861 builtin and then its argument prototype would still apply. */
28862#ifdef __cplusplus
28863extern "C"
28864#endif
cristy71203402010-06-18 13:12:03 +000028865char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028866int
28867main ()
28868{
cristy71203402010-06-18 13:12:03 +000028869return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028870 ;
28871 return 0;
28872}
28873_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028874if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028875 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000028876else
cristy71203402010-06-18 13:12:03 +000028877 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000028878fi
cristy8b350f62009-11-15 23:12:43 +000028879rm -f core conftest.err conftest.$ac_objext \
28880 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028881LIBS=$ac_check_lib_save_LIBS
28882fi
cristy71203402010-06-18 13:12:03 +000028883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28884$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000028885if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028886 passed=`expr $passed + 1`
28887else
28888 failed=`expr $failed + 1`
28889fi
28890
cristy8b350f62009-11-15 23:12:43 +000028891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028892$as_echo_n "checking if LCMS package is complete... " >&6; }
28893 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028894 if test $failed -gt 0; then
28895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028896$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028897 have_lcms='no (failed tests)'
28898 else
28899 LCMS_LIBS='-llcms'
28900 LIBS="$LCMS_LIBS $LIBS"
28901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028902$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028903 have_lcms='yes'
28904 fi
cristy3ed852e2009-09-05 21:47:34 +000028905 else
cristy71203402010-06-18 13:12:03 +000028906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028907$as_echo "no" >&6; }
28908 fi
28909fi
cristy71203402010-06-18 13:12:03 +000028910
cristy73bd4a52010-10-05 11:24:23 +000028911 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28912 LCMS_DELEGATE_TRUE=
28913 LCMS_DELEGATE_FALSE='#'
28914else
28915 LCMS_DELEGATE_TRUE='#'
28916 LCMS_DELEGATE_FALSE=
28917fi
28918
cristy71203402010-06-18 13:12:03 +000028919if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28920
28921$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28922
28923fi
28924
cristy3ed852e2009-09-05 21:47:34 +000028925
28926
28927
28928#
28929# Check for the LQR (Liquid Rescale) delegate library.
28930#
28931
28932# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028933if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028934 withval=$with_lqr; with_lqr=$withval
28935else
28936 with_lqr='yes'
28937fi
28938
28939
28940if test "$with_lqr" != 'yes'; then
28941 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28942fi
28943
28944have_lqr='no'
28945LQR_CFLAGS=""
28946LQR_LIBS=""
28947LQR_PKG=""
28948if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028950$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028951
28952pkg_failed=no
28953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
28954$as_echo_n "checking for LQR... " >&6; }
28955
28956if test -n "$LQR_CFLAGS"; then
28957 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28958 elif test -n "$PKG_CONFIG"; then
28959 if test -n "$PKG_CONFIG" && \
28960 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28961 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28962 ac_status=$?
28963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28964 test $ac_status = 0; }; then
28965 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28966else
28967 pkg_failed=yes
28968fi
28969 else
28970 pkg_failed=untried
28971fi
28972if test -n "$LQR_LIBS"; then
28973 pkg_cv_LQR_LIBS="$LQR_LIBS"
28974 elif test -n "$PKG_CONFIG"; then
28975 if test -n "$PKG_CONFIG" && \
28976 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28977 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28978 ac_status=$?
28979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28980 test $ac_status = 0; }; then
28981 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28982else
28983 pkg_failed=yes
28984fi
28985 else
28986 pkg_failed=untried
28987fi
28988
28989
28990
28991if test $pkg_failed = yes; then
28992
28993if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28994 _pkg_short_errors_supported=yes
28995else
28996 _pkg_short_errors_supported=no
28997fi
28998 if test $_pkg_short_errors_supported = yes; then
28999 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29000 else
29001 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29002 fi
29003 # Put the nasty error message in config.log where it belongs
29004 echo "$LQR_PKG_ERRORS" >&5
29005
29006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29007$as_echo "no" >&6; }
29008 have_lqr=no
29009elif test $pkg_failed = untried; then
29010 have_lqr=no
29011else
29012 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29013 LQR_LIBS=$pkg_cv_LQR_LIBS
29014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29015$as_echo "yes" >&6; }
29016 have_lqr=yes
29017fi
cristy8b350f62009-11-15 23:12:43 +000029018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029019$as_echo "" >&6; }
29020fi
29021
29022if test "$have_lqr" = 'yes'; then
29023
cristy8b350f62009-11-15 23:12:43 +000029024$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029025
29026 CFLAGS="$LQR_CFLAGS $CFLAGS"
29027fi
29028
cristy73bd4a52010-10-05 11:24:23 +000029029 if test "$have_lqr" = 'yes'; then
29030 LQR_DELEGATE_TRUE=
29031 LQR_DELEGATE_FALSE='#'
29032else
29033 LQR_DELEGATE_TRUE='#'
29034 LQR_DELEGATE_FALSE=
29035fi
29036
cristy3ed852e2009-09-05 21:47:34 +000029037
29038
29039
29040
cristyfbb0ef02010-12-19 02:32:11 +000029041# Disable LZMA (lzma library)
29042
29043# Check whether --with-lzma was given.
29044if test "${with_lzma+set}" = set; then :
29045 withval=$with_lzma; with_lzma=$withval
29046else
29047 with_lzma='yes'
29048fi
29049
29050if test "$with_lzma" != 'yes' ; then
29051 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29052fi
29053
29054#
29055# Check for LZMA
29056#
29057have_lzma='no'
29058LZMA_LIBS=''
29059if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
29060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29061$as_echo "-------------------------------------------------------------" >&6; }
29062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
29063$as_echo_n "checking for LZMA... " >&6; }
29064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29065$as_echo "" >&6; }
29066 failed=0
29067 passed=0
29068 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029069if test "x$ac_cv_header_lzma_h" = xyes; then :
cristyfbb0ef02010-12-19 02:32:11 +000029070 passed=`expr $passed + 1`
29071else
29072 failed=`expr $failed + 1`
29073fi
29074
29075
29076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
29077$as_echo_n "checking for lzma_code in -llzma... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029078if ${ac_cv_lib_lzma_lzma_code+:} false; then :
cristyfbb0ef02010-12-19 02:32:11 +000029079 $as_echo_n "(cached) " >&6
29080else
29081 ac_check_lib_save_LIBS=$LIBS
29082LIBS="-llzma $LIBS"
29083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29084/* end confdefs.h. */
29085
29086/* Override any GCC internal prototype to avoid an error.
29087 Use char because int might match the return type of a GCC
29088 builtin and then its argument prototype would still apply. */
29089#ifdef __cplusplus
29090extern "C"
29091#endif
29092char lzma_code ();
29093int
29094main ()
29095{
29096return lzma_code ();
29097 ;
29098 return 0;
29099}
29100_ACEOF
29101if ac_fn_c_try_link "$LINENO"; then :
29102 ac_cv_lib_lzma_lzma_code=yes
29103else
29104 ac_cv_lib_lzma_lzma_code=no
29105fi
29106rm -f core conftest.err conftest.$ac_objext \
29107 conftest$ac_exeext conftest.$ac_ext
29108LIBS=$ac_check_lib_save_LIBS
29109fi
29110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
29111$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
cristyda16f162011-02-19 23:52:17 +000029112if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
cristyfbb0ef02010-12-19 02:32:11 +000029113 passed=`expr $passed + 1`
29114else
29115 failed=`expr $failed + 1`
29116fi
29117
29118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
29119$as_echo_n "checking if LZMA package is complete... " >&6; }
29120 if test $passed -gt 0; then
29121 if test $failed -gt 0; then
29122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29123$as_echo "no -- some components failed test" >&6; }
29124 have_lzma='no (failed tests)'
29125 else
29126 LZMA_LIBS='-llzma'
29127 LIBS="$LZMA_LIBS $LIBS"
29128
29129$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
29130
29131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29132$as_echo "yes" >&6; }
29133 have_lzma='yes'
29134 fi
29135 else
29136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29137$as_echo "no" >&6; }
29138 fi
29139fi
29140 if test "$have_lzma" = 'yes'; then
29141 LZMA_DELEGATE_TRUE=
29142 LZMA_DELEGATE_FALSE='#'
29143else
29144 LZMA_DELEGATE_TRUE='#'
29145 LZMA_DELEGATE_FALSE=
29146fi
29147
29148
29149
29150
cristy3ed852e2009-09-05 21:47:34 +000029151#
29152# Check for the OpenEXR delegate library.
29153#
29154
29155# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000029156if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029157 withval=$with_openexr; with_openexr=$withval
29158else
29159 with_openexr='yes'
29160fi
29161
29162
29163if test "$with_openexr" != 'yes'; then
29164 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
29165fi
29166
29167have_openexr='no'
29168OPENEXR_CFLAGS=""
29169OPENEXR_LIBS=""
29170OPENEXR_PKG=""
29171if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029173$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029174
29175pkg_failed=no
29176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
29177$as_echo_n "checking for OPENEXR... " >&6; }
29178
29179if test -n "$OPENEXR_CFLAGS"; then
29180 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
29181 elif test -n "$PKG_CONFIG"; then
29182 if test -n "$PKG_CONFIG" && \
29183 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29184 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29185 ac_status=$?
29186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29187 test $ac_status = 0; }; then
29188 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
29189else
29190 pkg_failed=yes
29191fi
29192 else
29193 pkg_failed=untried
29194fi
29195if test -n "$OPENEXR_LIBS"; then
29196 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
29197 elif test -n "$PKG_CONFIG"; then
29198 if test -n "$PKG_CONFIG" && \
29199 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29200 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29201 ac_status=$?
29202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29203 test $ac_status = 0; }; then
29204 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
29205else
29206 pkg_failed=yes
29207fi
29208 else
29209 pkg_failed=untried
29210fi
29211
29212
29213
29214if test $pkg_failed = yes; then
29215
29216if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29217 _pkg_short_errors_supported=yes
29218else
29219 _pkg_short_errors_supported=no
29220fi
29221 if test $_pkg_short_errors_supported = yes; then
29222 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
29223 else
29224 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
29225 fi
29226 # Put the nasty error message in config.log where it belongs
29227 echo "$OPENEXR_PKG_ERRORS" >&5
29228
29229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29230$as_echo "no" >&6; }
29231 have_openexr=no
29232elif test $pkg_failed = untried; then
29233 have_openexr=no
29234else
29235 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
29236 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
29237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29238$as_echo "yes" >&6; }
29239 have_openexr=yes
29240fi
cristy8b350f62009-11-15 23:12:43 +000029241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029242$as_echo "" >&6; }
29243fi
29244
29245if test "$have_openexr" = 'yes'; then
29246
cristy8b350f62009-11-15 23:12:43 +000029247$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029248
29249 if test "$with_modules" = 'no'; then
29250 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
29251 fi
29252fi
29253
cristy73bd4a52010-10-05 11:24:23 +000029254 if test "$have_openexr" = 'yes'; then
29255 OPENEXR_DELEGATE_TRUE=
29256 OPENEXR_DELEGATE_FALSE='#'
29257else
29258 OPENEXR_DELEGATE_TRUE='#'
29259 OPENEXR_DELEGATE_FALSE=
29260fi
29261
cristy3ed852e2009-09-05 21:47:34 +000029262
29263
29264
29265
29266#
29267# Check for PNG delegate library.
29268#
29269
29270# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000029271if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029272 withval=$with_png; with_png=$withval
29273else
29274 with_png='yes'
29275fi
29276
29277
29278if test "$with_png" != 'yes'; then
29279 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
29280fi
29281
29282have_png='no'
29283PNG_LIBS=''
29284if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029286$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029288$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029290$as_echo "" >&6; }
29291 failed=0
29292 passed=0
cristy8b350f62009-11-15 23:12:43 +000029293 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029294if test "x$ac_cv_header_png_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029295 passed=`expr $passed + 1`
29296else
29297 failed=`expr $failed + 1`
29298fi
29299
29300
cristy8b350f62009-11-15 23:12:43 +000029301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000029302$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029303if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029304 $as_echo_n "(cached) " >&6
29305else
29306 ac_check_lib_save_LIBS=$LIBS
29307LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029309/* end confdefs.h. */
29310
29311/* Override any GCC internal prototype to avoid an error.
29312 Use char because int might match the return type of a GCC
29313 builtin and then its argument prototype would still apply. */
29314#ifdef __cplusplus
29315extern "C"
29316#endif
29317char png_get_io_ptr ();
29318int
29319main ()
29320{
29321return png_get_io_ptr ();
29322 ;
29323 return 0;
29324}
29325_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029326if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029327 ac_cv_lib_png_png_get_io_ptr=yes
29328else
cristy8b350f62009-11-15 23:12:43 +000029329 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000029330fi
cristy8b350f62009-11-15 23:12:43 +000029331rm -f core conftest.err conftest.$ac_objext \
29332 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029333LIBS=$ac_check_lib_save_LIBS
29334fi
cristy8b350f62009-11-15 23:12:43 +000029335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000029336$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristyda16f162011-02-19 23:52:17 +000029337if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029338 passed=`expr $passed + 1`
29339else
29340 failed=`expr $failed + 1`
29341fi
29342
cristy8b350f62009-11-15 23:12:43 +000029343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029344$as_echo_n "checking if PNG package is complete... " >&6; }
29345 if test $passed -gt 0; then
29346 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029348$as_echo "no -- some components failed test" >&6; }
29349 have_png='no (failed tests)'
29350 else
29351 PNG_LIBS='-lpng'
29352 LIBS="$PNG_LIBS $LIBS"
29353
cristy8b350f62009-11-15 23:12:43 +000029354$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029355
cristy8b350f62009-11-15 23:12:43 +000029356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029357$as_echo "yes" >&6; }
29358 have_png='yes'
29359 fi
29360 else
cristy8b350f62009-11-15 23:12:43 +000029361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029362$as_echo "no" >&6; }
29363 fi
29364fi
cristy73bd4a52010-10-05 11:24:23 +000029365 if test "$have_png" = 'yes'; then
29366 PNG_DELEGATE_TRUE=
29367 PNG_DELEGATE_FALSE='#'
29368else
29369 PNG_DELEGATE_TRUE='#'
29370 PNG_DELEGATE_FALSE=
29371fi
29372
cristy3ed852e2009-09-05 21:47:34 +000029373
29374
29375
29376#
29377# Check for RSVG delegate library.
29378#
29379
29380# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000029381if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029382 withval=$with_rsvg; with_rsvg=$withval
29383else
29384 with_rsvg=$have_x
29385fi
29386
29387
29388if test "$with_rsvg" != 'yes'; then
29389 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
29390fi
29391
29392have_rsvg='no'
29393have_cairo='no'
29394RSVG_CFLAGS=""
29395RSVG_LIBS=""
29396RSVG_PKG=""
29397if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029399$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029400
29401pkg_failed=no
29402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
29403$as_echo_n "checking for RSVG... " >&6; }
29404
29405if test -n "$RSVG_CFLAGS"; then
29406 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
29407 elif test -n "$PKG_CONFIG"; then
29408 if test -n "$PKG_CONFIG" && \
29409 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
29410 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
29411 ac_status=$?
29412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29413 test $ac_status = 0; }; then
29414 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
29415else
29416 pkg_failed=yes
29417fi
29418 else
29419 pkg_failed=untried
29420fi
29421if test -n "$RSVG_LIBS"; then
29422 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
29423 elif test -n "$PKG_CONFIG"; then
29424 if test -n "$PKG_CONFIG" && \
29425 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
29426 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
29427 ac_status=$?
29428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29429 test $ac_status = 0; }; then
29430 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
29431else
29432 pkg_failed=yes
29433fi
29434 else
29435 pkg_failed=untried
29436fi
29437
29438
29439
29440if test $pkg_failed = yes; then
29441
29442if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29443 _pkg_short_errors_supported=yes
29444else
29445 _pkg_short_errors_supported=no
29446fi
29447 if test $_pkg_short_errors_supported = yes; then
29448 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
29449 else
29450 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
29451 fi
29452 # Put the nasty error message in config.log where it belongs
29453 echo "$RSVG_PKG_ERRORS" >&5
29454
29455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29456$as_echo "no" >&6; }
29457 have_rsvg=no
29458elif test $pkg_failed = untried; then
29459 have_rsvg=no
29460else
29461 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
29462 RSVG_LIBS=$pkg_cv_RSVG_LIBS
29463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29464$as_echo "yes" >&6; }
29465 have_rsvg=yes
29466fi
cristy8b350f62009-11-15 23:12:43 +000029467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029468$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029469
29470pkg_failed=no
29471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
29472$as_echo_n "checking for CAIRO_SVG... " >&6; }
29473
29474if test -n "$CAIRO_SVG_CFLAGS"; then
29475 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
29476 elif test -n "$PKG_CONFIG"; then
29477 if test -n "$PKG_CONFIG" && \
29478 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
29479 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
29480 ac_status=$?
29481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29482 test $ac_status = 0; }; then
29483 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
29484else
29485 pkg_failed=yes
29486fi
29487 else
29488 pkg_failed=untried
29489fi
29490if test -n "$CAIRO_SVG_LIBS"; then
29491 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
29492 elif test -n "$PKG_CONFIG"; then
29493 if test -n "$PKG_CONFIG" && \
29494 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
29495 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
29496 ac_status=$?
29497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29498 test $ac_status = 0; }; then
29499 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
29500else
29501 pkg_failed=yes
29502fi
29503 else
29504 pkg_failed=untried
29505fi
29506
29507
29508
29509if test $pkg_failed = yes; then
29510
29511if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29512 _pkg_short_errors_supported=yes
29513else
29514 _pkg_short_errors_supported=no
29515fi
29516 if test $_pkg_short_errors_supported = yes; then
29517 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
29518 else
29519 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
29520 fi
29521 # Put the nasty error message in config.log where it belongs
29522 echo "$CAIRO_SVG_PKG_ERRORS" >&5
29523
29524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29525$as_echo "no" >&6; }
29526 have_cairo=no
29527elif test $pkg_failed = untried; then
29528 have_cairo=no
29529else
29530 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
29531 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
29532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29533$as_echo "yes" >&6; }
29534 have_cairo=yes
29535fi
cristy8b350f62009-11-15 23:12:43 +000029536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029537$as_echo "" >&6; }
29538fi
29539
29540if test "$have_rsvg" = 'yes'; then
29541
cristy8b350f62009-11-15 23:12:43 +000029542$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029543
29544 if test "$with_modules" = 'no'; then
29545 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
29546 fi
29547fi
29548
29549if test "$have_cairo" = 'yes'; then
29550
cristy8b350f62009-11-15 23:12:43 +000029551$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029552
29553 if test "$with_modules" = 'no'; then
29554 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
29555 fi
29556fi
29557
cristy73bd4a52010-10-05 11:24:23 +000029558 if test "$have_rsvg" = 'yes'; then
29559 RSVG_DELEGATE_TRUE=
29560 RSVG_DELEGATE_FALSE='#'
29561else
29562 RSVG_DELEGATE_TRUE='#'
29563 RSVG_DELEGATE_FALSE=
29564fi
29565
29566 if test "$have_cairo" = 'yes'; then
29567 CAIRO_DELEGATE_TRUE=
29568 CAIRO_DELEGATE_FALSE='#'
29569else
29570 CAIRO_DELEGATE_TRUE='#'
29571 CAIRO_DELEGATE_FALSE=
29572fi
29573
cristy3ed852e2009-09-05 21:47:34 +000029574
29575
29576
29577
29578#
29579# Check for TIFF delegate library.
29580#
29581
29582# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000029583if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029584 withval=$with_tiff; with_tiff=$withval
29585else
29586 with_tiff='yes'
29587fi
29588
29589
29590if test "$with_tiff" != 'yes'; then
29591 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
29592fi
29593
29594have_tiff='no'
29595TIFF_LIBS=''
29596if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029598$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029600$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029602$as_echo "" >&6; }
29603 failed=0
29604 passed=0
cristy8b350f62009-11-15 23:12:43 +000029605 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029606if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029607 passed=`expr $passed + 1`
29608else
29609 failed=`expr $failed + 1`
29610fi
29611
29612
cristy8b350f62009-11-15 23:12:43 +000029613 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029614if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029615 passed=`expr $passed + 1`
29616else
29617 failed=`expr $failed + 1`
29618fi
29619
29620
cristy8b350f62009-11-15 23:12:43 +000029621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029622$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029623if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029624 $as_echo_n "(cached) " >&6
29625else
29626 ac_check_lib_save_LIBS=$LIBS
29627LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029629/* end confdefs.h. */
29630
29631/* Override any GCC internal prototype to avoid an error.
29632 Use char because int might match the return type of a GCC
29633 builtin and then its argument prototype would still apply. */
29634#ifdef __cplusplus
29635extern "C"
29636#endif
29637char TIFFOpen ();
29638int
29639main ()
29640{
29641return TIFFOpen ();
29642 ;
29643 return 0;
29644}
29645_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029646if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029647 ac_cv_lib_tiff_TIFFOpen=yes
29648else
cristy8b350f62009-11-15 23:12:43 +000029649 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000029650fi
cristy8b350f62009-11-15 23:12:43 +000029651rm -f core conftest.err conftest.$ac_objext \
29652 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029653LIBS=$ac_check_lib_save_LIBS
29654fi
cristy8b350f62009-11-15 23:12:43 +000029655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029656$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029657if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029658 passed=`expr $passed + 1`
29659else
29660 failed=`expr $failed + 1`
29661fi
29662
cristy8b350f62009-11-15 23:12:43 +000029663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029664$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029665if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029666 $as_echo_n "(cached) " >&6
29667else
29668 ac_check_lib_save_LIBS=$LIBS
29669LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029671/* end confdefs.h. */
29672
29673/* Override any GCC internal prototype to avoid an error.
29674 Use char because int might match the return type of a GCC
29675 builtin and then its argument prototype would still apply. */
29676#ifdef __cplusplus
29677extern "C"
29678#endif
29679char TIFFClientOpen ();
29680int
29681main ()
29682{
29683return TIFFClientOpen ();
29684 ;
29685 return 0;
29686}
29687_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029688if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029689 ac_cv_lib_tiff_TIFFClientOpen=yes
29690else
cristy8b350f62009-11-15 23:12:43 +000029691 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000029692fi
cristy8b350f62009-11-15 23:12:43 +000029693rm -f core conftest.err conftest.$ac_objext \
29694 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029695LIBS=$ac_check_lib_save_LIBS
29696fi
cristy8b350f62009-11-15 23:12:43 +000029697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029698$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029699if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029700 passed=`expr $passed + 1`
29701else
29702 failed=`expr $failed + 1`
29703fi
29704
cristyb97f1002010-07-26 14:02:57 +000029705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
29706$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029707if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
cristyb97f1002010-07-26 14:02:57 +000029708 $as_echo_n "(cached) " >&6
29709else
29710 ac_check_lib_save_LIBS=$LIBS
29711LIBS="-ltiff $LIBS"
29712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29713/* end confdefs.h. */
29714
29715/* Override any GCC internal prototype to avoid an error.
29716 Use char because int might match the return type of a GCC
29717 builtin and then its argument prototype would still apply. */
29718#ifdef __cplusplus
29719extern "C"
29720#endif
29721char TIFFIsBigEndian ();
29722int
29723main ()
29724{
29725return TIFFIsBigEndian ();
29726 ;
29727 return 0;
29728}
29729_ACEOF
29730if ac_fn_c_try_link "$LINENO"; then :
29731 ac_cv_lib_tiff_TIFFIsBigEndian=yes
29732else
29733 ac_cv_lib_tiff_TIFFIsBigEndian=no
29734fi
29735rm -f core conftest.err conftest.$ac_objext \
29736 conftest$ac_exeext conftest.$ac_ext
29737LIBS=$ac_check_lib_save_LIBS
29738fi
29739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
29740$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
cristyda16f162011-02-19 23:52:17 +000029741if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
cristyb97f1002010-07-26 14:02:57 +000029742 passed=`expr $passed + 1`
29743else
29744 failed=`expr $failed + 1`
29745fi
29746
cristy8b350f62009-11-15 23:12:43 +000029747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029748$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029749if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029750 $as_echo_n "(cached) " >&6
29751else
29752 ac_check_lib_save_LIBS=$LIBS
29753LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029755/* end confdefs.h. */
29756
29757/* Override any GCC internal prototype to avoid an error.
29758 Use char because int might match the return type of a GCC
29759 builtin and then its argument prototype would still apply. */
29760#ifdef __cplusplus
29761extern "C"
29762#endif
29763char TIFFIsByteSwapped ();
29764int
29765main ()
29766{
29767return TIFFIsByteSwapped ();
29768 ;
29769 return 0;
29770}
29771_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029772if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029773 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
29774else
cristy8b350f62009-11-15 23:12:43 +000029775 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000029776fi
cristy8b350f62009-11-15 23:12:43 +000029777rm -f core conftest.err conftest.$ac_objext \
29778 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029779LIBS=$ac_check_lib_save_LIBS
29780fi
cristy8b350f62009-11-15 23:12:43 +000029781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000029782$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000029783if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029784 passed=`expr $passed + 1`
29785else
29786 failed=`expr $failed + 1`
29787fi
29788
cristy8b350f62009-11-15 23:12:43 +000029789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029790$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029791if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029792 $as_echo_n "(cached) " >&6
29793else
29794 ac_check_lib_save_LIBS=$LIBS
29795LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029797/* end confdefs.h. */
29798
29799/* Override any GCC internal prototype to avoid an error.
29800 Use char because int might match the return type of a GCC
29801 builtin and then its argument prototype would still apply. */
29802#ifdef __cplusplus
29803extern "C"
29804#endif
29805char TIFFReadRGBATile ();
29806int
29807main ()
29808{
29809return TIFFReadRGBATile ();
29810 ;
29811 return 0;
29812}
29813_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029814if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029815 ac_cv_lib_tiff_TIFFReadRGBATile=yes
29816else
cristy8b350f62009-11-15 23:12:43 +000029817 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000029818fi
cristy8b350f62009-11-15 23:12:43 +000029819rm -f core conftest.err conftest.$ac_objext \
29820 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029821LIBS=$ac_check_lib_save_LIBS
29822fi
cristy8b350f62009-11-15 23:12:43 +000029823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000029824$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000029825if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029826 passed=`expr $passed + 1`
29827else
29828 failed=`expr $failed + 1`
29829fi
29830
cristy8b350f62009-11-15 23:12:43 +000029831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029832$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029833if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029834 $as_echo_n "(cached) " >&6
29835else
29836 ac_check_lib_save_LIBS=$LIBS
29837LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029839/* end confdefs.h. */
29840
29841/* Override any GCC internal prototype to avoid an error.
29842 Use char because int might match the return type of a GCC
29843 builtin and then its argument prototype would still apply. */
29844#ifdef __cplusplus
29845extern "C"
29846#endif
29847char TIFFReadRGBAStrip ();
29848int
29849main ()
29850{
29851return TIFFReadRGBAStrip ();
29852 ;
29853 return 0;
29854}
29855_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029856if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029857 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
29858else
cristy8b350f62009-11-15 23:12:43 +000029859 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000029860fi
cristy8b350f62009-11-15 23:12:43 +000029861rm -f core conftest.err conftest.$ac_objext \
29862 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029863LIBS=$ac_check_lib_save_LIBS
29864fi
cristy8b350f62009-11-15 23:12:43 +000029865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000029866$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000029867if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029868 passed=`expr $passed + 1`
29869else
29870 failed=`expr $failed + 1`
29871fi
29872
cristy8b350f62009-11-15 23:12:43 +000029873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029874$as_echo_n "checking if TIFF package is complete... " >&6; }
29875 if test $passed -gt 0; then
29876 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029878$as_echo "no -- some components failed test" >&6; }
29879 have_tiff='no (failed tests)'
29880 else
29881 TIFF_LIBS='-ltiff'
29882 LIBS="$TIFF_LIBS $LIBS"
29883
cristy8b350f62009-11-15 23:12:43 +000029884$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029885
cristy8b350f62009-11-15 23:12:43 +000029886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029887$as_echo "yes" >&6; }
29888 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000029889 for ac_header in tiffconf.h
29890do :
29891 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029892if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029893 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029894#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000029895_ACEOF
29896
29897fi
29898
29899done
29900
cristy8b350f62009-11-15 23:12:43 +000029901 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000029902 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29903 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000029904do :
29905 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29906ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000029907if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000029908 cat >>confdefs.h <<_ACEOF
29909#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29910_ACEOF
29911
29912fi
29913done
29914
29915 fi
29916 else
cristy8b350f62009-11-15 23:12:43 +000029917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029918$as_echo "no" >&6; }
29919 fi
29920fi
cristy73bd4a52010-10-05 11:24:23 +000029921 if test "$have_tiff" = 'yes'; then
29922 TIFF_DELEGATE_TRUE=
29923 TIFF_DELEGATE_FALSE='#'
29924else
29925 TIFF_DELEGATE_TRUE='#'
29926 TIFF_DELEGATE_FALSE=
29927fi
29928
cristy3ed852e2009-09-05 21:47:34 +000029929
29930
29931
29932#
cristyb1860752011-03-14 00:27:46 +000029933# Check for WEBP delegate library.
29934#
29935
29936# Check whether --with-webp was given.
29937if test "${with_webp+set}" = set; then :
29938 withval=$with_webp; with_webp=$withval
29939else
29940 with_webp='yes'
29941fi
29942
29943
29944if test "$with_webp" != 'yes'; then
29945 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
29946fi
29947
29948have_webp='no'
29949WEBP_LIBS=''
29950if test "$with_webp" != 'no'; then
29951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29952$as_echo "-------------------------------------------------------------" >&6; }
29953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
29954$as_echo_n "checking for WEBP... " >&6; }
29955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29956$as_echo "" >&6; }
29957 failed=0
29958 passed=0
29959 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
29960if test "x$ac_cv_header_webp_decode_h" = xyes; then :
29961 passed=`expr $passed + 1`
29962else
29963 failed=`expr $failed + 1`
29964fi
29965
29966
29967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
29968$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
29969if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
29970 $as_echo_n "(cached) " >&6
29971else
29972 ac_check_lib_save_LIBS=$LIBS
29973LIBS="-lwebp $LIBS"
29974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29975/* end confdefs.h. */
29976
29977/* Override any GCC internal prototype to avoid an error.
29978 Use char because int might match the return type of a GCC
29979 builtin and then its argument prototype would still apply. */
29980#ifdef __cplusplus
29981extern "C"
29982#endif
29983char WebPDecodeRGB ();
29984int
29985main ()
29986{
29987return WebPDecodeRGB ();
29988 ;
29989 return 0;
29990}
29991_ACEOF
29992if ac_fn_c_try_link "$LINENO"; then :
29993 ac_cv_lib_webp_WebPDecodeRGB=yes
29994else
29995 ac_cv_lib_webp_WebPDecodeRGB=no
29996fi
29997rm -f core conftest.err conftest.$ac_objext \
29998 conftest$ac_exeext conftest.$ac_ext
29999LIBS=$ac_check_lib_save_LIBS
30000fi
30001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
30002$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
30003if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
30004 passed=`expr $passed + 1`
30005else
30006 failed=`expr $failed + 1`
30007fi
30008
30009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
30010$as_echo_n "checking if WEBP package is complete... " >&6; }
30011 if test $passed -gt 0; then
30012 if test $failed -gt 0; then
30013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30014$as_echo "no -- some components failed test" >&6; }
30015 have_webp='no (failed tests)'
30016 else
30017 WEBP_LIBS='-lwebp'
30018 LIBS="$WEBP_LIBS $LIBS"
30019
30020$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
30021
30022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30023$as_echo "yes" >&6; }
30024 have_webp='yes'
30025 fi
30026 else
30027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30028$as_echo "no" >&6; }
30029 fi
30030fi
30031 if test "$have_webp" = 'yes'; then
30032 WEBP_DELEGATE_TRUE=
30033 WEBP_DELEGATE_FALSE='#'
30034else
30035 WEBP_DELEGATE_TRUE='#'
30036 WEBP_DELEGATE_FALSE=
30037fi
30038
30039
30040
30041
30042#
cristy3ed852e2009-09-05 21:47:34 +000030043# Set Windows font directory.
30044#
30045
30046# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000030047if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030048 withval=$with_windows_font_dir; with_windows_font_dir=$withval
30049else
30050 with_windows_font_dir=''
30051fi
30052
30053if test "$with_windows_font_dir" != '' ; then
30054 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
30055fi
30056
30057
30058#
30059# Check for WMF delegate library.
30060#
30061
30062# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000030063if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030064 withval=$with_wmf; with_wmf=$withval
30065else
cristy8d63d1d2010-01-06 20:38:37 +000030066 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000030067fi
30068
30069
30070if test "$with_wmf" != 'yes'; then
30071 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
30072fi
30073
30074have_wmf='no'
30075WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000030076if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030078$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000030080$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030082$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000030083 failed=0
30084 passed=0
30085 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030086if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
cristy735e8942010-04-02 20:32:57 +000030087 passed=`expr $passed + 1`
30088else
30089 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030090fi
30091
30092
cristy735e8942010-04-02 20:32:57 +000030093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
30094$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030095if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030096 $as_echo_n "(cached) " >&6
30097else
30098 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000030099LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030101/* end confdefs.h. */
30102
30103/* Override any GCC internal prototype to avoid an error.
30104 Use char because int might match the return type of a GCC
30105 builtin and then its argument prototype would still apply. */
30106#ifdef __cplusplus
30107extern "C"
30108#endif
cristy735e8942010-04-02 20:32:57 +000030109char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000030110int
30111main ()
30112{
cristy735e8942010-04-02 20:32:57 +000030113return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000030114 ;
30115 return 0;
30116}
30117_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030118if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000030119 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000030120else
cristy735e8942010-04-02 20:32:57 +000030121 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000030122fi
cristy8b350f62009-11-15 23:12:43 +000030123rm -f core conftest.err conftest.$ac_objext \
30124 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030125LIBS=$ac_check_lib_save_LIBS
30126fi
cristy735e8942010-04-02 20:32:57 +000030127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
30128$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
cristyda16f162011-02-19 23:52:17 +000030129if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
cristy735e8942010-04-02 20:32:57 +000030130 passed=`expr $passed + 1`
30131else
30132 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030133fi
30134
cristy735e8942010-04-02 20:32:57 +000030135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
30136$as_echo_n "checking if WMF package is complete... " >&6; }
30137 if test $passed -gt 0; then
30138 if test $failed -gt 0; then
30139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30140$as_echo "no -- some components failed test" >&6; }
30141 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000030142 else
cristy735e8942010-04-02 20:32:57 +000030143 WMF_LIBS='-lwmf -lwmflite'
30144 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030145
cristy8b350f62009-11-15 23:12:43 +000030146$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030147
cristy735e8942010-04-02 20:32:57 +000030148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030149$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000030150 have_wmf='yes'
30151 fi
cristy3ed852e2009-09-05 21:47:34 +000030152 else
cristy8b350f62009-11-15 23:12:43 +000030153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030154$as_echo "no" >&6; }
30155 fi
30156fi
cristy73bd4a52010-10-05 11:24:23 +000030157 if test "$have_wmf" = 'yes'; then
30158 WMF_DELEGATE_TRUE=
30159 WMF_DELEGATE_FALSE='#'
30160else
30161 WMF_DELEGATE_TRUE='#'
30162 WMF_DELEGATE_FALSE=
30163fi
30164
cristy3ed852e2009-09-05 21:47:34 +000030165
30166
30167
30168
cristy735e8942010-04-02 20:32:57 +000030169
cristy3ed852e2009-09-05 21:47:34 +000030170#
30171# Check for XML delegate library.
30172#
30173
30174# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000030175if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030176 withval=$with_xml; with_xml=$withval
30177else
30178 with_xml=$have_x
30179fi
30180
30181
30182if test "$with_xml" != 'yes' ; then
30183 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
30184fi
30185
30186have_xml='no'
30187XML_LIBS=''
30188if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030190$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000030192$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030194$as_echo "" >&6; }
30195 PERSIST_LDFLAGS=$LDFLAGS
30196 PERSIST_CPPFLAGS=$CPPFLAGS
30197 xml2_config=''
30198 for ac_prog in xml2-config
30199do
30200 # Extract the first word of "$ac_prog", so it can be a program name with args.
30201set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030203$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030204if ${ac_cv_prog_xml2_config+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030205 $as_echo_n "(cached) " >&6
30206else
30207 if test -n "$xml2_config"; then
30208 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
30209else
30210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30211for as_dir in $PATH
30212do
30213 IFS=$as_save_IFS
30214 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030215 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30217 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030219 break 2
30220 fi
30221done
cristy8b350f62009-11-15 23:12:43 +000030222 done
cristy3ed852e2009-09-05 21:47:34 +000030223IFS=$as_save_IFS
30224
30225fi
30226fi
30227xml2_config=$ac_cv_prog_xml2_config
30228if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000030229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000030230$as_echo "$xml2_config" >&6; }
30231else
cristy8b350f62009-11-15 23:12:43 +000030232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030233$as_echo "no" >&6; }
30234fi
30235
30236
30237 test -n "$xml2_config" && break
30238done
30239 if test -n "$xml2_config"; then
30240 # Debian installs libxml headers under /usr/include/libxml2/libxml with
30241 # the shared library installed under /usr/lib, whereas the package
30242 # installs itself under $prefix/libxml and $prefix/lib.
30243 xml2_prefix=`xml2-config --prefix`
30244 if test -d "${xml2_prefix}/include/libxml2"; then
30245 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
30246 fi
30247 if test "${xml2_prefix}" != '/usr'; then
30248 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
30249 fi
30250 fi
30251 failed=0
30252 passed=0
cristy8b350f62009-11-15 23:12:43 +000030253 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030254if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030255 passed=`expr $passed + 1`
30256else
30257 failed=`expr $failed + 1`
30258fi
30259
30260
cristy8b350f62009-11-15 23:12:43 +000030261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000030262$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030263if ${ac_cv_lib_xml2_xmlParseExternalEntity+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030264 $as_echo_n "(cached) " >&6
30265else
30266 ac_check_lib_save_LIBS=$LIBS
30267LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030269/* end confdefs.h. */
30270
30271/* Override any GCC internal prototype to avoid an error.
30272 Use char because int might match the return type of a GCC
30273 builtin and then its argument prototype would still apply. */
30274#ifdef __cplusplus
30275extern "C"
30276#endif
30277char xmlParseExternalEntity ();
30278int
30279main ()
30280{
30281return xmlParseExternalEntity ();
30282 ;
30283 return 0;
30284}
30285_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030286if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030287 ac_cv_lib_xml2_xmlParseExternalEntity=yes
30288else
cristy8b350f62009-11-15 23:12:43 +000030289 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000030290fi
cristy8b350f62009-11-15 23:12:43 +000030291rm -f core conftest.err conftest.$ac_objext \
30292 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030293LIBS=$ac_check_lib_save_LIBS
30294fi
cristy8b350f62009-11-15 23:12:43 +000030295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000030296$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristyda16f162011-02-19 23:52:17 +000030297if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030298 passed=`expr $passed + 1`
30299else
30300 failed=`expr $failed + 1`
30301fi
30302
cristy8b350f62009-11-15 23:12:43 +000030303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030304$as_echo_n "checking if XML package is complete... " >&6; }
30305 if test $passed -gt 0; then
30306 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000030307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000030308$as_echo "no -- some components failed test" >&6; }
30309 have_xml='no (failed tests)'
30310 LDFLAGS="$PERSIST_LDFLAGS"
30311 CPPFLAGS="$PERSIST_CPPFLAGS"
30312 else
30313 XML_LIBS='-lxml2'
30314 LIBS="$XML_LIBS $LIBS"
30315
cristy8b350f62009-11-15 23:12:43 +000030316$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030317
cristy8b350f62009-11-15 23:12:43 +000030318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030319$as_echo "yes" >&6; }
30320 have_xml='yes'
30321 fi
30322 else
cristy8b350f62009-11-15 23:12:43 +000030323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030324$as_echo "no" >&6; }
30325 fi
30326fi
cristy73bd4a52010-10-05 11:24:23 +000030327 if test "$have_xml" = 'yes'; then
30328 XML_DELEGATE_TRUE=
30329 XML_DELEGATE_FALSE='#'
30330else
30331 XML_DELEGATE_TRUE='#'
30332 XML_DELEGATE_FALSE=
30333fi
30334
cristy3ed852e2009-09-05 21:47:34 +000030335
30336
30337
30338# Substitute compiler name to build/link PerlMagick
30339#
30340
30341
30342#
30343# Configure install Paths
30344#
30345
30346# Subdirectory under lib to place ImageMagick lib files
30347LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
30348
30349cat >>confdefs.h <<_ACEOF
30350#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
30351_ACEOF
30352
30353
30354# Path to ImageMagick bin directory
30355EXECUTABLE_PATH="${BIN_DIR}"
30356DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
30357case "${build_os}" in
30358 mingw* )
30359 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
30360 ;;
30361esac
30362
30363cat >>confdefs.h <<_ACEOF
30364#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
30365_ACEOF
30366
30367
30368
30369# Path to ImageMagick lib
30370LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
30371DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
30372case "${build_os}" in
30373 mingw* )
30374 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
30375 ;;
30376esac
30377
30378cat >>confdefs.h <<_ACEOF
30379#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
30380_ACEOF
30381
30382
30383
cristy3ed852e2009-09-05 21:47:34 +000030384#
30385# Subdirectory under lib to place ImageMagick coder module files
30386CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
30387
30388cat >>confdefs.h <<_ACEOF
30389#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
30390_ACEOF
30391
30392CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
30393DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
30394case "${build_os}" in
30395 mingw* )
30396 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
30397 ;;
30398esac
30399
30400cat >>confdefs.h <<_ACEOF
30401#define CODER_PATH "$DEFINE_CODER_PATH"
30402_ACEOF
30403
30404
30405
30406#
30407# Subdirectory under lib to place ImageMagick filter module files
30408FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
30409
30410cat >>confdefs.h <<_ACEOF
30411#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
30412_ACEOF
30413
30414FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
30415DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
30416case "${build_os}" in
30417 mingw* )
30418 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
30419 ;;
30420esac
30421
30422cat >>confdefs.h <<_ACEOF
30423#define FILTER_PATH "$DEFINE_FILTER_PATH"
30424_ACEOF
30425
30426
30427
30428#
30429# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000030430DOCUMENTATION_RELATIVE_PATH=""
30431DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
30432DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000030433case "${build_os}" in
30434 mingw* )
30435 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
30436 ;;
30437esac
30438
30439cat >>confdefs.h <<_ACEOF
30440#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
30441_ACEOF
30442
30443
30444
cristy3cf8a722011-03-20 23:32:22 +000030445# Subdirectory to place ImageMagick configuration files
cristyba0f1972011-03-28 12:42:52 +000030446CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000030447
30448cat >>confdefs.h <<_ACEOF
30449#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
30450_ACEOF
30451
30452CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
30453DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
30454case "${build_os}" in
30455 mingw* )
30456 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
30457 ;;
30458esac
30459
30460cat >>confdefs.h <<_ACEOF
30461#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
30462_ACEOF
30463
30464
30465
30466# Subdirectory to place ImageMagick configuration files
cristy4f820712011-04-01 12:35:43 +000030467SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000030468
30469cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000030470#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000030471_ACEOF
30472
cristy4f820712011-04-01 12:35:43 +000030473SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
30474DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000030475case "${build_os}" in
30476 mingw* )
cristy4f820712011-04-01 12:35:43 +000030477 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000030478 ;;
30479esac
30480
30481cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000030482#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000030483_ACEOF
30484
30485
30486
30487#
30488# program_transform_name is formed for use in a Makefile, so create a
30489# modified version for use in a shell script.
30490configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
30491
30492# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000030493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030494$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000030496$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030498$as_echo "" >&6; }
30499AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000030500BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000030501BZIPDelegateDefault='bzip2'
30502BrowseDelegateDefault='xdg-open'
30503CGMDecodeDelegateDefault='ralcgm'
30504CatDelegateDefault='cat'
30505DNGDecodeDelegateDefault='ufraw-batch'
30506GVCDecodeDelegateDefault='dot'
30507DVIDecodeDelegateDefault='dvips'
30508EchoDelegateDefault='echo'
30509EditorDelegateDefault='xterm'
30510FIGDecodeDelegateDefault='fig2dev'
30511ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
30512DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
30513MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
30514GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000030515HPGLDecodeDelegateDefault='hp2xx'
30516HTMLDecodeDelegateDefault='html2ps'
30517ILBMDecodeDelegateDefault='ilbmtoppm'
30518ILBMEncodeDelegateDefault='ppmtoilbm'
30519LPDelegateDefault='lp'
30520LPRDelegateDefault='lpr'
30521LZWDecodeDelegateDefault='uncompress'
30522LZWEncodeDelegateDefault='compress'
30523LaunchDelegateDefault='gimp'
30524MANDelegateDefault='groff'
30525MPEGDecodeDelegateDefault='ffmpeg'
30526MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000030527MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000030528MVDelegateDefault='mv'
30529PCLDelegateDefault='pcl6'
30530PGPDecodeDelegateDefault='pgpv'
30531POVDelegateDefault='povray'
30532if test "$native_win32_build" = 'yes'; then
30533 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000030534elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030535 PSDelegateDefault='gsc'
30536else
30537 PSDelegateDefault='gs'
30538fi
30539RLEEncodeDelegateDefault='rawtorle'
30540RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000030541RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000030542SCANDecodeDelegateDefault='scanimage'
30543TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000030544UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000030545WMFDecodeDelegateDefault='wmf2eps'
30546WWWDecodeDelegateDefault='curl'
30547XPSDelegateDefault='gxps'
30548ZipDelegateDefault='gzip'
30549
30550# Search for delegates
30551# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
30552set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030554$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030555if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030556 $as_echo_n "(cached) " >&6
30557else
30558 case $AutotraceDecodeDelegate in
30559 [\\/]* | ?:[\\/]*)
30560 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
30561 ;;
30562 *)
30563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30564for as_dir in $PATH
30565do
30566 IFS=$as_save_IFS
30567 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030568 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30570 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030572 break 2
30573 fi
30574done
cristy8b350f62009-11-15 23:12:43 +000030575 done
cristy3ed852e2009-09-05 21:47:34 +000030576IFS=$as_save_IFS
30577
30578 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
30579 ;;
30580esac
30581fi
30582AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
30583if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030585$as_echo "$AutotraceDecodeDelegate" >&6; }
30586else
cristy8b350f62009-11-15 23:12:43 +000030587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030588$as_echo "no" >&6; }
30589fi
30590
30591
cristy3ed852e2009-09-05 21:47:34 +000030592# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
30593set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030595$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030596if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030597 $as_echo_n "(cached) " >&6
30598else
30599 case $BlenderDecodeDelegate in
30600 [\\/]* | ?:[\\/]*)
30601 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
30602 ;;
30603 *)
30604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30605for as_dir in $PATH
30606do
30607 IFS=$as_save_IFS
30608 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030609 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30611 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030613 break 2
30614 fi
30615done
cristy8b350f62009-11-15 23:12:43 +000030616 done
cristy3ed852e2009-09-05 21:47:34 +000030617IFS=$as_save_IFS
30618
30619 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
30620 ;;
30621esac
30622fi
30623BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
30624if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030626$as_echo "$BlenderDecodeDelegate" >&6; }
30627else
cristy8b350f62009-11-15 23:12:43 +000030628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030629$as_echo "no" >&6; }
30630fi
30631
30632
30633# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
30634set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030636$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030637if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030638 $as_echo_n "(cached) " >&6
30639else
30640 case $BZIPDelegate in
30641 [\\/]* | ?:[\\/]*)
30642 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
30643 ;;
30644 *)
30645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30646for as_dir in $PATH
30647do
30648 IFS=$as_save_IFS
30649 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030650 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30652 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030654 break 2
30655 fi
30656done
cristy8b350f62009-11-15 23:12:43 +000030657 done
cristy3ed852e2009-09-05 21:47:34 +000030658IFS=$as_save_IFS
30659
30660 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
30661 ;;
30662esac
30663fi
30664BZIPDelegate=$ac_cv_path_BZIPDelegate
30665if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030667$as_echo "$BZIPDelegate" >&6; }
30668else
cristy8b350f62009-11-15 23:12:43 +000030669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030670$as_echo "no" >&6; }
30671fi
30672
30673
30674# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
30675set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030677$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030678if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030679 $as_echo_n "(cached) " >&6
30680else
30681 case $BrowseDelegate in
30682 [\\/]* | ?:[\\/]*)
30683 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
30684 ;;
30685 *)
30686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30687for as_dir in $PATH
30688do
30689 IFS=$as_save_IFS
30690 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030691 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30693 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030695 break 2
30696 fi
30697done
cristy8b350f62009-11-15 23:12:43 +000030698 done
cristy3ed852e2009-09-05 21:47:34 +000030699IFS=$as_save_IFS
30700
30701 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
30702 ;;
30703esac
30704fi
30705BrowseDelegate=$ac_cv_path_BrowseDelegate
30706if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030708$as_echo "$BrowseDelegate" >&6; }
30709else
cristy8b350f62009-11-15 23:12:43 +000030710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030711$as_echo "no" >&6; }
30712fi
30713
30714
30715# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
30716set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030718$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030719if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030720 $as_echo_n "(cached) " >&6
30721else
30722 case $CGMDecodeDelegate in
30723 [\\/]* | ?:[\\/]*)
30724 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
30725 ;;
30726 *)
30727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30728for as_dir in $PATH
30729do
30730 IFS=$as_save_IFS
30731 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030732 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30734 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030736 break 2
30737 fi
30738done
cristy8b350f62009-11-15 23:12:43 +000030739 done
cristy3ed852e2009-09-05 21:47:34 +000030740IFS=$as_save_IFS
30741
30742 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
30743 ;;
30744esac
30745fi
30746CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
30747if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030749$as_echo "$CGMDecodeDelegate" >&6; }
30750else
cristy8b350f62009-11-15 23:12:43 +000030751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030752$as_echo "no" >&6; }
30753fi
30754
30755
30756# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
30757set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030759$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030760if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030761 $as_echo_n "(cached) " >&6
30762else
30763 case $CatDelegate in
30764 [\\/]* | ?:[\\/]*)
30765 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
30766 ;;
30767 *)
30768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30769for as_dir in $PATH
30770do
30771 IFS=$as_save_IFS
30772 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030773 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30775 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030777 break 2
30778 fi
30779done
cristy8b350f62009-11-15 23:12:43 +000030780 done
cristy3ed852e2009-09-05 21:47:34 +000030781IFS=$as_save_IFS
30782
30783 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
30784 ;;
30785esac
30786fi
30787CatDelegate=$ac_cv_path_CatDelegate
30788if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030790$as_echo "$CatDelegate" >&6; }
30791else
cristy8b350f62009-11-15 23:12:43 +000030792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030793$as_echo "no" >&6; }
30794fi
30795
30796
30797# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
30798set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030800$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030801if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030802 $as_echo_n "(cached) " >&6
30803else
30804 case $DNGDecodeDelegate in
30805 [\\/]* | ?:[\\/]*)
30806 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
30807 ;;
30808 *)
30809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30810for as_dir in $PATH
30811do
30812 IFS=$as_save_IFS
30813 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030814 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30816 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030818 break 2
30819 fi
30820done
cristy8b350f62009-11-15 23:12:43 +000030821 done
cristy3ed852e2009-09-05 21:47:34 +000030822IFS=$as_save_IFS
30823
30824 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
30825 ;;
30826esac
30827fi
30828DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
30829if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030831$as_echo "$DNGDecodeDelegate" >&6; }
30832else
cristy8b350f62009-11-15 23:12:43 +000030833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030834$as_echo "no" >&6; }
30835fi
30836
30837
30838# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
30839set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030841$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030842if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030843 $as_echo_n "(cached) " >&6
30844else
30845 case $GVCDecodeDelegate in
30846 [\\/]* | ?:[\\/]*)
30847 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
30848 ;;
30849 *)
30850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30851for as_dir in $PATH
30852do
30853 IFS=$as_save_IFS
30854 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030855 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30857 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030859 break 2
30860 fi
30861done
cristy8b350f62009-11-15 23:12:43 +000030862 done
cristy3ed852e2009-09-05 21:47:34 +000030863IFS=$as_save_IFS
30864
30865 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
30866 ;;
30867esac
30868fi
30869GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
30870if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030872$as_echo "$GVCDecodeDelegate" >&6; }
30873else
cristy8b350f62009-11-15 23:12:43 +000030874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030875$as_echo "no" >&6; }
30876fi
30877
30878
30879# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
30880set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030882$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030883if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030884 $as_echo_n "(cached) " >&6
30885else
30886 case $DVIDecodeDelegate in
30887 [\\/]* | ?:[\\/]*)
30888 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
30889 ;;
30890 *)
30891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30892for as_dir in $PATH
30893do
30894 IFS=$as_save_IFS
30895 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030896 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30898 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030900 break 2
30901 fi
30902done
cristy8b350f62009-11-15 23:12:43 +000030903 done
cristy3ed852e2009-09-05 21:47:34 +000030904IFS=$as_save_IFS
30905
30906 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
30907 ;;
30908esac
30909fi
30910DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
30911if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030913$as_echo "$DVIDecodeDelegate" >&6; }
30914else
cristy8b350f62009-11-15 23:12:43 +000030915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030916$as_echo "no" >&6; }
30917fi
30918
30919
30920# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
30921set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030923$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030924if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030925 $as_echo_n "(cached) " >&6
30926else
30927 case $EchoDelegate in
30928 [\\/]* | ?:[\\/]*)
30929 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
30930 ;;
30931 *)
30932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30933for as_dir in $PATH
30934do
30935 IFS=$as_save_IFS
30936 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030937 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30939 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030941 break 2
30942 fi
30943done
cristy8b350f62009-11-15 23:12:43 +000030944 done
cristy3ed852e2009-09-05 21:47:34 +000030945IFS=$as_save_IFS
30946
30947 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30948 ;;
30949esac
30950fi
30951EchoDelegate=$ac_cv_path_EchoDelegate
30952if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030954$as_echo "$EchoDelegate" >&6; }
30955else
cristy8b350f62009-11-15 23:12:43 +000030956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030957$as_echo "no" >&6; }
30958fi
30959
30960
30961# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
30962set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030964$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030965if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030966 $as_echo_n "(cached) " >&6
30967else
30968 case $EditorDelegate in
30969 [\\/]* | ?:[\\/]*)
30970 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30971 ;;
30972 *)
30973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30974for as_dir in $PATH
30975do
30976 IFS=$as_save_IFS
30977 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030978 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30980 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030982 break 2
30983 fi
30984done
cristy8b350f62009-11-15 23:12:43 +000030985 done
cristy3ed852e2009-09-05 21:47:34 +000030986IFS=$as_save_IFS
30987
30988 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30989 ;;
30990esac
30991fi
30992EditorDelegate=$ac_cv_path_EditorDelegate
30993if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030995$as_echo "$EditorDelegate" >&6; }
30996else
cristy8b350f62009-11-15 23:12:43 +000030997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030998$as_echo "no" >&6; }
30999fi
31000
31001
31002# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
31003set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031005$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031006if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031007 $as_echo_n "(cached) " >&6
31008else
31009 case $FIGDecodeDelegate in
31010 [\\/]* | ?:[\\/]*)
31011 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
31012 ;;
31013 *)
31014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31015for as_dir in $PATH
31016do
31017 IFS=$as_save_IFS
31018 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031019 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31021 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031023 break 2
31024 fi
31025done
cristy8b350f62009-11-15 23:12:43 +000031026 done
cristy3ed852e2009-09-05 21:47:34 +000031027IFS=$as_save_IFS
31028
31029 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
31030 ;;
31031esac
31032fi
31033FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
31034if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031036$as_echo "$FIGDecodeDelegate" >&6; }
31037else
cristy8b350f62009-11-15 23:12:43 +000031038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031039$as_echo "no" >&6; }
31040fi
31041
31042
31043# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
31044set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031046$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031047if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031048 $as_echo_n "(cached) " >&6
31049else
31050 case $ConvertDelegate in
31051 [\\/]* | ?:[\\/]*)
31052 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
31053 ;;
31054 *)
31055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31056for as_dir in $PATH
31057do
31058 IFS=$as_save_IFS
31059 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031060 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31062 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031064 break 2
31065 fi
31066done
cristy8b350f62009-11-15 23:12:43 +000031067 done
cristy3ed852e2009-09-05 21:47:34 +000031068IFS=$as_save_IFS
31069
31070 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
31071 ;;
31072esac
31073fi
31074ConvertDelegate=$ac_cv_path_ConvertDelegate
31075if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031077$as_echo "$ConvertDelegate" >&6; }
31078else
cristy8b350f62009-11-15 23:12:43 +000031079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031080$as_echo "no" >&6; }
31081fi
31082
31083
31084# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
31085set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031087$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031088if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031089 $as_echo_n "(cached) " >&6
31090else
31091 case $DisplayDelegate in
31092 [\\/]* | ?:[\\/]*)
31093 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
31094 ;;
31095 *)
31096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31097for as_dir in $PATH
31098do
31099 IFS=$as_save_IFS
31100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031101 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31103 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031105 break 2
31106 fi
31107done
cristy8b350f62009-11-15 23:12:43 +000031108 done
cristy3ed852e2009-09-05 21:47:34 +000031109IFS=$as_save_IFS
31110
31111 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
31112 ;;
31113esac
31114fi
31115DisplayDelegate=$ac_cv_path_DisplayDelegate
31116if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031118$as_echo "$DisplayDelegate" >&6; }
31119else
cristy8b350f62009-11-15 23:12:43 +000031120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031121$as_echo "no" >&6; }
31122fi
31123
31124
31125# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
31126set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031128$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031129if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031130 $as_echo_n "(cached) " >&6
31131else
31132 case $MogrifyDelegate in
31133 [\\/]* | ?:[\\/]*)
31134 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
31135 ;;
31136 *)
31137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31138for as_dir in $PATH
31139do
31140 IFS=$as_save_IFS
31141 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031142 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31144 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031146 break 2
31147 fi
31148done
cristy8b350f62009-11-15 23:12:43 +000031149 done
cristy3ed852e2009-09-05 21:47:34 +000031150IFS=$as_save_IFS
31151
31152 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
31153 ;;
31154esac
31155fi
31156MogrifyDelegate=$ac_cv_path_MogrifyDelegate
31157if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031159$as_echo "$MogrifyDelegate" >&6; }
31160else
cristy8b350f62009-11-15 23:12:43 +000031161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031162$as_echo "no" >&6; }
31163fi
31164
31165
31166# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
31167set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031169$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031170if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031171 $as_echo_n "(cached) " >&6
31172else
31173 case $GnuplotDecodeDelegate in
31174 [\\/]* | ?:[\\/]*)
31175 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
31176 ;;
31177 *)
31178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31179for as_dir in $PATH
31180do
31181 IFS=$as_save_IFS
31182 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031183 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31185 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031187 break 2
31188 fi
31189done
cristy8b350f62009-11-15 23:12:43 +000031190 done
cristy3ed852e2009-09-05 21:47:34 +000031191IFS=$as_save_IFS
31192
31193 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
31194 ;;
31195esac
31196fi
31197GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
31198if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031200$as_echo "$GnuplotDecodeDelegate" >&6; }
31201else
cristy8b350f62009-11-15 23:12:43 +000031202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031203$as_echo "no" >&6; }
31204fi
31205
31206
cristy3ed852e2009-09-05 21:47:34 +000031207# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
31208set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031210$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031211if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031212 $as_echo_n "(cached) " >&6
31213else
31214 case $HPGLDecodeDelegate in
31215 [\\/]* | ?:[\\/]*)
31216 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
31217 ;;
31218 *)
31219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31220for as_dir in $PATH
31221do
31222 IFS=$as_save_IFS
31223 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031224 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31226 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031228 break 2
31229 fi
31230done
cristy8b350f62009-11-15 23:12:43 +000031231 done
cristy3ed852e2009-09-05 21:47:34 +000031232IFS=$as_save_IFS
31233
31234 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
31235 ;;
31236esac
31237fi
31238HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
31239if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031241$as_echo "$HPGLDecodeDelegate" >&6; }
31242else
cristy8b350f62009-11-15 23:12:43 +000031243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031244$as_echo "no" >&6; }
31245fi
31246
31247
31248# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
31249set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031251$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031252if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031253 $as_echo_n "(cached) " >&6
31254else
31255 case $HTMLDecodeDelegate in
31256 [\\/]* | ?:[\\/]*)
31257 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
31258 ;;
31259 *)
31260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31261for as_dir in $PATH
31262do
31263 IFS=$as_save_IFS
31264 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031265 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31267 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031269 break 2
31270 fi
31271done
cristy8b350f62009-11-15 23:12:43 +000031272 done
cristy3ed852e2009-09-05 21:47:34 +000031273IFS=$as_save_IFS
31274
31275 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
31276 ;;
31277esac
31278fi
31279HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
31280if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031282$as_echo "$HTMLDecodeDelegate" >&6; }
31283else
cristy8b350f62009-11-15 23:12:43 +000031284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031285$as_echo "no" >&6; }
31286fi
31287
31288
31289# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
31290set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031292$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031293if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031294 $as_echo_n "(cached) " >&6
31295else
31296 case $ILBMDecodeDelegate in
31297 [\\/]* | ?:[\\/]*)
31298 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
31299 ;;
31300 *)
31301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31302for as_dir in $PATH
31303do
31304 IFS=$as_save_IFS
31305 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031306 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31308 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031310 break 2
31311 fi
31312done
cristy8b350f62009-11-15 23:12:43 +000031313 done
cristy3ed852e2009-09-05 21:47:34 +000031314IFS=$as_save_IFS
31315
31316 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
31317 ;;
31318esac
31319fi
31320ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
31321if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031323$as_echo "$ILBMDecodeDelegate" >&6; }
31324else
cristy8b350f62009-11-15 23:12:43 +000031325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031326$as_echo "no" >&6; }
31327fi
31328
31329
31330# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
31331set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031333$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031334if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031335 $as_echo_n "(cached) " >&6
31336else
31337 case $ILBMEncodeDelegate in
31338 [\\/]* | ?:[\\/]*)
31339 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
31340 ;;
31341 *)
31342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31343for as_dir in $PATH
31344do
31345 IFS=$as_save_IFS
31346 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031347 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31349 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031351 break 2
31352 fi
31353done
cristy8b350f62009-11-15 23:12:43 +000031354 done
cristy3ed852e2009-09-05 21:47:34 +000031355IFS=$as_save_IFS
31356
31357 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
31358 ;;
31359esac
31360fi
31361ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
31362if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031364$as_echo "$ILBMEncodeDelegate" >&6; }
31365else
cristy8b350f62009-11-15 23:12:43 +000031366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031367$as_echo "no" >&6; }
31368fi
31369
31370
31371# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
31372set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031374$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031375if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031376 $as_echo_n "(cached) " >&6
31377else
31378 case $LPDelegate in
31379 [\\/]* | ?:[\\/]*)
31380 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
31381 ;;
31382 *)
31383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31384for as_dir in $PATH
31385do
31386 IFS=$as_save_IFS
31387 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031388 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31390 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031392 break 2
31393 fi
31394done
cristy8b350f62009-11-15 23:12:43 +000031395 done
cristy3ed852e2009-09-05 21:47:34 +000031396IFS=$as_save_IFS
31397
31398 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
31399 ;;
31400esac
31401fi
31402LPDelegate=$ac_cv_path_LPDelegate
31403if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031405$as_echo "$LPDelegate" >&6; }
31406else
cristy8b350f62009-11-15 23:12:43 +000031407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031408$as_echo "no" >&6; }
31409fi
31410
31411
31412# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
31413set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031415$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031416if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031417 $as_echo_n "(cached) " >&6
31418else
31419 case $LPRDelegate in
31420 [\\/]* | ?:[\\/]*)
31421 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
31422 ;;
31423 *)
31424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31425for as_dir in $PATH
31426do
31427 IFS=$as_save_IFS
31428 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031429 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31431 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031433 break 2
31434 fi
31435done
cristy8b350f62009-11-15 23:12:43 +000031436 done
cristy3ed852e2009-09-05 21:47:34 +000031437IFS=$as_save_IFS
31438
31439 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
31440 ;;
31441esac
31442fi
31443LPRDelegate=$ac_cv_path_LPRDelegate
31444if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031446$as_echo "$LPRDelegate" >&6; }
31447else
cristy8b350f62009-11-15 23:12:43 +000031448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031449$as_echo "no" >&6; }
31450fi
31451
31452
31453# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
31454set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031456$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031457if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031458 $as_echo_n "(cached) " >&6
31459else
31460 case $LZWDecodeDelegate in
31461 [\\/]* | ?:[\\/]*)
31462 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
31463 ;;
31464 *)
31465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31466for as_dir in $PATH
31467do
31468 IFS=$as_save_IFS
31469 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031470 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31472 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031474 break 2
31475 fi
31476done
cristy8b350f62009-11-15 23:12:43 +000031477 done
cristy3ed852e2009-09-05 21:47:34 +000031478IFS=$as_save_IFS
31479
31480 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
31481 ;;
31482esac
31483fi
31484LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
31485if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031487$as_echo "$LZWDecodeDelegate" >&6; }
31488else
cristy8b350f62009-11-15 23:12:43 +000031489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031490$as_echo "no" >&6; }
31491fi
31492
31493
31494# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
31495set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031497$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031498if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031499 $as_echo_n "(cached) " >&6
31500else
31501 case $LZWEncodeDelegate in
31502 [\\/]* | ?:[\\/]*)
31503 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
31504 ;;
31505 *)
31506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31507for as_dir in $PATH
31508do
31509 IFS=$as_save_IFS
31510 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031511 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31513 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031515 break 2
31516 fi
31517done
cristy8b350f62009-11-15 23:12:43 +000031518 done
cristy3ed852e2009-09-05 21:47:34 +000031519IFS=$as_save_IFS
31520
31521 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
31522 ;;
31523esac
31524fi
31525LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
31526if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031528$as_echo "$LZWEncodeDelegate" >&6; }
31529else
cristy8b350f62009-11-15 23:12:43 +000031530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031531$as_echo "no" >&6; }
31532fi
31533
31534
31535# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
31536set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031538$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031539if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031540 $as_echo_n "(cached) " >&6
31541else
31542 case $LaunchDelegate in
31543 [\\/]* | ?:[\\/]*)
31544 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
31545 ;;
31546 *)
31547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31548for as_dir in $PATH
31549do
31550 IFS=$as_save_IFS
31551 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031552 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31554 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031556 break 2
31557 fi
31558done
cristy8b350f62009-11-15 23:12:43 +000031559 done
cristy3ed852e2009-09-05 21:47:34 +000031560IFS=$as_save_IFS
31561
31562 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
31563 ;;
31564esac
31565fi
31566LaunchDelegate=$ac_cv_path_LaunchDelegate
31567if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031569$as_echo "$LaunchDelegate" >&6; }
31570else
cristy8b350f62009-11-15 23:12:43 +000031571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031572$as_echo "no" >&6; }
31573fi
31574
31575
31576# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
31577set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031579$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031580if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031581 $as_echo_n "(cached) " >&6
31582else
31583 case $MANDelegate in
31584 [\\/]* | ?:[\\/]*)
31585 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
31586 ;;
31587 *)
31588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31589for as_dir in $PATH
31590do
31591 IFS=$as_save_IFS
31592 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031593 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31595 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031597 break 2
31598 fi
31599done
cristy8b350f62009-11-15 23:12:43 +000031600 done
cristy3ed852e2009-09-05 21:47:34 +000031601IFS=$as_save_IFS
31602
31603 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
31604 ;;
31605esac
31606fi
31607MANDelegate=$ac_cv_path_MANDelegate
31608if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031610$as_echo "$MANDelegate" >&6; }
31611else
cristy8b350f62009-11-15 23:12:43 +000031612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031613$as_echo "no" >&6; }
31614fi
31615
31616
31617# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
31618set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031620$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031621if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031622 $as_echo_n "(cached) " >&6
31623else
31624 case $MPEGDecodeDelegate in
31625 [\\/]* | ?:[\\/]*)
31626 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
31627 ;;
31628 *)
31629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31630for as_dir in $PATH
31631do
31632 IFS=$as_save_IFS
31633 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031634 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31636 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031638 break 2
31639 fi
31640done
cristy8b350f62009-11-15 23:12:43 +000031641 done
cristy3ed852e2009-09-05 21:47:34 +000031642IFS=$as_save_IFS
31643
31644 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
31645 ;;
31646esac
31647fi
31648MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
31649if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031651$as_echo "$MPEGDecodeDelegate" >&6; }
31652else
cristy8b350f62009-11-15 23:12:43 +000031653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031654$as_echo "no" >&6; }
31655fi
31656
31657
31658# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
31659set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031661$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031662if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031663 $as_echo_n "(cached) " >&6
31664else
31665 case $MPEGEncodeDelegate in
31666 [\\/]* | ?:[\\/]*)
31667 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
31668 ;;
31669 *)
31670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31671for as_dir in $PATH
31672do
31673 IFS=$as_save_IFS
31674 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031675 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31677 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031679 break 2
31680 fi
31681done
cristy8b350f62009-11-15 23:12:43 +000031682 done
cristy3ed852e2009-09-05 21:47:34 +000031683IFS=$as_save_IFS
31684
31685 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
31686 ;;
31687esac
31688fi
31689MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
31690if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031692$as_echo "$MPEGEncodeDelegate" >&6; }
31693else
cristy8b350f62009-11-15 23:12:43 +000031694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031695$as_echo "no" >&6; }
31696fi
31697
31698
cristy935c86e2010-06-05 23:50:07 +000031699# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
31700set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
31701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31702$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031703if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000031704 $as_echo_n "(cached) " >&6
31705else
31706 case $MrSIDDecodeDelegate in
31707 [\\/]* | ?:[\\/]*)
31708 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
31709 ;;
31710 *)
31711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31712for as_dir in $PATH
31713do
31714 IFS=$as_save_IFS
31715 test -z "$as_dir" && as_dir=.
31716 for ac_exec_ext in '' $ac_executable_extensions; do
31717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31718 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31720 break 2
31721 fi
31722done
31723 done
31724IFS=$as_save_IFS
31725
31726 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
31727 ;;
31728esac
31729fi
31730MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
31731if test -n "$MrSIDDecodeDelegate"; then
31732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
31733$as_echo "$MrSIDDecodeDelegate" >&6; }
31734else
31735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31736$as_echo "no" >&6; }
31737fi
31738
31739
cristy3ed852e2009-09-05 21:47:34 +000031740# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
31741set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031743$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031744if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031745 $as_echo_n "(cached) " >&6
31746else
31747 case $MVDelegate in
31748 [\\/]* | ?:[\\/]*)
31749 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
31750 ;;
31751 *)
31752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31753for as_dir in $PATH
31754do
31755 IFS=$as_save_IFS
31756 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031757 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31759 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031761 break 2
31762 fi
31763done
cristy8b350f62009-11-15 23:12:43 +000031764 done
cristy3ed852e2009-09-05 21:47:34 +000031765IFS=$as_save_IFS
31766
31767 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
31768 ;;
31769esac
31770fi
31771MVDelegate=$ac_cv_path_MVDelegate
31772if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031774$as_echo "$MVDelegate" >&6; }
31775else
cristy8b350f62009-11-15 23:12:43 +000031776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031777$as_echo "no" >&6; }
31778fi
31779
31780
31781# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
31782set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031784$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031785if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031786 $as_echo_n "(cached) " >&6
31787else
31788 case $PCLDelegate in
31789 [\\/]* | ?:[\\/]*)
31790 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
31791 ;;
31792 *)
31793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31794for as_dir in $PATH
31795do
31796 IFS=$as_save_IFS
31797 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031798 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31800 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031802 break 2
31803 fi
31804done
cristy8b350f62009-11-15 23:12:43 +000031805 done
cristy3ed852e2009-09-05 21:47:34 +000031806IFS=$as_save_IFS
31807
31808 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
31809 ;;
31810esac
31811fi
31812PCLDelegate=$ac_cv_path_PCLDelegate
31813if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031815$as_echo "$PCLDelegate" >&6; }
31816else
cristy8b350f62009-11-15 23:12:43 +000031817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031818$as_echo "no" >&6; }
31819fi
31820
31821
31822# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
31823set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031825$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031826if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031827 $as_echo_n "(cached) " >&6
31828else
31829 case $PGPDecodeDelegate in
31830 [\\/]* | ?:[\\/]*)
31831 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
31832 ;;
31833 *)
31834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31835for as_dir in $PATH
31836do
31837 IFS=$as_save_IFS
31838 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031839 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31841 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031843 break 2
31844 fi
31845done
cristy8b350f62009-11-15 23:12:43 +000031846 done
cristy3ed852e2009-09-05 21:47:34 +000031847IFS=$as_save_IFS
31848
31849 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
31850 ;;
31851esac
31852fi
31853PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
31854if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031856$as_echo "$PGPDecodeDelegate" >&6; }
31857else
cristy8b350f62009-11-15 23:12:43 +000031858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031859$as_echo "no" >&6; }
31860fi
31861
31862
31863# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
31864set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031866$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031867if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031868 $as_echo_n "(cached) " >&6
31869else
31870 case $POVDelegate in
31871 [\\/]* | ?:[\\/]*)
31872 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
31873 ;;
31874 *)
31875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31876for as_dir in $PATH
31877do
31878 IFS=$as_save_IFS
31879 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031880 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31882 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031884 break 2
31885 fi
31886done
cristy8b350f62009-11-15 23:12:43 +000031887 done
cristy3ed852e2009-09-05 21:47:34 +000031888IFS=$as_save_IFS
31889
31890 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
31891 ;;
31892esac
31893fi
31894POVDelegate=$ac_cv_path_POVDelegate
31895if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031897$as_echo "$POVDelegate" >&6; }
31898else
cristy8b350f62009-11-15 23:12:43 +000031899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031900$as_echo "no" >&6; }
31901fi
31902
31903
31904for ac_prog in gsx gsc "$PSDelegateDefault"
31905do
31906 # Extract the first word of "$ac_prog", so it can be a program name with args.
31907set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031909$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031910if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031911 $as_echo_n "(cached) " >&6
31912else
31913 case $PSDelegate in
31914 [\\/]* | ?:[\\/]*)
31915 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31916 ;;
31917 *)
31918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31919for as_dir in $PATH
31920do
31921 IFS=$as_save_IFS
31922 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031923 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31925 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031927 break 2
31928 fi
31929done
cristy8b350f62009-11-15 23:12:43 +000031930 done
cristy3ed852e2009-09-05 21:47:34 +000031931IFS=$as_save_IFS
31932
31933 ;;
31934esac
31935fi
31936PSDelegate=$ac_cv_path_PSDelegate
31937if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031939$as_echo "$PSDelegate" >&6; }
31940else
cristy8b350f62009-11-15 23:12:43 +000031941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031942$as_echo "no" >&6; }
31943fi
31944
31945
31946 test -n "$PSDelegate" && break
31947done
31948test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31949
31950# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31951set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031953$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031954if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031955 $as_echo_n "(cached) " >&6
31956else
31957 case $RLEEncodeDelegate in
31958 [\\/]* | ?:[\\/]*)
31959 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31960 ;;
31961 *)
31962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31963for as_dir in $PATH
31964do
31965 IFS=$as_save_IFS
31966 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031967 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31969 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031971 break 2
31972 fi
31973done
cristy8b350f62009-11-15 23:12:43 +000031974 done
cristy3ed852e2009-09-05 21:47:34 +000031975IFS=$as_save_IFS
31976
31977 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31978 ;;
31979esac
31980fi
31981RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31982if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031984$as_echo "$RLEEncodeDelegate" >&6; }
31985else
cristy8b350f62009-11-15 23:12:43 +000031986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031987$as_echo "no" >&6; }
31988fi
31989
31990
31991# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31992set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031994$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031995if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031996 $as_echo_n "(cached) " >&6
31997else
31998 case $RMDelegate in
31999 [\\/]* | ?:[\\/]*)
32000 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
32001 ;;
32002 *)
32003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32004for as_dir in $PATH
32005do
32006 IFS=$as_save_IFS
32007 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032008 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32010 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032012 break 2
32013 fi
32014done
cristy8b350f62009-11-15 23:12:43 +000032015 done
cristy3ed852e2009-09-05 21:47:34 +000032016IFS=$as_save_IFS
32017
32018 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
32019 ;;
32020esac
32021fi
32022RMDelegate=$ac_cv_path_RMDelegate
32023if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032025$as_echo "$RMDelegate" >&6; }
32026else
cristy8b350f62009-11-15 23:12:43 +000032027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032028$as_echo "no" >&6; }
32029fi
32030
32031
cristy4689cf02010-02-17 21:15:45 +000032032# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
32033set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
32034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32035$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032036if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000032037 $as_echo_n "(cached) " >&6
32038else
32039 case $RSVGDecodeDelegate in
32040 [\\/]* | ?:[\\/]*)
32041 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
32042 ;;
32043 *)
32044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32045for as_dir in $PATH
32046do
32047 IFS=$as_save_IFS
32048 test -z "$as_dir" && as_dir=.
32049 for ac_exec_ext in '' $ac_executable_extensions; do
32050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32051 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32053 break 2
32054 fi
32055done
32056 done
32057IFS=$as_save_IFS
32058
32059 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
32060 ;;
32061esac
32062fi
32063RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
32064if test -n "$RSVGDecodeDelegate"; then
32065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
32066$as_echo "$RSVGDecodeDelegate" >&6; }
32067else
32068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32069$as_echo "no" >&6; }
32070fi
32071
32072
cristy3ed852e2009-09-05 21:47:34 +000032073# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
32074set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032076$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032077if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032078 $as_echo_n "(cached) " >&6
32079else
32080 case $SCANDecodeDelegate in
32081 [\\/]* | ?:[\\/]*)
32082 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
32083 ;;
32084 *)
32085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32086for as_dir in $PATH
32087do
32088 IFS=$as_save_IFS
32089 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032090 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32092 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032094 break 2
32095 fi
32096done
cristy8b350f62009-11-15 23:12:43 +000032097 done
cristy3ed852e2009-09-05 21:47:34 +000032098IFS=$as_save_IFS
32099
32100 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
32101 ;;
32102esac
32103fi
32104SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
32105if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032107$as_echo "$SCANDecodeDelegate" >&6; }
32108else
cristy8b350f62009-11-15 23:12:43 +000032109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032110$as_echo "no" >&6; }
32111fi
32112
32113
32114# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
32115set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032117$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032118if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032119 $as_echo_n "(cached) " >&6
32120else
32121 case $TXTDelegate in
32122 [\\/]* | ?:[\\/]*)
32123 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
32124 ;;
32125 *)
32126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32127for as_dir in $PATH
32128do
32129 IFS=$as_save_IFS
32130 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032131 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32133 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032135 break 2
32136 fi
32137done
cristy8b350f62009-11-15 23:12:43 +000032138 done
cristy3ed852e2009-09-05 21:47:34 +000032139IFS=$as_save_IFS
32140
32141 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
32142 ;;
32143esac
32144fi
32145TXTDelegate=$ac_cv_path_TXTDelegate
32146if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032148$as_echo "$TXTDelegate" >&6; }
32149else
cristy8b350f62009-11-15 23:12:43 +000032150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032151$as_echo "no" >&6; }
32152fi
32153
32154
cristy5ac9ac82010-07-29 13:24:24 +000032155# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
32156set dummy "$UniconvertorDelegateDefault"; ac_word=$2
32157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32158$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032159if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000032160 $as_echo_n "(cached) " >&6
32161else
32162 case $UniconvertorDelegate in
32163 [\\/]* | ?:[\\/]*)
32164 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
32165 ;;
32166 *)
32167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32168for as_dir in $PATH
32169do
32170 IFS=$as_save_IFS
32171 test -z "$as_dir" && as_dir=.
32172 for ac_exec_ext in '' $ac_executable_extensions; do
32173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32174 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
32175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32176 break 2
32177 fi
32178done
32179 done
32180IFS=$as_save_IFS
32181
32182 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
32183 ;;
32184esac
32185fi
32186UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
32187if test -n "$UniconvertorDelegate"; then
32188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
32189$as_echo "$UniconvertorDelegate" >&6; }
32190else
32191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32192$as_echo "no" >&6; }
32193fi
32194
32195
cristy3ed852e2009-09-05 21:47:34 +000032196# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
32197set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032199$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032200if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032201 $as_echo_n "(cached) " >&6
32202else
32203 case $WMFDecodeDelegate in
32204 [\\/]* | ?:[\\/]*)
32205 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
32206 ;;
32207 *)
32208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32209for as_dir in $PATH
32210do
32211 IFS=$as_save_IFS
32212 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032213 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32215 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032217 break 2
32218 fi
32219done
cristy8b350f62009-11-15 23:12:43 +000032220 done
cristy3ed852e2009-09-05 21:47:34 +000032221IFS=$as_save_IFS
32222
32223 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
32224 ;;
32225esac
32226fi
32227WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
32228if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032230$as_echo "$WMFDecodeDelegate" >&6; }
32231else
cristy8b350f62009-11-15 23:12:43 +000032232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032233$as_echo "no" >&6; }
32234fi
32235
32236
32237# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
32238set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032240$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032241if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032242 $as_echo_n "(cached) " >&6
32243else
32244 case $WWWDecodeDelegate in
32245 [\\/]* | ?:[\\/]*)
32246 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
32247 ;;
32248 *)
32249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32250for as_dir in $PATH
32251do
32252 IFS=$as_save_IFS
32253 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032254 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32256 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032258 break 2
32259 fi
32260done
cristy8b350f62009-11-15 23:12:43 +000032261 done
cristy3ed852e2009-09-05 21:47:34 +000032262IFS=$as_save_IFS
32263
32264 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
32265 ;;
32266esac
32267fi
32268WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
32269if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032271$as_echo "$WWWDecodeDelegate" >&6; }
32272else
cristy8b350f62009-11-15 23:12:43 +000032273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032274$as_echo "no" >&6; }
32275fi
32276
32277
32278# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
32279set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032281$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032282if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032283 $as_echo_n "(cached) " >&6
32284else
32285 case $XPSDelegate in
32286 [\\/]* | ?:[\\/]*)
32287 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
32288 ;;
32289 *)
32290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32291for as_dir in $PATH
32292do
32293 IFS=$as_save_IFS
32294 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032295 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32297 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032299 break 2
32300 fi
32301done
cristy8b350f62009-11-15 23:12:43 +000032302 done
cristy3ed852e2009-09-05 21:47:34 +000032303IFS=$as_save_IFS
32304
32305 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
32306 ;;
32307esac
32308fi
32309XPSDelegate=$ac_cv_path_XPSDelegate
32310if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032312$as_echo "$XPSDelegate" >&6; }
32313else
cristy8b350f62009-11-15 23:12:43 +000032314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032315$as_echo "no" >&6; }
32316fi
32317
32318
32319# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
32320set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032322$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032323if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032324 $as_echo_n "(cached) " >&6
32325else
32326 case $ZipDelegate in
32327 [\\/]* | ?:[\\/]*)
32328 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
32329 ;;
32330 *)
32331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32332for as_dir in $PATH
32333do
32334 IFS=$as_save_IFS
32335 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032336 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32338 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032340 break 2
32341 fi
32342done
cristy8b350f62009-11-15 23:12:43 +000032343 done
cristy3ed852e2009-09-05 21:47:34 +000032344IFS=$as_save_IFS
32345
32346 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
32347 ;;
32348esac
32349fi
32350ZipDelegate=$ac_cv_path_ZipDelegate
32351if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032353$as_echo "$ZipDelegate" >&6; }
32354else
cristy8b350f62009-11-15 23:12:43 +000032355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032356$as_echo "no" >&6; }
32357fi
32358
32359
32360
32361# Prefer lpr to lp; lp needs options tacked on.
32362if test "$LPRDelegate" != no; then
32363 PrintDelegate="$LPRDelegate"
32364else
32365 PrintDelegate="$LPDelegate -c -s"
32366fi
32367
32368
32369# Installed ImageMagick utiltity paths
32370ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
32371DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
32372MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
32373
32374# Set delegate booleans
32375have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
32376have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
32377have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
32378have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
32379have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000032380have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000032381have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
32382have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000032383have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
32384have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
32385
32386#
32387# Test for font directories
32388#
32389type_include_files=''
32390
cristy430a7312010-01-21 20:44:04 +000032391# Dejavu fonts.
32392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
32393$as_echo_n "checking for Dejavu fonts directory... " >&6; }
32394dejavu_font_dir=''
32395if test "${with_dejavu_font_dir}" != 'default'; then
32396 dejavu_font_dir="${with_dejavu_font_dir}/"
32397else
32398 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
32399 if test -f "${font_dir}DejaVuSerif.ttf"; then
32400 dejavu_font_dir="${font_dir}"
32401 break 1
32402 fi
32403 done
32404fi
32405if test "${dejavu_font_dir}x" != 'x'; then
32406 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
32407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
32408$as_echo "$dejavu_font_dir" >&6; }
32409else
32410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
32411$as_echo "not found!" >&6; };
32412fi
32413
32414
cristy3ed852e2009-09-05 21:47:34 +000032415# Windows
32416windows_font_dir=''
32417if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
32418 windows_font_dir="${with_windows_font_dir}/"
32419fi
cristy430a7312010-01-21 20:44:04 +000032420if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000032421 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
32422 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
32423 fi
32424 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
32425 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
32426 fi
32427 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
32428 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
32429 fi
32430fi
cristy430a7312010-01-21 20:44:04 +000032431if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000032432 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
32433fi
32434
32435
32436# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000032437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000032438$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
32439ghostscript_font_dir=''
32440if test "${with_gs_font_dir}" != 'default'; then
32441 ghostscript_font_dir="${with_gs_font_dir}/"
32442else
32443 if test "${native_win32_build}" = 'yes'; then
32444 # Native Windows Build
32445 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
32446 if test -f "${font_dir}a010013l.pfb"; then
32447 ghostscript_font_dir="$font_dir"
32448 break 1
32449 fi
32450 done
32451 if test "${PSDelegate}" != 'gswin32c'; then
32452 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
32453 fi
32454 else
32455 # Linux / Mac OS X / Unix Build
32456 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
32457 if test -f "${font_dir}a010013l.pfb"; then
32458 ghostscript_font_dir="${font_dir}"
32459 break 1
32460 fi
32461 done
32462 if test "${ghostscript_font_dir}x" = 'x'; then
32463 if test "$PSDelegate" != 'gs'; then
32464 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
32465 fi
32466 fi
32467 fi
32468fi
32469if test "${ghostscript_font_dir}x" != 'x'; then
32470 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000032471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000032472$as_echo "$ghostscript_font_dir" >&6; }
32473else
cristy8b350f62009-11-15 23:12:43 +000032474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000032475$as_echo "not found!" >&6; };
32476fi
32477
32478case "${build_os}" in
32479 mingw* )
32480 PSDelegate=`$WinPathScript "$PSDelegate" 1`
32481 ;;
32482esac
32483
32484
32485
32486#
32487# Handle case where user doesn't want frozen paths
32488#
32489if test "$with_frozenpaths" != 'yes'; then
32490 # Re-set delegate definitions to default (no paths)
32491 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032492 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
32493 BZIPDelegate="$BZIPDelegateDefault"
32494 BrowseDelegate="$BrowseDelegateDefault"
32495 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
32496 CatDelegate="$CatDelegateDefault"
32497 ConvertDelegate="$ConvertDelegateDefault"
32498 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
32499 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
32500 EchoDelegate="$EchoDelegateDefault"
32501 EditorDelegate="$EditorDelegateDefault"
32502 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
32503 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
32504 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
32505 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
32506 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
32507 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
32508 LPDelegate="$LPDelegateDefault"
32509 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
32510 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
32511 LaunchDelegate="$LaunchDelegateDefault"
32512 MANDelegate="$MANDelegateDefault"
32513 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
32514 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032515 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000032516 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
32517 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032518 PCLDelegate="$PCLDelegateDefault"
32519 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
32520 POVDelegate="$POVDelegateDefault"
32521 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032522 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
32523 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000032524 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032525 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
32526 ShowImageDelegate="$ShowImageDelegateDefault"
32527 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000032528 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032529 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
32530 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
32531 XPSDelegate="$XPSDelegateDefault"
32532 ZipDelegate="$ZipDelegateDefault"
32533fi
32534
32535# Delegate substitutions
32536
32537
32538
32539
32540
32541
32542
32543
32544
32545
32546
32547
32548
32549
32550
32551
32552
32553
32554
32555
32556
32557
32558
32559
32560
32561
32562
32563
32564
32565
32566
32567
32568
32569
32570
32571
32572
32573
32574
32575
32576
32577
32578#
32579# RPM support.
32580#
32581RPM=''
32582for ac_prog in gnutar gtar tar
32583do
32584 # Extract the first word of "$ac_prog", so it can be a program name with args.
32585set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032587$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032588if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032589 $as_echo_n "(cached) " >&6
32590else
32591 if test -n "$TAR"; then
32592 ac_cv_prog_TAR="$TAR" # Let the user override the test.
32593else
32594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32595for as_dir in $PATH
32596do
32597 IFS=$as_save_IFS
32598 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032599 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32601 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032603 break 2
32604 fi
32605done
cristy8b350f62009-11-15 23:12:43 +000032606 done
cristy3ed852e2009-09-05 21:47:34 +000032607IFS=$as_save_IFS
32608
32609fi
32610fi
32611TAR=$ac_cv_prog_TAR
32612if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000032613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000032614$as_echo "$TAR" >&6; }
32615else
cristy8b350f62009-11-15 23:12:43 +000032616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032617$as_echo "no" >&6; }
32618fi
32619
32620
32621 test -n "$TAR" && break
32622done
32623
32624for ac_prog in perl
32625do
32626 # Extract the first word of "$ac_prog", so it can be a program name with args.
32627set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032629$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032630if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032631 $as_echo_n "(cached) " >&6
32632else
32633 if test -n "$PERL"; then
32634 ac_cv_prog_PERL="$PERL" # Let the user override the test.
32635else
32636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32637for as_dir in $PATH
32638do
32639 IFS=$as_save_IFS
32640 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032641 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32643 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032645 break 2
32646 fi
32647done
cristy8b350f62009-11-15 23:12:43 +000032648 done
cristy3ed852e2009-09-05 21:47:34 +000032649IFS=$as_save_IFS
32650
32651fi
32652fi
32653PERL=$ac_cv_prog_PERL
32654if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032656$as_echo "$PERL" >&6; }
32657else
cristy8b350f62009-11-15 23:12:43 +000032658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032659$as_echo "no" >&6; }
32660fi
32661
32662
32663 test -n "$PERL" && break
32664done
32665
32666for ac_prog in rpmbuild rpm
32667do
32668 # Extract the first word of "$ac_prog", so it can be a program name with args.
32669set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032671$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032672if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032673 $as_echo_n "(cached) " >&6
32674else
32675 if test -n "$RPM"; then
32676 ac_cv_prog_RPM="$RPM" # Let the user override the test.
32677else
32678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32679for as_dir in $PATH
32680do
32681 IFS=$as_save_IFS
32682 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032683 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32685 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032687 break 2
32688 fi
32689done
cristy8b350f62009-11-15 23:12:43 +000032690 done
cristy3ed852e2009-09-05 21:47:34 +000032691IFS=$as_save_IFS
32692
32693fi
32694fi
32695RPM=$ac_cv_prog_RPM
32696if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000032697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000032698$as_echo "$RPM" >&6; }
32699else
cristy8b350f62009-11-15 23:12:43 +000032700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032701$as_echo "no" >&6; }
32702fi
32703
32704
32705 test -n "$RPM" && break
32706done
32707
32708
cristy73bd4a52010-10-05 11:24:23 +000032709ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
32710
32711
32712AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
32713
32714
32715AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
32716
32717
32718AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
32719
32720
32721 if test "x$RPM" != "x" ; then
32722 RPM_DELEGATE_TRUE=
32723 RPM_DELEGATE_FALSE='#'
32724else
32725 RPM_DELEGATE_TRUE='#'
32726 RPM_DELEGATE_FALSE=
32727fi
32728
cristy3ed852e2009-09-05 21:47:34 +000032729
32730#
32731# 7ZIP support (http://p7zip.sourceforge.net/)
32732#
32733P7ZIP=''
32734for ac_prog in 7za
32735do
32736 # Extract the first word of "$ac_prog", so it can be a program name with args.
32737set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032739$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032740if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032741 $as_echo_n "(cached) " >&6
32742else
32743 if test -n "$P7ZIP"; then
32744 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
32745else
32746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32747for as_dir in $PATH
32748do
32749 IFS=$as_save_IFS
32750 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032751 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32753 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032755 break 2
32756 fi
32757done
cristy8b350f62009-11-15 23:12:43 +000032758 done
cristy3ed852e2009-09-05 21:47:34 +000032759IFS=$as_save_IFS
32760
32761fi
32762fi
32763P7ZIP=$ac_cv_prog_P7ZIP
32764if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032766$as_echo "$P7ZIP" >&6; }
32767else
cristy8b350f62009-11-15 23:12:43 +000032768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032769$as_echo "no" >&6; }
32770fi
32771
32772
32773 test -n "$P7ZIP" && break
32774done
32775
32776
cristy73bd4a52010-10-05 11:24:23 +000032777 if test "x$P7ZIP" != "x" ; then
32778 P7ZIP_DELEGATE_TRUE=
32779 P7ZIP_DELEGATE_FALSE='#'
32780else
32781 P7ZIP_DELEGATE_TRUE='#'
32782 P7ZIP_DELEGATE_FALSE=
32783fi
32784
cristy3ed852e2009-09-05 21:47:34 +000032785
32786#
32787# ZIP support (http://www.info-zip.org/Zip.html)
32788#
32789ZIP=''
32790for ac_prog in zip
32791do
32792 # Extract the first word of "$ac_prog", so it can be a program name with args.
32793set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032795$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032796if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032797 $as_echo_n "(cached) " >&6
32798else
32799 if test -n "$ZIP"; then
32800 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
32801else
32802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32803for as_dir in $PATH
32804do
32805 IFS=$as_save_IFS
32806 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032807 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32809 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032811 break 2
32812 fi
32813done
cristy8b350f62009-11-15 23:12:43 +000032814 done
cristy3ed852e2009-09-05 21:47:34 +000032815IFS=$as_save_IFS
32816
32817fi
32818fi
32819ZIP=$ac_cv_prog_ZIP
32820if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032822$as_echo "$ZIP" >&6; }
32823else
cristy8b350f62009-11-15 23:12:43 +000032824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032825$as_echo "no" >&6; }
32826fi
32827
32828
32829 test -n "$ZIP" && break
32830done
32831
32832
cristy73bd4a52010-10-05 11:24:23 +000032833 if test "x$ZIP" != "x" ; then
32834 ZIP_DELEGATE_TRUE=
32835 ZIP_DELEGATE_FALSE='#'
32836else
32837 ZIP_DELEGATE_TRUE='#'
32838 ZIP_DELEGATE_FALSE=
32839fi
32840
cristy3ed852e2009-09-05 21:47:34 +000032841
32842#
32843# GhostPCL related configuration.
32844#
32845PCLColorDevice=ppmraw
32846PCLCMYKDevice=bmpsep8
32847PCLMonoDevice=pbmraw
32848if test -z "$PCLVersion"; then
32849 PCLVersion='unknown'
32850fi
32851if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032853$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032855$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032857$as_echo "" >&6; }
32858 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000032859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032860$as_echo_n "checking for pcl color device... " >&6; }
32861 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32862 :
32863 else
32864 PCLColorDevice=ppmraw
32865 fi
cristy8b350f62009-11-15 23:12:43 +000032866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032867$as_echo "$PCLColorDevice" >&6; }
32868
32869 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032871$as_echo_n "checking for pcl CMYK device... " >&6; }
32872 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32873 :
32874 else
32875 PCLCMYKDevice=$PCLColorDevice
32876 fi
cristy8b350f62009-11-15 23:12:43 +000032877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032878$as_echo "$PCLCMYKDevice" >&6; }
32879
32880 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032882$as_echo_n "checking for pcl mono device... " >&6; }
32883 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32884 :
32885 else
32886 PCLMonoDevice=$PCLColorDevice
32887 fi
cristy8b350f62009-11-15 23:12:43 +000032888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032889$as_echo "$PCLMonoDevice" >&6; }
32890fi
32891
32892
32893
32894
32895
32896
32897#
32898# GhostXPS related configuration.
32899#
32900XPSColorDevice=ppmraw
32901XPSCMYKDevice=bmpsep8
32902XPSMonoDevice=pbmraw
32903if test -z "$XPSVersion"; then
32904 XPSVersion='unknown'
32905fi
32906if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032908$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032910$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032912$as_echo "" >&6; }
32913 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032915$as_echo_n "checking for xps color device... " >&6; }
32916 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32917 :
32918 else
32919 XPSColorDevice=ppmraw
32920 fi
cristy8b350f62009-11-15 23:12:43 +000032921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032922$as_echo "$XPSColorDevice" >&6; }
32923
32924 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032926$as_echo_n "checking for xps CMYK device... " >&6; }
32927 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32928 :
32929 else
32930 XPSCMYKDevice=$XPSColorDevice
32931 fi
cristy8b350f62009-11-15 23:12:43 +000032932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032933$as_echo "$XPSCMYKDevice" >&6; }
32934
32935 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032937$as_echo_n "checking for xps mono device... " >&6; }
32938 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32939 :
32940 else
32941 XPSMonoDevice=$XPSColorDevice
32942 fi
cristy8b350f62009-11-15 23:12:43 +000032943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032944$as_echo "$XPSMonoDevice" >&6; }
32945fi
32946
32947
32948
32949
32950
32951
32952#
32953# Ghostscript related configuration.
32954#
cristya97426c2011-02-04 01:41:27 +000032955GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000032956GSColorDevice=pnmraw
32957GSCMYKDevice=pam
32958GSMonoDevice=pbmraw
32959GSPDFDevice=pdfwrite
32960GSPSDevice=pswrite
32961GSEPSDevice=epswrite
32962GSVersion='unknown'
32963if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032965$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032967$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032969$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032971$as_echo_n "checking for Ghostscript version... " >&6; }
32972 if GSVersion=`$PSDelegate --version`; then
32973 :
32974 else
32975 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32976 fi
cristy8b350f62009-11-15 23:12:43 +000032977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032978$as_echo "$GSVersion" >&6; }
32979
32980 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000032981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032982$as_echo_n "checking for gs alpha device... " >&6; }
32983 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32984 :
32985 else
32986 GSAlphaDevice=pnmraw
32987 fi
cristy8b350f62009-11-15 23:12:43 +000032988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032989$as_echo "$GSAlphaDevice" >&6; }
32990
32991 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032993$as_echo_n "checking for gs color device... " >&6; }
32994 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32995 :
32996 else
32997 GSColorDevice=pnmraw
32998 fi
cristy8b350f62009-11-15 23:12:43 +000032999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033000$as_echo "$GSColorDevice" >&6; }
33001
33002 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000033003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033004$as_echo_n "checking for gs CMYK device... " >&6; }
33005 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33006 :
33007 else
33008 GSCMYKDevice=bmpsep8
33009 fi
cristy8b350f62009-11-15 23:12:43 +000033010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033011$as_echo "$GSCMYKDevice" >&6; }
33012
33013 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000033014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033015$as_echo_n "checking for gs mono device... " >&6; }
33016 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33017 :
33018 else
33019 GSMonoDevice=$GSColorDevice
33020 fi
cristy8b350f62009-11-15 23:12:43 +000033021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033022$as_echo "$GSMonoDevice" >&6; }
33023
33024 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000033025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033026$as_echo_n "checking for gs PDF writing device... " >&6; }
33027 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33028 :
33029 else
33030 GSPDFDevice=nodevice
33031 fi
cristy8b350f62009-11-15 23:12:43 +000033032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033033$as_echo "$GSPDFDevice" >&6; }
33034
33035 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000033036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033037$as_echo_n "checking for gs PS writing device... " >&6; }
33038 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33039 :
33040 else
33041 GSPSDevice=nodevice
33042 fi
cristy8b350f62009-11-15 23:12:43 +000033043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033044$as_echo "$GSPSDevice" >&6; }
33045
33046 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000033047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033048$as_echo_n "checking for gs EPS writing device... " >&6; }
33049 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33050 :
33051 else
33052 GSEPSDevice=nodevice
33053 fi
cristy8b350f62009-11-15 23:12:43 +000033054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033055$as_echo "$GSEPSDevice" >&6; }
33056fi
33057
33058
33059
33060
33061
33062
33063
33064
33065
33066
33067#
33068# PerlMagick-related configuration
33069#
33070
33071# Look for PERL if PerlMagick requested
33072# If name/path of desired PERL interpreter is specified, look for that one first
33073have_perl='no'
33074if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000033075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033076$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000033078$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000033079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000033080$as_echo "" >&6; }
33081 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000033083$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033084if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033085 $as_echo_n "(cached) " >&6
33086else
33087 ac_cv_path_PERL="$with_perl"
33088fi
cristy8b350f62009-11-15 23:12:43 +000033089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033090$as_echo "$ac_cv_path_PERL" >&6; };
33091 PERL=$ac_cv_path_PERL
33092 have_perl="$ac_cv_path_PERL"
33093 else
33094 for ac_prog in perl perl5
33095do
33096 # Extract the first word of "$ac_prog", so it can be a program name with args.
33097set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033099$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033100if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033101 $as_echo_n "(cached) " >&6
33102else
33103 case $PERL in
33104 [\\/]* | ?:[\\/]*)
33105 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
33106 ;;
33107 *)
33108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33109for as_dir in $PATH
33110do
33111 IFS=$as_save_IFS
33112 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033113 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33115 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033117 break 2
33118 fi
33119done
cristy8b350f62009-11-15 23:12:43 +000033120 done
cristy3ed852e2009-09-05 21:47:34 +000033121IFS=$as_save_IFS
33122
33123 ;;
33124esac
33125fi
33126PERL=$ac_cv_path_PERL
33127if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000033128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033129$as_echo "$PERL" >&6; }
33130else
cristy8b350f62009-11-15 23:12:43 +000033131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033132$as_echo "no" >&6; }
33133fi
33134
33135
33136 test -n "$PERL" && break
33137done
33138 if test "$ac_cv_path_PERL"; then
33139 have_perl="$ac_cv_path_PERL"
33140 fi
33141 fi
33142fi
33143
cristy949301e2010-01-06 01:38:40 +000033144if test "$with_perl" != 'yes' ; then
33145 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
33146fi
33147
33148PERL_SUPPORTS_DESTDIR='no'
33149
cristy3ed852e2009-09-05 21:47:34 +000033150with_perl_static='no'
33151with_perl_dynamic='no'
33152if test "$have_perl" != 'no'; then
33153 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
33154 with_perl_static='yes'
33155 fi
33156 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
33157 with_perl_dynamic='yes'
33158 fi
33159 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000033160
33161
33162
33163
33164 if test -n "$PERL"; then :
33165
33166 ax_perl_version="5.8.1"
33167
33168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
33169$as_echo_n "checking for perl version... " >&6; }
33170
33171 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
33172
33173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
33174$as_echo "$perl_version" >&6; }
33175
33176 PERL_VERSION=$perl_version
33177
33178
33179
33180
33181
33182 # Used to indicate true or false condition
33183 ax_compare_version=false
33184
33185 # Convert the two version strings to be compared into a format that
33186 # allows a simple string comparison. The end result is that a version
33187 # string of the form 1.12.5-r617 will be converted to the form
33188 # 0001001200050617. In other words, each number is zero padded to four
33189 # digits, and non digits are removed.
33190
33191 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33192 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33193 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33194 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33195 -e 's/[^0-9]//g'`
33196
33197
33198 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33199 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33200 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33201 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33202 -e 's/[^0-9]//g'`
33203
33204
33205 ax_compare_version=`echo "x$ax_compare_version_A
33206x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
33207
33208
33209
33210 if test "$ax_compare_version" = "true" ; then
33211
33212 :
33213 PERL_SUPPORTS_DESTDIR='yes'
33214
33215 else
33216 :
33217 PERL_SUPPORTS_DESTDIR='no'
33218
33219 fi
33220
33221
33222else
33223
33224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
33225$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
33226 PERL_SUPPORTS_DESTDIR='no'
33227
cristy3ed852e2009-09-05 21:47:34 +000033228fi
cristy73bd4a52010-10-05 11:24:23 +000033229
33230fi
33231 if test "$have_perl" != 'no'; then
33232 WITH_PERL_TRUE=
33233 WITH_PERL_FALSE='#'
33234else
33235 WITH_PERL_TRUE='#'
33236 WITH_PERL_FALSE=
33237fi
33238
33239 if test $with_perl_static = 'yes'; then
33240 WITH_PERL_STATIC_TRUE=
33241 WITH_PERL_STATIC_FALSE='#'
33242else
33243 WITH_PERL_STATIC_TRUE='#'
33244 WITH_PERL_STATIC_FALSE=
33245fi
33246
33247 if test $with_perl_dynamic = 'yes'; then
33248 WITH_PERL_DYNAMIC_TRUE=
33249 WITH_PERL_DYNAMIC_FALSE='#'
33250else
33251 WITH_PERL_DYNAMIC_TRUE='#'
33252 WITH_PERL_DYNAMIC_FALSE=
33253fi
33254
cristy3ed852e2009-09-05 21:47:34 +000033255
33256
33257# Determine path to pick up MagickCore library from for use with building PerlMagick
33258MAGICKCORE_PATH="${LIB_DIR}"
33259if test $with_perl_static = 'yes'; then
33260 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
33261 libtool_objdir=$objdir
33262
33263 # Linker search path to library, followed by -lMagickCore
33264 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
33265fi
33266
33267
33268# Create a simple string containing format names for all delegate libraries
33269DELEGATES=''
33270if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
33271if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
33272if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
33273if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
33274if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
33275if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
33276if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
33277if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
33278if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
33279if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
33280if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
33281if test "$have_jpeg" = 'yes'; then
33282 DELEGATES="$DELEGATES jpeg";
33283 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
33284fi
33285if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000033286if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000033287if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
33288if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000033289if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000033290if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
33291if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
33292if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
33293if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
33294if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
33295if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
33296if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
33297if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
33298if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
33299
33300
33301
33302#
33303# Handle special compiler flags
33304#
33305
33306# Add '-p' if prof source profiling support enabled
33307if test "$enable_prof" = 'yes'; then
33308 CFLAGS="-p $CFLAGS"
33309 CXXFLAGS="-p $CXXFLAGS"
33310 LDFLAGS="-p $LDFLAGS"
33311fi
33312
33313# Add '-pg' if gprof source profiling support enabled
33314if test "$enable_gprof" = 'yes'; then
33315 CFLAGS="-pg $CFLAGS"
33316 CXXFLAGS="-pg $CXXFLAGS"
33317 LDFLAGS="-pg $LDFLAGS"
33318fi
33319
33320# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
33321# This is a gcc-specific feature
33322if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000033324$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033325if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033326 $as_echo_n "(cached) " >&6
33327else
33328 ac_check_lib_save_LIBS=$LIBS
33329LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000033330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033331/* end confdefs.h. */
33332
33333/* Override any GCC internal prototype to avoid an error.
33334 Use char because int might match the return type of a GCC
33335 builtin and then its argument prototype would still apply. */
33336#ifdef __cplusplus
33337extern "C"
33338#endif
33339char _gcov_init ();
33340int
33341main ()
33342{
33343return _gcov_init ();
33344 ;
33345 return 0;
33346}
33347_ACEOF
cristy8b350f62009-11-15 23:12:43 +000033348if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000033349 ac_cv_lib_gcov__gcov_init=yes
33350else
cristy8b350f62009-11-15 23:12:43 +000033351 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000033352fi
cristy8b350f62009-11-15 23:12:43 +000033353rm -f core conftest.err conftest.$ac_objext \
33354 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033355LIBS=$ac_check_lib_save_LIBS
33356fi
cristy8b350f62009-11-15 23:12:43 +000033357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000033358$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000033359if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000033360 cat >>confdefs.h <<_ACEOF
33361#define HAVE_LIBGCOV 1
33362_ACEOF
33363
33364 LIBS="-lgcov $LIBS"
33365
33366fi
33367
cristy8b350f62009-11-15 23:12:43 +000033368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000033369$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033370if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033371 $as_echo_n "(cached) " >&6
33372else
33373 ac_check_lib_save_LIBS=$LIBS
33374LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000033375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033376/* end confdefs.h. */
33377
33378/* Override any GCC internal prototype to avoid an error.
33379 Use char because int might match the return type of a GCC
33380 builtin and then its argument prototype would still apply. */
33381#ifdef __cplusplus
33382extern "C"
33383#endif
33384char __gcov_init ();
33385int
33386main ()
33387{
33388return __gcov_init ();
33389 ;
33390 return 0;
33391}
33392_ACEOF
cristy8b350f62009-11-15 23:12:43 +000033393if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000033394 ac_cv_lib_gcov___gcov_init=yes
33395else
cristy8b350f62009-11-15 23:12:43 +000033396 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000033397fi
cristy8b350f62009-11-15 23:12:43 +000033398rm -f core conftest.err conftest.$ac_objext \
33399 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033400LIBS=$ac_check_lib_save_LIBS
33401fi
cristy8b350f62009-11-15 23:12:43 +000033402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000033403$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000033404if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000033405 cat >>confdefs.h <<_ACEOF
33406#define HAVE_LIBGCOV 1
33407_ACEOF
33408
33409 LIBS="-lgcov $LIBS"
33410
33411fi
33412
33413 case "$target_os" in
33414 darwin*)
33415 OSX_GCOV_LDFLAG="-Wl,-single_module"
33416 ;;
33417 *)
33418 OSX_GCOV_LDFLAG=""
33419 ;;
33420 esac
33421
33422 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
33423 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
33424 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
33425fi
33426
33427#
33428# Build library dependency list for libMagickCore
33429#
33430
33431MAGICK_LIBLTDL='' # Libltdl for build
33432MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
33433MAGICK_LTDLDEPS='' # extra libltdl dependencies
33434if test "$with_ltdl" != 'no'
33435then
33436 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
33437 MAGICK_API_LIBLTDL='-lltdl'
33438 fi
33439 MAGICK_LIBLTDL=${LIBLTDL}
33440 MAGICK_LTDLDEPS=${LTDLDEPS}
33441fi
33442
33443
33444
33445if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000033446 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 $LZMA_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 +000033447else
cristyb1860752011-03-14 00:27:46 +000033448 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 $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_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 +000033449fi
33450
33451
33452#
33453# Remove extraneous spaces from output variables (asthetic)
33454#
33455X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
33456X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
33457X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
33458X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
33459
33460CC=`echo $CC | sed -e 's/ */ /g'`
33461CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
33462CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
33463CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
33464DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
33465DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
33466LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
33467TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
33468MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
33469#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
33470
33471# Pass only user-provided LIBS as "global" libraries
33472LIBS=$USER_LIBS
33473
33474#AC_SUBST(CPPFLAGS)
33475
33476#AC_SUBST(LDFLAGS)
33477#AC_SUBST(X_PRE_LIBS)
33478#AC_SUBST(X_LIBS)
33479#AC_SUBST(X_EXTRA_LIBS)
33480
33481MAGICK_CFLAGS=$CFLAGS
33482MAGICK_CXXFLAGS="$CXXFLAGS"
33483MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
33484MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
33485MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
33486MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
33487
33488
33489
33490
33491
33492
33493
33494
cristyfd9dcd42010-08-08 18:07:02 +000033495
cristy3ed852e2009-09-05 21:47:34 +000033496# Set configured scripts to executable.
33497ac_config_commands="$ac_config_commands default"
33498
33499ac_config_commands="$ac_config_commands MagickCore-config.in"
33500
33501ac_config_commands="$ac_config_commands Magick-config.in"
33502
33503ac_config_commands="$ac_config_commands MagickWand-config.in"
33504
33505ac_config_commands="$ac_config_commands Wand-config.in"
33506
33507ac_config_commands="$ac_config_commands Magick++-config.in"
33508
33509ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
33510
33511
cristy8b350f62009-11-15 23:12:43 +000033512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033513$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000033515$as_echo "Update ImageMagick configuration" >&6; }
33516cat >confcache <<\_ACEOF
33517# This file is a shell script that caches the results of configure
33518# tests run on this system so they can be shared between configure
33519# scripts and configure runs, see configure's option --config-cache.
33520# It is not useful on other systems. If it contains results you don't
33521# want to keep, you may remove or edit it.
33522#
33523# config.status only pays attention to the cache file if you give it
33524# the --recheck option to rerun configure.
33525#
33526# `ac_cv_env_foo' variables (set or unset) will be overridden when
33527# loading this file, other *unset* `ac_cv_foo' will be assigned the
33528# following values.
33529
33530_ACEOF
33531
33532# The following way of writing the cache mishandles newlines in values,
33533# but we know of no workaround that is simple, portable, and efficient.
33534# So, we kill variables containing newlines.
33535# Ultrix sh set writes to stderr and can't be redirected directly,
33536# and sets the high bit in the cache file unless we assign to the vars.
33537(
33538 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33539 eval ac_val=\$$ac_var
33540 case $ac_val in #(
33541 *${as_nl}*)
33542 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000033543 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000033544$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33545 esac
33546 case $ac_var in #(
33547 _ | IFS | as_nl) ;; #(
33548 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000033549 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000033550 esac ;;
33551 esac
33552 done
33553
33554 (set) 2>&1 |
33555 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33556 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000033557 # `set' does not quote correctly, so add quotes: double-quote
33558 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000033559 sed -n \
33560 "s/'/'\\\\''/g;
33561 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33562 ;; #(
33563 *)
33564 # `set' quotes correctly as required by POSIX, so do not add quotes.
33565 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33566 ;;
33567 esac |
33568 sort
33569) |
33570 sed '
33571 /^ac_cv_env_/b end
33572 t clear
33573 :clear
33574 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33575 t end
33576 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33577 :end' >>confcache
33578if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33579 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000033580 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000033581 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000033582$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000033583 if test ! -f "$cache_file" || test -h "$cache_file"; then
33584 cat confcache >"$cache_file"
33585 else
33586 case $cache_file in #(
33587 */* | ?:*)
33588 mv -f confcache "$cache_file"$$ &&
33589 mv -f "$cache_file"$$ "$cache_file" ;; #(
33590 *)
33591 mv -f confcache "$cache_file" ;;
33592 esac
33593 fi
33594 fi
cristy3ed852e2009-09-05 21:47:34 +000033595 else
cristy8b350f62009-11-15 23:12:43 +000033596 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000033597$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33598 fi
33599fi
33600rm -f confcache
33601
33602test "x$prefix" = xNONE && prefix=$ac_default_prefix
33603# Let make expand exec_prefix.
33604test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33605
33606DEFS=-DHAVE_CONFIG_H
33607
33608ac_libobjs=
33609ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000033610U=
cristy3ed852e2009-09-05 21:47:34 +000033611for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33612 # 1. Remove the extension, and $U if already installed.
33613 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33614 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33615 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33616 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000033617 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33618 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000033619done
33620LIBOBJS=$ac_libobjs
33621
33622LTLIBOBJS=$ac_ltlibobjs
33623
33624
cristy73bd4a52010-10-05 11:24:23 +000033625 if test -n "$EXEEXT"; then
33626 am__EXEEXT_TRUE=
33627 am__EXEEXT_FALSE='#'
33628else
33629 am__EXEEXT_TRUE='#'
33630 am__EXEEXT_FALSE=
33631fi
cristy3ed852e2009-09-05 21:47:34 +000033632
cristy73bd4a52010-10-05 11:24:23 +000033633if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033634 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033635Usually this means the macro was only invoked conditionally." "$LINENO" 5
33636fi
33637if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033638 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033639Usually this means the macro was only invoked conditionally." "$LINENO" 5
33640fi
33641if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033642 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033643Usually this means the macro was only invoked conditionally." "$LINENO" 5
33644fi
33645if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033646 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033647Usually this means the macro was only invoked conditionally." "$LINENO" 5
33648fi
33649if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033650 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033651Usually this means the macro was only invoked conditionally." "$LINENO" 5
33652fi
33653if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033654 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033655Usually this means the macro was only invoked conditionally." "$LINENO" 5
33656fi
33657if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033658 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033659Usually this means the macro was only invoked conditionally." "$LINENO" 5
33660fi
33661if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033662 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033663Usually this means the macro was only invoked conditionally." "$LINENO" 5
33664fi
cristy73bd4a52010-10-05 11:24:23 +000033665if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033666 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033667Usually this means the macro was only invoked conditionally." "$LINENO" 5
33668fi
33669if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033670 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033671Usually this means the macro was only invoked conditionally." "$LINENO" 5
33672fi
33673LT_CONFIG_H=config/config.h
33674
33675 _ltdl_libobjs=
33676 _ltdl_ltlibobjs=
33677 if test -n "$_LT_LIBOBJS"; then
33678 # Remove the extension.
33679 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
33680 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
33681 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
33682 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
33683 done
33684 fi
33685 ltdl_LIBOBJS=$_ltdl_libobjs
33686
33687 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
33688
33689
33690if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033691 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033692Usually this means the macro was only invoked conditionally." "$LINENO" 5
33693fi
33694if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033695 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033696Usually this means the macro was only invoked conditionally." "$LINENO" 5
33697fi
33698if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033699 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033700Usually this means the macro was only invoked conditionally." "$LINENO" 5
33701fi
33702if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033703 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033704Usually this means the macro was only invoked conditionally." "$LINENO" 5
33705fi
33706
33707if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033708 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033709Usually this means the macro was only invoked conditionally." "$LINENO" 5
33710fi
33711if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033712 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033713Usually this means the macro was only invoked conditionally." "$LINENO" 5
33714fi
33715if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033716 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033717Usually this means the macro was only invoked conditionally." "$LINENO" 5
33718fi
33719if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033720 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033721Usually this means the macro was only invoked conditionally." "$LINENO" 5
33722fi
33723if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033724 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033725Usually this means the macro was only invoked conditionally." "$LINENO" 5
33726fi
33727if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033728 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033729Usually this means the macro was only invoked conditionally." "$LINENO" 5
33730fi
33731if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033732 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033733Usually this means the macro was only invoked conditionally." "$LINENO" 5
33734fi
33735if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033736 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033737Usually this means the macro was only invoked conditionally." "$LINENO" 5
33738fi
33739if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033740 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033741Usually this means the macro was only invoked conditionally." "$LINENO" 5
33742fi
33743if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033744 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033745Usually this means the macro was only invoked conditionally." "$LINENO" 5
33746fi
33747if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033748 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033749Usually this means the macro was only invoked conditionally." "$LINENO" 5
33750fi
33751if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033752 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033753Usually this means the macro was only invoked conditionally." "$LINENO" 5
33754fi
33755if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033756 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033757Usually this means the macro was only invoked conditionally." "$LINENO" 5
33758fi
33759if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033760 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033761Usually this means the macro was only invoked conditionally." "$LINENO" 5
33762fi
33763if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033764 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033765Usually this means the macro was only invoked conditionally." "$LINENO" 5
33766fi
33767if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033768 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033769Usually this means the macro was only invoked conditionally." "$LINENO" 5
33770fi
33771if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033772 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033773Usually this means the macro was only invoked conditionally." "$LINENO" 5
33774fi
33775if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033776 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033777Usually this means the macro was only invoked conditionally." "$LINENO" 5
33778fi
33779if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033780 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033781Usually this means the macro was only invoked conditionally." "$LINENO" 5
33782fi
33783if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033784 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033785Usually this means the macro was only invoked conditionally." "$LINENO" 5
33786fi
cristyfbb0ef02010-12-19 02:32:11 +000033787if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
33788 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
33789Usually this means the macro was only invoked conditionally." "$LINENO" 5
33790fi
cristy73bd4a52010-10-05 11:24:23 +000033791if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033792 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033793Usually this means the macro was only invoked conditionally." "$LINENO" 5
33794fi
33795if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033796 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033797Usually this means the macro was only invoked conditionally." "$LINENO" 5
33798fi
33799if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033800 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033801Usually this means the macro was only invoked conditionally." "$LINENO" 5
33802fi
33803if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033804 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033805Usually this means the macro was only invoked conditionally." "$LINENO" 5
33806fi
33807if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033808 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033809Usually this means the macro was only invoked conditionally." "$LINENO" 5
33810fi
cristyb1860752011-03-14 00:27:46 +000033811if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
33812 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
33813Usually this means the macro was only invoked conditionally." "$LINENO" 5
33814fi
cristy73bd4a52010-10-05 11:24:23 +000033815if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033816 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033817Usually this means the macro was only invoked conditionally." "$LINENO" 5
33818fi
33819if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033820 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033821Usually this means the macro was only invoked conditionally." "$LINENO" 5
33822fi
33823if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033824 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033825Usually this means the macro was only invoked conditionally." "$LINENO" 5
33826fi
33827if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033828 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033829Usually this means the macro was only invoked conditionally." "$LINENO" 5
33830fi
33831if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033832 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033833Usually this means the macro was only invoked conditionally." "$LINENO" 5
33834fi
33835if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033836 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033837Usually this means the macro was only invoked conditionally." "$LINENO" 5
33838fi
33839if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033840 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033841Usually this means the macro was only invoked conditionally." "$LINENO" 5
33842fi
33843if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033844 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033845Usually this means the macro was only invoked conditionally." "$LINENO" 5
33846fi
cristy3ed852e2009-09-05 21:47:34 +000033847
cristyda16f162011-02-19 23:52:17 +000033848: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000033849ac_write_fail=0
33850ac_clean_files_save=$ac_clean_files
33851ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000033852{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000033853$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000033854as_write_fail=0
33855cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033856#! $SHELL
33857# Generated by $as_me.
33858# Run this file to recreate the current configuration.
33859# Compiler output produced by configure, useful for debugging
33860# configure, is in config.log if it exists.
33861
33862debug=false
33863ac_cs_recheck=false
33864ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000033865
cristy8b350f62009-11-15 23:12:43 +000033866SHELL=\${CONFIG_SHELL-$SHELL}
33867export SHELL
33868_ASEOF
33869cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33870## -------------------- ##
33871## M4sh Initialization. ##
33872## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000033873
33874# Be more Bourne compatible
33875DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000033876if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000033877 emulate sh
33878 NULLCMD=:
33879 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33880 # is contrary to our usage. Disable this feature.
33881 alias -g '${1+"$@"}'='"$@"'
33882 setopt NO_GLOB_SUBST
33883else
cristy8b350f62009-11-15 23:12:43 +000033884 case `(set -o) 2>/dev/null` in #(
33885 *posix*) :
33886 set -o posix ;; #(
33887 *) :
33888 ;;
cristy3ed852e2009-09-05 21:47:34 +000033889esac
cristy3ed852e2009-09-05 21:47:34 +000033890fi
33891
33892
cristy3ed852e2009-09-05 21:47:34 +000033893as_nl='
33894'
33895export as_nl
33896# Printing a long string crashes Solaris 7 /usr/bin/printf.
33897as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33898as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33899as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000033900# Prefer a ksh shell builtin over an external printf program on Solaris,
33901# but without wasting forks for bash or zsh.
33902if test -z "$BASH_VERSION$ZSH_VERSION" \
33903 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33904 as_echo='print -r --'
33905 as_echo_n='print -rn --'
33906elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000033907 as_echo='printf %s\n'
33908 as_echo_n='printf %s'
33909else
33910 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33911 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33912 as_echo_n='/usr/ucb/echo -n'
33913 else
33914 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33915 as_echo_n_body='eval
33916 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000033917 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000033918 *"$as_nl"*)
33919 expr "X$arg" : "X\\(.*\\)$as_nl";
33920 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33921 esac;
33922 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33923 '
33924 export as_echo_n_body
33925 as_echo_n='sh -c $as_echo_n_body as_echo'
33926 fi
33927 export as_echo_body
33928 as_echo='sh -c $as_echo_body as_echo'
33929fi
33930
33931# The user is always right.
33932if test "${PATH_SEPARATOR+set}" != set; then
33933 PATH_SEPARATOR=:
33934 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33935 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33936 PATH_SEPARATOR=';'
33937 }
33938fi
33939
cristy3ed852e2009-09-05 21:47:34 +000033940
33941# IFS
33942# We need space, tab and new line, in precisely that order. Quoting is
33943# there to prevent editors from complaining about space-tab.
33944# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33945# splitting by setting IFS to empty value.)
33946IFS=" "" $as_nl"
33947
33948# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000033949as_myself=
cristy8b350f62009-11-15 23:12:43 +000033950case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000033951 *[\\/]* ) as_myself=$0 ;;
33952 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33953for as_dir in $PATH
33954do
33955 IFS=$as_save_IFS
33956 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033957 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33958 done
cristy3ed852e2009-09-05 21:47:34 +000033959IFS=$as_save_IFS
33960
33961 ;;
33962esac
33963# We did not find ourselves, most probably we were run as `sh COMMAND'
33964# in which case we are not to be found in the path.
33965if test "x$as_myself" = x; then
33966 as_myself=$0
33967fi
33968if test ! -f "$as_myself"; then
33969 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000033970 exit 1
cristy3ed852e2009-09-05 21:47:34 +000033971fi
33972
cristy8b350f62009-11-15 23:12:43 +000033973# Unset variables that we do not need and which cause bugs (e.g. in
33974# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33975# suppresses any "Segmentation fault" message there. '((' could
33976# trigger a bug in pdksh 5.2.14.
33977for as_var in BASH_ENV ENV MAIL MAILPATH
33978do eval test x\${$as_var+set} = xset \
33979 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033980done
33981PS1='$ '
33982PS2='> '
33983PS4='+ '
33984
33985# NLS nuisances.
33986LC_ALL=C
33987export LC_ALL
33988LANGUAGE=C
33989export LANGUAGE
33990
cristy8b350f62009-11-15 23:12:43 +000033991# CDPATH.
33992(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33993
33994
cristy98dddb52010-11-04 00:30:15 +000033995# as_fn_error STATUS ERROR [LINENO LOG_FD]
33996# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000033997# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33998# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000033999# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000034000as_fn_error ()
34001{
cristy98dddb52010-11-04 00:30:15 +000034002 as_status=$1; test $as_status -eq 0 && as_status=1
34003 if test "$4"; then
34004 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
34005 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000034006 fi
cristy98dddb52010-11-04 00:30:15 +000034007 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000034008 as_fn_exit $as_status
34009} # as_fn_error
34010
34011
34012# as_fn_set_status STATUS
34013# -----------------------
34014# Set $? to STATUS, without forking.
34015as_fn_set_status ()
34016{
34017 return $1
34018} # as_fn_set_status
34019
34020# as_fn_exit STATUS
34021# -----------------
34022# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
34023as_fn_exit ()
34024{
34025 set +e
34026 as_fn_set_status $1
34027 exit $1
34028} # as_fn_exit
34029
34030# as_fn_unset VAR
34031# ---------------
34032# Portably unset VAR.
34033as_fn_unset ()
34034{
34035 { eval $1=; unset $1;}
34036}
34037as_unset=as_fn_unset
34038# as_fn_append VAR VALUE
34039# ----------------------
34040# Append the text in VALUE to the end of the definition contained in VAR. Take
34041# advantage of any shell optimizations that allow amortized linear growth over
34042# repeated appends, instead of the typical quadratic growth present in naive
34043# implementations.
34044if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
34045 eval 'as_fn_append ()
34046 {
34047 eval $1+=\$2
34048 }'
34049else
34050 as_fn_append ()
34051 {
34052 eval $1=\$$1\$2
34053 }
34054fi # as_fn_append
34055
34056# as_fn_arith ARG...
34057# ------------------
34058# Perform arithmetic evaluation on the ARGs, and store the result in the
34059# global $as_val. Take advantage of shells that can avoid forks. The arguments
34060# must be portable across $(()) and expr.
34061if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
34062 eval 'as_fn_arith ()
34063 {
34064 as_val=$(( $* ))
34065 }'
34066else
34067 as_fn_arith ()
34068 {
34069 as_val=`expr "$@" || test $? -eq 1`
34070 }
34071fi # as_fn_arith
34072
34073
cristy3ed852e2009-09-05 21:47:34 +000034074if expr a : '\(a\)' >/dev/null 2>&1 &&
34075 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34076 as_expr=expr
34077else
34078 as_expr=false
34079fi
34080
34081if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34082 as_basename=basename
34083else
34084 as_basename=false
34085fi
34086
cristy8b350f62009-11-15 23:12:43 +000034087if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34088 as_dirname=dirname
34089else
34090 as_dirname=false
34091fi
cristy3ed852e2009-09-05 21:47:34 +000034092
cristy3ed852e2009-09-05 21:47:34 +000034093as_me=`$as_basename -- "$0" ||
34094$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34095 X"$0" : 'X\(//\)$' \| \
34096 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34097$as_echo X/"$0" |
34098 sed '/^.*\/\([^/][^/]*\)\/*$/{
34099 s//\1/
34100 q
34101 }
34102 /^X\/\(\/\/\)$/{
34103 s//\1/
34104 q
34105 }
34106 /^X\/\(\/\).*/{
34107 s//\1/
34108 q
34109 }
34110 s/.*/./; q'`
34111
cristy8b350f62009-11-15 23:12:43 +000034112# Avoid depending upon Character Ranges.
34113as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34114as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34115as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34116as_cr_digits='0123456789'
34117as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000034118
34119ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000034120case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000034121-n*)
cristy8b350f62009-11-15 23:12:43 +000034122 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000034123 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000034124 xy) ECHO_C='\c';;
34125 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
34126 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000034127 esac;;
34128*)
34129 ECHO_N='-n';;
34130esac
cristy3ed852e2009-09-05 21:47:34 +000034131
34132rm -f conf$$ conf$$.exe conf$$.file
34133if test -d conf$$.dir; then
34134 rm -f conf$$.dir/conf$$.file
34135else
34136 rm -f conf$$.dir
34137 mkdir conf$$.dir 2>/dev/null
34138fi
34139if (echo >conf$$.file) 2>/dev/null; then
34140 if ln -s conf$$.file conf$$ 2>/dev/null; then
34141 as_ln_s='ln -s'
34142 # ... but there are two gotchas:
34143 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34144 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34145 # In both cases, we have to default to `cp -p'.
34146 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34147 as_ln_s='cp -p'
34148 elif ln conf$$.file conf$$ 2>/dev/null; then
34149 as_ln_s=ln
34150 else
34151 as_ln_s='cp -p'
34152 fi
34153else
34154 as_ln_s='cp -p'
34155fi
34156rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34157rmdir conf$$.dir 2>/dev/null
34158
cristy8b350f62009-11-15 23:12:43 +000034159
34160# as_fn_mkdir_p
34161# -------------
34162# Create "$as_dir" as a directory, including parents if necessary.
34163as_fn_mkdir_p ()
34164{
34165
34166 case $as_dir in #(
34167 -*) as_dir=./$as_dir;;
34168 esac
34169 test -d "$as_dir" || eval $as_mkdir_p || {
34170 as_dirs=
34171 while :; do
34172 case $as_dir in #(
34173 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34174 *) as_qdir=$as_dir;;
34175 esac
34176 as_dirs="'$as_qdir' $as_dirs"
34177 as_dir=`$as_dirname -- "$as_dir" ||
34178$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34179 X"$as_dir" : 'X\(//\)[^/]' \| \
34180 X"$as_dir" : 'X\(//\)$' \| \
34181 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34182$as_echo X"$as_dir" |
34183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34184 s//\1/
34185 q
34186 }
34187 /^X\(\/\/\)[^/].*/{
34188 s//\1/
34189 q
34190 }
34191 /^X\(\/\/\)$/{
34192 s//\1/
34193 q
34194 }
34195 /^X\(\/\).*/{
34196 s//\1/
34197 q
34198 }
34199 s/.*/./; q'`
34200 test -d "$as_dir" && break
34201 done
34202 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000034203 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000034204
34205
34206} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034207if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034208 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000034209else
34210 test -d ./-p && rmdir ./-p
34211 as_mkdir_p=false
34212fi
34213
34214if test -x / >/dev/null 2>&1; then
34215 as_test_x='test -x'
34216else
34217 if ls -dL / >/dev/null 2>&1; then
34218 as_ls_L_option=L
34219 else
34220 as_ls_L_option=
34221 fi
34222 as_test_x='
34223 eval sh -c '\''
34224 if test -d "$1"; then
34225 test -d "$1/.";
34226 else
cristy8b350f62009-11-15 23:12:43 +000034227 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000034228 -*)set "./$1";;
34229 esac;
cristy8b350f62009-11-15 23:12:43 +000034230 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000034231 ???[sx]*):;;*)false;;esac;fi
34232 '\'' sh
34233 '
34234fi
34235as_executable_p=$as_test_x
34236
34237# Sed expression to map a string onto a valid CPP name.
34238as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34239
34240# Sed expression to map a string onto a valid variable name.
34241as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34242
34243
34244exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000034245## ----------------------------------- ##
34246## Main body of $CONFIG_STATUS script. ##
34247## ----------------------------------- ##
34248_ASEOF
34249test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000034250
cristy8b350f62009-11-15 23:12:43 +000034251cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34252# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000034253# report actual input values of CONFIG_FILES etc. instead of their
34254# values after options handling.
34255ac_log="
cristy45dbd322011-03-27 16:40:38 +000034256This file was extended by ImageMagick $as_me 6.6.9, which was
cristyda16f162011-02-19 23:52:17 +000034257generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000034258
34259 CONFIG_FILES = $CONFIG_FILES
34260 CONFIG_HEADERS = $CONFIG_HEADERS
34261 CONFIG_LINKS = $CONFIG_LINKS
34262 CONFIG_COMMANDS = $CONFIG_COMMANDS
34263 $ $0 $@
34264
34265on `(hostname || uname -n) 2>/dev/null | sed 1q`
34266"
34267
34268_ACEOF
34269
34270case $ac_config_files in *"
34271"*) set x $ac_config_files; shift; ac_config_files=$*;;
34272esac
34273
34274case $ac_config_headers in *"
34275"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34276esac
34277
34278
34279cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34280# Files that config.status was made for.
34281config_files="$ac_config_files"
34282config_headers="$ac_config_headers"
34283config_commands="$ac_config_commands"
34284
34285_ACEOF
34286
34287cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34288ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000034289\`$as_me' instantiates files and other configuration actions
34290from templates according to the current configuration. Unless the files
34291and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000034292
cristy8b350f62009-11-15 23:12:43 +000034293Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000034294
34295 -h, --help print this help, then exit
34296 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000034297 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000034298 -q, --quiet, --silent
34299 do not print progress messages
34300 -d, --debug don't remove temporary files
34301 --recheck update $as_me by reconfiguring in the same conditions
34302 --file=FILE[:TEMPLATE]
34303 instantiate the configuration file FILE
34304 --header=FILE[:TEMPLATE]
34305 instantiate the configuration header FILE
34306
34307Configuration files:
34308$config_files
34309
34310Configuration headers:
34311$config_headers
34312
34313Configuration commands:
34314$config_commands
34315
cristy8b350f62009-11-15 23:12:43 +000034316Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000034317
34318_ACEOF
34319cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000034320ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000034321ac_cs_version="\\
cristy45dbd322011-03-27 16:40:38 +000034322ImageMagick config.status 6.6.9
cristyda16f162011-02-19 23:52:17 +000034323configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000034324 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000034325
cristy98dddb52010-11-04 00:30:15 +000034326Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000034327This config.status script is free software; the Free Software Foundation
34328gives unlimited permission to copy, distribute and modify it."
34329
34330ac_pwd='$ac_pwd'
34331srcdir='$srcdir'
34332INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000034333MKDIR_P='$MKDIR_P'
34334AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000034335test -n "\$AWK" || AWK=awk
34336_ACEOF
34337
34338cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34339# The default lists apply if the user does not specify any file.
34340ac_need_defaults=:
34341while test $# != 0
34342do
34343 case $1 in
cristyda16f162011-02-19 23:52:17 +000034344 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000034345 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34346 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34347 ac_shift=:
34348 ;;
cristyda16f162011-02-19 23:52:17 +000034349 --*=)
34350 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34351 ac_optarg=
34352 ac_shift=:
34353 ;;
cristy3ed852e2009-09-05 21:47:34 +000034354 *)
34355 ac_option=$1
34356 ac_optarg=$2
34357 ac_shift=shift
34358 ;;
34359 esac
34360
34361 case $ac_option in
34362 # Handling of the options.
34363 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34364 ac_cs_recheck=: ;;
34365 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34366 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000034367 --config | --confi | --conf | --con | --co | --c )
34368 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000034369 --debug | --debu | --deb | --de | --d | -d )
34370 debug=: ;;
34371 --file | --fil | --fi | --f )
34372 $ac_shift
34373 case $ac_optarg in
34374 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000034375 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000034376 esac
cristy8b350f62009-11-15 23:12:43 +000034377 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000034378 ac_need_defaults=false;;
34379 --header | --heade | --head | --hea )
34380 $ac_shift
34381 case $ac_optarg in
34382 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34383 esac
cristy8b350f62009-11-15 23:12:43 +000034384 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000034385 ac_need_defaults=false;;
34386 --he | --h)
34387 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000034388 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000034389Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000034390 --help | --hel | -h )
34391 $as_echo "$ac_cs_usage"; exit ;;
34392 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34393 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34394 ac_cs_silent=: ;;
34395
34396 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000034397 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000034398Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000034399
cristy8b350f62009-11-15 23:12:43 +000034400 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000034401 ac_need_defaults=false ;;
34402
34403 esac
34404 shift
34405done
34406
34407ac_configure_extra_args=
34408
34409if $ac_cs_silent; then
34410 exec 6>/dev/null
34411 ac_configure_extra_args="$ac_configure_extra_args --silent"
34412fi
34413
34414_ACEOF
34415cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34416if \$ac_cs_recheck; then
34417 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34418 shift
34419 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34420 CONFIG_SHELL='$SHELL'
34421 export CONFIG_SHELL
34422 exec "\$@"
34423fi
34424
34425_ACEOF
34426cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34427exec 5>>config.log
34428{
34429 echo
34430 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34431## Running $as_me. ##
34432_ASBOX
34433 $as_echo "$ac_log"
34434} >&5
34435
34436_ACEOF
34437cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000034438#
34439# INIT-COMMANDS
34440#
34441PACKAGE="$PACKAGE"
34442AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34443
34444
34445# The HP-UX ksh and POSIX shell print the target directory to stdout
34446# if CDPATH is set.
34447(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34448
34449sed_quote_subst='$sed_quote_subst'
34450double_quote_subst='$double_quote_subst'
34451delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000034452SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
34453Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
34454GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34455EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34456FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34457SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
34458ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
34459LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34460macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
34461macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
34462AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
34463DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
34464OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34465enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
34466enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
34467pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
34468enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
34469host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
34470host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
34471host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
34472build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
34473build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
34474build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
34475NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34476LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34477max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34478ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34479exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34480lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34481lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34482lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034483lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
34484lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034485reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34486reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34487deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34488file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034489file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
34490want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
34491sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034492AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34493AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034494archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034495STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34496RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34497old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34498old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34499old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34500lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34501CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34502CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34503compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34504GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34505lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34506lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34507lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34508lt_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"`'
cristyda16f162011-02-19 23:52:17 +000034509nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
34510lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034511objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34512MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34513lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034514lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034515lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034516lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34517lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34518need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034519MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034520DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34521NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34522LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34523OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34524OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34525libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34526shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34527extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34528archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34529enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34530export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34531whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34532compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34533old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34534old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34535archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34536archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34537module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34538module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34539with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34540allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34541no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34542hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34543hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
34544hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34545hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34546hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34547hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34548hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34549hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34550inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34551link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034552always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34553export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34554exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34555include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34556prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034557postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034558file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34559variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34560need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34561need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34562version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34563runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34564shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34565shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34566libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34567library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34568soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34569install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34570postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34571postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34572finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34573finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34574hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34575sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34576sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
34577hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34578enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34579enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34580enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34581old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34582striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34583compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
34584predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
34585postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
34586predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
34587postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
34588compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
34589LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
34590reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
34591reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34592old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34593compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
34594GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
34595lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034596lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034597lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034598lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
34599lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
34600archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
34601enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
34602export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34603whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34604compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
34605old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34606old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34607archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34608archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34609module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34610module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34611with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
34612allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34613no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34614hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34615hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
34616hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
34617hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
34618hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
34619hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
34620hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
34621hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
34622inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
34623link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034624always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
34625export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34626exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34627include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34628prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034629postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034630file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
34631hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
34632compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
34633predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34634postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34635predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
34636postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
34637compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000034638
34639LTCC='$LTCC'
34640LTCFLAGS='$LTCFLAGS'
34641compiler='$compiler_DEFAULT'
34642
cristy0c60a692010-11-04 01:09:47 +000034643# A function that is used when there is no print builtin or printf.
34644func_fallback_echo ()
34645{
34646 eval 'cat <<_LTECHO_EOF
34647\$1
34648_LTECHO_EOF'
34649}
34650
cristy73bd4a52010-10-05 11:24:23 +000034651# Quote evaled strings.
34652for var in SED \
34653GREP \
34654EGREP \
34655FGREP \
cristy0c60a692010-11-04 01:09:47 +000034656SHELL \
34657ECHO \
cristy73bd4a52010-10-05 11:24:23 +000034658LD \
cristy0c60a692010-11-04 01:09:47 +000034659AS \
34660DLLTOOL \
34661OBJDUMP \
cristy73bd4a52010-10-05 11:24:23 +000034662NM \
34663LN_S \
34664lt_SP2NL \
34665lt_NL2SP \
34666reload_flag \
34667deplibs_check_method \
34668file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000034669file_magic_glob \
34670want_nocaseglob \
34671sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000034672AR \
34673AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000034674archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000034675STRIP \
34676RANLIB \
34677CC \
34678CFLAGS \
34679compiler \
34680lt_cv_sys_global_symbol_pipe \
34681lt_cv_sys_global_symbol_to_cdecl \
34682lt_cv_sys_global_symbol_to_c_name_address \
34683lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000034684nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000034685lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000034686lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000034687lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000034688lt_prog_compiler_static \
34689lt_cv_prog_compiler_c_o \
34690need_locks \
cristyda16f162011-02-19 23:52:17 +000034691MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000034692DSYMUTIL \
34693NMEDIT \
34694LIPO \
34695OTOOL \
34696OTOOL64 \
34697shrext_cmds \
34698export_dynamic_flag_spec \
34699whole_archive_flag_spec \
34700compiler_needs_object \
34701with_gnu_ld \
34702allow_undefined_flag \
34703no_undefined_flag \
34704hardcode_libdir_flag_spec \
34705hardcode_libdir_flag_spec_ld \
34706hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000034707exclude_expsyms \
34708include_expsyms \
34709file_list_spec \
34710variables_saved_for_relink \
34711libname_spec \
34712library_names_spec \
34713soname_spec \
cristy0c60a692010-11-04 01:09:47 +000034714install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000034715finish_eval \
34716old_striplib \
34717striplib \
34718compiler_lib_search_dirs \
34719predep_objects \
34720postdep_objects \
34721predeps \
34722postdeps \
34723compiler_lib_search_path \
34724LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000034725reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034726compiler_CXX \
34727lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034728lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000034729lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034730lt_prog_compiler_static_CXX \
34731lt_cv_prog_compiler_c_o_CXX \
34732export_dynamic_flag_spec_CXX \
34733whole_archive_flag_spec_CXX \
34734compiler_needs_object_CXX \
34735with_gnu_ld_CXX \
34736allow_undefined_flag_CXX \
34737no_undefined_flag_CXX \
34738hardcode_libdir_flag_spec_CXX \
34739hardcode_libdir_flag_spec_ld_CXX \
34740hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034741exclude_expsyms_CXX \
34742include_expsyms_CXX \
34743file_list_spec_CXX \
34744compiler_lib_search_dirs_CXX \
34745predep_objects_CXX \
34746postdep_objects_CXX \
34747predeps_CXX \
34748postdeps_CXX \
34749compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000034750 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000034751 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000034752 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000034753 ;;
34754 *)
34755 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34756 ;;
34757 esac
34758done
34759
34760# Double-quote double-evaled strings.
34761for var in reload_cmds \
34762old_postinstall_cmds \
34763old_postuninstall_cmds \
34764old_archive_cmds \
34765extract_expsyms_cmds \
34766old_archive_from_new_cmds \
34767old_archive_from_expsyms_cmds \
34768archive_cmds \
34769archive_expsym_cmds \
34770module_cmds \
34771module_expsym_cmds \
34772export_symbols_cmds \
34773prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000034774postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000034775postinstall_cmds \
34776postuninstall_cmds \
34777finish_cmds \
34778sys_lib_search_path_spec \
34779sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000034780reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034781old_archive_cmds_CXX \
34782old_archive_from_new_cmds_CXX \
34783old_archive_from_expsyms_cmds_CXX \
34784archive_cmds_CXX \
34785archive_expsym_cmds_CXX \
34786module_cmds_CXX \
34787module_expsym_cmds_CXX \
34788export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000034789prelink_cmds_CXX \
34790postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000034791 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000034792 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000034793 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000034794 ;;
34795 *)
34796 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34797 ;;
34798 esac
34799done
34800
cristy73bd4a52010-10-05 11:24:23 +000034801ac_aux_dir='$ac_aux_dir'
34802xsi_shell='$xsi_shell'
34803lt_shell_append='$lt_shell_append'
34804
34805# See if we are running on zsh, and set the options which allow our
34806# commands through without removal of \ escapes INIT.
34807if test -n "\${ZSH_VERSION+set}" ; then
34808 setopt NO_GLOB_SUBST
34809fi
34810
34811
34812 PACKAGE='$PACKAGE'
34813 VERSION='$VERSION'
34814 TIMESTAMP='$TIMESTAMP'
34815 RM='$RM'
34816 ofile='$ofile'
34817
34818
34819
34820
34821
34822
cristy3ed852e2009-09-05 21:47:34 +000034823_ACEOF
34824
34825cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34826
34827# Handling of arguments.
34828for ac_config_target in $ac_config_targets
34829do
34830 case $ac_config_target in
34831 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy73bd4a52010-10-05 11:24:23 +000034832 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000034833 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
34834 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
34835 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
34836 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
34837 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000034838 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000034839 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
34840 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
34841 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
34842 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
34843 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
34844 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
34845 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
34846 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
34847 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
34848 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
34849 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
34850 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
34851 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34852 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
34853 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
34854 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
34855 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
34856 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
34857 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
34858 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
34859 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
34860 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
34861 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
34862 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
34863 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
34864 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
34865 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
34866 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
34867 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
34868 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
34869 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
34870 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
34871 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000034872 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34873 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000034874 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34875 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
34876 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
34877 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
34878 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
34879 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
34880 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
34881
cristy98dddb52010-11-04 00:30:15 +000034882 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034883 esac
34884done
34885
34886
34887# If the user did not use the arguments to specify the items to instantiate,
34888# then the envvar interface is used. Set only those that are not.
34889# We use the long form for the default assignment because of an extremely
34890# bizarre bug on SunOS 4.1.3.
34891if $ac_need_defaults; then
34892 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34893 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34894 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34895fi
34896
34897# Have a temporary directory for convenience. Make it in the build tree
34898# simply because there is no reason against having it here, and in addition,
34899# creating and moving files from /tmp can sometimes cause problems.
34900# Hook for its removal unless debugging.
34901# Note that there is a small window in which the directory will not be cleaned:
34902# after its creation but before its name has been assigned to `$tmp'.
34903$debug ||
34904{
cristyda16f162011-02-19 23:52:17 +000034905 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000034906 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000034907 : "${ac_tmp:=$tmp}"
34908 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000034909' 0
cristy8b350f62009-11-15 23:12:43 +000034910 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000034911}
34912# Create a (secure) tmp directory for tmp files.
34913
34914{
34915 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000034916 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000034917} ||
34918{
34919 tmp=./conf$$-$RANDOM
34920 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000034921} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000034922ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000034923
34924# Set up the scripts for CONFIG_FILES section.
34925# No need to generate them if there are no CONFIG_FILES.
34926# This happens for instance with `./config.status config.h'.
34927if test -n "$CONFIG_FILES"; then
34928
34929
cristy8b350f62009-11-15 23:12:43 +000034930ac_cr=`echo X | tr X '\015'`
34931# On cygwin, bash can eat \r inside `` if the user requested igncr.
34932# But we know of no other shell where ac_cr would be empty at this
34933# point, so we can use a bashism as a fallback.
34934if test "x$ac_cr" = x; then
34935 eval ac_cr=\$\'\\r\'
34936fi
cristy3ed852e2009-09-05 21:47:34 +000034937ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34938if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000034939 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000034940else
34941 ac_cs_awk_cr=$ac_cr
34942fi
34943
cristyda16f162011-02-19 23:52:17 +000034944echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000034945_ACEOF
34946
34947
34948{
34949 echo "cat >conf$$subs.awk <<_ACEOF" &&
34950 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34951 echo "_ACEOF"
34952} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000034953 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34954ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000034955ac_delim='%!_!# '
34956for ac_last_try in false false false false false :; do
34957 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000034958 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034959
34960 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34961 if test $ac_delim_n = $ac_delim_num; then
34962 break
34963 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000034964 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034965 else
34966 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34967 fi
34968done
34969rm -f conf$$subs.sh
34970
34971cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000034972cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000034973_ACEOF
34974sed -n '
34975h
34976s/^/S["/; s/!.*/"]=/
34977p
34978g
34979s/^[^!]*!//
34980:repl
34981t repl
34982s/'"$ac_delim"'$//
34983t delim
34984:nl
34985h
cristycd4c5312009-11-22 01:19:08 +000034986s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034987t more1
34988s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34989p
34990n
34991b repl
34992:more1
34993s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34994p
34995g
34996s/.\{148\}//
34997t nl
34998:delim
34999h
cristycd4c5312009-11-22 01:19:08 +000035000s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000035001t more2
35002s/["\\]/\\&/g; s/^/"/; s/$/"/
35003p
35004b
35005:more2
35006s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35007p
35008g
35009s/.\{148\}//
35010t delim
35011' <conf$$subs.awk | sed '
35012/^[^""]/{
35013 N
35014 s/\n//
35015}
35016' >>$CONFIG_STATUS || ac_write_fail=1
35017rm -f conf$$subs.awk
35018cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35019_ACAWK
cristyda16f162011-02-19 23:52:17 +000035020cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000035021 for (key in S) S_is_set[key] = 1
35022 FS = ""
35023
35024}
35025{
35026 line = $ 0
35027 nfields = split(line, field, "@")
35028 substed = 0
35029 len = length(field[1])
35030 for (i = 2; i < nfields; i++) {
35031 key = field[i]
35032 keylen = length(key)
35033 if (S_is_set[key]) {
35034 value = S[key]
35035 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35036 len += length(value) + length(field[++i])
35037 substed = 1
35038 } else
35039 len += 1 + keylen
35040 }
35041
35042 print line
35043}
35044
35045_ACAWK
35046_ACEOF
35047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35048if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35049 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35050else
35051 cat
cristyda16f162011-02-19 23:52:17 +000035052fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000035053 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035054_ACEOF
35055
cristy98dddb52010-11-04 00:30:15 +000035056# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35057# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000035058# trailing colons and then remove the whole line if VPATH becomes empty
35059# (actually we leave an empty line to preserve line numbers).
35060if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000035061 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35062h
35063s///
35064s/^/:/
35065s/[ ]*$/:/
35066s/:\$(srcdir):/:/g
35067s/:\${srcdir}:/:/g
35068s/:@srcdir@:/:/g
35069s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000035070s/:*$//
cristy98dddb52010-11-04 00:30:15 +000035071x
35072s/\(=[ ]*\).*/\1/
35073G
35074s/\n//
cristy3ed852e2009-09-05 21:47:34 +000035075s/^[^=]*=[ ]*$//
35076}'
35077fi
35078
35079cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35080fi # test -n "$CONFIG_FILES"
35081
35082# Set up the scripts for CONFIG_HEADERS section.
35083# No need to generate them if there are no CONFIG_HEADERS.
35084# This happens for instance with `./config.status Makefile'.
35085if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000035086cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000035087BEGIN {
35088_ACEOF
35089
35090# Transform confdefs.h into an awk script `defines.awk', embedded as
35091# here-document in config.status, that substitutes the proper values into
35092# config.h.in to produce config.h.
35093
35094# Create a delimiter string that does not exist in confdefs.h, to ease
35095# handling of long lines.
35096ac_delim='%!_!# '
35097for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000035098 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35099 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000035100 break
35101 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000035102 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035103 else
35104 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35105 fi
35106done
35107
35108# For the awk script, D is an array of macro values keyed by name,
35109# likewise P contains macro parameters if any. Preserve backslash
35110# newline sequences.
35111
35112ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35113sed -n '
35114s/.\{148\}/&'"$ac_delim"'/g
35115t rset
35116:rset
35117s/^[ ]*#[ ]*define[ ][ ]*/ /
35118t def
35119d
35120:def
35121s/\\$//
35122t bsnl
35123s/["\\]/\\&/g
35124s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35125D["\1"]=" \3"/p
35126s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35127d
35128:bsnl
35129s/["\\]/\\&/g
35130s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35131D["\1"]=" \3\\\\\\n"\\/p
35132t cont
35133s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35134t cont
35135d
35136:cont
35137n
35138s/.\{148\}/&'"$ac_delim"'/g
35139t clear
35140:clear
35141s/\\$//
35142t bsnlc
35143s/["\\]/\\&/g; s/^/"/; s/$/"/p
35144d
35145:bsnlc
35146s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35147b cont
35148' <confdefs.h | sed '
35149s/'"$ac_delim"'/"\\\
35150"/g' >>$CONFIG_STATUS || ac_write_fail=1
35151
35152cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35153 for (key in D) D_is_set[key] = 1
35154 FS = ""
35155}
35156/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35157 line = \$ 0
35158 split(line, arg, " ")
35159 if (arg[1] == "#") {
35160 defundef = arg[2]
35161 mac1 = arg[3]
35162 } else {
35163 defundef = substr(arg[1], 2)
35164 mac1 = arg[2]
35165 }
35166 split(mac1, mac2, "(") #)
35167 macro = mac2[1]
35168 prefix = substr(line, 1, index(line, defundef) - 1)
35169 if (D_is_set[macro]) {
35170 # Preserve the white space surrounding the "#".
35171 print prefix "define", macro P[macro] D[macro]
35172 next
35173 } else {
35174 # Replace #undef with comments. This is necessary, for example,
35175 # in the case of _POSIX_SOURCE, which is predefined and required
35176 # on some systems where configure will not decide to define it.
35177 if (defundef == "undef") {
35178 print "/*", prefix defundef, macro, "*/"
35179 next
35180 }
35181 }
35182}
35183{ print }
35184_ACAWK
35185_ACEOF
35186cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000035187 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035188fi # test -n "$CONFIG_HEADERS"
35189
35190
35191eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
35192shift
35193for ac_tag
35194do
35195 case $ac_tag in
35196 :[FHLC]) ac_mode=$ac_tag; continue;;
35197 esac
35198 case $ac_mode$ac_tag in
35199 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000035200 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035201 :[FH]-) ac_tag=-:-;;
35202 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35203 esac
35204 ac_save_IFS=$IFS
35205 IFS=:
35206 set x $ac_tag
35207 IFS=$ac_save_IFS
35208 shift
35209 ac_file=$1
35210 shift
35211
35212 case $ac_mode in
35213 :L) ac_source=$1;;
35214 :[FH])
35215 ac_file_inputs=
35216 for ac_f
35217 do
35218 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000035219 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000035220 *) # Look for the file first in the build tree, then in the source tree
35221 # (if the path is not absolute). The absolute path cannot be DOS-style,
35222 # because $ac_f cannot contain `:'.
35223 test -f "$ac_f" ||
35224 case $ac_f in
35225 [\\/$]*) false;;
35226 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35227 esac ||
cristy98dddb52010-11-04 00:30:15 +000035228 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035229 esac
35230 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000035231 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000035232 done
35233
35234 # Let's still pretend it is `configure' which instantiates (i.e., don't
35235 # use $as_me), people would be surprised to read:
35236 # /* config.h. Generated by config.status. */
35237 configure_input='Generated from '`
35238 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35239 `' by configure.'
35240 if test x"$ac_file" != x-; then
35241 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000035242 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035243$as_echo "$as_me: creating $ac_file" >&6;}
35244 fi
35245 # Neutralize special characters interpreted by sed in replacement strings.
35246 case $configure_input in #(
35247 *\&* | *\|* | *\\* )
35248 ac_sed_conf_input=`$as_echo "$configure_input" |
35249 sed 's/[\\\\&|]/\\\\&/g'`;; #(
35250 *) ac_sed_conf_input=$configure_input;;
35251 esac
35252
35253 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000035254 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000035255 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000035256 esac
35257 ;;
35258 esac
35259
35260 ac_dir=`$as_dirname -- "$ac_file" ||
35261$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35262 X"$ac_file" : 'X\(//\)[^/]' \| \
35263 X"$ac_file" : 'X\(//\)$' \| \
35264 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35265$as_echo X"$ac_file" |
35266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35267 s//\1/
35268 q
35269 }
35270 /^X\(\/\/\)[^/].*/{
35271 s//\1/
35272 q
35273 }
35274 /^X\(\/\/\)$/{
35275 s//\1/
35276 q
35277 }
35278 /^X\(\/\).*/{
35279 s//\1/
35280 q
35281 }
35282 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000035283 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035284 ac_builddir=.
35285
35286case "$ac_dir" in
35287.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35288*)
35289 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35290 # A ".." for each directory in $ac_dir_suffix.
35291 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35292 case $ac_top_builddir_sub in
35293 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35294 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35295 esac ;;
35296esac
35297ac_abs_top_builddir=$ac_pwd
35298ac_abs_builddir=$ac_pwd$ac_dir_suffix
35299# for backward compatibility:
35300ac_top_builddir=$ac_top_build_prefix
35301
35302case $srcdir in
35303 .) # We are building in place.
35304 ac_srcdir=.
35305 ac_top_srcdir=$ac_top_builddir_sub
35306 ac_abs_top_srcdir=$ac_pwd ;;
35307 [\\/]* | ?:[\\/]* ) # Absolute name.
35308 ac_srcdir=$srcdir$ac_dir_suffix;
35309 ac_top_srcdir=$srcdir
35310 ac_abs_top_srcdir=$srcdir ;;
35311 *) # Relative name.
35312 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35313 ac_top_srcdir=$ac_top_build_prefix$srcdir
35314 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35315esac
35316ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35317
35318
35319 case $ac_mode in
35320 :F)
35321 #
35322 # CONFIG_FILE
35323 #
35324
35325 case $INSTALL in
35326 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35327 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35328 esac
cristy73bd4a52010-10-05 11:24:23 +000035329 ac_MKDIR_P=$MKDIR_P
35330 case $MKDIR_P in
35331 [\\/$]* | ?:[\\/]* ) ;;
35332 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
35333 esac
cristy3ed852e2009-09-05 21:47:34 +000035334_ACEOF
35335
35336cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35337# If the template does not know about datarootdir, expand it.
35338# FIXME: This hack should be removed a few years after 2.60.
35339ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000035340ac_sed_dataroot='
35341/datarootdir/ {
35342 p
35343 q
35344}
35345/@datadir@/p
35346/@docdir@/p
35347/@infodir@/p
35348/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000035349/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000035350case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35351*datarootdir*) ac_datarootdir_seen=yes;;
35352*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000035353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000035354$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35355_ACEOF
35356cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35357 ac_datarootdir_hack='
35358 s&@datadir@&$datadir&g
35359 s&@docdir@&$docdir&g
35360 s&@infodir@&$infodir&g
35361 s&@localedir@&$localedir&g
35362 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000035363 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000035364esac
35365_ACEOF
35366
35367# Neutralize VPATH when `$srcdir' = `.'.
35368# Shell code in configure.ac might set extrasub.
35369# FIXME: do we really want to maintain this feature?
35370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35371ac_sed_extra="$ac_vpsub
35372$extrasub
35373_ACEOF
35374cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35375:t
35376/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35377s|@configure_input@|$ac_sed_conf_input|;t t
35378s&@top_builddir@&$ac_top_builddir_sub&;t t
35379s&@top_build_prefix@&$ac_top_build_prefix&;t t
35380s&@srcdir@&$ac_srcdir&;t t
35381s&@abs_srcdir@&$ac_abs_srcdir&;t t
35382s&@top_srcdir@&$ac_top_srcdir&;t t
35383s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35384s&@builddir@&$ac_builddir&;t t
35385s&@abs_builddir@&$ac_abs_builddir&;t t
35386s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35387s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000035388s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000035389$ac_datarootdir_hack
35390"
cristyda16f162011-02-19 23:52:17 +000035391eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
35392 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035393
35394test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000035395 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
35396 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
35397 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000035398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000035399which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000035400$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000035401which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000035402
cristyda16f162011-02-19 23:52:17 +000035403 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000035404 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000035405 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
35406 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000035407 esac \
cristy98dddb52010-11-04 00:30:15 +000035408 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035409 ;;
35410 :H)
35411 #
35412 # CONFIG_HEADER
35413 #
35414 if test x"$ac_file" != x-; then
35415 {
35416 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000035417 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
35418 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000035419 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000035420 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000035421 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000035422$as_echo "$as_me: $ac_file is unchanged" >&6;}
35423 else
35424 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000035425 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000035426 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035427 fi
35428 else
35429 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000035430 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000035431 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035432 fi
cristy73bd4a52010-10-05 11:24:23 +000035433# Compute "$ac_file"'s index in $config_headers.
35434_am_arg="$ac_file"
35435_am_stamp_count=1
35436for _am_header in $config_headers :; do
35437 case $_am_header in
35438 $_am_arg | $_am_arg:* )
35439 break ;;
35440 * )
35441 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35442 esac
35443done
35444echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
35445$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35446 X"$_am_arg" : 'X\(//\)[^/]' \| \
35447 X"$_am_arg" : 'X\(//\)$' \| \
35448 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
35449$as_echo X"$_am_arg" |
35450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35451 s//\1/
35452 q
35453 }
35454 /^X\(\/\/\)[^/].*/{
35455 s//\1/
35456 q
35457 }
35458 /^X\(\/\/\)$/{
35459 s//\1/
35460 q
35461 }
35462 /^X\(\/\).*/{
35463 s//\1/
35464 q
35465 }
35466 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000035467 ;;
35468
cristy8b350f62009-11-15 23:12:43 +000035469 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000035470$as_echo "$as_me: executing $ac_file commands" >&6;}
35471 ;;
35472 esac
35473
35474
35475 case $ac_file$ac_mode in
cristy73bd4a52010-10-05 11:24:23 +000035476 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
35477ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
35478ac_prefix_conf_PKG=`echo MagickCore`
35479ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
35480ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
35481ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
35482if test ".$ac_prefix_conf_INP" = "."; then
35483 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
35484 case "$ac_file" in
35485 *.h) ac_prefix_conf_INP=$ac_file ;;
35486 *)
35487 esac
35488 test ".$ac_prefix_conf_INP" != "." && break
35489 done
35490fi
35491if test ".$ac_prefix_conf_INP" = "."; then
35492 case "$ac_prefix_conf_OUT" in
35493 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
35494 ;;
35495 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
35496 ;;
35497 *) ac_prefix_conf_INP=config.h
35498 ;;
35499 esac
35500fi
35501if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000035502 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000035503else
35504 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
35505 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
35506 fi fi
35507 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
35508$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
35509 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000035510 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
35511 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
35512 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
35513 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
35514 $as_echo "#endif/" >> conftest.prefix
35515 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
35516 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
35517 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000035518 # now executing _script on _DEF input to create _OUT output file
35519 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
35520 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
35521 echo ' ' >>$tmp/pconfig.h
35522 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
35523
35524 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
35525 echo ' ' >>$tmp/pconfig.h
35526 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
35527 echo "#endif" >>$tmp/pconfig.h
35528 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
35529 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
35530$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
35531 else
35532 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
35533$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35534 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
35535 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
35536 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
35537$as_echo X"$ac_prefix_conf_OUT" |
35538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35539 s//\1/
35540 q
35541 }
35542 /^X\(\/\/\)[^/].*/{
35543 s//\1/
35544 q
35545 }
35546 /^X\(\/\/\)$/{
35547 s//\1/
35548 q
35549 }
35550 /^X\(\/\).*/{
35551 s//\1/
35552 q
35553 }
35554 s/.*/./; q'`
35555 as_dir="$ac_dir"; as_fn_mkdir_p
35556 rm -f "$ac_prefix_conf_OUT"
35557 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
35558 fi
35559 cp conftest.prefix _configs.sed
35560 else
cristy98dddb52010-11-04 00:30:15 +000035561 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000035562 fi
35563 rm -f conftest.*
35564fi
35565 ;;
35566 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
35567 # Autoconf 2.62 quotes --file arguments for eval, but not when files
35568 # are listed without --file. Let's play safe and only enable the eval
35569 # if we detect the quoting.
35570 case $CONFIG_FILES in
35571 *\'*) eval set x "$CONFIG_FILES" ;;
35572 *) set x $CONFIG_FILES ;;
35573 esac
35574 shift
35575 for mf
35576 do
35577 # Strip MF so we end up with the name of the file.
35578 mf=`echo "$mf" | sed -e 's/:.*$//'`
35579 # Check whether this is an Automake generated Makefile or not.
35580 # We used to match only the files named `Makefile.in', but
35581 # some people rename them; so instead we look at the file content.
35582 # Grep'ing the first line is not enough: some people post-process
35583 # each Makefile.in and add a new line on top of each file to say so.
35584 # Grep'ing the whole file is not good either: AIX grep has a line
35585 # limit of 2048, but all sed's we know have understand at least 4000.
35586 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
35587 dirpart=`$as_dirname -- "$mf" ||
35588$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35589 X"$mf" : 'X\(//\)[^/]' \| \
35590 X"$mf" : 'X\(//\)$' \| \
35591 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
35592$as_echo X"$mf" |
35593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35594 s//\1/
35595 q
35596 }
35597 /^X\(\/\/\)[^/].*/{
35598 s//\1/
35599 q
35600 }
35601 /^X\(\/\/\)$/{
35602 s//\1/
35603 q
35604 }
35605 /^X\(\/\).*/{
35606 s//\1/
35607 q
35608 }
35609 s/.*/./; q'`
35610 else
35611 continue
35612 fi
35613 # Extract the definition of DEPDIR, am__include, and am__quote
35614 # from the Makefile without running `make'.
35615 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35616 test -z "$DEPDIR" && continue
35617 am__include=`sed -n 's/^am__include = //p' < "$mf"`
35618 test -z "am__include" && continue
35619 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35620 # When using ansi2knr, U may be empty or an underscore; expand it
35621 U=`sed -n 's/^U = //p' < "$mf"`
35622 # Find all dependency output files, they are included files with
35623 # $(DEPDIR) in their names. We invoke sed twice because it is the
35624 # simplest approach to changing $(DEPDIR) to its actual value in the
35625 # expansion.
35626 for file in `sed -n "
35627 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35628 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
35629 # Make sure the directory exists.
35630 test -f "$dirpart/$file" && continue
35631 fdir=`$as_dirname -- "$file" ||
35632$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35633 X"$file" : 'X\(//\)[^/]' \| \
35634 X"$file" : 'X\(//\)$' \| \
35635 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35636$as_echo X"$file" |
35637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35638 s//\1/
35639 q
35640 }
35641 /^X\(\/\/\)[^/].*/{
35642 s//\1/
35643 q
35644 }
35645 /^X\(\/\/\)$/{
35646 s//\1/
35647 q
35648 }
35649 /^X\(\/\).*/{
35650 s//\1/
35651 q
35652 }
35653 s/.*/./; q'`
35654 as_dir=$dirpart/$fdir; as_fn_mkdir_p
35655 # echo "creating $dirpart/$file"
35656 echo '# dummy' > "$dirpart/$file"
35657 done
35658 done
35659}
35660 ;;
35661 "libtool":C)
35662
35663 # See if we are running on zsh, and set the options which allow our
35664 # commands through without removal of \ escapes.
35665 if test -n "${ZSH_VERSION+set}" ; then
35666 setopt NO_GLOB_SUBST
35667 fi
35668
35669 cfgfile="${ofile}T"
35670 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35671 $RM "$cfgfile"
35672
35673 cat <<_LT_EOF >> "$cfgfile"
35674#! $SHELL
35675
35676# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
35677# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
35678# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35679# NOTE: Changes made to this file will be lost: look at ltmain.sh.
35680#
35681# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy0c60a692010-11-04 01:09:47 +000035682# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
35683# Inc.
cristy73bd4a52010-10-05 11:24:23 +000035684# Written by Gordon Matzigkeit, 1996
35685#
35686# This file is part of GNU Libtool.
35687#
35688# GNU Libtool is free software; you can redistribute it and/or
35689# modify it under the terms of the GNU General Public License as
35690# published by the Free Software Foundation; either version 2 of
35691# the License, or (at your option) any later version.
35692#
35693# As a special exception to the GNU General Public License,
35694# if you distribute this file as part of a program or library that
35695# is built using GNU Libtool, you may include this file under the
35696# same distribution terms that you use for the rest of that program.
35697#
35698# GNU Libtool is distributed in the hope that it will be useful,
35699# but WITHOUT ANY WARRANTY; without even the implied warranty of
35700# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35701# GNU General Public License for more details.
35702#
35703# You should have received a copy of the GNU General Public License
35704# along with GNU Libtool; see the file COPYING. If not, a copy
35705# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
35706# obtained by writing to the Free Software Foundation, Inc.,
35707# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35708
35709
35710# The names of the tagged configurations supported by this script.
35711available_tags="CXX "
35712
35713# ### BEGIN LIBTOOL CONFIG
35714
35715# A sed program that does not truncate output.
35716SED=$lt_SED
35717
35718# Sed that helps us avoid accidentally triggering echo(1) options like -n.
35719Xsed="\$SED -e 1s/^X//"
35720
35721# A grep program that handles long lines.
35722GREP=$lt_GREP
35723
35724# An ERE matcher.
35725EGREP=$lt_EGREP
35726
35727# A literal string matcher.
35728FGREP=$lt_FGREP
35729
cristy0c60a692010-11-04 01:09:47 +000035730# Shell to use when invoking shell scripts.
35731SHELL=$lt_SHELL
35732
35733# An echo program that protects backslashes.
35734ECHO=$lt_ECHO
35735
cristy73bd4a52010-10-05 11:24:23 +000035736# Which release of libtool.m4 was used?
35737macro_version=$macro_version
35738macro_revision=$macro_revision
35739
35740# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000035741AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000035742
35743# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000035744DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000035745
35746# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000035747OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000035748
35749# Whether or not to build shared libraries.
35750build_libtool_libs=$enable_shared
35751
35752# Whether or not to build static libraries.
35753build_old_libs=$enable_static
35754
35755# What type of objects to build.
35756pic_mode=$pic_mode
35757
35758# Whether or not to optimize for fast installation.
35759fast_install=$enable_fast_install
35760
35761# The host system.
35762host_alias=$host_alias
35763host=$host
35764host_os=$host_os
35765
35766# The build system.
35767build_alias=$build_alias
35768build=$build
35769build_os=$build_os
35770
35771# A BSD- or MS-compatible name lister.
35772NM=$lt_NM
35773
35774# Whether we need soft or hard links.
35775LN_S=$lt_LN_S
35776
35777# What is the maximum length of a command?
35778max_cmd_len=$max_cmd_len
35779
35780# Object file suffix (normally "o").
35781objext=$ac_objext
35782
35783# Executable file suffix (normally "").
35784exeext=$exeext
35785
35786# whether the shell understands "unset".
35787lt_unset=$lt_unset
35788
35789# turn spaces into newlines.
35790SP2NL=$lt_lt_SP2NL
35791
35792# turn newlines into spaces.
35793NL2SP=$lt_lt_NL2SP
35794
cristyda16f162011-02-19 23:52:17 +000035795# convert \$build file names to \$host format.
35796to_host_file_cmd=$lt_cv_to_host_file_cmd
35797
35798# convert \$build files to toolchain format.
35799to_tool_file_cmd=$lt_cv_to_tool_file_cmd
35800
cristy73bd4a52010-10-05 11:24:23 +000035801# Method to check whether dependent libraries are shared objects.
35802deplibs_check_method=$lt_deplibs_check_method
35803
cristyda16f162011-02-19 23:52:17 +000035804# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000035805file_magic_cmd=$lt_file_magic_cmd
35806
cristyda16f162011-02-19 23:52:17 +000035807# How to find potential files when deplibs_check_method = "file_magic".
35808file_magic_glob=$lt_file_magic_glob
35809
35810# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
35811want_nocaseglob=$lt_want_nocaseglob
35812
35813# Command to associate shared and link libraries.
35814sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
35815
cristy73bd4a52010-10-05 11:24:23 +000035816# The archiver.
35817AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000035818
35819# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000035820AR_FLAGS=$lt_AR_FLAGS
35821
cristyda16f162011-02-19 23:52:17 +000035822# How to feed a file listing to the archiver.
35823archiver_list_spec=$lt_archiver_list_spec
35824
cristy73bd4a52010-10-05 11:24:23 +000035825# A symbol stripping program.
35826STRIP=$lt_STRIP
35827
35828# Commands used to install an old-style archive.
35829RANLIB=$lt_RANLIB
35830old_postinstall_cmds=$lt_old_postinstall_cmds
35831old_postuninstall_cmds=$lt_old_postuninstall_cmds
35832
cristy0c60a692010-11-04 01:09:47 +000035833# Whether to use a lock for old archive extraction.
35834lock_old_archive_extraction=$lock_old_archive_extraction
35835
cristy73bd4a52010-10-05 11:24:23 +000035836# A C compiler.
35837LTCC=$lt_CC
35838
35839# LTCC compiler flags.
35840LTCFLAGS=$lt_CFLAGS
35841
35842# Take the output of nm and produce a listing of raw symbols and C names.
35843global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35844
35845# Transform the output of nm in a proper C declaration.
35846global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35847
35848# Transform the output of nm in a C name address pair.
35849global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35850
35851# Transform the output of nm in a C name address pair when lib prefix is needed.
35852global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35853
cristyda16f162011-02-19 23:52:17 +000035854# Specify filename containing input files for \$NM.
35855nm_file_list_spec=$lt_nm_file_list_spec
35856
35857# The root where to search for dependent libraries,and in which our libraries should be installed.
35858lt_sysroot=$lt_sysroot
35859
cristy73bd4a52010-10-05 11:24:23 +000035860# The name of the directory that contains temporary libtool files.
35861objdir=$objdir
35862
cristy73bd4a52010-10-05 11:24:23 +000035863# Used to examine libraries when file_magic_cmd begins with "file".
35864MAGIC_CMD=$MAGIC_CMD
35865
35866# Must we lock files when doing compilation?
35867need_locks=$lt_need_locks
35868
cristyda16f162011-02-19 23:52:17 +000035869# Manifest tool.
35870MANIFEST_TOOL=$lt_MANIFEST_TOOL
35871
cristy73bd4a52010-10-05 11:24:23 +000035872# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35873DSYMUTIL=$lt_DSYMUTIL
35874
35875# Tool to change global to local symbols on Mac OS X.
35876NMEDIT=$lt_NMEDIT
35877
35878# Tool to manipulate fat objects and archives on Mac OS X.
35879LIPO=$lt_LIPO
35880
35881# ldd/readelf like tool for Mach-O binaries on Mac OS X.
35882OTOOL=$lt_OTOOL
35883
35884# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35885OTOOL64=$lt_OTOOL64
35886
35887# Old archive suffix (normally "a").
35888libext=$libext
35889
35890# Shared library suffix (normally ".so").
35891shrext_cmds=$lt_shrext_cmds
35892
35893# The commands to extract the exported symbol list from a shared archive.
35894extract_expsyms_cmds=$lt_extract_expsyms_cmds
35895
35896# Variables whose values should be saved in libtool wrapper scripts and
35897# restored at link time.
35898variables_saved_for_relink=$lt_variables_saved_for_relink
35899
35900# Do we need the "lib" prefix for modules?
35901need_lib_prefix=$need_lib_prefix
35902
35903# Do we need a version for libraries?
35904need_version=$need_version
35905
35906# Library versioning type.
35907version_type=$version_type
35908
35909# Shared library runtime path variable.
35910runpath_var=$runpath_var
35911
35912# Shared library path variable.
35913shlibpath_var=$shlibpath_var
35914
35915# Is shlibpath searched before the hard-coded library search path?
35916shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35917
35918# Format of library name prefix.
35919libname_spec=$lt_libname_spec
35920
35921# List of archive names. First name is the real one, the rest are links.
35922# The last name is the one that the linker finds with -lNAME
35923library_names_spec=$lt_library_names_spec
35924
35925# The coded name of the library, if different from the real name.
35926soname_spec=$lt_soname_spec
35927
cristy0c60a692010-11-04 01:09:47 +000035928# Permission mode override for installation of shared libraries.
35929install_override_mode=$lt_install_override_mode
35930
cristy73bd4a52010-10-05 11:24:23 +000035931# Command to use after installation of a shared archive.
35932postinstall_cmds=$lt_postinstall_cmds
35933
35934# Command to use after uninstallation of a shared archive.
35935postuninstall_cmds=$lt_postuninstall_cmds
35936
35937# Commands used to finish a libtool library installation in a directory.
35938finish_cmds=$lt_finish_cmds
35939
35940# As "finish_cmds", except a single script fragment to be evaled but
35941# not shown.
35942finish_eval=$lt_finish_eval
35943
35944# Whether we should hardcode library paths into libraries.
35945hardcode_into_libs=$hardcode_into_libs
35946
35947# Compile-time system search path for libraries.
35948sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35949
35950# Run-time system search path for libraries.
35951sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35952
35953# Whether dlopen is supported.
35954dlopen_support=$enable_dlopen
35955
35956# Whether dlopen of programs is supported.
35957dlopen_self=$enable_dlopen_self
35958
35959# Whether dlopen of statically linked programs is supported.
35960dlopen_self_static=$enable_dlopen_self_static
35961
35962# Commands to strip libraries.
35963old_striplib=$lt_old_striplib
35964striplib=$lt_striplib
35965
35966
35967# The linker used to build libraries.
35968LD=$lt_LD
35969
cristy0c60a692010-11-04 01:09:47 +000035970# How to create reloadable object files.
35971reload_flag=$lt_reload_flag
35972reload_cmds=$lt_reload_cmds
35973
cristy73bd4a52010-10-05 11:24:23 +000035974# Commands used to build an old-style archive.
35975old_archive_cmds=$lt_old_archive_cmds
35976
35977# A language specific compiler.
35978CC=$lt_compiler
35979
35980# Is the compiler the GNU compiler?
35981with_gcc=$GCC
35982
35983# Compiler flag to turn off builtin functions.
35984no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35985
cristy73bd4a52010-10-05 11:24:23 +000035986# Additional compiler flags for building library objects.
35987pic_flag=$lt_lt_prog_compiler_pic
35988
cristyda16f162011-02-19 23:52:17 +000035989# How to pass a linker flag through the compiler.
35990wl=$lt_lt_prog_compiler_wl
35991
cristy73bd4a52010-10-05 11:24:23 +000035992# Compiler flag to prevent dynamic linking.
35993link_static_flag=$lt_lt_prog_compiler_static
35994
35995# Does compiler simultaneously support -c and -o options?
35996compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35997
35998# Whether or not to add -lc for building shared libraries.
35999build_libtool_need_lc=$archive_cmds_need_lc
36000
36001# Whether or not to disallow shared libs when runtime libs are static.
36002allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
36003
36004# Compiler flag to allow reflexive dlopens.
36005export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
36006
36007# Compiler flag to generate shared objects directly from archives.
36008whole_archive_flag_spec=$lt_whole_archive_flag_spec
36009
36010# Whether the compiler copes with passing no objects directly.
36011compiler_needs_object=$lt_compiler_needs_object
36012
36013# Create an old-style archive from a shared archive.
36014old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
36015
36016# Create a temporary old-style archive to link instead of a shared archive.
36017old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
36018
36019# Commands used to build a shared archive.
36020archive_cmds=$lt_archive_cmds
36021archive_expsym_cmds=$lt_archive_expsym_cmds
36022
36023# Commands used to build a loadable module if different from building
36024# a shared archive.
36025module_cmds=$lt_module_cmds
36026module_expsym_cmds=$lt_module_expsym_cmds
36027
36028# Whether we are building with GNU ld or not.
36029with_gnu_ld=$lt_with_gnu_ld
36030
36031# Flag that allows shared libraries with undefined symbols to be built.
36032allow_undefined_flag=$lt_allow_undefined_flag
36033
36034# Flag that enforces no undefined symbols.
36035no_undefined_flag=$lt_no_undefined_flag
36036
36037# Flag to hardcode \$libdir into a binary during linking.
36038# This must work even if \$libdir does not exist
36039hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
36040
36041# If ld is used when linking, flag to hardcode \$libdir into a binary
36042# during linking. This must work even if \$libdir does not exist.
36043hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
36044
36045# Whether we need a single "-rpath" flag with a separated argument.
36046hardcode_libdir_separator=$lt_hardcode_libdir_separator
36047
36048# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36049# DIR into the resulting binary.
36050hardcode_direct=$hardcode_direct
36051
36052# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36053# DIR into the resulting binary and the resulting library dependency is
36054# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36055# library is relocated.
36056hardcode_direct_absolute=$hardcode_direct_absolute
36057
36058# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36059# into the resulting binary.
36060hardcode_minus_L=$hardcode_minus_L
36061
36062# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36063# into the resulting binary.
36064hardcode_shlibpath_var=$hardcode_shlibpath_var
36065
36066# Set to "yes" if building a shared library automatically hardcodes DIR
36067# into the library and all subsequent libraries and executables linked
36068# against it.
36069hardcode_automatic=$hardcode_automatic
36070
36071# Set to yes if linker adds runtime paths of dependent libraries
36072# to runtime path list.
36073inherit_rpath=$inherit_rpath
36074
36075# Whether libtool must link a program against all its dependency libraries.
36076link_all_deplibs=$link_all_deplibs
36077
cristy73bd4a52010-10-05 11:24:23 +000036078# Set to "yes" if exported symbols are required.
36079always_export_symbols=$always_export_symbols
36080
36081# The commands to list exported symbols.
36082export_symbols_cmds=$lt_export_symbols_cmds
36083
36084# Symbols that should not be listed in the preloaded symbols.
36085exclude_expsyms=$lt_exclude_expsyms
36086
36087# Symbols that must always be exported.
36088include_expsyms=$lt_include_expsyms
36089
36090# Commands necessary for linking programs (against libraries) with templates.
36091prelink_cmds=$lt_prelink_cmds
36092
cristyda16f162011-02-19 23:52:17 +000036093# Commands necessary for finishing linking programs.
36094postlink_cmds=$lt_postlink_cmds
36095
cristy73bd4a52010-10-05 11:24:23 +000036096# Specify filename containing input files.
36097file_list_spec=$lt_file_list_spec
36098
36099# How to hardcode a shared library path into an executable.
36100hardcode_action=$hardcode_action
36101
36102# The directories searched by this compiler when creating a shared library.
36103compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
36104
36105# Dependencies to place before and after the objects being linked to
36106# create a shared library.
36107predep_objects=$lt_predep_objects
36108postdep_objects=$lt_postdep_objects
36109predeps=$lt_predeps
36110postdeps=$lt_postdeps
36111
36112# The library search path used internally by the compiler when linking
36113# a shared library.
36114compiler_lib_search_path=$lt_compiler_lib_search_path
36115
36116# ### END LIBTOOL CONFIG
36117
36118_LT_EOF
36119
36120 case $host_os in
36121 aix3*)
36122 cat <<\_LT_EOF >> "$cfgfile"
36123# AIX sometimes has problems with the GCC collect2 program. For some
36124# reason, if we set the COLLECT_NAMES environment variable, the problems
36125# vanish in a puff of smoke.
36126if test "X${COLLECT_NAMES+set}" != Xset; then
36127 COLLECT_NAMES=
36128 export COLLECT_NAMES
36129fi
36130_LT_EOF
36131 ;;
36132 esac
36133
36134
36135ltmain="$ac_aux_dir/ltmain.sh"
36136
36137
36138 # We use sed instead of cat because bash on DJGPP gets confused if
36139 # if finds mixed CR/LF and LF-only lines. Since sed operates in
36140 # text mode, it properly converts lines to CR/LF. This bash problem
36141 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000036142 sed '$q' "$ltmain" >> "$cfgfile" \
36143 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000036144
cristyda16f162011-02-19 23:52:17 +000036145 if test x"$xsi_shell" = xyes; then
36146 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
36147func_dirname ()\
36148{\
36149\ case ${1} in\
36150\ */*) func_dirname_result="${1%/*}${2}" ;;\
36151\ * ) func_dirname_result="${3}" ;;\
36152\ esac\
36153} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
36154 && mv -f "$cfgfile.tmp" "$cfgfile" \
36155 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36156test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036157
36158
cristyda16f162011-02-19 23:52:17 +000036159 sed -e '/^func_basename ()$/,/^} # func_basename /c\
36160func_basename ()\
36161{\
36162\ func_basename_result="${1##*/}"\
36163} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
36164 && mv -f "$cfgfile.tmp" "$cfgfile" \
36165 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36166test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036167
36168
cristyda16f162011-02-19 23:52:17 +000036169 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
36170func_dirname_and_basename ()\
36171{\
36172\ case ${1} in\
36173\ */*) func_dirname_result="${1%/*}${2}" ;;\
36174\ * ) func_dirname_result="${3}" ;;\
36175\ esac\
36176\ func_basename_result="${1##*/}"\
36177} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
36178 && mv -f "$cfgfile.tmp" "$cfgfile" \
36179 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36180test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036181
cristyda16f162011-02-19 23:52:17 +000036182
36183 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
36184func_stripname ()\
36185{\
36186\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
36187\ # positional parameters, so assign one to ordinary parameter first.\
36188\ func_stripname_result=${3}\
36189\ func_stripname_result=${func_stripname_result#"${1}"}\
36190\ func_stripname_result=${func_stripname_result%"${2}"}\
36191} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
36192 && mv -f "$cfgfile.tmp" "$cfgfile" \
36193 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36194test 0 -eq $? || _lt_function_replace_fail=:
36195
36196
36197 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
36198func_split_long_opt ()\
36199{\
36200\ func_split_long_opt_name=${1%%=*}\
36201\ func_split_long_opt_arg=${1#*=}\
36202} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
36203 && mv -f "$cfgfile.tmp" "$cfgfile" \
36204 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36205test 0 -eq $? || _lt_function_replace_fail=:
36206
36207
36208 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
36209func_split_short_opt ()\
36210{\
36211\ func_split_short_opt_arg=${1#??}\
36212\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
36213} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
36214 && mv -f "$cfgfile.tmp" "$cfgfile" \
36215 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36216test 0 -eq $? || _lt_function_replace_fail=:
36217
36218
36219 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
36220func_lo2o ()\
36221{\
36222\ case ${1} in\
36223\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
36224\ *) func_lo2o_result=${1} ;;\
36225\ esac\
36226} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
36227 && mv -f "$cfgfile.tmp" "$cfgfile" \
36228 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36229test 0 -eq $? || _lt_function_replace_fail=:
36230
36231
36232 sed -e '/^func_xform ()$/,/^} # func_xform /c\
36233func_xform ()\
36234{\
36235 func_xform_result=${1%.*}.lo\
36236} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
36237 && mv -f "$cfgfile.tmp" "$cfgfile" \
36238 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36239test 0 -eq $? || _lt_function_replace_fail=:
36240
36241
36242 sed -e '/^func_arith ()$/,/^} # func_arith /c\
36243func_arith ()\
36244{\
36245 func_arith_result=$(( $* ))\
36246} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
36247 && mv -f "$cfgfile.tmp" "$cfgfile" \
36248 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36249test 0 -eq $? || _lt_function_replace_fail=:
36250
36251
36252 sed -e '/^func_len ()$/,/^} # func_len /c\
36253func_len ()\
36254{\
36255 func_len_result=${#1}\
36256} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
36257 && mv -f "$cfgfile.tmp" "$cfgfile" \
36258 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36259test 0 -eq $? || _lt_function_replace_fail=:
36260
36261fi
36262
36263if test x"$lt_shell_append" = xyes; then
36264 sed -e '/^func_append ()$/,/^} # func_append /c\
36265func_append ()\
36266{\
36267 eval "${1}+=\\${2}"\
36268} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
36269 && mv -f "$cfgfile.tmp" "$cfgfile" \
36270 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36271test 0 -eq $? || _lt_function_replace_fail=:
36272
36273
36274 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
36275func_append_quoted ()\
36276{\
36277\ func_quote_for_eval "${2}"\
36278\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
36279} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
36280 && mv -f "$cfgfile.tmp" "$cfgfile" \
36281 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36282test 0 -eq $? || _lt_function_replace_fail=:
36283
36284
36285 # Save a `func_append' function call where possible by direct use of '+='
36286 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
36287 && mv -f "$cfgfile.tmp" "$cfgfile" \
36288 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36289 test 0 -eq $? || _lt_function_replace_fail=:
36290else
36291 # Save a `func_append' function call even when '+=' is not available
36292 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
36293 && mv -f "$cfgfile.tmp" "$cfgfile" \
36294 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36295 test 0 -eq $? || _lt_function_replace_fail=:
36296fi
36297
36298if test x"$_lt_function_replace_fail" = x":"; then
36299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
36300$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
36301fi
36302
36303
36304 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000036305 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
36306 chmod +x "$ofile"
36307
36308
36309 cat <<_LT_EOF >> "$ofile"
36310
36311# ### BEGIN LIBTOOL TAG CONFIG: CXX
36312
36313# The linker used to build libraries.
36314LD=$lt_LD_CXX
36315
cristy0c60a692010-11-04 01:09:47 +000036316# How to create reloadable object files.
36317reload_flag=$lt_reload_flag_CXX
36318reload_cmds=$lt_reload_cmds_CXX
36319
cristy73bd4a52010-10-05 11:24:23 +000036320# Commands used to build an old-style archive.
36321old_archive_cmds=$lt_old_archive_cmds_CXX
36322
36323# A language specific compiler.
36324CC=$lt_compiler_CXX
36325
36326# Is the compiler the GNU compiler?
36327with_gcc=$GCC_CXX
36328
36329# Compiler flag to turn off builtin functions.
36330no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
36331
cristy73bd4a52010-10-05 11:24:23 +000036332# Additional compiler flags for building library objects.
36333pic_flag=$lt_lt_prog_compiler_pic_CXX
36334
cristyda16f162011-02-19 23:52:17 +000036335# How to pass a linker flag through the compiler.
36336wl=$lt_lt_prog_compiler_wl_CXX
36337
cristy73bd4a52010-10-05 11:24:23 +000036338# Compiler flag to prevent dynamic linking.
36339link_static_flag=$lt_lt_prog_compiler_static_CXX
36340
36341# Does compiler simultaneously support -c and -o options?
36342compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
36343
36344# Whether or not to add -lc for building shared libraries.
36345build_libtool_need_lc=$archive_cmds_need_lc_CXX
36346
36347# Whether or not to disallow shared libs when runtime libs are static.
36348allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
36349
36350# Compiler flag to allow reflexive dlopens.
36351export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
36352
36353# Compiler flag to generate shared objects directly from archives.
36354whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
36355
36356# Whether the compiler copes with passing no objects directly.
36357compiler_needs_object=$lt_compiler_needs_object_CXX
36358
36359# Create an old-style archive from a shared archive.
36360old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
36361
36362# Create a temporary old-style archive to link instead of a shared archive.
36363old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
36364
36365# Commands used to build a shared archive.
36366archive_cmds=$lt_archive_cmds_CXX
36367archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
36368
36369# Commands used to build a loadable module if different from building
36370# a shared archive.
36371module_cmds=$lt_module_cmds_CXX
36372module_expsym_cmds=$lt_module_expsym_cmds_CXX
36373
36374# Whether we are building with GNU ld or not.
36375with_gnu_ld=$lt_with_gnu_ld_CXX
36376
36377# Flag that allows shared libraries with undefined symbols to be built.
36378allow_undefined_flag=$lt_allow_undefined_flag_CXX
36379
36380# Flag that enforces no undefined symbols.
36381no_undefined_flag=$lt_no_undefined_flag_CXX
36382
36383# Flag to hardcode \$libdir into a binary during linking.
36384# This must work even if \$libdir does not exist
36385hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
36386
36387# If ld is used when linking, flag to hardcode \$libdir into a binary
36388# during linking. This must work even if \$libdir does not exist.
36389hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
36390
36391# Whether we need a single "-rpath" flag with a separated argument.
36392hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
36393
36394# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36395# DIR into the resulting binary.
36396hardcode_direct=$hardcode_direct_CXX
36397
36398# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36399# DIR into the resulting binary and the resulting library dependency is
36400# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36401# library is relocated.
36402hardcode_direct_absolute=$hardcode_direct_absolute_CXX
36403
36404# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36405# into the resulting binary.
36406hardcode_minus_L=$hardcode_minus_L_CXX
36407
36408# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36409# into the resulting binary.
36410hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
36411
36412# Set to "yes" if building a shared library automatically hardcodes DIR
36413# into the library and all subsequent libraries and executables linked
36414# against it.
36415hardcode_automatic=$hardcode_automatic_CXX
36416
36417# Set to yes if linker adds runtime paths of dependent libraries
36418# to runtime path list.
36419inherit_rpath=$inherit_rpath_CXX
36420
36421# Whether libtool must link a program against all its dependency libraries.
36422link_all_deplibs=$link_all_deplibs_CXX
36423
cristy73bd4a52010-10-05 11:24:23 +000036424# Set to "yes" if exported symbols are required.
36425always_export_symbols=$always_export_symbols_CXX
36426
36427# The commands to list exported symbols.
36428export_symbols_cmds=$lt_export_symbols_cmds_CXX
36429
36430# Symbols that should not be listed in the preloaded symbols.
36431exclude_expsyms=$lt_exclude_expsyms_CXX
36432
36433# Symbols that must always be exported.
36434include_expsyms=$lt_include_expsyms_CXX
36435
36436# Commands necessary for linking programs (against libraries) with templates.
36437prelink_cmds=$lt_prelink_cmds_CXX
36438
cristyda16f162011-02-19 23:52:17 +000036439# Commands necessary for finishing linking programs.
36440postlink_cmds=$lt_postlink_cmds_CXX
36441
cristy73bd4a52010-10-05 11:24:23 +000036442# Specify filename containing input files.
36443file_list_spec=$lt_file_list_spec_CXX
36444
36445# How to hardcode a shared library path into an executable.
36446hardcode_action=$hardcode_action_CXX
36447
36448# The directories searched by this compiler when creating a shared library.
36449compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
36450
36451# Dependencies to place before and after the objects being linked to
36452# create a shared library.
36453predep_objects=$lt_predep_objects_CXX
36454postdep_objects=$lt_postdep_objects_CXX
36455predeps=$lt_predeps_CXX
36456postdeps=$lt_postdeps_CXX
36457
36458# The library search path used internally by the compiler when linking
36459# a shared library.
36460compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
36461
36462# ### END LIBTOOL TAG CONFIG: CXX
36463_LT_EOF
36464
36465 ;;
cristy3ed852e2009-09-05 21:47:34 +000036466 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
36467 "Magick-config.in":C) chmod +x magick/Magick-config ;;
36468 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
36469 "Wand-config.in":C) chmod +x wand/Wand-config ;;
36470 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
36471 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
36472
36473 esac
36474done # for ac_tag
36475
36476
cristy8b350f62009-11-15 23:12:43 +000036477as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000036478_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000036479ac_clean_files=$ac_clean_files_save
36480
36481test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000036482 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036483
36484
36485# configure is writing to config.log, and then calls config.status.
36486# config.status does its own redirection, appending to config.log.
36487# Unfortunately, on DOS this fails, as config.log is still kept open
36488# by configure, so config.status won't be able to write to it; its
36489# output is simply discarded. So we exec the FD to /dev/null,
36490# effectively closing config.log, so it can be properly (re)opened and
36491# appended to by config.status. When coming back to configure, we
36492# need to make the FD available again.
36493if test "$no_create" != yes; then
36494 ac_cs_success=:
36495 ac_config_status_args=
36496 test "$silent" = yes &&
36497 ac_config_status_args="$ac_config_status_args --quiet"
36498 exec 5>/dev/null
36499 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36500 exec 5>>config.log
36501 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36502 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000036503 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000036504fi
36505if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000036506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000036507$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
36508fi
36509
36510
36511rm -f magick-version
36512
cristy430a7312010-01-21 20:44:04 +000036513result_dejavu_font_dir='none'
36514if test "${dejavu_font_dir}x" != 'x'; then
36515 result_dejavu_font_dir=$dejavu_font_dir
36516fi
36517
cristy3ed852e2009-09-05 21:47:34 +000036518result_ghostscript_font_dir='none'
36519if test "${ghostscript_font_dir}x" != 'x'; then
36520 result_ghostscript_font_dir=$ghostscript_font_dir
36521fi
36522
36523result_windows_font_dir='none'
36524if test "${windows_font_dir}x" != 'x'; then
36525 result_windows_font_dir=${windows_font_dir}
36526fi
36527
cristy8b350f62009-11-15 23:12:43 +000036528{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000036529ImageMagick is configured as follows. Please verify that this configuration
36530matches your expectations.
36531
36532Host system type: $host
36533Build system type: $build
36534
36535 Option Value
36536-------------------------------------------------------------------------------
36537Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
36538Static libraries --enable-static=$enable_static $libtool_build_static_libs
36539Module support --with-modules=$with_modules $with_modules
36540GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
36541Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
36542High Dynamic Range Imagery
36543 --enable-hdri=$enable_hdri $enable_hdri
36544
36545Delegate Configuration:
36546BZLIB --with-bzlib=$with_bzlib $have_bzlib
36547Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000036548Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000036549DJVU --with-djvu=$with_djvu $have_djvu
36550DPS --with-dps=$with_dps $have_dps
36551FFTW --with-fftw=$with_fftw $have_fftw
36552FlashPIX --with-fpx=$with_fpx $have_fpx
36553FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
36554FreeType --with-freetype=$with_freetype $have_freetype
36555GhostPCL None $PCLDelegate ($PCLVersion)
36556GhostXPS None $XPSDelegate ($XPSVersion)
36557Ghostscript None $PSDelegate ($GSVersion)
36558Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
36559Ghostscript lib --with-gslib=$with_gslib $have_gslib
36560Graphviz --with-gvc=$with_gvc $have_gvc
36561JBIG --with-jbig=$with_jbig $have_jbig
36562JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
36563JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000036564LCMS v1 --with-lcms=$with_lcms $have_lcms
36565LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000036566LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000036567LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000036568Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
36569OpenEXR --with-openexr=$with_openexr $have_openexr
36570PERL --with-perl=$with_perl $have_perl
36571PNG --with-png=$with_png $have_png
36572RSVG --with-rsvg=$with_rsvg $have_rsvg
36573TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000036574WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000036575Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
36576WMF --with-wmf=$with_wmf $have_wmf
36577X11 --with-x=$with_x $have_x
36578XML --with-xml=$with_xml $have_xml
36579ZLIB --with-zlib=$with_zlib $have_zlib
36580
36581X11 Configuration:
36582 X_CFLAGS = $X_CFLAGS
36583 X_PRE_LIBS = $X_PRE_LIBS
36584 X_LIBS = $X_LIBS
36585 X_EXTRA_LIBS = $X_EXTRA_LIBS
36586
36587Options used to compile and link:
36588 PREFIX = $PREFIX_DIR
36589 EXEC-PREFIX = $EXEC_PREFIX_DIR
36590 VERSION = $PACKAGE_VERSION
36591 CC = $CC
36592 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000036593 CPPFLAGS = $MAGICK_CPPFLAGS
36594 PCFLAGS = $MAGICK_PCFLAGS
36595 DEFS = $DEFS
36596 LDFLAGS = $LDFLAGS
36597 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
36598 LIBS = $MAGICK_LIBS
36599 CXX = $CXX
36600 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000036601 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000036602" >&5
36603$as_echo "
36604ImageMagick is configured as follows. Please verify that this configuration
36605matches your expectations.
36606
36607Host system type: $host
36608Build system type: $build
36609
36610 Option Value
36611-------------------------------------------------------------------------------
36612Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
36613Static libraries --enable-static=$enable_static $libtool_build_static_libs
36614Module support --with-modules=$with_modules $with_modules
36615GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
36616Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
36617High Dynamic Range Imagery
36618 --enable-hdri=$enable_hdri $enable_hdri
36619
36620Delegate Configuration:
36621BZLIB --with-bzlib=$with_bzlib $have_bzlib
36622Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000036623Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000036624DJVU --with-djvu=$with_djvu $have_djvu
36625DPS --with-dps=$with_dps $have_dps
36626FFTW --with-fftw=$with_fftw $have_fftw
36627FlashPIX --with-fpx=$with_fpx $have_fpx
36628FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
36629FreeType --with-freetype=$with_freetype $have_freetype
36630GhostPCL None $PCLDelegate ($PCLVersion)
36631GhostXPS None $XPSDelegate ($XPSVersion)
36632Ghostscript None $PSDelegate ($GSVersion)
36633Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
36634Ghostscript lib --with-gslib=$with_gslib $have_gslib
36635Graphviz --with-gvc=$with_gvc $have_gvc
36636JBIG --with-jbig=$with_jbig $have_jbig
36637JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
36638JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000036639LCMS v1 --with-lcms=$with_lcms $have_lcms
36640LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000036641LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000036642LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000036643Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
36644OpenEXR --with-openexr=$with_openexr $have_openexr
36645PERL --with-perl=$with_perl $have_perl
36646PNG --with-png=$with_png $have_png
36647RSVG --with-rsvg=$with_rsvg $have_rsvg
36648TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000036649WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000036650Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
36651WMF --with-wmf=$with_wmf $have_wmf
36652X11 --with-x=$with_x $have_x
36653XML --with-xml=$with_xml $have_xml
36654ZLIB --with-zlib=$with_zlib $have_zlib
36655
36656X11 Configuration:
36657 X_CFLAGS = $X_CFLAGS
36658 X_PRE_LIBS = $X_PRE_LIBS
36659 X_LIBS = $X_LIBS
36660 X_EXTRA_LIBS = $X_EXTRA_LIBS
36661
36662Options used to compile and link:
36663 PREFIX = $PREFIX_DIR
36664 EXEC-PREFIX = $EXEC_PREFIX_DIR
36665 VERSION = $PACKAGE_VERSION
36666 CC = $CC
36667 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000036668 CPPFLAGS = $MAGICK_CPPFLAGS
36669 PCFLAGS = $MAGICK_PCFLAGS
36670 DEFS = $DEFS
36671 LDFLAGS = $LDFLAGS
36672 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
36673 LIBS = $MAGICK_LIBS
36674 CXX = $CXX
36675 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000036676 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000036677" >&6; }